All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.etcd.jetcd.api.AuthGrpc Maven / Gradle / Ivy

There is a newer version: 0.8.4
Show newest version
package io.etcd.jetcd.api;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.39.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.
  private static volatile io.grpc.MethodDescriptor getAuthEnableMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AuthEnable",
      requestType = io.etcd.jetcd.api.AuthEnableRequest.class,
      responseType = io.etcd.jetcd.api.AuthEnableResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAuthEnableMethod() {
    io.grpc.MethodDescriptor getAuthEnableMethod;
    if ((getAuthEnableMethod = AuthGrpc.getAuthEnableMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getAuthEnableMethod = AuthGrpc.getAuthEnableMethod) == null) {
          AuthGrpc.getAuthEnableMethod = getAuthEnableMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuthEnable"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthEnableRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthEnableResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthEnable"))
              .build();
        }
      }
    }
    return getAuthEnableMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAuthDisableMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "AuthDisable",
      requestType = io.etcd.jetcd.api.AuthDisableRequest.class,
      responseType = io.etcd.jetcd.api.AuthDisableResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAuthDisableMethod() {
    io.grpc.MethodDescriptor getAuthDisableMethod;
    if ((getAuthDisableMethod = AuthGrpc.getAuthDisableMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getAuthDisableMethod = AuthGrpc.getAuthDisableMethod) == null) {
          AuthGrpc.getAuthDisableMethod = getAuthDisableMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuthDisable"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthDisableRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthDisableResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthDisable"))
              .build();
        }
      }
    }
    return getAuthDisableMethod;
  }

  private static volatile io.grpc.MethodDescriptor getAuthenticateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Authenticate",
      requestType = io.etcd.jetcd.api.AuthenticateRequest.class,
      responseType = io.etcd.jetcd.api.AuthenticateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getAuthenticateMethod() {
    io.grpc.MethodDescriptor getAuthenticateMethod;
    if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) {
          AuthGrpc.getAuthenticateMethod = getAuthenticateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Authenticate"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthenticateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthenticateResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("Authenticate"))
              .build();
        }
      }
    }
    return getAuthenticateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserAddMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserAdd",
      requestType = io.etcd.jetcd.api.AuthUserAddRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserAddResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserAddMethod() {
    io.grpc.MethodDescriptor getUserAddMethod;
    if ((getUserAddMethod = AuthGrpc.getUserAddMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserAddMethod = AuthGrpc.getUserAddMethod) == null) {
          AuthGrpc.getUserAddMethod = getUserAddMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserAdd"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserAddRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserAddResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserAdd"))
              .build();
        }
      }
    }
    return getUserAddMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserGetMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserGet",
      requestType = io.etcd.jetcd.api.AuthUserGetRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserGetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserGetMethod() {
    io.grpc.MethodDescriptor getUserGetMethod;
    if ((getUserGetMethod = AuthGrpc.getUserGetMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserGetMethod = AuthGrpc.getUserGetMethod) == null) {
          AuthGrpc.getUserGetMethod = getUserGetMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserGet"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserGetResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGet"))
              .build();
        }
      }
    }
    return getUserGetMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserList",
      requestType = io.etcd.jetcd.api.AuthUserListRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserListMethod() {
    io.grpc.MethodDescriptor getUserListMethod;
    if ((getUserListMethod = AuthGrpc.getUserListMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserListMethod = AuthGrpc.getUserListMethod) == null) {
          AuthGrpc.getUserListMethod = getUserListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserListResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserList"))
              .build();
        }
      }
    }
    return getUserListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserDeleteMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserDelete",
      requestType = io.etcd.jetcd.api.AuthUserDeleteRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserDeleteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserDeleteMethod() {
    io.grpc.MethodDescriptor getUserDeleteMethod;
    if ((getUserDeleteMethod = AuthGrpc.getUserDeleteMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserDeleteMethod = AuthGrpc.getUserDeleteMethod) == null) {
          AuthGrpc.getUserDeleteMethod = getUserDeleteMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserDelete"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserDeleteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserDelete"))
              .build();
        }
      }
    }
    return getUserDeleteMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserChangePasswordMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserChangePassword",
      requestType = io.etcd.jetcd.api.AuthUserChangePasswordRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserChangePasswordResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserChangePasswordMethod() {
    io.grpc.MethodDescriptor getUserChangePasswordMethod;
    if ((getUserChangePasswordMethod = AuthGrpc.getUserChangePasswordMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserChangePasswordMethod = AuthGrpc.getUserChangePasswordMethod) == null) {
          AuthGrpc.getUserChangePasswordMethod = getUserChangePasswordMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserChangePassword"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserChangePasswordRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserChangePasswordResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserChangePassword"))
              .build();
        }
      }
    }
    return getUserChangePasswordMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserGrantRoleMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserGrantRole",
      requestType = io.etcd.jetcd.api.AuthUserGrantRoleRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserGrantRoleResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserGrantRoleMethod() {
    io.grpc.MethodDescriptor getUserGrantRoleMethod;
    if ((getUserGrantRoleMethod = AuthGrpc.getUserGrantRoleMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserGrantRoleMethod = AuthGrpc.getUserGrantRoleMethod) == null) {
          AuthGrpc.getUserGrantRoleMethod = getUserGrantRoleMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserGrantRole"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserGrantRoleRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserGrantRoleResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGrantRole"))
              .build();
        }
      }
    }
    return getUserGrantRoleMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUserRevokeRoleMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UserRevokeRole",
      requestType = io.etcd.jetcd.api.AuthUserRevokeRoleRequest.class,
      responseType = io.etcd.jetcd.api.AuthUserRevokeRoleResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUserRevokeRoleMethod() {
    io.grpc.MethodDescriptor getUserRevokeRoleMethod;
    if ((getUserRevokeRoleMethod = AuthGrpc.getUserRevokeRoleMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getUserRevokeRoleMethod = AuthGrpc.getUserRevokeRoleMethod) == null) {
          AuthGrpc.getUserRevokeRoleMethod = getUserRevokeRoleMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UserRevokeRole"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserRevokeRoleRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthUserRevokeRoleResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserRevokeRole"))
              .build();
        }
      }
    }
    return getUserRevokeRoleMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRoleAddMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RoleAdd",
      requestType = io.etcd.jetcd.api.AuthRoleAddRequest.class,
      responseType = io.etcd.jetcd.api.AuthRoleAddResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRoleAddMethod() {
    io.grpc.MethodDescriptor getRoleAddMethod;
    if ((getRoleAddMethod = AuthGrpc.getRoleAddMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getRoleAddMethod = AuthGrpc.getRoleAddMethod) == null) {
          AuthGrpc.getRoleAddMethod = getRoleAddMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleAdd"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleAddRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleAddResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleAdd"))
              .build();
        }
      }
    }
    return getRoleAddMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRoleGetMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RoleGet",
      requestType = io.etcd.jetcd.api.AuthRoleGetRequest.class,
      responseType = io.etcd.jetcd.api.AuthRoleGetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRoleGetMethod() {
    io.grpc.MethodDescriptor getRoleGetMethod;
    if ((getRoleGetMethod = AuthGrpc.getRoleGetMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getRoleGetMethod = AuthGrpc.getRoleGetMethod) == null) {
          AuthGrpc.getRoleGetMethod = getRoleGetMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleGet"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleGetResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGet"))
              .build();
        }
      }
    }
    return getRoleGetMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRoleListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RoleList",
      requestType = io.etcd.jetcd.api.AuthRoleListRequest.class,
      responseType = io.etcd.jetcd.api.AuthRoleListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRoleListMethod() {
    io.grpc.MethodDescriptor getRoleListMethod;
    if ((getRoleListMethod = AuthGrpc.getRoleListMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getRoleListMethod = AuthGrpc.getRoleListMethod) == null) {
          AuthGrpc.getRoleListMethod = getRoleListMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleListResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleList"))
              .build();
        }
      }
    }
    return getRoleListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRoleDeleteMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RoleDelete",
      requestType = io.etcd.jetcd.api.AuthRoleDeleteRequest.class,
      responseType = io.etcd.jetcd.api.AuthRoleDeleteResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRoleDeleteMethod() {
    io.grpc.MethodDescriptor getRoleDeleteMethod;
    if ((getRoleDeleteMethod = AuthGrpc.getRoleDeleteMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getRoleDeleteMethod = AuthGrpc.getRoleDeleteMethod) == null) {
          AuthGrpc.getRoleDeleteMethod = getRoleDeleteMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleDelete"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleDeleteResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleDelete"))
              .build();
        }
      }
    }
    return getRoleDeleteMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRoleGrantPermissionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RoleGrantPermission",
      requestType = io.etcd.jetcd.api.AuthRoleGrantPermissionRequest.class,
      responseType = io.etcd.jetcd.api.AuthRoleGrantPermissionResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRoleGrantPermissionMethod() {
    io.grpc.MethodDescriptor getRoleGrantPermissionMethod;
    if ((getRoleGrantPermissionMethod = AuthGrpc.getRoleGrantPermissionMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getRoleGrantPermissionMethod = AuthGrpc.getRoleGrantPermissionMethod) == null) {
          AuthGrpc.getRoleGrantPermissionMethod = getRoleGrantPermissionMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleGrantPermission"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleGrantPermissionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleGrantPermissionResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGrantPermission"))
              .build();
        }
      }
    }
    return getRoleGrantPermissionMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRoleRevokePermissionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RoleRevokePermission",
      requestType = io.etcd.jetcd.api.AuthRoleRevokePermissionRequest.class,
      responseType = io.etcd.jetcd.api.AuthRoleRevokePermissionResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRoleRevokePermissionMethod() {
    io.grpc.MethodDescriptor getRoleRevokePermissionMethod;
    if ((getRoleRevokePermissionMethod = AuthGrpc.getRoleRevokePermissionMethod) == null) {
      synchronized (AuthGrpc.class) {
        if ((getRoleRevokePermissionMethod = AuthGrpc.getRoleRevokePermissionMethod) == null) {
          AuthGrpc.getRoleRevokePermissionMethod = getRoleRevokePermissionMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RoleRevokePermission"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleRevokePermissionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.etcd.jetcd.api.AuthRoleRevokePermissionResponse.getDefaultInstance()))
              .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleRevokePermission"))
              .build();
        }
      }
    }
    return getRoleRevokePermissionMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static AuthStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public AuthStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new AuthStub(channel, callOptions);
        }
      };
    return AuthStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static AuthBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public AuthBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new AuthBlockingStub(channel, callOptions);
        }
      };
    return AuthBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static AuthFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public AuthFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new AuthFutureStub(channel, callOptions);
        }
      };
    return AuthFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class AuthImplBase implements io.grpc.BindableService {

    /**
     * 
     * AuthEnable enables authentication.
     * 
*/ public void authEnable(io.etcd.jetcd.api.AuthEnableRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthEnableMethod(), responseObserver); } /** *
     * AuthDisable disables authentication.
     * 
*/ public void authDisable(io.etcd.jetcd.api.AuthDisableRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthDisableMethod(), responseObserver); } /** *
     * Authenticate processes an authenticate request.
     * 
*/ public void authenticate(io.etcd.jetcd.api.AuthenticateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAuthenticateMethod(), responseObserver); } /** *
     * UserAdd adds a new user.
     * 
*/ public void userAdd(io.etcd.jetcd.api.AuthUserAddRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserAddMethod(), responseObserver); } /** *
     * UserGet gets detailed user information.
     * 
*/ public void userGet(io.etcd.jetcd.api.AuthUserGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGetMethod(), responseObserver); } /** *
     * UserList gets a list of all users.
     * 
*/ public void userList(io.etcd.jetcd.api.AuthUserListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserListMethod(), responseObserver); } /** *
     * UserDelete deletes a specified user.
     * 
*/ public void userDelete(io.etcd.jetcd.api.AuthUserDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserDeleteMethod(), responseObserver); } /** *
     * UserChangePassword changes the password of a specified user.
     * 
*/ public void userChangePassword(io.etcd.jetcd.api.AuthUserChangePasswordRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserChangePasswordMethod(), responseObserver); } /** *
     * UserGrant grants a role to a specified user.
     * 
*/ public void userGrantRole(io.etcd.jetcd.api.AuthUserGrantRoleRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserGrantRoleMethod(), responseObserver); } /** *
     * UserRevokeRole revokes a role of specified user.
     * 
*/ public void userRevokeRole(io.etcd.jetcd.api.AuthUserRevokeRoleRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUserRevokeRoleMethod(), responseObserver); } /** *
     * RoleAdd adds a new role.
     * 
*/ public void roleAdd(io.etcd.jetcd.api.AuthRoleAddRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleAddMethod(), responseObserver); } /** *
     * RoleGet gets detailed role information.
     * 
*/ public void roleGet(io.etcd.jetcd.api.AuthRoleGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGetMethod(), responseObserver); } /** *
     * RoleList gets lists of all roles.
     * 
*/ public void roleList(io.etcd.jetcd.api.AuthRoleListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleListMethod(), responseObserver); } /** *
     * RoleDelete deletes a specified role.
     * 
*/ public void roleDelete(io.etcd.jetcd.api.AuthRoleDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleDeleteMethod(), responseObserver); } /** *
     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
     * 
*/ public void roleGrantPermission(io.etcd.jetcd.api.AuthRoleGrantPermissionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleGrantPermissionMethod(), responseObserver); } /** *
     * RoleRevokePermission revokes a key or range permission of a specified role.
     * 
*/ public void roleRevokePermission(io.etcd.jetcd.api.AuthRoleRevokePermissionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRoleRevokePermissionMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getAuthEnableMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthEnableRequest, io.etcd.jetcd.api.AuthEnableResponse>( this, METHODID_AUTH_ENABLE))) .addMethod( getAuthDisableMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthDisableRequest, io.etcd.jetcd.api.AuthDisableResponse>( this, METHODID_AUTH_DISABLE))) .addMethod( getAuthenticateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthenticateRequest, io.etcd.jetcd.api.AuthenticateResponse>( this, METHODID_AUTHENTICATE))) .addMethod( getUserAddMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserAddRequest, io.etcd.jetcd.api.AuthUserAddResponse>( this, METHODID_USER_ADD))) .addMethod( getUserGetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserGetRequest, io.etcd.jetcd.api.AuthUserGetResponse>( this, METHODID_USER_GET))) .addMethod( getUserListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserListRequest, io.etcd.jetcd.api.AuthUserListResponse>( this, METHODID_USER_LIST))) .addMethod( getUserDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserDeleteRequest, io.etcd.jetcd.api.AuthUserDeleteResponse>( this, METHODID_USER_DELETE))) .addMethod( getUserChangePasswordMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserChangePasswordRequest, io.etcd.jetcd.api.AuthUserChangePasswordResponse>( this, METHODID_USER_CHANGE_PASSWORD))) .addMethod( getUserGrantRoleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserGrantRoleRequest, io.etcd.jetcd.api.AuthUserGrantRoleResponse>( this, METHODID_USER_GRANT_ROLE))) .addMethod( getUserRevokeRoleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthUserRevokeRoleRequest, io.etcd.jetcd.api.AuthUserRevokeRoleResponse>( this, METHODID_USER_REVOKE_ROLE))) .addMethod( getRoleAddMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthRoleAddRequest, io.etcd.jetcd.api.AuthRoleAddResponse>( this, METHODID_ROLE_ADD))) .addMethod( getRoleGetMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthRoleGetRequest, io.etcd.jetcd.api.AuthRoleGetResponse>( this, METHODID_ROLE_GET))) .addMethod( getRoleListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthRoleListRequest, io.etcd.jetcd.api.AuthRoleListResponse>( this, METHODID_ROLE_LIST))) .addMethod( getRoleDeleteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthRoleDeleteRequest, io.etcd.jetcd.api.AuthRoleDeleteResponse>( this, METHODID_ROLE_DELETE))) .addMethod( getRoleGrantPermissionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthRoleGrantPermissionRequest, io.etcd.jetcd.api.AuthRoleGrantPermissionResponse>( this, METHODID_ROLE_GRANT_PERMISSION))) .addMethod( getRoleRevokePermissionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.etcd.jetcd.api.AuthRoleRevokePermissionRequest, io.etcd.jetcd.api.AuthRoleRevokePermissionResponse>( this, METHODID_ROLE_REVOKE_PERMISSION))) .build(); } } /** */ public static final class AuthStub extends io.grpc.stub.AbstractAsyncStub { private AuthStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AuthStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AuthStub(channel, callOptions); } /** *
     * AuthEnable enables authentication.
     * 
*/ public void authEnable(io.etcd.jetcd.api.AuthEnableRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request, responseObserver); } /** *
     * AuthDisable disables authentication.
     * 
*/ public void authDisable(io.etcd.jetcd.api.AuthDisableRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAuthDisableMethod(), getCallOptions()), request, responseObserver); } /** *
     * Authenticate processes an authenticate request.
     * 
*/ public void authenticate(io.etcd.jetcd.api.AuthenticateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserAdd adds a new user.
     * 
*/ public void userAdd(io.etcd.jetcd.api.AuthUserAddRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserAddMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserGet gets detailed user information.
     * 
*/ public void userGet(io.etcd.jetcd.api.AuthUserGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserGetMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserList gets a list of all users.
     * 
*/ public void userList(io.etcd.jetcd.api.AuthUserListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserListMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserDelete deletes a specified user.
     * 
*/ public void userDelete(io.etcd.jetcd.api.AuthUserDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserDeleteMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserChangePassword changes the password of a specified user.
     * 
*/ public void userChangePassword(io.etcd.jetcd.api.AuthUserChangePasswordRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserChangePasswordMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserGrant grants a role to a specified user.
     * 
*/ public void userGrantRole(io.etcd.jetcd.api.AuthUserGrantRoleRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserGrantRoleMethod(), getCallOptions()), request, responseObserver); } /** *
     * UserRevokeRole revokes a role of specified user.
     * 
*/ public void userRevokeRole(io.etcd.jetcd.api.AuthUserRevokeRoleRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUserRevokeRoleMethod(), getCallOptions()), request, responseObserver); } /** *
     * RoleAdd adds a new role.
     * 
*/ public void roleAdd(io.etcd.jetcd.api.AuthRoleAddRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRoleAddMethod(), getCallOptions()), request, responseObserver); } /** *
     * RoleGet gets detailed role information.
     * 
*/ public void roleGet(io.etcd.jetcd.api.AuthRoleGetRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRoleGetMethod(), getCallOptions()), request, responseObserver); } /** *
     * RoleList gets lists of all roles.
     * 
*/ public void roleList(io.etcd.jetcd.api.AuthRoleListRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRoleListMethod(), getCallOptions()), request, responseObserver); } /** *
     * RoleDelete deletes a specified role.
     * 
*/ public void roleDelete(io.etcd.jetcd.api.AuthRoleDeleteRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRoleDeleteMethod(), getCallOptions()), request, responseObserver); } /** *
     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
     * 
*/ public void roleGrantPermission(io.etcd.jetcd.api.AuthRoleGrantPermissionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRoleGrantPermissionMethod(), getCallOptions()), request, responseObserver); } /** *
     * RoleRevokePermission revokes a key or range permission of a specified role.
     * 
*/ public void roleRevokePermission(io.etcd.jetcd.api.AuthRoleRevokePermissionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class AuthBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AuthBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AuthBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AuthBlockingStub(channel, callOptions); } /** *
     * AuthEnable enables authentication.
     * 
*/ public io.etcd.jetcd.api.AuthEnableResponse authEnable(io.etcd.jetcd.api.AuthEnableRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAuthEnableMethod(), getCallOptions(), request); } /** *
     * AuthDisable disables authentication.
     * 
*/ public io.etcd.jetcd.api.AuthDisableResponse authDisable(io.etcd.jetcd.api.AuthDisableRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAuthDisableMethod(), getCallOptions(), request); } /** *
     * Authenticate processes an authenticate request.
     * 
*/ public io.etcd.jetcd.api.AuthenticateResponse authenticate(io.etcd.jetcd.api.AuthenticateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAuthenticateMethod(), getCallOptions(), request); } /** *
     * UserAdd adds a new user.
     * 
*/ public io.etcd.jetcd.api.AuthUserAddResponse userAdd(io.etcd.jetcd.api.AuthUserAddRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserAddMethod(), getCallOptions(), request); } /** *
     * UserGet gets detailed user information.
     * 
*/ public io.etcd.jetcd.api.AuthUserGetResponse userGet(io.etcd.jetcd.api.AuthUserGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserGetMethod(), getCallOptions(), request); } /** *
     * UserList gets a list of all users.
     * 
*/ public io.etcd.jetcd.api.AuthUserListResponse userList(io.etcd.jetcd.api.AuthUserListRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserListMethod(), getCallOptions(), request); } /** *
     * UserDelete deletes a specified user.
     * 
*/ public io.etcd.jetcd.api.AuthUserDeleteResponse userDelete(io.etcd.jetcd.api.AuthUserDeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserDeleteMethod(), getCallOptions(), request); } /** *
     * UserChangePassword changes the password of a specified user.
     * 
*/ public io.etcd.jetcd.api.AuthUserChangePasswordResponse userChangePassword(io.etcd.jetcd.api.AuthUserChangePasswordRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserChangePasswordMethod(), getCallOptions(), request); } /** *
     * UserGrant grants a role to a specified user.
     * 
*/ public io.etcd.jetcd.api.AuthUserGrantRoleResponse userGrantRole(io.etcd.jetcd.api.AuthUserGrantRoleRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserGrantRoleMethod(), getCallOptions(), request); } /** *
     * UserRevokeRole revokes a role of specified user.
     * 
*/ public io.etcd.jetcd.api.AuthUserRevokeRoleResponse userRevokeRole(io.etcd.jetcd.api.AuthUserRevokeRoleRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUserRevokeRoleMethod(), getCallOptions(), request); } /** *
     * RoleAdd adds a new role.
     * 
*/ public io.etcd.jetcd.api.AuthRoleAddResponse roleAdd(io.etcd.jetcd.api.AuthRoleAddRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRoleAddMethod(), getCallOptions(), request); } /** *
     * RoleGet gets detailed role information.
     * 
*/ public io.etcd.jetcd.api.AuthRoleGetResponse roleGet(io.etcd.jetcd.api.AuthRoleGetRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRoleGetMethod(), getCallOptions(), request); } /** *
     * RoleList gets lists of all roles.
     * 
*/ public io.etcd.jetcd.api.AuthRoleListResponse roleList(io.etcd.jetcd.api.AuthRoleListRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRoleListMethod(), getCallOptions(), request); } /** *
     * RoleDelete deletes a specified role.
     * 
*/ public io.etcd.jetcd.api.AuthRoleDeleteResponse roleDelete(io.etcd.jetcd.api.AuthRoleDeleteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRoleDeleteMethod(), getCallOptions(), request); } /** *
     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
     * 
*/ public io.etcd.jetcd.api.AuthRoleGrantPermissionResponse roleGrantPermission(io.etcd.jetcd.api.AuthRoleGrantPermissionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRoleGrantPermissionMethod(), getCallOptions(), request); } /** *
     * RoleRevokePermission revokes a key or range permission of a specified role.
     * 
*/ public io.etcd.jetcd.api.AuthRoleRevokePermissionResponse roleRevokePermission(io.etcd.jetcd.api.AuthRoleRevokePermissionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRoleRevokePermissionMethod(), getCallOptions(), request); } } /** */ public static final class AuthFutureStub extends io.grpc.stub.AbstractFutureStub { private AuthFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AuthFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AuthFutureStub(channel, callOptions); } /** *
     * AuthEnable enables authentication.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture authEnable( io.etcd.jetcd.api.AuthEnableRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAuthEnableMethod(), getCallOptions()), request); } /** *
     * AuthDisable disables authentication.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture authDisable( io.etcd.jetcd.api.AuthDisableRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAuthDisableMethod(), getCallOptions()), request); } /** *
     * Authenticate processes an authenticate request.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture authenticate( io.etcd.jetcd.api.AuthenticateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request); } /** *
     * UserAdd adds a new user.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userAdd( io.etcd.jetcd.api.AuthUserAddRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserAddMethod(), getCallOptions()), request); } /** *
     * UserGet gets detailed user information.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userGet( io.etcd.jetcd.api.AuthUserGetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserGetMethod(), getCallOptions()), request); } /** *
     * UserList gets a list of all users.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userList( io.etcd.jetcd.api.AuthUserListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserListMethod(), getCallOptions()), request); } /** *
     * UserDelete deletes a specified user.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userDelete( io.etcd.jetcd.api.AuthUserDeleteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserDeleteMethod(), getCallOptions()), request); } /** *
     * UserChangePassword changes the password of a specified user.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userChangePassword( io.etcd.jetcd.api.AuthUserChangePasswordRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserChangePasswordMethod(), getCallOptions()), request); } /** *
     * UserGrant grants a role to a specified user.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userGrantRole( io.etcd.jetcd.api.AuthUserGrantRoleRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserGrantRoleMethod(), getCallOptions()), request); } /** *
     * UserRevokeRole revokes a role of specified user.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture userRevokeRole( io.etcd.jetcd.api.AuthUserRevokeRoleRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUserRevokeRoleMethod(), getCallOptions()), request); } /** *
     * RoleAdd adds a new role.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture roleAdd( io.etcd.jetcd.api.AuthRoleAddRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRoleAddMethod(), getCallOptions()), request); } /** *
     * RoleGet gets detailed role information.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture roleGet( io.etcd.jetcd.api.AuthRoleGetRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRoleGetMethod(), getCallOptions()), request); } /** *
     * RoleList gets lists of all roles.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture roleList( io.etcd.jetcd.api.AuthRoleListRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRoleListMethod(), getCallOptions()), request); } /** *
     * RoleDelete deletes a specified role.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture roleDelete( io.etcd.jetcd.api.AuthRoleDeleteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRoleDeleteMethod(), getCallOptions()), request); } /** *
     * RoleGrantPermission grants a permission of a specified key or range to a specified role.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture roleGrantPermission( io.etcd.jetcd.api.AuthRoleGrantPermissionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRoleGrantPermissionMethod(), getCallOptions()), request); } /** *
     * RoleRevokePermission revokes a key or range permission of a specified role.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture roleRevokePermission( io.etcd.jetcd.api.AuthRoleRevokePermissionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRoleRevokePermissionMethod(), getCallOptions()), request); } } private static final int METHODID_AUTH_ENABLE = 0; private static final int METHODID_AUTH_DISABLE = 1; private static final int METHODID_AUTHENTICATE = 2; private static final int METHODID_USER_ADD = 3; private static final int METHODID_USER_GET = 4; private static final int METHODID_USER_LIST = 5; private static final int METHODID_USER_DELETE = 6; private static final int METHODID_USER_CHANGE_PASSWORD = 7; private static final int METHODID_USER_GRANT_ROLE = 8; private static final int METHODID_USER_REVOKE_ROLE = 9; private static final int METHODID_ROLE_ADD = 10; private static final int METHODID_ROLE_GET = 11; private static final int METHODID_ROLE_LIST = 12; private static final int METHODID_ROLE_DELETE = 13; private static final int METHODID_ROLE_GRANT_PERMISSION = 14; private static final int METHODID_ROLE_REVOKE_PERMISSION = 15; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AuthImplBase serviceImpl; private final int methodId; MethodHandlers(AuthImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_AUTH_ENABLE: serviceImpl.authEnable((io.etcd.jetcd.api.AuthEnableRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_AUTH_DISABLE: serviceImpl.authDisable((io.etcd.jetcd.api.AuthDisableRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_AUTHENTICATE: serviceImpl.authenticate((io.etcd.jetcd.api.AuthenticateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_ADD: serviceImpl.userAdd((io.etcd.jetcd.api.AuthUserAddRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_GET: serviceImpl.userGet((io.etcd.jetcd.api.AuthUserGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_LIST: serviceImpl.userList((io.etcd.jetcd.api.AuthUserListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_DELETE: serviceImpl.userDelete((io.etcd.jetcd.api.AuthUserDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_CHANGE_PASSWORD: serviceImpl.userChangePassword((io.etcd.jetcd.api.AuthUserChangePasswordRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_GRANT_ROLE: serviceImpl.userGrantRole((io.etcd.jetcd.api.AuthUserGrantRoleRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_USER_REVOKE_ROLE: serviceImpl.userRevokeRole((io.etcd.jetcd.api.AuthUserRevokeRoleRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ROLE_ADD: serviceImpl.roleAdd((io.etcd.jetcd.api.AuthRoleAddRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ROLE_GET: serviceImpl.roleGet((io.etcd.jetcd.api.AuthRoleGetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ROLE_LIST: serviceImpl.roleList((io.etcd.jetcd.api.AuthRoleListRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ROLE_DELETE: serviceImpl.roleDelete((io.etcd.jetcd.api.AuthRoleDeleteRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ROLE_GRANT_PERMISSION: serviceImpl.roleGrantPermission((io.etcd.jetcd.api.AuthRoleGrantPermissionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ROLE_REVOKE_PERMISSION: serviceImpl.roleRevokePermission((io.etcd.jetcd.api.AuthRoleRevokePermissionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static abstract class AuthBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AuthBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.etcd.jetcd.api.JetcdProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Auth"); } } private static final class AuthFileDescriptorSupplier extends AuthBaseDescriptorSupplier { AuthFileDescriptorSupplier() {} } private static final class AuthMethodDescriptorSupplier extends AuthBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; AuthMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (AuthGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AuthFileDescriptorSupplier()) .addMethod(getAuthEnableMethod()) .addMethod(getAuthDisableMethod()) .addMethod(getAuthenticateMethod()) .addMethod(getUserAddMethod()) .addMethod(getUserGetMethod()) .addMethod(getUserListMethod()) .addMethod(getUserDeleteMethod()) .addMethod(getUserChangePasswordMethod()) .addMethod(getUserGrantRoleMethod()) .addMethod(getUserRevokeRoleMethod()) .addMethod(getRoleAddMethod()) .addMethod(getRoleGetMethod()) .addMethod(getRoleListMethod()) .addMethod(getRoleDeleteMethod()) .addMethod(getRoleGrantPermissionMethod()) .addMethod(getRoleRevokePermissionMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy