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

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasKeywordPlanCampaign)
            {
                hash ^= KeywordPlanCampaign.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            if (HasCpcBidMicros)
            {
                hash ^= CpcBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasKeywordPlanCampaign)
            {
                hash ^= KeywordPlanCampaign.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasText)
            {
                hash ^= Text.GetHashCode();
            }
            if (MatchType != global::Google.Ads.GoogleAds.V6.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (HasNegative)
            {
                hash ^= Negative.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }