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 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://docs.cloud.google.com/java/docs/client-retries) 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 TypeMethodDescriptionOperationCallSettings<BulkDeleteDocumentsRequest,BulkDeleteDocumentsResponse, BulkDeleteDocumentsMetadata> Returns the object with the settings used for calls to bulkDeleteDocuments.Returns the object with the settings used for calls to bulkDeleteDocuments.Returns the object with the settings used for calls to cloneDatabase.Returns the object with the settings used for calls to cloneDatabase.Returns the object with the settings used for calls to createBackupSchedule.Returns the object with the settings used for calls to createDatabase.Returns the object with the settings used for calls to createDatabase.Returns the object with the settings used for calls to createIndex.Returns the object with the settings used for calls to createIndex.Returns the object with the settings used for calls to createUserCreds.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderUnaryCallSettings<DeleteBackupScheduleRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteBackupSchedule.UnaryCallSettings<DeleteBackupRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteBackup.Returns the object with the settings used for calls to deleteDatabase.Returns the object with the settings used for calls to deleteDatabase.UnaryCallSettings<DeleteIndexRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteIndex.UnaryCallSettings<DeleteUserCredsRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteUserCreds.Returns the object with the settings used for calls to disableUserCreds.Returns the object with the settings used for calls to enableUserCreds.Returns the object with the settings used for calls to exportDocuments.Returns the object with the settings used for calls to exportDocuments.Returns the object with the settings used for calls to getBackupSchedule.Returns the object with the settings used for calls to getBackup.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.Returns the object with the settings used for calls to getField.Returns the object with the settings used for calls to getIndex.protected LibraryMetadataReturns the default service name.Returns the object with the settings used for calls to getUserCreds.OperationCallSettings<ImportDocumentsRequest,com.google.protobuf.Empty, ImportDocumentsMetadata> Returns the object with the settings used for calls to importDocuments.Returns the object with the settings used for calls to importDocuments.Returns the object with the settings used for calls to listBackupSchedules.Returns the object with the settings used for calls to listBackups.Returns the object with the settings used for calls to listDatabases.PagedCallSettings<ListFieldsRequest,ListFieldsResponse, FirestoreAdminClient.ListFieldsPagedResponse> Returns the object with the settings used for calls to listFields.PagedCallSettings<ListIndexesRequest,ListIndexesResponse, FirestoreAdminClient.ListIndexesPagedResponse> Returns the object with the settings used for calls to listIndexes.Returns the object with the settings used for calls to listUserCreds.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.Returns the object with the settings used for calls to resetUserPassword.Returns the object with the settings used for calls to restoreDatabase.Returns the object with the settings used for calls to restoreDatabase.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateBackupSchedule.Returns the object with the settings used for calls to updateDatabase.Returns the object with the settings used for calls to updateDatabase.Returns the object with the settings used for calls to updateField.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
Returns the object with the settings used for calls to createIndex. -
createIndexOperationSettings
public OperationCallSettings<CreateIndexRequest,Index, createIndexOperationSettings()IndexOperationMetadata> Returns the object with the settings used for calls to createIndex. -
listIndexesSettings
public 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
Returns the object with the settings used for calls to deleteIndex. -
getFieldSettings
Returns the object with the settings used for calls to getField. -
updateFieldSettings
Returns the object with the settings used for calls to updateField. -
updateFieldOperationSettings
public OperationCallSettings<UpdateFieldRequest,Field, updateFieldOperationSettings()FieldOperationMetadata> Returns the object with the settings used for calls to updateField. -
listFieldsSettings
public PagedCallSettings<ListFieldsRequest,ListFieldsResponse, listFieldsSettings()FirestoreAdminClient.ListFieldsPagedResponse> Returns the object with the settings used for calls to listFields. -
exportDocumentsSettings
Returns the object with the settings used for calls to exportDocuments. -
exportDocumentsOperationSettings
public OperationCallSettings<ExportDocumentsRequest,ExportDocumentsResponse, exportDocumentsOperationSettings()ExportDocumentsMetadata> Returns the object with the settings used for calls to exportDocuments. -
importDocumentsSettings
Returns the object with the settings used for calls to importDocuments. -
importDocumentsOperationSettings
public OperationCallSettings<ImportDocumentsRequest,com.google.protobuf.Empty, importDocumentsOperationSettings()ImportDocumentsMetadata> Returns the object with the settings used for calls to importDocuments. -
bulkDeleteDocumentsSettings
Returns the object with the settings used for calls to bulkDeleteDocuments. -
bulkDeleteDocumentsOperationSettings
public OperationCallSettings<BulkDeleteDocumentsRequest,BulkDeleteDocumentsResponse, bulkDeleteDocumentsOperationSettings()BulkDeleteDocumentsMetadata> Returns the object with the settings used for calls to bulkDeleteDocuments. -
createDatabaseSettings
Returns the object with the settings used for calls to createDatabase. -
createDatabaseOperationSettings
public 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
Returns the object with the settings used for calls to listDatabases. -
updateDatabaseSettings
Returns the object with the settings used for calls to updateDatabase. -
updateDatabaseOperationSettings
public OperationCallSettings<UpdateDatabaseRequest,Database, updateDatabaseOperationSettings()UpdateDatabaseMetadata> Returns the object with the settings used for calls to updateDatabase. -
deleteDatabaseSettings
Returns the object with the settings used for calls to deleteDatabase. -
deleteDatabaseOperationSettings
public OperationCallSettings<DeleteDatabaseRequest,Database, deleteDatabaseOperationSettings()DeleteDatabaseMetadata> Returns the object with the settings used for calls to deleteDatabase. -
createUserCredsSettings
Returns the object with the settings used for calls to createUserCreds. -
getUserCredsSettings
Returns the object with the settings used for calls to getUserCreds. -
listUserCredsSettings
Returns the object with the settings used for calls to listUserCreds. -
enableUserCredsSettings
Returns the object with the settings used for calls to enableUserCreds. -
disableUserCredsSettings
Returns the object with the settings used for calls to disableUserCreds. -
resetUserPasswordSettings
Returns the object with the settings used for calls to resetUserPassword. -
deleteUserCredsSettings
public 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
Returns the object with the settings used for calls to listBackups. -
deleteBackupSettings
Returns the object with the settings used for calls to deleteBackup. -
restoreDatabaseSettings
Returns the object with the settings used for calls to restoreDatabase. -
restoreDatabaseOperationSettings
public OperationCallSettings<RestoreDatabaseRequest,Database, restoreDatabaseOperationSettings()RestoreDatabaseMetadata> Returns the object with the settings used for calls to restoreDatabase. -
createBackupScheduleSettings
Returns the object with the settings used for calls to createBackupSchedule. -
getBackupScheduleSettings
Returns the object with the settings used for calls to getBackupSchedule. -
listBackupSchedulesSettings
public UnaryCallSettings<ListBackupSchedulesRequest,ListBackupSchedulesResponse> listBackupSchedulesSettings()Returns the object with the settings used for calls to listBackupSchedules. -
updateBackupScheduleSettings
Returns the object with the settings used for calls to updateBackupSchedule. -
deleteBackupScheduleSettings
public UnaryCallSettings<DeleteBackupScheduleRequest,com.google.protobuf.Empty> deleteBackupScheduleSettings()Returns the object with the settings used for calls to deleteBackupSchedule. -
cloneDatabaseSettings
Returns the object with the settings used for calls to cloneDatabase. -
cloneDatabaseOperationSettings
public 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 classStubSettings<FirestoreAdminStubSettings>
-
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
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultGrpcApiClientHeaderProviderBuilder
-
defaultHttpJsonApiClientHeaderProviderBuilder
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classStubSettings<FirestoreAdminStubSettings>
-
getLibraryMetadata
- Overrides:
getLibraryMetadatain classStubSettings<FirestoreAdminStubSettings>
-