// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_user_v1.proto // // Original file comments: // // Спецификация АПИ управления сущностью User #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Deviceapis.Device.V1 { /// /// Сервис управления пользователями /// public static partial class UserService { static readonly string __ServiceName = "deviceapis.device.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_deviceapis_device_v1_DeleteUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteUserRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_DeleteUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.DeleteUserResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetUserListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetUserListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_GetUserListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.GetUserListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostUserNameReplaceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostUserNameReplaceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostUserNameReplaceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostUserNameReplaceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostUserPasswordReplaceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostUserPasswordReplaceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostUserPasswordReplaceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostUserPasswordReplaceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostUserPermissionReplaceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostUserPermissionReplaceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_PostUserPermissionReplaceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.PostUserPermissionReplaceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveUserRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveUserRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_deviceapis_device_v1_SaveUserResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Deviceapis.Device.V1.SaveUserResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteUser = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteUser", __Marshaller_deviceapis_device_v1_DeleteUserRequest, __Marshaller_deviceapis_device_v1_DeleteUserResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetUserList = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetUserList", __Marshaller_deviceapis_device_v1_GetUserListRequest, __Marshaller_deviceapis_device_v1_GetUserListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostUserNameReplace = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostUserNameReplace", __Marshaller_deviceapis_device_v1_PostUserNameReplaceRequest, __Marshaller_deviceapis_device_v1_PostUserNameReplaceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostUserPasswordReplace = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostUserPasswordReplace", __Marshaller_deviceapis_device_v1_PostUserPasswordReplaceRequest, __Marshaller_deviceapis_device_v1_PostUserPasswordReplaceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostUserPermissionReplace = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostUserPermissionReplace", __Marshaller_deviceapis_device_v1_PostUserPermissionReplaceRequest, __Marshaller_deviceapis_device_v1_PostUserPermissionReplaceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_SaveUser = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "SaveUser", __Marshaller_deviceapis_device_v1_SaveUserRequest, __Marshaller_deviceapis_device_v1_SaveUserResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Deviceapis.Device.V1.DeviceapisDeviceUserV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of UserService [grpc::BindServiceMethod(typeof(UserService), "BindService")] public abstract partial class UserServiceBase { /// /// Метод удаления единичной сущности User по ключу /// /// 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::Deviceapis.Device.V1.DeleteUserRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка сущностей User по фильтру /// /// 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 GetUserList(global::Deviceapis.Device.V1.GetUserListRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод замены имени пользователя /// /// 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 PostUserNameReplace(global::Deviceapis.Device.V1.PostUserNameReplaceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод замены пароля пользователя /// /// 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 PostUserPasswordReplace(global::Deviceapis.Device.V1.PostUserPasswordReplaceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод замены пароля пользователя. /// Будут изменены только явно переданные в data.permission разрешения /// /// 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 PostUserPermissionReplace(global::Deviceapis.Device.V1.PostUserPermissionReplaceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания/редактирования сущности User /// /// 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 SaveUser(global::Deviceapis.Device.V1.SaveUserRequest 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) { } /// /// Метод удаления единичной сущности User по ключу /// /// 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::Deviceapis.Device.V1.DeleteUserResponse DeleteUser(global::Deviceapis.Device.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)); } /// /// Метод удаления единичной сущности User по ключу /// /// 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::Deviceapis.Device.V1.DeleteUserResponse DeleteUser(global::Deviceapis.Device.V1.DeleteUserRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteUser, null, options, request); } /// /// Метод удаления единичной сущности User по ключу /// /// 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::Deviceapis.Device.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)); } /// /// Метод удаления единичной сущности User по ключу /// /// 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::Deviceapis.Device.V1.DeleteUserRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteUser, null, options, request); } /// /// Метод получения списка сущностей User по фильтру /// /// 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::Deviceapis.Device.V1.GetUserListResponse GetUserList(global::Deviceapis.Device.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)); } /// /// Метод получения списка сущностей User по фильтру /// /// 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::Deviceapis.Device.V1.GetUserListResponse GetUserList(global::Deviceapis.Device.V1.GetUserListRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetUserList, null, options, request); } /// /// Метод получения списка сущностей User по фильтру /// /// 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 GetUserListAsync(global::Deviceapis.Device.V1.GetUserListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetUserListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка сущностей User по фильтру /// /// 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 GetUserListAsync(global::Deviceapis.Device.V1.GetUserListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetUserList, null, options, request); } /// /// Метод замены имени пользователя /// /// 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::Deviceapis.Device.V1.PostUserNameReplaceResponse PostUserNameReplace(global::Deviceapis.Device.V1.PostUserNameReplaceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserNameReplace(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод замены имени пользователя /// /// 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::Deviceapis.Device.V1.PostUserNameReplaceResponse PostUserNameReplace(global::Deviceapis.Device.V1.PostUserNameReplaceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostUserNameReplace, null, options, request); } /// /// Метод замены имени пользователя /// /// 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 PostUserNameReplaceAsync(global::Deviceapis.Device.V1.PostUserNameReplaceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserNameReplaceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод замены имени пользователя /// /// 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 PostUserNameReplaceAsync(global::Deviceapis.Device.V1.PostUserNameReplaceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostUserNameReplace, null, options, request); } /// /// Метод замены пароля пользователя /// /// 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::Deviceapis.Device.V1.PostUserPasswordReplaceResponse PostUserPasswordReplace(global::Deviceapis.Device.V1.PostUserPasswordReplaceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserPasswordReplace(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод замены пароля пользователя /// /// 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::Deviceapis.Device.V1.PostUserPasswordReplaceResponse PostUserPasswordReplace(global::Deviceapis.Device.V1.PostUserPasswordReplaceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostUserPasswordReplace, null, options, request); } /// /// Метод замены пароля пользователя /// /// 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 PostUserPasswordReplaceAsync(global::Deviceapis.Device.V1.PostUserPasswordReplaceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserPasswordReplaceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод замены пароля пользователя /// /// 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 PostUserPasswordReplaceAsync(global::Deviceapis.Device.V1.PostUserPasswordReplaceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostUserPasswordReplace, null, options, request); } /// /// Метод замены пароля пользователя. /// Будут изменены только явно переданные в data.permission разрешения /// /// 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::Deviceapis.Device.V1.PostUserPermissionReplaceResponse PostUserPermissionReplace(global::Deviceapis.Device.V1.PostUserPermissionReplaceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserPermissionReplace(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод замены пароля пользователя. /// Будут изменены только явно переданные в data.permission разрешения /// /// 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::Deviceapis.Device.V1.PostUserPermissionReplaceResponse PostUserPermissionReplace(global::Deviceapis.Device.V1.PostUserPermissionReplaceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostUserPermissionReplace, null, options, request); } /// /// Метод замены пароля пользователя. /// Будут изменены только явно переданные в data.permission разрешения /// /// 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 PostUserPermissionReplaceAsync(global::Deviceapis.Device.V1.PostUserPermissionReplaceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostUserPermissionReplaceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод замены пароля пользователя. /// Будут изменены только явно переданные в data.permission разрешения /// /// 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 PostUserPermissionReplaceAsync(global::Deviceapis.Device.V1.PostUserPermissionReplaceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostUserPermissionReplace, null, options, request); } /// /// Метод создания/редактирования сущности User /// /// 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::Deviceapis.Device.V1.SaveUserResponse SaveUser(global::Deviceapis.Device.V1.SaveUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return SaveUser(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания/редактирования сущности User /// /// 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::Deviceapis.Device.V1.SaveUserResponse SaveUser(global::Deviceapis.Device.V1.SaveUserRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_SaveUser, null, options, request); } /// /// Метод создания/редактирования сущности User /// /// 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 SaveUserAsync(global::Deviceapis.Device.V1.SaveUserRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return SaveUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания/редактирования сущности User /// /// 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 SaveUserAsync(global::Deviceapis.Device.V1.SaveUserRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_SaveUser, 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_DeleteUser, serviceImpl.DeleteUser) .AddMethod(__Method_GetUserList, serviceImpl.GetUserList) .AddMethod(__Method_PostUserNameReplace, serviceImpl.PostUserNameReplace) .AddMethod(__Method_PostUserPasswordReplace, serviceImpl.PostUserPasswordReplace) .AddMethod(__Method_PostUserPermissionReplace, serviceImpl.PostUserPermissionReplace) .AddMethod(__Method_SaveUser, serviceImpl.SaveUser).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_DeleteUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteUser)); serviceBinder.AddMethod(__Method_GetUserList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUserList)); serviceBinder.AddMethod(__Method_PostUserNameReplace, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostUserNameReplace)); serviceBinder.AddMethod(__Method_PostUserPasswordReplace, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostUserPasswordReplace)); serviceBinder.AddMethod(__Method_PostUserPermissionReplace, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostUserPermissionReplace)); serviceBinder.AddMethod(__Method_SaveUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SaveUser)); } } } #endregion