Service Client: Google::Cloud::Dialogflow::Cx::V3beta1::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::Cx::V3beta1::Agent - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/agent.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3beta1::Agent;
my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::Agent::SpeechToTextSettings->new({
enable_speech_adaptation => $enable_speech_adaptation,
});
# Read or update a field
my $val = $msg->enable_speech_adaptation();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3beta1::Agent::SpeechToTextSettings->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/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::Cx::V3beta1::Agent::SpeechToTextSettings
Settings related to speech recognition.
Inherits from Protobuf::Message.
Accessors
$msg->enable_speech_adaptation()/$msg->enable_speech_adaptation($value)Type:
BoolWhether to use speech adaptation for speech recognition.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent
Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way.
After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3beta1.Intent], [Entity Types][google.cloud.dialogflow.cx.v3beta1.EntityType], [Flows][google.cloud.dialogflow.cx.v3beta1.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3beta1.Fulfillment], [Webhooks][google.cloud.dialogflow.cx.v3beta1.Webhook], [TransitionRouteGroups][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup] and so on to manage the conversation flows.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe unique identifier of the agent. Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The human-readable name of the agent, unique within the location.
$msg->default_language_code()/$msg->default_language_code($value)Type:
StringRequired. Immutable. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method.
$msg->supported_language_codes()/$msg->supported_language_codes($value)Type:
StringThe list of all languages supported by the agent (except for the `default_language_code`).
$msg->time_zone()/$msg->time_zone($value)Type:
StringRequired. The time zone of the 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:
StringThe description of the agent. The maximum length is 500 characters. If exceeded, the request is rejected.
$msg->avatar_uri()/$msg->avatar_uri($value)Type:
StringThe 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->speech_to_text_settings()/$msg->speech_to_text_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::SpeechToTextSettings)Speech recognition related settings.
$msg->start_flow()/$msg->start_flow($value)Type:
StringName of the start flow in this agent. A start flow will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Currently only the default start flow with id "00000000-0000-0000-0000-000000000000" is allowed.
$msg->start_playbook()/$msg->start_playbook($value)Type:
StringName of the start playbook in this agent. A start playbook will be automatically created when the agent is created, and can only be deleted by deleting the agent. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. Currently only the default playbook with id "00000000-0000-0000-0000-000000000000" is allowed.
$msg->security_settings()/$msg->security_settings($value)Type:
StringName of the [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings] reference for the agent. Format: `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`.
$msg->enable_stackdriver_logging()/$msg->enable_stackdriver_logging($value)Type:
BoolIndicates if stackdriver logging is enabled for the agent. Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings] instead.
$msg->enable_spell_correction()/$msg->enable_spell_correction($value)Type:
BoolIndicates if automatic spell correction is enabled in detect intent requests.
$msg->enable_multi_language_training()/$msg->enable_multi_language_training($value)Type:
BoolOptional. Enable training multi-lingual models for this agent. These models will be trained on all the languages supported by the agent.
$msg->locked()/$msg->locked($value)Type:
BoolIndicates whether the agent is locked for changes. If the agent is locked, modifications to the agent will be rejected except for [RestoreAgent][].
$msg->advanced_settings()/$msg->advanced_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::AdvancedSettings::AdvancedSettings)Hierarchical advanced settings for this agent. The settings exposed at the lower level overrides the settings exposed at the higher level.
$msg->git_integration_settings()/$msg->git_integration_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent::GitIntegrationSettings)Git integration settings for this agent.
$msg->bigquery_export_settings()/$msg->bigquery_export_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::BigqueryExport::BigQueryExportSettings)Optional. The BigQuery export settings for this agent. The conversation data will be exported to BigQuery tables if it is enabled. By default, BigQuery export settings will not be exported with agent. You need to set [include_bigquery_export_settings][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.include_bigquery_export_settings] to include it in the exported agent.
$msg->text_to_speech_settings()/$msg->text_to_speech_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::AudioConfig::TextToSpeechSettings)Settings on instructing the speech synthesizer on how to generate the output audio content.
$msg->gen_app_builder_settings()/$msg->gen_app_builder_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent::GenAppBuilderSettings)Gen App Builder-related agent-level settings.
$msg->answer_feedback_settings()/$msg->answer_feedback_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent::AnswerFeedbackSettings)Optional. Answer feedback collection settings.
$msg->personalization_settings()/$msg->personalization_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent::PersonalizationSettings)Optional. Settings for end user personalization.
$msg->client_certificate_settings()/$msg->client_certificate_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent::ClientCertificateSettings)Optional. Settings for custom client certificates.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
BoolOptional. Output only. A read only boolean field reflecting Zone Separation status of the agent.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
BoolOptional. Output only. A read only boolean field reflecting Zone Isolation status of the agent.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::ListAgentsRequest
The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location to list all agents for. Format: `projects/<ProjectID>/locations/<LocationID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The 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:
StringThe next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::ListAgentsResponse
The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents].
Inherits from Protobuf::Message.
Accessors
$msg->agents()/$msg->agents($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::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:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::GetAgentRequest
The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgent].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the agent. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::CreateAgentRequest
The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location to create a agent for. Format: `projects/<ProjectID>/locations/<LocationID>`.
$msg->agent()/$msg->agent($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent)Required. The agent to create.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::UpdateAgentRequest
The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent].
Inherits from Protobuf::Message.
Accessors
$msg->agent()/$msg->agent($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Agent)Required. The agent to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The mask to control which fields get updated. If the mask is not present, all fields will be updated.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::DeleteAgentRequest
The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgent].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the agent to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::ExportAgentRequest
The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the agent to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->agent_uri()/$msg->agent_uri($value)Type:
StringOptional. 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).
$msg->data_format()/$msg->data_format($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::ExportAgentRequest::DataFormat)Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
$msg->environment()/$msg->environment($value)Type:
StringOptional. Environment name. If not set, draft environment is assumed. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
$msg->git_destination()/$msg->git_destination($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::ExportAgentRequest::GitDestination)Optional. The Git branch to export the agent to.
$msg->include_bigquery_export_settings()/$msg->include_bigquery_export_settings($value)Type:
BoolOptional. Whether to include BigQuery Export setting.
Enum: ExportAgentRequest::DataFormat
DATA_FORMAT_UNSPECIFIED=>0BLOB=>1JSON_PACKAGE=>4
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::ExportAgentResponse
The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent].
Inherits from Protobuf::Message.
Accessors
$msg->agent_uri()/$msg->agent_uri($value)Type:
StringThe URI to a file containing the exported agent. This field is populated if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
$msg->agent_content()/$msg->agent_content($value)Type:
BytesUncompressed raw byte content for agent. This field is populated if none of `agent_uri` and `git_destination` are specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
$msg->commit_sha()/$msg->commit_sha($value)Type:
StringCommit SHA of the git push. This field is populated if `git_destination` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::RestoreAgentRequest
The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the agent to restore into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->agent_uri()/$msg->agent_uri($value)Type:
StringThe [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to restore agent from. The format of this URI must be `gs://<bucket-name>/<object-name>`.
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:
BytesUncompressed raw byte content for agent.
$msg->git_source()/$msg->git_source($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Agent::RestoreAgentRequest::GitSource)Setting for restoring from a git branch
$msg->restore_option()/$msg->restore_option($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::RestoreAgentRequest::RestoreOption)Agent restore mode. If not specified, `KEEP` is assumed.
Enum: RestoreAgentRequest::RestoreOption
RESTORE_OPTION_UNSPECIFIED=>0KEEP=>1FALLBACK=>2
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::ValidateAgentRequest
The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The agent to validate. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->language_code()/$msg->language_code($value)Type:
StringIf not specified, the agent's default language is used.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::GetAgentValidationResultRequest
The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The agent name. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/validationResult`.
$msg->language_code()/$msg->language_code($value)Type:
StringIf not specified, the agent's default language is used.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::AgentValidationResult
The response message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe unique identifier of the agent validation result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/validationResult`.
$msg->flow_validation_results()/$msg->flow_validation_results($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::Flow::FlowValidationResult)Contains all flow validation results.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::GetGenerativeSettingsRequest
Request for [GetGenerativeSettings][google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettings] RPC.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`.
$msg->language_code()/$msg->language_code($value)Type:
StringRequired. Language code of the generative settings.
Google::Cloud::Dialogflow::Cx::V3beta1::Agent::UpdateGenerativeSettingsRequest
Request for [UpdateGenerativeSettings][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettings] RPC.
Inherits from Protobuf::Message.
Accessors
$msg->generative_settings()/$msg->generative_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::GenerativeSettings::GenerativeSettings)Required. Generative settings to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::Agent::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.