public static class FirestoreSettings.Builder extends ClientSettings.Builder<FirestoreSettings,FirestoreSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(FirestoreSettings settings) |
protected |
Builder(FirestoreStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
FirestoreSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
ServerStreamingCallSettings.Builder<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> |
batchGetDocumentsSettings()
Returns the builder for the settings used for calls to batchGetDocuments.
|
UnaryCallSettings.Builder<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> |
beginTransactionSettings()
Returns the builder for the settings used for calls to beginTransaction.
|
FirestoreSettings |
build() |
UnaryCallSettings.Builder<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> |
commitSettings()
Returns the builder for the settings used for calls to commit.
|
UnaryCallSettings.Builder<com.google.firestore.v1.CreateDocumentRequest,com.google.firestore.v1.Document> |
createDocumentSettings()
Returns the builder for the settings used for calls to createDocument.
|
UnaryCallSettings.Builder<com.google.firestore.v1.DeleteDocumentRequest,Empty> |
deleteDocumentSettings()
Returns the builder for the settings used for calls to deleteDocument.
|
UnaryCallSettings.Builder<com.google.firestore.v1.GetDocumentRequest,com.google.firestore.v1.Document> |
getDocumentSettings()
Returns the builder for the settings used for calls to getDocument.
|
FirestoreStubSettings.Builder |
getStubSettingsBuilder() |
PagedCallSettings.Builder<com.google.firestore.v1.ListCollectionIdsRequest,com.google.firestore.v1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsSettings()
Returns the builder for the settings used for calls to listCollectionIds.
|
PagedCallSettings.Builder<com.google.firestore.v1.ListDocumentsRequest,com.google.firestore.v1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the builder for the settings used for calls to listDocuments.
|
StreamingCallSettings.Builder<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> |
listenSettings()
Returns the builder for the settings used for calls to listen.
|
UnaryCallSettings.Builder<com.google.firestore.v1.RollbackRequest,Empty> |
rollbackSettings()
Returns the builder for the settings used for calls to rollback.
|
ServerStreamingCallSettings.Builder<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> |
runQuerySettings()
Returns the builder for the settings used for calls to runQuery.
|
UnaryCallSettings.Builder<com.google.firestore.v1.UpdateDocumentRequest,com.google.firestore.v1.Document> |
updateDocumentSettings()
Returns the builder for the settings used for calls to updateDocument.
|
StreamingCallSettings.Builder<com.google.firestore.v1.WriteRequest,com.google.firestore.v1.WriteResponse> |
writeSettings()
Returns the builder for the settings used for calls to write.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(FirestoreSettings settings)
protected Builder(FirestoreStubSettings.Builder stubSettings)
public FirestoreStubSettings.Builder getStubSettingsBuilder()
public FirestoreSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public UnaryCallSettings.Builder<com.google.firestore.v1.GetDocumentRequest,com.google.firestore.v1.Document> getDocumentSettings()
public PagedCallSettings.Builder<com.google.firestore.v1.ListDocumentsRequest,com.google.firestore.v1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> listDocumentsSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1.CreateDocumentRequest,com.google.firestore.v1.Document> createDocumentSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1.UpdateDocumentRequest,com.google.firestore.v1.Document> updateDocumentSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1.DeleteDocumentRequest,Empty> deleteDocumentSettings()
public ServerStreamingCallSettings.Builder<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> batchGetDocumentsSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> beginTransactionSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> commitSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1.RollbackRequest,Empty> rollbackSettings()
public ServerStreamingCallSettings.Builder<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> runQuerySettings()
public StreamingCallSettings.Builder<com.google.firestore.v1.WriteRequest,com.google.firestore.v1.WriteResponse> writeSettings()
public StreamingCallSettings.Builder<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> listenSettings()
public PagedCallSettings.Builder<com.google.firestore.v1.ListCollectionIdsRequest,com.google.firestore.v1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsSettings()
public FirestoreSettings build() throws IOException
build
in class ClientSettings.Builder<FirestoreSettings,FirestoreSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.