Google Cloud Dialogflow Cx V3 Client - Class CreateToolRequest (0.10.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class CreateToolRequest.

The request message for Tools.CreateTool.

Generated from protobuf message google.cloud.dialogflow.cx.v3.CreateToolRequest

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The agent to create a Tool for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

↳ tool Tool

Required. The Tool to be created.

getParent

Required. The agent to create a Tool for.

Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

Returns
Type Description
string

setParent

Required. The agent to create a Tool for.

Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

Parameter
Name Description
var string
Returns
Type Description
$this

getTool

Required. The Tool to be created.

Returns
Type Description
Tool|null

hasTool

clearTool

setTool

Required. The Tool to be created.

Parameter
Name Description
var Tool
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The agent to create a Tool for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>. Please see ToolsClient::agentName() for help formatting this field.

tool Tool

Required. The Tool to be created.

Returns
Type Description
CreateToolRequest