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.V10.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (HasNegative)
            {
                hash ^= Negative.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (keywordPlanAdGroup_ != null)
            {
                hash ^= KeywordPlanAdGroup.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (text_ != null)
            {
                hash ^= Text.GetHashCode();
            }
            if (MatchType != 0)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (cpcBidMicros_ != null)
            {
                hash ^= CpcBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (keywordPlanAdGroup_ != null)
            {
                hash ^= KeywordPlanAdGroup.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (text_ != null)
            {
                hash ^= Text.GetHashCode();
            }
            if (MatchType != global::Google.Ads.GoogleAds.V3.Enums.KeywordMatchTypeEnum.Types.KeywordMatchType.Unspecified)
            {
                hash ^= MatchType.GetHashCode();
            }
            if (cpcBidMicros_ != null)
            {
                hash ^= CpcBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = Id.GetHashCode()
                       ^ Name.GetHashCode()
                       ^ StartDate.GetHashCode()
                       ^ MatchType.GetHashCode();

            if (HasBets)
            {
                return(hash ^ Bets.Aggregate(0, (acc, x) => acc ^ x.GetHashCode()));
            }

            return(hash);
        }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (MatchType != 0)
                    {
                        hash ^= MatchType.GetHashCode();
                    }
                    if (StartTime != 0L)
                    {
                        hash ^= StartTime.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }