Class UpdateDocumentRequest (0.12.2)

UpdateDocumentRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for DocumentService.UpdateDocument method.

Attributes

Name Description
document google.cloud.discoveryengine_v1.types.Document
Required. The document to update/create. If the caller does not have permission to update the Document, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Document to update does not exist and allow_missing is not set, a NOT_FOUND error is returned.
allow_missing bool
If set to true and the Document is not found, a new Document is be created.
update_mask google.protobuf.field_mask_pb2.FieldMask
Indicates which fields in the provided imported 'document' to update. If not set, by default updates all fields.