public static final class FirestoreBundle.BuilderBuilds a Firestore data bundle with results from the given document and query snapshots.
Methods
add(DocumentSnapshot documentSnapshot)
public FirestoreBundle.Builder add(DocumentSnapshot documentSnapshot)Adds a Firestore document snapshot to the bundle. Both the document data and the document read time will be included in the bundle.
| Name | Description |
| documentSnapshot | DocumentSnapshotA document snapshot to add. |
| Type | Description |
| FirestoreBundle.Builder |
add(String queryName, QuerySnapshot querySnap)
public FirestoreBundle.Builder add(String queryName, QuerySnapshot querySnap)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.
| Name | Description |
| queryName | StringThe name of the query to add. |
| querySnap | QuerySnapshotThe query snapshot to add. |
| Type | Description |
| FirestoreBundle.Builder |
build()
public FirestoreBundle build()| Type | Description |
| FirestoreBundle |
getId()
public String getId()Returns the ID for this bundle.
| Type | Description |
| String |