//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/multiapp/v1/keyapis_multiapp_partner_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 PartnerService
{
static readonly string __ServiceName = "keyapis.multiapp.v1.PartnerService";
[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_PostPartnerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PostPartnerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PostPartnerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PostPartnerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerTokenRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerTokenRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerTokenResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerTokenResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PostPartnerPublicKeyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PostPartnerPublicKeyRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_PostPartnerPublicKeyResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.PostPartnerPublicKeyResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_DeletePartnerRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.DeletePartnerRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_DeletePartnerResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.DeletePartnerResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerAddressOrponRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerAddressOrponRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_multiapp_v1_GetPartnerAddressOrponResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.Multiapp.V1.GetPartnerAddressOrponResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostPartner = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostPartner",
__Marshaller_keyapis_multiapp_v1_PostPartnerRequest,
__Marshaller_keyapis_multiapp_v1_PostPartnerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetPartner = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetPartner",
__Marshaller_keyapis_multiapp_v1_GetPartnerRequest,
__Marshaller_keyapis_multiapp_v1_GetPartnerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetPartnerList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetPartnerList",
__Marshaller_keyapis_multiapp_v1_GetPartnerListRequest,
__Marshaller_keyapis_multiapp_v1_GetPartnerListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetPartnerCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetPartnerCount",
__Marshaller_keyapis_multiapp_v1_GetPartnerCountRequest,
__Marshaller_keyapis_multiapp_v1_GetPartnerCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetPartnerToken = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetPartnerToken",
__Marshaller_keyapis_multiapp_v1_GetPartnerTokenRequest,
__Marshaller_keyapis_multiapp_v1_GetPartnerTokenResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostPartnerPublicKey = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostPartnerPublicKey",
__Marshaller_keyapis_multiapp_v1_PostPartnerPublicKeyRequest,
__Marshaller_keyapis_multiapp_v1_PostPartnerPublicKeyResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeletePartner = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeletePartner",
__Marshaller_keyapis_multiapp_v1_DeletePartnerRequest,
__Marshaller_keyapis_multiapp_v1_DeletePartnerResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetPartnerAddressOrpon = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetPartnerAddressOrpon",
__Marshaller_keyapis_multiapp_v1_GetPartnerAddressOrponRequest,
__Marshaller_keyapis_multiapp_v1_GetPartnerAddressOrponResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Keyapis.Multiapp.V1.KeyapisMultiappPartnerV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of PartnerService
[grpc::BindServiceMethod(typeof(PartnerService), "BindService")]
public abstract partial class PartnerServiceBase
{
///
/// Метод сохранения партнера.
/// Поддерживает создание и обновление.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525.
/// Метод доступен для: 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 PostPartner(global::Keyapis.Multiapp.V1.PostPartnerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения партнера.
/// Метод доступен для: admin, manager, service, 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 GetPartner(global::Keyapis.Multiapp.V1.GetPartnerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка партнеров.
/// Метод доступен для: admin, manager, service, ltp_first
///
/// 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 GetPartnerList(global::Keyapis.Multiapp.V1.GetPartnerListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества партнеров.
/// Метод доступен для: admin, manager, service, 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 GetPartnerCount(global::Keyapis.Multiapp.V1.GetPartnerCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения токена.
/// Access токен возможно получить только для пользователей с типом master в статусе active, demo и new.
/// Логика работы метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695865.
/// Не требует авторизации
///
/// 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 GetPartnerToken(global::Keyapis.Multiapp.V1.GetPartnerTokenRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод обновления публичного ключа партнёра.
/// Поддерживает создание и обновление.
/// Метод доступен для: partner.
/// Требует передачи аутентификационного ключа в заголовке X-API-KEY.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525
///
/// 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 PostPartnerPublicKey(global::Keyapis.Multiapp.V1.PostPartnerPublicKeyRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод удаления партнёра.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=804302306.
/// Метод доступен для: 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 DeletePartner(global::Keyapis.Multiapp.V1.DeletePartnerRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения адреса дома по ОРПОНу.
/// Адресная строка должны быть в формате "{Регион}, {Город}, {Улица}, {Дом}, {Строение}".
/// Партнер может получить адрес только по доступному ему ОРПОНу.
/// Доступные ОРПОНы для партнера может получить через привязанные app в поле app_tags и user_tags.
/// Метод доступен для: admin, manager, service, partner.
/// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization
///
/// 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 GetPartnerAddressOrpon(global::Keyapis.Multiapp.V1.GetPartnerAddressOrponRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for PartnerService
public partial class PartnerServiceClient : grpc::ClientBase
{
/// Creates a new client for PartnerService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public PartnerServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for PartnerService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public PartnerServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected PartnerServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected PartnerServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// Метод сохранения партнера.
/// Поддерживает создание и обновление.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525.
/// Метод доступен для: 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.PostPartnerResponse PostPartner(global::Keyapis.Multiapp.V1.PostPartnerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostPartner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения партнера.
/// Поддерживает создание и обновление.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525.
/// Метод доступен для: 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.PostPartnerResponse PostPartner(global::Keyapis.Multiapp.V1.PostPartnerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostPartner, null, options, request);
}
///
/// Метод сохранения партнера.
/// Поддерживает создание и обновление.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525.
/// Метод доступен для: 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 PostPartnerAsync(global::Keyapis.Multiapp.V1.PostPartnerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostPartnerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения партнера.
/// Поддерживает создание и обновление.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525.
/// Метод доступен для: 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 PostPartnerAsync(global::Keyapis.Multiapp.V1.PostPartnerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostPartner, null, options, request);
}
///
/// Метод получения партнера.
/// Метод доступен для: admin, manager, service, 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.Multiapp.V1.GetPartnerResponse GetPartner(global::Keyapis.Multiapp.V1.GetPartnerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения партнера.
/// Метод доступен для: admin, manager, service, 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.Multiapp.V1.GetPartnerResponse GetPartner(global::Keyapis.Multiapp.V1.GetPartnerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetPartner, null, options, request);
}
///
/// Метод получения партнера.
/// Метод доступен для: admin, manager, service, 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 GetPartnerAsync(global::Keyapis.Multiapp.V1.GetPartnerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения партнера.
/// Метод доступен для: admin, manager, service, 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 GetPartnerAsync(global::Keyapis.Multiapp.V1.GetPartnerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetPartner, null, options, request);
}
///
/// Метод получения списка партнеров.
/// Метод доступен для: admin, manager, service, 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::AsyncServerStreamingCall GetPartnerList(global::Keyapis.Multiapp.V1.GetPartnerListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка партнеров.
/// Метод доступен для: admin, manager, service, 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::AsyncServerStreamingCall GetPartnerList(global::Keyapis.Multiapp.V1.GetPartnerListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetPartnerList, null, options, request);
}
///
/// Метод получения количества партнеров.
/// Метод доступен для: admin, manager, service, 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.Multiapp.V1.GetPartnerCountResponse GetPartnerCount(global::Keyapis.Multiapp.V1.GetPartnerCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества партнеров.
/// Метод доступен для: admin, manager, service, 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.Multiapp.V1.GetPartnerCountResponse GetPartnerCount(global::Keyapis.Multiapp.V1.GetPartnerCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetPartnerCount, null, options, request);
}
///
/// Метод получения количества партнеров.
/// Метод доступен для: admin, manager, service, 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 GetPartnerCountAsync(global::Keyapis.Multiapp.V1.GetPartnerCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества партнеров.
/// Метод доступен для: admin, manager, service, 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 GetPartnerCountAsync(global::Keyapis.Multiapp.V1.GetPartnerCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetPartnerCount, null, options, request);
}
///
/// Метод получения токена.
/// Access токен возможно получить только для пользователей с типом master в статусе active, demo и new.
/// Логика работы метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695865.
/// Не требует авторизации
///
/// 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.GetPartnerTokenResponse GetPartnerToken(global::Keyapis.Multiapp.V1.GetPartnerTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerToken(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения токена.
/// Access токен возможно получить только для пользователей с типом master в статусе active, demo и new.
/// Логика работы метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695865.
/// Не требует авторизации
///
/// 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.GetPartnerTokenResponse GetPartnerToken(global::Keyapis.Multiapp.V1.GetPartnerTokenRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetPartnerToken, null, options, request);
}
///
/// Метод получения токена.
/// Access токен возможно получить только для пользователей с типом master в статусе active, demo и new.
/// Логика работы метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695865.
/// Не требует авторизации
///
/// 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 GetPartnerTokenAsync(global::Keyapis.Multiapp.V1.GetPartnerTokenRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerTokenAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения токена.
/// Access токен возможно получить только для пользователей с типом master в статусе active, demo и new.
/// Логика работы метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695865.
/// Не требует авторизации
///
/// 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 GetPartnerTokenAsync(global::Keyapis.Multiapp.V1.GetPartnerTokenRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetPartnerToken, null, options, request);
}
///
/// Метод обновления публичного ключа партнёра.
/// Поддерживает создание и обновление.
/// Метод доступен для: partner.
/// Требует передачи аутентификационного ключа в заголовке X-API-KEY.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525
///
/// 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.PostPartnerPublicKeyResponse PostPartnerPublicKey(global::Keyapis.Multiapp.V1.PostPartnerPublicKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostPartnerPublicKey(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод обновления публичного ключа партнёра.
/// Поддерживает создание и обновление.
/// Метод доступен для: partner.
/// Требует передачи аутентификационного ключа в заголовке X-API-KEY.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525
///
/// 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.PostPartnerPublicKeyResponse PostPartnerPublicKey(global::Keyapis.Multiapp.V1.PostPartnerPublicKeyRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostPartnerPublicKey, null, options, request);
}
///
/// Метод обновления публичного ключа партнёра.
/// Поддерживает создание и обновление.
/// Метод доступен для: partner.
/// Требует передачи аутентификационного ключа в заголовке X-API-KEY.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525
///
/// 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 PostPartnerPublicKeyAsync(global::Keyapis.Multiapp.V1.PostPartnerPublicKeyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostPartnerPublicKeyAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод обновления публичного ключа партнёра.
/// Поддерживает создание и обновление.
/// Метод доступен для: partner.
/// Требует передачи аутентификационного ключа в заголовке X-API-KEY.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=664695525
///
/// 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 PostPartnerPublicKeyAsync(global::Keyapis.Multiapp.V1.PostPartnerPublicKeyRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostPartnerPublicKey, null, options, request);
}
///
/// Метод удаления партнёра.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=804302306.
/// Метод доступен для: 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.DeletePartnerResponse DeletePartner(global::Keyapis.Multiapp.V1.DeletePartnerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeletePartner(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления партнёра.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=804302306.
/// Метод доступен для: 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.DeletePartnerResponse DeletePartner(global::Keyapis.Multiapp.V1.DeletePartnerRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeletePartner, null, options, request);
}
///
/// Метод удаления партнёра.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=804302306.
/// Метод доступен для: 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 DeletePartnerAsync(global::Keyapis.Multiapp.V1.DeletePartnerRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeletePartnerAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления партнёра.
/// Сценарий использования метода: https://confluence.rt.ru/pages/viewpage.action?pageId=804302306.
/// Метод доступен для: 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 DeletePartnerAsync(global::Keyapis.Multiapp.V1.DeletePartnerRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeletePartner, null, options, request);
}
///
/// Метод получения адреса дома по ОРПОНу.
/// Адресная строка должны быть в формате "{Регион}, {Город}, {Улица}, {Дом}, {Строение}".
/// Партнер может получить адрес только по доступному ему ОРПОНу.
/// Доступные ОРПОНы для партнера может получить через привязанные app в поле app_tags и user_tags.
/// Метод доступен для: admin, manager, service, partner.
/// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization
///
/// 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.GetPartnerAddressOrponResponse GetPartnerAddressOrpon(global::Keyapis.Multiapp.V1.GetPartnerAddressOrponRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerAddressOrpon(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения адреса дома по ОРПОНу.
/// Адресная строка должны быть в формате "{Регион}, {Город}, {Улица}, {Дом}, {Строение}".
/// Партнер может получить адрес только по доступному ему ОРПОНу.
/// Доступные ОРПОНы для партнера может получить через привязанные app в поле app_tags и user_tags.
/// Метод доступен для: admin, manager, service, partner.
/// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization
///
/// 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.GetPartnerAddressOrponResponse GetPartnerAddressOrpon(global::Keyapis.Multiapp.V1.GetPartnerAddressOrponRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetPartnerAddressOrpon, null, options, request);
}
///
/// Метод получения адреса дома по ОРПОНу.
/// Адресная строка должны быть в формате "{Регион}, {Город}, {Улица}, {Дом}, {Строение}".
/// Партнер может получить адрес только по доступному ему ОРПОНу.
/// Доступные ОРПОНы для партнера может получить через привязанные app в поле app_tags и user_tags.
/// Метод доступен для: admin, manager, service, partner.
/// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization
///
/// 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 GetPartnerAddressOrponAsync(global::Keyapis.Multiapp.V1.GetPartnerAddressOrponRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetPartnerAddressOrponAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения адреса дома по ОРПОНу.
/// Адресная строка должны быть в формате "{Регион}, {Город}, {Улица}, {Дом}, {Строение}".
/// Партнер может получить адрес только по доступному ему ОРПОНу.
/// Доступные ОРПОНы для партнера может получить через привязанные app в поле app_tags и user_tags.
/// Метод доступен для: admin, manager, service, partner.
/// Роль partner определяется по наличию заголовка X-API-KEY вместо Authorization
///
/// 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 GetPartnerAddressOrponAsync(global::Keyapis.Multiapp.V1.GetPartnerAddressOrponRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetPartnerAddressOrpon, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override PartnerServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new PartnerServiceClient(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(PartnerServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_PostPartner, serviceImpl.PostPartner)
.AddMethod(__Method_GetPartner, serviceImpl.GetPartner)
.AddMethod(__Method_GetPartnerList, serviceImpl.GetPartnerList)
.AddMethod(__Method_GetPartnerCount, serviceImpl.GetPartnerCount)
.AddMethod(__Method_GetPartnerToken, serviceImpl.GetPartnerToken)
.AddMethod(__Method_PostPartnerPublicKey, serviceImpl.PostPartnerPublicKey)
.AddMethod(__Method_DeletePartner, serviceImpl.DeletePartner)
.AddMethod(__Method_GetPartnerAddressOrpon, serviceImpl.GetPartnerAddressOrpon).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, PartnerServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_PostPartner, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostPartner));
serviceBinder.AddMethod(__Method_GetPartner, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPartner));
serviceBinder.AddMethod(__Method_GetPartnerList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetPartnerList));
serviceBinder.AddMethod(__Method_GetPartnerCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPartnerCount));
serviceBinder.AddMethod(__Method_GetPartnerToken, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPartnerToken));
serviceBinder.AddMethod(__Method_PostPartnerPublicKey, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostPartnerPublicKey));
serviceBinder.AddMethod(__Method_DeletePartner, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeletePartner));
serviceBinder.AddMethod(__Method_GetPartnerAddressOrpon, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetPartnerAddressOrpon));
}
}
}
#endregion