public void MergeFrom(OverridePricing other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.overridePrice_ != null)
     {
         if (overridePrice_ == null)
         {
             overridePrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         OverridePrice.MergeFrom(other.OverridePrice);
     }
 }
Beispiel #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 18: {
                    if (date_ == null)
                    {
                        date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(date_);
                    break;
                }

                case 24: {
                    Available = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (rateSchedule_ == null)
                    {
                        rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
                    }
                    input.ReadMessage(rateSchedule_);
                    break;
                }

                case 42: {
                    if (nightlyPrice_ == null)
                    {
                        nightlyPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(nightlyPrice_);
                    break;
                }

                case 50: {
                    requiredTags_.AddEntriesFrom(input, _repeated_requiredTags_codec);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 16: {
                    HoldsRequested = input.ReadUInt32();
                    break;
                }

                case 24: {
                    HoldsCommitted = input.ReadUInt32();
                    break;
                }
                }
            }
        }
Beispiel #4
0
 public void MergeFrom(GenesisPriceEstimateRequestDTO other)
 {
     if (other == null)
     {
         return;
     }
     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.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.NumberAdultGuests != 0)
     {
         NumberAdultGuests = other.NumberAdultGuests;
     }
     reservationTags_.Add(other.reservationTags_);
     if (other.IsMockPriceRequiredForGroup != false)
     {
         IsMockPriceRequiredForGroup = other.IsMockPriceRequiredForGroup;
     }
 }
 public void MergeFrom(OTAProviderRoomTypes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Channels.OTAProviderRoomTypeIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.otaProviderId_ != null)
     {
         if (otaProviderId_ == null)
         {
             otaProviderId_ = new global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator();
         }
         OtaProviderId.MergeFrom(other.OtaProviderId);
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
 }
Beispiel #6
0
 public void MergeFrom(GroupBookingHold other)
 {
     if (other == null)
     {
         return;
     }
     if (other.booking_ != null)
     {
         if (booking_ == null)
         {
             booking_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         Booking.MergeFrom(other.Booking);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.HeldQuantity != 0)
     {
         HeldQuantity = other.HeldQuantity;
     }
     if (other.OpenReservations != 0)
     {
         OpenReservations = other.OpenReservations;
     }
 }
 public void MergeFrom(LodgingQuantitySnapshotResponseRecord other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.quantities_ != null)
     {
         if (quantities_ == null)
         {
             quantities_ = new global::HOLMS.Types.Supply.Snapshot.LodgingSnapshotQuantity();
         }
         Quantities.MergeFrom(other.Quantities);
     }
 }
Beispiel #8
0
 public void MergeFrom(NoteRequestRoomTypes other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.NoteRequestsRoomTypes.NoteRequestRoomTypeIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.noteRequestId_ != null)
     {
         if (noteRequestId_ == null)
         {
             noteRequestId_ = new global::HOLMS.Types.Operations.NoteRequests.NoteRequestIndicator();
         }
         NoteRequestId.MergeFrom(other.NoteRequestId);
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
 }
Beispiel #9
0
 public void MergeFrom(HoldAdjustment other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.AdjustmentAmount != 0)
     {
         AdjustmentAmount = other.AdjustmentAmount;
     }
 }
Beispiel #10
0
 public void MergeFrom(PriceUpdateRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.monetaryAmount_ != null)
     {
         if (monetaryAmount_ == null)
         {
             monetaryAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         MonetaryAmount.MergeFrom(other.MonetaryAmount);
     }
 }
Beispiel #11
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 18: {
                    if (reservation_ == null)
                    {
                        reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservation_);
                    break;
                }

                case 26: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 48: {
                    AdultGuestCount = input.ReadInt32();
                    break;
                }

                case 56: {
                    ChildGuestCount = input.ReadInt32();
                    break;
                }

                case 66: {
                    tags_.AddEntriesFrom(input, _repeated_tags_codec);
                    break;
                }
                }
            }
        }
