Class DatabaseAdminSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<DatabaseAdminSettings,DatabaseAdminSettings.Builder>
-
- com.google.cloud.spanner.admin.database.v1.DatabaseAdminSettings.Builder
-
- Enclosing class:
- DatabaseAdminSettings
public static class DatabaseAdminSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<DatabaseAdminSettings,DatabaseAdminSettings.Builder>
Builder for DatabaseAdminSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(DatabaseAdminSettings settings)
protected
Builder(DatabaseAdminStubSettings.Builder stubSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseAdminSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.DatabaseAdminSettings
build()
com.google.api.gax.rpc.OperationCallSettings.Builder<CopyBackupRequest,Backup,CopyBackupMetadata>
copyBackupOperationSettings()
Returns the builder for the settings used for calls to copyBackup.com.google.api.gax.rpc.UnaryCallSettings.Builder<CopyBackupRequest,com.google.longrunning.Operation>
copyBackupSettings()
Returns the builder for the settings used for calls to copyBackup.com.google.api.gax.rpc.OperationCallSettings.Builder<CreateBackupRequest,Backup,CreateBackupMetadata>
createBackupOperationSettings()
Returns the builder for the settings used for calls to createBackup.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateBackupRequest,com.google.longrunning.Operation>
createBackupSettings()
Returns the builder for the settings used for calls to createBackup.com.google.api.gax.rpc.OperationCallSettings.Builder<CreateDatabaseRequest,Database,CreateDatabaseMetadata>
createDatabaseOperationSettings()
Returns the builder for the settings used for calls to createDatabase.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateDatabaseRequest,com.google.longrunning.Operation>
createDatabaseSettings()
Returns the builder for the settings used for calls to createDatabase.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteBackupRequest,com.google.protobuf.Empty>
deleteBackupSettings()
Returns the builder for the settings used for calls to deleteBackup.com.google.api.gax.rpc.UnaryCallSettings.Builder<DropDatabaseRequest,com.google.protobuf.Empty>
dropDatabaseSettings()
Returns the builder for the settings used for calls to dropDatabase.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetBackupRequest,Backup>
getBackupSettings()
Returns the builder for the settings used for calls to getBackup.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetDatabaseDdlRequest,GetDatabaseDdlResponse>
getDatabaseDdlSettings()
Returns the builder for the settings used for calls to getDatabaseDdl.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetDatabaseRequest,Database>
getDatabaseSettings()
Returns the builder for the settings used for calls to getDatabase.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.DatabaseAdminStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.PagedCallSettings.Builder<ListBackupOperationsRequest,ListBackupOperationsResponse,DatabaseAdminClient.ListBackupOperationsPagedResponse>
listBackupOperationsSettings()
Returns the builder for the settings used for calls to listBackupOperations.com.google.api.gax.rpc.PagedCallSettings.Builder<ListBackupsRequest,ListBackupsResponse,DatabaseAdminClient.ListBackupsPagedResponse>
listBackupsSettings()
Returns the builder for the settings used for calls to listBackups.com.google.api.gax.rpc.PagedCallSettings.Builder<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse,DatabaseAdminClient.ListDatabaseOperationsPagedResponse>
listDatabaseOperationsSettings()
Returns the builder for the settings used for calls to listDatabaseOperations.com.google.api.gax.rpc.PagedCallSettings.Builder<ListDatabaseRolesRequest,ListDatabaseRolesResponse,DatabaseAdminClient.ListDatabaseRolesPagedResponse>
listDatabaseRolesSettings()
Returns the builder for the settings used for calls to listDatabaseRoles.com.google.api.gax.rpc.PagedCallSettings.Builder<ListDatabasesRequest,ListDatabasesResponse,DatabaseAdminClient.ListDatabasesPagedResponse>
listDatabasesSettings()
Returns the builder for the settings used for calls to listDatabases.com.google.api.gax.rpc.OperationCallSettings.Builder<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata>
restoreDatabaseOperationSettings()
Returns the builder for the settings used for calls to restoreDatabase.com.google.api.gax.rpc.UnaryCallSettings.Builder<RestoreDatabaseRequest,com.google.longrunning.Operation>
restoreDatabaseSettings()
Returns the builder for the settings used for calls to restoreDatabase.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateBackupRequest,Backup>
updateBackupSettings()
Returns the builder for the settings used for calls to updateBackup.com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateDatabaseDdlRequest,com.google.protobuf.Empty,UpdateDatabaseDdlMetadata>
updateDatabaseDdlOperationSettings()
Returns the builder for the settings used for calls to updateDatabaseDdl.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateDatabaseDdlRequest,com.google.longrunning.Operation>
updateDatabaseDdlSettings()
Returns the builder for the settings used for calls to updateDatabaseDdl.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(DatabaseAdminSettings settings)
-
Builder
protected Builder(DatabaseAdminStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public DatabaseAdminStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public DatabaseAdminSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.Note: This method does not support applying settings to streaming methods.
-
listDatabasesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListDatabasesRequest,ListDatabasesResponse,DatabaseAdminClient.ListDatabasesPagedResponse> listDatabasesSettings()
Returns the builder for the settings used for calls to listDatabases.
-
createDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateDatabaseRequest,com.google.longrunning.Operation> createDatabaseSettings()
Returns the builder for the settings used for calls to createDatabase.
-
createDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateDatabaseRequest,Database,CreateDatabaseMetadata> createDatabaseOperationSettings()
Returns the builder for the settings used for calls to createDatabase.
-
getDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetDatabaseRequest,Database> getDatabaseSettings()
Returns the builder for the settings used for calls to getDatabase.
-
updateDatabaseDdlSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateDatabaseDdlRequest,com.google.longrunning.Operation> updateDatabaseDdlSettings()
Returns the builder for the settings used for calls to updateDatabaseDdl.
-
updateDatabaseDdlOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateDatabaseDdlRequest,com.google.protobuf.Empty,UpdateDatabaseDdlMetadata> updateDatabaseDdlOperationSettings()
Returns the builder for the settings used for calls to updateDatabaseDdl.
-
dropDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DropDatabaseRequest,com.google.protobuf.Empty> dropDatabaseSettings()
Returns the builder for the settings used for calls to dropDatabase.
-
getDatabaseDdlSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetDatabaseDdlRequest,GetDatabaseDdlResponse> getDatabaseDdlSettings()
Returns the builder for the settings used for calls to getDatabaseDdl.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.
-
createBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateBackupRequest,com.google.longrunning.Operation> createBackupSettings()
Returns the builder for the settings used for calls to createBackup.
-
createBackupOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateBackupRequest,Backup,CreateBackupMetadata> createBackupOperationSettings()
Returns the builder for the settings used for calls to createBackup.
-
copyBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CopyBackupRequest,com.google.longrunning.Operation> copyBackupSettings()
Returns the builder for the settings used for calls to copyBackup.
-
copyBackupOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CopyBackupRequest,Backup,CopyBackupMetadata> copyBackupOperationSettings()
Returns the builder for the settings used for calls to copyBackup.
-
getBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetBackupRequest,Backup> getBackupSettings()
Returns the builder for the settings used for calls to getBackup.
-
updateBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateBackupRequest,Backup> updateBackupSettings()
Returns the builder for the settings used for calls to updateBackup.
-
deleteBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteBackupRequest,com.google.protobuf.Empty> deleteBackupSettings()
Returns the builder for the settings used for calls to deleteBackup.
-
listBackupsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListBackupsRequest,ListBackupsResponse,DatabaseAdminClient.ListBackupsPagedResponse> listBackupsSettings()
Returns the builder for the settings used for calls to listBackups.
-
restoreDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RestoreDatabaseRequest,com.google.longrunning.Operation> restoreDatabaseSettings()
Returns the builder for the settings used for calls to restoreDatabase.
-
restoreDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> restoreDatabaseOperationSettings()
Returns the builder for the settings used for calls to restoreDatabase.
-
listDatabaseOperationsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListDatabaseOperationsRequest,ListDatabaseOperationsResponse,DatabaseAdminClient.ListDatabaseOperationsPagedResponse> listDatabaseOperationsSettings()
Returns the builder for the settings used for calls to listDatabaseOperations.
-
listBackupOperationsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListBackupOperationsRequest,ListBackupOperationsResponse,DatabaseAdminClient.ListBackupOperationsPagedResponse> listBackupOperationsSettings()
Returns the builder for the settings used for calls to listBackupOperations.
-
listDatabaseRolesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListDatabaseRolesRequest,ListDatabaseRolesResponse,DatabaseAdminClient.ListDatabaseRolesPagedResponse> listDatabaseRolesSettings()
Returns the builder for the settings used for calls to listDatabaseRoles.
-
build
public DatabaseAdminSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<DatabaseAdminSettings,DatabaseAdminSettings.Builder>
- Throws:
IOException
-
-