//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: administrationservices.proto
//
#pragma warning disable 0414, 1591, 8981, 0612
#region Designer generated code
using grpc = global::Grpc.Core;
namespace Administrationservices {
public static partial class administrationService
{
static readonly string __ServiceName = "administrationservices.administrationService";
[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_administrationservices_SetNewExpositionCategoryRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetNewExpositionCategoryRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetNewExpositionCategoryResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetNewExpositionCategoryResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetRoleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetRoleRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetRoleResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetRoleResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetMenuComponentRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetMenuComponentRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetMenuComponentResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetMenuComponentResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetAllMenuComponentsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetAllMenuComponentsRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetAllMenuComponentsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetAllMenuComponentsResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetUserAccessInfoRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetUserAccessInfoRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetUserAccessInfoResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetUserAccessInfoResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetUserRoleRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetUserRoleRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_SetUserRoleResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.SetUserRoleResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetRoleInfoRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetRoleInfoRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_all_roles = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.all_roles.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_SetNewExpositionCategory = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"SetNewExpositionCategory",
__Marshaller_administrationservices_SetNewExpositionCategoryRequest,
__Marshaller_administrationservices_SetNewExpositionCategoryResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_setRoleAndAccess = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"setRoleAndAccess",
__Marshaller_administrationservices_SetRoleRequest,
__Marshaller_administrationservices_SetRoleResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_setMenuComponent = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"setMenuComponent",
__Marshaller_administrationservices_SetMenuComponentRequest,
__Marshaller_administrationservices_SetMenuComponentResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_getAllMenuComponents = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"getAllMenuComponents",
__Marshaller_administrationservices_GetAllMenuComponentsRequest,
__Marshaller_administrationservices_GetAllMenuComponentsResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_getUserAccessInfo = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"getUserAccessInfo",
__Marshaller_administrationservices_GetUserAccessInfoRequest,
__Marshaller_administrationservices_GetUserAccessInfoResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_setUserRole = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"setUserRole",
__Marshaller_administrationservices_SetUserRoleRequest,
__Marshaller_administrationservices_SetUserRoleResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_getRoleInfo = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"getRoleInfo",
__Marshaller_administrationservices_GetRoleInfoRequest,
__Marshaller_administrationservices_all_roles);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Administrationservices.AdministrationservicesReflection.Descriptor.Services[0]; }
}
/// Base class for server-side implementations of administrationService
[grpc::BindServiceMethod(typeof(administrationService), "BindService")]
public abstract partial class administrationServiceBase
{
///
/// --- Legacy ---
///
/// 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 SetNewExpositionCategory(global::Administrationservices.SetNewExpositionCategoryRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task setRoleAndAccess(global::Administrationservices.SetRoleRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task setMenuComponent(global::Administrationservices.SetMenuComponentRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task getAllMenuComponents(global::Administrationservices.GetAllMenuComponentsRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task getUserAccessInfo(global::Administrationservices.GetUserAccessInfoRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task setUserRole(global::Administrationservices.SetUserRoleRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task getRoleInfo(global::Administrationservices.GetRoleInfoRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for administrationService
public partial class administrationServiceClient : grpc::ClientBase
{
/// Creates a new client for administrationService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public administrationServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for administrationService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public administrationServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected administrationServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected administrationServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// --- Legacy ---
///
/// 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::Administrationservices.SetNewExpositionCategoryResponse SetNewExpositionCategory(global::Administrationservices.SetNewExpositionCategoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SetNewExpositionCategory(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// --- Legacy ---
///
/// 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::Administrationservices.SetNewExpositionCategoryResponse SetNewExpositionCategory(global::Administrationservices.SetNewExpositionCategoryRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_SetNewExpositionCategory, null, options, request);
}
///
/// --- Legacy ---
///
/// 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 SetNewExpositionCategoryAsync(global::Administrationservices.SetNewExpositionCategoryRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return SetNewExpositionCategoryAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// --- Legacy ---
///
/// 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 SetNewExpositionCategoryAsync(global::Administrationservices.SetNewExpositionCategoryRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_SetNewExpositionCategory, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.SetRoleResponse setRoleAndAccess(global::Administrationservices.SetRoleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return setRoleAndAccess(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.SetRoleResponse setRoleAndAccess(global::Administrationservices.SetRoleRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_setRoleAndAccess, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall setRoleAndAccessAsync(global::Administrationservices.SetRoleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return setRoleAndAccessAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall setRoleAndAccessAsync(global::Administrationservices.SetRoleRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_setRoleAndAccess, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.SetMenuComponentResponse setMenuComponent(global::Administrationservices.SetMenuComponentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return setMenuComponent(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.SetMenuComponentResponse setMenuComponent(global::Administrationservices.SetMenuComponentRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_setMenuComponent, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall setMenuComponentAsync(global::Administrationservices.SetMenuComponentRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return setMenuComponentAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall setMenuComponentAsync(global::Administrationservices.SetMenuComponentRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_setMenuComponent, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.GetAllMenuComponentsResponse getAllMenuComponents(global::Administrationservices.GetAllMenuComponentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return getAllMenuComponents(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.GetAllMenuComponentsResponse getAllMenuComponents(global::Administrationservices.GetAllMenuComponentsRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_getAllMenuComponents, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall getAllMenuComponentsAsync(global::Administrationservices.GetAllMenuComponentsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return getAllMenuComponentsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall getAllMenuComponentsAsync(global::Administrationservices.GetAllMenuComponentsRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_getAllMenuComponents, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.GetUserAccessInfoResponse getUserAccessInfo(global::Administrationservices.GetUserAccessInfoRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return getUserAccessInfo(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.GetUserAccessInfoResponse getUserAccessInfo(global::Administrationservices.GetUserAccessInfoRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_getUserAccessInfo, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall getUserAccessInfoAsync(global::Administrationservices.GetUserAccessInfoRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return getUserAccessInfoAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall getUserAccessInfoAsync(global::Administrationservices.GetUserAccessInfoRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_getUserAccessInfo, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.SetUserRoleResponse setUserRole(global::Administrationservices.SetUserRoleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return setUserRole(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.SetUserRoleResponse setUserRole(global::Administrationservices.SetUserRoleRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_setUserRole, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall setUserRoleAsync(global::Administrationservices.SetUserRoleRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return setUserRoleAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall setUserRoleAsync(global::Administrationservices.SetUserRoleRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_setUserRole, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.all_roles getRoleInfo(global::Administrationservices.GetRoleInfoRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return getRoleInfo(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.all_roles getRoleInfo(global::Administrationservices.GetRoleInfoRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_getRoleInfo, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall getRoleInfoAsync(global::Administrationservices.GetRoleInfoRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return getRoleInfoAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall getRoleInfoAsync(global::Administrationservices.GetRoleInfoRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_getRoleInfo, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override administrationServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new administrationServiceClient(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(administrationServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_SetNewExpositionCategory, serviceImpl.SetNewExpositionCategory)
.AddMethod(__Method_setRoleAndAccess, serviceImpl.setRoleAndAccess)
.AddMethod(__Method_setMenuComponent, serviceImpl.setMenuComponent)
.AddMethod(__Method_getAllMenuComponents, serviceImpl.getAllMenuComponents)
.AddMethod(__Method_getUserAccessInfo, serviceImpl.getUserAccessInfo)
.AddMethod(__Method_setUserRole, serviceImpl.setUserRole)
.AddMethod(__Method_getRoleInfo, serviceImpl.getRoleInfo).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, administrationServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_SetNewExpositionCategory, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetNewExpositionCategory));
serviceBinder.AddMethod(__Method_setRoleAndAccess, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.setRoleAndAccess));
serviceBinder.AddMethod(__Method_setMenuComponent, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.setMenuComponent));
serviceBinder.AddMethod(__Method_getAllMenuComponents, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.getAllMenuComponents));
serviceBinder.AddMethod(__Method_getUserAccessInfo, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.getUserAccessInfo));
serviceBinder.AddMethod(__Method_setUserRole, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.setUserRole));
serviceBinder.AddMethod(__Method_getRoleInfo, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.getRoleInfo));
}
}
public static partial class ProfileService
{
static readonly string __ServiceName = "administrationservices.ProfileService";
[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_administrationservices_GetUserPermissionsRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetUserPermissionsRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetUserPermissionsResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetUserPermissionsResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_EmptyRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.EmptyRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_PingResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.PingResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetProfileByIdRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetProfileByIdRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_ProfileData = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.ProfileData.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetAllProfilesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetAllProfilesRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_GetAllProfilesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.GetAllProfilesResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_AssignProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.AssignProfileRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_AssignProfileResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.AssignProfileResponse.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller __Marshaller_administrationservices_RemoveProfileRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Administrationservices.RemoveProfileRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetUserPermissions = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetUserPermissions",
__Marshaller_administrationservices_GetUserPermissionsRequest,
__Marshaller_administrationservices_GetUserPermissionsResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_Ping = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"Ping",
__Marshaller_administrationservices_EmptyRequest,
__Marshaller_administrationservices_PingResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetProfilesById = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetProfilesById",
__Marshaller_administrationservices_GetProfileByIdRequest,
__Marshaller_administrationservices_ProfileData);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_GetAllProfiles = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"GetAllProfiles",
__Marshaller_administrationservices_GetAllProfilesRequest,
__Marshaller_administrationservices_GetAllProfilesResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_AssignProfileToUser = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"AssignProfileToUser",
__Marshaller_administrationservices_AssignProfileRequest,
__Marshaller_administrationservices_AssignProfileResponse);
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method __Method_RemoveProfileFromUser = new grpc::Method(
grpc::MethodType.Unary,
__ServiceName,
"RemoveProfileFromUser",
__Marshaller_administrationservices_RemoveProfileRequest,
__Marshaller_administrationservices_AssignProfileResponse);
/// Service descriptor
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Administrationservices.AdministrationservicesReflection.Descriptor.Services[1]; }
}
/// Base class for server-side implementations of ProfileService
[grpc::BindServiceMethod(typeof(ProfileService), "BindService")]
public abstract partial class ProfileServiceBase
{
///
/// --- Nueva Lógica de Negocio ---
///
/// 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 GetUserPermissions(global::Administrationservices.GetUserPermissionsRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
///-- HEALTH CHECK ---
///
/// 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 Ping(global::Administrationservices.EmptyRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// --- CRUD Genérico ---
///
/// 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 GetProfilesById(global::Administrationservices.GetProfileByIdRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task GetAllProfiles(global::Administrationservices.GetAllProfilesRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
///
/// Asignaciones
///
/// 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 AssignProfileToUser(global::Administrationservices.AssignProfileRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::System.Threading.Tasks.Task RemoveProfileFromUser(global::Administrationservices.RemoveProfileRequest request, grpc::ServerCallContext context)
{
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, ""));
}
}
/// Client for ProfileService
public partial class ProfileServiceClient : grpc::ClientBase
{
/// Creates a new client for ProfileService
/// The channel to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public ProfileServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// Creates a new client for ProfileService that uses a custom CallInvoker.
/// The callInvoker to use to make remote calls.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public ProfileServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// Protected parameterless constructor to allow creation of test doubles.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected ProfileServiceClient() : base()
{
}
/// Protected constructor to allow creation of configured clients.
/// The client configuration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected ProfileServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
///
/// --- Nueva Lógica de Negocio ---
///
/// 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::Administrationservices.GetUserPermissionsResponse GetUserPermissions(global::Administrationservices.GetUserPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetUserPermissions(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// --- Nueva Lógica de Negocio ---
///
/// 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::Administrationservices.GetUserPermissionsResponse GetUserPermissions(global::Administrationservices.GetUserPermissionsRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetUserPermissions, null, options, request);
}
///
/// --- Nueva Lógica de Negocio ---
///
/// 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 GetUserPermissionsAsync(global::Administrationservices.GetUserPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetUserPermissionsAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// --- Nueva Lógica de Negocio ---
///
/// 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 GetUserPermissionsAsync(global::Administrationservices.GetUserPermissionsRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetUserPermissions, null, options, request);
}
///
///-- HEALTH CHECK ---
///
/// 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::Administrationservices.PingResponse Ping(global::Administrationservices.EmptyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return Ping(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
///-- HEALTH CHECK ---
///
/// 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::Administrationservices.PingResponse Ping(global::Administrationservices.EmptyRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_Ping, null, options, request);
}
///
///-- HEALTH CHECK ---
///
/// 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 PingAsync(global::Administrationservices.EmptyRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return PingAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
///-- HEALTH CHECK ---
///
/// 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 PingAsync(global::Administrationservices.EmptyRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_Ping, null, options, request);
}
///
/// --- CRUD Genérico ---
///
/// 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::Administrationservices.ProfileData GetProfilesById(global::Administrationservices.GetProfileByIdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetProfilesById(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// --- CRUD Genérico ---
///
/// 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::Administrationservices.ProfileData GetProfilesById(global::Administrationservices.GetProfileByIdRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetProfilesById, null, options, request);
}
///
/// --- CRUD Genérico ---
///
/// 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 GetProfilesByIdAsync(global::Administrationservices.GetProfileByIdRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetProfilesByIdAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// --- CRUD Genérico ---
///
/// 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 GetProfilesByIdAsync(global::Administrationservices.GetProfileByIdRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetProfilesById, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.GetAllProfilesResponse GetAllProfiles(global::Administrationservices.GetAllProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetAllProfiles(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.GetAllProfilesResponse GetAllProfiles(global::Administrationservices.GetAllProfilesRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_GetAllProfiles, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetAllProfilesAsync(global::Administrationservices.GetAllProfilesRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return GetAllProfilesAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall GetAllProfilesAsync(global::Administrationservices.GetAllProfilesRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_GetAllProfiles, null, options, request);
}
///
/// Asignaciones
///
/// 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::Administrationservices.AssignProfileResponse AssignProfileToUser(global::Administrationservices.AssignProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return AssignProfileToUser(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Asignaciones
///
/// 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::Administrationservices.AssignProfileResponse AssignProfileToUser(global::Administrationservices.AssignProfileRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_AssignProfileToUser, null, options, request);
}
///
/// Asignaciones
///
/// 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 AssignProfileToUserAsync(global::Administrationservices.AssignProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return AssignProfileToUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
///
/// Asignaciones
///
/// 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 AssignProfileToUserAsync(global::Administrationservices.AssignProfileRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_AssignProfileToUser, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.AssignProfileResponse RemoveProfileFromUser(global::Administrationservices.RemoveProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return RemoveProfileFromUser(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Administrationservices.AssignProfileResponse RemoveProfileFromUser(global::Administrationservices.RemoveProfileRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_RemoveProfileFromUser, null, options, request);
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall RemoveProfileFromUserAsync(global::Administrationservices.RemoveProfileRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return RemoveProfileFromUserAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall RemoveProfileFromUserAsync(global::Administrationservices.RemoveProfileRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_RemoveProfileFromUser, null, options, request);
}
/// Creates a new instance of client from given ClientBaseConfiguration.
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override ProfileServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new ProfileServiceClient(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(ProfileServiceBase serviceImpl)
{
return grpc::ServerServiceDefinition.CreateBuilder()
.AddMethod(__Method_GetUserPermissions, serviceImpl.GetUserPermissions)
.AddMethod(__Method_Ping, serviceImpl.Ping)
.AddMethod(__Method_GetProfilesById, serviceImpl.GetProfilesById)
.AddMethod(__Method_GetAllProfiles, serviceImpl.GetAllProfiles)
.AddMethod(__Method_AssignProfileToUser, serviceImpl.AssignProfileToUser)
.AddMethod(__Method_RemoveProfileFromUser, serviceImpl.RemoveProfileFromUser).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, ProfileServiceBase serviceImpl)
{
serviceBinder.AddMethod(__Method_GetUserPermissions, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetUserPermissions));
serviceBinder.AddMethod(__Method_Ping, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Ping));
serviceBinder.AddMethod(__Method_GetProfilesById, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetProfilesById));
serviceBinder.AddMethod(__Method_GetAllProfiles, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.GetAllProfiles));
serviceBinder.AddMethod(__Method_AssignProfileToUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.AssignProfileToUser));
serviceBinder.AddMethod(__Method_RemoveProfileFromUser, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.RemoveProfileFromUser));
}
}
}
#endregion