// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/subscription/v1/keyapis_subscription_offer_template_v1.proto // // Original file comments: // // Сервис реализует функционал управления Шаблонами КВ. // Шаблон КВ описывает набор технологических планов и правила их применимости для массового создания КВ #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Subscription.V1 { /// /// Сервис Шаблонов КВ /// public static partial class OfferTemplateService { static readonly string __ServiceName = "keyapis.subscription.v1.OfferTemplateService"; [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_subscription_v1_GetOfferTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_PostOfferTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.PostOfferTemplateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_PostOfferTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.PostOfferTemplateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_DeleteOfferTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_DeleteOfferTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.DeleteOfferTemplateResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_PostOfferTemplateRestoreRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_subscription_v1_PostOfferTemplateRestoreResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Subscription.V1.PostOfferTemplateRestoreResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetOfferTemplate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetOfferTemplate", __Marshaller_keyapis_subscription_v1_GetOfferTemplateRequest, __Marshaller_keyapis_subscription_v1_GetOfferTemplateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetOfferTemplateList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetOfferTemplateList", __Marshaller_keyapis_subscription_v1_GetOfferTemplateListRequest, __Marshaller_keyapis_subscription_v1_GetOfferTemplateListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetOfferTemplateByOrponList = new grpc::Method( grpc::MethodType.ServerStreaming, __ServiceName, "GetOfferTemplateByOrponList", __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponListRequest, __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetOfferTemplateCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetOfferTemplateCount", __Marshaller_keyapis_subscription_v1_GetOfferTemplateCountRequest, __Marshaller_keyapis_subscription_v1_GetOfferTemplateCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetOfferTemplateByOrponCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetOfferTemplateByOrponCount", __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponCountRequest, __Marshaller_keyapis_subscription_v1_GetOfferTemplateByOrponCountResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostOfferTemplate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostOfferTemplate", __Marshaller_keyapis_subscription_v1_PostOfferTemplateRequest, __Marshaller_keyapis_subscription_v1_PostOfferTemplateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeleteOfferTemplate = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "DeleteOfferTemplate", __Marshaller_keyapis_subscription_v1_DeleteOfferTemplateRequest, __Marshaller_keyapis_subscription_v1_DeleteOfferTemplateResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostOfferTemplateRestore = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostOfferTemplateRestore", __Marshaller_keyapis_subscription_v1_PostOfferTemplateRestoreRequest, __Marshaller_keyapis_subscription_v1_PostOfferTemplateRestoreResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Subscription.V1.KeyapisSubscriptionOfferTemplateV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of OfferTemplateService [grpc::BindServiceMethod(typeof(OfferTemplateService), "BindService")] public abstract partial class OfferTemplateServiceBase { /// /// Метод получения шаблона КВ. /// Разрешения: subscription:offer_template:card. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetOfferTemplate(global::Keyapis.Subscription.V1.GetOfferTemplateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// 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 GetOfferTemplateList(global::Keyapis.Subscription.V1.GetOfferTemplateListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает соответствующие им Шаблоны КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// 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 GetOfferTemplateByOrponList(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetOfferTemplateCount(global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает количество соответствующих им Шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetOfferTemplateByOrponCount(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод создания/редактирования шаблона КВ. /// При отсутствии идентификатора создаёт новый шаблон, при наличии — редактирует существующий. /// Разрешения: subscription:offer_template:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task PostOfferTemplate(global::Keyapis.Subscription.V1.PostOfferTemplateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод архивации шаблона КВ. /// Переводит шаблон в статус ARCHIVED. /// Разрешения: subscription:offer_template:remove. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task DeleteOfferTemplate(global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод восстановления шаблона КВ из архива. /// Переводит шаблон в статус ACTIVE. /// Разрешения: subscription:offer_template:restore:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task PostOfferTemplateRestore(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for OfferTemplateService public partial class OfferTemplateServiceClient : grpc::ClientBase { /// Creates a new client for OfferTemplateService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public OfferTemplateServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for OfferTemplateService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public OfferTemplateServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected OfferTemplateServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected OfferTemplateServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод получения шаблона КВ. /// Разрешения: subscription:offer_template:card. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.GetOfferTemplateResponse GetOfferTemplate(global::Keyapis.Subscription.V1.GetOfferTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения шаблона КВ. /// Разрешения: subscription:offer_template:card. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.GetOfferTemplateResponse GetOfferTemplate(global::Keyapis.Subscription.V1.GetOfferTemplateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetOfferTemplate, null, options, request); } /// /// Метод получения шаблона КВ. /// Разрешения: subscription:offer_template:card. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetOfferTemplateAsync(global::Keyapis.Subscription.V1.GetOfferTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения шаблона КВ. /// Разрешения: subscription:offer_template:card. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetOfferTemplateAsync(global::Keyapis.Subscription.V1.GetOfferTemplateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetOfferTemplate, null, options, request); } /// /// Метод получения списка шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncServerStreamingCall GetOfferTemplateList(global::Keyapis.Subscription.V1.GetOfferTemplateListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncServerStreamingCall GetOfferTemplateList(global::Keyapis.Subscription.V1.GetOfferTemplateListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetOfferTemplateList, null, options, request); } /// /// Метод получения списка Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает соответствующие им Шаблоны КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncServerStreamingCall GetOfferTemplateByOrponList(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateByOrponList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает соответствующие им Шаблоны КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncServerStreamingCall GetOfferTemplateByOrponList(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncServerStreamingCall(__Method_GetOfferTemplateByOrponList, null, options, request); } /// /// Метод получения количества шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse GetOfferTemplateCount(global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.GetOfferTemplateCountResponse GetOfferTemplateCount(global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetOfferTemplateCount, null, options, request); } /// /// Метод получения количества шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetOfferTemplateCountAsync(global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetOfferTemplateCountAsync(global::Keyapis.Subscription.V1.GetOfferTemplateCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetOfferTemplateCount, null, options, request); } /// /// Метод получения количества Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает количество соответствующих им Шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse GetOfferTemplateByOrponCount(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateByOrponCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает количество соответствующих им Шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountResponse GetOfferTemplateByOrponCount(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetOfferTemplateByOrponCount, null, options, request); } /// /// Метод получения количества Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает количество соответствующих им Шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetOfferTemplateByOrponCountAsync(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetOfferTemplateByOrponCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества Шаблонов КВ, соответствующих коммерческим возможностям дома. /// По ОРПОН дома определяет фактически настроенные КВ и возвращает количество соответствующих им Шаблонов КВ. /// Разрешения: subscription:offer_template:list. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetOfferTemplateByOrponCountAsync(global::Keyapis.Subscription.V1.GetOfferTemplateByOrponCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetOfferTemplateByOrponCount, null, options, request); } /// /// Метод создания/редактирования шаблона КВ. /// При отсутствии идентификатора создаёт новый шаблон, при наличии — редактирует существующий. /// Разрешения: subscription:offer_template:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.PostOfferTemplateResponse PostOfferTemplate(global::Keyapis.Subscription.V1.PostOfferTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostOfferTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания/редактирования шаблона КВ. /// При отсутствии идентификатора создаёт новый шаблон, при наличии — редактирует существующий. /// Разрешения: subscription:offer_template:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.PostOfferTemplateResponse PostOfferTemplate(global::Keyapis.Subscription.V1.PostOfferTemplateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostOfferTemplate, null, options, request); } /// /// Метод создания/редактирования шаблона КВ. /// При отсутствии идентификатора создаёт новый шаблон, при наличии — редактирует существующий. /// Разрешения: subscription:offer_template:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostOfferTemplateAsync(global::Keyapis.Subscription.V1.PostOfferTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostOfferTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания/редактирования шаблона КВ. /// При отсутствии идентификатора создаёт новый шаблон, при наличии — редактирует существующий. /// Разрешения: subscription:offer_template:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostOfferTemplateAsync(global::Keyapis.Subscription.V1.PostOfferTemplateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostOfferTemplate, null, options, request); } /// /// Метод архивации шаблона КВ. /// Переводит шаблон в статус ARCHIVED. /// Разрешения: subscription:offer_template:remove. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.DeleteOfferTemplateResponse DeleteOfferTemplate(global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteOfferTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод архивации шаблона КВ. /// Переводит шаблон в статус ARCHIVED. /// Разрешения: subscription:offer_template:remove. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.DeleteOfferTemplateResponse DeleteOfferTemplate(global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_DeleteOfferTemplate, null, options, request); } /// /// Метод архивации шаблона КВ. /// Переводит шаблон в статус ARCHIVED. /// Разрешения: subscription:offer_template:remove. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall DeleteOfferTemplateAsync(global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return DeleteOfferTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод архивации шаблона КВ. /// Переводит шаблон в статус ARCHIVED. /// Разрешения: subscription:offer_template:remove. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall DeleteOfferTemplateAsync(global::Keyapis.Subscription.V1.DeleteOfferTemplateRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_DeleteOfferTemplate, null, options, request); } /// /// Метод восстановления шаблона КВ из архива. /// Переводит шаблон в статус ACTIVE. /// Разрешения: subscription:offer_template:restore:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.PostOfferTemplateRestoreResponse PostOfferTemplateRestore(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostOfferTemplateRestore(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод восстановления шаблона КВ из архива. /// Переводит шаблон в статус ACTIVE. /// Разрешения: subscription:offer_template:restore:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Subscription.V1.PostOfferTemplateRestoreResponse PostOfferTemplateRestore(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostOfferTemplateRestore, null, options, request); } /// /// Метод восстановления шаблона КВ из архива. /// Переводит шаблон в статус ACTIVE. /// Разрешения: subscription:offer_template:restore:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostOfferTemplateRestoreAsync(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostOfferTemplateRestoreAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод восстановления шаблона КВ из архива. /// Переводит шаблон в статус ACTIVE. /// Разрешения: subscription:offer_template:restore:save. /// Метод доступен для: Token: service, device_admin, ltp_first, admin, mrf, bti, manager. При наличии разрешений /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostOfferTemplateRestoreAsync(global::Keyapis.Subscription.V1.PostOfferTemplateRestoreRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostOfferTemplateRestore, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override OfferTemplateServiceClient NewInstance(ClientBaseConfiguration configuration) { return new OfferTemplateServiceClient(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(OfferTemplateServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetOfferTemplate, serviceImpl.GetOfferTemplate) .AddMethod(__Method_GetOfferTemplateList, serviceImpl.GetOfferTemplateList) .AddMethod(__Method_GetOfferTemplateByOrponList, serviceImpl.GetOfferTemplateByOrponList) .AddMethod(__Method_GetOfferTemplateCount, serviceImpl.GetOfferTemplateCount) .AddMethod(__Method_GetOfferTemplateByOrponCount, serviceImpl.GetOfferTemplateByOrponCount) .AddMethod(__Method_PostOfferTemplate, serviceImpl.PostOfferTemplate) .AddMethod(__Method_DeleteOfferTemplate, serviceImpl.DeleteOfferTemplate) .AddMethod(__Method_PostOfferTemplateRestore, serviceImpl.PostOfferTemplateRestore).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, OfferTemplateServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetOfferTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetOfferTemplate)); serviceBinder.AddMethod(__Method_GetOfferTemplateList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetOfferTemplateList)); serviceBinder.AddMethod(__Method_GetOfferTemplateByOrponList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetOfferTemplateByOrponList)); serviceBinder.AddMethod(__Method_GetOfferTemplateCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetOfferTemplateCount)); serviceBinder.AddMethod(__Method_GetOfferTemplateByOrponCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetOfferTemplateByOrponCount)); serviceBinder.AddMethod(__Method_PostOfferTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostOfferTemplate)); serviceBinder.AddMethod(__Method_DeleteOfferTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteOfferTemplate)); serviceBinder.AddMethod(__Method_PostOfferTemplateRestore, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostOfferTemplateRestore)); } } } #endregion