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: { if (catalog_ == null) { Catalog = new global::Google.Cloud.Retail.V2.Catalog(); } input.ReadMessage(Catalog); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); 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: { if (catalog_ == null) { Catalog = new global::Google.Cloud.Retail.V2.Catalog(); } input.ReadMessage(Catalog); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } }
public void MergeFrom(UpdateCatalogRequest other) { if (other == null) { return; } if (other.catalog_ != null) { if (catalog_ == null) { Catalog = new global::Google.Cloud.Retail.V2.Catalog(); } Catalog.MergeFrom(other.Catalog); } if (other.updateMask_ != null) { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } UpdateMask.MergeFrom(other.UpdateMask); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }