Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (countryCode_ != null)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (productBiddingCategoryConstantParent_ != null)
            {
                hash ^= ProductBiddingCategoryConstantParent.GetHashCode();
            }
            if (Level != global::Google.Ads.GoogleAds.V4.Enums.ProductBiddingCategoryLevelEnum.Types.ProductBiddingCategoryLevel.Unspecified)
            {
                hash ^= Level.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V4.Enums.ProductBiddingCategoryStatusEnum.Types.ProductBiddingCategoryStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (languageCode_ != null)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (localizedName_ != null)
            {
                hash ^= LocalizedName.GetHashCode();
            }
            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 (countryCode_ != null)
            {
                hash ^= CountryCode.GetHashCode();
            }
            if (productBiddingCategoryConstantParent_ != null)
            {
                hash ^= ProductBiddingCategoryConstantParent.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (languageCode_ != null)
            {
                hash ^= LanguageCode.GetHashCode();
            }
            if (localizedName_ != null)
            {
                hash ^= LocalizedName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }