public void MergeFrom(AdGroupAd other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.Status != 0) { Status = other.Status; } if (other.adGroup_ != null) { if (adGroup_ == null || other.AdGroup != "") { AdGroup = other.AdGroup; } } if (other.ad_ != null) { if (ad_ == null) { Ad = new global::Google.Ads.GoogleAds.V2.Resources.Ad(); } Ad.MergeFrom(other.Ad); } if (other.policySummary_ != null) { if (policySummary_ == null) { PolicySummary = new global::Google.Ads.GoogleAds.V2.Resources.AdGroupAdPolicySummary(); } PolicySummary.MergeFrom(other.PolicySummary); } if (other.AdStrength != 0) { AdStrength = other.AdStrength; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }