Class HttpJsonDatabaseAdminStub (6.50.1)

public class HttpJsonDatabaseAdminStub extends DatabaseAdminStub

REST stub implementation for the DatabaseAdmin service API.

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

Inheritance

java.lang.Object > DatabaseAdminStub > HttpJsonDatabaseAdminStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDatabaseAdminStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonDatabaseAdminStub
Exceptions
TypeDescription
IOException

create(DatabaseAdminStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)

protected HttpJsonDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDatabaseAdminStub, 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

HttpJsonDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDatabaseAdminStub, 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
callableFactoryHttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
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