Google Cloud Dialogflow V2 Client - Class AdditionalSuggestedQueryResult (2.5.0)

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

Represents a single suggested query result.

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

Namespace

Google \ Cloud \ Dialogflow \ V2 \ KnowledgeAssistAnswer

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ suggested_query SuggestedQuery

Output only. The suggested query based on the context.

↳ answer_record string

Output only. The name of the answer record. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>

getSuggestedQuery

Output only. The suggested query based on the context.

Returns
Type Description
SuggestedQuery|null

hasSuggestedQuery

clearSuggestedQuery

setSuggestedQuery

Output only. The suggested query based on the context.

Parameter
Name Description
var SuggestedQuery
Returns
Type Description
$this

getAnswerRecord

Output only. The name of the answer record.

Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>

Returns
Type Description
string

setAnswerRecord

Output only. The name of the answer record.

Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>

Parameter
Name Description
var string
Returns
Type Description
$this