//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deviceapis/device/v1/deviceapis_device_room_v1.proto
//
// Original file comments:
//
// Сервис управления настройками квартир
#pragma warning disable 0414, 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Deviceapis.Device.V1 {
///
/// Сервис управления настройками квартир
///
public static partial class RoomService
{
static readonly string __ServiceName = "deviceapis.device.v1.RoomService";
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (message is global::Google.Protobuf.IBufferMessage)
{
context.SetPayloadLength(message.CalculateSize());
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
context.Complete();
return;
}
#endif
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static class __Helper_MessageCache
{
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static T __Helper_DeserializeMessage(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser parser) where T : global::Google.Protobuf.IMessage
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (__Helper_MessageCache.IsBufferMessage)
{
return parser.ParseFrom(context.PayloadAsReadOnlySequence());
}
#endif
return parser.ParseFrom(context.PayloadAsNewBuffer());
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteRoomRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteRoomRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteRoomResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteRoomResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteRoomListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteRoomListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteRoomListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteRoomListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRoomRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRoomRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRoomResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRoomResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRoomCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRoomCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRoomCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRoomCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRoomListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRoomListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRoomListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRoomListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveRoomRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveRoomRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveRoomResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveRoomResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveRoomListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveRoomListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveRoomListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveRoomListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteRoom = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteRoom",
__Marshaller_deviceapis_device_v1_DeleteRoomRequest,
__Marshaller_deviceapis_device_v1_DeleteRoomResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteRoomList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteRoomList",
__Marshaller_deviceapis_device_v1_DeleteRoomListRequest,
__Marshaller_deviceapis_device_v1_DeleteRoomListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetRoom = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetRoom",
__Marshaller_deviceapis_device_v1_GetRoomRequest,
__Marshaller_deviceapis_device_v1_GetRoomResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetRoomCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetRoomCount",
__Marshaller_deviceapis_device_v1_GetRoomCountRequest,
__Marshaller_deviceapis_device_v1_GetRoomCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetRoomList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetRoomList",
__Marshaller_deviceapis_device_v1_GetRoomListRequest,
__Marshaller_deviceapis_device_v1_GetRoomListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_SaveRoom = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"SaveRoom",
__Marshaller_deviceapis_device_v1_SaveRoomRequest,
__Marshaller_deviceapis_device_v1_SaveRoomResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_SaveRoomList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"SaveRoomList",
__Marshaller_deviceapis_device_v1_SaveRoomListRequest,
__Marshaller_deviceapis_device_v1_SaveRoomListResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Deviceapis.Device.V1.DeviceapisDeviceRoomV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of RoomService
[grpc::BindServiceMethod(typeof(RoomService), "BindService")]
public abstract partial class RoomServiceBase
{
///
/// Метод удаления настроек квартиры
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task DeleteRoom(global::Deviceapis.Device.V1.DeleteRoomRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод удаления списка настроек квартиры.
/// При отсутствующем или пустом фильтре удаляются все квартиры
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task DeleteRoomList(global::Deviceapis.Device.V1.DeleteRoomListRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения настроек квартиры
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetRoom(global::Deviceapis.Device.V1.GetRoomRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества квартир
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetRoomCount(global::Deviceapis.Device.V1.GetRoomCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка настроек квартир
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetRoomList(global::Deviceapis.Device.V1.GetRoomListRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод сохранения настроек квартиры.
/// Поддерживает создание и обновление
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task SaveRoom(global::Deviceapis.Device.V1.SaveRoomRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод сохранения списка настроек квартиры
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task SaveRoomList(global::Deviceapis.Device.V1.SaveRoomListRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for RoomService
public partial class RoomServiceClient : grpc::ClientBase
{
/// Creates a new client for RoomService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public RoomServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for RoomService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public RoomServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected RoomServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected RoomServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// Метод удаления настроек квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.DeleteRoomResponse DeleteRoom(global::Deviceapis.Device.V1.DeleteRoomRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteRoom(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления настроек квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.DeleteRoomResponse DeleteRoom(global::Deviceapis.Device.V1.DeleteRoomRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteRoom, null, options, request);
}
///
/// Метод удаления настроек квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteRoomAsync(global::Deviceapis.Device.V1.DeleteRoomRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteRoomAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления настроек квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteRoomAsync(global::Deviceapis.Device.V1.DeleteRoomRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteRoom, null, options, request);
}
///
/// Метод удаления списка настроек квартиры.
/// При отсутствующем или пустом фильтре удаляются все квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.DeleteRoomListResponse DeleteRoomList(global::Deviceapis.Device.V1.DeleteRoomListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteRoomList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления списка настроек квартиры.
/// При отсутствующем или пустом фильтре удаляются все квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.DeleteRoomListResponse DeleteRoomList(global::Deviceapis.Device.V1.DeleteRoomListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteRoomList, null, options, request);
}
///
/// Метод удаления списка настроек квартиры.
/// При отсутствующем или пустом фильтре удаляются все квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteRoomListAsync(global::Deviceapis.Device.V1.DeleteRoomListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteRoomListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления списка настроек квартиры.
/// При отсутствующем или пустом фильтре удаляются все квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteRoomListAsync(global::Deviceapis.Device.V1.DeleteRoomListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteRoomList, null, options, request);
}
///
/// Метод получения настроек квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.GetRoomResponse GetRoom(global::Deviceapis.Device.V1.GetRoomRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRoom(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения настроек квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.GetRoomResponse GetRoom(global::Deviceapis.Device.V1.GetRoomRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetRoom, null, options, request);
}
///
/// Метод получения настроек квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetRoomAsync(global::Deviceapis.Device.V1.GetRoomRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRoomAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения настроек квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetRoomAsync(global::Deviceapis.Device.V1.GetRoomRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetRoom, null, options, request);
}
///
/// Метод получения количества квартир
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.GetRoomCountResponse GetRoomCount(global::Deviceapis.Device.V1.GetRoomCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRoomCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества квартир
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.GetRoomCountResponse GetRoomCount(global::Deviceapis.Device.V1.GetRoomCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetRoomCount, null, options, request);
}
///
/// Метод получения количества квартир
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetRoomCountAsync(global::Deviceapis.Device.V1.GetRoomCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRoomCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества квартир
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetRoomCountAsync(global::Deviceapis.Device.V1.GetRoomCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetRoomCount, null, options, request);
}
///
/// Метод получения списка настроек квартир
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.GetRoomListResponse GetRoomList(global::Deviceapis.Device.V1.GetRoomListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRoomList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка настроек квартир
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.GetRoomListResponse GetRoomList(global::Deviceapis.Device.V1.GetRoomListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetRoomList, null, options, request);
}
///
/// Метод получения списка настроек квартир
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetRoomListAsync(global::Deviceapis.Device.V1.GetRoomListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRoomListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка настроек квартир
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetRoomListAsync(global::Deviceapis.Device.V1.GetRoomListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetRoomList, null, options, request);
}
///
/// Метод сохранения настроек квартиры.
/// Поддерживает создание и обновление
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.SaveRoomResponse SaveRoom(global::Deviceapis.Device.V1.SaveRoomRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveRoom(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения настроек квартиры.
/// Поддерживает создание и обновление
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.SaveRoomResponse SaveRoom(global::Deviceapis.Device.V1.SaveRoomRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_SaveRoom, null, options, request);
}
///
/// Метод сохранения настроек квартиры.
/// Поддерживает создание и обновление
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall SaveRoomAsync(global::Deviceapis.Device.V1.SaveRoomRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveRoomAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения настроек квартиры.
/// Поддерживает создание и обновление
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall SaveRoomAsync(global::Deviceapis.Device.V1.SaveRoomRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_SaveRoom, null, options, request);
}
///
/// Метод сохранения списка настроек квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.SaveRoomListResponse SaveRoomList(global::Deviceapis.Device.V1.SaveRoomListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveRoomList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения списка настроек квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Deviceapis.Device.V1.SaveRoomListResponse SaveRoomList(global::Deviceapis.Device.V1.SaveRoomListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_SaveRoomList, null, options, request);
}
///
/// Метод сохранения списка настроек квартиры
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall SaveRoomListAsync(global::Deviceapis.Device.V1.SaveRoomListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveRoomListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения списка настроек квартиры
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall SaveRoomListAsync(global::Deviceapis.Device.V1.SaveRoomListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_SaveRoomList, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override RoomServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new RoomServiceClient(configuration);
}
}
/// Creates service definition that can be registered with a server
/// An object implementing the server-side handling logic.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public static grpc::ServerServiceDefinition BindService(RoomServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_DeleteRoom, serviceImpl.DeleteRoom)
.AddMethod(__Method_DeleteRoomList, serviceImpl.DeleteRoomList)
.AddMethod(__Method_GetRoom, serviceImpl.GetRoom)
.AddMethod(__Method_GetRoomCount, serviceImpl.GetRoomCount)
.AddMethod(__Method_GetRoomList, serviceImpl.GetRoomList)
.AddMethod(__Method_SaveRoom, serviceImpl.SaveRoom)
.AddMethod(__Method_SaveRoomList, serviceImpl.SaveRoomList).Build();
}
/// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
/// Note: this method is part of an experimental API that can change or be removed without any prior notice.
/// Service methods will be bound by calling AddMethod on this object.
/// An object implementing the server-side handling logic.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public static void BindService(grpc::ServiceBinderBase serviceBinder, RoomServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_DeleteRoom, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteRoom));
serviceBinder.AddMethod(__Method_DeleteRoomList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteRoomList));
serviceBinder.AddMethod(__Method_GetRoom, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRoom));
serviceBinder.AddMethod(__Method_GetRoomCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRoomCount));
serviceBinder.AddMethod(__Method_GetRoomList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRoomList));
serviceBinder.AddMethod(__Method_SaveRoom, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SaveRoom));
serviceBinder.AddMethod(__Method_SaveRoomList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SaveRoomList));
}
}
}
#endregion