public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (id_ != null) { hash ^= Id.GetHashCode(); } if (name_ != null) { hash ^= Name.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { hash ^= EnhancedCpc.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.PageOnePromoted) { hash ^= PageOnePromoted.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetCpa) { hash ^= TargetCpa.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetOutrankShare) { hash ^= TargetOutrankShare.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetRoas) { hash ^= TargetRoas.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetSpend) { hash ^= TargetSpend.GetHashCode(); } hash ^= (int)schemeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (id_ != null) { hash ^= Id.GetHashCode(); } if (name_ != null) { hash ^= Name.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V2.Enums.BiddingStrategyStatusEnum.Types.BiddingStrategyStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (Type != global::Google.Ads.GoogleAds.V2.Enums.BiddingStrategyTypeEnum.Types.BiddingStrategyType.Unspecified) { hash ^= Type.GetHashCode(); } if (campaignCount_ != null) { hash ^= CampaignCount.GetHashCode(); } if (nonRemovedCampaignCount_ != null) { hash ^= NonRemovedCampaignCount.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.EnhancedCpc) { hash ^= EnhancedCpc.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.PageOnePromoted) { hash ^= PageOnePromoted.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetCpa) { hash ^= TargetCpa.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetImpressionShare) { hash ^= TargetImpressionShare.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetOutrankShare) { hash ^= TargetOutrankShare.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetRoas) { hash ^= TargetRoas.GetHashCode(); } if (schemeCase_ == SchemeOneofCase.TargetSpend) { hash ^= TargetSpend.GetHashCode(); } hash ^= (int)schemeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }