Discovery Engine v1beta API - Class UpdateDocumentRequest (1.0.0-beta09)

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.

Inheritance

object > UpdateDocumentRequest

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

UpdateDocumentRequest()

public UpdateDocumentRequest()

UpdateDocumentRequest(UpdateDocumentRequest)

public UpdateDocumentRequest(UpdateDocumentRequest other)
Parameter
NameDescription
otherUpdateDocumentRequest

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
TypeDescription
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
TypeDescription
Document