public override int GetHashCode() { int hash = 1; if (CustomerId.Length != 0) hash ^= CustomerId.GetHashCode(); if (language_ != null) hash ^= Language.GetHashCode(); hash ^= geoTargetConstants_.GetHashCode(); if (KeywordPlanNetwork != 0) hash ^= KeywordPlanNetwork.GetHashCode(); if (seedCase_ == SeedOneofCase.KeywordAndUrlSeed) hash ^= KeywordAndUrlSeed.GetHashCode(); if (seedCase_ == SeedOneofCase.KeywordSeed) hash ^= KeywordSeed.GetHashCode(); if (seedCase_ == SeedOneofCase.UrlSeed) hash ^= UrlSeed.GetHashCode(); hash ^= (int) seedCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; }
public void MergeFrom(GenerateKeywordIdeasRequest other) { if (other == null) { return; } if (other.CustomerId.Length != 0) { CustomerId = other.CustomerId; } if (other.language_ != null) { if (language_ == null || other.Language != "") { Language = other.Language; } } geoTargetConstants_.Add(other.geoTargetConstants_); if (other.KeywordPlanNetwork != 0) { KeywordPlanNetwork = other.KeywordPlanNetwork; } switch (other.SeedCase) { case SeedOneofCase.KeywordAndUrlSeed: if (KeywordAndUrlSeed == null) { KeywordAndUrlSeed = new global::Google.Ads.GoogleAds.V0.Services.KeywordAndUrlSeed(); } KeywordAndUrlSeed.MergeFrom(other.KeywordAndUrlSeed); break; case SeedOneofCase.KeywordSeed: if (KeywordSeed == null) { KeywordSeed = new global::Google.Ads.GoogleAds.V0.Services.KeywordSeed(); } KeywordSeed.MergeFrom(other.KeywordSeed); break; case SeedOneofCase.UrlSeed: if (UrlSeed == null) { UrlSeed = new global::Google.Ads.GoogleAds.V0.Services.UrlSeed(); } UrlSeed.MergeFrom(other.UrlSeed); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }