// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/access_control/v1/keyapis_access_control_entrance_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 EntranceService { static readonly string __ServiceName = "keyapis.access_control.v1.EntranceService"; [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_PostEntranceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PostEntranceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PostEntranceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PostEntranceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_DeleteEntranceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.DeleteEntranceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_DeleteEntranceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.DeleteEntranceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetEntranceListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetEntranceListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetEntranceListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetEntranceListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PutEntranceDeviceAttachRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PutEntranceDeviceAttachResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PutEntranceDeviceDetachRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_PutEntranceDeviceDetachResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetEntranceDeviceListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetEntranceDeviceListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_access_control_v1_GetEntranceDeviceListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessControl.V1.GetEntranceDeviceListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostEntrance = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostEntrance", __Marshaller_keyapis_access_control_v1_PostEntranceRequest, __Marshaller_keyapis_access_control_v1_PostEntranceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteEntrance = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteEntrance", __Marshaller_keyapis_access_control_v1_DeleteEntranceRequest, __Marshaller_keyapis_access_control_v1_DeleteEntranceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetEntranceList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetEntranceList", __Marshaller_keyapis_access_control_v1_GetEntranceListRequest, __Marshaller_keyapis_access_control_v1_GetEntranceListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PutEntranceDeviceAttach = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PutEntranceDeviceAttach", __Marshaller_keyapis_access_control_v1_PutEntranceDeviceAttachRequest, __Marshaller_keyapis_access_control_v1_PutEntranceDeviceAttachResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PutEntranceDeviceDetach = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PutEntranceDeviceDetach", __Marshaller_keyapis_access_control_v1_PutEntranceDeviceDetachRequest, __Marshaller_keyapis_access_control_v1_PutEntranceDeviceDetachResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetEntranceDeviceList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetEntranceDeviceList", __Marshaller_keyapis_access_control_v1_GetEntranceDeviceListRequest, __Marshaller_keyapis_access_control_v1_GetEntranceDeviceListResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlEntranceV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of EntranceService [grpc::BindServiceMethod(typeof(EntranceService), "BindService")] public abstract partial class EntranceServiceBase { /// /// Метод создания подъезда. /// Для ролей employee, owner можно сохранять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 PostEntrance(global::Keyapis.AccessControl.V1.PostEntranceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления подъезда. /// Реализуется как удаление квартир по указанному дому и номеру подъезда. /// Для ролей employee, owner можно удалять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 DeleteEntrance(global::Keyapis.AccessControl.V1.DeleteEntranceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка подъездов. /// При переданном company_ids учитывается тип связи компании и квартирограммы. /// Если EntranceFilter.CompanyRelationType = DEVICE_SERVICE, то проверяется связка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE. /// Если EntranceFilter.CompanyRelationType = MANAGEMENT, то проверяется связка в flatgramm_companies. /// Если EntranceFilter.CompanyRelationType = DEFAULT, то проверяется связка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE. /// Если EntranceFilter.CompanyRelationType = COMPANY_RELATION_TYPE_UNKNOWN, вернется ошибка валидации. /// При не переданном company_ids поле EntranceFilter.CompanyRelationType вызовет ошибку валидации. /// Для ролей employee, owner можно получать только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 GetEntranceList(global::Keyapis.AccessControl.V1.GetEntranceListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания связи подъезда и устройства. /// Для ролей employee, owner можно сохранять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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 PutEntranceDeviceAttach(global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления связи подъезда и устройства. /// Для ролей employee, owner можно удалять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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 PutEntranceDeviceDetach(global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка связок подъезд-устройство. /// Для ролей employee, owner можно получать только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 GetEntranceDeviceList(global::Keyapis.AccessControl.V1.GetEntranceDeviceListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for EntranceService public partial class EntranceServiceClient : grpc::ClientBase { /// Creates a new client for EntranceService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public EntranceServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for EntranceService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public EntranceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected EntranceServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected EntranceServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод создания подъезда. /// Для ролей employee, owner можно сохранять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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.PostEntranceResponse PostEntrance(global::Keyapis.AccessControl.V1.PostEntranceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostEntrance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания подъезда. /// Для ролей employee, owner можно сохранять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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.PostEntranceResponse PostEntrance(global::Keyapis.AccessControl.V1.PostEntranceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostEntrance, null, options, request); } /// /// Метод создания подъезда. /// Для ролей employee, owner можно сохранять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 PostEntranceAsync(global::Keyapis.AccessControl.V1.PostEntranceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostEntranceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания подъезда. /// Для ролей employee, owner можно сохранять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 PostEntranceAsync(global::Keyapis.AccessControl.V1.PostEntranceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostEntrance, null, options, request); } /// /// Метод удаления подъезда. /// Реализуется как удаление квартир по указанному дому и номеру подъезда. /// Для ролей employee, owner можно удалять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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.DeleteEntranceResponse DeleteEntrance(global::Keyapis.AccessControl.V1.DeleteEntranceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteEntrance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления подъезда. /// Реализуется как удаление квартир по указанному дому и номеру подъезда. /// Для ролей employee, owner можно удалять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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.DeleteEntranceResponse DeleteEntrance(global::Keyapis.AccessControl.V1.DeleteEntranceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteEntrance, null, options, request); } /// /// Метод удаления подъезда. /// Реализуется как удаление квартир по указанному дому и номеру подъезда. /// Для ролей employee, owner можно удалять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 DeleteEntranceAsync(global::Keyapis.AccessControl.V1.DeleteEntranceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteEntranceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления подъезда. /// Реализуется как удаление квартир по указанному дому и номеру подъезда. /// Для ролей employee, owner можно удалять только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 DeleteEntranceAsync(global::Keyapis.AccessControl.V1.DeleteEntranceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteEntrance, null, options, request); } /// /// Метод получения списка подъездов. /// При переданном company_ids учитывается тип связи компании и квартирограммы. /// Если EntranceFilter.CompanyRelationType = DEVICE_SERVICE, то проверяется связка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE. /// Если EntranceFilter.CompanyRelationType = MANAGEMENT, то проверяется связка в flatgramm_companies. /// Если EntranceFilter.CompanyRelationType = DEFAULT, то проверяется связка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE. /// Если EntranceFilter.CompanyRelationType = COMPANY_RELATION_TYPE_UNKNOWN, вернется ошибка валидации. /// При не переданном company_ids поле EntranceFilter.CompanyRelationType вызовет ошибку валидации. /// Для ролей employee, owner можно получать только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 GetEntranceList(global::Keyapis.AccessControl.V1.GetEntranceListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetEntranceList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка подъездов. /// При переданном company_ids учитывается тип связи компании и квартирограммы. /// Если EntranceFilter.CompanyRelationType = DEVICE_SERVICE, то проверяется связка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE. /// Если EntranceFilter.CompanyRelationType = MANAGEMENT, то проверяется связка в flatgramm_companies. /// Если EntranceFilter.CompanyRelationType = DEFAULT, то проверяется связка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE. /// Если EntranceFilter.CompanyRelationType = COMPANY_RELATION_TYPE_UNKNOWN, вернется ошибка валидации. /// При не переданном company_ids поле EntranceFilter.CompanyRelationType вызовет ошибку валидации. /// Для ролей employee, owner можно получать только подъезды квартирограмм, привязанные к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 GetEntranceList(global::Keyapis.AccessControl.V1.GetEntranceListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetEntranceList, null, options, request); } /// /// Метод создания связи подъезда и устройства. /// Для ролей employee, owner можно сохранять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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.PutEntranceDeviceAttachResponse PutEntranceDeviceAttach(global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutEntranceDeviceAttach(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания связи подъезда и устройства. /// Для ролей employee, owner можно сохранять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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.PutEntranceDeviceAttachResponse PutEntranceDeviceAttach(global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PutEntranceDeviceAttach, null, options, request); } /// /// Метод создания связи подъезда и устройства. /// Для ролей employee, owner можно сохранять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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 PutEntranceDeviceAttachAsync(global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutEntranceDeviceAttachAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания связи подъезда и устройства. /// Для ролей employee, owner можно сохранять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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 PutEntranceDeviceAttachAsync(global::Keyapis.AccessControl.V1.PutEntranceDeviceAttachRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PutEntranceDeviceAttach, null, options, request); } /// /// Метод удаления связи подъезда и устройства. /// Для ролей employee, owner можно удалять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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.PutEntranceDeviceDetachResponse PutEntranceDeviceDetach(global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutEntranceDeviceDetach(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления связи подъезда и устройства. /// Для ролей employee, owner можно удалять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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.PutEntranceDeviceDetachResponse PutEntranceDeviceDetach(global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PutEntranceDeviceDetach, null, options, request); } /// /// Метод удаления связи подъезда и устройства. /// Для ролей employee, owner можно удалять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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 PutEntranceDeviceDetachAsync(global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutEntranceDeviceDetachAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления связи подъезда и устройства. /// Для ролей employee, owner можно удалять только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// EntranceDevice.RelationType в данном методе не используется. /// Метод доступен для: admin, service, 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 PutEntranceDeviceDetachAsync(global::Keyapis.AccessControl.V1.PutEntranceDeviceDetachRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PutEntranceDeviceDetach, null, options, request); } /// /// Метод получения списка связок подъезд-устройство. /// Для ролей employee, owner можно получать только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 GetEntranceDeviceList(global::Keyapis.AccessControl.V1.GetEntranceDeviceListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetEntranceDeviceList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка связок подъезд-устройство. /// Для ролей employee, owner можно получать только связи с подъездами квартирограмм, привязанным к домофонной компании пользователя (привязка компании с типом dc_company_flatgramm.type = DEVICE_SERVICE). /// Метод доступен для: admin, service, 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 GetEntranceDeviceList(global::Keyapis.AccessControl.V1.GetEntranceDeviceListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetEntranceDeviceList, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override EntranceServiceClient NewInstance(ClientBaseConfiguration configuration) { return new EntranceServiceClient(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(EntranceServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostEntrance, serviceImpl.PostEntrance) .AddMethod(__Method_DeleteEntrance, serviceImpl.DeleteEntrance) .AddMethod(__Method_GetEntranceList, serviceImpl.GetEntranceList) .AddMethod(__Method_PutEntranceDeviceAttach, serviceImpl.PutEntranceDeviceAttach) .AddMethod(__Method_PutEntranceDeviceDetach, serviceImpl.PutEntranceDeviceDetach) .AddMethod(__Method_GetEntranceDeviceList, serviceImpl.GetEntranceDeviceList).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, EntranceServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostEntrance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostEntrance)); serviceBinder.AddMethod(__Method_DeleteEntrance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteEntrance)); serviceBinder.AddMethod(__Method_GetEntranceList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetEntranceList)); serviceBinder.AddMethod(__Method_PutEntranceDeviceAttach, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PutEntranceDeviceAttach)); serviceBinder.AddMethod(__Method_PutEntranceDeviceDetach, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PutEntranceDeviceDetach)); serviceBinder.AddMethod(__Method_GetEntranceDeviceList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetEntranceDeviceList)); } } } #endregion