//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/access_management/v1/keyapis_access_management_template_v1.proto
//
// Original file comments:
//
// Сервис реализует функционал управления шаблонами пользовательских групп
#pragma warning disable 0414, 1591
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Keyapis.AccessManagement.V1 {
///
/// Сервис управления шаблонами пользовательских групп
///
public static partial class GroupTemplateService
{
static readonly string __ServiceName = "keyapis.access_management.v1.GroupTemplateService";
[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_access_management_v1_GetGroupTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_PostGroupTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.PostGroupTemplateRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_PostGroupTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.PostGroupTemplateResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_DeleteGroupTemplateRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.DeleteGroupTemplateRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_DeleteGroupTemplateResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.DeleteGroupTemplateResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupListRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupListRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupListResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupListResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupCountRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupCountResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupAttachRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupAttachResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupDetachRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupDetachResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetGroupTemplate = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetGroupTemplate",
__Marshaller_keyapis_access_management_v1_GetGroupTemplateRequest,
__Marshaller_keyapis_access_management_v1_GetGroupTemplateResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetGroupTemplateList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetGroupTemplateList",
__Marshaller_keyapis_access_management_v1_GetGroupTemplateListRequest,
__Marshaller_keyapis_access_management_v1_GetGroupTemplateListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetGroupTemplateCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetGroupTemplateCount",
__Marshaller_keyapis_access_management_v1_GetGroupTemplateCountRequest,
__Marshaller_keyapis_access_management_v1_GetGroupTemplateCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PostGroupTemplate = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PostGroupTemplate",
__Marshaller_keyapis_access_management_v1_PostGroupTemplateRequest,
__Marshaller_keyapis_access_management_v1_PostGroupTemplateResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_DeleteGroupTemplate = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"DeleteGroupTemplate",
__Marshaller_keyapis_access_management_v1_DeleteGroupTemplateRequest,
__Marshaller_keyapis_access_management_v1_DeleteGroupTemplateResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetGroupTemplateGroupList = new grpc::Method(
grpc::MethodType.ServerStreaming,
__ServiceName,
"GetGroupTemplateGroupList",
__Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupListRequest,
__Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupListResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetGroupTemplateGroupCount = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetGroupTemplateGroupCount",
__Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupCountRequest,
__Marshaller_keyapis_access_management_v1_GetGroupTemplateGroupCountResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PutGroupTemplateGroupAttach = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PutGroupTemplateGroupAttach",
__Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupAttachRequest,
__Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupAttachResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_PutGroupTemplateGroupDetach = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"PutGroupTemplateGroupDetach",
__Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupDetachRequest,
__Marshaller_keyapis_access_management_v1_PutGroupTemplateGroupDetachResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Keyapis.AccessManagement.V1.KeyapisAccessManagementTemplateV1Reflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of GroupTemplateService
[grpc::BindServiceMethod(typeof(GroupTemplateService), "BindService")]
public abstract partial class GroupTemplateServiceBase
{
///
/// Метод получения шаблона группы.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplate(global::Keyapis.AccessManagement.V1.GetGroupTemplateRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateList(global::Keyapis.AccessManagement.V1.GetGroupTemplateListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateCount(global::Keyapis.AccessManagement.V1.GetGroupTemplateCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод сохранения шаблона группы.
/// Поддерживает создание и обновление как UPSERT по GroupTemplate.id.
/// Метод доступен для: admin, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PostGroupTemplate(global::Keyapis.AccessManagement.V1.PostGroupTemplateRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод удаления шаблона группы.
/// Проставляет дату удаления GroupTemplate.deleted_at.
/// Метод доступен для: admin, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task DeleteGroupTemplate(global::Keyapis.AccessManagement.V1.DeleteGroupTemplateRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения списка связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request received from the client.
/// Used for sending responses back to the client.
/// The context of the server-side call handler being invoked.
/// A task indicating completion of the handler.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetGroupTemplateGroupList(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupListRequest request, grpc::IServerStreamWriter responseStream, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод получения количества связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetGroupTemplateGroupCount(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод сохранения связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PutGroupTemplateGroupAttach(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Метод удаления связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request received from the client.
/// The context of the server-side call handler being invoked.
/// The response to send back to the client (wrapped by a task).
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task PutGroupTemplateGroupDetach(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for GroupTemplateService
public partial class GroupTemplateServiceClient : grpc::ClientBase
{
/// Creates a new client for GroupTemplateService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public GroupTemplateServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for GroupTemplateService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public GroupTemplateServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected GroupTemplateServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected GroupTemplateServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// Метод получения шаблона группы.
/// Метод доступен для: admin, service, bti, seller
///
/// 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.AccessManagement.V1.GetGroupTemplateResponse GetGroupTemplate(global::Keyapis.AccessManagement.V1.GetGroupTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения шаблона группы.
/// Метод доступен для: admin, service, bti, seller
///
/// 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.AccessManagement.V1.GetGroupTemplateResponse GetGroupTemplate(global::Keyapis.AccessManagement.V1.GetGroupTemplateRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetGroupTemplate, null, options, request);
}
///
/// Метод получения шаблона группы.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateAsync(global::Keyapis.AccessManagement.V1.GetGroupTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения шаблона группы.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateAsync(global::Keyapis.AccessManagement.V1.GetGroupTemplateRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetGroupTemplate, null, options, request);
}
///
/// Метод получения списка шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateList(global::Keyapis.AccessManagement.V1.GetGroupTemplateListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateList(global::Keyapis.AccessManagement.V1.GetGroupTemplateListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetGroupTemplateList, null, options, request);
}
///
/// Метод получения количества шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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.AccessManagement.V1.GetGroupTemplateCountResponse GetGroupTemplateCount(global::Keyapis.AccessManagement.V1.GetGroupTemplateCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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.AccessManagement.V1.GetGroupTemplateCountResponse GetGroupTemplateCount(global::Keyapis.AccessManagement.V1.GetGroupTemplateCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetGroupTemplateCount, null, options, request);
}
///
/// Метод получения количества шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateCountAsync(global::Keyapis.AccessManagement.V1.GetGroupTemplateCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества шаблонов групп.
/// Метод доступен для: admin, service, bti, seller
///
/// 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 GetGroupTemplateCountAsync(global::Keyapis.AccessManagement.V1.GetGroupTemplateCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetGroupTemplateCount, null, options, request);
}
///
/// Метод сохранения шаблона группы.
/// Поддерживает создание и обновление как UPSERT по GroupTemplate.id.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.PostGroupTemplateResponse PostGroupTemplate(global::Keyapis.AccessManagement.V1.PostGroupTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostGroupTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения шаблона группы.
/// Поддерживает создание и обновление как UPSERT по GroupTemplate.id.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.PostGroupTemplateResponse PostGroupTemplate(global::Keyapis.AccessManagement.V1.PostGroupTemplateRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PostGroupTemplate, null, options, request);
}
///
/// Метод сохранения шаблона группы.
/// Поддерживает создание и обновление как UPSERT по GroupTemplate.id.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostGroupTemplateAsync(global::Keyapis.AccessManagement.V1.PostGroupTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PostGroupTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения шаблона группы.
/// Поддерживает создание и обновление как UPSERT по GroupTemplate.id.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PostGroupTemplateAsync(global::Keyapis.AccessManagement.V1.PostGroupTemplateRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PostGroupTemplate, null, options, request);
}
///
/// Метод удаления шаблона группы.
/// Проставляет дату удаления GroupTemplate.deleted_at.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.DeleteGroupTemplateResponse DeleteGroupTemplate(global::Keyapis.AccessManagement.V1.DeleteGroupTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteGroupTemplate(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления шаблона группы.
/// Проставляет дату удаления GroupTemplate.deleted_at.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.DeleteGroupTemplateResponse DeleteGroupTemplate(global::Keyapis.AccessManagement.V1.DeleteGroupTemplateRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_DeleteGroupTemplate, null, options, request);
}
///
/// Метод удаления шаблона группы.
/// Проставляет дату удаления GroupTemplate.deleted_at.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteGroupTemplateAsync(global::Keyapis.AccessManagement.V1.DeleteGroupTemplateRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return DeleteGroupTemplateAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления шаблона группы.
/// Проставляет дату удаления GroupTemplate.deleted_at.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall DeleteGroupTemplateAsync(global::Keyapis.AccessManagement.V1.DeleteGroupTemplateRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_DeleteGroupTemplate, null, options, request);
}
///
/// Метод получения списка связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetGroupTemplateGroupList(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupListRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateGroupList(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения списка связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall GetGroupTemplateGroupList(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupListRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncServerStreamingCall(__Method_GetGroupTemplateGroupList, null, options, request);
}
///
/// Метод получения количества связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountResponse GetGroupTemplateGroupCount(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateGroupCount(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountResponse GetGroupTemplateGroupCount(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetGroupTemplateGroupCount, null, options, request);
}
///
/// Метод получения количества связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetGroupTemplateGroupCountAsync(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetGroupTemplateGroupCountAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод получения количества связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetGroupTemplateGroupCountAsync(global::Keyapis.AccessManagement.V1.GetGroupTemplateGroupCountRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetGroupTemplateGroupCount, null, options, request);
}
///
/// Метод сохранения связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachResponse PutGroupTemplateGroupAttach(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PutGroupTemplateGroupAttach(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachResponse PutGroupTemplateGroupAttach(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PutGroupTemplateGroupAttach, null, options, request);
}
///
/// Метод сохранения связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PutGroupTemplateGroupAttachAsync(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PutGroupTemplateGroupAttachAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод сохранения связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PutGroupTemplateGroupAttachAsync(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupAttachRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PutGroupTemplateGroupAttach, null, options, request);
}
///
/// Метод удаления связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachResponse PutGroupTemplateGroupDetach(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PutGroupTemplateGroupDetach(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The response received from the server.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachResponse PutGroupTemplateGroupDetach(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_PutGroupTemplateGroupDetach, null, options, request);
}
///
/// Метод удаления связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The initial metadata to send with the call. This parameter is optional.
/// An optional deadline for the call. The call will be cancelled if deadline is hit.
/// An optional token for canceling the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PutGroupTemplateGroupDetachAsync(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PutGroupTemplateGroupDetachAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Метод удаления связей шаблонов групп и группы пользователя.
/// Метод доступен для: admin, service
///
/// The request to send to the server.
/// The options for the call.
/// The call object.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall PutGroupTemplateGroupDetachAsync(global::Keyapis.AccessManagement.V1.PutGroupTemplateGroupDetachRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_PutGroupTemplateGroupDetach, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override GroupTemplateServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new GroupTemplateServiceClient(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(GroupTemplateServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_GetGroupTemplate, serviceImpl.GetGroupTemplate)
.AddMethod(__Method_GetGroupTemplateList, serviceImpl.GetGroupTemplateList)
.AddMethod(__Method_GetGroupTemplateCount, serviceImpl.GetGroupTemplateCount)
.AddMethod(__Method_PostGroupTemplate, serviceImpl.PostGroupTemplate)
.AddMethod(__Method_DeleteGroupTemplate, serviceImpl.DeleteGroupTemplate)
.AddMethod(__Method_GetGroupTemplateGroupList, serviceImpl.GetGroupTemplateGroupList)
.AddMethod(__Method_GetGroupTemplateGroupCount, serviceImpl.GetGroupTemplateGroupCount)
.AddMethod(__Method_PutGroupTemplateGroupAttach, serviceImpl.PutGroupTemplateGroupAttach)
.AddMethod(__Method_PutGroupTemplateGroupDetach, serviceImpl.PutGroupTemplateGroupDetach).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, GroupTemplateServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_GetGroupTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGroupTemplate));
serviceBinder.AddMethod(__Method_GetGroupTemplateList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetGroupTemplateList));
serviceBinder.AddMethod(__Method_GetGroupTemplateCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGroupTemplateCount));
serviceBinder.AddMethod(__Method_PostGroupTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PostGroupTemplate));
serviceBinder.AddMethod(__Method_DeleteGroupTemplate, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteGroupTemplate));
serviceBinder.AddMethod(__Method_GetGroupTemplateGroupList, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod(serviceImpl.GetGroupTemplateGroupList));
serviceBinder.AddMethod(__Method_GetGroupTemplateGroupCount, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetGroupTemplateGroupCount));
serviceBinder.AddMethod(__Method_PutGroupTemplateGroupAttach, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PutGroupTemplateGroupAttach));
serviceBinder.AddMethod(__Method_PutGroupTemplateGroupDetach, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PutGroupTemplateGroupDetach));
}
}
}
#endregion