Beispiel #12
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 18: {
                    if (date_ == null)
                    {
                        date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(date_);
                    break;
                }

                case 26: {
                    if (offeredPrice_ == null)
                    {
                        offeredPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(offeredPrice_);
                    break;
                }

                case 34: {
                    if (quantities_ == null)
                    {
                        quantities_ = new global::HOLMS.Types.Supply.Snapshot.LodgingSnapshotQuantity();
                    }
                    input.ReadMessage(quantities_);
                    break;
                }

                case 42: {
                    requiredReservationTags_.AddEntriesFrom(input, _repeated_requiredReservationTags_codec);
                    break;
                }
                }
            }
        }
 public void MergeFrom(PricedOfferedLodging other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.Available != 0)
     {
         Available = other.Available;
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     if (other.nightlyPrice_ != null)
     {
         if (nightlyPrice_ == null)
         {
             nightlyPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         NightlyPrice.MergeFrom(other.NightlyPrice);
     }
     requiredTags_.Add(other.requiredTags_);
     if (other.ReleasableHolds != 0)
     {
         ReleasableHolds = other.ReleasableHolds;
     }
     if (other.IsPriceOverridden != false)
     {
         IsPriceOverridden = other.IsPriceOverridden;
     }
 }
Beispiel #14
0
 public void MergeFrom(FolioChargePostedNotification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.JWToken.Length != 0)
     {
         JWToken = other.JWToken;
     }
     if (other.opsdate_ != null)
     {
         if (opsdate_ == null)
         {
             opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Opsdate.MergeFrom(other.Opsdate);
     }
     if (other.pretaxLodgingCharge_ != null)
     {
         if (pretaxLodgingCharge_ == null)
         {
             pretaxLodgingCharge_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PretaxLodgingCharge.MergeFrom(other.PretaxLodgingCharge);
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
     if (other.guestId_ != null)
     {
         if (guestId_ == null)
         {
             guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         GuestId.MergeFrom(other.GuestId);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (eventBookingHold_ == null)
                    {
                        eventBookingHold_ = new global::HOLMS.Types.Supply.EventBookingHoldIndicator();
                    }
                    input.ReadMessage(eventBookingHold_);
                    break;
                }

                case 18: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 26: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 34: {
                    if (reservationId_ == null)
                    {
                        reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservationId_);
                    break;
                }
                }
            }
        }
Beispiel #16
0
 public void MergeFrom(BookGenesisReservationRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.sourceChannelInfo_ != null)
     {
         if (sourceChannelInfo_ == null)
         {
             sourceChannelInfo_ = new global::HOLMS.Types.Booking.Channels.ChannelInfo();
         }
         SourceChannelInfo.MergeFrom(other.SourceChannelInfo);
     }
     if (other.guest_ != null)
     {
         if (guest_ == null)
         {
             guest_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
         }
         Guest.MergeFrom(other.Guest);
     }
     if (other.NumberAdults != 0)
     {
         NumberAdults = other.NumberAdults;
     }
     if (other.NumberChildren != 0)
     {
         NumberChildren = other.NumberChildren;
     }
     reservationTags_.Add(other.reservationTags_);
 }
Beispiel #17
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (dateRange_ == null)
                    {
                        dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
                    }
                    input.ReadMessage(dateRange_);
                    break;
                }

                case 18: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 32: {
                    NumberAdultGuests = input.ReadInt32();
                    break;
                }

                case 42: {
                    reservationTags_.AddEntriesFrom(input, _repeated_reservationTags_codec);
                    break;
                }

                case 48: {
                    IsMockPriceRequiredForGroup = input.ReadBool();
                    break;
                }
                }
            }
        }
Beispiel #18
0
 public void MergeFrom(OpenPriceEstimateRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.TaxExempt != false)
     {
         TaxExempt = other.TaxExempt;
     }
     if (other.AdultGuestCount != 0)
     {
         AdultGuestCount = other.AdultGuestCount;
     }
     reservationTags_.Add(other.reservationTags_);
     if (other.IsMockPriceRequiredForGroup != false)
     {
         IsMockPriceRequiredForGroup = other.IsMockPriceRequiredForGroup;
     }
 }
Beispiel #19
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (booking_ == null)
                    {
                        booking_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
                    }
                    input.ReadMessage(booking_);
                    break;
                }

                case 18: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 24: {
                    HeldQuantity = input.ReadUInt32();
                    break;
                }

                case 32: {
                    OpenReservations = input.ReadUInt32();
                    break;
                }
                }
            }
        }
