Google Cloud Discovery Engine V1beta Client - Class UpdateDocumentRequest (0.6.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class UpdateDocumentRequest.

Request message for DocumentService.UpdateDocument method.

Generated from protobuf message google.cloud.discoveryengine.v1beta.UpdateDocumentRequest

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ document Google\Cloud\DiscoveryEngine\V1beta\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 will be created.

getDocument

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.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1beta\Document|null

hasDocument

clearDocument

setDocument

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.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1beta\Document
Returns
TypeDescription
$this

getAllowMissing

If set to true, and the Document is not found, a new Document will be created.

Returns
TypeDescription
bool

setAllowMissing

If set to true, and the Document is not found, a new Document will be created.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this