Service Client: Google::Cloud::Dialogflow::Cx::V3::Tool::ToolsClient

Client stub representing the remote Tools gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to dialogflow.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Dialogflow::Cx::V3::Tool - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/tool.proto

SYNOPSIS

use Google::Cloud::Dialogflow::Cx::V3::Tool;

my $msg = Google::Cloud::Dialogflow::Cx::V3::Tool::CreateToolRequest->new({
    parent => $parent,
    tool => $tool,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3::Tool::CreateToolRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/tool.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Dialogflow::Cx::V3::Tool::CreateToolRequest

The request message for [Tools.CreateTool][google.cloud.dialogflow.cx.v3.Tools.CreateTool].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

  • $msg->tool() / $msg->tool($value)

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Tool::Tool)

    Required. The Tool to be created.

Google::Cloud::Dialogflow::Cx::V3::Tool::ListToolsRequest

The request message for [Tools.ListTools][google.cloud.dialogflow.cx.v3.Tools.ListTools].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The agent to list the Tools from. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return in a single page. By default 100 and at most 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::Cx::V3::Tool::ListToolsResponse

The response message for [Tools.ListTools][google.cloud.dialogflow.cx.v3.Tools.ListTools].

Inherits from Protobuf::Message.

Accessors

  • $msg->tools() / $msg->tools($value)

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Tool::Tool)

    The list of Tools. There will be a maximum number of items returned based on the page_size field in the request.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Dialogflow::Cx::V3::Tool::GetToolRequest

The request message for [Tools.GetTool][google.cloud.dialogflow.cx.v3.Tools.GetTool].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the Tool. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

Google::Cloud::Dialogflow::Cx::V3::Tool::UpdateToolRequest

The request message for [Tools.UpdateTool][google.cloud.dialogflow.cx.v3.Tools.UpdateTool].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3::Tool::DeleteToolRequest

The request message for [Tools.DeleteTool][google.cloud.dialogflow.cx.v3.Tools.DeleteTool].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the Tool to be deleted. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

  • $msg->force() / $msg->force($value)

    Type: Bool

    This field has no effect for Tools not being used. For Tools that are used:

    * If `force` is set to false, an error will be returned with message indicating the referenced resources. * If `force` is set to true, Dialogflow will remove the tool, as well as any references to the tool.

Google::Cloud::Dialogflow::Cx::V3::Tool::Tool

A tool provides a list of actions which are available to the [Playbook][google.cloud.dialogflow.cx.v3.Playbook] to attain its goal. A Tool consists of a description of the tool's usage and a specification of the tool which contains the schema and authentication information.

Inherits from Protobuf::Message.

Accessors

Enum: Tool::ToolType

  • TOOL_TYPE_UNSPECIFIED => 0

  • CUSTOMIZED_TOOL => 1

  • BUILTIN_TOOL => 2

Google::Cloud::Dialogflow::Cx::V3::Tool::ListToolVersionsRequest

The request message for [Tools.ListToolVersions][google.cloud.dialogflow.cx.v3.Tools.ListToolVersions].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent of the tool versions. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::Cx::V3::Tool::ListToolVersionsResponse

The response message for [Tools.ListToolVersions][google.cloud.dialogflow.cx.v3.Tools.ListToolVersions].

Inherits from Protobuf::Message.

Accessors

  • $msg->tool_versions() / $msg->tool_versions($value)

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Tool::ToolVersion)

    The list of tool versions. There will be a maximum number of items returned based on the page_size field in the request.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Dialogflow::Cx::V3::Tool::CreateToolVersionRequest

The request message for [Tools.CreateToolVersion][google.cloud.dialogflow.cx.v3.Tools.CreateToolVersion]. The request message for [Tools.CreateToolVersion][google.cloud.dialogflow.cx.v3.Tools.CreateToolVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The tool to create a version for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.

  • $msg->tool_version() / $msg->tool_version($value)

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Tool::ToolVersion)

    Required. The tool version to create.

Google::Cloud::Dialogflow::Cx::V3::Tool::GetToolVersionRequest

The request message for [Tools.GetToolVersion][google.cloud.dialogflow.cx.v3.Tools.GetToolVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the tool version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.

Google::Cloud::Dialogflow::Cx::V3::Tool::DeleteToolVersionRequest

The request message for [Tools.DeleteToolVersion][google.cloud.dialogflow.cx.v3.Tools.DeleteToolVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the tool version to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.

  • $msg->force() / $msg->force($value)

    Type: Bool

    Optional. This field has no effect for Tools not being used. For Tools that are used:

    * If `force` is set to false, an error will be returned with message indicating the referenced resources. * If `force` is set to true, Dialogflow will remove the tool, as well as any references to the tool.

Google::Cloud::Dialogflow::Cx::V3::Tool::RestoreToolVersionRequest

The request message for [Tools.RestoreToolVersion][google.cloud.dialogflow.cx.v3.Tools.RestoreToolVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the tool version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.

Google::Cloud::Dialogflow::Cx::V3::Tool::RestoreToolVersionResponse

The response message for [Tools.RestoreToolVersion][google.cloud.dialogflow.cx.v3.Tools.RestoreToolVersion].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3::Tool::ToolVersion

Tool version is a snapshot of the tool at certain timestamp.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Identifier. The unique identifier of the tool version. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>`.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the tool version.

  • $msg->tool() / $msg->tool($value)

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Tool::Tool)

    Required. Snapshot of the tool to be associated with this version.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last time the tool version was created or modified.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Last time the tool version was created or modified.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3::Tool::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.