Reference documentation and code samples for the Cloud Firestore V1 Client class DocumentChange.
A Document has changed.
May be the result of multiple writes , including deletes, that ultimately resulted in a new value for the Document . Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected.
Generated from protobuf message google.firestore.v1.DocumentChange
Namespace
Google \ Cloud \ Firestore \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ document
Google\Cloud\Firestore\V1\Document
The new state of the Document
. If mask
is set, contains only fields that were updated or added.
↳ target_ids
array
A set of target IDs of targets that match this document.
↳ removed_target_ids
array
A set of target IDs for targets that no longer match this document.
getDocument
The new state of the Document .
If mask
is set, contains only fields that were updated or added.
hasDocument
clearDocument
setDocument
The new state of the Document .
If mask
is set, contains only fields that were updated or added.
$this
getTargetIds
A set of target IDs of targets that match this document.
setTargetIds
A set of target IDs of targets that match this document.
var
int[]
$this
getRemovedTargetIds
A set of target IDs for targets that no longer match this document.
setRemovedTargetIds
A set of target IDs for targets that no longer match this document.
var
int[]
$this