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

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
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] is 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, by default updates all fields.

Property Value
Type Description
FieldMask