कंसोल पर जाएं

SetOptions

public final class SetOptions extends Object

An options object that configures the behavior of set() calls. By providing one of the SetOptions objects returned by merge(), mergeFields(String...) and mergeFieldPaths(List), the set() calls in DocumentReference, WriteBatch and Transaction can be configured to perform granular merges instead of overwriting the target documents in their entirety.

Public Method Summary

boolean
int
static SetOptions
merge()
Changes the behavior of set() calls to only replace the values specified in its data argument.
static SetOptions
mergeFieldPaths(List<FieldPath> fields)
Changes the behavior of set() calls to only replace the given fields.
static SetOptions
mergeFields(List<String> fields)
Changes the behavior of set() calls to only replace the given fields.
static SetOptions
mergeFields(String... fields)
Changes the behavior of set() calls to only replace the given fields.

Inherited Method Summary