Google Cloud Discovery Engine V1beta Client - Class UnstructuredDocumentInfo (0.11.3)

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

Unstructured document information.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ Answer \ Reference

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ document string

Document resource name.

↳ uri string

URI for the document.

↳ title string

Title.

↳ chunk_contents array<Google\Cloud\DiscoveryEngine\V1beta\Answer\Reference\UnstructuredDocumentInfo\ChunkContent>

List of cited chunk contents derived from document content.

↳ struct_data Google\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
Type Description
string

setDocument

Document resource name.

Parameter
Name Description
var string
Returns
Type Description
$this

getUri

URI for the document.

Returns
Type Description
string

setUri

URI for the document.

Parameter
Name Description
var string
Returns
Type Description
$this

getTitle

Title.

Returns
Type Description
string

setTitle

Title.

Parameter
Name Description
var string
Returns
Type Description
$this

getChunkContents

List of cited chunk contents derived from document content.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setChunkContents

List of cited chunk contents derived from document content.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1beta\Answer\Reference\UnstructuredDocumentInfo\ChunkContent>
Returns
Type Description
$this

getStructData

The structured JSON metadata for the document.

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

Returns
Type Description
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
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this