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

            if (avgMonthlySearches_ != null)
            {
                hash ^= AvgMonthlySearches.GetHashCode();
            }
            hash ^= monthlySearchVolumes_.GetHashCode();
            if (Competition != global::Google.Ads.GoogleAds.V5.Enums.KeywordPlanCompetitionLevelEnum.Types.KeywordPlanCompetitionLevel.Unspecified)
            {
                hash ^= Competition.GetHashCode();
            }
            if (competitionIndex_ != null)
            {
                hash ^= CompetitionIndex.GetHashCode();
            }
            if (lowTopOfPageBidMicros_ != null)
            {
                hash ^= LowTopOfPageBidMicros.GetHashCode();
            }
            if (highTopOfPageBidMicros_ != null)
            {
                hash ^= HighTopOfPageBidMicros.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hash = 17;
         hash = hash * 23 + (Competition?.GetHashCode() ?? 0);
         hash = hash * 23 + (Fighter?.GetHashCode() ?? 0);
         return(hash);
     }
 }