Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ToolCallResult.
The result of calling a tool's action.
Generated from protobuf message google.cloud.dialogflow.v2.ToolCallResult
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ tool
string
Optional. The tool
associated with this call. Format: projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>
.
↳ action
string
Optional. The name of the tool's action associated with this call.
↳ error
↳ raw_content
string
Only populated if the response content is not utf-8 encoded. (by definition byte fields are base64 encoded).
↳ content
string
Only populated if the response content is utf-8 encoded.
↳ create_time
↳ answer_record
string
Optional. The answer record associated with this tool call result.
getTool
Optional. The tool
associated with
this call. Format: projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>
.
string
hasTool
setTool
Optional. The tool
associated with
this call. Format: projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>
.
var
string
$this
getAction
Optional. The name of the tool's action associated with this call.
string
setAction
Optional. The name of the tool's action associated with this call.
var
string
$this
getError
The tool call's error.
hasError
setError
The tool call's error.
$this
getRawContent
Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
string
hasRawContent
setRawContent
Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
var
string
$this
getContent
Only populated if the response content is utf-8 encoded.
string
hasContent
setContent
Only populated if the response content is utf-8 encoded.
var
string
$this
getCreateTime
Output only. Create time of the tool call result.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time of the tool call result.
$this
getAnswerRecord
Optional. The answer record associated with this tool call result.
string
setAnswerRecord
Optional. The answer record associated with this tool call result.
var
string
$this
getSource
string
getResult
string

