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.
Static Methods
create(ClientContext clientContext)
public static final GrpcDatabaseAdminStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
GrpcDatabaseAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcDatabaseAdminStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
Returns | |
---|---|
Type | Description |
GrpcDatabaseAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(DatabaseAdminStubSettings settings)
public static final GrpcDatabaseAdminStub create(DatabaseAdminStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
DatabaseAdminStubSettings |
Returns | |
---|---|
Type | Description |
GrpcDatabaseAdminStub |
Exceptions | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
settings |
DatabaseAdminStubSettings |
clientContext |
ClientContext |
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 | |
---|---|
Name | Description |
settings |
DatabaseAdminStubSettings |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
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> |
createBackupScheduleCallable()
public UnaryCallable<CreateBackupScheduleRequest,BackupSchedule> createBackupScheduleCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateBackupScheduleRequest,BackupSchedule> |
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> |
deleteBackupScheduleCallable()
public UnaryCallable<DeleteBackupScheduleRequest,Empty> deleteBackupScheduleCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteBackupScheduleRequest,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> |
getBackupScheduleCallable()
public UnaryCallable<GetBackupScheduleRequest,BackupSchedule> getBackupScheduleCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetBackupScheduleRequest,BackupSchedule> |
getDatabaseCallable()
public UnaryCallable<GetDatabaseRequest,Database> getDatabaseCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDatabaseRequest,Database> |
getDatabaseDdlCallable()
public UnaryCallable<GetDatabaseDdlRequest,GetDatabaseDdlResponse> getDatabaseDdlCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<GetDatabaseDdlRequest,GetDatabaseDdlResponse> |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Returns | |
---|---|
Type | Description |
GrpcOperationsStub |
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> |
listBackupSchedulesCallable()
public UnaryCallable<ListBackupSchedulesRequest,ListBackupSchedulesResponse> listBackupSchedulesCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupSchedulesRequest,ListBackupSchedulesResponse> |
listBackupSchedulesPagedCallable()
public UnaryCallable<ListBackupSchedulesRequest,DatabaseAdminClient.ListBackupSchedulesPagedResponse> listBackupSchedulesPagedCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<ListBackupSchedulesRequest,ListBackupSchedulesPagedResponse> |
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> |
updateBackupScheduleCallable()
public UnaryCallable<UpdateBackupScheduleRequest,BackupSchedule> updateBackupScheduleCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateBackupScheduleRequest,BackupSchedule> |
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> |