public void MergeFrom(AdGroupAdAssetView other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.adGroupAd_ != null) { if (adGroupAd_ == null || other.AdGroupAd != "") { AdGroupAd = other.AdGroupAd; } } if (other.asset_ != null) { if (asset_ == null || other.Asset != "") { Asset = other.Asset; } } if (other.FieldType != global::Google.Ads.GoogleAds.V5.Enums.AssetFieldTypeEnum.Types.AssetFieldType.Unspecified) { FieldType = other.FieldType; } if (other.HasEnabled) { Enabled = other.Enabled; } if (other.policySummary_ != null) { if (policySummary_ == null) { PolicySummary = new global::Google.Ads.GoogleAds.V5.Resources.AdGroupAdAssetPolicySummary(); } PolicySummary.MergeFrom(other.PolicySummary); } if (other.PerformanceLabel != global::Google.Ads.GoogleAds.V5.Enums.AssetPerformanceLabelEnum.Types.AssetPerformanceLabel.Unspecified) { PerformanceLabel = other.PerformanceLabel; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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); }
public void MergeFrom(AdGroupAd other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.Status != global::Google.Ads.GoogleAds.V10.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { Status = other.Status; } if (other.HasAdGroup) { AdGroup = other.AdGroup; } if (other.ad_ != null) { if (ad_ == null) { Ad = new global::Google.Ads.GoogleAds.V10.Resources.Ad(); } Ad.MergeFrom(other.Ad); } if (other.policySummary_ != null) { if (policySummary_ == null) { PolicySummary = new global::Google.Ads.GoogleAds.V10.Resources.AdGroupAdPolicySummary(); } PolicySummary.MergeFrom(other.PolicySummary); } if (other.AdStrength != global::Google.Ads.GoogleAds.V10.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { AdStrength = other.AdStrength; } actionItems_.Add(other.actionItems_); labels_.Add(other.labels_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }