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.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ tool |
string
Optional. The tool associated with this call. Format: |
↳ action |
string
Optional. The name of the tool's action associated with this call. |
↳ error |
ToolCallResult\Error
The tool call's 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 |
Google\Protobuf\Timestamp
Output only. Create time of the tool call result. |
↳ 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>.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasTool
setTool
Optional. The tool associated with
this call. Format:
projects/<ProjectID>/locations/<LocationID>/tools/<ToolID>.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAction
Optional. The name of the tool's action associated with this call.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAction
Optional. The name of the tool's action associated with this call.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getError
The tool call's error.
| Returns | |
|---|---|
| Type | Description |
ToolCallResult\Error|null |
|
hasError
setError
The tool call's error.
| Parameter | |
|---|---|
| Name | Description |
var |
ToolCallResult\Error
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRawContent
Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
| Returns | |
|---|---|
| Type | Description |
string |
|
hasRawContent
setRawContent
Only populated if the response content is not utf-8 encoded.
(by definition byte fields are base64 encoded).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContent
Only populated if the response content is utf-8 encoded.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasContent
setContent
Only populated if the response content is utf-8 encoded.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. Create time of the tool call result.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time of the tool call result.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAnswerRecord
Optional. The answer record associated with this tool call result.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAnswerRecord
Optional. The answer record associated with this tool call result.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSource
| Returns | |
|---|---|
| Type | Description |
string |
|
getResult
| Returns | |
|---|---|
| Type | Description |
string |
|