@Generated(value="by gapic-generator-java") public class DatabaseAdminSettings extends ClientSettings<DatabaseAdminSettings>
DatabaseAdminClient
.
The default instance has everything set to sensible defaults:
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getDatabase to 30 seconds:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
DatabaseAdminSettings.Builder databaseAdminSettingsBuilder = DatabaseAdminSettings.newBuilder();
databaseAdminSettingsBuilder
.getDatabaseSettings()
.setRetrySettings(
databaseAdminSettingsBuilder
.getDatabaseSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DatabaseAdminSettings databaseAdminSettings = databaseAdminSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
DatabaseAdminSettings.Builder
Builder for DatabaseAdminSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
DatabaseAdminSettings(DatabaseAdminSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
OperationCallSettings<CopyBackupRequest,Backup,CopyBackupMetadata> |
copyBackupOperationSettings()
Returns the object with the settings used for calls to copyBackup.
|
UnaryCallSettings<CopyBackupRequest,Operation> |
copyBackupSettings()
Returns the object with the settings used for calls to copyBackup.
|
static DatabaseAdminSettings |
create(DatabaseAdminStubSettings stub) |
OperationCallSettings<CreateBackupRequest,Backup,CreateBackupMetadata> |
createBackupOperationSettings()
Returns the object with the settings used for calls to createBackup.
|
UnaryCallSettings<CreateBackupRequest,Operation> |
createBackupSettings()
Returns the object with the settings used for calls to createBackup.
|
OperationCallSettings<CreateDatabaseRequest,Database,CreateDatabaseMetadata> |
createDatabaseOperationSettings()
Returns the object with the settings used for calls to createDatabase.
|
UnaryCallSettings<CreateDatabaseRequest,Operation> |
createDatabaseSettings()
Returns the object with the settings used for calls to createDatabase.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<DeleteBackupRequest,Empty> |
deleteBackupSettings()
Returns the object with the settings used for calls to deleteBackup.
|
UnaryCallSettings<DropDatabaseRequest,Empty> |
dropDatabaseSettings()
Returns the object with the settings used for calls to dropDatabase.
|
UnaryCallSettings<GetBackupRequest,Backup> |
getBackupSettings()
Returns the object with the settings used for calls to getBackup.
|
UnaryCallSettings<GetDatabaseDdlRequest,GetDatabaseDdlResponse> |
getDatabaseDdlSettings()
Returns the object with the settings used for calls to getDatabaseDdl.
|
UnaryCallSettings<GetDatabaseRequest,Database> |
getDatabaseSettings()
Returns the object with the settings used for calls to getDatabase.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
PagedCallSettings<ListBackupOperationsRequest,ListBackupOperationsResponse,DatabaseAdminClient.ListBackupOperationsPagedResponse> |
listBackupOperationsSettings()
Returns the object with the settings used for calls to listBackupOperations.
|
PagedCallSettings<ListBackupsRequest,ListBackupsResponse,DatabaseAdminClient.ListBackupsPagedResponse> |
listBackupsSettings()
Returns the object with the settings used for calls to listBackups.
|
PagedCallSettings<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse,DatabaseAdminClient.ListDatabaseOperationsPagedResponse> |
listDatabaseOperationsSettings()
Returns the object with the settings used for calls to listDatabaseOperations.
|
PagedCallSettings<ListDatabasesRequest,ListDatabasesResponse,DatabaseAdminClient.ListDatabasesPagedResponse> |
listDatabasesSettings()
Returns the object with the settings used for calls to listDatabases.
|
static DatabaseAdminSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static DatabaseAdminSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
OperationCallSettings<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> |
restoreDatabaseOperationSettings()
Returns the object with the settings used for calls to restoreDatabase.
|
UnaryCallSettings<RestoreDatabaseRequest,Operation> |
restoreDatabaseSettings()
Returns the object with the settings used for calls to restoreDatabase.
|
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
DatabaseAdminSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<UpdateBackupRequest,Backup> |
updateBackupSettings()
Returns the object with the settings used for calls to updateBackup.
|
OperationCallSettings<UpdateDatabaseDdlRequest,Empty,UpdateDatabaseDdlMetadata> |
updateDatabaseDdlOperationSettings()
Returns the object with the settings used for calls to updateDatabaseDdl.
|
UnaryCallSettings<UpdateDatabaseDdlRequest,Operation> |
updateDatabaseDdlSettings()
Returns the object with the settings used for calls to updateDatabaseDdl.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected DatabaseAdminSettings(DatabaseAdminSettings.Builder settingsBuilder) throws IOException
IOException
public PagedCallSettings<ListDatabasesRequest,ListDatabasesResponse,DatabaseAdminClient.ListDatabasesPagedResponse> listDatabasesSettings()
public UnaryCallSettings<CreateDatabaseRequest,Operation> createDatabaseSettings()
public OperationCallSettings<CreateDatabaseRequest,Database,CreateDatabaseMetadata> createDatabaseOperationSettings()
public UnaryCallSettings<GetDatabaseRequest,Database> getDatabaseSettings()
public UnaryCallSettings<UpdateDatabaseDdlRequest,Operation> updateDatabaseDdlSettings()
public OperationCallSettings<UpdateDatabaseDdlRequest,Empty,UpdateDatabaseDdlMetadata> updateDatabaseDdlOperationSettings()
public UnaryCallSettings<DropDatabaseRequest,Empty> dropDatabaseSettings()
public UnaryCallSettings<GetDatabaseDdlRequest,GetDatabaseDdlResponse> getDatabaseDdlSettings()
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public UnaryCallSettings<CreateBackupRequest,Operation> createBackupSettings()
public OperationCallSettings<CreateBackupRequest,Backup,CreateBackupMetadata> createBackupOperationSettings()
public UnaryCallSettings<CopyBackupRequest,Operation> copyBackupSettings()
public OperationCallSettings<CopyBackupRequest,Backup,CopyBackupMetadata> copyBackupOperationSettings()
public UnaryCallSettings<GetBackupRequest,Backup> getBackupSettings()
public UnaryCallSettings<UpdateBackupRequest,Backup> updateBackupSettings()
public UnaryCallSettings<DeleteBackupRequest,Empty> deleteBackupSettings()
public PagedCallSettings<ListBackupsRequest,ListBackupsResponse,DatabaseAdminClient.ListBackupsPagedResponse> listBackupsSettings()
public UnaryCallSettings<RestoreDatabaseRequest,Operation> restoreDatabaseSettings()
public OperationCallSettings<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> restoreDatabaseOperationSettings()
public PagedCallSettings<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse,DatabaseAdminClient.ListDatabaseOperationsPagedResponse> listDatabaseOperationsSettings()
public PagedCallSettings<ListBackupOperationsRequest,ListBackupOperationsResponse,DatabaseAdminClient.ListBackupOperationsPagedResponse> listBackupOperationsSettings()
public static final DatabaseAdminSettings create(DatabaseAdminStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static DatabaseAdminSettings.Builder newBuilder()
public static DatabaseAdminSettings.Builder newBuilder(ClientContext clientContext)
public DatabaseAdminSettings.Builder toBuilder()
toBuilder
in class ClientSettings<DatabaseAdminSettings>
Copyright © 2022 Google LLC. All rights reserved.