Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SuggestionInput.
Represents the action to take for a tool call that requires confirmation.
Generated from protobuf message google.cloud.dialogflow.v2.SuggestionInput
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ answer_record
string
Required. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>
The answer record associated with the tool call.
↳ parameters
Google\Protobuf\Struct
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
↳ action
int
Optional. The type of action to take with the tool.
↳ send_time
Google\Protobuf\Timestamp
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
getAnswerRecord
Required. Format: projects/<Project ID>/locations/<Location
ID>/answerRecords/<Answer Record ID>
The answer record associated with the tool call.
string
setAnswerRecord
Required. Format: projects/<Project ID>/locations/<Location
ID>/answerRecords/<Answer Record ID>
The answer record associated with the tool call.
var
string
$this
getParameters
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
hasParameters
clearParameters
setParameters
Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
$this
getAction
Optional. The type of action to take with the tool.
setAction
Optional. The type of action to take with the tool.
$this
getSendTime
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
hasSendTime
clearSendTime
setSendTime
Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
$this

