public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(amount_); break; } case 18: { Narration = input.ReadString(); break; } case 24: { chargeCreditType_ = (global::HOLMS.Types.Folio.ChargeCreditType)input.ReadEnum(); break; } case 34: { if (effectiveForOpsdate_ == null) { effectiveForOpsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } input.ReadMessage(effectiveForOpsdate_); break; } case 42: { if (effectiveAtClock_ == null) { effectiveAtClock_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(effectiveAtClock_); break; } case 50: { if (incidentalItem_ == null) { incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } input.ReadMessage(incidentalItem_); break; } case 58: { if (incurredBy_ == null) { incurredBy_ = new global::HOLMS.Types.Folio.FolioIndicator(); } input.ReadMessage(incurredBy_); break; } case 64: { issuanceSchedule_ = (global::HOLMS.Types.Folio.FolioAtomicChargeIssuanceSchedule)input.ReadEnum(); break; } case 74: { if (enteredBy_ == null) { enteredBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } input.ReadMessage(enteredBy_); break; } case 82: { if (id_ == null) { id_ = new global::HOLMS.Types.Primitive.Uuid(); } input.ReadMessage(id_); break; } case 90: { if (taxes_ == null) { taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(taxes_); break; } case 98: { if (fees_ == null) { fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(fees_); break; } case 106: { currentTaxAssessments_.AddEntriesFrom(input, _repeated_currentTaxAssessments_codec); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (reservationId_ == null) { reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(reservationId_); break; } case 16: { masterFolioStatus_ = (global::HOLMS.Types.Folio.MasterFolioStatus)input.ReadEnum(); break; } case 26: { if (masterFolio_ == null) { masterFolio_ = new global::HOLMS.Types.Folio.FolioIndicator(); } input.ReadMessage(masterFolio_); break; } case 42: { clientFolios_.AddEntriesFrom(input, _repeated_clientFolios_codec); break; } case 48: { guaranteeStatus_ = (global::HOLMS.Types.Folio.Guarantees.ReservationGuaranteeStatus)input.ReadEnum(); break; } case 58: { if (guaranteeDueOn_ == null) { guaranteeDueOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } input.ReadMessage(guaranteeDueOn_); break; } case 66: { if (hostProperty_ == null) { hostProperty_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } input.ReadMessage(hostProperty_); break; } case 72: { masterFolioState_ = (global::HOLMS.Types.Booking.Reservations.ReservationState)input.ReadEnum(); break; } case 82: { clientFolioReservations_.AddEntriesFrom(input, _repeated_clientFolioReservations_codec); break; } case 90: { if (masterDateRange_ == null) { masterDateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } input.ReadMessage(masterDateRange_); break; } } } }
public void MergeFrom(FolioAtomicCharge other) { if (other == null) { return; } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.Narration.Length != 0) { Narration = other.Narration; } if (other.ChargeCreditType != 0) { ChargeCreditType = other.ChargeCreditType; } if (other.effectiveForOpsdate_ != null) { if (effectiveForOpsdate_ == null) { effectiveForOpsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } EffectiveForOpsdate.MergeFrom(other.EffectiveForOpsdate); } if (other.effectiveAtClock_ != null) { if (effectiveAtClock_ == null) { effectiveAtClock_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EffectiveAtClock.MergeFrom(other.EffectiveAtClock); } if (other.incidentalItem_ != null) { if (incidentalItem_ == null) { incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } IncidentalItem.MergeFrom(other.IncidentalItem); } if (other.incurredBy_ != null) { if (incurredBy_ == null) { incurredBy_ = new global::HOLMS.Types.Folio.FolioIndicator(); } IncurredBy.MergeFrom(other.IncurredBy); } if (other.IssuanceSchedule != 0) { IssuanceSchedule = other.IssuanceSchedule; } if (other.enteredBy_ != null) { if (enteredBy_ == null) { enteredBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } EnteredBy.MergeFrom(other.EnteredBy); } if (other.id_ != null) { if (id_ == null) { id_ = new global::HOLMS.Types.Primitive.Uuid(); } Id.MergeFrom(other.Id); } if (other.taxes_ != null) { if (taxes_ == null) { taxes_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Taxes.MergeFrom(other.Taxes); } if (other.fees_ != null) { if (fees_ == null) { fees_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Fees.MergeFrom(other.Fees); } currentTaxAssessments_.Add(other.currentTaxAssessments_); }
public void MergeFrom(ReservationFolioSummary other) { if (other == null) { return; } if (other.reservationId_ != null) { if (reservationId_ == null) { reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } ReservationId.MergeFrom(other.ReservationId); } if (other.MasterFolioStatus != 0) { MasterFolioStatus = other.MasterFolioStatus; } if (other.masterFolio_ != null) { if (masterFolio_ == null) { masterFolio_ = new global::HOLMS.Types.Folio.FolioIndicator(); } MasterFolio.MergeFrom(other.MasterFolio); } clientFolios_.Add(other.clientFolios_); if (other.GuaranteeStatus != 0) { GuaranteeStatus = other.GuaranteeStatus; } if (other.guaranteeDueOn_ != null) { if (guaranteeDueOn_ == null) { guaranteeDueOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } GuaranteeDueOn.MergeFrom(other.GuaranteeDueOn); } if (other.hostProperty_ != null) { if (hostProperty_ == null) { hostProperty_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator(); } HostProperty.MergeFrom(other.HostProperty); } if (other.MasterFolioState != 0) { MasterFolioState = other.MasterFolioState; } clientFolioReservations_.Add(other.clientFolioReservations_); if (other.masterDateRange_ != null) { if (masterDateRange_ == null) { masterDateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } MasterDateRange.MergeFrom(other.MasterDateRange); } }