public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (lodgingReservation_ == null)
                    {
                        lodgingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
                    }
                    input.ReadMessage(lodgingReservation_);
                    break;
                }
                }
            }
        }
コード例 #2
0
 public void MergeFrom(IncidentalItemReservation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.IncidentalItemReservationIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.reservedItem_ != null)
     {
         if (reservedItem_ == null)
         {
             reservedItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator();
         }
         ReservedItem.MergeFrom(other.ReservedItem);
     }
     if (other.AmountReserved != 0)
     {
         AmountReserved = other.AmountReserved;
     }
     if (other.totalCost_ != null)
     {
         if (totalCost_ == null)
         {
             totalCost_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         TotalCost.MergeFrom(other.TotalCost);
     }
     if (other.IncidentalItemName.Length != 0)
     {
         IncidentalItemName = other.IncidentalItemName;
     }
 }
        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.IncidentalItemReservationIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

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

                case 40: {
                    QuantityHeldByExistingReservation = input.ReadUInt32();
                    break;
                }
                }
            }
        }
 public void MergeFrom(IncidentalItemAvailabilityQuery other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.IncidentalItemReservationIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.IsForExistingIiReservation != false)
     {
         IsForExistingIiReservation = other.IsForExistingIiReservation;
     }
     if (other.dateRange_ != null)
     {
         if (dateRange_ == null)
         {
             dateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange();
         }
         DateRange.MergeFrom(other.DateRange);
     }
     if (other.reservedItem_ != null)
     {
         if (reservedItem_ == null)
         {
             reservedItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator();
         }
         ReservedItem.MergeFrom(other.ReservedItem);
     }
     if (other.QuantityHeldByExistingReservation != 0)
     {
         QuantityHeldByExistingReservation = other.QuantityHeldByExistingReservation;
     }
 }
 public void MergeFrom(IncidentalItemReservationRemoveItemRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.itemReservation_ != null)
     {
         if (itemReservation_ == null)
         {
             itemReservation_ = new global::HOLMS.Types.Booking.Indicators.IncidentalItemReservationIndicator();
         }
         ItemReservation.MergeFrom(other.ItemReservation);
     }
     if (other.lodgingReservation_ != null)
     {
         if (lodgingReservation_ == null)
         {
             lodgingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         LodgingReservation.MergeFrom(other.LodgingReservation);
     }
 }
コード例 #6
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.IncidentalItemReservationIndicator();
                    }
                    input.ReadMessage(entityId_);
                    break;
                }

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

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

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

                case 40: {
                    AmountReserved = input.ReadUInt32();
                    break;
                }

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

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