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 forWrite
operations.
-
Method Details
-
withProjectId
Factory method to create a new type safe builder forWrite
operations.By default, when an error is encountered while trying to write to Cloud Firestore a
FirestoreV1.FailedWritesException
will be thrown. If you would like a failed write to not result in aFirestoreV1.FailedWritesException
, you can instead useFirestoreV1.BatchWriteWithDeadLetterQueue
which will output any failed write.FirestoreV1.BatchWriteWithDeadLetterQueue
can 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.BatchWriteWithSummary
PTransform is scoped to the worker and configured based on theRpcQosOptions
specified via this builder.- Returns:
- A new type safe builder providing configuration for processing of
Write
s - See Also:
-
withDatabaseId
-
batchWrite
-