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: { if (owner_ == null) { Owner = new global::InventoryService.Protos.User(); } input.ReadMessage(Owner); break; } case 18: { if (item_ == null) { Item = new global::InventoryService.Protos.Item(); } input.ReadMessage(Item); break; } } } }
public void MergeFrom(InventoryItem other) { if (other == null) { return; } if (other.owner_ != null) { if (owner_ == null) { Owner = new global::InventoryService.Protos.User(); } Owner.MergeFrom(other.Owner); } if (other.item_ != null) { if (item_ == null) { Item = new global::InventoryService.Protos.Item(); } Item.MergeFrom(other.Item); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }