// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_trunk_config.proto // // Original file comments: // // Сервис получения trunk-конфигурации для определенного города #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Device.V1 { /// /// Сервис получения trunk-конфигурации для определенного города /// public static partial class TrunkConfigService { static readonly string __ServiceName = "keyapis.device.v1.TrunkConfigService"; [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_device_v1_GetTrunkConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.GetTrunkConfigRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_GetTrunkConfigResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.GetTrunkConfigResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_GetTrunkConfigListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.GetTrunkConfigListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_GetTrunkConfigListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.GetTrunkConfigListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_GetTrunkConfigCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.GetTrunkConfigCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_GetTrunkConfigCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.GetTrunkConfigCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_PostTrunkConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.PostTrunkConfigRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_PostTrunkConfigResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.PostTrunkConfigResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_DeleteTrunkConfigRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.DeleteTrunkConfigRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_DeleteTrunkConfigResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.DeleteTrunkConfigResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_PostTrunkConfigRestoreRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.PostTrunkConfigRestoreRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_device_v1_PostTrunkConfigRestoreResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Device.V1.PostTrunkConfigRestoreResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetTrunkConfig = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetTrunkConfig", __Marshaller_keyapis_device_v1_GetTrunkConfigRequest, __Marshaller_keyapis_device_v1_GetTrunkConfigResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetTrunkConfigList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetTrunkConfigList", __Marshaller_keyapis_device_v1_GetTrunkConfigListRequest, __Marshaller_keyapis_device_v1_GetTrunkConfigListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetTrunkConfigCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetTrunkConfigCount", __Marshaller_keyapis_device_v1_GetTrunkConfigCountRequest, __Marshaller_keyapis_device_v1_GetTrunkConfigCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostTrunkConfig = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostTrunkConfig", __Marshaller_keyapis_device_v1_PostTrunkConfigRequest, __Marshaller_keyapis_device_v1_PostTrunkConfigResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteTrunkConfig = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteTrunkConfig", __Marshaller_keyapis_device_v1_DeleteTrunkConfigRequest, __Marshaller_keyapis_device_v1_DeleteTrunkConfigResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostTrunkConfigRestore = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostTrunkConfigRestore", __Marshaller_keyapis_device_v1_PostTrunkConfigRestoreRequest, __Marshaller_keyapis_device_v1_PostTrunkConfigRestoreResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceTrunkConfigReflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of TrunkConfigService [grpc::BindServiceMethod(typeof(TrunkConfigService), "BindService")] public abstract partial class TrunkConfigServiceBase { /// /// Метод получения trunk-конфигурации. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfig(global::Keyapis.Device.V1.GetTrunkConfigRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigList(global::Keyapis.Device.V1.GetTrunkConfigListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigCount(global::Keyapis.Device.V1.GetTrunkConfigCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания trunk-конфигурации. /// Поддерживает создание и обновление. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 PostTrunkConfig(global::Keyapis.Device.V1.PostTrunkConfigRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод архивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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 DeleteTrunkConfig(global::Keyapis.Device.V1.DeleteTrunkConfigRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод разархивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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 PostTrunkConfigRestore(global::Keyapis.Device.V1.PostTrunkConfigRestoreRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for TrunkConfigService public partial class TrunkConfigServiceClient : grpc::ClientBase { /// Creates a new client for TrunkConfigService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public TrunkConfigServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for TrunkConfigService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public TrunkConfigServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected TrunkConfigServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected TrunkConfigServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод получения trunk-конфигурации. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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.Device.V1.GetTrunkConfigResponse GetTrunkConfig(global::Keyapis.Device.V1.GetTrunkConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetTrunkConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения trunk-конфигурации. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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.Device.V1.GetTrunkConfigResponse GetTrunkConfig(global::Keyapis.Device.V1.GetTrunkConfigRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetTrunkConfig, null, options, request); } /// /// Метод получения trunk-конфигурации. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigAsync(global::Keyapis.Device.V1.GetTrunkConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetTrunkConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения trunk-конфигурации. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigAsync(global::Keyapis.Device.V1.GetTrunkConfigRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetTrunkConfig, null, options, request); } /// /// Метод получения списка trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigList(global::Keyapis.Device.V1.GetTrunkConfigListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetTrunkConfigList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigList(global::Keyapis.Device.V1.GetTrunkConfigListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetTrunkConfigList, null, options, request); } /// /// Метод получения количества trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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.Device.V1.GetTrunkConfigCountResponse GetTrunkConfigCount(global::Keyapis.Device.V1.GetTrunkConfigCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetTrunkConfigCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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.Device.V1.GetTrunkConfigCountResponse GetTrunkConfigCount(global::Keyapis.Device.V1.GetTrunkConfigCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetTrunkConfigCount, null, options, request); } /// /// Метод получения количества trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigCountAsync(global::Keyapis.Device.V1.GetTrunkConfigCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetTrunkConfigCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества trunk-конфигураций. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 GetTrunkConfigCountAsync(global::Keyapis.Device.V1.GetTrunkConfigCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetTrunkConfigCount, null, options, request); } /// /// Метод создания trunk-конфигурации. /// Поддерживает создание и обновление. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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.Device.V1.PostTrunkConfigResponse PostTrunkConfig(global::Keyapis.Device.V1.PostTrunkConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostTrunkConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания trunk-конфигурации. /// Поддерживает создание и обновление. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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.Device.V1.PostTrunkConfigResponse PostTrunkConfig(global::Keyapis.Device.V1.PostTrunkConfigRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostTrunkConfig, null, options, request); } /// /// Метод создания trunk-конфигурации. /// Поддерживает создание и обновление. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 PostTrunkConfigAsync(global::Keyapis.Device.V1.PostTrunkConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostTrunkConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания trunk-конфигурации. /// Поддерживает создание и обновление. /// Метод доступен для: admin, bti, service, ltp_first /// /// 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 PostTrunkConfigAsync(global::Keyapis.Device.V1.PostTrunkConfigRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostTrunkConfig, null, options, request); } /// /// Метод архивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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.Device.V1.DeleteTrunkConfigResponse DeleteTrunkConfig(global::Keyapis.Device.V1.DeleteTrunkConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteTrunkConfig(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод архивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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.Device.V1.DeleteTrunkConfigResponse DeleteTrunkConfig(global::Keyapis.Device.V1.DeleteTrunkConfigRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteTrunkConfig, null, options, request); } /// /// Метод архивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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 DeleteTrunkConfigAsync(global::Keyapis.Device.V1.DeleteTrunkConfigRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteTrunkConfigAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод архивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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 DeleteTrunkConfigAsync(global::Keyapis.Device.V1.DeleteTrunkConfigRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteTrunkConfig, null, options, request); } /// /// Метод разархивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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.Device.V1.PostTrunkConfigRestoreResponse PostTrunkConfigRestore(global::Keyapis.Device.V1.PostTrunkConfigRestoreRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostTrunkConfigRestore(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод разархивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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.Device.V1.PostTrunkConfigRestoreResponse PostTrunkConfigRestore(global::Keyapis.Device.V1.PostTrunkConfigRestoreRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostTrunkConfigRestore, null, options, request); } /// /// Метод разархивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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 PostTrunkConfigRestoreAsync(global::Keyapis.Device.V1.PostTrunkConfigRestoreRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostTrunkConfigRestoreAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод разархивации trunk-конфигурации. /// Метод доступен для: admin, service, device_admin /// /// 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 PostTrunkConfigRestoreAsync(global::Keyapis.Device.V1.PostTrunkConfigRestoreRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostTrunkConfigRestore, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override TrunkConfigServiceClient NewInstance(ClientBaseConfiguration configuration) { return new TrunkConfigServiceClient(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(TrunkConfigServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetTrunkConfig, serviceImpl.GetTrunkConfig) .AddMethod(__Method_GetTrunkConfigList, serviceImpl.GetTrunkConfigList) .AddMethod(__Method_GetTrunkConfigCount, serviceImpl.GetTrunkConfigCount) .AddMethod(__Method_PostTrunkConfig, serviceImpl.PostTrunkConfig) .AddMethod(__Method_DeleteTrunkConfig, serviceImpl.DeleteTrunkConfig) .AddMethod(__Method_PostTrunkConfigRestore, serviceImpl.PostTrunkConfigRestore).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, TrunkConfigServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetTrunkConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTrunkConfig)); serviceBinder.AddMethod(__Method_GetTrunkConfigList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetTrunkConfigList)); serviceBinder.AddMethod(__Method_GetTrunkConfigCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetTrunkConfigCount)); serviceBinder.AddMethod(__Method_PostTrunkConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostTrunkConfig)); serviceBinder.AddMethod(__Method_DeleteTrunkConfig, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteTrunkConfig)); serviceBinder.AddMethod(__Method_PostTrunkConfigRestore, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostTrunkConfigRestore)); } } } #endregion