Google Cloud Dialogflow V2 Client - Class SuggestedQuery (2.5.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SuggestedQuery.

Represents a suggested query.

Generated from protobuf message google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery

Namespace

Google \ Cloud \ Dialogflow \ V2 \ KnowledgeAssistAnswer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ query_text string

Suggested query text.

↳ search_contexts array<SuggestedQuery\SearchContext>

Optional. The search contexts for the query.

getQueryText

Suggested query text.

Returns
Type Description
string

setQueryText

Suggested query text.

Parameter
Name Description
var string
Returns
Type Description
$this

getSearchContexts

Optional. The search contexts for the query.

Returns
Type Description
Google\Protobuf\RepeatedField<SuggestedQuery\SearchContext>

setSearchContexts

Optional. The search contexts for the query.

Parameter
Name Description
var array<SuggestedQuery\SearchContext>
Returns
Type Description
$this