FieldValue | Doclava
public abstract class

FieldValue

extends Object
java.lang.Object
   ↳ com.google.firebase.firestore.FieldValue

Class Overview

Sentinel values that can be used when writing document fields with set() or update().

Summary

Public Methods
static FieldValue delete()
Returns a sentinel for use with update() to mark a field for deletion.
static FieldValue serverTimestamp()
Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static FieldValue delete ()

Returns a sentinel for use with update() to mark a field for deletion.

Returns
FieldValue

public static FieldValue serverTimestamp ()

Returns a sentinel for use with set() or update() to include a server-generated timestamp in the written data.

Returns
FieldValue