public sealed class DocumentChange : IMessage<DocumentChange>, IEquatable<DocumentChange>, IDeepCloneable<DocumentChange>, IBufferMessage, IMessage
Reference documentation and code samples for the Firestore v1 API class DocumentChange.
A [Document][google.firestore.v1.Document] has changed.
May be the result of multiple [writes][google.firestore.v1.Write], including
deletes, that ultimately resulted in a new value for the
[Document][google.firestore.v1.Document].
Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
returned for the same logical change, if multiple targets are affected.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDocumentChange\u003c/code\u003e class represents a change in a Firestore document, potentially resulting from multiple writes, including deletes.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, equality comparison, deep cloning, and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentChange\u003c/code\u003e class contains properties like \u003ccode\u003eDocument\u003c/code\u003e, \u003ccode\u003eRemovedTargetIds\u003c/code\u003e, and \u003ccode\u003eTargetIds\u003c/code\u003e, detailing the document's new state and the target IDs associated with the change.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor of \u003ccode\u003eDocumentChange\u003c/code\u003e can be called with no parameter, or with a \u003ccode\u003eDocumentChange\u003c/code\u003e instance as a parameter, allowing it to be copied.\u003c/p\u003e\n"],["\u003cp\u003eMultiple \u003ccode\u003eDocumentChange\u003c/code\u003e messages may be returned for the same logical change if multiple targets are affected, and it shows the different versions of the \u003ccode\u003eGoogle.Cloud.Firestore.V1.DocumentChange\u003c/code\u003e, from the most recent at 3.10.0, down to version 2.3.0.\u003c/p\u003e\n"]]],[],null,[]]