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.
Static Methods
create(ClientContext clientContext)
public static final HttpJsonDatabaseAdminStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
HttpJsonDatabaseAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
public static final HttpJsonDatabaseAdminStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Returns | |
---|---|
Type | Description |
HttpJsonDatabaseAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(DatabaseAdminStubSettings settings)
public static final HttpJsonDatabaseAdminStub create(DatabaseAdminStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | DatabaseAdminStubSettings |
Returns | |
---|---|
Type | Description |
HttpJsonDatabaseAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
getMethodDescriptors()
public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
settings | DatabaseAdminStubSettings |
clientContext | ClientContext |
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 | |
---|---|
Name | Description |
settings | DatabaseAdminStubSettings |
clientContext | ClientContext |
callableFactory | HttpJsonStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
copyBackupCallable()
public UnaryCallable<CopyBackupRequest,Operation> copyBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CopyBackupRequest,Operation> |
copyBackupOperationCallable()
public OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata> copyBackupOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata> |
createBackupCallable()
public UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateBackupRequest,Operation> |
createBackupOperationCallable()
public OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata> createBackupOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata> |
createDatabaseCallable()
public UnaryCallable<CreateDatabaseRequest,Operation> createDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateDatabaseRequest,Operation> |
createDatabaseOperationCallable()
public OperationCallable<CreateDatabaseRequest,Database,CreateDatabaseMetadata> createDatabaseOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateDatabaseRequest,Database,CreateDatabaseMetadata> |
deleteBackupCallable()
public UnaryCallable<DeleteBackupRequest,Empty> deleteBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteBackupRequest,Empty> |
dropDatabaseCallable()
public UnaryCallable<DropDatabaseRequest,Empty> dropDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DropDatabaseRequest,Empty> |
getBackupCallable()
public UnaryCallable<GetBackupRequest,Backup> getBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetBackupRequest,Backup> |
getDatabaseCallable()
public UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDatabaseRequest,Database> |
getDatabaseDdlCallable()
public UnaryCallable<GetDatabaseDdlRequest,GetDatabaseDdlResponse> getDatabaseDdlCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDatabaseDdlRequest,GetDatabaseDdlResponse> |
getHttpJsonOperationsStub()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns | |
---|---|
Type | Description |
HttpJsonOperationsStub |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listBackupOperationsCallable()
public UnaryCallable<ListBackupOperationsRequest,ListBackupOperationsResponse> listBackupOperationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupOperationsRequest,ListBackupOperationsResponse> |
listBackupOperationsPagedCallable()
public UnaryCallable<ListBackupOperationsRequest,DatabaseAdminClient.ListBackupOperationsPagedResponse> listBackupOperationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupOperationsRequest,ListBackupOperationsPagedResponse> |
listBackupsCallable()
public UnaryCallable<ListBackupsRequest,ListBackupsResponse> listBackupsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupsRequest,ListBackupsResponse> |
listBackupsPagedCallable()
public UnaryCallable<ListBackupsRequest,DatabaseAdminClient.ListBackupsPagedResponse> listBackupsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupsRequest,ListBackupsPagedResponse> |
listDatabaseOperationsCallable()
public UnaryCallable<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse> listDatabaseOperationsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse> |
listDatabaseOperationsPagedCallable()
public UnaryCallable<ListDatabaseOperationsRequest,DatabaseAdminClient.ListDatabaseOperationsPagedResponse> listDatabaseOperationsPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabaseOperationsRequest,ListDatabaseOperationsPagedResponse> |
listDatabaseRolesCallable()
public UnaryCallable<ListDatabaseRolesRequest,ListDatabaseRolesResponse> listDatabaseRolesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabaseRolesRequest,ListDatabaseRolesResponse> |
listDatabaseRolesPagedCallable()
public UnaryCallable<ListDatabaseRolesRequest,DatabaseAdminClient.ListDatabaseRolesPagedResponse> listDatabaseRolesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabaseRolesRequest,ListDatabaseRolesPagedResponse> |
listDatabasesCallable()
public UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> listDatabasesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesResponse> |
listDatabasesPagedCallable()
public UnaryCallable<ListDatabasesRequest,DatabaseAdminClient.ListDatabasesPagedResponse> listDatabasesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListDatabasesRequest,ListDatabasesPagedResponse> |
restoreDatabaseCallable()
public UnaryCallable<RestoreDatabaseRequest,Operation> restoreDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<RestoreDatabaseRequest,Operation> |
restoreDatabaseOperationCallable()
public OperationCallable<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> restoreDatabaseOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateBackupCallable()
public UnaryCallable<UpdateBackupRequest,Backup> updateBackupCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateBackupRequest,Backup> |
updateDatabaseCallable()
public UnaryCallable<UpdateDatabaseRequest,Operation> updateDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDatabaseRequest,Operation> |
updateDatabaseDdlCallable()
public UnaryCallable<UpdateDatabaseDdlRequest,Operation> updateDatabaseDdlCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateDatabaseDdlRequest,Operation> |
updateDatabaseDdlOperationCallable()
public OperationCallable<UpdateDatabaseDdlRequest,Empty,UpdateDatabaseDdlMetadata> updateDatabaseDdlOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateDatabaseDdlRequest,Empty,UpdateDatabaseDdlMetadata> |
updateDatabaseOperationCallable()
public OperationCallable<UpdateDatabaseRequest,Database,UpdateDatabaseMetadata> updateDatabaseOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateDatabaseRequest,Database,UpdateDatabaseMetadata> |