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.
Implements
IMessageUpdateDocumentRequest, IEquatableUpdateDocumentRequest, IDeepCloneableUpdateDocumentRequest, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
UpdateDocumentRequest()
public UpdateDocumentRequest()
UpdateDocumentRequest(UpdateDocumentRequest)
public UpdateDocumentRequest(UpdateDocumentRequest other)
Parameter | |
---|---|
Name | Description |
other |
UpdateDocumentRequest |
Properties
AllowMissing
public bool AllowMissing { get; set; }
If set to true, and the [Document][google.cloud.discoveryengine.v1beta.Document] is not found, a new [Document][google.cloud.discoveryengine.v1beta.Document] will be created.
Property Value | |
---|---|
Type | Description |
bool |
Document
public Document Document { get; set; }
Required. The document to update/create.
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.
Property Value | |
---|---|
Type | Description |
Document |
UpdateMask
public FieldMask UpdateMask { get; set; }
Indicates which fields in the provided imported 'document' to update. If not set, will by default update all fields.
Property Value | |
---|---|
Type | Description |
FieldMask |