// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/invoice/v1/keyapis_invoice_invoice_v1.proto // // Original file comments: // // Сервис реализует функционал управления выставленными счётами #pragma warning disable 0414, 1591 #region Designer generated code using grpc = global::Grpc.Core; namespace Keyapis.Invoice.V1 { /// /// Сервис invoices /// public static partial class InvoiceService { static readonly string __ServiceName = "keyapis.invoice.v1.InvoiceService"; [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_invoice_v1_CreateInvoiceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.CreateInvoiceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_CreateInvoiceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.CreateInvoiceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_GetInvoiceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.GetInvoiceRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_GetInvoiceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.GetInvoiceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_PostInvoiceConfirmRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_PostInvoiceConfirmResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.PostInvoiceConfirmResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_GetInvoiceListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.GetInvoiceListRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_GetInvoiceListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.GetInvoiceListResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_GetInvoiceCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.GetInvoiceCountRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_keyapis_invoice_v1_GetInvoiceCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Invoice.V1.GetInvoiceCountResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_CreateInvoice = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "CreateInvoice", __Marshaller_keyapis_invoice_v1_CreateInvoiceRequest, __Marshaller_keyapis_invoice_v1_CreateInvoiceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetInvoice = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetInvoice", __Marshaller_keyapis_invoice_v1_GetInvoiceRequest, __Marshaller_keyapis_invoice_v1_GetInvoiceResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_PostInvoiceConfirm = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "PostInvoiceConfirm", __Marshaller_keyapis_invoice_v1_PostInvoiceConfirmRequest, __Marshaller_keyapis_invoice_v1_PostInvoiceConfirmResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetInvoiceList = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetInvoiceList", __Marshaller_keyapis_invoice_v1_GetInvoiceListRequest, __Marshaller_keyapis_invoice_v1_GetInvoiceListResponse); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_GetInvoiceCount = new grpc::Method( grpc::MethodType.Unary, __ServiceName, "GetInvoiceCount", __Marshaller_keyapis_invoice_v1_GetInvoiceCountRequest, __Marshaller_keyapis_invoice_v1_GetInvoiceCountResponse); /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { get { return global::Keyapis.Invoice.V1.KeyapisInvoiceInvoiceV1Reflection.Descriptor.Services[0]; } } /// Base class for server-side implementations of InvoiceService [grpc::BindServiceMethod(typeof(InvoiceService), "BindService")] public abstract partial class InvoiceServiceBase { /// /// Метод создания платежа. /// Создание платежа в своей и внешней платежной системе. /// Метод доступен для: 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 CreateInvoice(global::Keyapis.Invoice.V1.CreateInvoiceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения платежа. /// Для master доступно получение платежа только с user_id из токена. /// Метод доступен для: admin, service, master /// /// 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 GetInvoice(global::Keyapis.Invoice.V1.GetInvoiceRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод подтверждения платежа (вызывается со стороны внешней системы). /// Не требует авторизации /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task PostInvoiceConfirm(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения списка платежей. /// Для master доступно получение только собственных платежей, если параметр filter.user_id передан и не совпадает с user_id из токена, возвращается ошибка доступа. /// Метод доступен для: admin, service, master, ltp_first /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetInvoiceList(global::Keyapis.Invoice.V1.GetInvoiceListRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } /// /// Метод получения количества платежей. /// Для master в параметр filter.user_id подставляется user_id из токена. /// Метод доступен для: admin, service, master, ltp_first /// /// The request received from the client. /// The context of the server-side call handler being invoked. /// The response to send back to the client (wrapped by a task). [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::System.Threading.Tasks.Task GetInvoiceCount(global::Keyapis.Invoice.V1.GetInvoiceCountRequest request, grpc::ServerCallContext context) { throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } } /// Client for InvoiceService public partial class InvoiceServiceClient : grpc::ClientBase { /// Creates a new client for InvoiceService /// The channel to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public InvoiceServiceClient(grpc::ChannelBase channel) : base(channel) { } /// Creates a new client for InvoiceService that uses a custom CallInvoker. /// The callInvoker to use to make remote calls. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public InvoiceServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker) { } /// Protected parameterless constructor to allow creation of test doubles. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected InvoiceServiceClient() : base() { } /// Protected constructor to allow creation of configured clients. /// The client configuration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected InvoiceServiceClient(ClientBaseConfiguration configuration) : base(configuration) { } /// /// Метод создания платежа. /// Создание платежа в своей и внешней платежной системе. /// Метод доступен для: 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.Invoice.V1.CreateInvoiceResponse CreateInvoice(global::Keyapis.Invoice.V1.CreateInvoiceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return CreateInvoice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания платежа. /// Создание платежа в своей и внешней платежной системе. /// Метод доступен для: 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.Invoice.V1.CreateInvoiceResponse CreateInvoice(global::Keyapis.Invoice.V1.CreateInvoiceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_CreateInvoice, null, options, request); } /// /// Метод создания платежа. /// Создание платежа в своей и внешней платежной системе. /// Метод доступен для: 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 CreateInvoiceAsync(global::Keyapis.Invoice.V1.CreateInvoiceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return CreateInvoiceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод создания платежа. /// Создание платежа в своей и внешней платежной системе. /// Метод доступен для: 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 CreateInvoiceAsync(global::Keyapis.Invoice.V1.CreateInvoiceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_CreateInvoice, null, options, request); } /// /// Метод получения платежа. /// Для master доступно получение платежа только с user_id из токена. /// Метод доступен для: admin, service, master /// /// 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.Invoice.V1.GetInvoiceResponse GetInvoice(global::Keyapis.Invoice.V1.GetInvoiceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetInvoice(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения платежа. /// Для master доступно получение платежа только с user_id из токена. /// Метод доступен для: admin, service, master /// /// 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.Invoice.V1.GetInvoiceResponse GetInvoice(global::Keyapis.Invoice.V1.GetInvoiceRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetInvoice, null, options, request); } /// /// Метод получения платежа. /// Для master доступно получение платежа только с user_id из токена. /// Метод доступен для: admin, service, master /// /// 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 GetInvoiceAsync(global::Keyapis.Invoice.V1.GetInvoiceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetInvoiceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения платежа. /// Для master доступно получение платежа только с user_id из токена. /// Метод доступен для: admin, service, master /// /// 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 GetInvoiceAsync(global::Keyapis.Invoice.V1.GetInvoiceRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetInvoice, null, options, request); } /// /// Метод подтверждения платежа (вызывается со стороны внешней системы). /// Не требует авторизации /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Invoice.V1.PostInvoiceConfirmResponse PostInvoiceConfirm(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostInvoiceConfirm(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод подтверждения платежа (вызывается со стороны внешней системы). /// Не требует авторизации /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Invoice.V1.PostInvoiceConfirmResponse PostInvoiceConfirm(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_PostInvoiceConfirm, null, options, request); } /// /// Метод подтверждения платежа (вызывается со стороны внешней системы). /// Не требует авторизации /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostInvoiceConfirmAsync(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return PostInvoiceConfirmAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод подтверждения платежа (вызывается со стороны внешней системы). /// Не требует авторизации /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall PostInvoiceConfirmAsync(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_PostInvoiceConfirm, null, options, request); } /// /// Метод получения списка платежей. /// Для master доступно получение только собственных платежей, если параметр filter.user_id передан и не совпадает с user_id из токена, возвращается ошибка доступа. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Invoice.V1.GetInvoiceListResponse GetInvoiceList(global::Keyapis.Invoice.V1.GetInvoiceListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetInvoiceList(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка платежей. /// Для master доступно получение только собственных платежей, если параметр filter.user_id передан и не совпадает с user_id из токена, возвращается ошибка доступа. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Invoice.V1.GetInvoiceListResponse GetInvoiceList(global::Keyapis.Invoice.V1.GetInvoiceListRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetInvoiceList, null, options, request); } /// /// Метод получения списка платежей. /// Для master доступно получение только собственных платежей, если параметр filter.user_id передан и не совпадает с user_id из токена, возвращается ошибка доступа. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetInvoiceListAsync(global::Keyapis.Invoice.V1.GetInvoiceListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetInvoiceListAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения списка платежей. /// Для master доступно получение только собственных платежей, если параметр filter.user_id передан и не совпадает с user_id из токена, возвращается ошибка доступа. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetInvoiceListAsync(global::Keyapis.Invoice.V1.GetInvoiceListRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetInvoiceList, null, options, request); } /// /// Метод получения количества платежей. /// Для master в параметр filter.user_id подставляется user_id из токена. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Invoice.V1.GetInvoiceCountResponse GetInvoiceCount(global::Keyapis.Invoice.V1.GetInvoiceCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetInvoiceCount(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества платежей. /// Для master в параметр filter.user_id подставляется user_id из токена. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The options for the call. /// The response received from the server. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual global::Keyapis.Invoice.V1.GetInvoiceCountResponse GetInvoiceCount(global::Keyapis.Invoice.V1.GetInvoiceCountRequest request, grpc::CallOptions options) { return CallInvoker.BlockingUnaryCall(__Method_GetInvoiceCount, null, options, request); } /// /// Метод получения количества платежей. /// Для master в параметр filter.user_id подставляется user_id из токена. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The initial metadata to send with the call. This parameter is optional. /// An optional deadline for the call. The call will be cancelled if deadline is hit. /// An optional token for canceling the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetInvoiceCountAsync(global::Keyapis.Invoice.V1.GetInvoiceCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { return GetInvoiceCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); } /// /// Метод получения количества платежей. /// Для master в параметр filter.user_id подставляется user_id из токена. /// Метод доступен для: admin, service, master, ltp_first /// /// The request to send to the server. /// The options for the call. /// The call object. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] public virtual grpc::AsyncUnaryCall GetInvoiceCountAsync(global::Keyapis.Invoice.V1.GetInvoiceCountRequest request, grpc::CallOptions options) { return CallInvoker.AsyncUnaryCall(__Method_GetInvoiceCount, null, options, request); } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override InvoiceServiceClient NewInstance(ClientBaseConfiguration configuration) { return new InvoiceServiceClient(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(InvoiceServiceBase serviceImpl) { return grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateInvoice, serviceImpl.CreateInvoice) .AddMethod(__Method_GetInvoice, serviceImpl.GetInvoice) .AddMethod(__Method_PostInvoiceConfirm, serviceImpl.PostInvoiceConfirm) .AddMethod(__Method_GetInvoiceList, serviceImpl.GetInvoiceList) .AddMethod(__Method_GetInvoiceCount, serviceImpl.GetInvoiceCount).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, InvoiceServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateInvoice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateInvoice)); serviceBinder.AddMethod(__Method_GetInvoice, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInvoice)); serviceBinder.AddMethod(__Method_PostInvoiceConfirm, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostInvoiceConfirm)); serviceBinder.AddMethod(__Method_GetInvoiceList, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInvoiceList)); serviceBinder.AddMethod(__Method_GetInvoiceCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetInvoiceCount)); } } } #endregion