public void MergeFrom(ClickView other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.HasGclid) { Gclid = other.Gclid; } if (other.areaOfInterest_ != null) { if (areaOfInterest_ == null) { AreaOfInterest = new global::Google.Ads.GoogleAds.V8.Common.ClickLocation(); } AreaOfInterest.MergeFrom(other.AreaOfInterest); } if (other.locationOfPresence_ != null) { if (locationOfPresence_ == null) { LocationOfPresence = new global::Google.Ads.GoogleAds.V8.Common.ClickLocation(); } LocationOfPresence.MergeFrom(other.LocationOfPresence); } if (other.HasPageNumber) { PageNumber = other.PageNumber; } if (other.HasAdGroupAd) { AdGroupAd = other.AdGroupAd; } if (other.HasCampaignLocationTarget) { CampaignLocationTarget = other.CampaignLocationTarget; } if (other.HasUserList) { UserList = other.UserList; } if (other.Keyword.Length != 0) { Keyword = other.Keyword; } if (other.keywordInfo_ != null) { if (keywordInfo_ == null) { KeywordInfo = new global::Google.Ads.GoogleAds.V8.Common.KeywordInfo(); } KeywordInfo.MergeFrom(other.KeywordInfo); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (gclid_ != null) { hash ^= Gclid.GetHashCode(); } if (areaOfInterest_ != null) { hash ^= AreaOfInterest.GetHashCode(); } if (locationOfPresence_ != null) { hash ^= LocationOfPresence.GetHashCode(); } if (pageNumber_ != null) { hash ^= PageNumber.GetHashCode(); } if (adGroupAd_ != null) { hash ^= AdGroupAd.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasGclid) { hash ^= Gclid.GetHashCode(); } if (areaOfInterest_ != null) { hash ^= AreaOfInterest.GetHashCode(); } if (locationOfPresence_ != null) { hash ^= LocationOfPresence.GetHashCode(); } if (HasPageNumber) { hash ^= PageNumber.GetHashCode(); } if (HasAdGroupAd) { hash ^= AdGroupAd.GetHashCode(); } if (HasCampaignLocationTarget) { hash ^= CampaignLocationTarget.GetHashCode(); } if (HasUserList) { hash ^= UserList.GetHashCode(); } if (Keyword.Length != 0) { hash ^= Keyword.GetHashCode(); } if (keywordInfo_ != null) { hash ^= KeywordInfo.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(ClickView other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.gclid_ != null) { if (gclid_ == null || other.Gclid != "") { Gclid = other.Gclid; } } if (other.areaOfInterest_ != null) { if (areaOfInterest_ == null) { AreaOfInterest = new global::Google.Ads.GoogleAds.V4.Common.ClickLocation(); } AreaOfInterest.MergeFrom(other.AreaOfInterest); } if (other.locationOfPresence_ != null) { if (locationOfPresence_ == null) { LocationOfPresence = new global::Google.Ads.GoogleAds.V4.Common.ClickLocation(); } LocationOfPresence.MergeFrom(other.LocationOfPresence); } if (other.pageNumber_ != null) { if (pageNumber_ == null || other.PageNumber != 0L) { PageNumber = other.PageNumber; } } if (other.adGroupAd_ != null) { if (adGroupAd_ == null || other.AdGroupAd != "") { AdGroupAd = other.AdGroupAd; } } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }