Google Cloud Discovery Engine V1 Client - Class UnstructuredDocumentInfo (1.5.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class UnstructuredDocumentInfo.

Unstructured document information.

Generated from protobuf message google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Answer \ Reference

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ documentstring

Document resource name.

↳ uristring

URI for the document.

↳ titlestring

Title.

↳ chunk_contentsarray<UnstructuredDocumentInfo\ChunkContent>

List of cited chunk contents derived from document content.

↳ struct_dataGoogle\Protobuf\Struct

The structured JSON metadata for the document. It is populated from the struct data from the Chunk in search result.

getDocument

Document resource name.

Returns
TypeDescription
string

setDocument

Document resource name.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getUri

URI for the document.

Returns
TypeDescription
string

setUri

URI for the document.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getTitle

Title.

Returns
TypeDescription
string

setTitle

Title.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getChunkContents

List of cited chunk contents derived from document content.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setChunkContents

List of cited chunk contents derived from document content.

Parameter
NameDescription
vararray<UnstructuredDocumentInfo\ChunkContent>
Returns
TypeDescription
$this

getStructData

The structured JSON metadata for the document.

It is populated from the struct data from the Chunk in search result.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasStructData

clearStructData

setStructData

The structured JSON metadata for the document.

It is populated from the struct data from the Chunk in search result.

Parameter
NameDescription
varGoogle\Protobuf\Struct
Returns
TypeDescription
$this