public void MergeFrom(IncidentalItemReservation other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.IncidentalItemReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.reservedItem_ != null) { if (reservedItem_ == null) { reservedItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } ReservedItem.MergeFrom(other.ReservedItem); } if (other.AmountReserved != 0) { AmountReserved = other.AmountReserved; } if (other.totalCost_ != null) { if (totalCost_ == null) { totalCost_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } TotalCost.MergeFrom(other.TotalCost); } if (other.IncidentalItemName.Length != 0) { IncidentalItemName = other.IncidentalItemName; } }
public void MergeFrom(IncidentalItemAvailabilityQuery other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.IncidentalItemReservationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.IsForExistingIiReservation != false) { IsForExistingIiReservation = other.IsForExistingIiReservation; } if (other.dateRange_ != null) { if (dateRange_ == null) { dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRange.MergeFrom(other.DateRange); } if (other.reservedItem_ != null) { if (reservedItem_ == null) { reservedItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } ReservedItem.MergeFrom(other.ReservedItem); } if (other.QuantityHeldByExistingReservation != 0) { QuantityHeldByExistingReservation = other.QuantityHeldByExistingReservation; } }