| Package | Description |
|---|---|
| com.google.cloud.firestore |
| Modifier and Type | Method and Description |
|---|---|
DocumentReference |
CollectionReference.document()
Returns a DocumentReference pointing to a new document with an auto-generated ID within this
collection.
|
DocumentReference |
Firestore.document(String path)
Gets a
DocumentReference that refers to the document at the specified path. |
DocumentReference |
CollectionReference.document(String childPath)
Gets a DocumentReference instance that refers to the document that is a child of this
Collection.
|
DocumentReference |
CollectionReference.getParent()
Returns a DocumentReference to the containing Document if this is a subcollection, else null.
|
DocumentReference |
DocumentSnapshot.getReference()
Gets the reference to the document.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<DocumentReference> |
CollectionReference.add(Map<String,Object> fields)
Adds a new document to this collection with the specified data, assigning it a document ID
automatically.
|
com.google.api.core.ApiFuture<DocumentReference> |
CollectionReference.add(Object pojo)
Adds a new document to this collection with the specified POJO as contents, assigning it a
document ID automatically.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<DocumentSnapshot> |
Transaction.get(DocumentReference documentRef)
Reads the document referred to by the provided DocumentReference.
|
com.google.api.core.ApiFuture<List<DocumentSnapshot>> |
Firestore.getAll(DocumentReference... documentReferences)
Retrieves multiple documents from Firestore.
|
Copyright © 2017 Google. All rights reserved.