public sealed class UpdateDocumentRequest : IMessage<UpdateDocumentRequest>, IEquatable<UpdateDocumentRequest>, IDeepCloneable<UpdateDocumentRequest>, IBufferMessage, IMessage
The request for [Firestore.UpdateDocument][google.firestore.v1.Firestore.UpdateDocument].
The fields to update.
None of the field paths in the mask may contain a reserved name.
If the document exists on the server and has fields not referenced in the
mask, they are left unchanged.
Fields referenced in the mask, but not present in the input document, are
deleted from the document on the server.
[[["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 content pertains to the \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Firestore.V1\u003c/code\u003e namespace, specifically version 2.3.0, with links to versions ranging from 2.3.0 to 3.10.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e is a request object for the \u003ccode\u003eFirestore.UpdateDocument\u003c/code\u003e method, inheriting from \u003ccode\u003eObject\u003c/code\u003e and implementing several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class includes constructors for creating new instances, either empty or based on another \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e include \u003ccode\u003eCurrentDocument\u003c/code\u003e (a precondition), \u003ccode\u003eDocument\u003c/code\u003e (the document to be updated), \u003ccode\u003eMask\u003c/code\u003e (fields to return), and \u003ccode\u003eUpdateMask\u003c/code\u003e (fields to update).\u003c/p\u003e\n"],["\u003cp\u003eThe document will be created if it does not already exist, and if the \u003ccode\u003eUpdateMask\u003c/code\u003e contains fields not in the input document, it will be deleted from the server.\u003c/p\u003e\n"]]],[],null,[]]