// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/user/v1/keyapis_user_user_v1.proto // // Original file comments: // // Сервис реализует функционал управления пользователями #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.User.V1 { /// /// Сервис пользователей /// public static partial class UserService { static readonly string __ServiceName = "keyapis.user.v1.UserService"; [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_user_v1_GetUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_DeleteUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.DeleteUserRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_DeleteUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.DeleteUserResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_DeleteUserSessionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.DeleteUserSessionsRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_DeleteUserSessionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.DeleteUserSessionsResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserCodeRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserCodeRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_GetUserCodeResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.GetUserCodeResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_PostUserCodeCreateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.PostUserCodeCreateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_PostUserCodeCreateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.PostUserCodeCreateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_PostUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.PostUserRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_user_v1_PostUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.User.V1.PostUserResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetUser = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetUser", __Marshaller_keyapis_user_v1_GetUserRequest, __Marshaller_keyapis_user_v1_GetUserResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetUserList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetUserList", __Marshaller_keyapis_user_v1_GetUserListRequest, __Marshaller_keyapis_user_v1_GetUserListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetUserCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetUserCount", __Marshaller_keyapis_user_v1_GetUserCountRequest, __Marshaller_keyapis_user_v1_GetUserCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteUser = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteUser", __Marshaller_keyapis_user_v1_DeleteUserRequest, __Marshaller_keyapis_user_v1_DeleteUserResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteUserSessions = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteUserSessions", __Marshaller_keyapis_user_v1_DeleteUserSessionsRequest, __Marshaller_keyapis_user_v1_DeleteUserSessionsResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetUserCode = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetUserCode", __Marshaller_keyapis_user_v1_GetUserCodeRequest, __Marshaller_keyapis_user_v1_GetUserCodeResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostUserCodeCreate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostUserCodeCreate", __Marshaller_keyapis_user_v1_PostUserCodeCreateRequest, __Marshaller_keyapis_user_v1_PostUserCodeCreateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostUser = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostUser", __Marshaller_keyapis_user_v1_PostUserRequest, __Marshaller_keyapis_user_v1_PostUserResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.User.V1.KeyapisUserUserV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of UserService [grpc::BindServiceMethod(typeof(UserService), "BindService")] public abstract partial class UserServiceBase { /// /// Метод получения пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Роли 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 GetUser(global::Keyapis.User.V1.GetUserRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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 GetUserList(global::Keyapis.User.V1.GetUserListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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 GetUserCount(global::Keyapis.User.V1.GetUserCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления пользователей. /// Метод доступен для: admin, service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task DeleteUser(global::Keyapis.User.V1.DeleteUserRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления всех пользовательских сессий. /// Метод доступен для: admin, service /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task DeleteUserSessions(global::Keyapis.User.V1.DeleteUserSessionsRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения идентификационного кода пользователя. /// Метод доступен для: admin, 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 GetUserCode(global::Keyapis.User.V1.GetUserCodeRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания идентификационного кода пользователя. /// После создания кода отправляется событие SendingSmsTask. /// Метод доступен для: admin, 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 PostUserCodeCreate(global::Keyapis.User.V1.PostUserCodeCreateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания пользователя. /// Метод доступен для: admin, service. /// Доступно создание пользователей с типом: ADMIN, MRF, BTI, LTP_FIRST, SERVICE, DEVICE_ADMIN, MANAGER /// /// 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 PostUser(global::Keyapis.User.V1.PostUserRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for UserService public partial class UserServiceClient : grpc::ClientBase { /// Creates a new client for UserService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public UserServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for UserService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public UserServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected UserServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected UserServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод получения пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Роли 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.User.V1.GetUserResponse GetUser(global::Keyapis.User.V1.GetUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Роли 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.User.V1.GetUserResponse GetUser(global::Keyapis.User.V1.GetUserRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetUser, null, options, request); } /// /// Метод получения пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Роли 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 GetUserAsync(global::Keyapis.User.V1.GetUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Роли 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 GetUserAsync(global::Keyapis.User.V1.GetUserRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetUser, null, options, request); } /// /// Метод получения списка пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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 GetUserList(global::Keyapis.User.V1.GetUserListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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 GetUserList(global::Keyapis.User.V1.GetUserListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetUserList, null, options, request); } /// /// Метод получения количества пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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.User.V1.GetUserCountResponse GetUserCount(global::Keyapis.User.V1.GetUserCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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.User.V1.GetUserCountResponse GetUserCount(global::Keyapis.User.V1.GetUserCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetUserCount, null, options, request); } /// /// Метод получения количества пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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 GetUserCountAsync(global::Keyapis.User.V1.GetUserCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества пользователей. /// Метод доступен для: admin, service, manager, bti, ltp_first, owner, empolyee. /// Если метод вызван ролями owner или employee в фильтре поле company_ids принудительно замещается их company_id /// /// 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 GetUserCountAsync(global::Keyapis.User.V1.GetUserCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetUserCount, null, options, request); } /// /// Метод удаления пользователей. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.User.V1.DeleteUserResponse DeleteUser(global::Keyapis.User.V1.DeleteUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пользователей. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.User.V1.DeleteUserResponse DeleteUser(global::Keyapis.User.V1.DeleteUserRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteUser, null, options, request); } /// /// Метод удаления пользователей. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall DeleteUserAsync(global::Keyapis.User.V1.DeleteUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пользователей. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall DeleteUserAsync(global::Keyapis.User.V1.DeleteUserRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteUser, null, options, request); } /// /// Метод удаления всех пользовательских сессий. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.User.V1.DeleteUserSessionsResponse DeleteUserSessions(global::Keyapis.User.V1.DeleteUserSessionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteUserSessions(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления всех пользовательских сессий. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.User.V1.DeleteUserSessionsResponse DeleteUserSessions(global::Keyapis.User.V1.DeleteUserSessionsRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteUserSessions, null, options, request); } /// /// Метод удаления всех пользовательских сессий. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall DeleteUserSessionsAsync(global::Keyapis.User.V1.DeleteUserSessionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteUserSessionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления всех пользовательских сессий. /// Метод доступен для: admin, service /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall DeleteUserSessionsAsync(global::Keyapis.User.V1.DeleteUserSessionsRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteUserSessions, null, options, request); } /// /// Метод получения идентификационного кода пользователя. /// Метод доступен для: admin, 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.User.V1.GetUserCodeResponse GetUserCode(global::Keyapis.User.V1.GetUserCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserCode(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения идентификационного кода пользователя. /// Метод доступен для: admin, 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.User.V1.GetUserCodeResponse GetUserCode(global::Keyapis.User.V1.GetUserCodeRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetUserCode, null, options, request); } /// /// Метод получения идентификационного кода пользователя. /// Метод доступен для: admin, 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 GetUserCodeAsync(global::Keyapis.User.V1.GetUserCodeRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserCodeAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения идентификационного кода пользователя. /// Метод доступен для: admin, 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 GetUserCodeAsync(global::Keyapis.User.V1.GetUserCodeRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetUserCode, null, options, request); } /// /// Метод создания идентификационного кода пользователя. /// После создания кода отправляется событие SendingSmsTask. /// Метод доступен для: admin, 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.User.V1.PostUserCodeCreateResponse PostUserCodeCreate(global::Keyapis.User.V1.PostUserCodeCreateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserCodeCreate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания идентификационного кода пользователя. /// После создания кода отправляется событие SendingSmsTask. /// Метод доступен для: admin, 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.User.V1.PostUserCodeCreateResponse PostUserCodeCreate(global::Keyapis.User.V1.PostUserCodeCreateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostUserCodeCreate, null, options, request); } /// /// Метод создания идентификационного кода пользователя. /// После создания кода отправляется событие SendingSmsTask. /// Метод доступен для: admin, 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 PostUserCodeCreateAsync(global::Keyapis.User.V1.PostUserCodeCreateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserCodeCreateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания идентификационного кода пользователя. /// После создания кода отправляется событие SendingSmsTask. /// Метод доступен для: admin, 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 PostUserCodeCreateAsync(global::Keyapis.User.V1.PostUserCodeCreateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostUserCodeCreate, null, options, request); } /// /// Метод создания пользователя. /// Метод доступен для: admin, service. /// Доступно создание пользователей с типом: ADMIN, MRF, BTI, LTP_FIRST, SERVICE, DEVICE_ADMIN, MANAGER /// /// 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.User.V1.PostUserResponse PostUser(global::Keyapis.User.V1.PostUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания пользователя. /// Метод доступен для: admin, service. /// Доступно создание пользователей с типом: ADMIN, MRF, BTI, LTP_FIRST, SERVICE, DEVICE_ADMIN, MANAGER /// /// 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.User.V1.PostUserResponse PostUser(global::Keyapis.User.V1.PostUserRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostUser, null, options, request); } /// /// Метод создания пользователя. /// Метод доступен для: admin, service. /// Доступно создание пользователей с типом: ADMIN, MRF, BTI, LTP_FIRST, SERVICE, DEVICE_ADMIN, MANAGER /// /// 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 PostUserAsync(global::Keyapis.User.V1.PostUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания пользователя. /// Метод доступен для: admin, service. /// Доступно создание пользователей с типом: ADMIN, MRF, BTI, LTP_FIRST, SERVICE, DEVICE_ADMIN, MANAGER /// /// 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 PostUserAsync(global::Keyapis.User.V1.PostUserRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostUser, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override UserServiceClient NewInstance(ClientBaseConfiguration configuration) { return new UserServiceClient(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(UserServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetUser, serviceImpl.GetUser) .AddMethod(__Method_GetUserList, serviceImpl.GetUserList) .AddMethod(__Method_GetUserCount, serviceImpl.GetUserCount) .AddMethod(__Method_DeleteUser, serviceImpl.DeleteUser) .AddMethod(__Method_DeleteUserSessions, serviceImpl.DeleteUserSessions) .AddMethod(__Method_GetUserCode, serviceImpl.GetUserCode) .AddMethod(__Method_PostUserCodeCreate, serviceImpl.PostUserCodeCreate) .AddMethod(__Method_PostUser, serviceImpl.PostUser).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, UserServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUser)); serviceBinder.AddMethod(__Method_GetUserList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetUserList)); serviceBinder.AddMethod(__Method_GetUserCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUserCount)); serviceBinder.AddMethod(__Method_DeleteUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteUser)); serviceBinder.AddMethod(__Method_DeleteUserSessions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteUserSessions)); serviceBinder.AddMethod(__Method_GetUserCode, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUserCode)); serviceBinder.AddMethod(__Method_PostUserCodeCreate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostUserCodeCreate)); serviceBinder.AddMethod(__Method_PostUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostUser)); } } } #endregion