// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/preset/v1/keyapis_preset_preset_v1.proto // // Original file comments: // // Сервис реализует функционал хранения пресетов устройств #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Preset.V1 { /// /// Сервис пресетов /// public static partial class PresetService { static readonly string __ServiceName = "keyapis.preset.v1.PresetService"; [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_keyapis_preset_v1_PostPresetRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.PostPresetRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_PostPresetResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.PostPresetResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetDefaultRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetDefaultRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetDefaultResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetDefaultResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_GetPresetCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.GetPresetCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_DeletePresetRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.DeletePresetRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_preset_v1_DeletePresetResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Preset.V1.DeletePresetResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostPreset = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostPreset", __Marshaller_keyapis_preset_v1_PostPresetRequest, __Marshaller_keyapis_preset_v1_PostPresetResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetPreset = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetPreset", __Marshaller_keyapis_preset_v1_GetPresetRequest, __Marshaller_keyapis_preset_v1_GetPresetResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetPresetDefault = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetPresetDefault", __Marshaller_keyapis_preset_v1_GetPresetDefaultRequest, __Marshaller_keyapis_preset_v1_GetPresetDefaultResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetPresetList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetPresetList", __Marshaller_keyapis_preset_v1_GetPresetListRequest, __Marshaller_keyapis_preset_v1_GetPresetListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetPresetCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetPresetCount", __Marshaller_keyapis_preset_v1_GetPresetCountRequest, __Marshaller_keyapis_preset_v1_GetPresetCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeletePreset = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeletePreset", __Marshaller_keyapis_preset_v1_DeletePresetRequest, __Marshaller_keyapis_preset_v1_DeletePresetResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Preset.V1.KeyapisPresetPresetV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of PresetService [grpc::BindServiceMethod(typeof(PresetService), "BindService")] public abstract partial class PresetServiceBase { /// /// Метод сохранения пресетов. /// Поддерживает создание и обновление. /// При обновлении пресета посылается задача PresetInstallTask в очередь key.preset.install. /// Данное сообщение должно отправляться только если изменению подверглось одно из следующих полей: /// - Sip; /// - Ntp; /// - Syslog; /// - Room; /// - VideoConfig; /// - Dtmf. /// Метод доступен для: admin, service /// /// 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 PostPreset(global::Keyapis.Preset.V1.PostPresetRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения пресета по идентификатору. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPreset(global::Keyapis.Preset.V1.GetPresetRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения дефолтного пресета. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetDefault(global::Keyapis.Preset.V1.GetPresetDefaultRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// The request received from the client. /// Used for sending responses back to the client. /// The context of the server-side call handler being invoked. /// A task indicating completion of the handler. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetPresetList(global::Keyapis.Preset.V1.GetPresetListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetCount(global::Keyapis.Preset.V1.GetPresetCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления пресета. /// Нельзя удалить пресет, если он используется на устройстве. /// Нельзя удалить дефолтный пресет. /// Метод доступен для: admin, service /// /// 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 DeletePreset(global::Keyapis.Preset.V1.DeletePresetRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for PresetService public partial class PresetServiceClient : grpc::ClientBase { /// Creates a new client for PresetService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public PresetServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for PresetService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public PresetServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected PresetServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected PresetServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод сохранения пресетов. /// Поддерживает создание и обновление. /// При обновлении пресета посылается задача PresetInstallTask в очередь key.preset.install. /// Данное сообщение должно отправляться только если изменению подверглось одно из следующих полей: /// - Sip; /// - Ntp; /// - Syslog; /// - Room; /// - VideoConfig; /// - Dtmf. /// Метод доступен для: admin, service /// /// 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::Keyapis.Preset.V1.PostPresetResponse PostPreset(global::Keyapis.Preset.V1.PostPresetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostPreset(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения пресетов. /// Поддерживает создание и обновление. /// При обновлении пресета посылается задача PresetInstallTask в очередь key.preset.install. /// Данное сообщение должно отправляться только если изменению подверглось одно из следующих полей: /// - Sip; /// - Ntp; /// - Syslog; /// - Room; /// - VideoConfig; /// - Dtmf. /// Метод доступен для: admin, service /// /// 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::Keyapis.Preset.V1.PostPresetResponse PostPreset(global::Keyapis.Preset.V1.PostPresetRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostPreset, null, options, request); } /// /// Метод сохранения пресетов. /// Поддерживает создание и обновление. /// При обновлении пресета посылается задача PresetInstallTask в очередь key.preset.install. /// Данное сообщение должно отправляться только если изменению подверглось одно из следующих полей: /// - Sip; /// - Ntp; /// - Syslog; /// - Room; /// - VideoConfig; /// - Dtmf. /// Метод доступен для: admin, service /// /// 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 PostPresetAsync(global::Keyapis.Preset.V1.PostPresetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostPresetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения пресетов. /// Поддерживает создание и обновление. /// При обновлении пресета посылается задача PresetInstallTask в очередь key.preset.install. /// Данное сообщение должно отправляться только если изменению подверглось одно из следующих полей: /// - Sip; /// - Ntp; /// - Syslog; /// - Room; /// - VideoConfig; /// - Dtmf. /// Метод доступен для: admin, service /// /// 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 PostPresetAsync(global::Keyapis.Preset.V1.PostPresetRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostPreset, null, options, request); } /// /// Метод получения пресета по идентификатору. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::Keyapis.Preset.V1.GetPresetResponse GetPreset(global::Keyapis.Preset.V1.GetPresetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPreset(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения пресета по идентификатору. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::Keyapis.Preset.V1.GetPresetResponse GetPreset(global::Keyapis.Preset.V1.GetPresetRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetPreset, null, options, request); } /// /// Метод получения пресета по идентификатору. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetAsync(global::Keyapis.Preset.V1.GetPresetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPresetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения пресета по идентификатору. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetAsync(global::Keyapis.Preset.V1.GetPresetRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetPreset, null, options, request); } /// /// Метод получения дефолтного пресета. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::Keyapis.Preset.V1.GetPresetDefaultResponse GetPresetDefault(global::Keyapis.Preset.V1.GetPresetDefaultRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPresetDefault(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения дефолтного пресета. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::Keyapis.Preset.V1.GetPresetDefaultResponse GetPresetDefault(global::Keyapis.Preset.V1.GetPresetDefaultRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetPresetDefault, null, options, request); } /// /// Метод получения дефолтного пресета. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetDefaultAsync(global::Keyapis.Preset.V1.GetPresetDefaultRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPresetDefaultAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения дефолтного пресета. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetDefaultAsync(global::Keyapis.Preset.V1.GetPresetDefaultRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetPresetDefault, null, options, request); } /// /// Метод получения пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::AsyncServerStreamingCall GetPresetList(global::Keyapis.Preset.V1.GetPresetListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPresetList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::AsyncServerStreamingCall GetPresetList(global::Keyapis.Preset.V1.GetPresetListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetPresetList, null, options, request); } /// /// Метод получения количества пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::Keyapis.Preset.V1.GetPresetCountResponse GetPresetCount(global::Keyapis.Preset.V1.GetPresetCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPresetCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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::Keyapis.Preset.V1.GetPresetCountResponse GetPresetCount(global::Keyapis.Preset.V1.GetPresetCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetPresetCount, null, options, request); } /// /// Метод получения количества пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetCountAsync(global::Keyapis.Preset.V1.GetPresetCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPresetCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества пресетов. /// Метод доступен для: admin, service, bti, ltp_first, owner, employee /// /// 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 GetPresetCountAsync(global::Keyapis.Preset.V1.GetPresetCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetPresetCount, null, options, request); } /// /// Метод удаления пресета. /// Нельзя удалить пресет, если он используется на устройстве. /// Нельзя удалить дефолтный пресет. /// Метод доступен для: admin, service /// /// 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::Keyapis.Preset.V1.DeletePresetResponse DeletePreset(global::Keyapis.Preset.V1.DeletePresetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePreset(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пресета. /// Нельзя удалить пресет, если он используется на устройстве. /// Нельзя удалить дефолтный пресет. /// Метод доступен для: admin, service /// /// 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::Keyapis.Preset.V1.DeletePresetResponse DeletePreset(global::Keyapis.Preset.V1.DeletePresetRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeletePreset, null, options, request); } /// /// Метод удаления пресета. /// Нельзя удалить пресет, если он используется на устройстве. /// Нельзя удалить дефолтный пресет. /// Метод доступен для: admin, service /// /// 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 DeletePresetAsync(global::Keyapis.Preset.V1.DeletePresetRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePresetAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пресета. /// Нельзя удалить пресет, если он используется на устройстве. /// Нельзя удалить дефолтный пресет. /// Метод доступен для: admin, service /// /// 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 DeletePresetAsync(global::Keyapis.Preset.V1.DeletePresetRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeletePreset, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override PresetServiceClient NewInstance(ClientBaseConfiguration configuration) { return new PresetServiceClient(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(PresetServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostPreset, serviceImpl.PostPreset) .AddMethod(__Method_GetPreset, serviceImpl.GetPreset) .AddMethod(__Method_GetPresetDefault, serviceImpl.GetPresetDefault) .AddMethod(__Method_GetPresetList, serviceImpl.GetPresetList) .AddMethod(__Method_GetPresetCount, serviceImpl.GetPresetCount) .AddMethod(__Method_DeletePreset, serviceImpl.DeletePreset).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, PresetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostPreset, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostPreset)); serviceBinder.AddMethod(__Method_GetPreset, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPreset)); serviceBinder.AddMethod(__Method_GetPresetDefault, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPresetDefault)); serviceBinder.AddMethod(__Method_GetPresetList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetPresetList)); serviceBinder.AddMethod(__Method_GetPresetCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPresetCount)); serviceBinder.AddMethod(__Method_DeletePreset, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePreset)); } } } #endregion