Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
protobuf.grpc-java.io.helidon.config.etcd.internal.client.proto.AuthGrpc Maven / Gradle / Ivy
package io.helidon.config.etcd.internal.client.proto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.60.0)",
comments = "Source: rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AuthGrpc {
private AuthGrpc() {}
public static final java.lang.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 = io.helidon.config.etcd.internal.client.proto.AuthEnableRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthEnableRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthDisableRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthDisableRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthenticateRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthenticateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserListRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 = io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.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 interface AsyncService {
/**
*
* AuthEnable enables authentication.
*
*/
default void authEnable(io.helidon.config.etcd.internal.client.proto.AuthEnableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthEnableMethod(), responseObserver);
}
/**
*
* AuthDisable disables authentication.
*
*/
default void authDisable(io.helidon.config.etcd.internal.client.proto.AuthDisableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthDisableMethod(), responseObserver);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
default void authenticate(io.helidon.config.etcd.internal.client.proto.AuthenticateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthenticateMethod(), responseObserver);
}
/**
*
* UserAdd adds a new user.
*
*/
default void userAdd(io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserAddMethod(), responseObserver);
}
/**
*
* UserGet gets detailed user information.
*
*/
default void userGet(io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGetMethod(), responseObserver);
}
/**
*
* UserList gets a list of all users.
*
*/
default void userList(io.helidon.config.etcd.internal.client.proto.AuthUserListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserListMethod(), responseObserver);
}
/**
*
* UserDelete deletes a specified user.
*
*/
default void userDelete(io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserDeleteMethod(), responseObserver);
}
/**
*
* UserChangePassword changes the password of a specified user.
*
*/
default void userChangePassword(io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserChangePasswordMethod(), responseObserver);
}
/**
*
* UserGrant grants a role to a specified user.
*
*/
default void userGrantRole(io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGrantRoleMethod(), responseObserver);
}
/**
*
* UserRevokeRole revokes a role of specified user.
*
*/
default void userRevokeRole(io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserRevokeRoleMethod(), responseObserver);
}
/**
*
* RoleAdd adds a new role.
*
*/
default void roleAdd(io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleAddMethod(), responseObserver);
}
/**
*
* RoleGet gets detailed role information.
*
*/
default void roleGet(io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGetMethod(), responseObserver);
}
/**
*
* RoleList gets lists of all roles.
*
*/
default void roleList(io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleListMethod(), responseObserver);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
default void roleDelete(io.helidon.config.etcd.internal.client.proto.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.
*
*/
default void roleGrantPermission(io.helidon.config.etcd.internal.client.proto.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.
*
*/
default void roleRevokePermission(io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleRevokePermissionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Auth.
*/
public static abstract class AuthImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AuthGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Auth.
*/
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(io.helidon.config.etcd.internal.client.proto.AuthEnableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* AuthDisable disables authentication.
*
*/
public void authDisable(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.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(io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Auth.
*/
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 io.helidon.config.etcd.internal.client.proto.AuthEnableResponse authEnable(io.helidon.config.etcd.internal.client.proto.AuthEnableRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAuthEnableMethod(), getCallOptions(), request);
}
/**
*
* AuthDisable disables authentication.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthDisableResponse authDisable(io.helidon.config.etcd.internal.client.proto.AuthDisableRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAuthDisableMethod(), getCallOptions(), request);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthenticateResponse authenticate(io.helidon.config.etcd.internal.client.proto.AuthenticateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAuthenticateMethod(), getCallOptions(), request);
}
/**
*
* UserAdd adds a new user.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserAddResponse userAdd(io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserAddMethod(), getCallOptions(), request);
}
/**
*
* UserGet gets detailed user information.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserGetResponse userGet(io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserGetMethod(), getCallOptions(), request);
}
/**
*
* UserList gets a list of all users.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserListResponse userList(io.helidon.config.etcd.internal.client.proto.AuthUserListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserListMethod(), getCallOptions(), request);
}
/**
*
* UserDelete deletes a specified user.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserDeleteResponse userDelete(io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserDeleteMethod(), getCallOptions(), request);
}
/**
*
* UserChangePassword changes the password of a specified user.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordResponse userChangePassword(io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserChangePasswordMethod(), getCallOptions(), request);
}
/**
*
* UserGrant grants a role to a specified user.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleResponse userGrantRole(io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserGrantRoleMethod(), getCallOptions(), request);
}
/**
*
* UserRevokeRole revokes a role of specified user.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleResponse userRevokeRole(io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUserRevokeRoleMethod(), getCallOptions(), request);
}
/**
*
* RoleAdd adds a new role.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthRoleAddResponse roleAdd(io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleAddMethod(), getCallOptions(), request);
}
/**
*
* RoleGet gets detailed role information.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthRoleGetResponse roleGet(io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleGetMethod(), getCallOptions(), request);
}
/**
*
* RoleList gets lists of all roles.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthRoleListResponse roleList(io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleListMethod(), getCallOptions(), request);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteResponse roleDelete(io.helidon.config.etcd.internal.client.proto.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 io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionResponse roleGrantPermission(io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleGrantPermissionMethod(), getCallOptions(), request);
}
/**
*
* RoleRevokePermission revokes a key or range permission of a specified role.
*
*/
public io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionResponse roleRevokePermission(io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRoleRevokePermissionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Auth.
*/
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(
io.helidon.config.etcd.internal.client.proto.AuthEnableRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request);
}
/**
*
* AuthDisable disables authentication.
*
*/
public com.google.common.util.concurrent.ListenableFuture authDisable(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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(
io.helidon.config.etcd.internal.client.proto.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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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((io.helidon.config.etcd.internal.client.proto.AuthEnableRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_AUTH_DISABLE:
serviceImpl.authDisable((io.helidon.config.etcd.internal.client.proto.AuthDisableRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_AUTHENTICATE:
serviceImpl.authenticate((io.helidon.config.etcd.internal.client.proto.AuthenticateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_ADD:
serviceImpl.userAdd((io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_GET:
serviceImpl.userGet((io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_LIST:
serviceImpl.userList((io.helidon.config.etcd.internal.client.proto.AuthUserListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_DELETE:
serviceImpl.userDelete((io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_CHANGE_PASSWORD:
serviceImpl.userChangePassword((io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_GRANT_ROLE:
serviceImpl.userGrantRole((io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_USER_REVOKE_ROLE:
serviceImpl.userRevokeRole((io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_ADD:
serviceImpl.roleAdd((io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_GET:
serviceImpl.roleGet((io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_LIST:
serviceImpl.roleList((io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_DELETE:
serviceImpl.roleDelete((io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_GRANT_PERMISSION:
serviceImpl.roleGrantPermission((io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROLE_REVOKE_PERMISSION:
serviceImpl.roleRevokePermission((io.helidon.config.etcd.internal.client.proto.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();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getAuthEnableMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthEnableRequest,
io.helidon.config.etcd.internal.client.proto.AuthEnableResponse>(
service, METHODID_AUTH_ENABLE)))
.addMethod(
getAuthDisableMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthDisableRequest,
io.helidon.config.etcd.internal.client.proto.AuthDisableResponse>(
service, METHODID_AUTH_DISABLE)))
.addMethod(
getAuthenticateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthenticateRequest,
io.helidon.config.etcd.internal.client.proto.AuthenticateResponse>(
service, METHODID_AUTHENTICATE)))
.addMethod(
getUserAddMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserAddResponse>(
service, METHODID_USER_ADD)))
.addMethod(
getUserGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserGetResponse>(
service, METHODID_USER_GET)))
.addMethod(
getUserListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserListRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserListResponse>(
service, METHODID_USER_LIST)))
.addMethod(
getUserDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserDeleteResponse>(
service, METHODID_USER_DELETE)))
.addMethod(
getUserChangePasswordMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordResponse>(
service, METHODID_USER_CHANGE_PASSWORD)))
.addMethod(
getUserGrantRoleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleResponse>(
service, METHODID_USER_GRANT_ROLE)))
.addMethod(
getUserRevokeRoleMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleResponse>(
service, METHODID_USER_REVOKE_ROLE)))
.addMethod(
getRoleAddMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleAddResponse>(
service, METHODID_ROLE_ADD)))
.addMethod(
getRoleGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleGetResponse>(
service, METHODID_ROLE_GET)))
.addMethod(
getRoleListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleListResponse>(
service, METHODID_ROLE_LIST)))
.addMethod(
getRoleDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteResponse>(
service, METHODID_ROLE_DELETE)))
.addMethod(
getRoleGrantPermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionResponse>(
service, METHODID_ROLE_GRANT_PERMISSION)))
.addMethod(
getRoleRevokePermissionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionResponse>(
service, METHODID_ROLE_REVOKE_PERMISSION)))
.build();
}
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 io.helidon.config.etcd.internal.client.proto.EtcdProto.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 java.lang.String methodName;
AuthMethodDescriptorSupplier(java.lang.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;
}
}