Class FirestoreAdminStubSettings
java.lang.Object
com.google.api.gax.rpc.StubSettings<FirestoreAdminStubSettings>
com.google.cloud.firestore.v1.stub.FirestoreAdminStubSettings
@Generated("by gapic-generator-java")
public class FirestoreAdminStubSettings
extends com.google.api.gax.rpc.StubSettings<FirestoreAdminStubSettings>
Settings class to configure an instance of
FirestoreAdminStub.
The default instance has everything set to sensible defaults:
- The default service address (firestore.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 [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of getIndex:
// 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
FirestoreAdminStubSettings.Builder firestoreAdminSettingsBuilder =
FirestoreAdminStubSettings.newBuilder();
firestoreAdminSettingsBuilder
.getIndexSettings()
.setRetrySettings(
firestoreAdminSettingsBuilder
.getIndexSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
FirestoreAdminStubSettings firestoreAdminSettings = firestoreAdminSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
additional support in setting retries.
To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for createIndex:
// 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
FirestoreAdminStubSettings.Builder firestoreAdminSettingsBuilder =
FirestoreAdminStubSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
firestoreAdminSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for FirestoreAdminStubSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFirestoreAdminStubSettings(FirestoreAdminStubSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.OperationCallSettings<BulkDeleteDocumentsRequest,BulkDeleteDocumentsResponse, BulkDeleteDocumentsMetadata> Returns the object with the settings used for calls to bulkDeleteDocuments.com.google.api.gax.rpc.UnaryCallSettings<BulkDeleteDocumentsRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to bulkDeleteDocuments.com.google.api.gax.rpc.OperationCallSettings<CloneDatabaseRequest,Database, CloneDatabaseMetadata> Returns the object with the settings used for calls to cloneDatabase.com.google.api.gax.rpc.UnaryCallSettings<CloneDatabaseRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to cloneDatabase.com.google.api.gax.rpc.UnaryCallSettings<CreateBackupScheduleRequest,BackupSchedule> Returns the object with the settings used for calls to createBackupSchedule.com.google.api.gax.rpc.OperationCallSettings<CreateDatabaseRequest,Database, CreateDatabaseMetadata> Returns the object with the settings used for calls to createDatabase.com.google.api.gax.rpc.UnaryCallSettings<CreateDatabaseRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to createDatabase.com.google.api.gax.rpc.OperationCallSettings<CreateIndexRequest,Index, IndexOperationMetadata> Returns the object with the settings used for calls to createIndex.com.google.api.gax.rpc.UnaryCallSettings<CreateIndexRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to createIndex.com.google.api.gax.rpc.UnaryCallSettings<CreateUserCredsRequest,UserCreds> Returns the object with the settings used for calls to createUserCreds.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builderstatic com.google.api.gax.core.GoogleCredentialsProvider.BuilderReturns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.BuilderReturns a builder for the default ExecutorProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builderstatic com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.BuilderReturns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builderstatic com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.BuilderReturns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvidercom.google.api.gax.rpc.UnaryCallSettings<DeleteBackupScheduleRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteBackupSchedule.com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteBackup.com.google.api.gax.rpc.OperationCallSettings<DeleteDatabaseRequest,Database, DeleteDatabaseMetadata> Returns the object with the settings used for calls to deleteDatabase.com.google.api.gax.rpc.UnaryCallSettings<DeleteDatabaseRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to deleteDatabase.com.google.api.gax.rpc.UnaryCallSettings<DeleteIndexRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteIndex.com.google.api.gax.rpc.UnaryCallSettings<DeleteUserCredsRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteUserCreds.com.google.api.gax.rpc.UnaryCallSettings<DisableUserCredsRequest,UserCreds> Returns the object with the settings used for calls to disableUserCreds.com.google.api.gax.rpc.UnaryCallSettings<EnableUserCredsRequest,UserCreds> Returns the object with the settings used for calls to enableUserCreds.com.google.api.gax.rpc.OperationCallSettings<ExportDocumentsRequest,ExportDocumentsResponse, ExportDocumentsMetadata> Returns the object with the settings used for calls to exportDocuments.com.google.api.gax.rpc.UnaryCallSettings<ExportDocumentsRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to exportDocuments.com.google.api.gax.rpc.UnaryCallSettings<GetBackupScheduleRequest,BackupSchedule> Returns the object with the settings used for calls to getBackupSchedule.com.google.api.gax.rpc.UnaryCallSettings<GetBackupRequest,Backup> Returns the object with the settings used for calls to getBackup.com.google.api.gax.rpc.UnaryCallSettings<GetDatabaseRequest,Database> Returns the object with the settings used for calls to getDatabase.static StringReturns the default service endpoint.static StringReturns the default mTLS service endpoint.Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetFieldRequest,Field> Returns the object with the settings used for calls to getField.com.google.api.gax.rpc.UnaryCallSettings<GetIndexRequest,Index> Returns the object with the settings used for calls to getIndex.Returns the default service name.com.google.api.gax.rpc.UnaryCallSettings<GetUserCredsRequest,UserCreds> Returns the object with the settings used for calls to getUserCreds.com.google.api.gax.rpc.OperationCallSettings<ImportDocumentsRequest,com.google.protobuf.Empty, ImportDocumentsMetadata> Returns the object with the settings used for calls to importDocuments.com.google.api.gax.rpc.UnaryCallSettings<ImportDocumentsRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to importDocuments.com.google.api.gax.rpc.UnaryCallSettings<ListBackupSchedulesRequest,ListBackupSchedulesResponse> Returns the object with the settings used for calls to listBackupSchedules.com.google.api.gax.rpc.UnaryCallSettings<ListBackupsRequest,ListBackupsResponse> Returns the object with the settings used for calls to listBackups.com.google.api.gax.rpc.UnaryCallSettings<ListDatabasesRequest,ListDatabasesResponse> Returns the object with the settings used for calls to listDatabases.com.google.api.gax.rpc.PagedCallSettings<ListFieldsRequest,ListFieldsResponse, FirestoreAdminClient.ListFieldsPagedResponse> Returns the object with the settings used for calls to listFields.com.google.api.gax.rpc.PagedCallSettings<ListIndexesRequest,ListIndexesResponse, FirestoreAdminClient.ListIndexesPagedResponse> Returns the object with the settings used for calls to listIndexes.com.google.api.gax.rpc.UnaryCallSettings<ListUserCredsRequest,ListUserCredsResponse> Returns the object with the settings used for calls to listUserCreds.Returns a new gRPC builder for this class.newBuilder(com.google.api.gax.rpc.ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.com.google.api.gax.rpc.UnaryCallSettings<ResetUserPasswordRequest,UserCreds> Returns the object with the settings used for calls to resetUserPassword.com.google.api.gax.rpc.OperationCallSettings<RestoreDatabaseRequest,Database, RestoreDatabaseMetadata> Returns the object with the settings used for calls to restoreDatabase.com.google.api.gax.rpc.UnaryCallSettings<RestoreDatabaseRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to restoreDatabase.Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateBackupScheduleRequest,BackupSchedule> Returns the object with the settings used for calls to updateBackupSchedule.com.google.api.gax.rpc.OperationCallSettings<UpdateDatabaseRequest,Database, UpdateDatabaseMetadata> Returns the object with the settings used for calls to updateDatabase.com.google.api.gax.rpc.UnaryCallSettings<UpdateDatabaseRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to updateDatabase.com.google.api.gax.rpc.OperationCallSettings<UpdateFieldRequest,Field, FieldOperationMetadata> Returns the object with the settings used for calls to updateField.com.google.api.gax.rpc.UnaryCallSettings<UpdateFieldRequest,com.google.longrunning.Operation> Returns the object with the settings used for calls to updateField.Methods inherited from class com.google.api.gax.rpc.StubSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toString
-
Constructor Details
-
FirestoreAdminStubSettings
protected FirestoreAdminStubSettings(FirestoreAdminStubSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
createIndexSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateIndexRequest,com.google.longrunning.Operation> createIndexSettings()Returns the object with the settings used for calls to createIndex. -
createIndexOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateIndexRequest,Index, createIndexOperationSettings()IndexOperationMetadata> Returns the object with the settings used for calls to createIndex. -
listIndexesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListIndexesRequest,ListIndexesResponse, listIndexesSettings()FirestoreAdminClient.ListIndexesPagedResponse> Returns the object with the settings used for calls to listIndexes. -
getIndexSettings
Returns the object with the settings used for calls to getIndex. -
deleteIndexSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteIndexRequest,com.google.protobuf.Empty> deleteIndexSettings()Returns the object with the settings used for calls to deleteIndex. -
getFieldSettings
Returns the object with the settings used for calls to getField. -
updateFieldSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateFieldRequest,com.google.longrunning.Operation> updateFieldSettings()Returns the object with the settings used for calls to updateField. -
updateFieldOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateFieldRequest,Field, updateFieldOperationSettings()FieldOperationMetadata> Returns the object with the settings used for calls to updateField. -
listFieldsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListFieldsRequest,ListFieldsResponse, listFieldsSettings()FirestoreAdminClient.ListFieldsPagedResponse> Returns the object with the settings used for calls to listFields. -
exportDocumentsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ExportDocumentsRequest,com.google.longrunning.Operation> exportDocumentsSettings()Returns the object with the settings used for calls to exportDocuments. -
exportDocumentsOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ExportDocumentsRequest,ExportDocumentsResponse, exportDocumentsOperationSettings()ExportDocumentsMetadata> Returns the object with the settings used for calls to exportDocuments. -
importDocumentsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ImportDocumentsRequest,com.google.longrunning.Operation> importDocumentsSettings()Returns the object with the settings used for calls to importDocuments. -
importDocumentsOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ImportDocumentsRequest,com.google.protobuf.Empty, importDocumentsOperationSettings()ImportDocumentsMetadata> Returns the object with the settings used for calls to importDocuments. -
bulkDeleteDocumentsSettings
public com.google.api.gax.rpc.UnaryCallSettings<BulkDeleteDocumentsRequest,com.google.longrunning.Operation> bulkDeleteDocumentsSettings()Returns the object with the settings used for calls to bulkDeleteDocuments. -
bulkDeleteDocumentsOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<BulkDeleteDocumentsRequest,BulkDeleteDocumentsResponse, bulkDeleteDocumentsOperationSettings()BulkDeleteDocumentsMetadata> Returns the object with the settings used for calls to bulkDeleteDocuments. -
createDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDatabaseRequest,com.google.longrunning.Operation> createDatabaseSettings()Returns the object with the settings used for calls to createDatabase. -
createDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateDatabaseRequest,Database, createDatabaseOperationSettings()CreateDatabaseMetadata> Returns the object with the settings used for calls to createDatabase. -
getDatabaseSettings
Returns the object with the settings used for calls to getDatabase. -
listDatabasesSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListDatabasesRequest,ListDatabasesResponse> listDatabasesSettings()Returns the object with the settings used for calls to listDatabases. -
updateDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDatabaseRequest,com.google.longrunning.Operation> updateDatabaseSettings()Returns the object with the settings used for calls to updateDatabase. -
updateDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateDatabaseRequest,Database, updateDatabaseOperationSettings()UpdateDatabaseMetadata> Returns the object with the settings used for calls to updateDatabase. -
deleteDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDatabaseRequest,com.google.longrunning.Operation> deleteDatabaseSettings()Returns the object with the settings used for calls to deleteDatabase. -
deleteDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteDatabaseRequest,Database, deleteDatabaseOperationSettings()DeleteDatabaseMetadata> Returns the object with the settings used for calls to deleteDatabase. -
createUserCredsSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateUserCredsRequest,UserCreds> createUserCredsSettings()Returns the object with the settings used for calls to createUserCreds. -
getUserCredsSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetUserCredsRequest,UserCreds> getUserCredsSettings()Returns the object with the settings used for calls to getUserCreds. -
listUserCredsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListUserCredsRequest,ListUserCredsResponse> listUserCredsSettings()Returns the object with the settings used for calls to listUserCreds. -
enableUserCredsSettings
public com.google.api.gax.rpc.UnaryCallSettings<EnableUserCredsRequest,UserCreds> enableUserCredsSettings()Returns the object with the settings used for calls to enableUserCreds. -
disableUserCredsSettings
public com.google.api.gax.rpc.UnaryCallSettings<DisableUserCredsRequest,UserCreds> disableUserCredsSettings()Returns the object with the settings used for calls to disableUserCreds. -
resetUserPasswordSettings
public com.google.api.gax.rpc.UnaryCallSettings<ResetUserPasswordRequest,UserCreds> resetUserPasswordSettings()Returns the object with the settings used for calls to resetUserPassword. -
deleteUserCredsSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteUserCredsRequest,com.google.protobuf.Empty> deleteUserCredsSettings()Returns the object with the settings used for calls to deleteUserCreds. -
getBackupSettings
Returns the object with the settings used for calls to getBackup. -
listBackupsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListBackupsRequest,ListBackupsResponse> listBackupsSettings()Returns the object with the settings used for calls to listBackups. -
deleteBackupSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupRequest,com.google.protobuf.Empty> deleteBackupSettings()Returns the object with the settings used for calls to deleteBackup. -
restoreDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings<RestoreDatabaseRequest,com.google.longrunning.Operation> restoreDatabaseSettings()Returns the object with the settings used for calls to restoreDatabase. -
restoreDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<RestoreDatabaseRequest,Database, restoreDatabaseOperationSettings()RestoreDatabaseMetadata> Returns the object with the settings used for calls to restoreDatabase. -
createBackupScheduleSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateBackupScheduleRequest,BackupSchedule> createBackupScheduleSettings()Returns the object with the settings used for calls to createBackupSchedule. -
getBackupScheduleSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetBackupScheduleRequest,BackupSchedule> getBackupScheduleSettings()Returns the object with the settings used for calls to getBackupSchedule. -
listBackupSchedulesSettings
public com.google.api.gax.rpc.UnaryCallSettings<ListBackupSchedulesRequest,ListBackupSchedulesResponse> listBackupSchedulesSettings()Returns the object with the settings used for calls to listBackupSchedules. -
updateBackupScheduleSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateBackupScheduleRequest,BackupSchedule> updateBackupScheduleSettings()Returns the object with the settings used for calls to updateBackupSchedule. -
deleteBackupScheduleSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteBackupScheduleRequest,com.google.protobuf.Empty> deleteBackupScheduleSettings()Returns the object with the settings used for calls to deleteBackupSchedule. -
cloneDatabaseSettings
public com.google.api.gax.rpc.UnaryCallSettings<CloneDatabaseRequest,com.google.longrunning.Operation> cloneDatabaseSettings()Returns the object with the settings used for calls to cloneDatabase. -
cloneDatabaseOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CloneDatabaseRequest,Database, cloneDatabaseOperationSettings()CloneDatabaseMetadata> Returns the object with the settings used for calls to cloneDatabase. -
createStub
- Throws:
IOException
-
getServiceName
Returns the default service name.- Overrides:
getServiceNamein classcom.google.api.gax.rpc.StubSettings<FirestoreAdminStubSettings>
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultMtlsEndpoint
Returns the default mTLS service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider() -
defaultGrpcApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() -
defaultHttpJsonApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() -
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() -
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
public static FirestoreAdminStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext) Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classcom.google.api.gax.rpc.StubSettings<FirestoreAdminStubSettings>
-