public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Google.Ads.GoogleAds.V2.Resources.Ad subBuilder = new global::Google.Ads.GoogleAds.V2.Resources.Ad(); if (operationCase_ == OperationOneofCase.Update) { subBuilder.MergeFrom(Update); } input.ReadMessage(subBuilder); Update = subBuilder; break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } }
public void MergeFrom(AdOperation other) { if (other == null) { return; } if (other.updateMask_ != null) { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } UpdateMask.MergeFrom(other.UpdateMask); } switch (other.OperationCase) { case OperationOneofCase.Update: if (Update == null) { Update = new global::Google.Ads.GoogleAds.V2.Resources.Ad(); } Update.MergeFrom(other.Update); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { ResourceName = input.ReadString(); break; } case 24: { Status = (global::Google.Ads.GoogleAds.V2.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus)input.ReadEnum(); break; } case 34: { string value = _single_adGroup_codec.Read(input); if (adGroup_ == null || value != "") { AdGroup = value; } break; } case 42: { if (ad_ == null) { Ad = new global::Google.Ads.GoogleAds.V2.Resources.Ad(); } input.ReadMessage(Ad); break; } case 50: { if (policySummary_ == null) { PolicySummary = new global::Google.Ads.GoogleAds.V2.Resources.AdGroupAdPolicySummary(); } input.ReadMessage(PolicySummary); break; } case 56: { AdStrength = (global::Google.Ads.GoogleAds.V2.Enums.AdStrengthEnum.Types.AdStrength)input.ReadEnum(); break; } } } }
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); }