public class DatabaseAdminStubSettings extends StubSettings<DatabaseAdminStubSettings>
Settings class to configure an instance of DatabaseAdminStub .
The default instance has everything set to sensible defaults:
The default service address (spanner.googleapis.com) and default port (443) are used.
Credentials are acquired automatically through Application Default Credentials.
Retries are configured for idempotent methods but not for non-idempotent methods.
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 and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DatabaseAdminStubSettings . Builder databaseAdminSettingsBuilder =
DatabaseAdminStubSettings . newBuilder ();
databaseAdminSettingsBuilder
. getDatabaseSettings ()
. setRetrySettings (
databaseAdminSettingsBuilder
. getDatabaseSettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
DatabaseAdminStubSettings databaseAdminSettings = databaseAdminSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider ()
getDefaultEndpoint()
public static String getDefaultEndpoint ()
Obsolete
Use getEndpoint() instead
This feature is stable for usage in this major version, but may be deprecated in a future release.
Returns the default service endpoint.
Returns
Type
Description
String
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
newBuilder()
public static DatabaseAdminStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static DatabaseAdminStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
newHttpJsonBuilder()
public static DatabaseAdminStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
DatabaseAdminStubSettings(DatabaseAdminStubSettings.Builder settingsBuilder)
protected DatabaseAdminStubSettings ( DatabaseAdminStubSettings . Builder settingsBuilder )
Methods
copyBackupOperationSettings()
public OperationCallSettings<CopyBackupRequest , Backup , CopyBackupMetadata > copyBackupOperationSettings ()
Returns the object with the settings used for calls to copyBackup.
copyBackupSettings()
public UnaryCallSettings<CopyBackupRequest , Operation > copyBackupSettings ()
Returns the object with the settings used for calls to copyBackup.
createBackupOperationSettings()
public OperationCallSettings<CreateBackupRequest , Backup , CreateBackupMetadata > createBackupOperationSettings ()
Returns the object with the settings used for calls to createBackup.
createBackupScheduleSettings()
public UnaryCallSettings<CreateBackupScheduleRequest , BackupSchedule > createBackupScheduleSettings ()
Returns the object with the settings used for calls to createBackupSchedule.
createBackupSettings()
public UnaryCallSettings<CreateBackupRequest , Operation > createBackupSettings ()
Returns the object with the settings used for calls to createBackup.
createDatabaseOperationSettings()
public OperationCallSettings<CreateDatabaseRequest , Database , CreateDatabaseMetadata > createDatabaseOperationSettings ()
Returns the object with the settings used for calls to createDatabase.
createDatabaseSettings()
public UnaryCallSettings<CreateDatabaseRequest , Operation > createDatabaseSettings ()
Returns the object with the settings used for calls to createDatabase.
createStub()
public DatabaseAdminStub createStub ()
deleteBackupScheduleSettings()
public UnaryCallSettings<DeleteBackupScheduleRequest , Empty > deleteBackupScheduleSettings ()
Returns the object with the settings used for calls to deleteBackupSchedule.
deleteBackupSettings()
public UnaryCallSettings<DeleteBackupRequest , Empty > deleteBackupSettings ()
Returns the object with the settings used for calls to deleteBackup.
dropDatabaseSettings()
public UnaryCallSettings<DropDatabaseRequest , Empty > dropDatabaseSettings ()
Returns the object with the settings used for calls to dropDatabase.
getBackupScheduleSettings()
public UnaryCallSettings<GetBackupScheduleRequest , BackupSchedule > getBackupScheduleSettings ()
Returns the object with the settings used for calls to getBackupSchedule.
getBackupSettings()
public UnaryCallSettings<GetBackupRequest , Backup > getBackupSettings ()
Returns the object with the settings used for calls to getBackup.
getDatabaseDdlSettings()
public UnaryCallSettings<GetDatabaseDdlRequest , GetDatabaseDdlResponse > getDatabaseDdlSettings ()
Returns the object with the settings used for calls to getDatabaseDdl.
getDatabaseSettings()
public UnaryCallSettings<GetDatabaseRequest , Database > getDatabaseSettings ()
Returns the object with the settings used for calls to getDatabase.
getIamPolicySettings()
public UnaryCallSettings<GetIamPolicyRequest , Policy > getIamPolicySettings ()
Returns the object with the settings used for calls to getIamPolicy.
Returns
Type
Description
UnaryCallSettings <com.google.iam.v1.GetIamPolicyRequest ,com.google.iam.v1.Policy >
getServiceName()
public String getServiceName ()
Returns the default service name.
Returns
Type
Description
String
Overrides
listBackupOperationsSettings()
public PagedCallSettings<ListBackupOperationsRequest , ListBackupOperationsResponse , DatabaseAdminClient . ListBackupOperationsPagedResponse > listBackupOperationsSettings ()
Returns the object with the settings used for calls to listBackupOperations.
listBackupSchedulesSettings()
public PagedCallSettings<ListBackupSchedulesRequest , ListBackupSchedulesResponse , DatabaseAdminClient . ListBackupSchedulesPagedResponse > listBackupSchedulesSettings ()
Returns the object with the settings used for calls to listBackupSchedules.
listBackupsSettings()
public PagedCallSettings<ListBackupsRequest , ListBackupsResponse , DatabaseAdminClient . ListBackupsPagedResponse > listBackupsSettings ()
Returns the object with the settings used for calls to listBackups.
listDatabaseOperationsSettings()
public PagedCallSettings<ListDatabaseOperationsRequest , ListDatabaseOperationsResponse , DatabaseAdminClient . ListDatabaseOperationsPagedResponse > listDatabaseOperationsSettings ()
Returns the object with the settings used for calls to listDatabaseOperations.
listDatabaseRolesSettings()
public PagedCallSettings<ListDatabaseRolesRequest , ListDatabaseRolesResponse , DatabaseAdminClient . ListDatabaseRolesPagedResponse > listDatabaseRolesSettings ()
Returns the object with the settings used for calls to listDatabaseRoles.
listDatabasesSettings()
public PagedCallSettings<ListDatabasesRequest , ListDatabasesResponse , DatabaseAdminClient . ListDatabasesPagedResponse > listDatabasesSettings ()
Returns the object with the settings used for calls to listDatabases.
restoreDatabaseOperationSettings()
public OperationCallSettings<RestoreDatabaseRequest , Database , RestoreDatabaseMetadata > restoreDatabaseOperationSettings ()
Returns the object with the settings used for calls to restoreDatabase.
restoreDatabaseSettings()
public UnaryCallSettings<RestoreDatabaseRequest , Operation > restoreDatabaseSettings ()
Returns the object with the settings used for calls to restoreDatabase.
setIamPolicySettings()
public UnaryCallSettings<SetIamPolicyRequest , Policy > setIamPolicySettings ()
Returns the object with the settings used for calls to setIamPolicy.
Returns
Type
Description
UnaryCallSettings <com.google.iam.v1.SetIamPolicyRequest ,com.google.iam.v1.Policy >
testIamPermissionsSettings()
public UnaryCallSettings<TestIamPermissionsRequest , TestIamPermissionsResponse > testIamPermissionsSettings ()
Returns the object with the settings used for calls to testIamPermissions.
Returns
Type
Description
UnaryCallSettings <com.google.iam.v1.TestIamPermissionsRequest ,com.google.iam.v1.TestIamPermissionsResponse >
toBuilder()
public DatabaseAdminStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
updateBackupScheduleSettings()
public UnaryCallSettings<UpdateBackupScheduleRequest , BackupSchedule > updateBackupScheduleSettings ()
Returns the object with the settings used for calls to updateBackupSchedule.
updateBackupSettings()
public UnaryCallSettings<UpdateBackupRequest , Backup > updateBackupSettings ()
Returns the object with the settings used for calls to updateBackup.
updateDatabaseDdlOperationSettings()
public OperationCallSettings<UpdateDatabaseDdlRequest , Empty , UpdateDatabaseDdlMetadata > updateDatabaseDdlOperationSettings ()
Returns the object with the settings used for calls to updateDatabaseDdl.
updateDatabaseDdlSettings()
public UnaryCallSettings<UpdateDatabaseDdlRequest , Operation > updateDatabaseDdlSettings ()
Returns the object with the settings used for calls to updateDatabaseDdl.
updateDatabaseOperationSettings()
public OperationCallSettings<UpdateDatabaseRequest , Database , UpdateDatabaseMetadata > updateDatabaseOperationSettings ()
Returns the object with the settings used for calls to updateDatabase.
updateDatabaseSettings()
public UnaryCallSettings<UpdateDatabaseRequest , Operation > updateDatabaseSettings ()
Returns the object with the settings used for calls to updateDatabase.