Package com.google.cloud.firestore
Class FirestoreBundle.Builder
java.lang.Object
com.google.cloud.firestore.FirestoreBundle.Builder
- Enclosing class:
- FirestoreBundle
Builds a Firestore data bundle with results from the given document and query snapshots.
-
Method Summary
Modifier and TypeMethodDescriptionadd(DocumentSnapshot documentSnapshot) Adds a Firestore document snapshot to the bundle.add(String queryName, QuerySnapshot querySnap) Adds a Firestore query snapshot to the bundle.build()getId()Returns the ID for this bundle.
-
Method Details
-
getId
Returns the ID for this bundle. -
add
Adds a Firestore document snapshot to the bundle. Both the document data and the document read time will be included in the bundle.- Parameters:
documentSnapshot- A document snapshot to add.- Returns:
- This instance.
-
add
Adds a Firestore query snapshot to the bundle. Both the documents in the query snapshot and the query read time will be included in the bundle.- Parameters:
queryName- The name of the query to add.querySnap- The query snapshot to add.- Returns:
- This instance.
-
build
-