Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Tool.
Represents a tool.
Generated from protobuf message google.cloud.dialogflow.v2.Tool
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Identifier. The resource name of the tool. Format: projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>
.
↳ tool_key
string
Required. A human readable short name of the tool, which should be unique within the project. It should only contain letters, numbers, and underscores, and it will be used by LLM to identify the tool.
↳ display_name
string
Optional. A human readable short name of the tool, to be shown on the UI.
↳ description
string
Optional. A human readable description of the tool.
↳ action_confirmation_requirement
array| Google\Protobuf\Internal\MapField
Optional. Confirmation requirement for the actions. Each key is an action name in the action_schemas. If an action's confirmation requirement is unspecified (either the key is not present, or its value is CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the action's method_type - confirmation is not required if and only if method_type is GET.
↳ extension_spec
↳ function_spec
↳ connector_spec
↳ open_api_spec
↳ create_time
↳ update_time
↳ satisfies_pzs
bool
Output only. A read only boolean field reflecting Zone Separation status of the tool. If the field is absent, it means the status is unknown.
↳ satisfies_pzi
bool
Output only. A read only boolean field reflecting Zone Isolation status of the tool. If the field is absent, it means the status is unknown.
getName
Output only. Identifier. The resource name of the tool. Format: projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>
.
string
setName
Output only. Identifier. The resource name of the tool. Format: projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>
.
var
string
$this
getToolKey
Required. A human readable short name of the tool, which should be unique within the project. It should only contain letters, numbers, and underscores, and it will be used by LLM to identify the tool.
string
setToolKey
Required. A human readable short name of the tool, which should be unique within the project. It should only contain letters, numbers, and underscores, and it will be used by LLM to identify the tool.
var
string
$this
getDisplayName
Optional. A human readable short name of the tool, to be shown on the UI.
string
setDisplayName
Optional. A human readable short name of the tool, to be shown on the UI.
var
string
$this
getDescription
Optional. A human readable description of the tool.
string
setDescription
Optional. A human readable description of the tool.
var
string
$this
getActionConfirmationRequirement
Optional. Confirmation requirement for the actions. Each key is an action name in the action_schemas. If an action's confirmation requirement is unspecified (either the key is not present, or its value is CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the action's method_type - confirmation is not required if and only if method_type is GET.
setActionConfirmationRequirement
Optional. Confirmation requirement for the actions. Each key is an action name in the action_schemas. If an action's confirmation requirement is unspecified (either the key is not present, or its value is CONFIRMATION_REQUIREMENT_UNSPECIFIED), the requirement is inferred from the action's method_type - confirmation is not required if and only if method_type is GET.
$this
getExtensionSpec
Vertex extension tool specification.
hasExtensionSpec
setExtensionSpec
Vertex extension tool specification.
$this
getFunctionSpec
Client side executed function specification.
hasFunctionSpec
setFunctionSpec
Client side executed function specification.
$this
getConnectorSpec
Integration connectors tool specification.
hasConnectorSpec
setConnectorSpec
Integration connectors tool specification.
$this
getOpenApiSpec
OpenAPI tool.
hasOpenApiSpec
setOpenApiSpec
OpenAPI tool.
$this
getCreateTime
Output only. Creation time of this tool.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of this tool.
$this
getUpdateTime
Output only. Update time of this tool.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Update time of this tool.
$this
getSatisfiesPzs
Output only. A read only boolean field reflecting Zone Separation status of the tool. If the field is absent, it means the status is unknown.
bool
hasSatisfiesPzs
clearSatisfiesPzs
setSatisfiesPzs
Output only. A read only boolean field reflecting Zone Separation status of the tool. If the field is absent, it means the status is unknown.
var
bool
$this
getSatisfiesPzi
Output only. A read only boolean field reflecting Zone Isolation status of the tool. If the field is absent, it means the status is unknown.
bool
hasSatisfiesPzi
clearSatisfiesPzi
setSatisfiesPzi
Output only. A read only boolean field reflecting Zone Isolation status of the tool. If the field is absent, it means the status is unknown.
var
bool
$this
getSpecification
string

