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();
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()
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 FirestoreAdminStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static FirestoreAdminStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static FirestoreAdminStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
FirestoreAdminStubSettings(FirestoreAdminStubSettings.Builder settingsBuilder)
protected FirestoreAdminStubSettings(FirestoreAdminStubSettings.Builder settingsBuilder)
Methods
createBackupScheduleSettings()
public UnaryCallSettings<CreateBackupScheduleRequest,BackupSchedule> createBackupScheduleSettings()
Returns the object with the settings used for calls to createBackupSchedule.
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.
createIndexOperationSettings()
public OperationCallSettings<CreateIndexRequest,Index,IndexOperationMetadata> createIndexOperationSettings()
Returns the object with the settings used for calls to createIndex.
createIndexSettings()
public UnaryCallSettings<CreateIndexRequest,Operation> createIndexSettings()
Returns the object with the settings used for calls to createIndex.
createStub()
public FirestoreAdminStub 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.
deleteDatabaseOperationSettings()
public OperationCallSettings<DeleteDatabaseRequest,Database,DeleteDatabaseMetadata> deleteDatabaseOperationSettings()
Returns the object with the settings used for calls to deleteDatabase.
deleteDatabaseSettings()
public UnaryCallSettings<DeleteDatabaseRequest,Operation> deleteDatabaseSettings()
Returns the object with the settings used for calls to deleteDatabase.
deleteIndexSettings()
public UnaryCallSettings<DeleteIndexRequest,Empty> deleteIndexSettings()
Returns the object with the settings used for calls to deleteIndex.
exportDocumentsOperationSettings()
public OperationCallSettings<ExportDocumentsRequest,ExportDocumentsResponse,ExportDocumentsMetadata> exportDocumentsOperationSettings()
Returns the object with the settings used for calls to exportDocuments.
exportDocumentsSettings()
public UnaryCallSettings<ExportDocumentsRequest,Operation> exportDocumentsSettings()
Returns the object with the settings used for calls to exportDocuments.
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.
getDatabaseSettings()
public UnaryCallSettings<GetDatabaseRequest,Database> getDatabaseSettings()
Returns the object with the settings used for calls to getDatabase.
getFieldSettings()
public UnaryCallSettings<GetFieldRequest,Field> getFieldSettings()
Returns the object with the settings used for calls to getField.
getIndexSettings()
public UnaryCallSettings<GetIndexRequest,Index> getIndexSettings()
Returns the object with the settings used for calls to getIndex.
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.
importDocumentsSettings()
public UnaryCallSettings<ImportDocumentsRequest,Operation> importDocumentsSettings()
Returns the object with the settings used for calls to importDocuments.
listBackupSchedulesSettings()
public UnaryCallSettings<ListBackupSchedulesRequest,ListBackupSchedulesResponse> listBackupSchedulesSettings()
Returns the object with the settings used for calls to listBackupSchedules.
listBackupsSettings()
public UnaryCallSettings<ListBackupsRequest,ListBackupsResponse> listBackupsSettings()
Returns the object with the settings used for calls to listBackups.
listDatabasesSettings()
public UnaryCallSettings<ListDatabasesRequest,ListDatabasesResponse> listDatabasesSettings()
Returns the object with the settings used for calls to listDatabases.
listFieldsSettings()
public PagedCallSettings<ListFieldsRequest,ListFieldsResponse,FirestoreAdminClient.ListFieldsPagedResponse> listFieldsSettings()
Returns the object with the settings used for calls to listFields.
listIndexesSettings()
public PagedCallSettings<ListIndexesRequest,ListIndexesResponse,FirestoreAdminClient.ListIndexesPagedResponse> listIndexesSettings()
Returns the object with the settings used for calls to listIndexes.
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.
toBuilder()
public FirestoreAdminStubSettings.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.
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.
updateFieldOperationSettings()
public OperationCallSettings<UpdateFieldRequest,Field,FieldOperationMetadata> updateFieldOperationSettings()
Returns the object with the settings used for calls to updateField.
updateFieldSettings()
public UnaryCallSettings<UpdateFieldRequest,Operation> updateFieldSettings()
Returns the object with the settings used for calls to updateField.