コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasAdGroup)
            {
                hash ^= AdGroup.GetHashCode();
            }
            if (HasLabel)
            {
                hash ^= Label.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

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