public void MergeFrom(RoomOccupancyChangedNotification other) { if (other == null) { return; } if (other.JWToken.Length != 0) { JWToken = other.JWToken; } if (other.room_ != null) { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } Room.MergeFrom(other.Room); } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.OccupancyPrematerializedOnReservation != false) { OccupancyPrematerializedOnReservation = other.OccupancyPrematerializedOnReservation; } }
public void MergeFrom(RoomKeyIssuedNotification other) { if (other == null) { return; } if (other.JWToken.Length != 0) { JWToken = other.JWToken; } if (other.room_ != null) { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } Room.MergeFrom(other.Room); } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.IsNewKey != false) { IsNewKey = other.IsNewKey; } if (other.QuantityIssued != 0) { QuantityIssued = other.QuantityIssued; } }
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 16: { status_ = (global::HOLMS.Types.Operations.Housekeeping.RoomArrivalDepartureStatus)input.ReadEnum(); break; } case 24: { IsOccupied = input.ReadBool(); break; } } } }
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 (date_ == null) { date_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } input.ReadMessage(date_); break; } } } }
public void MergeFrom(ReservationCheckInNotification other) { if (other == null) { return; } if (other.JWToken.Length != 0) { JWToken = other.JWToken; } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.checkInDate_ != null) { if (checkInDate_ == null) { checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } CheckInDate.MergeFrom(other.CheckInDate); } if (other.roomId_ != null) { if (roomId_ == null) { roomId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } RoomId.MergeFrom(other.RoomId); } if (other.guestId_ != null) { if (guestId_ == null) { guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } GuestId.MergeFrom(other.GuestId); } if (other.averageRate_ != null) { if (averageRate_ == null) { averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AverageRate.MergeFrom(other.AverageRate); } if (other.ReservationBookingNumber.Length != 0) { ReservationBookingNumber = other.ReservationBookingNumber; } if (other.KeepGuaranteeRequested != false) { KeepGuaranteeRequested = other.KeepGuaranteeRequested; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(createdAt_); break; } case 18: { if (effectiveDate_ == null) { effectiveDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } input.ReadMessage(effectiveDate_); break; } case 26: { if (housekeeper_ == null) { housekeeper_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } input.ReadMessage(housekeeper_); break; } case 34: { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(room_); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { JWToken = input.ReadString(); break; } case 18: { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(room_); break; } case 26: { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(reservation_); break; } case 32: { IsNewKey = input.ReadBool(); break; } case 40: { QuantityIssued = input.ReadUInt32(); break; } } } }
public void MergeFrom(HousekeepingRoomStatus 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.Status != 0) { Status = other.Status; } }
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; } } } }
public void MergeFrom(HousekeepingAssignment other) { if (other == null) { return; } if (other.createdAt_ != null) { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.effectiveDate_ != null) { if (effectiveDate_ == null) { effectiveDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } EffectiveDate.MergeFrom(other.EffectiveDate); } if (other.housekeeper_ != null) { if (housekeeper_ == null) { housekeeper_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } Housekeeper.MergeFrom(other.Housekeeper); } if (other.room_ != null) { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } Room.MergeFrom(other.Room); } }
public void MergeFrom(RoomAssignmentByNight 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.date_ != null) { if (date_ == null) { date_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } Date.MergeFrom(other.Date); } }
public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Operations.Rooms.Room> GetById(global::HOLMS.Types.Operations.Rooms.RoomIndicator request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { JWToken = input.ReadString(); break; } case 18: { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(reservation_); break; } case 26: { if (checkInDate_ == null) { checkInDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } input.ReadMessage(checkInDate_); break; } case 34: { if (roomId_ == null) { roomId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(roomId_); break; } case 42: { if (guestId_ == null) { guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator(); } input.ReadMessage(guestId_); break; } case 50: { if (averageRate_ == null) { averageRate_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(averageRate_); break; } case 58: { ReservationBookingNumber = input.ReadString(); break; } case 64: { KeepGuaranteeRequested = input.ReadBool(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(entityId_); break; } case 18: { BookingId = input.ReadString(); break; } case 24: { state_ = (global::HOLMS.Types.Booking.Reservations.ReservationState)input.ReadEnum(); break; } case 34: { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } input.ReadMessage(guest_); break; } case 42: { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } input.ReadMessage(dateRange_); break; } case 50: { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } input.ReadMessage(roomType_); break; } case 56: { guaranteeStatus_ = (global::HOLMS.Types.Booking.Reservations.ReservationGuaranteeStatus)input.ReadEnum(); break; } case 66: { if (tenancy_ == null) { tenancy_ = new global::HOLMS.Types.IAM.TenancyIndicator(); } input.ReadMessage(tenancy_); break; } case 74: { if (property_ == null) { property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } input.ReadMessage(property_); break; } case 80: { channel_ = (global::HOLMS.Types.Booking.Channels.Channel)input.ReadEnum(); break; } case 90: { VehiclePlateInformation = input.ReadString(); break; } case 98: { CurrentOccupiedRoomNumber = input.ReadString(); break; } case 106: { if (currentOccupiedRoom_ == null) { currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(currentOccupiedRoom_); break; } case 114: { TerminalOccupiedRoomNumber = input.ReadString(); break; } case 122: { if (terminalOccupiedRoom_ == null) { terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(terminalOccupiedRoom_); break; } case 128: { NumberAdults = input.ReadInt32(); break; } case 136: { NumberChildren = input.ReadInt32(); break; } case 146: { activeTags_.AddEntriesFrom(input, _repeated_activeTags_codec); break; } case 170: { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } input.ReadMessage(cancellationPolicy_); break; } case 178: { if (hkTimePreference_ == null) { hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime(); } input.ReadMessage(hkTimePreference_); break; } case 186: { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(createdAt_); break; } case 192: { OutstandingIssuedRoomKeys = input.ReadInt32(); break; } case 200: { OptaRoomStayIndex = input.ReadInt32(); break; } case 210: { ReservationIdFromChannel = input.ReadString(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(entityId_); break; } case 18: { BookingId = input.ReadString(); break; } case 24: { state_ = (global::HOLMS.Types.Booking.Reservations.ReservationState)input.ReadEnum(); break; } case 34: { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } input.ReadMessage(guest_); break; } case 42: { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } input.ReadMessage(dateRange_); break; } case 48: { NumberAdults = input.ReadInt32(); break; } case 56: { NumberChildren = input.ReadInt32(); break; } case 66: { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } input.ReadMessage(roomType_); break; } case 74: { additionalGuests_.AddEntriesFrom(input, _repeated_additionalGuests_codec); break; } case 88: { TaxExempt = input.ReadBool(); break; } case 96: { guaranteeStatus_ = (global::HOLMS.Types.Booking.Reservations.ReservationGuaranteeStatus)input.ReadEnum(); break; } case 106: { if (unpaidGuaranteeBalance_ == null) { unpaidGuaranteeBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(unpaidGuaranteeBalance_); break; } case 122: { if (hkTimePreference_ == null) { hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime(); } input.ReadMessage(hkTimePreference_); break; } case 130: { VehiclePlateInformation = input.ReadString(); break; } case 138: { CurrentOccupiedRoomNumber = input.ReadString(); break; } case 146: { if (currentOccupiedRoom_ == null) { currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(currentOccupiedRoom_); break; } case 154: { TerminalOccupiedRoomNumber = input.ReadString(); break; } case 162: { if (terminalOccupiedRoom_ == null) { terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(terminalOccupiedRoom_); break; } case 170: { activeTags_.AddEntriesFrom(input, _repeated_activeTags_codec); break; } case 178: { ChannelManagerId = input.ReadString(); break; } case 186: { SourceChannelId = input.ReadString(); break; } case 194: { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } input.ReadMessage(cancellationPolicy_); break; } } } }
public void MergeFrom(CompleteOpenReservation other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } if (other.State != 0) { State = other.State; } if (other.guest_ != null) { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } Guest.MergeFrom(other.Guest); } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.NumberAdults != 0) { NumberAdults = other.NumberAdults; } if (other.NumberChildren != 0) { NumberChildren = other.NumberChildren; } if (other.roomType_ != null) { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomType.MergeFrom(other.RoomType); } additionalGuests_.Add(other.additionalGuests_); if (other.TaxExempt != false) { TaxExempt = other.TaxExempt; } if (other.GuaranteeStatus != 0) { GuaranteeStatus = other.GuaranteeStatus; } if (other.unpaidGuaranteeBalance_ != null) { if (unpaidGuaranteeBalance_ == null) { unpaidGuaranteeBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } UnpaidGuaranteeBalance.MergeFrom(other.UnpaidGuaranteeBalance); } if (other.hkTimePreference_ != null) { if (hkTimePreference_ == null) { hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime(); } HkTimePreference.MergeFrom(other.HkTimePreference); } if (other.VehiclePlateInformation.Length != 0) { VehiclePlateInformation = other.VehiclePlateInformation; } if (other.CurrentOccupiedRoomNumber.Length != 0) { CurrentOccupiedRoomNumber = other.CurrentOccupiedRoomNumber; } if (other.currentOccupiedRoom_ != null) { if (currentOccupiedRoom_ == null) { currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } CurrentOccupiedRoom.MergeFrom(other.CurrentOccupiedRoom); } if (other.TerminalOccupiedRoomNumber.Length != 0) { TerminalOccupiedRoomNumber = other.TerminalOccupiedRoomNumber; } if (other.terminalOccupiedRoom_ != null) { if (terminalOccupiedRoom_ == null) { terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } TerminalOccupiedRoom.MergeFrom(other.TerminalOccupiedRoom); } activeTags_.Add(other.activeTags_); if (other.ChannelManagerId.Length != 0) { ChannelManagerId = other.ChannelManagerId; } if (other.SourceChannelId.Length != 0) { SourceChannelId = other.SourceChannelId; } if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } }
public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Operations.Rooms.Room> GetByIdAsync(global::HOLMS.Types.Operations.Rooms.RoomIndicator request, grpc::CallOptions options) { return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request)); }
public virtual grpc::AsyncUnaryCall <global::HOLMS.Types.Operations.Rooms.Room> GetByIdAsync(global::HOLMS.Types.Operations.Rooms.RoomIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { return(GetByIdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken))); }
public virtual global::HOLMS.Types.Operations.Rooms.Room GetById(global::HOLMS.Types.Operations.Rooms.RoomIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken)) { return(GetById(request, new CallOptions(headers, deadline, cancellationToken))); }
public void MergeFrom(Room other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.Description.Length != 0) { Description = other.Description; } if (other.AdditionalDescription.Length != 0) { AdditionalDescription = other.AdditionalDescription; } if (other.NightsOccupiedCounter != 0) { NightsOccupiedCounter = other.NightsOccupiedCounter; } if (other.lastCleanedAt_ != null) { if (lastCleanedAt_ == null) { lastCleanedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } LastCleanedAt.MergeFrom(other.LastCleanedAt); } if (other.OccupancyState != 0) { OccupancyState = other.OccupancyState; } if (other.MaintenanceState != 0) { MaintenanceState = other.MaintenanceState; } if (other.MaintenanceRequest != 0) { MaintenanceRequest = other.MaintenanceRequest; } if (other.roomTypeId_ != null) { if (roomTypeId_ == null) { roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator(); } RoomTypeId.MergeFrom(other.RoomTypeId); } if (other.RoomTypeName.Length != 0) { RoomTypeName = other.RoomTypeName; } if (other.connectedRoom_ != null) { if (connectedRoom_ == null) { connectedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } ConnectedRoom.MergeFrom(other.ConnectedRoom); } if (other.TrunkId.Length != 0) { TrunkId = other.TrunkId; } if (other.occupyingReservation_ != null) { if (occupyingReservation_ == null) { occupyingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } OccupyingReservation.MergeFrom(other.OccupyingReservation); } if (other.KcrRoomNumber.Length != 0) { KcrRoomNumber = other.KcrRoomNumber; } if (other.RoomStatusCode.Length != 0) { RoomStatusCode = other.RoomStatusCode; } if (other.roomStatus_ != null) { if (roomStatus_ == null) { roomStatus_ = new global::HOLMS.Types.TenancyConfig.RoomStatus(); } RoomStatus.MergeFrom(other.RoomStatus); } if (other.markedDirtyAt_ != null) { if (markedDirtyAt_ == null) { markedDirtyAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } MarkedDirtyAt.MergeFrom(other.MarkedDirtyAt); } if (other.IsLeftDirty != false) { IsLeftDirty = other.IsLeftDirty; } }
public void MergeFrom(ReservationSummary other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } if (other.State != 0) { State = other.State; } if (other.guest_ != null) { if (guest_ == null) { guest_ = new global::HOLMS.Types.CRM.Guests.Guest(); } Guest.MergeFrom(other.Guest); } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.roomType_ != null) { if (roomType_ == null) { roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomType.MergeFrom(other.RoomType); } if (other.GuaranteeStatus != 0) { GuaranteeStatus = other.GuaranteeStatus; } if (other.tenancy_ != null) { if (tenancy_ == null) { tenancy_ = new global::HOLMS.Types.IAM.TenancyIndicator(); } Tenancy.MergeFrom(other.Tenancy); } if (other.property_ != null) { if (property_ == null) { property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } Property.MergeFrom(other.Property); } if (other.Channel != 0) { Channel = other.Channel; } if (other.VehiclePlateInformation.Length != 0) { VehiclePlateInformation = other.VehiclePlateInformation; } if (other.CurrentOccupiedRoomNumber.Length != 0) { CurrentOccupiedRoomNumber = other.CurrentOccupiedRoomNumber; } if (other.currentOccupiedRoom_ != null) { if (currentOccupiedRoom_ == null) { currentOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } CurrentOccupiedRoom.MergeFrom(other.CurrentOccupiedRoom); } if (other.TerminalOccupiedRoomNumber.Length != 0) { TerminalOccupiedRoomNumber = other.TerminalOccupiedRoomNumber; } if (other.terminalOccupiedRoom_ != null) { if (terminalOccupiedRoom_ == null) { terminalOccupiedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } TerminalOccupiedRoom.MergeFrom(other.TerminalOccupiedRoom); } if (other.NumberAdults != 0) { NumberAdults = other.NumberAdults; } if (other.NumberChildren != 0) { NumberChildren = other.NumberChildren; } activeTags_.Add(other.activeTags_); if (other.cancellationPolicy_ != null) { if (cancellationPolicy_ == null) { cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator(); } CancellationPolicy.MergeFrom(other.CancellationPolicy); } if (other.hkTimePreference_ != null) { if (hkTimePreference_ == null) { hkTimePreference_ = new global::HOLMS.Types.Operations.Housekeeping.HousekeepingTime(); } HkTimePreference.MergeFrom(other.HkTimePreference); } if (other.createdAt_ != null) { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.OutstandingIssuedRoomKeys != 0) { OutstandingIssuedRoomKeys = other.OutstandingIssuedRoomKeys; } if (other.OptaRoomStayIndex != 0) { OptaRoomStayIndex = other.OptaRoomStayIndex; } if (other.ReservationIdFromChannel.Length != 0) { ReservationIdFromChannel = other.ReservationIdFromChannel; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(entityId_); break; } case 18: { RoomNumber = input.ReadString(); break; } case 26: { Description = input.ReadString(); break; } case 34: { AdditionalDescription = input.ReadString(); break; } case 40: { NightsOccupiedCounter = input.ReadInt32(); break; } case 50: { if (lastCleanedAt_ == null) { lastCleanedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(lastCleanedAt_); break; } case 56: { occupancyState_ = (global::HOLMS.Types.Operations.RoomOccupancyState)input.ReadEnum(); break; } case 64: { maintenanceState_ = (global::HOLMS.Types.Operations.RoomMaintenanceState)input.ReadEnum(); break; } case 72: { maintenanceRequest_ = (global::HOLMS.Types.Operations.RoomMaintenanceRequest)input.ReadEnum(); break; } case 82: { if (roomTypeId_ == null) { roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator(); } input.ReadMessage(roomTypeId_); break; } case 90: { RoomTypeName = input.ReadString(); break; } case 98: { if (connectedRoom_ == null) { connectedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator(); } input.ReadMessage(connectedRoom_); break; } case 106: { TrunkId = input.ReadString(); break; } case 114: { if (occupyingReservation_ == null) { occupyingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(occupyingReservation_); break; } case 122: { KcrRoomNumber = input.ReadString(); break; } case 130: { RoomStatusCode = input.ReadString(); break; } case 138: { if (roomStatus_ == null) { roomStatus_ = new global::HOLMS.Types.TenancyConfig.RoomStatus(); } input.ReadMessage(roomStatus_); break; } case 146: { if (markedDirtyAt_ == null) { markedDirtyAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(markedDirtyAt_); break; } case 152: { IsLeftDirty = input.ReadBool(); break; } } } }
public virtual global::HOLMS.Types.Operations.Rooms.Room GetById(global::HOLMS.Types.Operations.Rooms.RoomIndicator request, grpc::CallOptions options) { return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request)); }