@Generated(value="by gapic-generator") public class FirestoreSettings extends ClientSettings<FirestoreSettings>
FirestoreClient
.
The default instance has everything set to sensible defaults:
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 updateDocument to 30 seconds:
FirestoreSettings.Builder firestoreSettingsBuilder =
FirestoreSettings.newBuilder();
firestoreSettingsBuilder.updateDocumentSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
FirestoreSettings firestoreSettings = firestoreSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
FirestoreSettings.Builder
Builder for FirestoreSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
FirestoreSettings(FirestoreSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
ServerStreamingCallSettings<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> |
batchGetDocumentsSettings()
Returns the object with the settings used for calls to batchGetDocuments.
|
UnaryCallSettings<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> |
beginTransactionSettings()
Returns the object with the settings used for calls to beginTransaction.
|
UnaryCallSettings<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> |
commitSettings()
Returns the object with the settings used for calls to commit.
|
static FirestoreSettings |
create(FirestoreStubSettings stub) |
UnaryCallSettings<com.google.firestore.v1.CreateDocumentRequest,com.google.firestore.v1.Document> |
createDocumentSettings()
Returns the object with the settings used for calls to createDocument.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<com.google.firestore.v1.DeleteDocumentRequest,Empty> |
deleteDocumentSettings()
Returns the object with the settings used for calls to deleteDocument.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.firestore.v1.GetDocumentRequest,com.google.firestore.v1.Document> |
getDocumentSettings()
Returns the object with the settings used for calls to getDocument.
|
PagedCallSettings<com.google.firestore.v1.ListCollectionIdsRequest,com.google.firestore.v1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsSettings()
Returns the object with the settings used for calls to listCollectionIds.
|
PagedCallSettings<com.google.firestore.v1.ListDocumentsRequest,com.google.firestore.v1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the object with the settings used for calls to listDocuments.
|
StreamingCallSettings<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> |
listenSettings()
Returns the object with the settings used for calls to listen.
|
static FirestoreSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static FirestoreSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<com.google.firestore.v1.RollbackRequest,Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
ServerStreamingCallSettings<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> |
runQuerySettings()
Returns the object with the settings used for calls to runQuery.
|
FirestoreSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.firestore.v1.UpdateDocumentRequest,com.google.firestore.v1.Document> |
updateDocumentSettings()
Returns the object with the settings used for calls to updateDocument.
|
StreamingCallSettings<com.google.firestore.v1.WriteRequest,com.google.firestore.v1.WriteResponse> |
writeSettings()
Returns the object with the settings used for calls to write.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected FirestoreSettings(FirestoreSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.firestore.v1.GetDocumentRequest,com.google.firestore.v1.Document> getDocumentSettings()
public PagedCallSettings<com.google.firestore.v1.ListDocumentsRequest,com.google.firestore.v1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> listDocumentsSettings()
public UnaryCallSettings<com.google.firestore.v1.CreateDocumentRequest,com.google.firestore.v1.Document> createDocumentSettings()
public UnaryCallSettings<com.google.firestore.v1.UpdateDocumentRequest,com.google.firestore.v1.Document> updateDocumentSettings()
public UnaryCallSettings<com.google.firestore.v1.DeleteDocumentRequest,Empty> deleteDocumentSettings()
public ServerStreamingCallSettings<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> batchGetDocumentsSettings()
public UnaryCallSettings<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> beginTransactionSettings()
public UnaryCallSettings<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> commitSettings()
public UnaryCallSettings<com.google.firestore.v1.RollbackRequest,Empty> rollbackSettings()
public ServerStreamingCallSettings<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> runQuerySettings()
public StreamingCallSettings<com.google.firestore.v1.WriteRequest,com.google.firestore.v1.WriteResponse> writeSettings()
public StreamingCallSettings<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> listenSettings()
public PagedCallSettings<com.google.firestore.v1.ListCollectionIdsRequest,com.google.firestore.v1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsSettings()
public static final FirestoreSettings create(FirestoreStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static FirestoreSettings.Builder newBuilder()
public static FirestoreSettings.Builder newBuilder(ClientContext clientContext)
public FirestoreSettings.Builder toBuilder()
toBuilder
in class ClientSettings<FirestoreSettings>
Copyright © 2019 Google LLC. All rights reserved.