Details | |||
---|---|---|---|
Parameters |
| ||
Returns | The reference for the newly-created document. |
DocumentReferenceDocument()
Creates a DocumentReference for a direct child document of this collection with a random ID.
This performs no server-side operations; it only generates the appropriate DocumentReference
.
Details | |
---|---|
Returns | A DocumentReference to a child document of this collection with a random ID. |
DocumentReferenceDocument(stringpath)
Creates a DocumentReference for a child document of this reference.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A DocumentReference for the specified document. |
overrideboolEquals(objectobj)
boolEquals(CollectionReferenceother)
overrideintGetHashCode()
overridestringToString()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.