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

SYNOPSIS

use Google::Cloud::Dialogflow::V2beta1::Tool;

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

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

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

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

DESCRIPTION

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

Request message of CreateTool.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project/location to create tool for. Format: `projects/<Project ID>/locations/<Location ID>`

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool)

    Required. The tool to create.

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

    Type: 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.

Google::Cloud::Dialogflow::V2beta1::Tool::GetToolRequest

Request message of GetTool.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The tool resource name to retrieve. Format: `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`

Google::Cloud::Dialogflow::V2beta1::Tool::ListToolsRequest

Request message of ListTools.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project/location to list tools for. Format: `projects/<Project ID>/locations/<Location ID>`

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

    Type: Int32

    Optional. Maximum number of conversation models to return in a single page. Default to 10.

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

    Type: String

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

Google::Cloud::Dialogflow::V2beta1::Tool::ListToolsResponse

Response of ListTools.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool)

    List of tools retrieved.

  • $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::V2beta1::Tool::DeleteToolRequest

Request of DeleteTool.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The tool resource name to delete. Format: `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`

Google::Cloud::Dialogflow::V2beta1::Tool::UpdateToolRequest

Request of UpdateTool.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2beta1::Tool::Tool

Represents a tool.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Identifier. The resource name of the tool. Format: `projects/<Project ID>/locations/<Location ID>/tools/<Tool ID>`.

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

    Type: 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.

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

    Type: String

    Optional. A human readable short name of the tool, to be shown on the UI.

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

    Type: String

    Optional. A human readable description of the tool.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool::ActionConfirmationRequirementEntry)

    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.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool::ExtensionTool)

    Vertex extension tool specification.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool::FunctionTool)

    Client side executed function specification.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool::ConnectorTool)

    Integration connectors tool specification.

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

    Type: Message (Google::Cloud::Dialogflow::V2beta1::Tool::Tool::OpenApiTool)

    OpenAPI tool.

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

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

    Output only. Creation time of this tool.

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

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

    Output only. Update time of this tool.

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

    Type: 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.

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

    Type: 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.

Enum: Tool::ConfirmationRequirement

  • CONFIRMATION_REQUIREMENT_UNSPECIFIED => 0

  • REQUIRED => 1

  • NOT_REQUIRED => 2

Enum: Tool::MethodType

  • METHOD_TYPE_UNSPECIFIED => 0

  • GET => 1

  • POST => 2

  • PUT => 3

  • DELETE => 4

  • PATCH => 5

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.