// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/notification/v1/keyapis_notification_push_token_v1.proto // // Original file comments: // // Сервис реализует функционал управления пуш-токенами устройств. // Используется как отдельное хранилихе пуш токенов, на первом этапе будет хранить только PWA токены #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Notification.V1 { /// /// Сервис пуш-токенов устройств /// public static partial class PushTokenService { static readonly string __ServiceName = "keyapis.notification.v1.PushTokenService"; [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_notification_v1_PostPushTokenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.PostPushTokenRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_PostPushTokenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.PostPushTokenResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_GetPushTokenListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.GetPushTokenListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_GetPushTokenListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.GetPushTokenListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_GetPushTokenCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.GetPushTokenCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_GetPushTokenCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.GetPushTokenCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_DeletePushTokenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.DeletePushTokenRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_DeletePushTokenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.DeletePushTokenResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_DeletePushTokenUserAppIdRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.DeletePushTokenUserAppIdRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_DeletePushTokenUserAppIdResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.DeletePushTokenUserAppIdResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_DeletePushTokenUserIdRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.DeletePushTokenUserIdRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_notification_v1_DeletePushTokenUserIdResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Notification.V1.DeletePushTokenUserIdResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostPushToken = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostPushToken", __Marshaller_keyapis_notification_v1_PostPushTokenRequest, __Marshaller_keyapis_notification_v1_PostPushTokenResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetPushTokenList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetPushTokenList", __Marshaller_keyapis_notification_v1_GetPushTokenListRequest, __Marshaller_keyapis_notification_v1_GetPushTokenListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetPushTokenCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetPushTokenCount", __Marshaller_keyapis_notification_v1_GetPushTokenCountRequest, __Marshaller_keyapis_notification_v1_GetPushTokenCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeletePushToken = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeletePushToken", __Marshaller_keyapis_notification_v1_DeletePushTokenRequest, __Marshaller_keyapis_notification_v1_DeletePushTokenResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeletePushTokenUserAppId = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeletePushTokenUserAppId", __Marshaller_keyapis_notification_v1_DeletePushTokenUserAppIdRequest, __Marshaller_keyapis_notification_v1_DeletePushTokenUserAppIdResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeletePushTokenUserId = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeletePushTokenUserId", __Marshaller_keyapis_notification_v1_DeletePushTokenUserIdRequest, __Marshaller_keyapis_notification_v1_DeletePushTokenUserIdResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Notification.V1.KeyapisNotificationPushTokenV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of PushTokenService [grpc::BindServiceMethod(typeof(PushTokenService), "BindService")] public abstract partial class PushTokenServiceBase { /// /// Метод сохранения пуш-токенов. /// Поддерживает создание и обновление. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно сохранять только собственные пуш-токены. /// Для ролей 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 PostPushToken(global::Keyapis.Notification.V1.PostPushTokenRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей admin, service доступны все пуш-токены /// /// 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 GetPushTokenList(global::Keyapis.Notification.V1.GetPushTokenListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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 GetPushTokenCount(global::Keyapis.Notification.V1.GetPushTokenCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления пуш-токена. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushToken(global::Keyapis.Notification.V1.DeletePushTokenRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления пуш-токена по идентификатору устройства пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenUserAppId(global::Keyapis.Notification.V1.DeletePushTokenUserAppIdRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления пуш-токенов по идентификатору пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenUserId(global::Keyapis.Notification.V1.DeletePushTokenUserIdRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for PushTokenService public partial class PushTokenServiceClient : grpc::ClientBase { /// Creates a new client for PushTokenService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public PushTokenServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for PushTokenService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public PushTokenServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected PushTokenServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected PushTokenServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод сохранения пуш-токенов. /// Поддерживает создание и обновление. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно сохранять только собственные пуш-токены. /// Для ролей 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.Notification.V1.PostPushTokenResponse PostPushToken(global::Keyapis.Notification.V1.PostPushTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostPushToken(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения пуш-токенов. /// Поддерживает создание и обновление. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно сохранять только собственные пуш-токены. /// Для ролей 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.Notification.V1.PostPushTokenResponse PostPushToken(global::Keyapis.Notification.V1.PostPushTokenRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostPushToken, null, options, request); } /// /// Метод сохранения пуш-токенов. /// Поддерживает создание и обновление. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно сохранять только собственные пуш-токены. /// Для ролей 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 PostPushTokenAsync(global::Keyapis.Notification.V1.PostPushTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostPushTokenAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения пуш-токенов. /// Поддерживает создание и обновление. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно сохранять только собственные пуш-токены. /// Для ролей 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 PostPushTokenAsync(global::Keyapis.Notification.V1.PostPushTokenRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostPushToken, null, options, request); } /// /// Метод получения пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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::AsyncServerStreamingCall GetPushTokenList(global::Keyapis.Notification.V1.GetPushTokenListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPushTokenList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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::AsyncServerStreamingCall GetPushTokenList(global::Keyapis.Notification.V1.GetPushTokenListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetPushTokenList, null, options, request); } /// /// Метод получения количества пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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.Notification.V1.GetPushTokenCountResponse GetPushTokenCount(global::Keyapis.Notification.V1.GetPushTokenCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPushTokenCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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.Notification.V1.GetPushTokenCountResponse GetPushTokenCount(global::Keyapis.Notification.V1.GetPushTokenCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetPushTokenCount, null, options, request); } /// /// Метод получения количества пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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 GetPushTokenCountAsync(global::Keyapis.Notification.V1.GetPushTokenCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetPushTokenCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества пуш-токенов. /// Метод доступен для: admin, master, employee, owner, service, application(notification:read или notification:edit). /// Для ролей master, employee, owner можно просматривать только собственные пуш-токены. /// Для ролей 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 GetPushTokenCountAsync(global::Keyapis.Notification.V1.GetPushTokenCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetPushTokenCount, null, options, request); } /// /// Метод удаления пуш-токена. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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.Notification.V1.DeletePushTokenResponse DeletePushToken(global::Keyapis.Notification.V1.DeletePushTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePushToken(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пуш-токена. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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.Notification.V1.DeletePushTokenResponse DeletePushToken(global::Keyapis.Notification.V1.DeletePushTokenRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeletePushToken, null, options, request); } /// /// Метод удаления пуш-токена. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenAsync(global::Keyapis.Notification.V1.DeletePushTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePushTokenAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пуш-токена. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenAsync(global::Keyapis.Notification.V1.DeletePushTokenRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeletePushToken, null, options, request); } /// /// Метод удаления пуш-токена по идентификатору устройства пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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.Notification.V1.DeletePushTokenUserAppIdResponse DeletePushTokenUserAppId(global::Keyapis.Notification.V1.DeletePushTokenUserAppIdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePushTokenUserAppId(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пуш-токена по идентификатору устройства пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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.Notification.V1.DeletePushTokenUserAppIdResponse DeletePushTokenUserAppId(global::Keyapis.Notification.V1.DeletePushTokenUserAppIdRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeletePushTokenUserAppId, null, options, request); } /// /// Метод удаления пуш-токена по идентификатору устройства пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenUserAppIdAsync(global::Keyapis.Notification.V1.DeletePushTokenUserAppIdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePushTokenUserAppIdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пуш-токена по идентификатору устройства пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenUserAppIdAsync(global::Keyapis.Notification.V1.DeletePushTokenUserAppIdRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeletePushTokenUserAppId, null, options, request); } /// /// Метод удаления пуш-токенов по идентификатору пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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.Notification.V1.DeletePushTokenUserIdResponse DeletePushTokenUserId(global::Keyapis.Notification.V1.DeletePushTokenUserIdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePushTokenUserId(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пуш-токенов по идентификатору пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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.Notification.V1.DeletePushTokenUserIdResponse DeletePushTokenUserId(global::Keyapis.Notification.V1.DeletePushTokenUserIdRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeletePushTokenUserId, null, options, request); } /// /// Метод удаления пуш-токенов по идентификатору пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenUserIdAsync(global::Keyapis.Notification.V1.DeletePushTokenUserIdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeletePushTokenUserIdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления пуш-токенов по идентификатору пользователя. /// Метод доступен для: admin, master, employee, owner, service, application(notification:edit). /// Для ролей master, employee, owner можно удалять только собственные пуш-токены. /// Для ролей 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 DeletePushTokenUserIdAsync(global::Keyapis.Notification.V1.DeletePushTokenUserIdRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeletePushTokenUserId, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override PushTokenServiceClient NewInstance(ClientBaseConfiguration configuration) { return new PushTokenServiceClient(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(PushTokenServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostPushToken, serviceImpl.PostPushToken) .AddMethod(__Method_GetPushTokenList, serviceImpl.GetPushTokenList) .AddMethod(__Method_GetPushTokenCount, serviceImpl.GetPushTokenCount) .AddMethod(__Method_DeletePushToken, serviceImpl.DeletePushToken) .AddMethod(__Method_DeletePushTokenUserAppId, serviceImpl.DeletePushTokenUserAppId) .AddMethod(__Method_DeletePushTokenUserId, serviceImpl.DeletePushTokenUserId).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, PushTokenServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostPushToken, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostPushToken)); serviceBinder.AddMethod(__Method_GetPushTokenList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetPushTokenList)); serviceBinder.AddMethod(__Method_GetPushTokenCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPushTokenCount)); serviceBinder.AddMethod(__Method_DeletePushToken, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePushToken)); serviceBinder.AddMethod(__Method_DeletePushTokenUserAppId, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePushTokenUserAppId)); serviceBinder.AddMethod(__Method_DeletePushTokenUserId, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePushTokenUserId)); } } } #endregion