//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deviceapis/device/v1/deviceapis_device_code_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 CodeService
{
static readonly string __ServiceName = "deviceapis.device.v1.CodeService";
[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_DeleteCodeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteCodeRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteCodeResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteCodeResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteCodeListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteCodeListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteCodeListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteCodeListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetCodeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetCodeRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetCodeResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetCodeResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetCodeCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetCodeCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetCodeCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetCodeCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetCodeListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetCodeListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetCodeListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetCodeListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveCodeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveCodeRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveCodeResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveCodeResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveCodeListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveCodeListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveCodeListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveCodeListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteCode = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteCode",
__Marshaller_deviceapis_device_v1_DeleteCodeRequest,
__Marshaller_deviceapis_device_v1_DeleteCodeResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteCodeList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteCodeList",
__Marshaller_deviceapis_device_v1_DeleteCodeListRequest,
__Marshaller_deviceapis_device_v1_DeleteCodeListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetCode = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetCode",
__Marshaller_deviceapis_device_v1_GetCodeRequest,
__Marshaller_deviceapis_device_v1_GetCodeResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetCodeCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetCodeCount",
__Marshaller_deviceapis_device_v1_GetCodeCountRequest,
__Marshaller_deviceapis_device_v1_GetCodeCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetCodeList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetCodeList",
__Marshaller_deviceapis_device_v1_GetCodeListRequest,
__Marshaller_deviceapis_device_v1_GetCodeListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_SaveCode = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"SaveCode",
__Marshaller_deviceapis_device_v1_SaveCodeRequest,
__Marshaller_deviceapis_device_v1_SaveCodeResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_SaveCodeList = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"SaveCodeList",
__Marshaller_deviceapis_device_v1_SaveCodeListRequest,
__Marshaller_deviceapis_device_v1_SaveCodeListResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Deviceapis.Device.V1.DeviceapisDeviceCodeV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of CodeService
[grpc::BindServiceMethod(typeof(CodeService), "BindService")]
public abstract partial class CodeServiceBase
{
///
/// Метод удаления одного кода доступа
///
/// 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 DeleteCode(global::Deviceapis.Device.V1.DeleteCodeRequest 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 DeleteCodeList(global::Deviceapis.Device.V1.DeleteCodeListRequest 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 GetCode(global::Deviceapis.Device.V1.GetCodeRequest 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 GetCodeCount(global::Deviceapis.Device.V1.GetCodeCountRequest 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 GetCodeList(global::Deviceapis.Device.V1.GetCodeListRequest 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 SaveCode(global::Deviceapis.Device.V1.SaveCodeRequest 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 SaveCodeList(global::Deviceapis.Device.V1.SaveCodeListRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for CodeService
public partial class CodeServiceClient : grpc::ClientBase
{
/// Creates a new client for CodeService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public CodeServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for CodeService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public CodeServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected CodeServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected CodeServiceClient(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.DeleteCodeResponse DeleteCode(global::Deviceapis.Device.V1.DeleteCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteCode(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.DeleteCodeResponse DeleteCode(global::Deviceapis.Device.V1.DeleteCodeRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteCode, 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 DeleteCodeAsync(global::Deviceapis.Device.V1.DeleteCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteCodeAsync(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 DeleteCodeAsync(global::Deviceapis.Device.V1.DeleteCodeRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteCode, 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.DeleteCodeListResponse DeleteCodeList(global::Deviceapis.Device.V1.DeleteCodeListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteCodeList(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.DeleteCodeListResponse DeleteCodeList(global::Deviceapis.Device.V1.DeleteCodeListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteCodeList, 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 DeleteCodeListAsync(global::Deviceapis.Device.V1.DeleteCodeListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteCodeListAsync(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 DeleteCodeListAsync(global::Deviceapis.Device.V1.DeleteCodeListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteCodeList, 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.GetCodeResponse GetCode(global::Deviceapis.Device.V1.GetCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetCode(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.GetCodeResponse GetCode(global::Deviceapis.Device.V1.GetCodeRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetCode, 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 GetCodeAsync(global::Deviceapis.Device.V1.GetCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetCodeAsync(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 GetCodeAsync(global::Deviceapis.Device.V1.GetCodeRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetCode, 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.GetCodeCountResponse GetCodeCount(global::Deviceapis.Device.V1.GetCodeCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetCodeCount(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.GetCodeCountResponse GetCodeCount(global::Deviceapis.Device.V1.GetCodeCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetCodeCount, 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 GetCodeCountAsync(global::Deviceapis.Device.V1.GetCodeCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetCodeCountAsync(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 GetCodeCountAsync(global::Deviceapis.Device.V1.GetCodeCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetCodeCount, 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.GetCodeListResponse GetCodeList(global::Deviceapis.Device.V1.GetCodeListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetCodeList(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.GetCodeListResponse GetCodeList(global::Deviceapis.Device.V1.GetCodeListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetCodeList, 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 GetCodeListAsync(global::Deviceapis.Device.V1.GetCodeListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetCodeListAsync(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 GetCodeListAsync(global::Deviceapis.Device.V1.GetCodeListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetCodeList, 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.SaveCodeResponse SaveCode(global::Deviceapis.Device.V1.SaveCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveCode(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.SaveCodeResponse SaveCode(global::Deviceapis.Device.V1.SaveCodeRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_SaveCode, 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 SaveCodeAsync(global::Deviceapis.Device.V1.SaveCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveCodeAsync(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 SaveCodeAsync(global::Deviceapis.Device.V1.SaveCodeRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_SaveCode, 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.SaveCodeListResponse SaveCodeList(global::Deviceapis.Device.V1.SaveCodeListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveCodeList(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.SaveCodeListResponse SaveCodeList(global::Deviceapis.Device.V1.SaveCodeListRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_SaveCodeList, 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 SaveCodeListAsync(global::Deviceapis.Device.V1.SaveCodeListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SaveCodeListAsync(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 SaveCodeListAsync(global::Deviceapis.Device.V1.SaveCodeListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_SaveCodeList, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override CodeServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new CodeServiceClient(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(CodeServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_DeleteCode, serviceImpl.DeleteCode)
.AddMethod(__Method_DeleteCodeList, serviceImpl.DeleteCodeList)
.AddMethod(__Method_GetCode, serviceImpl.GetCode)
.AddMethod(__Method_GetCodeCount, serviceImpl.GetCodeCount)
.AddMethod(__Method_GetCodeList, serviceImpl.GetCodeList)
.AddMethod(__Method_SaveCode, serviceImpl.SaveCode)
.AddMethod(__Method_SaveCodeList, serviceImpl.SaveCodeList).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, CodeServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_DeleteCode, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCode));
serviceBinder.AddMethod(__Method_DeleteCodeList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteCodeList));
serviceBinder.AddMethod(__Method_GetCode, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCode));
serviceBinder.AddMethod(__Method_GetCodeCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCodeCount));
serviceBinder.AddMethod(__Method_GetCodeList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetCodeList));
serviceBinder.AddMethod(__Method_SaveCode, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SaveCode));
serviceBinder.AddMethod(__Method_SaveCodeList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SaveCodeList));
}
}
}
#endregion