Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (adGroup_ != null)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (ad_ != null)
            {
                hash ^= Ad.GetHashCode();
            }
            if (policySummary_ != null)
            {
                hash ^= PolicySummary.GetHashCode();
            }
            if (AdStrength != 0)
            {
                hash ^= AdStrength.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V2.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (adGroup_ != null)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (ad_ != null)
            {
                hash ^= Ad.GetHashCode();
            }
            if (policySummary_ != null)
            {
                hash ^= PolicySummary.GetHashCode();
            }
            if (AdStrength != global::Google.Ads.GoogleAds.V2.Enums.AdStrengthEnum.Types.AdStrength.Unspecified)
            {
                hash ^= AdStrength.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }