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.TenancyConfig.Indicators.GroupBookingMethodIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

                case 18: {
                    Description = input.ReadString();
                    break;
                }
                }
            }
        }
 public void MergeFrom(GroupBookingMethod other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.GroupBookingMethodIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
 }
Esempio n. 3
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;
                }
                }
            }
        }
Esempio n. 4
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;
     }
 }