An options object that configures the behavior of set() calls. By providing one of the
SetOptions objects returned by merge(), mergeFields(List) 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.
| boolean | |
| int |
hashCode()
|
| 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 |
Changes the behavior of set() calls to only replace the values specified in its data
argument. Fields omitted from the set() call will remain untouched.
Changes the behavior of set() calls to only replace the given fields. Any field that is
not specified in fields is ignored and remains untouched.
It is an error to pass a SetOptions object to a set() call that is missing a
value for any of the fields specified here in its to data argument.
| fields | The list of fields to merge. |
|---|
Changes the behavior of set() calls to only replace the given fields. Any field that is
not specified in fields is ignored and remains untouched.
It is an error to pass a SetOptions object to a set() call that is missing a
value for any of the fields specified here.
| fields | The list of fields to merge. Fields can contain dots to reference nested fields within the document. |
|---|
Changes the behavior of set() calls to only replace the given fields. Any field that is
not specified in fields is ignored and remains untouched.
It is an error to pass a SetOptions object to a set() call that is missing a
value for any of the fields specified here.
| fields | The list of fields to merge. Fields can contain dots to reference nested fields within the document. |
|---|