Exemple #1
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 (rateSchedule_ == null)
                    {
                        rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
                    }
                    input.ReadMessage(rateSchedule_);
                    break;
                }

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

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

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

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

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

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

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

                case 50: {
                    if (overlaidOn_ == null)
                    {
                        overlaidOn_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
                    }
                    input.ReadMessage(overlaidOn_);
                    break;
                }
                }
            }
        }
Exemple #4
0
 public void MergeFrom(ReservationDefaults other)
 {
     if (other == null)
     {
         return;
     }
     if (other.defaultRateSchedule_ != null)
     {
         if (defaultRateSchedule_ == null)
         {
             defaultRateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         DefaultRateSchedule.MergeFrom(other.DefaultRateSchedule);
     }
     if (other.ShowCancellationPolicy != false)
     {
         ShowCancellationPolicy = other.ShowCancellationPolicy;
     }
     if (other.RequirePhoneNumber != false)
     {
         RequirePhoneNumber = other.RequirePhoneNumber;
     }
     if (other.CharacterCase != 0)
     {
         CharacterCase = other.CharacterCase;
     }
     if (other.BlockDropDays != 0)
     {
         BlockDropDays = other.BlockDropDays;
     }
     if (other.ViewFolioHighlightDays != 0)
     {
         ViewFolioHighlightDays = other.ViewFolioHighlightDays;
     }
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    priceUpdates_.AddEntriesFrom(input, _repeated_priceUpdates_codec);
                    break;
                }
                }
            }
        }
 public void MergeFrom(PricingSvcPropertyQueryRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     if (other.property_ != null)
     {
         if (property_ == null)
         {
             property_ = new global::HOLMS.Types.TenancyConfig.Indicators.PropertyIndicator();
         }
         Property.MergeFrom(other.Property);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
 }
 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;
     }
 }
