@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcDatabaseAdminStub extends DatabaseAdminStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcDatabaseAdminStub, using the given settings.
|
protected |
GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDatabaseAdminStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static GrpcDatabaseAdminStub |
create(ClientContext clientContext) |
static GrpcDatabaseAdminStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcDatabaseAdminStub |
create(DatabaseAdminStubSettings settings) |
UnaryCallable<com.google.spanner.admin.database.v1.CreateDatabaseRequest,Operation> |
createDatabaseCallable() |
OperationCallable<com.google.spanner.admin.database.v1.CreateDatabaseRequest,com.google.spanner.admin.database.v1.Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata> |
createDatabaseOperationCallable() |
UnaryCallable<com.google.spanner.admin.database.v1.DropDatabaseRequest,Empty> |
dropDatabaseCallable() |
UnaryCallable<com.google.spanner.admin.database.v1.GetDatabaseRequest,com.google.spanner.admin.database.v1.Database> |
getDatabaseCallable() |
UnaryCallable<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest,com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> |
getDatabaseDdlCallable() |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicyCallable() |
GrpcOperationsStub |
getOperationsStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.spanner.admin.database.v1.ListDatabasesRequest,com.google.spanner.admin.database.v1.ListDatabasesResponse> |
listDatabasesCallable() |
UnaryCallable<com.google.spanner.admin.database.v1.ListDatabasesRequest,DatabaseAdminClient.ListDatabasesPagedResponse> |
listDatabasesPagedCallable() |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicyCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsCallable() |
UnaryCallable<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest,Operation> |
updateDatabaseDdlCallable() |
OperationCallable<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest,Empty,com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata> |
updateDatabaseDdlOperationCallable() |
protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcDatabaseAdminStub create(DatabaseAdminStubSettings settings) throws IOException
IOException
public static final GrpcDatabaseAdminStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcDatabaseAdminStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub()
getOperationsStub
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.ListDatabasesRequest,DatabaseAdminClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
listDatabasesPagedCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.ListDatabasesRequest,com.google.spanner.admin.database.v1.ListDatabasesResponse> listDatabasesCallable()
listDatabasesCallable
in class DatabaseAdminStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.spanner.admin.database.v1.CreateDatabaseRequest,com.google.spanner.admin.database.v1.Database,com.google.spanner.admin.database.v1.CreateDatabaseMetadata> createDatabaseOperationCallable()
createDatabaseOperationCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.CreateDatabaseRequest,Operation> createDatabaseCallable()
createDatabaseCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.GetDatabaseRequest,com.google.spanner.admin.database.v1.Database> getDatabaseCallable()
getDatabaseCallable
in class DatabaseAdminStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest,Empty,com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata> updateDatabaseDdlOperationCallable()
updateDatabaseDdlOperationCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest,Operation> updateDatabaseDdlCallable()
updateDatabaseDdlCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.DropDatabaseRequest,Empty> dropDatabaseCallable()
dropDatabaseCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.spanner.admin.database.v1.GetDatabaseDdlRequest,com.google.spanner.admin.database.v1.GetDatabaseDdlResponse> getDatabaseDdlCallable()
getDatabaseDdlCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
setIamPolicyCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
getIamPolicyCallable
in class DatabaseAdminStub
public UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
testIamPermissionsCallable
in class DatabaseAdminStub
public final void close()
close
in interface AutoCloseable
close
in class DatabaseAdminStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.