Class GrpcDatabaseAdminStub (6.52.1)

public class GrpcDatabaseAdminStub extends DatabaseAdminStub

gRPC stub implementation for the DatabaseAdmin service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DatabaseAdminStub > GrpcDatabaseAdminStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDatabaseAdminStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDatabaseAdminStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDatabaseAdminStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDatabaseAdminStub
Exceptions
TypeDescription
IOException

create(DatabaseAdminStubSettings settings)

public static final GrpcDatabaseAdminStub create(DatabaseAdminStubSettings settings)
Parameter
NameDescription
settingsDatabaseAdminStubSettings
Returns
TypeDescription
GrpcDatabaseAdminStub
Exceptions
TypeDescription
IOException

Constructors

GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)

protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsDatabaseAdminStubSettings
clientContextClientContext

GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsDatabaseAdminStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

copyBackupCallable()

public UnaryCallable<CopyBackupRequest,Operation> copyBackupCallable()
Returns
TypeDescription
UnaryCallable<CopyBackupRequest,Operation>
Overrides

copyBackupOperationCallable()

public OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata> copyBackupOperationCallable()
Returns
TypeDescription
OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata>
Overrides

createBackupCallable()

public UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()
Returns
TypeDescription
UnaryCallable<CreateBackupRequest,Operation>
Overrides

createBackupOperationCallable()

public OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata> createBackupOperationCallable()
Returns
TypeDescription
OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata>
Overrides

createDatabaseCallable()

public UnaryCallable<CreateDatabaseRequest,Operation> createDatabaseCallable()
Returns
TypeDescription
UnaryCallable<CreateDatabaseRequest,Operation>
Overrides

createDatabaseOperationCallable()

public OperationCallable<CreateDatabaseRequest,Database,CreateDatabaseMetadata> createDatabaseOperationCallable()
Returns
TypeDescription
OperationCallable<CreateDatabaseRequest,Database,CreateDatabaseMetadata>
Overrides

deleteBackupCallable()

public UnaryCallable<DeleteBackupRequest,Empty> deleteBackupCallable()
Returns
TypeDescription
UnaryCallable<DeleteBackupRequest,Empty>
Overrides

dropDatabaseCallable()

public UnaryCallable<DropDatabaseRequest,Empty> dropDatabaseCallable()
Returns
TypeDescription
UnaryCallable<DropDatabaseRequest,Empty>
Overrides

getBackupCallable()

public UnaryCallable<GetBackupRequest,Backup> getBackupCallable()
Returns
TypeDescription
UnaryCallable<GetBackupRequest,Backup>
Overrides

getDatabaseCallable()

public UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()
Returns
TypeDescription
UnaryCallable<GetDatabaseRequest,Database>
Overrides

getDatabaseDdlCallable()

public UnaryCallable<GetDatabaseDdlRequest,GetDatabaseDdlResponse> getDatabaseDdlCallable()
Returns
TypeDescription
UnaryCallable<GetDatabaseDdlRequest,GetDatabaseDdlResponse>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listBackupOperationsCallable()

public UnaryCallable<ListBackupOperationsRequest,ListBackupOperationsResponse> listBackupOperationsCallable()
Returns
TypeDescription
UnaryCallable<ListBackupOperationsRequest,ListBackupOperationsResponse>
Overrides

listBackupOperationsPagedCallable()

public UnaryCallable<ListBackupOperationsRequest,DatabaseAdminClient.ListBackupOperationsPagedResponse> listBackupOperationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBackupOperationsRequest,ListBackupOperationsPagedResponse>
Overrides

listBackupsCallable()

public UnaryCallable<ListBackupsRequest,ListBackupsResponse> listBackupsCallable()
Returns
TypeDescription
UnaryCallable<ListBackupsRequest,ListBackupsResponse>
Overrides

listBackupsPagedCallable()

public UnaryCallable<ListBackupsRequest,DatabaseAdminClient.ListBackupsPagedResponse> listBackupsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBackupsRequest,ListBackupsPagedResponse>
Overrides

listDatabaseOperationsCallable()

public UnaryCallable<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse> listDatabaseOperationsCallable()
Returns
TypeDescription
UnaryCallable<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse>
Overrides

listDatabaseOperationsPagedCallable()

public UnaryCallable<ListDatabaseOperationsRequest,DatabaseAdminClient.ListDatabaseOperationsPagedResponse> listDatabaseOperationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDatabaseOperationsRequest,ListDatabaseOperationsPagedResponse>
Overrides

listDatabaseRolesCallable()

public UnaryCallable<ListDatabaseRolesRequest,ListDatabaseRolesResponse> listDatabaseRolesCallable()
Returns
TypeDescription
UnaryCallable<ListDatabaseRolesRequest,ListDatabaseRolesResponse>
Overrides

listDatabaseRolesPagedCallable()

public UnaryCallable<ListDatabaseRolesRequest,DatabaseAdminClient.ListDatabaseRolesPagedResponse> listDatabaseRolesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDatabaseRolesRequest,ListDatabaseRolesPagedResponse>
Overrides

listDatabasesCallable()

public UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
Returns
TypeDescription
UnaryCallable<ListDatabasesRequest,ListDatabasesResponse>
Overrides

listDatabasesPagedCallable()

public UnaryCallable<ListDatabasesRequest,DatabaseAdminClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDatabasesRequest,ListDatabasesPagedResponse>
Overrides

restoreDatabaseCallable()

public UnaryCallable<RestoreDatabaseRequest,Operation> restoreDatabaseCallable()
Returns
TypeDescription
UnaryCallable<RestoreDatabaseRequest,Operation>
Overrides

restoreDatabaseOperationCallable()

public OperationCallable<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> restoreDatabaseOperationCallable()
Returns
TypeDescription
OperationCallable<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateBackupCallable()

public UnaryCallable<UpdateBackupRequest,Backup> updateBackupCallable()
Returns
TypeDescription
UnaryCallable<UpdateBackupRequest,Backup>
Overrides

updateDatabaseCallable()

public UnaryCallable<UpdateDatabaseRequest,Operation> updateDatabaseCallable()
Returns
TypeDescription
UnaryCallable<UpdateDatabaseRequest,Operation>
Overrides

updateDatabaseDdlCallable()

public UnaryCallable<UpdateDatabaseDdlRequest,Operation> updateDatabaseDdlCallable()
Returns
TypeDescription
UnaryCallable<UpdateDatabaseDdlRequest,Operation>
Overrides

updateDatabaseDdlOperationCallable()

public OperationCallable<UpdateDatabaseDdlRequest,Empty,UpdateDatabaseDdlMetadata> updateDatabaseDdlOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateDatabaseDdlRequest,Empty,UpdateDatabaseDdlMetadata>
Overrides

updateDatabaseOperationCallable()

public OperationCallable<UpdateDatabaseRequest,Database,UpdateDatabaseMetadata> updateDatabaseOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateDatabaseRequest,Database,UpdateDatabaseMetadata>
Overrides