// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/multiapp/v1/keyapis_multiapp_notification_template_v1.proto // // Original file comments: // // Сервис реализует функционал управления шаблонами уведомлений #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Multiapp.V1 { /// /// Сервис шаблонов уведомлений /// public static partial class NotificationTemplateService { static readonly string __ServiceName = "keyapis.multiapp.v1.NotificationTemplateService"; [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_multiapp_v1_PostNotificationTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PostNotificationTemplateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PostNotificationTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PostNotificationTemplateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetNotificationTemplateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetNotificationTemplateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_DeleteNotificationTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.DeleteNotificationTemplateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_DeleteNotificationTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.DeleteNotificationTemplateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetNotificationTemplateListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetNotificationTemplateListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetNotificationTemplateCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetNotificationTemplateCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerAttachRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerAttachResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerDetachRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerDetachResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostNotificationTemplate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostNotificationTemplate", __Marshaller_keyapis_multiapp_v1_PostNotificationTemplateRequest, __Marshaller_keyapis_multiapp_v1_PostNotificationTemplateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetNotificationTemplate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetNotificationTemplate", __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateRequest, __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteNotificationTemplate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteNotificationTemplate", __Marshaller_keyapis_multiapp_v1_DeleteNotificationTemplateRequest, __Marshaller_keyapis_multiapp_v1_DeleteNotificationTemplateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetNotificationTemplateList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetNotificationTemplateList", __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateListRequest, __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetNotificationTemplateCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetNotificationTemplateCount", __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateCountRequest, __Marshaller_keyapis_multiapp_v1_GetNotificationTemplateCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PutNotificationTemplatePartnerAttach = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PutNotificationTemplatePartnerAttach", __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerAttachRequest, __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerAttachResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PutNotificationTemplatePartnerDetach = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PutNotificationTemplatePartnerDetach", __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerDetachRequest, __Marshaller_keyapis_multiapp_v1_PutNotificationTemplatePartnerDetachResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Multiapp.V1.KeyapisMultiappNotificationTemplateV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of NotificationTemplateService [grpc::BindServiceMethod(typeof(NotificationTemplateService), "BindService")] public abstract partial class NotificationTemplateServiceBase { /// /// Метод сохранения шаблона уведомления. /// Поддерживает создание и обновление. /// Поддерживает mustache теги в переменных template_header и template_text. /// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=774989444. /// Метод доступен для: admin, manager, 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 PostNotificationTemplate(global::Keyapis.Multiapp.V1.PostNotificationTemplateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения шаблона уведомления. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Роли partner доступны только связанные с ней шаблоны /// /// 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 GetNotificationTemplate(global::Keyapis.Multiapp.V1.GetNotificationTemplateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления шаблона уведомления. /// Устанавливает текущую дату и время в параметр deleted_at. /// Метод доступен для: admin, manager, 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 DeleteNotificationTemplate(global::Keyapis.Multiapp.V1.DeleteNotificationTemplateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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 GetNotificationTemplateList(global::Keyapis.Multiapp.V1.GetNotificationTemplateListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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 GetNotificationTemplateCount(global::Keyapis.Multiapp.V1.GetNotificationTemplateCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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 PutNotificationTemplatePartnerAttach(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод удаления связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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 PutNotificationTemplatePartnerDetach(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for NotificationTemplateService public partial class NotificationTemplateServiceClient : grpc::ClientBase { /// Creates a new client for NotificationTemplateService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public NotificationTemplateServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for NotificationTemplateService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public NotificationTemplateServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected NotificationTemplateServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected NotificationTemplateServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод сохранения шаблона уведомления. /// Поддерживает создание и обновление. /// Поддерживает mustache теги в переменных template_header и template_text. /// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=774989444. /// Метод доступен для: admin, manager, 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.Multiapp.V1.PostNotificationTemplateResponse PostNotificationTemplate(global::Keyapis.Multiapp.V1.PostNotificationTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения шаблона уведомления. /// Поддерживает создание и обновление. /// Поддерживает mustache теги в переменных template_header и template_text. /// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=774989444. /// Метод доступен для: admin, manager, 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.Multiapp.V1.PostNotificationTemplateResponse PostNotificationTemplate(global::Keyapis.Multiapp.V1.PostNotificationTemplateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostNotificationTemplate, null, options, request); } /// /// Метод сохранения шаблона уведомления. /// Поддерживает создание и обновление. /// Поддерживает mustache теги в переменных template_header и template_text. /// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=774989444. /// Метод доступен для: admin, manager, 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 PostNotificationTemplateAsync(global::Keyapis.Multiapp.V1.PostNotificationTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostNotificationTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод сохранения шаблона уведомления. /// Поддерживает создание и обновление. /// Поддерживает mustache теги в переменных template_header и template_text. /// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=774989444. /// Метод доступен для: admin, manager, 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 PostNotificationTemplateAsync(global::Keyapis.Multiapp.V1.PostNotificationTemplateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostNotificationTemplate, null, options, request); } /// /// Метод получения шаблона уведомления. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Роли partner доступны только связанные с ней шаблоны /// /// 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.Multiapp.V1.GetNotificationTemplateResponse GetNotificationTemplate(global::Keyapis.Multiapp.V1.GetNotificationTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения шаблона уведомления. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Роли partner доступны только связанные с ней шаблоны /// /// 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.Multiapp.V1.GetNotificationTemplateResponse GetNotificationTemplate(global::Keyapis.Multiapp.V1.GetNotificationTemplateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetNotificationTemplate, null, options, request); } /// /// Метод получения шаблона уведомления. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Роли partner доступны только связанные с ней шаблоны /// /// 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 GetNotificationTemplateAsync(global::Keyapis.Multiapp.V1.GetNotificationTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения шаблона уведомления. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Роли partner доступны только связанные с ней шаблоны /// /// 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 GetNotificationTemplateAsync(global::Keyapis.Multiapp.V1.GetNotificationTemplateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetNotificationTemplate, null, options, request); } /// /// Метод удаления шаблона уведомления. /// Устанавливает текущую дату и время в параметр deleted_at. /// Метод доступен для: admin, manager, 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.Multiapp.V1.DeleteNotificationTemplateResponse DeleteNotificationTemplate(global::Keyapis.Multiapp.V1.DeleteNotificationTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteNotificationTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления шаблона уведомления. /// Устанавливает текущую дату и время в параметр deleted_at. /// Метод доступен для: admin, manager, 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.Multiapp.V1.DeleteNotificationTemplateResponse DeleteNotificationTemplate(global::Keyapis.Multiapp.V1.DeleteNotificationTemplateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteNotificationTemplate, null, options, request); } /// /// Метод удаления шаблона уведомления. /// Устанавливает текущую дату и время в параметр deleted_at. /// Метод доступен для: admin, manager, 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 DeleteNotificationTemplateAsync(global::Keyapis.Multiapp.V1.DeleteNotificationTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteNotificationTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления шаблона уведомления. /// Устанавливает текущую дату и время в параметр deleted_at. /// Метод доступен для: admin, manager, 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 DeleteNotificationTemplateAsync(global::Keyapis.Multiapp.V1.DeleteNotificationTemplateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteNotificationTemplate, null, options, request); } /// /// Метод получения списка шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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 GetNotificationTemplateList(global::Keyapis.Multiapp.V1.GetNotificationTemplateListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationTemplateList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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 GetNotificationTemplateList(global::Keyapis.Multiapp.V1.GetNotificationTemplateListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetNotificationTemplateList, null, options, request); } /// /// Метод получения количества шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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.Multiapp.V1.GetNotificationTemplateCountResponse GetNotificationTemplateCount(global::Keyapis.Multiapp.V1.GetNotificationTemplateCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationTemplateCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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.Multiapp.V1.GetNotificationTemplateCountResponse GetNotificationTemplateCount(global::Keyapis.Multiapp.V1.GetNotificationTemplateCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetNotificationTemplateCount, null, options, request); } /// /// Метод получения количества шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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 GetNotificationTemplateCountAsync(global::Keyapis.Multiapp.V1.GetNotificationTemplateCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetNotificationTemplateCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества шаблонов уведомлений. /// Метод доступен для: admin, manager, service, partner. /// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization. /// Если метод вызван ролью partner в фильтре поле partner_ids принудительно замещается его идентификатором /// /// 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 GetNotificationTemplateCountAsync(global::Keyapis.Multiapp.V1.GetNotificationTemplateCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetNotificationTemplateCount, null, options, request); } /// /// Метод создания связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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.Multiapp.V1.PutNotificationTemplatePartnerAttachResponse PutNotificationTemplatePartnerAttach(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutNotificationTemplatePartnerAttach(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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.Multiapp.V1.PutNotificationTemplatePartnerAttachResponse PutNotificationTemplatePartnerAttach(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PutNotificationTemplatePartnerAttach, null, options, request); } /// /// Метод создания связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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 PutNotificationTemplatePartnerAttachAsync(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutNotificationTemplatePartnerAttachAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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 PutNotificationTemplatePartnerAttachAsync(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerAttachRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PutNotificationTemplatePartnerAttach, null, options, request); } /// /// Метод удаления связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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.Multiapp.V1.PutNotificationTemplatePartnerDetachResponse PutNotificationTemplatePartnerDetach(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutNotificationTemplatePartnerDetach(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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.Multiapp.V1.PutNotificationTemplatePartnerDetachResponse PutNotificationTemplatePartnerDetach(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PutNotificationTemplatePartnerDetach, null, options, request); } /// /// Метод удаления связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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 PutNotificationTemplatePartnerDetachAsync(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PutNotificationTemplatePartnerDetachAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод удаления связи шаблона уведомления и партнера. /// Метод доступен для: admin, manager, 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 PutNotificationTemplatePartnerDetachAsync(global::Keyapis.Multiapp.V1.PutNotificationTemplatePartnerDetachRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PutNotificationTemplatePartnerDetach, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override NotificationTemplateServiceClient NewInstance(ClientBaseConfiguration configuration) { return new NotificationTemplateServiceClient(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(NotificationTemplateServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_PostNotificationTemplate, serviceImpl.PostNotificationTemplate) .AddMethod(__Method_GetNotificationTemplate, serviceImpl.GetNotificationTemplate) .AddMethod(__Method_DeleteNotificationTemplate, serviceImpl.DeleteNotificationTemplate) .AddMethod(__Method_GetNotificationTemplateList, serviceImpl.GetNotificationTemplateList) .AddMethod(__Method_GetNotificationTemplateCount, serviceImpl.GetNotificationTemplateCount) .AddMethod(__Method_PutNotificationTemplatePartnerAttach, serviceImpl.PutNotificationTemplatePartnerAttach) .AddMethod(__Method_PutNotificationTemplatePartnerDetach, serviceImpl.PutNotificationTemplatePartnerDetach).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, NotificationTemplateServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_PostNotificationTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostNotificationTemplate)); serviceBinder.AddMethod(__Method_GetNotificationTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetNotificationTemplate)); serviceBinder.AddMethod(__Method_DeleteNotificationTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteNotificationTemplate)); serviceBinder.AddMethod(__Method_GetNotificationTemplateList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetNotificationTemplateList)); serviceBinder.AddMethod(__Method_GetNotificationTemplateCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetNotificationTemplateCount)); serviceBinder.AddMethod(__Method_PutNotificationTemplatePartnerAttach, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PutNotificationTemplatePartnerAttach)); serviceBinder.AddMethod(__Method_PutNotificationTemplatePartnerDetach, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PutNotificationTemplatePartnerDetach)); } } } #endregion