Service Client: Google::Cloud::Dialogflow::Cx::V3beta1::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::V3beta1::Tool - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/tool.proto

SYNOPSIS

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

my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::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::V3beta1::Tool::CreateToolRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/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::V3beta1::Tool::CreateToolRequest

The request message for [Tools.CreateTool][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::Tool)

    Required. The Tool to be created.

Google::Cloud::Dialogflow::Cx::V3beta1::Tool::ListToolsRequest

The request message for [Tools.ListTools][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::ListToolsResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::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::V3beta1::Tool::GetToolRequest

The request message for [Tools.GetTool][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::ExportToolsRequest

The request message for [Tools.ExportTools][google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to export tools from. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

    Type: String

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

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

    Type: String

    Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools to. The format of this URI must be `gs://<bucket-name>/<object-name>`.

    Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).

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

    Type: Bool

    Optional. The option to return the serialized tools inline.

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3beta1::ExportToolsRequest::DataFormat)

    Optional. The data format of the exported tools. If not specified, `BLOB` is assumed.

Enum: ExportToolsRequest::DataFormat

  • DATA_FORMAT_UNSPECIFIED => 0

  • BLOB => 1

Google::Cloud::Dialogflow::Cx::V3beta1::Tool::ExportToolsResponse

The response message for [Tools.ExportTools][google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URI to a file containing the exported tools. This field is populated only if `tools_uri` is specified in [ExportToolsRequest][google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest].

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Inline::InlineDestination)

    Uncompressed byte content for tools. This field is populated only if `tools_content_inline` is set to true in [ExportToolsRequest][google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest].

Google::Cloud::Dialogflow::Cx::V3beta1::Tool::UpdateToolRequest

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

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::Tool::DeleteToolRequest

The request message for [Tools.DeleteTool][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::Tool

A tool provides a list of actions which are available to the [Playbook][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::ListToolVersionsRequest

The request message for [Tools.ListToolVersions][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::ListToolVersionsResponse

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

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::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::V3beta1::Tool::CreateToolVersionRequest

The request message for [Tools.CreateToolVersion][google.cloud.dialogflow.cx.v3beta1.Tools.CreateToolVersion]. The request message for [Tools.CreateToolVersion][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::ToolVersion)

    Required. The tool version to create.

Google::Cloud::Dialogflow::Cx::V3beta1::Tool::GetToolVersionRequest

The request message for [Tools.GetToolVersion][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::DeleteToolVersionRequest

The request message for [Tools.DeleteToolVersion][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::RestoreToolVersionRequest

The request message for [Tools.RestoreToolVersion][google.cloud.dialogflow.cx.v3beta1.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::V3beta1::Tool::RestoreToolVersionResponse

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

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3beta1::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::V3beta1::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.

Google::Cloud::Dialogflow::Cx::V3beta1::Tool::ExportToolsMetadata

Metadata returned for the [Tools.ExportTools][google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools] long running operation.

Inherits from Protobuf::Message.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.