Class FirestoreV1.Write
- Enclosing class:
FirestoreV1
This class is part of the Firestore Connector DSL and should be accessed via FirestoreIO.v1().write().
This class provides access to a set of type safe builders for supported write operations
available in the Firestore V1 API accessed through FirestoreStub. Each builder allows
configuration before creating an immutable instance which can be used in your pipeline.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionwithDatabaseId(String databaseId) withProjectId(String projectId) Factory method to create a new type safe builder forWriteoperations.
-
Method Details
-
withProjectId
Factory method to create a new type safe builder forWriteoperations.By default, when an error is encountered while trying to write to Cloud Firestore a
FirestoreV1.FailedWritesExceptionwill be thrown. If you would like a failed write to not result in aFirestoreV1.FailedWritesException, you can instead useFirestoreV1.BatchWriteWithDeadLetterQueuewhich will output any failed write.FirestoreV1.BatchWriteWithDeadLetterQueuecan be used by includingFirestoreV1.BatchWriteWithSummary.Builder.withDeadLetterQueue()when constructing the write handler.This method is part of the Firestore Connector DSL and should be accessed via
FirestoreIO.v1().All request quality-of-service for the built
FirestoreV1.BatchWriteWithSummaryPTransform is scoped to the worker and configured based on theRpcQosOptionsspecified via this builder.- Returns:
- A new type safe builder providing configuration for processing of
Writes - See Also:
-
withDatabaseId
-
batchWrite
-