Beispiel #20
0
        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.NoteRequestsRoomTypes.NoteRequestRoomTypeIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    if (noteRequestId_ == null)
                    {
                        noteRequestId_ = new global::HOLMS.Types.Operations.NoteRequests.NoteRequestIndicator();
                    }
                    input.ReadMessage(noteRequestId_);
                    break;
                }

                case 26: {
                    if (roomTypeId_ == null)
                    {
                        roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomTypeId_);
                    break;
                }
                }
            }
        }
        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.Booking.Channels.OTAProviderRoomTypeIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    if (otaProviderId_ == null)
                    {
                        otaProviderId_ = new global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator();
                    }
                    input.ReadMessage(otaProviderId_);
                    break;
                }

                case 26: {
                    if (roomTypeId_ == null)
                    {
                        roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomTypeId_);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 18: {
                    if (date_ == null)
                    {
                        date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(date_);
                    break;
                }

                case 26: {
                    if (overridePrice_ == null)
                    {
                        overridePrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(overridePrice_);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (roomType_ == null)
                    {
                        roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomType_);
                    break;
                }

                case 18: {
                    if (date_ == null)
                    {
                        date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(date_);
                    break;
                }

                case 34: {
                    if (quantities_ == null)
                    {
                        quantities_ = new global::HOLMS.Types.Supply.Snapshot.LodgingSnapshotQuantity();
                    }
                    input.ReadMessage(quantities_);
                    break;
                }
                }
            }
        }
Beispiel #24
0
 public void MergeFrom(ReservationFRPAmendmentRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.AdultGuestCount != 0)
     {
         AdultGuestCount = other.AdultGuestCount;
     }
     if (other.ChildGuestCount != 0)
     {
         ChildGuestCount = other.ChildGuestCount;
     }
     tags_.Add(other.tags_);
 }
