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

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

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

                case 32: {
                    DisableGuestCorrespondence = input.ReadBool();
                    break;
                }

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

                case 50: {
                    if (cancellationPolicy_ == null)
                    {
                        cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
                    }
                    input.ReadMessage(cancellationPolicy_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(OTAChannelProvider other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.ProviderName.Length != 0)
     {
         ProviderName = other.ProviderName;
     }
     if (other.ProviderCode.Length != 0)
     {
         ProviderCode = other.ProviderCode;
     }
     if (other.DisableGuestCorrespondence != false)
     {
         DisableGuestCorrespondence = other.DisableGuestCorrespondence;
     }
     if (other.DisableCorrespondenceRateTable != false)
     {
         DisableCorrespondenceRateTable = other.DisableCorrespondenceRateTable;
     }
     if (other.cancellationPolicy_ != null)
     {
         if (cancellationPolicy_ == null)
         {
             cancellationPolicy_ = new global::HOLMS.Types.Booking.Indicators.CancellationPolicyIndicator();
         }
         CancellationPolicy.MergeFrom(other.CancellationPolicy);
     }
     if (other.VirtualCardIdentifier.Length != 0)
     {
         VirtualCardIdentifier = other.VirtualCardIdentifier;
     }
     requestRoomType_.Add(other.requestRoomType_);
 }
        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 virtual global::System.Threading.Tasks.Task <global::HOLMS.Types.Booking.Channels.OTAChannelProvider> GetById(global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator request, ServerCallContext context)
 {
     throw new RpcException(new Status(StatusCode.Unimplemented, ""));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Booking.Channels.OTAChannelProvider> GetByIdAsync(global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator request, CallOptions options)
 {
     return(CallInvoker.AsyncUnaryCall(__Method_GetById, null, options, request));
 }
 public virtual AsyncUnaryCall <global::HOLMS.Types.Booking.Channels.OTAChannelProvider> GetByIdAsync(global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator request, Metadata headers = null, DateTime?deadline = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(GetByIdAsync(request, new CallOptions(headers, deadline, cancellationToken)));
 }
 public virtual global::HOLMS.Types.Booking.Channels.OTAChannelProvider GetById(global::HOLMS.Types.Booking.Channels.OTAChannelProviderIndicator request, grpc::CallOptions options)
 {
     return(CallInvoker.BlockingUnaryCall(__Method_GetById, null, options, request));
 }