Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class CreateToolRequest.
Request message of CreateTool.
Generated from protobuf message google.cloud.dialogflow.v2.CreateToolRequest
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The project/location to create tool for. Format: projects/<Project ID>/locations/<Location ID>
↳ tool
↳ tool_id
string
Optional. The ID to use for the tool, which will become the final component of the tool's resource name. The tool ID must be compliant with the regression formula [a-zA-Z][a-zA-Z0-9_-]*
with the characters length in range of [3,64]. If the field is not provide, an Id will be auto-generated. If the field is provided, the caller is responsible for 1. the uniqueness of the ID, otherwise the request will be rejected. 2. the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
getParent
Required. The project/location to create tool for. Format: projects/<Project ID>/locations/<Location ID>
string
setParent
Required. The project/location to create tool for. Format: projects/<Project ID>/locations/<Location ID>
var
string
$this
getTool
Required. The tool to create.
hasTool
clearTool
setTool
Required. The tool to create.
$this
getToolId
Optional. The ID to use for the tool, which will become the final component of the tool's resource name.
The tool ID must be compliant with the regression formula [a-zA-Z][a-zA-Z0-9_-]*
with the characters length in range of [3,64].
If the field is not provide, an Id will be auto-generated.
If the field is provided, the caller is responsible for
- the uniqueness of the ID, otherwise the request will be rejected.
- the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
string
setToolId
Optional. The ID to use for the tool, which will become the final component of the tool's resource name.
The tool ID must be compliant with the regression formula [a-zA-Z][a-zA-Z0-9_-]*
with the characters length in range of [3,64].
If the field is not provide, an Id will be auto-generated.
If the field is provided, the caller is responsible for
- the uniqueness of the ID, otherwise the request will be rejected.
- the consistency for whether to use custom ID or not under a project to better ensure uniqueness.
var
string
$this
static::build
parent
string
Required. The project/location to create tool for. Format: projects/<Project ID>/locations/<Location ID>
Please see ToolsClient::locationName()
for help formatting this field.
tool
toolId
string
Optional. The ID to use for the tool, which will become the final component of the tool's resource name.
The tool ID must be compliant with the regression formula [a-zA-Z][a-zA-Z0-9_-]*
with the characters length in range of [3,64].
If the field is not provide, an Id will be auto-generated.
If the field is provided, the caller is responsible for
- the uniqueness of the ID, otherwise the request will be rejected.
- the consistency for whether to use custom ID or not under a project to better ensure uniqueness.

