protobuf.grpc-java.io.helidon.config.etcd.internal.client.proto.AuthGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of helidon-config-etcd Show documentation
Show all versions of helidon-config-etcd Show documentation
etcd config source implementation.
package io.helidon.config.etcd.internal.client.proto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.11.0)",
comments = "Source: rpc.proto")
public final class AuthGrpc {
private AuthGrpc() {}
public static final String SERVICE_NAME = "etcdserverpb.Auth";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getAuthEnableMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_AUTH_ENABLE = getAuthEnableMethodHelper();
private static volatile io.grpc.MethodDescriptor getAuthEnableMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getAuthEnableMethod() {
return getAuthEnableMethodHelper();
}
private static io.grpc.MethodDescriptor getAuthEnableMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getAuthDisableMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_AUTH_DISABLE = getAuthDisableMethodHelper();
private static volatile io.grpc.MethodDescriptor getAuthDisableMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getAuthDisableMethod() {
return getAuthDisableMethodHelper();
}
private static io.grpc.MethodDescriptor getAuthDisableMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getAuthenticateMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_AUTHENTICATE = getAuthenticateMethodHelper();
private static volatile io.grpc.MethodDescriptor getAuthenticateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getAuthenticateMethod() {
return getAuthenticateMethodHelper();
}
private static io.grpc.MethodDescriptor getAuthenticateMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserAddMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_ADD = getUserAddMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserAddMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserAddMethod() {
return getUserAddMethodHelper();
}
private static io.grpc.MethodDescriptor getUserAddMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserGetMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_GET = getUserGetMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserGetMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserGetMethod() {
return getUserGetMethodHelper();
}
private static io.grpc.MethodDescriptor getUserGetMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserListMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_LIST = getUserListMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserListMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserListMethod() {
return getUserListMethodHelper();
}
private static io.grpc.MethodDescriptor getUserListMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserDeleteMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_DELETE = getUserDeleteMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserDeleteMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserDeleteMethod() {
return getUserDeleteMethodHelper();
}
private static io.grpc.MethodDescriptor getUserDeleteMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserChangePasswordMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_CHANGE_PASSWORD = getUserChangePasswordMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserChangePasswordMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserChangePasswordMethod() {
return getUserChangePasswordMethodHelper();
}
private static io.grpc.MethodDescriptor getUserChangePasswordMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserGrantRoleMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_GRANT_ROLE = getUserGrantRoleMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserGrantRoleMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserGrantRoleMethod() {
return getUserGrantRoleMethodHelper();
}
private static io.grpc.MethodDescriptor getUserGrantRoleMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUserRevokeRoleMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_USER_REVOKE_ROLE = getUserRevokeRoleMethodHelper();
private static volatile io.grpc.MethodDescriptor getUserRevokeRoleMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getUserRevokeRoleMethod() {
return getUserRevokeRoleMethodHelper();
}
private static io.grpc.MethodDescriptor getUserRevokeRoleMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRoleAddMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_ROLE_ADD = getRoleAddMethodHelper();
private static volatile io.grpc.MethodDescriptor getRoleAddMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getRoleAddMethod() {
return getRoleAddMethodHelper();
}
private static io.grpc.MethodDescriptor getRoleAddMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRoleGetMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_ROLE_GET = getRoleGetMethodHelper();
private static volatile io.grpc.MethodDescriptor getRoleGetMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getRoleGetMethod() {
return getRoleGetMethodHelper();
}
private static io.grpc.MethodDescriptor getRoleGetMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRoleListMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_ROLE_LIST = getRoleListMethodHelper();
private static volatile io.grpc.MethodDescriptor getRoleListMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getRoleListMethod() {
return getRoleListMethodHelper();
}
private static io.grpc.MethodDescriptor getRoleListMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRoleDeleteMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_ROLE_DELETE = getRoleDeleteMethodHelper();
private static volatile io.grpc.MethodDescriptor getRoleDeleteMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getRoleDeleteMethod() {
return getRoleDeleteMethodHelper();
}
private static io.grpc.MethodDescriptor getRoleDeleteMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRoleGrantPermissionMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_ROLE_GRANT_PERMISSION = getRoleGrantPermissionMethodHelper();
private static volatile io.grpc.MethodDescriptor getRoleGrantPermissionMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getRoleGrantPermissionMethod() {
return getRoleGrantPermissionMethodHelper();
}
private static io.grpc.MethodDescriptor getRoleGrantPermissionMethodHelper() {
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(
"etcdserverpb.Auth", "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;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRoleRevokePermissionMethod()} instead.
public static final io.grpc.MethodDescriptor METHOD_ROLE_REVOKE_PERMISSION = getRoleRevokePermissionMethodHelper();
private static volatile io.grpc.MethodDescriptor getRoleRevokePermissionMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor getRoleRevokePermissionMethod() {
return getRoleRevokePermissionMethodHelper();
}
private static io.grpc.MethodDescriptor getRoleRevokePermissionMethodHelper() {
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(
"etcdserverpb.Auth", "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) {
return new AuthStub(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) {
return new AuthBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuthFutureStub newFutureStub(
io.grpc.Channel channel) {
return new AuthFutureStub(channel);
}
/**
*/
public static abstract class AuthImplBase implements io.grpc.BindableService {
/**
*
* AuthEnable enables authentication.
*
*/
public void authEnable(io.helidon.config.etcd.internal.client.proto.AuthEnableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAuthEnableMethodHelper(), responseObserver);
}
/**
*
* AuthDisable disables authentication.
*
*/
public void authDisable(io.helidon.config.etcd.internal.client.proto.AuthDisableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAuthDisableMethodHelper(), responseObserver);
}
/**
*
* Authenticate processes an authenticate request.
*
*/
public void authenticate(io.helidon.config.etcd.internal.client.proto.AuthenticateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAuthenticateMethodHelper(), responseObserver);
}
/**
*
* UserAdd adds a new user.
*
*/
public void userAdd(io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUserAddMethodHelper(), responseObserver);
}
/**
*
* UserGet gets detailed user information.
*
*/
public void userGet(io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUserGetMethodHelper(), 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) {
asyncUnimplementedUnaryCall(getUserListMethodHelper(), responseObserver);
}
/**
*
* UserDelete deletes a specified user.
*
*/
public void userDelete(io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUserDeleteMethodHelper(), 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) {
asyncUnimplementedUnaryCall(getUserChangePasswordMethodHelper(), 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) {
asyncUnimplementedUnaryCall(getUserGrantRoleMethodHelper(), 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) {
asyncUnimplementedUnaryCall(getUserRevokeRoleMethodHelper(), responseObserver);
}
/**
*
* RoleAdd adds a new role.
*
*/
public void roleAdd(io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getRoleAddMethodHelper(), responseObserver);
}
/**
*
* RoleGet gets detailed role information.
*
*/
public void roleGet(io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getRoleGetMethodHelper(), responseObserver);
}
/**
*
* RoleList gets lists of all roles.
*
*/
public void roleList(io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getRoleListMethodHelper(), responseObserver);
}
/**
*
* RoleDelete deletes a specified role.
*
*/
public void roleDelete(io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getRoleDeleteMethodHelper(), 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) {
asyncUnimplementedUnaryCall(getRoleGrantPermissionMethodHelper(), 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) {
asyncUnimplementedUnaryCall(getRoleRevokePermissionMethodHelper(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getAuthEnableMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthEnableRequest,
io.helidon.config.etcd.internal.client.proto.AuthEnableResponse>(
this, METHODID_AUTH_ENABLE)))
.addMethod(
getAuthDisableMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthDisableRequest,
io.helidon.config.etcd.internal.client.proto.AuthDisableResponse>(
this, METHODID_AUTH_DISABLE)))
.addMethod(
getAuthenticateMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthenticateRequest,
io.helidon.config.etcd.internal.client.proto.AuthenticateResponse>(
this, METHODID_AUTHENTICATE)))
.addMethod(
getUserAddMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserAddRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserAddResponse>(
this, METHODID_USER_ADD)))
.addMethod(
getUserGetMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserGetRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserGetResponse>(
this, METHODID_USER_GET)))
.addMethod(
getUserListMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserListRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserListResponse>(
this, METHODID_USER_LIST)))
.addMethod(
getUserDeleteMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserDeleteRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserDeleteResponse>(
this, METHODID_USER_DELETE)))
.addMethod(
getUserChangePasswordMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserChangePasswordResponse>(
this, METHODID_USER_CHANGE_PASSWORD)))
.addMethod(
getUserGrantRoleMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserGrantRoleResponse>(
this, METHODID_USER_GRANT_ROLE)))
.addMethod(
getUserRevokeRoleMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleRequest,
io.helidon.config.etcd.internal.client.proto.AuthUserRevokeRoleResponse>(
this, METHODID_USER_REVOKE_ROLE)))
.addMethod(
getRoleAddMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleAddRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleAddResponse>(
this, METHODID_ROLE_ADD)))
.addMethod(
getRoleGetMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleGetRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleGetResponse>(
this, METHODID_ROLE_GET)))
.addMethod(
getRoleListMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleListRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleListResponse>(
this, METHODID_ROLE_LIST)))
.addMethod(
getRoleDeleteMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleDeleteResponse>(
this, METHODID_ROLE_DELETE)))
.addMethod(
getRoleGrantPermissionMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleGrantPermissionResponse>(
this, METHODID_ROLE_GRANT_PERMISSION)))
.addMethod(
getRoleRevokePermissionMethodHelper(),
asyncUnaryCall(
new MethodHandlers<
io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionRequest,
io.helidon.config.etcd.internal.client.proto.AuthRoleRevokePermissionResponse>(
this, METHODID_ROLE_REVOKE_PERMISSION)))
.build();
}
}
/**
*/
public static final class AuthStub extends io.grpc.stub.AbstractStub {
private AuthStub(io.grpc.Channel channel) {
super(channel);
}
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) {
asyncUnaryCall(
getChannel().newCall(getAuthEnableMethodHelper(), getCallOptions()), request, responseObserver);
}
/**
*
* AuthDisable disables authentication.
*
*/
public void authDisable(io.helidon.config.etcd.internal.client.proto.AuthDisableRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAuthDisableMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getAuthenticateMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserAddMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserGetMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserListMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserDeleteMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserChangePasswordMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserGrantRoleMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getUserRevokeRoleMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getRoleAddMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getRoleGetMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getRoleListMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getRoleDeleteMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getRoleGrantPermissionMethodHelper(), 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) {
asyncUnaryCall(
getChannel().newCall(getRoleRevokePermissionMethodHelper(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class AuthBlockingStub extends io.grpc.stub.AbstractStub {
private AuthBlockingStub(io.grpc.Channel channel) {
super(channel);
}
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 blockingUnaryCall(
getChannel(), getAuthEnableMethodHelper(), 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 blockingUnaryCall(
getChannel(), getAuthDisableMethodHelper(), 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 blockingUnaryCall(
getChannel(), getAuthenticateMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserAddMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserGetMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserListMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserDeleteMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserChangePasswordMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserGrantRoleMethodHelper(), 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 blockingUnaryCall(
getChannel(), getUserRevokeRoleMethodHelper(), 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 blockingUnaryCall(
getChannel(), getRoleAddMethodHelper(), 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 blockingUnaryCall(
getChannel(), getRoleGetMethodHelper(), 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 blockingUnaryCall(
getChannel(), getRoleListMethodHelper(), 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 blockingUnaryCall(
getChannel(), getRoleDeleteMethodHelper(), 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 blockingUnaryCall(
getChannel(), getRoleGrantPermissionMethodHelper(), 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 blockingUnaryCall(
getChannel(), getRoleRevokePermissionMethodHelper(), getCallOptions(), request);
}
}
/**
*/
public static final class AuthFutureStub extends io.grpc.stub.AbstractStub {
private AuthFutureStub(io.grpc.Channel channel) {
super(channel);
}
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 futureUnaryCall(
getChannel().newCall(getAuthEnableMethodHelper(), getCallOptions()), request);
}
/**
*
* AuthDisable disables authentication.
*
*/
public com.google.common.util.concurrent.ListenableFuture authDisable(
io.helidon.config.etcd.internal.client.proto.AuthDisableRequest request) {
return futureUnaryCall(
getChannel().newCall(getAuthDisableMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getAuthenticateMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserAddMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserGetMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserListMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserDeleteMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserChangePasswordMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserGrantRoleMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getUserRevokeRoleMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getRoleAddMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getRoleGetMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getRoleListMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getRoleDeleteMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getRoleGrantPermissionMethodHelper(), 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 futureUnaryCall(
getChannel().newCall(getRoleRevokePermissionMethodHelper(), 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((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();
}
}
}
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 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(getAuthEnableMethodHelper())
.addMethod(getAuthDisableMethodHelper())
.addMethod(getAuthenticateMethodHelper())
.addMethod(getUserAddMethodHelper())
.addMethod(getUserGetMethodHelper())
.addMethod(getUserListMethodHelper())
.addMethod(getUserDeleteMethodHelper())
.addMethod(getUserChangePasswordMethodHelper())
.addMethod(getUserGrantRoleMethodHelper())
.addMethod(getUserRevokeRoleMethodHelper())
.addMethod(getRoleAddMethodHelper())
.addMethod(getRoleGetMethodHelper())
.addMethod(getRoleListMethodHelper())
.addMethod(getRoleDeleteMethodHelper())
.addMethod(getRoleGrantPermissionMethodHelper())
.addMethod(getRoleRevokePermissionMethodHelper())
.build();
}
}
}
return result;
}
}