public abstract @interface DocumentId implements Annotation

Annotation used to mark a POJO property to be automatically populated with the document's ID when the POJO is created from a Cloud Firestore document (for example, via toObject(Class)).

When using a POJO to write to a document (via set(Object) or @set(DocumentReference, Object)), the property annotated by @DocumentId is ignored, which allows writing the POJO back to any document, even if it's not the origin of the POJO.

Inherited Method Summary