Google Cloud Discovery Engine V1 Client - Class SearchResult (1.0.0)

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

Search result.

Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ SearchSpec \ SearchResultList

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ unstructured_document_info Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo

Unstructured document information.

↳ chunk_info Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo

Chunk information.

getUnstructuredDocumentInfo

Unstructured document information.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo|null

hasUnstructuredDocumentInfo

setUnstructuredDocumentInfo

Unstructured document information.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo
Returns
Type Description
$this

getChunkInfo

Chunk information.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo|null

hasChunkInfo

setChunkInfo

Chunk information.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo
Returns
Type Description
$this

getContent

Returns
Type Description
string