public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasId) { hash ^= Id.GetHashCode(); } if (HasCountryCode) { hash ^= CountryCode.GetHashCode(); } if (HasProductBiddingCategoryConstantParent) { hash ^= ProductBiddingCategoryConstantParent.GetHashCode(); } if (Level != global::Google.Ads.GoogleAds.V6.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified) { hash ^= Level.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V6.Enums.ProductBiddingCategoryStatusEnum.Types.ProductBiddingCategoryStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (HasLanguageCode) { hash ^= LanguageCode.GetHashCode(); } if (HasLocalizedName) { hash ^= LocalizedName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (localizedName_ != null) { hash ^= LocalizedName.GetHashCode(); } hash ^= status_.GetHashCode(); if (PassTypeIdentifier.Length != 0) { hash ^= PassTypeIdentifier.GetHashCode(); } if (IanaTimezone.Length != 0) { hash ^= IanaTimezone.GetHashCode(); } if (created_ != null) { hash ^= Created.GetHashCode(); } if (updated_ != null) { hash ^= Updated.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Get hash code based on it localized name /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() => LocalizedName.GetHashCode();
/// <summary> /// Get hash code based on it localized name /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { return(LocalizedName.GetHashCode()); }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (TierIndex != 0) { hash ^= TierIndex.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (localizedName_ != null) { hash ^= LocalizedName.GetHashCode(); } if (SecondaryTierName.Length != 0) { hash ^= SecondaryTierName.GetHashCode(); } if (localizedSecondaryTierName_ != null) { hash ^= LocalizedSecondaryTierName.GetHashCode(); } if (ProgramId.Length != 0) { hash ^= ProgramId.GetHashCode(); } if (PassTemplateId.Length != 0) { hash ^= PassTemplateId.GetHashCode(); } if (TierUpgradeMessage.Length != 0) { hash ^= TierUpgradeMessage.GetHashCode(); } if (localizedTierUpgradeMessage_ != null) { hash ^= LocalizedTierUpgradeMessage.GetHashCode(); } if (TierDowngradeMessage.Length != 0) { hash ^= TierDowngradeMessage.GetHashCode(); } if (localizedTierDowngradeMessage_ != null) { hash ^= LocalizedTierDowngradeMessage.GetHashCode(); } if (created_ != null) { hash ^= Created.GetHashCode(); } if (updated_ != null) { hash ^= Updated.GetHashCode(); } if (PointsOverdrawn != false) { hash ^= PointsOverdrawn.GetHashCode(); } if (SecondaryPointsOverdrawn != false) { hash ^= SecondaryPointsOverdrawn.GetHashCode(); } if (expirySettings_ != null) { hash ^= ExpirySettings.GetHashCode(); } if (Timezone.Length != 0) { hash ^= Timezone.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }