public sealed class UpdateDocumentRequest : IMessage<UpdateDocumentRequest>, IEquatable<UpdateDocumentRequest>, IDeepCloneable<UpdateDocumentRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class UpdateDocumentRequest.
Request message for
[DocumentService.UpdateDocument][google.cloud.discoveryengine.v1beta.DocumentService.UpdateDocument]
method.
If set to true and the
[Document][google.cloud.discoveryengine.v1beta.Document] is not found, a
new [Document][google.cloud.discoveryengine.v1beta.Document] is be created.
If the caller does not have permission to update the
[Document][google.cloud.discoveryengine.v1beta.Document], regardless of
whether or not it exists, a PERMISSION_DENIED error is returned.
If the [Document][google.cloud.discoveryengine.v1beta.Document] to update
does not exist and
[allow_missing][google.cloud.discoveryengine.v1beta.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\u003eThe \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e class is used to update or create a document within the Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eIt 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\u003eAllowMissing\u003c/code\u003e property determines if a new document should be created if the specified document doesn't exist, while \u003ccode\u003eDocument\u003c/code\u003e is a required property representing the document to be updated or created.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateMask\u003c/code\u003e property dictates which fields of the document should be updated, and if not set, all fields are updated by default.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors : one is default, and the other one allows the instance creation with an existing \u003ccode\u003eUpdateDocumentRequest\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]