Beispiel #25
0
 public void MergeFrom(LodgingSnapshotResponseRecord other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.date_ != null)
     {
         if (date_ == null)
         {
             date_ = new global::HOLMS.Types.Primitive.PbLocalDate();
         }
         Date.MergeFrom(other.Date);
     }
     if (other.offeredPrice_ != null)
     {
         if (offeredPrice_ == null)
         {
             offeredPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         OfferedPrice.MergeFrom(other.OfferedPrice);
     }
     if (other.quantities_ != null)
     {
         if (quantities_ == null)
         {
             quantities_ = new global::HOLMS.Types.Supply.Snapshot.LodgingSnapshotQuantity();
         }
         Quantities.MergeFrom(other.Quantities);
     }
     requiredReservationTags_.Add(other.requiredReservationTags_);
 }
 public void MergeFrom(UnassignedBookingHolds other)
 {
     if (other == null)
     {
         return;
     }
     if (other.eventBookingHold_ != null)
     {
         if (eventBookingHold_ == null)
         {
             eventBookingHold_ = new global::HOLMS.Types.Supply.EventBookingHoldIndicator();
         }
         EventBookingHold.MergeFrom(other.EventBookingHold);
     }
     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.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.reservationId_ != null)
     {
         if (reservationId_ == null)
         {
             reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         ReservationId.MergeFrom(other.ReservationId);
     }
 }
 public void MergeFrom(GroupBookingRoomTypeQuantity other)
 {
     if (other == null)
     {
         return;
     }
     if (other.roomType_ != null)
     {
         if (roomType_ == null)
         {
             roomType_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomType.MergeFrom(other.RoomType);
     }
     if (other.HoldsRequested != 0)
     {
         HoldsRequested = other.HoldsRequested;
     }
     if (other.HoldsCommitted != 0)
     {
         HoldsCommitted = other.HoldsCommitted;
     }
 }
Beispiel #28
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    JWToken = input.ReadString();
                    break;
                }

                case 18: {
                    if (opsdate_ == null)
                    {
                        opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate();
                    }
                    input.ReadMessage(opsdate_);
                    break;
                }

                case 26: {
                    if (pretaxLodgingCharge_ == null)
                    {
                        pretaxLodgingCharge_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
                    }
                    input.ReadMessage(pretaxLodgingCharge_);
                    break;
                }

                case 34: {
                    if (roomTypeId_ == null)
                    {
                        roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomTypeId_);
                    break;
                }

                case 42: {
                    if (guestId_ == null)
                    {
                        guestId_ = new global::HOLMS.Types.CRM.Guests.GuestIndicator();
                    }
                    input.ReadMessage(guestId_);
                    break;
                }

                case 50: {
                    if (reservationId_ == null)
                    {
                        reservationId_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(reservationId_);
                    break;
                }
                }
            }
        }
        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.Rooms.RoomIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    RoomNumber = input.ReadString();
                    break;
                }

                case 26: {
                    Description = input.ReadString();
                    break;
                }

                case 34: {
                    AdditionalDescription = input.ReadString();
                    break;
                }

                case 40: {
                    NightsOccupiedCounter = input.ReadInt32();
                    break;
                }

                case 50: {
                    if (lastCleanedAt_ == null)
                    {
                        lastCleanedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(lastCleanedAt_);
                    break;
                }

                case 56: {
                    occupancyState_ = (global::HOLMS.Types.Operations.RoomOccupancyState)input.ReadEnum();
                    break;
                }

                case 64: {
                    maintenanceState_ = (global::HOLMS.Types.Operations.RoomMaintenanceState)input.ReadEnum();
                    break;
                }

                case 72: {
                    maintenanceRequest_ = (global::HOLMS.Types.Operations.RoomMaintenanceRequest)input.ReadEnum();
                    break;
                }

                case 82: {
                    if (roomTypeId_ == null)
                    {
                        roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
                    }
                    input.ReadMessage(roomTypeId_);
                    break;
                }

                case 90: {
                    RoomTypeName = input.ReadString();
                    break;
                }

                case 98: {
                    if (connectedRoom_ == null)
                    {
                        connectedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
                    }
                    input.ReadMessage(connectedRoom_);
                    break;
                }

                case 106: {
                    TrunkId = input.ReadString();
                    break;
                }

                case 114: {
                    if (occupyingReservation_ == null)
                    {
                        occupyingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(occupyingReservation_);
                    break;
                }

                case 122: {
                    KcrRoomNumber = input.ReadString();
                    break;
                }

                case 130: {
                    RoomStatusCode = input.ReadString();
                    break;
                }

                case 138: {
                    if (roomStatus_ == null)
                    {
                        roomStatus_ = new global::HOLMS.Types.TenancyConfig.RoomStatus();
                    }
                    input.ReadMessage(roomStatus_);
                    break;
                }

                case 146: {
                    if (markedDirtyAt_ == null)
                    {
                        markedDirtyAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
                    }
                    input.ReadMessage(markedDirtyAt_);
                    break;
                }

                case 152: {
                    IsLeftDirty = input.ReadBool();
                    break;
                }
                }
            }
        }
 public void MergeFrom(Room other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.RoomNumber.Length != 0)
     {
         RoomNumber = other.RoomNumber;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.AdditionalDescription.Length != 0)
     {
         AdditionalDescription = other.AdditionalDescription;
     }
     if (other.NightsOccupiedCounter != 0)
     {
         NightsOccupiedCounter = other.NightsOccupiedCounter;
     }
     if (other.lastCleanedAt_ != null)
     {
         if (lastCleanedAt_ == null)
         {
             lastCleanedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         LastCleanedAt.MergeFrom(other.LastCleanedAt);
     }
     if (other.OccupancyState != 0)
     {
         OccupancyState = other.OccupancyState;
     }
     if (other.MaintenanceState != 0)
     {
         MaintenanceState = other.MaintenanceState;
     }
     if (other.MaintenanceRequest != 0)
     {
         MaintenanceRequest = other.MaintenanceRequest;
     }
     if (other.roomTypeId_ != null)
     {
         if (roomTypeId_ == null)
         {
             roomTypeId_ = new global::HOLMS.Types.Supply.RoomTypes.RoomTypeIndicator();
         }
         RoomTypeId.MergeFrom(other.RoomTypeId);
     }
     if (other.RoomTypeName.Length != 0)
     {
         RoomTypeName = other.RoomTypeName;
     }
     if (other.connectedRoom_ != null)
     {
         if (connectedRoom_ == null)
         {
             connectedRoom_ = new global::HOLMS.Types.Operations.Rooms.RoomIndicator();
         }
         ConnectedRoom.MergeFrom(other.ConnectedRoom);
     }
     if (other.TrunkId.Length != 0)
     {
         TrunkId = other.TrunkId;
     }
     if (other.occupyingReservation_ != null)
     {
         if (occupyingReservation_ == null)
         {
             occupyingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         OccupyingReservation.MergeFrom(other.OccupyingReservation);
     }
     if (other.KcrRoomNumber.Length != 0)
     {
         KcrRoomNumber = other.KcrRoomNumber;
     }
     if (other.RoomStatusCode.Length != 0)
     {
         RoomStatusCode = other.RoomStatusCode;
     }
     if (other.roomStatus_ != null)
     {
         if (roomStatus_ == null)
         {
             roomStatus_ = new global::HOLMS.Types.TenancyConfig.RoomStatus();
         }
         RoomStatus.MergeFrom(other.RoomStatus);
     }
     if (other.markedDirtyAt_ != null)
     {
         if (markedDirtyAt_ == null)
         {
             markedDirtyAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         MarkedDirtyAt.MergeFrom(other.MarkedDirtyAt);
     }
     if (other.IsLeftDirty != false)
     {
         IsLeftDirty = other.IsLeftDirty;
     }
 }