Google Cloud Dialogflow V2 Client - Class ToolCallResult (2.3.0)

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 \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
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
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

hasError

setError

The tool call's error.

Parameter
Name
Description
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

hasCreateTime

clearCreateTime

setCreateTime

Output only. Create time of the tool call result.

Parameter
Name
Description
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
Design a Mobile Site
View Site in Mobile | Classic
Share by: