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

com.ibm.etcd.api.AuthGrpc Maven / Gradle / Ivy

There is a newer version: 0.0.24
Show newest version
package com.ibm.etcd.api;

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.9.1)",
    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 = getAuthEnableMethod();

  private static volatile io.grpc.MethodDescriptor getAuthEnableMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "AuthEnable"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthEnableRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthEnableResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthEnable"))
                  .build();
          }
        }
     }
     return getAuthEnableMethod;
  }
  @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 = getAuthDisableMethod();

  private static volatile io.grpc.MethodDescriptor getAuthDisableMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "AuthDisable"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthDisableRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthDisableResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("AuthDisable"))
                  .build();
          }
        }
     }
     return getAuthDisableMethod;
  }
  @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 = getAuthenticateMethod();

  private static volatile io.grpc.MethodDescriptor getAuthenticateMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "Authenticate"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthenticateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthenticateResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("Authenticate"))
                  .build();
          }
        }
     }
     return getAuthenticateMethod;
  }
  @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 = getUserAddMethod();

  private static volatile io.grpc.MethodDescriptor getUserAddMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserAdd"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserAddRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserAddResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserAdd"))
                  .build();
          }
        }
     }
     return getUserAddMethod;
  }
  @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 = getUserGetMethod();

  private static volatile io.grpc.MethodDescriptor getUserGetMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserGet"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserGetResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGet"))
                  .build();
          }
        }
     }
     return getUserGetMethod;
  }
  @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 = getUserListMethod();

  private static volatile io.grpc.MethodDescriptor getUserListMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserListResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserList"))
                  .build();
          }
        }
     }
     return getUserListMethod;
  }
  @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 = getUserDeleteMethod();

  private static volatile io.grpc.MethodDescriptor getUserDeleteMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserDelete"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserDeleteResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserDelete"))
                  .build();
          }
        }
     }
     return getUserDeleteMethod;
  }
  @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 = getUserChangePasswordMethod();

  private static volatile io.grpc.MethodDescriptor getUserChangePasswordMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserChangePassword"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserChangePasswordRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserChangePasswordResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserChangePassword"))
                  .build();
          }
        }
     }
     return getUserChangePasswordMethod;
  }
  @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 = getUserGrantRoleMethod();

  private static volatile io.grpc.MethodDescriptor getUserGrantRoleMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserGrantRole"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserGrantRoleRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserGrantRoleResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserGrantRole"))
                  .build();
          }
        }
     }
     return getUserGrantRoleMethod;
  }
  @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 = getUserRevokeRoleMethod();

  private static volatile io.grpc.MethodDescriptor getUserRevokeRoleMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "UserRevokeRole"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserRevokeRoleRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthUserRevokeRoleResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("UserRevokeRole"))
                  .build();
          }
        }
     }
     return getUserRevokeRoleMethod;
  }
  @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 = getRoleAddMethod();

  private static volatile io.grpc.MethodDescriptor getRoleAddMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "RoleAdd"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleAddRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleAddResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleAdd"))
                  .build();
          }
        }
     }
     return getRoleAddMethod;
  }
  @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 = getRoleGetMethod();

  private static volatile io.grpc.MethodDescriptor getRoleGetMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "RoleGet"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleGetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleGetResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGet"))
                  .build();
          }
        }
     }
     return getRoleGetMethod;
  }
  @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 = getRoleListMethod();

  private static volatile io.grpc.MethodDescriptor getRoleListMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "RoleList"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleListResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleList"))
                  .build();
          }
        }
     }
     return getRoleListMethod;
  }
  @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 = getRoleDeleteMethod();

  private static volatile io.grpc.MethodDescriptor getRoleDeleteMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "RoleDelete"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleDeleteRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleDeleteResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleDelete"))
                  .build();
          }
        }
     }
     return getRoleDeleteMethod;
  }
  @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 = getRoleGrantPermissionMethod();

  private static volatile io.grpc.MethodDescriptor getRoleGrantPermissionMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "RoleGrantPermission"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleGrantPermissionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleGrantPermissionResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleGrantPermission"))
                  .build();
          }
        }
     }
     return getRoleGrantPermissionMethod;
  }
  @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 = getRoleRevokePermissionMethod();

  private static volatile io.grpc.MethodDescriptor getRoleRevokePermissionMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  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(
                  "etcdserverpb.Auth", "RoleRevokePermission"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleRevokePermissionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.ibm.etcd.api.AuthRoleRevokePermissionResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new AuthMethodDescriptorSupplier("RoleRevokePermission"))
                  .build();
          }
        }
     }
     return getRoleRevokePermissionMethod;
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy