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

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
NameDescription
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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRefinementAttributes

A list of ranked refinement attributes.

Parameter
NameDescription
var array<Google\Cloud\DiscoveryEngine\V1beta\SearchResponse\GuidedSearchResult\RefinementAttribute>
Returns
TypeDescription
$this

getFollowUpQuestions

Suggested follow-up questions.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFollowUpQuestions

Suggested follow-up questions.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this