
com.daml.ledger.api.v1.admin.UserManagementServiceGrpc Maven / Gradle / Ivy
package com.daml.ledger.api.v1.admin;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Service to manage users and their rights for interacting with the Ledger API
* served by a participant node.
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
* messages as boolean expressions over these facts:
* (1) ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
* (2) ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user.
* (3) ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
* of the authenticated user and the user has an IdentityProviderAdmin right.
* If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved.
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
* (1) ``Optional`` denoting the client may leave the field unset when sending a request.
* (2) ``Required`` denoting the client must set the field to a non-default value when sending a request.
* A user resource consists of:
* (1) a set of properties represented by the ``User`` message,
* (2) a set of user rights, where each right is represented by the ``Right`` message.
* A user resource, once it has been created, can be modified.
* In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``.
* In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: com/daml/ledger/api/v1/admin/user_management_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class UserManagementServiceGrpc {
private UserManagementServiceGrpc() {}
public static final String SERVICE_NAME = "com.daml.ledger.api.v1.admin.UserManagementService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateUserMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateUser",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateUserMethod() {
io.grpc.MethodDescriptor getCreateUserMethod;
if ((getCreateUserMethod = UserManagementServiceGrpc.getCreateUserMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getCreateUserMethod = UserManagementServiceGrpc.getCreateUserMethod) == null) {
UserManagementServiceGrpc.getCreateUserMethod = getCreateUserMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUser"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("CreateUser"))
.build();
}
}
}
return getCreateUserMethod;
}
private static volatile io.grpc.MethodDescriptor getGetUserMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetUser",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetUserMethod() {
io.grpc.MethodDescriptor getGetUserMethod;
if ((getGetUserMethod = UserManagementServiceGrpc.getGetUserMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getGetUserMethod = UserManagementServiceGrpc.getGetUserMethod) == null) {
UserManagementServiceGrpc.getGetUserMethod = getGetUserMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUser"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("GetUser"))
.build();
}
}
}
return getGetUserMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateUserMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateUser",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateUserMethod() {
io.grpc.MethodDescriptor getUpdateUserMethod;
if ((getUpdateUserMethod = UserManagementServiceGrpc.getUpdateUserMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getUpdateUserMethod = UserManagementServiceGrpc.getUpdateUserMethod) == null) {
UserManagementServiceGrpc.getUpdateUserMethod = getUpdateUserMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUser"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("UpdateUser"))
.build();
}
}
}
return getUpdateUserMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteUserMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteUser",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteUserMethod() {
io.grpc.MethodDescriptor getDeleteUserMethod;
if ((getDeleteUserMethod = UserManagementServiceGrpc.getDeleteUserMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getDeleteUserMethod = UserManagementServiceGrpc.getDeleteUserMethod) == null) {
UserManagementServiceGrpc.getDeleteUserMethod = getDeleteUserMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUser"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("DeleteUser"))
.build();
}
}
}
return getDeleteUserMethod;
}
private static volatile io.grpc.MethodDescriptor getListUsersMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListUsers",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListUsersMethod() {
io.grpc.MethodDescriptor getListUsersMethod;
if ((getListUsersMethod = UserManagementServiceGrpc.getListUsersMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getListUsersMethod = UserManagementServiceGrpc.getListUsersMethod) == null) {
UserManagementServiceGrpc.getListUsersMethod = getListUsersMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsers"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("ListUsers"))
.build();
}
}
}
return getListUsersMethod;
}
private static volatile io.grpc.MethodDescriptor getGrantUserRightsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GrantUserRights",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGrantUserRightsMethod() {
io.grpc.MethodDescriptor getGrantUserRightsMethod;
if ((getGrantUserRightsMethod = UserManagementServiceGrpc.getGrantUserRightsMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getGrantUserRightsMethod = UserManagementServiceGrpc.getGrantUserRightsMethod) == null) {
UserManagementServiceGrpc.getGrantUserRightsMethod = getGrantUserRightsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GrantUserRights"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("GrantUserRights"))
.build();
}
}
}
return getGrantUserRightsMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokeUserRightsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RevokeUserRights",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRevokeUserRightsMethod() {
io.grpc.MethodDescriptor getRevokeUserRightsMethod;
if ((getRevokeUserRightsMethod = UserManagementServiceGrpc.getRevokeUserRightsMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getRevokeUserRightsMethod = UserManagementServiceGrpc.getRevokeUserRightsMethod) == null) {
UserManagementServiceGrpc.getRevokeUserRightsMethod = getRevokeUserRightsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeUserRights"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("RevokeUserRights"))
.build();
}
}
}
return getRevokeUserRightsMethod;
}
private static volatile io.grpc.MethodDescriptor getListUserRightsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListUserRights",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListUserRightsMethod() {
io.grpc.MethodDescriptor getListUserRightsMethod;
if ((getListUserRightsMethod = UserManagementServiceGrpc.getListUserRightsMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getListUserRightsMethod = UserManagementServiceGrpc.getListUserRightsMethod) == null) {
UserManagementServiceGrpc.getListUserRightsMethod = getListUserRightsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserRights"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("ListUserRights"))
.build();
}
}
}
return getListUserRightsMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateUserIdentityProviderIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateUserIdentityProviderId",
requestType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest.class,
responseType = com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateUserIdentityProviderIdMethod() {
io.grpc.MethodDescriptor getUpdateUserIdentityProviderIdMethod;
if ((getUpdateUserIdentityProviderIdMethod = UserManagementServiceGrpc.getUpdateUserIdentityProviderIdMethod) == null) {
synchronized (UserManagementServiceGrpc.class) {
if ((getUpdateUserIdentityProviderIdMethod = UserManagementServiceGrpc.getUpdateUserIdentityProviderIdMethod) == null) {
UserManagementServiceGrpc.getUpdateUserIdentityProviderIdMethod = getUpdateUserIdentityProviderIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUserIdentityProviderId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderResponse.getDefaultInstance()))
.setSchemaDescriptor(new UserManagementServiceMethodDescriptorSupplier("UpdateUserIdentityProviderId"))
.build();
}
}
}
return getUpdateUserIdentityProviderIdMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static UserManagementServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UserManagementServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserManagementServiceStub(channel, callOptions);
}
};
return UserManagementServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static UserManagementServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UserManagementServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserManagementServiceBlockingStub(channel, callOptions);
}
};
return UserManagementServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static UserManagementServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UserManagementServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserManagementServiceFutureStub(channel, callOptions);
}
};
return UserManagementServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage users and their rights for interacting with the Ledger API
* served by a participant node.
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
* messages as boolean expressions over these facts:
* (1) ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
* (2) ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user.
* (3) ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
* of the authenticated user and the user has an IdentityProviderAdmin right.
* If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved.
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
* (1) ``Optional`` denoting the client may leave the field unset when sending a request.
* (2) ``Required`` denoting the client must set the field to a non-default value when sending a request.
* A user resource consists of:
* (1) a set of properties represented by the ``User`` message,
* (2) a set of user rights, where each right is represented by the ``Right`` message.
* A user resource, once it has been created, can be modified.
* In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``.
* In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
*
*/
public static abstract class UserManagementServiceImplBase implements io.grpc.BindableService {
/**
*
* Create a new user.
*
*/
public void createUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUserMethod(), responseObserver);
}
/**
*
* Get the user data of a specific user or the authenticated user.
*
*/
public void getUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUserMethod(), responseObserver);
}
/**
*
* Update selected modifiable attribute of a user resource described by the ``User`` message.
*
*/
public void updateUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUserMethod(), responseObserver);
}
/**
*
* Delete an existing user and all its rights.
*
*/
public void deleteUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUserMethod(), responseObserver);
}
/**
*
* List all existing users.
*
*/
public void listUsers(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsersMethod(), responseObserver);
}
/**
*
* Grant rights to a user.
* Granting rights does not affect the resource version of the corresponding user.
*
*/
public void grantUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGrantUserRightsMethod(), responseObserver);
}
/**
*
* Revoke rights from a user.
* Revoking rights does not affect the resource version of the corresponding user.
*
*/
public void revokeUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeUserRightsMethod(), responseObserver);
}
/**
*
* List the set of all rights granted to a user.
*
*/
public void listUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUserRightsMethod(), responseObserver);
}
/**
*
* Update the assignment of a user from one IDP to another.
*
*/
public void updateUserIdentityProviderId(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUserIdentityProviderIdMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateUserMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserResponse>(
this, METHODID_CREATE_USER)))
.addMethod(
getGetUserMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserResponse>(
this, METHODID_GET_USER)))
.addMethod(
getUpdateUserMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserResponse>(
this, METHODID_UPDATE_USER)))
.addMethod(
getDeleteUserMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserResponse>(
this, METHODID_DELETE_USER)))
.addMethod(
getListUsersMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersResponse>(
this, METHODID_LIST_USERS)))
.addMethod(
getGrantUserRightsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsResponse>(
this, METHODID_GRANT_USER_RIGHTS)))
.addMethod(
getRevokeUserRightsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsResponse>(
this, METHODID_REVOKE_USER_RIGHTS)))
.addMethod(
getListUserRightsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsResponse>(
this, METHODID_LIST_USER_RIGHTS)))
.addMethod(
getUpdateUserIdentityProviderIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest,
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderResponse>(
this, METHODID_UPDATE_USER_IDENTITY_PROVIDER_ID)))
.build();
}
}
/**
*
* Service to manage users and their rights for interacting with the Ledger API
* served by a participant node.
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
* messages as boolean expressions over these facts:
* (1) ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
* (2) ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user.
* (3) ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
* of the authenticated user and the user has an IdentityProviderAdmin right.
* If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved.
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
* (1) ``Optional`` denoting the client may leave the field unset when sending a request.
* (2) ``Required`` denoting the client must set the field to a non-default value when sending a request.
* A user resource consists of:
* (1) a set of properties represented by the ``User`` message,
* (2) a set of user rights, where each right is represented by the ``Right`` message.
* A user resource, once it has been created, can be modified.
* In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``.
* In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
*
*/
public static final class UserManagementServiceStub extends io.grpc.stub.AbstractAsyncStub {
private UserManagementServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserManagementServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserManagementServiceStub(channel, callOptions);
}
/**
*
* Create a new user.
*
*/
public void createUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateUserMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get the user data of a specific user or the authenticated user.
*
*/
public void getUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetUserMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update selected modifiable attribute of a user resource described by the ``User`` message.
*
*/
public void updateUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete an existing user and all its rights.
*
*/
public void deleteUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* List all existing users.
*
*/
public void listUsers(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListUsersMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Grant rights to a user.
* Granting rights does not affect the resource version of the corresponding user.
*
*/
public void grantUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGrantUserRightsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Revoke rights from a user.
* Revoking rights does not affect the resource version of the corresponding user.
*
*/
public void revokeUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRevokeUserRightsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* List the set of all rights granted to a user.
*
*/
public void listUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListUserRightsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Update the assignment of a user from one IDP to another.
*
*/
public void updateUserIdentityProviderId(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateUserIdentityProviderIdMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Service to manage users and their rights for interacting with the Ledger API
* served by a participant node.
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
* messages as boolean expressions over these facts:
* (1) ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
* (2) ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user.
* (3) ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
* of the authenticated user and the user has an IdentityProviderAdmin right.
* If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved.
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
* (1) ``Optional`` denoting the client may leave the field unset when sending a request.
* (2) ``Required`` denoting the client must set the field to a non-default value when sending a request.
* A user resource consists of:
* (1) a set of properties represented by the ``User`` message,
* (2) a set of user rights, where each right is represented by the ``Right`` message.
* A user resource, once it has been created, can be modified.
* In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``.
* In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
*
*/
public static final class UserManagementServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private UserManagementServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserManagementServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserManagementServiceBlockingStub(channel, callOptions);
}
/**
*
* Create a new user.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserResponse createUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateUserMethod(), getCallOptions(), request);
}
/**
*
* Get the user data of a specific user or the authenticated user.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserResponse getUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetUserMethod(), getCallOptions(), request);
}
/**
*
* Update selected modifiable attribute of a user resource described by the ``User`` message.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserResponse updateUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateUserMethod(), getCallOptions(), request);
}
/**
*
* Delete an existing user and all its rights.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserResponse deleteUser(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteUserMethod(), getCallOptions(), request);
}
/**
*
* List all existing users.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersResponse listUsers(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListUsersMethod(), getCallOptions(), request);
}
/**
*
* Grant rights to a user.
* Granting rights does not affect the resource version of the corresponding user.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsResponse grantUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGrantUserRightsMethod(), getCallOptions(), request);
}
/**
*
* Revoke rights from a user.
* Revoking rights does not affect the resource version of the corresponding user.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsResponse revokeUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokeUserRightsMethod(), getCallOptions(), request);
}
/**
*
* List the set of all rights granted to a user.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsResponse listUserRights(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListUserRightsMethod(), getCallOptions(), request);
}
/**
*
* Update the assignment of a user from one IDP to another.
*
*/
public com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderResponse updateUserIdentityProviderId(com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateUserIdentityProviderIdMethod(), getCallOptions(), request);
}
}
/**
*
* Service to manage users and their rights for interacting with the Ledger API
* served by a participant node.
* The authorization rules for its RPCs are specified on the ``<RpcName>Request``
* messages as boolean expressions over these facts:
* (1) ``HasRight(r)`` denoting whether the authenticated user has right ``r`` and
* (2) ``IsAuthenticatedUser(uid)`` denoting whether ``uid`` is the empty string or equal to the id of the authenticated user.
* (3) ``IsAuthenticatedIdentityProviderAdmin(idp)`` denoting whether ``idp`` is equal to the ``identity_provider_id``
* of the authenticated user and the user has an IdentityProviderAdmin right.
* If `user_id` is set to the empty string (the default), then the data for the authenticated user will be retrieved.
* If `identity_provider_id` is set to an empty string, then it's effectively set to the value of access token's 'iss' field if that is provided.
* If `identity_provider_id` remains an empty string, the default identity provider will be assumed.
* The fields of request messages (and sub-messages) are marked either as ``Optional`` or ``Required``:
* (1) ``Optional`` denoting the client may leave the field unset when sending a request.
* (2) ``Required`` denoting the client must set the field to a non-default value when sending a request.
* A user resource consists of:
* (1) a set of properties represented by the ``User`` message,
* (2) a set of user rights, where each right is represented by the ``Right`` message.
* A user resource, once it has been created, can be modified.
* In order to update the properties represented by the ``User`` message use the ``UpdateUser`` RPC. The only fields that can be modified are those marked as ``Modifiable``.
* In order to grant or revoke user rights use ``GrantRights' and ``RevokeRights`` RPCs.
*
*/
public static final class UserManagementServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private UserManagementServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UserManagementServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UserManagementServiceFutureStub(channel, callOptions);
}
/**
*
* Create a new user.
*
*/
public com.google.common.util.concurrent.ListenableFuture createUser(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateUserMethod(), getCallOptions()), request);
}
/**
*
* Get the user data of a specific user or the authenticated user.
*
*/
public com.google.common.util.concurrent.ListenableFuture getUser(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetUserMethod(), getCallOptions()), request);
}
/**
*
* Update selected modifiable attribute of a user resource described by the ``User`` message.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateUser(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request);
}
/**
*
* Delete an existing user and all its rights.
*
*/
public com.google.common.util.concurrent.ListenableFuture deleteUser(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request);
}
/**
*
* List all existing users.
*
*/
public com.google.common.util.concurrent.ListenableFuture listUsers(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListUsersMethod(), getCallOptions()), request);
}
/**
*
* Grant rights to a user.
* Granting rights does not affect the resource version of the corresponding user.
*
*/
public com.google.common.util.concurrent.ListenableFuture grantUserRights(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGrantUserRightsMethod(), getCallOptions()), request);
}
/**
*
* Revoke rights from a user.
* Revoking rights does not affect the resource version of the corresponding user.
*
*/
public com.google.common.util.concurrent.ListenableFuture revokeUserRights(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRevokeUserRightsMethod(), getCallOptions()), request);
}
/**
*
* List the set of all rights granted to a user.
*
*/
public com.google.common.util.concurrent.ListenableFuture listUserRights(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListUserRightsMethod(), getCallOptions()), request);
}
/**
*
* Update the assignment of a user from one IDP to another.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateUserIdentityProviderId(
com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateUserIdentityProviderIdMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_USER = 0;
private static final int METHODID_GET_USER = 1;
private static final int METHODID_UPDATE_USER = 2;
private static final int METHODID_DELETE_USER = 3;
private static final int METHODID_LIST_USERS = 4;
private static final int METHODID_GRANT_USER_RIGHTS = 5;
private static final int METHODID_REVOKE_USER_RIGHTS = 6;
private static final int METHODID_LIST_USER_RIGHTS = 7;
private static final int METHODID_UPDATE_USER_IDENTITY_PROVIDER_ID = 8;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final UserManagementServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(UserManagementServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_CREATE_USER:
serviceImpl.createUser((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.CreateUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_USER:
serviceImpl.getUser((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GetUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_USER:
serviceImpl.updateUser((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_USER:
serviceImpl.deleteUser((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.DeleteUserRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_USERS:
serviceImpl.listUsers((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUsersRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GRANT_USER_RIGHTS:
serviceImpl.grantUserRights((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.GrantUserRightsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_USER_RIGHTS:
serviceImpl.revokeUserRights((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.RevokeUserRightsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_USER_RIGHTS:
serviceImpl.listUserRights((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.ListUserRightsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_USER_IDENTITY_PROVIDER_ID:
serviceImpl.updateUserIdentityProviderId((com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.UpdateUserIdentityProviderRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class UserManagementServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
UserManagementServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.daml.ledger.api.v1.admin.UserManagementServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("UserManagementService");
}
}
private static final class UserManagementServiceFileDescriptorSupplier
extends UserManagementServiceBaseDescriptorSupplier {
UserManagementServiceFileDescriptorSupplier() {}
}
private static final class UserManagementServiceMethodDescriptorSupplier
extends UserManagementServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
UserManagementServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (UserManagementServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new UserManagementServiceFileDescriptorSupplier())
.addMethod(getCreateUserMethod())
.addMethod(getGetUserMethod())
.addMethod(getUpdateUserMethod())
.addMethod(getDeleteUserMethod())
.addMethod(getListUsersMethod())
.addMethod(getGrantUserRightsMethod())
.addMethod(getRevokeUserRightsMethod())
.addMethod(getListUserRightsMethod())
.addMethod(getUpdateUserIdentityProviderIdMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy