//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deviceapis/device/v1/deviceapis_device_relay_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 RelayService
{
static readonly string __ServiceName = "deviceapis.device.v1.RelayService";
[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_PostRelayCloseRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostRelayCloseRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostRelayCloseResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostRelayCloseResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostRelayOpenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostRelayOpenRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostRelayOpenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostRelayOpenResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostRelayOpenPermanentlyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostRelayOpenPermanentlyRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostRelayOpenPermanentlyResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostRelayOpenPermanentlyResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_EditRelayPropsOpenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.EditRelayPropsOpenRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_EditRelayPropsOpenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.EditRelayPropsOpenResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRelayOpenListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRelayOpenListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRelayOpenListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRelayOpenListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_EditRelayPropsDtmfRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.EditRelayPropsDtmfRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_EditRelayPropsDtmfResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.EditRelayPropsDtmfResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRelayDtmfListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRelayDtmfListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRelayDtmfListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRelayDtmfListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRelayStatusListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRelayStatusListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetRelayStatusListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetRelayStatusListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostRelayClose = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostRelayClose",
__Marshaller_deviceapis_device_v1_PostRelayCloseRequest,
__Marshaller_deviceapis_device_v1_PostRelayCloseResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostRelayOpen = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostRelayOpen",
__Marshaller_deviceapis_device_v1_PostRelayOpenRequest,
__Marshaller_deviceapis_device_v1_PostRelayOpenResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostRelayOpenPermanently = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostRelayOpenPermanently",
__Marshaller_deviceapis_device_v1_PostRelayOpenPermanentlyRequest,
__Marshaller_deviceapis_device_v1_PostRelayOpenPermanentlyResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_EditRelayPropsOpen = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"EditRelayPropsOpen",
__Marshaller_deviceapis_device_v1_EditRelayPropsOpenRequest,
__Marshaller_deviceapis_device_v1_EditRelayPropsOpenResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetRelayOpenList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetRelayOpenList",
__Marshaller_deviceapis_device_v1_GetRelayOpenListRequest,
__Marshaller_deviceapis_device_v1_GetRelayOpenListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_EditRelayPropsDtmf = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"EditRelayPropsDtmf",
__Marshaller_deviceapis_device_v1_EditRelayPropsDtmfRequest,
__Marshaller_deviceapis_device_v1_EditRelayPropsDtmfResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetRelayDtmfList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetRelayDtmfList",
__Marshaller_deviceapis_device_v1_GetRelayDtmfListRequest,
__Marshaller_deviceapis_device_v1_GetRelayDtmfListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetRelayStatusList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetRelayStatusList",
__Marshaller_deviceapis_device_v1_GetRelayStatusListRequest,
__Marshaller_deviceapis_device_v1_GetRelayStatusListResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Deviceapis.Device.V1.DeviceapisDeviceRelayV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of RelayService
[grpc::BindServiceMethod(typeof(RelayService), "BindService")]
public abstract partial class RelayServiceBase
{
///
/// Метод закрытия реле.
/// Закрытие реле принудительно без учета времени открытия.
/// Отмена режима постоянного открытия
///
/// 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 PostRelayClose(global::Deviceapis.Device.V1.PostRelayCloseRequest 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 PostRelayOpen(global::Deviceapis.Device.V1.PostRelayOpenRequest 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 PostRelayOpenPermanently(global::Deviceapis.Device.V1.PostRelayOpenPermanentlyRequest 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 EditRelayPropsOpen(global::Deviceapis.Device.V1.EditRelayPropsOpenRequest 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 GetRelayOpenList(global::Deviceapis.Device.V1.GetRelayOpenListRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод редактирования настроек DTMF реле
///
/// 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 EditRelayPropsDtmf(global::Deviceapis.Device.V1.EditRelayPropsDtmfRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения настроек DTMF реле
///
/// 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 GetRelayDtmfList(global::Deviceapis.Device.V1.GetRelayDtmfListRequest 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 GetRelayStatusList(global::Deviceapis.Device.V1.GetRelayStatusListRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for RelayService
public partial class RelayServiceClient : grpc::ClientBase
{
/// Creates a new client for RelayService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public RelayServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for RelayService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public RelayServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected RelayServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected RelayServiceClient(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.PostRelayCloseResponse PostRelayClose(global::Deviceapis.Device.V1.PostRelayCloseRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostRelayClose(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.PostRelayCloseResponse PostRelayClose(global::Deviceapis.Device.V1.PostRelayCloseRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostRelayClose, 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 PostRelayCloseAsync(global::Deviceapis.Device.V1.PostRelayCloseRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostRelayCloseAsync(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 PostRelayCloseAsync(global::Deviceapis.Device.V1.PostRelayCloseRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostRelayClose, 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.PostRelayOpenResponse PostRelayOpen(global::Deviceapis.Device.V1.PostRelayOpenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostRelayOpen(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.PostRelayOpenResponse PostRelayOpen(global::Deviceapis.Device.V1.PostRelayOpenRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostRelayOpen, 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 PostRelayOpenAsync(global::Deviceapis.Device.V1.PostRelayOpenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostRelayOpenAsync(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 PostRelayOpenAsync(global::Deviceapis.Device.V1.PostRelayOpenRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostRelayOpen, 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.PostRelayOpenPermanentlyResponse PostRelayOpenPermanently(global::Deviceapis.Device.V1.PostRelayOpenPermanentlyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostRelayOpenPermanently(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.PostRelayOpenPermanentlyResponse PostRelayOpenPermanently(global::Deviceapis.Device.V1.PostRelayOpenPermanentlyRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostRelayOpenPermanently, 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 PostRelayOpenPermanentlyAsync(global::Deviceapis.Device.V1.PostRelayOpenPermanentlyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostRelayOpenPermanentlyAsync(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 PostRelayOpenPermanentlyAsync(global::Deviceapis.Device.V1.PostRelayOpenPermanentlyRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostRelayOpenPermanently, 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.EditRelayPropsOpenResponse EditRelayPropsOpen(global::Deviceapis.Device.V1.EditRelayPropsOpenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return EditRelayPropsOpen(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.EditRelayPropsOpenResponse EditRelayPropsOpen(global::Deviceapis.Device.V1.EditRelayPropsOpenRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_EditRelayPropsOpen, 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 EditRelayPropsOpenAsync(global::Deviceapis.Device.V1.EditRelayPropsOpenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return EditRelayPropsOpenAsync(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 EditRelayPropsOpenAsync(global::Deviceapis.Device.V1.EditRelayPropsOpenRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_EditRelayPropsOpen, 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.GetRelayOpenListResponse GetRelayOpenList(global::Deviceapis.Device.V1.GetRelayOpenListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRelayOpenList(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.GetRelayOpenListResponse GetRelayOpenList(global::Deviceapis.Device.V1.GetRelayOpenListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetRelayOpenList, 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 GetRelayOpenListAsync(global::Deviceapis.Device.V1.GetRelayOpenListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRelayOpenListAsync(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 GetRelayOpenListAsync(global::Deviceapis.Device.V1.GetRelayOpenListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetRelayOpenList, null, options, request);
}
///
/// Метод редактирования настроек DTMF реле
///
/// 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.EditRelayPropsDtmfResponse EditRelayPropsDtmf(global::Deviceapis.Device.V1.EditRelayPropsDtmfRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return EditRelayPropsDtmf(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод редактирования настроек DTMF реле
///
/// 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.EditRelayPropsDtmfResponse EditRelayPropsDtmf(global::Deviceapis.Device.V1.EditRelayPropsDtmfRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_EditRelayPropsDtmf, null, options, request);
}
///
/// Метод редактирования настроек DTMF реле
///
/// 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 EditRelayPropsDtmfAsync(global::Deviceapis.Device.V1.EditRelayPropsDtmfRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return EditRelayPropsDtmfAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод редактирования настроек DTMF реле
///
/// 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 EditRelayPropsDtmfAsync(global::Deviceapis.Device.V1.EditRelayPropsDtmfRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_EditRelayPropsDtmf, null, options, request);
}
///
/// Метод получения настроек DTMF реле
///
/// 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.GetRelayDtmfListResponse GetRelayDtmfList(global::Deviceapis.Device.V1.GetRelayDtmfListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRelayDtmfList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения настроек DTMF реле
///
/// 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.GetRelayDtmfListResponse GetRelayDtmfList(global::Deviceapis.Device.V1.GetRelayDtmfListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetRelayDtmfList, null, options, request);
}
///
/// Метод получения настроек DTMF реле
///
/// 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 GetRelayDtmfListAsync(global::Deviceapis.Device.V1.GetRelayDtmfListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRelayDtmfListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения настроек DTMF реле
///
/// 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 GetRelayDtmfListAsync(global::Deviceapis.Device.V1.GetRelayDtmfListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetRelayDtmfList, 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.GetRelayStatusListResponse GetRelayStatusList(global::Deviceapis.Device.V1.GetRelayStatusListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRelayStatusList(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.GetRelayStatusListResponse GetRelayStatusList(global::Deviceapis.Device.V1.GetRelayStatusListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetRelayStatusList, 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 GetRelayStatusListAsync(global::Deviceapis.Device.V1.GetRelayStatusListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetRelayStatusListAsync(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 GetRelayStatusListAsync(global::Deviceapis.Device.V1.GetRelayStatusListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetRelayStatusList, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override RelayServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new RelayServiceClient(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(RelayServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_PostRelayClose, serviceImpl.PostRelayClose)
.AddMethod(__Method_PostRelayOpen, serviceImpl.PostRelayOpen)
.AddMethod(__Method_PostRelayOpenPermanently, serviceImpl.PostRelayOpenPermanently)
.AddMethod(__Method_EditRelayPropsOpen, serviceImpl.EditRelayPropsOpen)
.AddMethod(__Method_GetRelayOpenList, serviceImpl.GetRelayOpenList)
.AddMethod(__Method_EditRelayPropsDtmf, serviceImpl.EditRelayPropsDtmf)
.AddMethod(__Method_GetRelayDtmfList, serviceImpl.GetRelayDtmfList)
.AddMethod(__Method_GetRelayStatusList, serviceImpl.GetRelayStatusList).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, RelayServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_PostRelayClose, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostRelayClose));
serviceBinder.AddMethod(__Method_PostRelayOpen, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostRelayOpen));
serviceBinder.AddMethod(__Method_PostRelayOpenPermanently, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostRelayOpenPermanently));
serviceBinder.AddMethod(__Method_EditRelayPropsOpen, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EditRelayPropsOpen));
serviceBinder.AddMethod(__Method_GetRelayOpenList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRelayOpenList));
serviceBinder.AddMethod(__Method_EditRelayPropsDtmf, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EditRelayPropsDtmf));
serviceBinder.AddMethod(__Method_GetRelayDtmfList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRelayDtmfList));
serviceBinder.AddMethod(__Method_GetRelayStatusList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetRelayStatusList));
}
}
}
#endregion