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.RoomClaims.RoomClaimIndicator(); } input.ReadMessage(entityId_); break; } case 16: { claimType_ = (global::HOLMS.Types.Operations.RoomClaims.RoomClaimType)input.ReadEnum(); break; } case 26: { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } input.ReadMessage(dateRange_); break; } case 34: { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.Room(); } input.ReadMessage(room_); break; } case 42: { MaintenanceHoldReason = input.ReadString(); break; } case 50: { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(reservation_); break; } } } }
public void MergeFrom(ContinuousRoomClaim other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Operations.RoomClaims.RoomClaimIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.ClaimType != 0) { ClaimType = other.ClaimType; } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.room_ != null) { if (room_ == null) { room_ = new global::HOLMS.Types.Operations.Rooms.Room(); } Room.MergeFrom(other.Room); } if (other.MaintenanceHoldReason.Length != 0) { MaintenanceHoldReason = other.MaintenanceHoldReason; } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } }