Google Cloud Ces V1 Client - Class CreateToolRequest (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class CreateToolRequest.

Request message for AgentService.CreateTool.

Generated from protobuf message google.cloud.ces.v1.CreateToolRequest

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The resource name of the app to create a tool in.

↳ tool_id string

Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.

↳ tool Tool

Required. The tool to create.

getParent

Required. The resource name of the app to create a tool in.

Returns
Type Description
string

setParent

Required. The resource name of the app to create a tool in.

Parameter
Name Description
var string
Returns
Type Description
$this

getToolId

Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.

Returns
Type Description
string

setToolId

Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.

Parameter
Name Description
var string
Returns
Type Description
$this

getTool

Required. The tool to create.

Returns
Type Description
Tool|null

hasTool

clearTool

setTool

Required. The tool to create.

Parameter
Name Description
var Tool
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The resource name of the app to create a tool in. Please see AgentServiceClient::appName() for help formatting this field.

tool Tool

Required. The tool to create.

toolId string

Optional. The ID to use for the tool, which will become the final component of the tool's resource name. If not provided, a unique ID will be automatically assigned for the tool.

Returns
Type Description
CreateToolRequest

static::buildFromParentTool

Parameters
Name Description
parent string

Required. The resource name of the app to create a tool in. Please see AgentServiceClient::appName() for help formatting this field.

tool Tool

Required. The tool to create.

Returns
Type Description
CreateToolRequest