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

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

Search specification.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ search_params Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams

Search parameters.

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

Search result list.

getSearchParams

Search parameters.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams|null

hasSearchParams

setSearchParams

Search parameters.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams
Returns
Type Description
$this

getSearchResultList

Search result list.

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

hasSearchResultList

setSearchResultList

Search result list.

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

getInput

Returns
Type Description
string