public void MergeFrom(ReservationCreationSummary other) { if (other == null) { return; } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } 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.NumberAdults != 0) { NumberAdults = other.NumberAdults; } if (other.NumberChildren != 0) { NumberChildren = other.NumberChildren; } if (other.priceEstimate_ != null) { if (priceEstimate_ == null) { priceEstimate_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate(); } PriceEstimate.MergeFrom(other.PriceEstimate); } tags_.Add(other.tags_); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } input.ReadMessage(reservation_); break; } case 18: { BookingId = input.ReadString(); break; } case 26: { if (dateRangePrior_ == null) { dateRangePrior_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } input.ReadMessage(dateRangePrior_); break; } case 34: { if (roomTypePrior_ == null) { roomTypePrior_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } input.ReadMessage(roomTypePrior_); break; } case 40: { NumberAdultsPrior = input.ReadUInt32(); break; } case 48: { NumberChildrenPrior = input.ReadUInt32(); break; } case 66: { if (priceEstimatePrior_ == null) { priceEstimatePrior_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate(); } input.ReadMessage(priceEstimatePrior_); break; } case 74: { if (dateRangeLatter_ == null) { dateRangeLatter_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } input.ReadMessage(dateRangeLatter_); break; } case 82: { if (roomTypeLatter_ == null) { roomTypeLatter_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } input.ReadMessage(roomTypeLatter_); break; } case 88: { NumberAdultsLatter = input.ReadUInt32(); break; } case 96: { NumberChildrenLatter = input.ReadUInt32(); break; } case 114: { if (priceEstimateLatter_ == null) { priceEstimateLatter_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate(); } input.ReadMessage(priceEstimateLatter_); break; } case 122: { tagsPrior_.AddEntriesFrom(input, _repeated_tagsPrior_codec); break; } case 130: { tagsLatter_.AddEntriesFrom(input, _repeated_tagsLatter_codec); break; } } } }
public void MergeFrom(ReservationAmendmentSummary other) { if (other == null) { return; } if (other.reservation_ != null) { if (reservation_ == null) { reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } Reservation.MergeFrom(other.Reservation); } if (other.BookingId.Length != 0) { BookingId = other.BookingId; } if (other.dateRangePrior_ != null) { if (dateRangePrior_ == null) { dateRangePrior_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRangePrior.MergeFrom(other.DateRangePrior); } if (other.roomTypePrior_ != null) { if (roomTypePrior_ == null) { roomTypePrior_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomTypePrior.MergeFrom(other.RoomTypePrior); } if (other.NumberAdultsPrior != 0) { NumberAdultsPrior = other.NumberAdultsPrior; } if (other.NumberChildrenPrior != 0) { NumberChildrenPrior = other.NumberChildrenPrior; } if (other.priceEstimatePrior_ != null) { if (priceEstimatePrior_ == null) { priceEstimatePrior_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate(); } PriceEstimatePrior.MergeFrom(other.PriceEstimatePrior); } if (other.dateRangeLatter_ != null) { if (dateRangeLatter_ == null) { dateRangeLatter_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } DateRangeLatter.MergeFrom(other.DateRangeLatter); } if (other.roomTypeLatter_ != null) { if (roomTypeLatter_ == null) { roomTypeLatter_ = new global::HOLMS.Types.Supply.RoomTypes.RoomType(); } RoomTypeLatter.MergeFrom(other.RoomTypeLatter); } if (other.NumberAdultsLatter != 0) { NumberAdultsLatter = other.NumberAdultsLatter; } if (other.NumberChildrenLatter != 0) { NumberChildrenLatter = other.NumberChildrenLatter; } if (other.priceEstimateLatter_ != null) { if (priceEstimateLatter_ == null) { priceEstimateLatter_ = new global::HOLMS.Types.Booking.Pricing.ReservationPriceEstimate(); } PriceEstimateLatter.MergeFrom(other.PriceEstimateLatter); } tagsPrior_.Add(other.tagsPrior_); tagsLatter_.Add(other.tagsLatter_); }