public static class FirestoreStubSettings.Builder extends StubSettings.Builder<FirestoreStubSettings,FirestoreStubSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(FirestoreStubSettings settings) |
Modifier and Type | Method and Description |
---|---|
FirestoreStubSettings.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.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> |
batchGetDocumentsSettings()
Returns the builder for the settings used for calls to batchGetDocuments.
|
UnaryCallSettings.Builder<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> |
beginTransactionSettings()
Returns the builder for the settings used for calls to beginTransaction.
|
FirestoreStubSettings |
build() |
UnaryCallSettings.Builder<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> |
commitSettings()
Returns the builder for the settings used for calls to commit.
|
UnaryCallSettings.Builder<com.google.firestore.v1beta1.CreateDocumentRequest,com.google.firestore.v1beta1.Document> |
createDocumentSettings()
Returns the builder for the settings used for calls to createDocument.
|
UnaryCallSettings.Builder<com.google.firestore.v1beta1.DeleteDocumentRequest,Empty> |
deleteDocumentSettings()
Returns the builder for the settings used for calls to deleteDocument.
|
UnaryCallSettings.Builder<com.google.firestore.v1beta1.GetDocumentRequest,com.google.firestore.v1beta1.Document> |
getDocumentSettings()
Returns the builder for the settings used for calls to getDocument.
|
PagedCallSettings.Builder<com.google.firestore.v1beta1.ListCollectionIdsRequest,com.google.firestore.v1beta1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsSettings()
Returns the builder for the settings used for calls to listCollectionIds.
|
PagedCallSettings.Builder<com.google.firestore.v1beta1.ListDocumentsRequest,com.google.firestore.v1beta1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the builder for the settings used for calls to listDocuments.
|
StreamingCallSettings.Builder<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> |
listenSettings()
Returns the builder for the settings used for calls to listen.
|
UnaryCallSettings.Builder<com.google.firestore.v1beta1.RollbackRequest,Empty> |
rollbackSettings()
Returns the builder for the settings used for calls to rollback.
|
ServerStreamingCallSettings.Builder<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> |
runQuerySettings()
Returns the builder for the settings used for calls to runQuery.
|
com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> |
unaryMethodSettingsBuilders() |
UnaryCallSettings.Builder<com.google.firestore.v1beta1.UpdateDocumentRequest,com.google.firestore.v1beta1.Document> |
updateDocumentSettings()
Returns the builder for the settings used for calls to updateDocument.
|
StreamingCallSettings.Builder<com.google.firestore.v1beta1.WriteRequest,com.google.firestore.v1beta1.WriteResponse> |
writeSettings()
Returns the builder for the settings used for calls to write.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setTracerFactory, setTransportChannelProvider, toString
protected Builder()
protected Builder(ClientContext clientContext)
protected Builder(FirestoreStubSettings settings)
public FirestoreStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.GetDocumentRequest,com.google.firestore.v1beta1.Document> getDocumentSettings()
public PagedCallSettings.Builder<com.google.firestore.v1beta1.ListDocumentsRequest,com.google.firestore.v1beta1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> listDocumentsSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.CreateDocumentRequest,com.google.firestore.v1beta1.Document> createDocumentSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.UpdateDocumentRequest,com.google.firestore.v1beta1.Document> updateDocumentSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.DeleteDocumentRequest,Empty> deleteDocumentSettings()
public ServerStreamingCallSettings.Builder<com.google.firestore.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> batchGetDocumentsSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> beginTransactionSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> commitSettings()
public UnaryCallSettings.Builder<com.google.firestore.v1beta1.RollbackRequest,Empty> rollbackSettings()
public ServerStreamingCallSettings.Builder<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> runQuerySettings()
public StreamingCallSettings.Builder<com.google.firestore.v1beta1.WriteRequest,com.google.firestore.v1beta1.WriteResponse> writeSettings()
public StreamingCallSettings.Builder<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> listenSettings()
public PagedCallSettings.Builder<com.google.firestore.v1beta1.ListCollectionIdsRequest,com.google.firestore.v1beta1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsSettings()
public FirestoreStubSettings build() throws IOException
build
in class StubSettings.Builder<FirestoreStubSettings,FirestoreStubSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.