public void MergeFrom(UserDataOperation other) { if (other == null) { return; } switch (other.OperationCase) { case OperationOneofCase.Create: if (Create == null) { Create = new global::Google.Ads.GoogleAds.V4.Common.UserData(); } Create.MergeFrom(other.Create); break; case OperationOneofCase.Remove: if (Remove == null) { Remove = new global::Google.Ads.GoogleAds.V4.Common.UserData(); } Remove.MergeFrom(other.Remove); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Google.Ads.GoogleAds.V4.Common.UserData subBuilder = new global::Google.Ads.GoogleAds.V4.Common.UserData(); if (operationCase_ == OperationOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 18: { global::Google.Ads.GoogleAds.V4.Common.UserData subBuilder = new global::Google.Ads.GoogleAds.V4.Common.UserData(); if (operationCase_ == OperationOneofCase.Remove) { subBuilder.MergeFrom(Remove); } input.ReadMessage(subBuilder); Remove = subBuilder; break; } } } #endif }
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Google.Ads.GoogleAds.V4.Common.UserData subBuilder = new global::Google.Ads.GoogleAds.V4.Common.UserData(); if (operationCase_ == OperationOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 18: { global::Google.Ads.GoogleAds.V4.Common.UserData subBuilder = new global::Google.Ads.GoogleAds.V4.Common.UserData(); if (operationCase_ == OperationOneofCase.Remove) { subBuilder.MergeFrom(Remove); } input.ReadMessage(subBuilder); Remove = subBuilder; break; } } } }
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.V4.Common.UserData subBuilder = new global::Google.Ads.GoogleAds.V4.Common.UserData(); if (operationCase_ == OperationOneofCase.Create) { subBuilder.MergeFrom(Create); } input.ReadMessage(subBuilder); Create = subBuilder; break; } case 18: { global::Google.Ads.GoogleAds.V4.Common.UserData subBuilder = new global::Google.Ads.GoogleAds.V4.Common.UserData(); if (operationCase_ == OperationOneofCase.Remove) { subBuilder.MergeFrom(Remove); } input.ReadMessage(subBuilder); Remove = subBuilder; break; } } } }