Google Cloud Discovery Engine V1 Client - Class SearchSpec (1.7.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 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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.