// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/access_control/v1/keyapis_access_control_access_zone_v1.proto // // Original file comments: // // Сервис реализует функционал управления зонами доступа #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.AccessControl.V1 { /// /// Сервис зон доступа /// public static partial class AccessZoneService { static readonly string __ServiceName = "keyapis.access_control.v1.AccessZoneService"; [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_access_control_v1_PostAccessZoneRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PostAccessZoneRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PostAccessZoneResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PostAccessZoneResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetAccessZoneRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetAccessZoneRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetAccessZoneResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetAccessZoneResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetAccessZoneListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetAccessZoneListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetAccessZoneListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetAccessZoneListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetAccessZoneCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetAccessZoneCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetAccessZoneCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetAccessZoneCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_DeleteAccessZoneRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.DeleteAccessZoneRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_DeleteAccessZoneResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.DeleteAccessZoneResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PostAccessZoneRestoreRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PostAccessZoneRestoreRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PostAccessZoneRestoreResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PostAccessZoneRestoreResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostAccessZone = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostAccessZone", __Marshaller_keyapis_access_control_v1_PostAccessZoneRequest, __Marshaller_keyapis_access_control_v1_PostAccessZoneResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetAccessZone = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetAccessZone", __Marshaller_keyapis_access_control_v1_GetAccessZoneRequest, __Marshaller_keyapis_access_control_v1_GetAccessZoneResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetAccessZoneList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetAccessZoneList", __Marshaller_keyapis_access_control_v1_GetAccessZoneListRequest, __Marshaller_keyapis_access_control_v1_GetAccessZoneListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetAccessZoneCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetAccessZoneCount", __Marshaller_keyapis_access_control_v1_GetAccessZoneCountRequest, __Marshaller_keyapis_access_control_v1_GetAccessZoneCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteAccessZone = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteAccessZone", __Marshaller_keyapis_access_control_v1_DeleteAccessZoneRequest, __Marshaller_keyapis_access_control_v1_DeleteAccessZoneResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostAccessZoneRestore = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostAccessZoneRestore", __Marshaller_keyapis_access_control_v1_PostAccessZoneRestoreRequest, __Marshaller_keyapis_access_control_v1_PostAccessZoneRestoreResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlAccessZoneV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of AccessZoneService [grpc::BindServiceMethod(typeof(AccessZoneService), "BindService")] public abstract partial class AccessZoneServiceBase { /// /// Метод сохранения зоны доступа. /// Поддерживает создание и обновление. /// Для пользователей типов owner, employee можно создать и редактировать зону доступа только в квартирограмме, относящейся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 PostAccessZone(global::Keyapis.AccessControl.V1.PostAccessZoneRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения зоны доступа по идентификатору. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZone(global::Keyapis.AccessControl.V1.GetAccessZoneRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneList(global::Keyapis.AccessControl.V1.GetAccessZoneListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneCount(global::Keyapis.AccessControl.V1.GetAccessZoneCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод архивации зоны доступа. /// Для пользователей типов owner, employee доступны к архивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 DeleteAccessZone(global::Keyapis.AccessControl.V1.DeleteAccessZoneRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод разархивации зоны доступа по идентификатору. /// Для пользователей типов owner, employee доступны к разархивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 PostAccessZoneRestore(global::Keyapis.AccessControl.V1.PostAccessZoneRestoreRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for AccessZoneService public partial class AccessZoneServiceClient : grpc::ClientBase { /// Creates a new client for AccessZoneService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public AccessZoneServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for AccessZoneService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public AccessZoneServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected AccessZoneServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected AccessZoneServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод сохранения зоны доступа. /// Поддерживает создание и обновление. /// Для пользователей типов owner, employee можно создать и редактировать зону доступа только в квартирограмме, относящейся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.PostAccessZoneResponse PostAccessZone(global::Keyapis.AccessControl.V1.PostAccessZoneRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostAccessZone(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения зоны доступа. /// Поддерживает создание и обновление. /// Для пользователей типов owner, employee можно создать и редактировать зону доступа только в квартирограмме, относящейся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.PostAccessZoneResponse PostAccessZone(global::Keyapis.AccessControl.V1.PostAccessZoneRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostAccessZone, null, options, request); } /// /// Метод сохранения зоны доступа. /// Поддерживает создание и обновление. /// Для пользователей типов owner, employee можно создать и редактировать зону доступа только в квартирограмме, относящейся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 PostAccessZoneAsync(global::Keyapis.AccessControl.V1.PostAccessZoneRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostAccessZoneAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения зоны доступа. /// Поддерживает создание и обновление. /// Для пользователей типов owner, employee можно создать и редактировать зону доступа только в квартирограмме, относящейся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 PostAccessZoneAsync(global::Keyapis.AccessControl.V1.PostAccessZoneRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostAccessZone, null, options, request); } /// /// Метод получения зоны доступа по идентификатору. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.GetAccessZoneResponse GetAccessZone(global::Keyapis.AccessControl.V1.GetAccessZoneRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetAccessZone(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения зоны доступа по идентификатору. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.GetAccessZoneResponse GetAccessZone(global::Keyapis.AccessControl.V1.GetAccessZoneRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetAccessZone, null, options, request); } /// /// Метод получения зоны доступа по идентификатору. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneAsync(global::Keyapis.AccessControl.V1.GetAccessZoneRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetAccessZoneAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения зоны доступа по идентификатору. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneAsync(global::Keyapis.AccessControl.V1.GetAccessZoneRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetAccessZone, null, options, request); } /// /// Метод получения списка зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneList(global::Keyapis.AccessControl.V1.GetAccessZoneListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetAccessZoneList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneList(global::Keyapis.AccessControl.V1.GetAccessZoneListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetAccessZoneList, null, options, request); } /// /// Метод получения количества зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.GetAccessZoneCountResponse GetAccessZoneCount(global::Keyapis.AccessControl.V1.GetAccessZoneCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetAccessZoneCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.GetAccessZoneCountResponse GetAccessZoneCount(global::Keyapis.AccessControl.V1.GetAccessZoneCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetAccessZoneCount, null, options, request); } /// /// Метод получения количества зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneCountAsync(global::Keyapis.AccessControl.V1.GetAccessZoneCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetAccessZoneCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества зон доступа. /// Для пользователей типов owner, employee возвращаются только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 GetAccessZoneCountAsync(global::Keyapis.AccessControl.V1.GetAccessZoneCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetAccessZoneCount, null, options, request); } /// /// Метод архивации зоны доступа. /// Для пользователей типов owner, employee доступны к архивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.DeleteAccessZoneResponse DeleteAccessZone(global::Keyapis.AccessControl.V1.DeleteAccessZoneRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteAccessZone(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод архивации зоны доступа. /// Для пользователей типов owner, employee доступны к архивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.DeleteAccessZoneResponse DeleteAccessZone(global::Keyapis.AccessControl.V1.DeleteAccessZoneRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteAccessZone, null, options, request); } /// /// Метод архивации зоны доступа. /// Для пользователей типов owner, employee доступны к архивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 DeleteAccessZoneAsync(global::Keyapis.AccessControl.V1.DeleteAccessZoneRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteAccessZoneAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод архивации зоны доступа. /// Для пользователей типов owner, employee доступны к архивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 DeleteAccessZoneAsync(global::Keyapis.AccessControl.V1.DeleteAccessZoneRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteAccessZone, null, options, request); } /// /// Метод разархивации зоны доступа по идентификатору. /// Для пользователей типов owner, employee доступны к разархивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.PostAccessZoneRestoreResponse PostAccessZoneRestore(global::Keyapis.AccessControl.V1.PostAccessZoneRestoreRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostAccessZoneRestore(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод разархивации зоны доступа по идентификатору. /// Для пользователей типов owner, employee доступны к разархивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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.AccessControl.V1.PostAccessZoneRestoreResponse PostAccessZoneRestore(global::Keyapis.AccessControl.V1.PostAccessZoneRestoreRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostAccessZoneRestore, null, options, request); } /// /// Метод разархивации зоны доступа по идентификатору. /// Для пользователей типов owner, employee доступны к разархивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 PostAccessZoneRestoreAsync(global::Keyapis.AccessControl.V1.PostAccessZoneRestoreRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostAccessZoneRestoreAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод разархивации зоны доступа по идентификатору. /// Для пользователей типов owner, employee доступны к разархивации только зоны доступа, относящиеся к компании пользователя. /// Метод доступен для: admin, service, bti, ltp_first, device_admin, manager, 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 PostAccessZoneRestoreAsync(global::Keyapis.AccessControl.V1.PostAccessZoneRestoreRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostAccessZoneRestore, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override AccessZoneServiceClient NewInstance(ClientBaseConfiguration configuration) { return new AccessZoneServiceClient(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(AccessZoneServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostAccessZone, serviceImpl.PostAccessZone) .AddMethod(__Method_GetAccessZone, serviceImpl.GetAccessZone) .AddMethod(__Method_GetAccessZoneList, serviceImpl.GetAccessZoneList) .AddMethod(__Method_GetAccessZoneCount, serviceImpl.GetAccessZoneCount) .AddMethod(__Method_DeleteAccessZone, serviceImpl.DeleteAccessZone) .AddMethod(__Method_PostAccessZoneRestore, serviceImpl.PostAccessZoneRestore).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, AccessZoneServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostAccessZone, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostAccessZone)); serviceBinder.AddMethod(__Method_GetAccessZone, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAccessZone)); serviceBinder.AddMethod(__Method_GetAccessZoneList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetAccessZoneList)); serviceBinder.AddMethod(__Method_GetAccessZoneCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAccessZoneCount)); serviceBinder.AddMethod(__Method_DeleteAccessZone, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteAccessZone)); serviceBinder.AddMethod(__Method_PostAccessZoneRestore, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostAccessZoneRestore)); } } } #endregion