Google Cloud Discovery Engine V1 Client - Class QuerySuggestion (0.5.0)

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

Suggestions as search queries.

Generated from protobuf message google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ CompleteQueryResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ suggestion string

The suggestion for the query.

getSuggestion

The suggestion for the query.

Returns
TypeDescription
string

setSuggestion

The suggestion for the query.

Parameter
NameDescription
var string
Returns
TypeDescription
$this