Google Cloud Dialogflow V2 Client - Class SuggestionInput (1.11.0)

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

Represents the selection of a suggestion.

Generated from protobuf message google.cloud.dialogflow.v2.SuggestionInput

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ answer_record string

Required. The ID of a suggestion selected by the human agent. The suggestion(s) were generated in a previous call to request Dialogflow assist. The format is: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> where

getAnswerRecord

Required. The ID of a suggestion selected by the human agent.

The suggestion(s) were generated in a previous call to request Dialogflow assist. The format is: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> where

Returns
TypeDescription
string

setAnswerRecord

Required. The ID of a suggestion selected by the human agent.

The suggestion(s) were generated in a previous call to request Dialogflow assist. The format is: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID> where

Parameter
NameDescription
var string
Returns
TypeDescription
$this