Google Cloud Discovery Engine V1beta Client - Class GuidedSearchResult (0.11.3)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class GuidedSearchResult.

Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.

Generated from protobuf message google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ refinement_attributes array<Google\Cloud\DiscoveryEngine\V1beta\SearchResponse\GuidedSearchResult\RefinementAttribute>

A list of ranked refinement attributes.

↳ follow_up_questions array

Suggested follow-up questions.

getRefinementAttributes

A list of ranked refinement attributes.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRefinementAttributes

A list of ranked refinement attributes.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1beta\SearchResponse\GuidedSearchResult\RefinementAttribute>
Returns
Type Description
$this

getFollowUpQuestions

Suggested follow-up questions.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setFollowUpQuestions

Suggested follow-up questions.

Parameter
Name Description
var string[]
Returns
Type Description
$this