Service Client: Google::Cloud::Dialogflow::V2::Agent::AgentsClient

Client stub representing the remote Agents 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::V2::Agent - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/agent.proto

SYNOPSIS

use Google::Cloud::Dialogflow::V2::Agent;

my $msg = Google::Cloud::Dialogflow::V2::Agent::Agent->new({
    parent => $parent,
    display_name => $display_name,
    default_language_code => $default_language_code,
    supported_language_codes => $supported_language_codes,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/agent.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::V2::Agent::Agent

A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system.

For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project of this agent. Format: `projects/<Project ID>`.

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

    Type: String

    Required. The name of this agent.

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

    Type: String

    Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.

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

    Type: String

    Optional. The list of all languages supported by this agent (except for the `default_language_code`).

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

    Type: String

    Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.

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

    Type: String

    Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.

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

    Type: String

    Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.

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

    Type: Bool

    Optional. Determines whether this agent should log conversation queries.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::Agent::MatchMode)

    Optional. Determines how intents are detected from user queries.

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

    Type: Float

    Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::Agent::ApiVersion)

    Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.

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

    Type: Enum (Google::Cloud::Dialogflow::V2::Agent::Tier)

    Optional. The agent tier. If not specified, TIER_STANDARD is assumed.

Enum: Agent::MatchMode

  • MATCH_MODE_UNSPECIFIED => 0

  • MATCH_MODE_HYBRID => 1

  • MATCH_MODE_ML_ONLY => 2

Enum: Agent::ApiVersion

  • API_VERSION_UNSPECIFIED => 0

  • API_VERSION_V1 => 1

  • API_VERSION_V2 => 2

  • API_VERSION_V2_BETA_1 => 3

Enum: Agent::Tier

  • TIER_UNSPECIFIED => 0

  • TIER_STANDARD => 1

  • TIER_ENTERPRISE => 2

  • TIER_ENTERPRISE_PLUS => 3

Google::Cloud::Dialogflow::V2::Agent::GetAgentRequest

The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent to fetch is associated with. Format: `projects/<Project ID>`.

Google::Cloud::Dialogflow::V2::Agent::SetAgentRequest

The request message for [Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::V2::Agent::DeleteAgentRequest

The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent to delete is associated with. Format: `projects/<Project ID>`.

Google::Cloud::Dialogflow::V2::Agent::SearchAgentsRequest

The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project to list agents from. Format: `projects/<Project ID or '-'>`.

  • $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

    The next_page_token value returned from a previous list request.

Google::Cloud::Dialogflow::V2::Agent::SearchAgentsResponse

The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::V2::Agent::Agent)

    The list of agents. 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::V2::Agent::TrainAgentRequest

The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent to train is associated with. Format: `projects/<Project ID>`.

Google::Cloud::Dialogflow::V2::Agent::ExportAgentRequest

The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent to export is associated with. Format: `projects/<Project ID>`.

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

    Type: String

    Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the agent to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If left unspecified, the serialized agent is returned inline.

    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).

Google::Cloud::Dialogflow::V2::Agent::ExportAgentResponse

The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URI to a file containing the exported agent. This field is populated only if `agent_uri` is specified in `ExportAgentRequest`.

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

    Type: Bytes

    Zip compressed raw byte content for agent.

Google::Cloud::Dialogflow::V2::Agent::ImportAgentRequest

The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent to import is associated with. Format: `projects/<Project ID>`.

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

    Type: String

    The URI to a Google Cloud Storage file containing the agent to import. Note: The URI must start with "gs://".

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

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

    Type: Bytes

    Zip compressed raw byte content for agent.

Google::Cloud::Dialogflow::V2::Agent::RestoreAgentRequest

The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent to restore is associated with. Format: `projects/<Project ID>`.

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

    Type: String

    The URI to a Google Cloud Storage file containing the agent to restore. Note: The URI must start with "gs://".

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

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

    Type: Bytes

    Zip compressed raw byte content for agent.

Google::Cloud::Dialogflow::V2::Agent::GetValidationResultRequest

The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project that the agent is associated with. Format: `projects/<Project ID>`.

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

    Type: String

    Optional. The language for which you want a validation result. If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::Agent::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.