Class FirestoreAdminStubSettings (3.22.0)

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 total timeout of getIndex 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
 FirestoreAdminStubSettings.Builder firestoreAdminSettingsBuilder =
     FirestoreAdminStubSettings.newBuilder();
 firestoreAdminSettingsBuilder
     .getIndexSettings()
     .setRetrySettings(
         firestoreAdminSettingsBuilder
             .getIndexSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 FirestoreAdminStubSettings firestoreAdminSettings = firestoreAdminSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > FirestoreAdminStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
Type Description
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
Type Description
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

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.

Returns
Type Description
List<String>

newBuilder()

public static FirestoreAdminStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
FirestoreAdminStubSettings.Builder

newBuilder(ClientContext clientContext)

public static FirestoreAdminStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
FirestoreAdminStubSettings.Builder

newHttpJsonBuilder()

public static FirestoreAdminStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
FirestoreAdminStubSettings.Builder

Constructors

FirestoreAdminStubSettings(FirestoreAdminStubSettings.Builder settingsBuilder)

protected FirestoreAdminStubSettings(FirestoreAdminStubSettings.Builder settingsBuilder)
Parameter
Name Description
settingsBuilder FirestoreAdminStubSettings.Builder

Methods

bulkDeleteDocumentsOperationSettings()

public OperationCallSettings<BulkDeleteDocumentsRequest,BulkDeleteDocumentsResponse,BulkDeleteDocumentsMetadata> bulkDeleteDocumentsOperationSettings()

Returns the object with the settings used for calls to bulkDeleteDocuments.

Returns
Type Description
OperationCallSettings<BulkDeleteDocumentsRequest,BulkDeleteDocumentsResponse,BulkDeleteDocumentsMetadata>

bulkDeleteDocumentsSettings()

public UnaryCallSettings<BulkDeleteDocumentsRequest,Operation> bulkDeleteDocumentsSettings()

Returns the object with the settings used for calls to bulkDeleteDocuments.

Returns
Type Description
UnaryCallSettings<BulkDeleteDocumentsRequest,Operation>

createBackupScheduleSettings()

public UnaryCallSettings<CreateBackupScheduleRequest,BackupSchedule> createBackupScheduleSettings()

Returns the object with the settings used for calls to createBackupSchedule.

Returns
Type Description
UnaryCallSettings<CreateBackupScheduleRequest,BackupSchedule>

createDatabaseOperationSettings()

public OperationCallSettings<CreateDatabaseRequest,Database,CreateDatabaseMetadata> createDatabaseOperationSettings()

Returns the object with the settings used for calls to createDatabase.

Returns
Type Description
OperationCallSettings<CreateDatabaseRequest,Database,CreateDatabaseMetadata>

createDatabaseSettings()

public UnaryCallSettings<CreateDatabaseRequest,Operation> createDatabaseSettings()

Returns the object with the settings used for calls to createDatabase.

Returns
Type Description
UnaryCallSettings<CreateDatabaseRequest,Operation>

createIndexOperationSettings()

public OperationCallSettings<CreateIndexRequest,Index,IndexOperationMetadata> createIndexOperationSettings()

Returns the object with the settings used for calls to createIndex.

Returns
Type Description
OperationCallSettings<CreateIndexRequest,Index,IndexOperationMetadata>

createIndexSettings()

public UnaryCallSettings<CreateIndexRequest,Operation> createIndexSettings()

Returns the object with the settings used for calls to createIndex.

Returns
Type Description
UnaryCallSettings<CreateIndexRequest,Operation>

createStub()

public FirestoreAdminStub createStub()
Returns
Type Description
FirestoreAdminStub
Exceptions
Type Description
IOException

deleteBackupScheduleSettings()

public UnaryCallSettings<DeleteBackupScheduleRequest,Empty> deleteBackupScheduleSettings()

Returns the object with the settings used for calls to deleteBackupSchedule.

Returns
Type Description
UnaryCallSettings<DeleteBackupScheduleRequest,Empty>

deleteBackupSettings()

public UnaryCallSettings<DeleteBackupRequest,Empty> deleteBackupSettings()

Returns the object with the settings used for calls to deleteBackup.

Returns
Type Description
UnaryCallSettings<DeleteBackupRequest,Empty>

deleteDatabaseOperationSettings()

public OperationCallSettings<DeleteDatabaseRequest,Database,DeleteDatabaseMetadata> deleteDatabaseOperationSettings()

Returns the object with the settings used for calls to deleteDatabase.

Returns
Type Description
OperationCallSettings<DeleteDatabaseRequest,Database,DeleteDatabaseMetadata>

deleteDatabaseSettings()

public UnaryCallSettings<DeleteDatabaseRequest,Operation> deleteDatabaseSettings()

Returns the object with the settings used for calls to deleteDatabase.

Returns
Type Description
UnaryCallSettings<DeleteDatabaseRequest,Operation>

deleteIndexSettings()

public UnaryCallSettings<DeleteIndexRequest,Empty> deleteIndexSettings()

Returns the object with the settings used for calls to deleteIndex.

Returns
Type Description
UnaryCallSettings<DeleteIndexRequest,Empty>

exportDocumentsOperationSettings()

public OperationCallSettings<ExportDocumentsRequest,ExportDocumentsResponse,ExportDocumentsMetadata> exportDocumentsOperationSettings()

Returns the object with the settings used for calls to exportDocuments.

Returns
Type Description
OperationCallSettings<ExportDocumentsRequest,ExportDocumentsResponse,ExportDocumentsMetadata>

exportDocumentsSettings()

public UnaryCallSettings<ExportDocumentsRequest,Operation> exportDocumentsSettings()

Returns the object with the settings used for calls to exportDocuments.

Returns
Type Description
UnaryCallSettings<ExportDocumentsRequest,Operation>

getBackupScheduleSettings()

public UnaryCallSettings<GetBackupScheduleRequest,BackupSchedule> getBackupScheduleSettings()

Returns the object with the settings used for calls to getBackupSchedule.

Returns
Type Description
UnaryCallSettings<GetBackupScheduleRequest,BackupSchedule>

getBackupSettings()

public UnaryCallSettings<GetBackupRequest,Backup> getBackupSettings()

Returns the object with the settings used for calls to getBackup.

Returns
Type Description
UnaryCallSettings<GetBackupRequest,Backup>

getDatabaseSettings()

public UnaryCallSettings<GetDatabaseRequest,Database> getDatabaseSettings()

Returns the object with the settings used for calls to getDatabase.

Returns
Type Description
UnaryCallSettings<GetDatabaseRequest,Database>

getFieldSettings()

public UnaryCallSettings<GetFieldRequest,Field> getFieldSettings()

Returns the object with the settings used for calls to getField.

Returns
Type Description
UnaryCallSettings<GetFieldRequest,Field>

getIndexSettings()

public UnaryCallSettings<GetIndexRequest,Index> getIndexSettings()

Returns the object with the settings used for calls to getIndex.

Returns
Type Description
UnaryCallSettings<GetIndexRequest,Index>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
Type Description
String
Overrides

importDocumentsOperationSettings()

public OperationCallSettings<ImportDocumentsRequest,Empty,ImportDocumentsMetadata> importDocumentsOperationSettings()

Returns the object with the settings used for calls to importDocuments.

Returns
Type Description
OperationCallSettings<ImportDocumentsRequest,Empty,ImportDocumentsMetadata>

importDocumentsSettings()

public UnaryCallSettings<ImportDocumentsRequest,Operation> importDocumentsSettings()

Returns the object with the settings used for calls to importDocuments.

Returns
Type Description
UnaryCallSettings<ImportDocumentsRequest,Operation>

listBackupSchedulesSettings()

public UnaryCallSettings<ListBackupSchedulesRequest,ListBackupSchedulesResponse> listBackupSchedulesSettings()

Returns the object with the settings used for calls to listBackupSchedules.

Returns
Type Description
UnaryCallSettings<ListBackupSchedulesRequest,ListBackupSchedulesResponse>

listBackupsSettings()

public UnaryCallSettings<ListBackupsRequest,ListBackupsResponse> listBackupsSettings()

Returns the object with the settings used for calls to listBackups.

Returns
Type Description
UnaryCallSettings<ListBackupsRequest,ListBackupsResponse>

listDatabasesSettings()

public UnaryCallSettings<ListDatabasesRequest,ListDatabasesResponse> listDatabasesSettings()

Returns the object with the settings used for calls to listDatabases.

Returns
Type Description
UnaryCallSettings<ListDatabasesRequest,ListDatabasesResponse>

listFieldsSettings()

public PagedCallSettings<ListFieldsRequest,ListFieldsResponse,FirestoreAdminClient.ListFieldsPagedResponse> listFieldsSettings()

Returns the object with the settings used for calls to listFields.

Returns
Type Description
PagedCallSettings<ListFieldsRequest,ListFieldsResponse,ListFieldsPagedResponse>

listIndexesSettings()

public PagedCallSettings<ListIndexesRequest,ListIndexesResponse,FirestoreAdminClient.ListIndexesPagedResponse> listIndexesSettings()

Returns the object with the settings used for calls to listIndexes.

Returns
Type Description
PagedCallSettings<ListIndexesRequest,ListIndexesResponse,ListIndexesPagedResponse>

restoreDatabaseOperationSettings()

public OperationCallSettings<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata> restoreDatabaseOperationSettings()

Returns the object with the settings used for calls to restoreDatabase.

Returns
Type Description
OperationCallSettings<RestoreDatabaseRequest,Database,RestoreDatabaseMetadata>

restoreDatabaseSettings()

public UnaryCallSettings<RestoreDatabaseRequest,Operation> restoreDatabaseSettings()

Returns the object with the settings used for calls to restoreDatabase.

Returns
Type Description
UnaryCallSettings<RestoreDatabaseRequest,Operation>

toBuilder()

public FirestoreAdminStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
Type Description
FirestoreAdminStubSettings.Builder
Overrides

updateBackupScheduleSettings()

public UnaryCallSettings<UpdateBackupScheduleRequest,BackupSchedule> updateBackupScheduleSettings()

Returns the object with the settings used for calls to updateBackupSchedule.

Returns
Type Description
UnaryCallSettings<UpdateBackupScheduleRequest,BackupSchedule>

updateDatabaseOperationSettings()

public OperationCallSettings<UpdateDatabaseRequest,Database,UpdateDatabaseMetadata> updateDatabaseOperationSettings()

Returns the object with the settings used for calls to updateDatabase.

Returns
Type Description
OperationCallSettings<UpdateDatabaseRequest,Database,UpdateDatabaseMetadata>

updateDatabaseSettings()

public UnaryCallSettings<UpdateDatabaseRequest,Operation> updateDatabaseSettings()

Returns the object with the settings used for calls to updateDatabase.

Returns
Type Description
UnaryCallSettings<UpdateDatabaseRequest,Operation>

updateFieldOperationSettings()

public OperationCallSettings<UpdateFieldRequest,Field,FieldOperationMetadata> updateFieldOperationSettings()

Returns the object with the settings used for calls to updateField.

Returns
Type Description
OperationCallSettings<UpdateFieldRequest,Field,FieldOperationMetadata>

updateFieldSettings()

public UnaryCallSettings<UpdateFieldRequest,Operation> updateFieldSettings()

Returns the object with the settings used for calls to updateField.

Returns
Type Description
UnaryCallSettings<UpdateFieldRequest,Operation>