com.ibm.etcd.api.AuthGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etcd-java Show documentation
Show all versions of etcd-java Show documentation
etcd3 java client and utilities
package com.ibm.etcd.api;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.48.1)",
comments = "Source: rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AuthGrpc {
private AuthGrpc() {}
public static final String SERVICE_NAME = "etcdserverpb.Auth";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getAuthEnableMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AuthEnable",
requestType = com.ibm.etcd.api.AuthEnableRequest.class,
responseType = com.ibm.etcd.api.AuthEnableResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAuthEnableMethod() {
io.grpc.MethodDescriptor getAuthEnableMethod;
if ((getAuthEnableMethod = AuthGrpc.getAuthEnableMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getAuthEnableMethod = AuthGrpc.getAuthEnableMethod) == null) {
AuthGrpc.getAuthEnableMethod = getAuthEnableMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuthEnable"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthEnableRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthEnableResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthEnable"))
.build();
}
}
}
return getAuthEnableMethod;
}
private static volatile io.grpc.MethodDescriptor getAuthDisableMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AuthDisable",
requestType = com.ibm.etcd.api.AuthDisableRequest.class,
responseType = com.ibm.etcd.api.AuthDisableResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAuthDisableMethod() {
io.grpc.MethodDescriptor getAuthDisableMethod;
if ((getAuthDisableMethod = AuthGrpc.getAuthDisableMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getAuthDisableMethod = AuthGrpc.getAuthDisableMethod) == null) {
AuthGrpc.getAuthDisableMethod = getAuthDisableMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuthDisable"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthDisableRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthDisableResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthDisable"))
.build();
}
}
}
return getAuthDisableMethod;
}
private static volatile io.grpc.MethodDescriptor getAuthenticateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Authenticate",
requestType = com.ibm.etcd.api.AuthenticateRequest.class,
responseType = com.ibm.etcd.api.AuthenticateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAuthenticateMethod() {
io.grpc.MethodDescriptor getAuthenticateMethod;
if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) {
AuthGrpc.getAuthenticateMethod = getAuthenticateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Authenticate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthenticateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthenticateResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Authenticate"))
.build();
}
}
}
return getAuthenticateMethod;
}
private static volatile io.grpc.MethodDescriptor getUserAddMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserAdd",
requestType = com.ibm.etcd.api.AuthUserAddRequest.class,
responseType = com.ibm.etcd.api.AuthUserAddResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserAddMethod() {
io.grpc.MethodDescriptor getUserAddMethod;
if ((getUserAddMethod = AuthGrpc.getUserAddMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserAddMethod = AuthGrpc.getUserAddMethod) == null) {
AuthGrpc.getUserAddMethod = getUserAddMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserAdd"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserAddRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserAddResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserAdd"))
.build();
}
}
}
return getUserAddMethod;
}
private static volatile io.grpc.MethodDescriptor getUserGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserGet",
requestType = com.ibm.etcd.api.AuthUserGetRequest.class,
responseType = com.ibm.etcd.api.AuthUserGetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserGetMethod() {
io.grpc.MethodDescriptor getUserGetMethod;
if ((getUserGetMethod = AuthGrpc.getUserGetMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserGetMethod = AuthGrpc.getUserGetMethod) == null) {
AuthGrpc.getUserGetMethod = getUserGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserGet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserGetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserGetResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGet"))
.build();
}
}
}
return getUserGetMethod;
}
private static volatile io.grpc.MethodDescriptor getUserListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserList",
requestType = com.ibm.etcd.api.AuthUserListRequest.class,
responseType = com.ibm.etcd.api.AuthUserListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserListMethod() {
io.grpc.MethodDescriptor getUserListMethod;
if ((getUserListMethod = AuthGrpc.getUserListMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserListMethod = AuthGrpc.getUserListMethod) == null) {
AuthGrpc.getUserListMethod = getUserListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserListResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserList"))
.build();
}
}
}
return getUserListMethod;
}
private static volatile io.grpc.MethodDescriptor getUserDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserDelete",
requestType = com.ibm.etcd.api.AuthUserDeleteRequest.class,
responseType = com.ibm.etcd.api.AuthUserDeleteResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserDeleteMethod() {
io.grpc.MethodDescriptor getUserDeleteMethod;
if ((getUserDeleteMethod = AuthGrpc.getUserDeleteMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserDeleteMethod = AuthGrpc.getUserDeleteMethod) == null) {
AuthGrpc.getUserDeleteMethod = getUserDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserDelete"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserDeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserDeleteResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserDelete"))
.build();
}
}
}
return getUserDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getUserChangePasswordMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserChangePassword",
requestType = com.ibm.etcd.api.AuthUserChangePasswordRequest.class,
responseType = com.ibm.etcd.api.AuthUserChangePasswordResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserChangePasswordMethod() {
io.grpc.MethodDescriptor getUserChangePasswordMethod;
if ((getUserChangePasswordMethod = AuthGrpc.getUserChangePasswordMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserChangePasswordMethod = AuthGrpc.getUserChangePasswordMethod) == null) {
AuthGrpc.getUserChangePasswordMethod = getUserChangePasswordMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserChangePassword"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserChangePasswordRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserChangePasswordResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserChangePassword"))
.build();
}
}
}
return getUserChangePasswordMethod;
}
private static volatile io.grpc.MethodDescriptor getUserGrantRoleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserGrantRole",
requestType = com.ibm.etcd.api.AuthUserGrantRoleRequest.class,
responseType = com.ibm.etcd.api.AuthUserGrantRoleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserGrantRoleMethod() {
io.grpc.MethodDescriptor getUserGrantRoleMethod;
if ((getUserGrantRoleMethod = AuthGrpc.getUserGrantRoleMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserGrantRoleMethod = AuthGrpc.getUserGrantRoleMethod) == null) {
AuthGrpc.getUserGrantRoleMethod = getUserGrantRoleMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserGrantRole"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserGrantRoleRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserGrantRoleResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGrantRole"))
.build();
}
}
}
return getUserGrantRoleMethod;
}
private static volatile io.grpc.MethodDescriptor getUserRevokeRoleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UserRevokeRole",
requestType = com.ibm.etcd.api.AuthUserRevokeRoleRequest.class,
responseType = com.ibm.etcd.api.AuthUserRevokeRoleResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUserRevokeRoleMethod() {
io.grpc.MethodDescriptor getUserRevokeRoleMethod;
if ((getUserRevokeRoleMethod = AuthGrpc.getUserRevokeRoleMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUserRevokeRoleMethod = AuthGrpc.getUserRevokeRoleMethod) == null) {
AuthGrpc.getUserRevokeRoleMethod = getUserRevokeRoleMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserRevokeRole"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserRevokeRoleRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthUserRevokeRoleResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserRevokeRole"))
.build();
}
}
}
return getUserRevokeRoleMethod;
}
private static volatile io.grpc.MethodDescriptor getRoleAddMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RoleAdd",
requestType = com.ibm.etcd.api.AuthRoleAddRequest.class,
responseType = com.ibm.etcd.api.AuthRoleAddResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRoleAddMethod() {
io.grpc.MethodDescriptor getRoleAddMethod;
if ((getRoleAddMethod = AuthGrpc.getRoleAddMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRoleAddMethod = AuthGrpc.getRoleAddMethod) == null) {
AuthGrpc.getRoleAddMethod = getRoleAddMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleAdd"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleAddRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleAddResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleAdd"))
.build();
}
}
}
return getRoleAddMethod;
}
private static volatile io.grpc.MethodDescriptor getRoleGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RoleGet",
requestType = com.ibm.etcd.api.AuthRoleGetRequest.class,
responseType = com.ibm.etcd.api.AuthRoleGetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRoleGetMethod() {
io.grpc.MethodDescriptor getRoleGetMethod;
if ((getRoleGetMethod = AuthGrpc.getRoleGetMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRoleGetMethod = AuthGrpc.getRoleGetMethod) == null) {
AuthGrpc.getRoleGetMethod = getRoleGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleGet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleGetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleGetResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGet"))
.build();
}
}
}
return getRoleGetMethod;
}
private static volatile io.grpc.MethodDescriptor getRoleListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RoleList",
requestType = com.ibm.etcd.api.AuthRoleListRequest.class,
responseType = com.ibm.etcd.api.AuthRoleListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRoleListMethod() {
io.grpc.MethodDescriptor getRoleListMethod;
if ((getRoleListMethod = AuthGrpc.getRoleListMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRoleListMethod = AuthGrpc.getRoleListMethod) == null) {
AuthGrpc.getRoleListMethod = getRoleListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleListResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleList"))
.build();
}
}
}
return getRoleListMethod;
}
private static volatile io.grpc.MethodDescriptor getRoleDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RoleDelete",
requestType = com.ibm.etcd.api.AuthRoleDeleteRequest.class,
responseType = com.ibm.etcd.api.AuthRoleDeleteResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRoleDeleteMethod() {
io.grpc.MethodDescriptor getRoleDeleteMethod;
if ((getRoleDeleteMethod = AuthGrpc.getRoleDeleteMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRoleDeleteMethod = AuthGrpc.getRoleDeleteMethod) == null) {
AuthGrpc.getRoleDeleteMethod = getRoleDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleDelete"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleDeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleDeleteResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleDelete"))
.build();
}
}
}
return getRoleDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getRoleGrantPermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RoleGrantPermission",
requestType = com.ibm.etcd.api.AuthRoleGrantPermissionRequest.class,
responseType = com.ibm.etcd.api.AuthRoleGrantPermissionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRoleGrantPermissionMethod() {
io.grpc.MethodDescriptor getRoleGrantPermissionMethod;
if ((getRoleGrantPermissionMethod = AuthGrpc.getRoleGrantPermissionMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRoleGrantPermissionMethod = AuthGrpc.getRoleGrantPermissionMethod) == null) {
AuthGrpc.getRoleGrantPermissionMethod = getRoleGrantPermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleGrantPermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleGrantPermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleGrantPermissionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGrantPermission"))
.build();
}
}
}
return getRoleGrantPermissionMethod;
}
private static volatile io.grpc.MethodDescriptor getRoleRevokePermissionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RoleRevokePermission",
requestType = com.ibm.etcd.api.AuthRoleRevokePermissionRequest.class,
responseType = com.ibm.etcd.api.AuthRoleRevokePermissionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRoleRevokePermissionMethod() {
io.grpc.MethodDescriptor getRoleRevokePermissionMethod;
if ((getRoleRevokePermissionMethod = AuthGrpc.getRoleRevokePermissionMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRoleRevokePermissionMethod = AuthGrpc.getRoleRevokePermissionMethod) == null) {
AuthGrpc.getRoleRevokePermissionMethod = getRoleRevokePermissionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleRevokePermission"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleRevokePermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.ibm.etcd.api.AuthRoleRevokePermissionResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleRevokePermission"))
.build();
}
}
}
return getRoleRevokePermissionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AuthStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AuthStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthStub(channel, callOptions);
}
};
return AuthStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AuthBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AuthBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthBlockingStub(channel, callOptions);
}
};
return AuthBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuthFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AuthFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthFutureStub(channel, callOptions);
}
};
return AuthFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class AuthImplBase implements io.grpc.BindableService {
/**
*
* AuthEnable enables authentication.
*
*/
public void authEnable(com.ibm.etcd.api.AuthEnableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthEnableMethod(), responseObserver);
}
/**
*
* AuthDisable disables authentication.
*
*/
public void authDisable(com.ibm.etcd.api.AuthDisableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthDisableMethod(), responseObserver);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
public void authenticate(com.ibm.etcd.api.AuthenticateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthenticateMethod(), responseObserver);
}
/**
*
* UserAdd adds a new user.
*
*/
public void userAdd(com.ibm.etcd.api.AuthUserAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserAddMethod(), responseObserver);
}
/**
*
* UserGet gets detailed user information.
*
*/
public void userGet(com.ibm.etcd.api.AuthUserGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGetMethod(), responseObserver);
}
/**
*
* UserList gets a list of all users.
*
*/
public void userList(com.ibm.etcd.api.AuthUserListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserListMethod(), responseObserver);
}
/**
*
* UserDelete deletes a specified user.
*
*/
public void userDelete(com.ibm.etcd.api.AuthUserDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserDeleteMethod(), responseObserver);
}
/**
*
* UserChangePassword changes the password of a specified user.
*
*/
public void userChangePassword(com.ibm.etcd.api.AuthUserChangePasswordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserChangePasswordMethod(), responseObserver);
}
/**
*
* UserGrant grants a role to a specified user.
*
*/
public void userGrantRole(com.ibm.etcd.api.AuthUserGrantRoleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGrantRoleMethod(), responseObserver);
}
/**
*
* UserRevokeRole revokes a role of specified user.
*
*/
public void userRevokeRole(com.ibm.etcd.api.AuthUserRevokeRoleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserRevokeRoleMethod(), responseObserver);
}
/**
*
* RoleAdd adds a new role.
*
*/
public void roleAdd(com.ibm.etcd.api.AuthRoleAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleAddMethod(), responseObserver);
}
/**
*
* RoleGet gets detailed role information.
*
*/
public void roleGet(com.ibm.etcd.api.AuthRoleGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGetMethod(), responseObserver);
}
/**
*
* RoleList gets lists of all roles.
*
*/
public void roleList(com.ibm.etcd.api.AuthRoleListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleListMethod(), responseObserver);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
public void roleDelete(com.ibm.etcd.api.AuthRoleDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleDeleteMethod(), responseObserver);
}
/**
*
* RoleGrantPermission grants a permission of a specified key or range to a specified role.
*
*/
public void roleGrantPermission(com.ibm.etcd.api.AuthRoleGrantPermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGrantPermissionMethod(), responseObserver);
}
/**
*
* RoleRevokePermission revokes a key or range permission of a specified role.
*
*/
public void roleRevokePermission(com.ibm.etcd.api.AuthRoleRevokePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleRevokePermissionMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getAuthEnableMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthEnableRequest,
com.ibm.etcd.api.AuthEnableResponse>(
this, METHODID_AUTH_ENABLE)))
.addMethod(
getAuthDisableMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthDisableRequest,
com.ibm.etcd.api.AuthDisableResponse>(
this, METHODID_AUTH_DISABLE)))
.addMethod(
getAuthenticateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthenticateRequest,
com.ibm.etcd.api.AuthenticateResponse>(
this, METHODID_AUTHENTICATE)))
.addMethod(
getUserAddMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserAddRequest,
com.ibm.etcd.api.AuthUserAddResponse>(
this, METHODID_USER_ADD)))
.addMethod(
getUserGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserGetRequest,
com.ibm.etcd.api.AuthUserGetResponse>(
this, METHODID_USER_GET)))
.addMethod(
getUserListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserListRequest,
com.ibm.etcd.api.AuthUserListResponse>(
this, METHODID_USER_LIST)))
.addMethod(
getUserDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserDeleteRequest,
com.ibm.etcd.api.AuthUserDeleteResponse>(
this, METHODID_USER_DELETE)))
.addMethod(
getUserChangePasswordMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserChangePasswordRequest,
com.ibm.etcd.api.AuthUserChangePasswordResponse>(
this, METHODID_USER_CHANGE_PASSWORD)))
.addMethod(
getUserGrantRoleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserGrantRoleRequest,
com.ibm.etcd.api.AuthUserGrantRoleResponse>(
this, METHODID_USER_GRANT_ROLE)))
.addMethod(
getUserRevokeRoleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthUserRevokeRoleRequest,
com.ibm.etcd.api.AuthUserRevokeRoleResponse>(
this, METHODID_USER_REVOKE_ROLE)))
.addMethod(
getRoleAddMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthRoleAddRequest,
com.ibm.etcd.api.AuthRoleAddResponse>(
this, METHODID_ROLE_ADD)))
.addMethod(
getRoleGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthRoleGetRequest,
com.ibm.etcd.api.AuthRoleGetResponse>(
this, METHODID_ROLE_GET)))
.addMethod(
getRoleListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthRoleListRequest,
com.ibm.etcd.api.AuthRoleListResponse>(
this, METHODID_ROLE_LIST)))
.addMethod(
getRoleDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthRoleDeleteRequest,
com.ibm.etcd.api.AuthRoleDeleteResponse>(
this, METHODID_ROLE_DELETE)))
.addMethod(
getRoleGrantPermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthRoleGrantPermissionRequest,
com.ibm.etcd.api.AuthRoleGrantPermissionResponse>(
this, METHODID_ROLE_GRANT_PERMISSION)))
.addMethod(
getRoleRevokePermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.ibm.etcd.api.AuthRoleRevokePermissionRequest,
com.ibm.etcd.api.AuthRoleRevokePermissionResponse>(
this, METHODID_ROLE_REVOKE_PERMISSION)))
.build();
}
}
/**
*/
public static final class AuthStub extends io.grpc.stub.AbstractAsyncStub {
private AuthStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthStub(channel, callOptions);
}
/**
*
* AuthEnable enables authentication.
*
*/
public void authEnable(com.ibm.etcd.api.AuthEnableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* AuthDisable disables authentication.
*
*/
public void authDisable(com.ibm.etcd.api.AuthDisableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAuthDisableMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
public void authenticate(com.ibm.etcd.api.AuthenticateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserAdd adds a new user.
*
*/
public void userAdd(com.ibm.etcd.api.AuthUserAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserAddMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserGet gets detailed user information.
*
*/
public void userGet(com.ibm.etcd.api.AuthUserGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserList gets a list of all users.
*
*/
public void userList(com.ibm.etcd.api.AuthUserListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserDelete deletes a specified user.
*
*/
public void userDelete(com.ibm.etcd.api.AuthUserDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserChangePassword changes the password of a specified user.
*
*/
public void userChangePassword(com.ibm.etcd.api.AuthUserChangePasswordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserChangePasswordMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserGrant grants a role to a specified user.
*
*/
public void userGrantRole(com.ibm.etcd.api.AuthUserGrantRoleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserGrantRoleMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* UserRevokeRole revokes a role of specified user.
*
*/
public void userRevokeRole(com.ibm.etcd.api.AuthUserRevokeRoleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUserRevokeRoleMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* RoleAdd adds a new role.
*
*/
public void roleAdd(com.ibm.etcd.api.AuthRoleAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleAddMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* RoleGet gets detailed role information.
*
*/
public void roleGet(com.ibm.etcd.api.AuthRoleGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* RoleList gets lists of all roles.
*
*/
public void roleList(com.ibm.etcd.api.AuthRoleListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
public void roleDelete(com.ibm.etcd.api.AuthRoleDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* RoleGrantPermission grants a permission of a specified key or range to a specified role.
*
*/
public void roleGrantPermission(com.ibm.etcd.api.AuthRoleGrantPermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleGrantPermissionMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* RoleRevokePermission revokes a key or range permission of a specified role.
*
*/
public void roleRevokePermission(com.ibm.etcd.api.AuthRoleRevokePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class AuthBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private AuthBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthBlockingStub(channel, callOptions);
}
/**
*
* AuthEnable enables authentication.
*
*/
public com.ibm.etcd.api.AuthEnableResponse authEnable(com.ibm.etcd.api.AuthEnableRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAuthEnableMethod(), getCallOptions(), request);
}
/**
*
* AuthDisable disables authentication.
*
*/
public com.ibm.etcd.api.AuthDisableResponse authDisable(com.ibm.etcd.api.AuthDisableRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAuthDisableMethod(), getCallOptions(), request);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
public com.ibm.etcd.api.AuthenticateResponse authenticate(com.ibm.etcd.api.AuthenticateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAuthenticateMethod(), getCallOptions(), request);
}
/**
*
* UserAdd adds a new user.
*
*/
public com.ibm.etcd.api.AuthUserAddResponse userAdd(com.ibm.etcd.api.AuthUserAddRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserAddMethod(), getCallOptions(), request);
}
/**
*
* UserGet gets detailed user information.
*
*/
public com.ibm.etcd.api.AuthUserGetResponse userGet(com.ibm.etcd.api.AuthUserGetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserGetMethod(), getCallOptions(), request);
}
/**
*
* UserList gets a list of all users.
*
*/
public com.ibm.etcd.api.AuthUserListResponse userList(com.ibm.etcd.api.AuthUserListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserListMethod(), getCallOptions(), request);
}
/**
*
* UserDelete deletes a specified user.
*
*/
public com.ibm.etcd.api.AuthUserDeleteResponse userDelete(com.ibm.etcd.api.AuthUserDeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserDeleteMethod(), getCallOptions(), request);
}
/**
*
* UserChangePassword changes the password of a specified user.
*
*/
public com.ibm.etcd.api.AuthUserChangePasswordResponse userChangePassword(com.ibm.etcd.api.AuthUserChangePasswordRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserChangePasswordMethod(), getCallOptions(), request);
}
/**
*
* UserGrant grants a role to a specified user.
*
*/
public com.ibm.etcd.api.AuthUserGrantRoleResponse userGrantRole(com.ibm.etcd.api.AuthUserGrantRoleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserGrantRoleMethod(), getCallOptions(), request);
}
/**
*
* UserRevokeRole revokes a role of specified user.
*
*/
public com.ibm.etcd.api.AuthUserRevokeRoleResponse userRevokeRole(com.ibm.etcd.api.AuthUserRevokeRoleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserRevokeRoleMethod(), getCallOptions(), request);
}
/**
*
* RoleAdd adds a new role.
*
*/
public com.ibm.etcd.api.AuthRoleAddResponse roleAdd(com.ibm.etcd.api.AuthRoleAddRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleAddMethod(), getCallOptions(), request);
}
/**
*
* RoleGet gets detailed role information.
*
*/
public com.ibm.etcd.api.AuthRoleGetResponse roleGet(com.ibm.etcd.api.AuthRoleGetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleGetMethod(), getCallOptions(), request);
}
/**
*
* RoleList gets lists of all roles.
*
*/
public com.ibm.etcd.api.AuthRoleListResponse roleList(com.ibm.etcd.api.AuthRoleListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleListMethod(), getCallOptions(), request);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
public com.ibm.etcd.api.AuthRoleDeleteResponse roleDelete(com.ibm.etcd.api.AuthRoleDeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleDeleteMethod(), getCallOptions(), request);
}
/**
*
* RoleGrantPermission grants a permission of a specified key or range to a specified role.
*
*/
public com.ibm.etcd.api.AuthRoleGrantPermissionResponse roleGrantPermission(com.ibm.etcd.api.AuthRoleGrantPermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleGrantPermissionMethod(), getCallOptions(), request);
}
/**
*
* RoleRevokePermission revokes a key or range permission of a specified role.
*
*/
public com.ibm.etcd.api.AuthRoleRevokePermissionResponse roleRevokePermission(com.ibm.etcd.api.AuthRoleRevokePermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleRevokePermissionMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class AuthFutureStub extends io.grpc.stub.AbstractFutureStub {
private AuthFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AuthFutureStub(channel, callOptions);
}
/**
*
* AuthEnable enables authentication.
*
*/
public com.google.common.util.concurrent.ListenableFuture authEnable(
com.ibm.etcd.api.AuthEnableRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request);
}
/**
*
* AuthDisable disables authentication.
*
*/
public com.google.common.util.concurrent.ListenableFuture authDisable(
com.ibm.etcd.api.AuthDisableRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAuthDisableMethod(), getCallOptions()), request);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
public com.google.common.util.concurrent.ListenableFuture authenticate(
com.ibm.etcd.api.AuthenticateRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request);
}
/**
*
* UserAdd adds a new user.
*
*/
public com.google.common.util.concurrent.ListenableFuture userAdd(
com.ibm.etcd.api.AuthUserAddRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserAddMethod(), getCallOptions()), request);
}
/**
*
* UserGet gets detailed user information.
*
*/
public com.google.common.util.concurrent.ListenableFuture userGet(
com.ibm.etcd.api.AuthUserGetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserGetMethod(), getCallOptions()), request);
}
/**
*
* UserList gets a list of all users.
*
*/
public com.google.common.util.concurrent.ListenableFuture userList(
com.ibm.etcd.api.AuthUserListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserListMethod(), getCallOptions()), request);
}
/**
*
* UserDelete deletes a specified user.
*
*/
public com.google.common.util.concurrent.ListenableFuture userDelete(
com.ibm.etcd.api.AuthUserDeleteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserDeleteMethod(), getCallOptions()), request);
}
/**
*
* UserChangePassword changes the password of a specified user.
*
*/
public com.google.common.util.concurrent.ListenableFuture userChangePassword(
com.ibm.etcd.api.AuthUserChangePasswordRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserChangePasswordMethod(), getCallOptions()), request);
}
/**
*
* UserGrant grants a role to a specified user.
*
*/
public com.google.common.util.concurrent.ListenableFuture userGrantRole(
com.ibm.etcd.api.AuthUserGrantRoleRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserGrantRoleMethod(), getCallOptions()), request);
}
/**
*
* UserRevokeRole revokes a role of specified user.
*
*/
public com.google.common.util.concurrent.ListenableFuture userRevokeRole(
com.ibm.etcd.api.AuthUserRevokeRoleRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUserRevokeRoleMethod(), getCallOptions()), request);
}
/**
*
* RoleAdd adds a new role.
*
*/
public com.google.common.util.concurrent.ListenableFuture roleAdd(
com.ibm.etcd.api.AuthRoleAddRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRoleAddMethod(), getCallOptions()), request);
}
/**
*
* RoleGet gets detailed role information.
*
*/
public com.google.common.util.concurrent.ListenableFuture roleGet(
com.ibm.etcd.api.AuthRoleGetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRoleGetMethod(), getCallOptions()), request);
}
/**
*
* RoleList gets lists of all roles.
*
*/
public com.google.common.util.concurrent.ListenableFuture roleList(
com.ibm.etcd.api.AuthRoleListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRoleListMethod(), getCallOptions()), request);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
public com.google.common.util.concurrent.ListenableFuture roleDelete(
com.ibm.etcd.api.AuthRoleDeleteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRoleDeleteMethod(), getCallOptions()), request);
}
/**
*
* RoleGrantPermission grants a permission of a specified key or range to a specified role.
*
*/
public com.google.common.util.concurrent.ListenableFuture roleGrantPermission(
com.ibm.etcd.api.AuthRoleGrantPermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRoleGrantPermissionMethod(), getCallOptions()), request);
}
/**
*
* RoleRevokePermission revokes a key or range permission of a specified role.
*
*/
public com.google.common.util.concurrent.ListenableFuture roleRevokePermission(
com.ibm.etcd.api.AuthRoleRevokePermissionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_AUTH_ENABLE = 0;
private static final int METHODID_AUTH_DISABLE = 1;
private static final int METHODID_AUTHENTICATE = 2;
private static final int METHODID_USER_ADD = 3;
private static final int METHODID_USER_GET = 4;
private static final int METHODID_USER_LIST = 5;
private static final int METHODID_USER_DELETE = 6;
private static final int METHODID_USER_CHANGE_PASSWORD = 7;
private static final int METHODID_USER_GRANT_ROLE = 8;
private static final int METHODID_USER_REVOKE_ROLE = 9;
private static final int METHODID_ROLE_ADD = 10;
private static final int METHODID_ROLE_GET = 11;
private static final int METHODID_ROLE_LIST = 12;
private static final int METHODID_ROLE_DELETE = 13;
private static final int METHODID_ROLE_GRANT_PERMISSION = 14;
private static final int METHODID_ROLE_REVOKE_PERMISSION = 15;
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 AuthImplBase serviceImpl;
private final int methodId;
MethodHandlers(AuthImplBase 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_AUTH_ENABLE:
serviceImpl.authEnable((com.ibm.etcd.api.AuthEnableRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_AUTH_DISABLE:
serviceImpl.authDisable((com.ibm.etcd.api.AuthDisableRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_AUTHENTICATE:
serviceImpl.authenticate((com.ibm.etcd.api.AuthenticateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_ADD:
serviceImpl.userAdd((com.ibm.etcd.api.AuthUserAddRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_GET:
serviceImpl.userGet((com.ibm.etcd.api.AuthUserGetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_LIST:
serviceImpl.userList((com.ibm.etcd.api.AuthUserListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_DELETE:
serviceImpl.userDelete((com.ibm.etcd.api.AuthUserDeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_CHANGE_PASSWORD:
serviceImpl.userChangePassword((com.ibm.etcd.api.AuthUserChangePasswordRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_GRANT_ROLE:
serviceImpl.userGrantRole((com.ibm.etcd.api.AuthUserGrantRoleRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_REVOKE_ROLE:
serviceImpl.userRevokeRole((com.ibm.etcd.api.AuthUserRevokeRoleRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_ADD:
serviceImpl.roleAdd((com.ibm.etcd.api.AuthRoleAddRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_GET:
serviceImpl.roleGet((com.ibm.etcd.api.AuthRoleGetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_LIST:
serviceImpl.roleList((com.ibm.etcd.api.AuthRoleListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_DELETE:
serviceImpl.roleDelete((com.ibm.etcd.api.AuthRoleDeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_GRANT_PERMISSION:
serviceImpl.roleGrantPermission((com.ibm.etcd.api.AuthRoleGrantPermissionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_REVOKE_PERMISSION:
serviceImpl.roleRevokePermission((com.ibm.etcd.api.AuthRoleRevokePermissionRequest) 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 AuthBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AuthBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.ibm.etcd.api.Rpc.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Auth");
}
}
private static final class AuthFileDescriptorSupplier
extends AuthBaseDescriptorSupplier {
AuthFileDescriptorSupplier() {}
}
private static final class AuthMethodDescriptorSupplier
extends AuthBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AuthMethodDescriptorSupplier(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 (AuthGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AuthFileDescriptorSupplier())
.addMethod(getAuthEnableMethod())
.addMethod(getAuthDisableMethod())
.addMethod(getAuthenticateMethod())
.addMethod(getUserAddMethod())
.addMethod(getUserGetMethod())
.addMethod(getUserListMethod())
.addMethod(getUserDeleteMethod())
.addMethod(getUserChangePasswordMethod())
.addMethod(getUserGrantRoleMethod())
.addMethod(getUserRevokeRoleMethod())
.addMethod(getRoleAddMethod())
.addMethod(getRoleGetMethod())
.addMethod(getRoleListMethod())
.addMethod(getRoleDeleteMethod())
.addMethod(getRoleGrantPermissionMethod())
.addMethod(getRoleRevokePermissionMethod())
.build();
}
}
}
return result;
}
}