Exemple #8
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 16: {
                    ShowCancellationPolicy = input.ReadBool();
                    break;
                }

                case 24: {
                    RequirePhoneNumber = input.ReadBool();
                    break;
                }

                case 32: {
                    characterCase_ = (global::HOLMS.Types.Primitive.CharacterCaseType)input.ReadEnum();
                    break;
                }

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

                case 48: {
                    ViewFolioHighlightDays = input.ReadInt32();
                    break;
                }
                }
            }
        }
 public void MergeFrom(PricingSvcUpdateRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     priceUpdates_.Add(other.priceUpdates_);
 }
 public void MergeFrom(RateSchedule other)
 {
     if (other == null)
     {
         return;
     }
     if (other.id_ != null)
     {
         if (id_ == null)
         {
             id_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         Id.MergeFrom(other.Id);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.additionalPersonNightlyCharge_ != null)
     {
         if (additionalPersonNightlyCharge_ == null)
         {
             additionalPersonNightlyCharge_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         AdditionalPersonNightlyCharge.MergeFrom(other.AdditionalPersonNightlyCharge);
     }
     if (other.mustBookBefore_ != null)
     {
         if (mustBookBefore_ == null)
         {
             mustBookBefore_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         MustBookBefore.MergeFrom(other.MustBookBefore);
     }
     if (other.overlaidOn_ != null)
     {
         if (overlaidOn_ == null)
         {
             overlaidOn_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         OverlaidOn.MergeFrom(other.OverlaidOn);
     }
 }
 public void MergeFrom(PricingSvcRoomTypeQueryRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     roomTypes_.Add(other.roomTypes_);
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
 }
Exemple #12
0
 public virtual global::HOLMS.Types.Supply.RateSchedule GetById(global::HOLMS.Types.Supply.RateScheduleIndicator request, grpc::Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetById(request, new grpc::CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #13
0
 public virtual AsyncUnaryCall <global::HOLMS.Types.Supply.RateSchedule> GetByIdAsync(global::HOLMS.Types.Supply.RateScheduleIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetByIdAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
Exemple #14
0
 public virtual AsyncUnaryCall <global::HOLMS.Types.Supply.RateSchedule> GetByIdAsync(global::HOLMS.Types.Supply.RateScheduleIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
Exemple #15
0
 public virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Supply.RateSchedule> GetById(global::HOLMS.Types.Supply.RateScheduleIndicator request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
Exemple #16
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.Booking.Indicators.GroupBookingIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 16: {
                    status_ = (global::HOLMS.Types.Booking.Groups.GroupBookingStatus)input.ReadEnum();
                    break;
                }

                case 24: {
                    TaxExempt = input.ReadBool();
                    break;
                }

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

                case 40: {
                    GroupPaysLodging = input.ReadBool();
                    break;
                }

                case 48: {
                    GroupPaysIncidentals = input.ReadBool();
                    break;
                }

                case 58: {
                    AdditionalNotes = input.ReadString();
                    break;
                }

                case 66: {
                    CustomerBookingId = input.ReadString();
                    break;
                }

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

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

                case 98: {
                    if (group_ == null)
                    {
                        group_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator();
                    }
                    input.ReadMessage(group_);
                    break;
                }

                case 106: {
                    if (confirmationTemplateId_ == null)
                    {
                        confirmationTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(confirmationTemplateId_);
                    break;
                }

                case 114: {
                    if (bookingMethod_ == null)
                    {
                        bookingMethod_ = new global::HOLMS.Types.TenancyConfig.Indicators.GroupBookingMethodIndicator();
                    }
                    input.ReadMessage(bookingMethod_);
                    break;
                }

                case 122: {
                    if (arrivalTemplateId_ == null)
                    {
                        arrivalTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(arrivalTemplateId_);
                    break;
                }

                case 130: {
                    if (reservationSourceId_ == null)
                    {
                        reservationSourceId_ = new global::HOLMS.Types.Primitive.Uuid();
                    }
                    input.ReadMessage(reservationSourceId_);
                    break;
                }

                case 138: {
                    if (travelAgent_ == null)
                    {
                        travelAgent_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
                    }
                    input.ReadMessage(travelAgent_);
                    break;
                }

                case 146: {
                    if (cancellationPolicy_ == null)
                    {
                        cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
                    }
                    input.ReadMessage(cancellationPolicy_);
                    break;
                }

                case 154: {
                    GroupName = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #17
0
 public void MergeFrom(GroupBooking other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.GroupBookingIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.TaxExempt != false)
     {
         TaxExempt = other.TaxExempt;
     }
     if (other.TaxId.Length != 0)
     {
         TaxId = other.TaxId;
     }
     if (other.GroupPaysLodging != false)
     {
         GroupPaysLodging = other.GroupPaysLodging;
     }
     if (other.GroupPaysIncidentals != false)
     {
         GroupPaysIncidentals = other.GroupPaysIncidentals;
     }
     if (other.AdditionalNotes.Length != 0)
     {
         AdditionalNotes = other.AdditionalNotes;
     }
     if (other.CustomerBookingId.Length != 0)
     {
         CustomerBookingId = other.CustomerBookingId;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.rateSchedule_ != null)
     {
         if (rateSchedule_ == null)
         {
             rateSchedule_ = new global::HOLMS.Types.Supply.RateScheduleIndicator();
         }
         RateSchedule.MergeFrom(other.RateSchedule);
     }
     if (other.group_ != null)
     {
         if (group_ == null)
         {
             group_ = new global::HOLMS.Types.CRM.Groups.GroupIndicator();
         }
         Group.MergeFrom(other.Group);
     }
     if (other.confirmationTemplateId_ != null)
     {
         if (confirmationTemplateId_ == null)
         {
             confirmationTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         ConfirmationTemplateId.MergeFrom(other.ConfirmationTemplateId);
     }
     if (other.bookingMethod_ != null)
     {
         if (bookingMethod_ == null)
         {
             bookingMethod_ = new global::HOLMS.Types.TenancyConfig.Indicators.GroupBookingMethodIndicator();
         }
         BookingMethod.MergeFrom(other.BookingMethod);
     }
     if (other.arrivalTemplateId_ != null)
     {
         if (arrivalTemplateId_ == null)
         {
             arrivalTemplateId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         ArrivalTemplateId.MergeFrom(other.ArrivalTemplateId);
     }
     if (other.reservationSourceId_ != null)
     {
         if (reservationSourceId_ == null)
         {
             reservationSourceId_ = new global::HOLMS.Types.Primitive.Uuid();
         }
         ReservationSourceId.MergeFrom(other.ReservationSourceId);
     }
     if (other.travelAgent_ != null)
     {
         if (travelAgent_ == null)
         {
             travelAgent_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
         }
         TravelAgent.MergeFrom(other.TravelAgent);
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.GroupName.Length != 0)
     {
         GroupName = other.GroupName;
     }
 }
Exemple #18
0
 public virtual global::HOLMS.Types.Supply.RateSchedule GetById(global::HOLMS.Types.Supply.RateScheduleIndicator request, CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }