public void MergeFrom(RoomLodgingTransactionEvent other) { if (other == null) { return; } if (other.room_ != null) { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } Room.MergeFrom(other.Room); } if (other.transaction_ != null) { if (transaction_ == null) { transaction_ = new global::HOLMS.Types.Money.Accounting.AccountingTransaction(); } Transaction.MergeFrom(other.Transaction); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(room_); break; } case 18: { if (transaction_ == null) { transaction_ = new global::HOLMS.Types.Money.Accounting.AccountingTransaction(); } input.ReadMessage(transaction_); break; } case 26: { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedAt_); break; } } } }