public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Id = input.ReadInt32(); break; } case 16: { Table = input.ReadInt32(); break; } case 26: { if (products_ == null) { products_ = new global::WaiterServiceProto.productArr(); } input.ReadMessage(products_); break; } } } }
public void MergeFrom(Order other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Table != 0) { Table = other.Table; } if (other.products_ != null) { if (products_ == null) { products_ = new global::WaiterServiceProto.productArr(); } Products.MergeFrom(other.Products); } }