Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Cloud Spanner Database Admin API
* The Cloud Spanner Database Admin API can be used to create, drop, and
* list databases. It also enables updating the schema of pre-existing
* databases.
*
*/
@nl.topicus.jdbc.shaded.javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.2.0)",
comments = "Source: google/spanner/admin/database/v1/spanner_database_admin.proto")
public final class DatabaseAdminGrpc {
private DatabaseAdminGrpc() {}
public static final String SERVICE_NAME = "google.spanner.admin.database.v1.DatabaseAdmin";
// Static method descriptors that strictly reflect the proto.
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_LIST_DATABASES =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "ListDatabases"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.ListDatabasesRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.ListDatabasesResponse.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_CREATE_DATABASE =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "CreateDatabase"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.CreateDatabaseRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.Operation.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_GET_DATABASE =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "GetDatabase"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.Database.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_UPDATE_DATABASE_DDL =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "UpdateDatabaseDdl"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.longrunning.Operation.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_DROP_DATABASE =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "DropDatabase"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DropDatabaseRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.protobuf.Empty.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_GET_DATABASE_DDL =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "GetDatabaseDdl"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseDdlRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseDdlResponse.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_SET_IAM_POLICY =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "SetIamPolicy"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_GET_IAM_POLICY =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "GetIamPolicy"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.iam.v1.Policy.getDefaultInstance()));
@nl.topicus.jdbc.shaded.io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor METHOD_TEST_IAM_PERMISSIONS =
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.create(
nl.topicus.jdbc.shaded.io.grpc.MethodDescriptor.MethodType.UNARY,
generateFullMethodName(
"google.spanner.admin.database.v1.DatabaseAdmin", "TestIamPermissions"),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()),
nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoUtils.marshaller(nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()));
/**
* Creates a new async stub that supports all call types for the service
*/
public static DatabaseAdminStub newStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
return new DatabaseAdminStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static DatabaseAdminBlockingStub newBlockingStub(
nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
return new DatabaseAdminBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service
*/
public static DatabaseAdminFutureStub newFutureStub(
nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
return new DatabaseAdminFutureStub(channel);
}
/**
*
* Cloud Spanner Database Admin API
* The Cloud Spanner Database Admin API can be used to create, drop, and
* list databases. It also enables updating the schema of pre-existing
* databases.
*
*/
public static abstract class DatabaseAdminImplBase implements nl.topicus.jdbc.shaded.io.grpc.BindableService {
/**
*
* Creates a new Cloud Spanner database and starts to prepare it for serving.
* The returned [long-running operation][google.longrunning.Operation] will
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
* Updates the schema of a Cloud Spanner database by
* creating/altering/dropping tables, columns, indexes, etc. The returned
* [long-running operation][google.longrunning.Operation] will have a name of
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
* [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
*
* Returns the schema of a Cloud Spanner database as a list of formatted
* DDL statements. This method does not show pending schema updates, those may
* be queried using the [Operations][google.longrunning.Operations] API.
*
* Sets the access control policy on a database resource. Replaces any
* existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on
* [resource][google.iam.v1.SetIamPolicyRequest.resource].
*
* Gets the access control policy for a database resource. Returns an empty
* policy if a database exists but does not have a policy set.
* Authorization requires `spanner.databases.getIamPolicy` permission on
* [resource][google.iam.v1.GetIamPolicyRequest.resource].
*
* Returns permissions that the caller has on the specified database resource.
* Attempting this RPC on a non-existent Cloud Spanner database will result in
* a NOT_FOUND error if the user has `spanner.databases.list` permission on
* the containing Cloud Spanner instance. Otherwise returns an empty set of
* permissions.
*
*/
public void testIamPermissions(nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsRequest request,
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(METHOD_TEST_IAM_PERMISSIONS, responseObserver);
}
@java.lang.Override public final nl.topicus.jdbc.shaded.io.grpc.ServerServiceDefinition bindService() {
return nl.topicus.jdbc.shaded.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
METHOD_LIST_DATABASES,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.ListDatabasesRequest,
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.ListDatabasesResponse>(
this, METHODID_LIST_DATABASES)))
.addMethod(
METHOD_CREATE_DATABASE,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.CreateDatabaseRequest,
nl.topicus.jdbc.shaded.com.google.longrunning.Operation>(
this, METHODID_CREATE_DATABASE)))
.addMethod(
METHOD_GET_DATABASE,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseRequest,
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.Database>(
this, METHODID_GET_DATABASE)))
.addMethod(
METHOD_UPDATE_DATABASE_DDL,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest,
nl.topicus.jdbc.shaded.com.google.longrunning.Operation>(
this, METHODID_UPDATE_DATABASE_DDL)))
.addMethod(
METHOD_DROP_DATABASE,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DropDatabaseRequest,
nl.topicus.jdbc.shaded.com.google.protobuf.Empty>(
this, METHODID_DROP_DATABASE)))
.addMethod(
METHOD_GET_DATABASE_DDL,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseDdlRequest,
nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseDdlResponse>(
this, METHODID_GET_DATABASE_DDL)))
.addMethod(
METHOD_SET_IAM_POLICY,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.iam.v1.SetIamPolicyRequest,
nl.topicus.jdbc.shaded.com.google.iam.v1.Policy>(
this, METHODID_SET_IAM_POLICY)))
.addMethod(
METHOD_GET_IAM_POLICY,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.iam.v1.GetIamPolicyRequest,
nl.topicus.jdbc.shaded.com.google.iam.v1.Policy>(
this, METHODID_GET_IAM_POLICY)))
.addMethod(
METHOD_TEST_IAM_PERMISSIONS,
asyncUnaryCall(
new MethodHandlers<
nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsRequest,
nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsResponse>(
this, METHODID_TEST_IAM_PERMISSIONS)))
.build();
}
}
/**
*
* Cloud Spanner Database Admin API
* The Cloud Spanner Database Admin API can be used to create, drop, and
* list databases. It also enables updating the schema of pre-existing
* databases.
*
*/
public static final class DatabaseAdminStub extends nl.topicus.jdbc.shaded.io.grpc.stub.AbstractStub {
private DatabaseAdminStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
super(channel);
}
private DatabaseAdminStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DatabaseAdminStub build(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
return new DatabaseAdminStub(channel, callOptions);
}
/**
*
* Creates a new Cloud Spanner database and starts to prepare it for serving.
* The returned [long-running operation][google.longrunning.Operation] will
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
* Updates the schema of a Cloud Spanner database by
* creating/altering/dropping tables, columns, indexes, etc. The returned
* [long-running operation][google.longrunning.Operation] will have a name of
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
* [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
*
* Returns the schema of a Cloud Spanner database as a list of formatted
* DDL statements. This method does not show pending schema updates, those may
* be queried using the [Operations][google.longrunning.Operations] API.
*
* Sets the access control policy on a database resource. Replaces any
* existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on
* [resource][google.iam.v1.SetIamPolicyRequest.resource].
*
* Gets the access control policy for a database resource. Returns an empty
* policy if a database exists but does not have a policy set.
* Authorization requires `spanner.databases.getIamPolicy` permission on
* [resource][google.iam.v1.GetIamPolicyRequest.resource].
*
* Returns permissions that the caller has on the specified database resource.
* Attempting this RPC on a non-existent Cloud Spanner database will result in
* a NOT_FOUND error if the user has `spanner.databases.list` permission on
* the containing Cloud Spanner instance. Otherwise returns an empty set of
* permissions.
*
* Cloud Spanner Database Admin API
* The Cloud Spanner Database Admin API can be used to create, drop, and
* list databases. It also enables updating the schema of pre-existing
* databases.
*
*/
public static final class DatabaseAdminBlockingStub extends nl.topicus.jdbc.shaded.io.grpc.stub.AbstractStub {
private DatabaseAdminBlockingStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
super(channel);
}
private DatabaseAdminBlockingStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DatabaseAdminBlockingStub build(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
return new DatabaseAdminBlockingStub(channel, callOptions);
}
/**
*
* Creates a new Cloud Spanner database and starts to prepare it for serving.
* The returned [long-running operation][google.longrunning.Operation] will
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
* Updates the schema of a Cloud Spanner database by
* creating/altering/dropping tables, columns, indexes, etc. The returned
* [long-running operation][google.longrunning.Operation] will have a name of
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
* [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
*
* Returns the schema of a Cloud Spanner database as a list of formatted
* DDL statements. This method does not show pending schema updates, those may
* be queried using the [Operations][google.longrunning.Operations] API.
*
* Sets the access control policy on a database resource. Replaces any
* existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on
* [resource][google.iam.v1.SetIamPolicyRequest.resource].
*
* Gets the access control policy for a database resource. Returns an empty
* policy if a database exists but does not have a policy set.
* Authorization requires `spanner.databases.getIamPolicy` permission on
* [resource][google.iam.v1.GetIamPolicyRequest.resource].
*
* Returns permissions that the caller has on the specified database resource.
* Attempting this RPC on a non-existent Cloud Spanner database will result in
* a NOT_FOUND error if the user has `spanner.databases.list` permission on
* the containing Cloud Spanner instance. Otherwise returns an empty set of
* permissions.
*
* Cloud Spanner Database Admin API
* The Cloud Spanner Database Admin API can be used to create, drop, and
* list databases. It also enables updating the schema of pre-existing
* databases.
*
*/
public static final class DatabaseAdminFutureStub extends nl.topicus.jdbc.shaded.io.grpc.stub.AbstractStub {
private DatabaseAdminFutureStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel) {
super(channel);
}
private DatabaseAdminFutureStub(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DatabaseAdminFutureStub build(nl.topicus.jdbc.shaded.io.grpc.Channel channel,
nl.topicus.jdbc.shaded.io.grpc.CallOptions callOptions) {
return new DatabaseAdminFutureStub(channel, callOptions);
}
/**
*
* Creates a new Cloud Spanner database and starts to prepare it for serving.
* The returned [long-running operation][google.longrunning.Operation] will
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
* [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
* [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
* Updates the schema of a Cloud Spanner database by
* creating/altering/dropping tables, columns, indexes, etc. The returned
* [long-running operation][google.longrunning.Operation] will have a name of
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
* [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
*
* Returns the schema of a Cloud Spanner database as a list of formatted
* DDL statements. This method does not show pending schema updates, those may
* be queried using the [Operations][google.longrunning.Operations] API.
*
* Sets the access control policy on a database resource. Replaces any
* existing policy.
* Authorization requires `spanner.databases.setIamPolicy` permission on
* [resource][google.iam.v1.SetIamPolicyRequest.resource].
*
* Gets the access control policy for a database resource. Returns an empty
* policy if a database exists but does not have a policy set.
* Authorization requires `spanner.databases.getIamPolicy` permission on
* [resource][google.iam.v1.GetIamPolicyRequest.resource].
*
* Returns permissions that the caller has on the specified database resource.
* Attempting this RPC on a non-existent Cloud Spanner database will result in
* a NOT_FOUND error if the user has `spanner.databases.list` permission on
* the containing Cloud Spanner instance. Otherwise returns an empty set of
* permissions.
*
*/
public nl.topicus.jdbc.shaded.com.google.common.util.concurrent.ListenableFuture testIamPermissions(
nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsRequest request) {
return futureUnaryCall(
getChannel().newCall(METHOD_TEST_IAM_PERMISSIONS, getCallOptions()), request);
}
}
private static final int METHODID_LIST_DATABASES = 0;
private static final int METHODID_CREATE_DATABASE = 1;
private static final int METHODID_GET_DATABASE = 2;
private static final int METHODID_UPDATE_DATABASE_DDL = 3;
private static final int METHODID_DROP_DATABASE = 4;
private static final int METHODID_GET_DATABASE_DDL = 5;
private static final int METHODID_SET_IAM_POLICY = 6;
private static final int METHODID_GET_IAM_POLICY = 7;
private static final int METHODID_TEST_IAM_PERMISSIONS = 8;
private static final class MethodHandlers implements
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.UnaryMethod,
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.ServerStreamingMethod,
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.ClientStreamingMethod,
nl.topicus.jdbc.shaded.io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final DatabaseAdminImplBase serviceImpl;
private final int methodId;
MethodHandlers(DatabaseAdminImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_LIST_DATABASES:
serviceImpl.listDatabases((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.ListDatabasesRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_DATABASE:
serviceImpl.createDatabase((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.CreateDatabaseRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_DATABASE:
serviceImpl.getDatabase((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_DATABASE_DDL:
serviceImpl.updateDatabaseDdl((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DROP_DATABASE:
serviceImpl.dropDatabase((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.DropDatabaseRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_DATABASE_DDL:
serviceImpl.getDatabaseDdl((nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.GetDatabaseDdlRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET_IAM_POLICY:
serviceImpl.setIamPolicy((nl.topicus.jdbc.shaded.com.google.iam.v1.SetIamPolicyRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_IAM_POLICY:
serviceImpl.getIamPolicy((nl.topicus.jdbc.shaded.com.google.iam.v1.GetIamPolicyRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TEST_IAM_PERMISSIONS:
serviceImpl.testIamPermissions((nl.topicus.jdbc.shaded.com.google.iam.v1.TestIamPermissionsRequest) request,
(nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver invoke(
nl.topicus.jdbc.shaded.io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static final class DatabaseAdminDescriptorSupplier implements nl.topicus.jdbc.shaded.io.grpc.protobuf.ProtoFileDescriptorSupplier {
@java.lang.Override
public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return nl.topicus.jdbc.shaded.com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.getDescriptor();
}
}
private static volatile nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor serviceDescriptor;
public static nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor getServiceDescriptor() {
nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (DatabaseAdminGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = nl.topicus.jdbc.shaded.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new DatabaseAdminDescriptorSupplier())
.addMethod(METHOD_LIST_DATABASES)
.addMethod(METHOD_CREATE_DATABASE)
.addMethod(METHOD_GET_DATABASE)
.addMethod(METHOD_UPDATE_DATABASE_DDL)
.addMethod(METHOD_DROP_DATABASE)
.addMethod(METHOD_GET_DATABASE_DDL)
.addMethod(METHOD_SET_IAM_POLICY)
.addMethod(METHOD_GET_IAM_POLICY)
.addMethod(METHOD_TEST_IAM_PERMISSIONS)
.build();
}
}
}
return result;
}
}