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

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 SearchSpec\SearchParams

Search parameters.

↳ search_result_list SearchSpec\SearchResultList

Search result list.

getSearchParams

Search parameters.

Returns
Type Description
SearchSpec\SearchParams|null

hasSearchParams

setSearchParams

Search parameters.

Parameter
Name Description
var SearchSpec\SearchParams
Returns
Type Description
$this

getSearchResultList

Search result list.

Returns
Type Description
SearchSpec\SearchResultList|null

hasSearchResultList

setSearchResultList

Search result list.

Parameter
Name Description
var SearchSpec\SearchResultList
Returns
Type Description
$this

getInput

Returns
Type Description
string