public sealed class UpdateDocumentRequest : IMessage<UpdateDocumentRequest>, IEquatable<UpdateDocumentRequest>, IDeepCloneable<UpdateDocumentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class UpdateDocumentRequest.
Request message for
[DocumentService.UpdateDocument][google.cloud.discoveryengine.v1.DocumentService.UpdateDocument]
method.
If set to true and the
[Document][google.cloud.discoveryengine.v1.Document] is not found, a new
[Document][google.cloud.discoveryengine.v1.Document] is be created.
If the caller does not have permission to update the
[Document][google.cloud.discoveryengine.v1.Document], regardless of whether
or not it exists, a PERMISSION_DENIED error is returned.
If the [Document][google.cloud.discoveryengine.v1.Document] to update does
not exist and
[allow_missing][google.cloud.discoveryengine.v1.UpdateDocumentRequest.allow_missing]
is not set, a NOT_FOUND error is returned.
[[["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\u003eThis document provides reference information for the \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, specifically version 1.5.0, and details the request message used for the \u003ccode\u003eDocumentService.UpdateDocument\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class allows for updating or creating a document within the Discovery Engine, implementing interfaces such as \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\u003eKey properties of the \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class include \u003ccode\u003eAllowMissing\u003c/code\u003e (which dictates whether a new document can be created if it doesn't exist), \u003ccode\u003eDocument\u003c/code\u003e (the document to update or create), and \u003ccode\u003eUpdateMask\u003c/code\u003e (which specifies which document fields to update).\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple available versions for the \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class, ranging from version 1.0.0-beta06 to the latest 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e has two constructors that allow for the creation of a new or duplicate document request object.\u003c/p\u003e\n"]]],[],null,[]]