Google Cloud Discovery Engine V1 Client - Class SearchResultList (1.1.0)

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

Search result list.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest \ SearchSpec

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ search_results array<Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult>

Search results.

getSearchResults

Search results.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSearchResults

Search results.

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