public void MergeFrom(ReservationNote other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationNoteIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.sourceNote_ != null) { if (sourceNote_ == null) { sourceNote_ = new global::HOLMS.Types.Operations.NoteRequests.NoteRequestIndicator(); } SourceNote.MergeFrom(other.SourceNote); } if (other.Category != 0) { Category = other.Category; } if (other.AdditionalNote.Length != 0) { AdditionalNote = other.AdditionalNote; } if (other.IncludeOnConfirmation != false) { IncludeOnConfirmation = other.IncludeOnConfirmation; } if (other.lodgingReservation_ != null) { if (lodgingReservation_ == null) { lodgingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } LodgingReservation.MergeFrom(other.LodgingReservation); } if (other.SourceNoteSubject.Length != 0) { SourceNoteSubject = other.SourceNoteSubject; } if (other.IsFulfilled != false) { IsFulfilled = other.IsFulfilled; } }
public void MergeFrom(ReservationNote other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Booking.Indicators.ReservationNoteIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.sourceNote_ != null) { if (sourceNote_ == null) { sourceNote_ = new global::HOLMS.Types.Operations.NoteRequests.NoteRequestIndicator(); } SourceNote.MergeFrom(other.SourceNote); } if (other.Category != 0) { Category = other.Category; } if (other.AdditionalNote.Length != 0) { AdditionalNote = other.AdditionalNote; } if (other.IncludeOnConfirmation != false) { IncludeOnConfirmation = other.IncludeOnConfirmation; } if (other.lodgingReservation_ != null) { if (lodgingReservation_ == null) { lodgingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } LodgingReservation.MergeFrom(other.LodgingReservation); } if (other.SourceNoteSubject.Length != 0) { SourceNoteSubject = other.SourceNoteSubject; } if (other.IsFulfilled != false) { IsFulfilled = other.IsFulfilled; } if (other.PermanentOnGuestRecord != false) { PermanentOnGuestRecord = other.PermanentOnGuestRecord; } if (other.incidentalItemId_ != null) { if (incidentalItemId_ == null) { incidentalItemId_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } IncidentalItemId.MergeFrom(other.IncidentalItemId); } if (other.incStartDate_ != null) { if (incStartDate_ == null) { incStartDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } IncStartDate.MergeFrom(other.IncStartDate); } if (other.incEndDate_ != null) { if (incEndDate_ == null) { incEndDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } IncEndDate.MergeFrom(other.IncEndDate); } }