Service Client: Google::Cloud::Dialogflow::Cx::V3beta1::Intent::IntentsClient

Client stub representing the remote Intents 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::Intent - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/intent.proto

SYNOPSIS

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

my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent->new({
    name => $name,
    display_name => $display_name,
    training_phrases => $training_phrases,
    parameters => $parameters,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/intent.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::Intent::Intent

An intent represents a user's intent to interact with a conversational agent.

You can provide information for the Dialogflow API to use to match user input to an intent by adding training phrases (i.e., examples of user input) to your intent.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique identifier of the intent. Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

    Type: String

    Required. The human-readable name of the intent, unique within the agent.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent::TrainingPhrase)

    The collection of training phrases the agent is trained on to identify the intent.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent::Parameter)

    The collection of parameters associated with the intent.

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

    Type: Int32

    The priority of this intent. Higher numbers represent higher priorities.

    - If the supplied value is unspecified or 0, the service translates the value to 500,000, which corresponds to the `Normal` priority in the console. - If the supplied value is negative, the intent is ignored in runtime detect intent requests.

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

    Type: Bool

    Indicates whether this is a fallback intent. Currently only default fallback intent is allowed in the agent, which is added upon agent creation. Adding training phrases to fallback intent is useful in the case of requests that are mistakenly matched, since training phrases assigned to fallback intents act as negative examples that triggers no-match event.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent::LabelsEntry)

    The key/value metadata to label an intent. Labels can contain lowercase letters, digits and the symbols '-' and '_'. International characters are allowed, including letters from unicase alphabets. Keys must start with a letter. Keys and values can be no longer than 63 characters and no more than 128 bytes.

    Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-contextual The above labels do not require value. "sys-head" means the intent is a head intent. "sys-contextual" means the intent is a contextual intent.

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

    Type: String

    Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 1000 characters.

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

    Type: String

    Optional. Matching DTMF pattern for the intent.

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ListIntentsRequest

The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to list all intents for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

    Type: String

    The language to list intents for. The following fields are language dependent:

    * `Intent.training_phrases.parts.text`

    If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3beta1::IntentView)

    The resource view to apply to the returned intent.

  • $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::Intent::ListIntentsResponse

The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent)

    The list of intents. 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::Intent::GetIntentRequest

The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3beta1.Intents.GetIntent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the intent. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

    Type: String

    The language to retrieve the intent for. The following fields are language dependent:

    * `Intent.training_phrases.parts.text`

    If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::CreateIntentRequest

The request message for [Intents.CreateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent)

    Required. The intent to create.

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

    Type: String

    The language of the following fields in `intent`:

    * `Intent.training_phrases.parts.text`

    If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::UpdateIntentRequest

The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::Intent)

    Required. The intent to update.

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

    Type: String

    The language of the following fields in `intent`:

    * `Intent.training_phrases.parts.text`

    If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.

  • $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::Intent::DeleteIntentRequest

The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntent].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the intent to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ImportIntentsRequest

The request message for [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent to import the intents into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.

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

    Type: String

    The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import intents 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->intents_content() / $msg->intents_content($value)

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

    Uncompressed byte content of intents.

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3beta1::ImportIntentsRequest::MergeOption)

    Merge option for importing intents. If not specified, `REJECT` is assumed.

Enum: ImportIntentsRequest::MergeOption

  • MERGE_OPTION_UNSPECIFIED => 0

  • REJECT => 1

  • REPLACE => 2

  • MERGE => 3

  • RENAME => 4

  • REPORT_CONFLICT => 5

  • KEEP => 6

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ImportIntentsResponse

The response message for [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique identifier of the imported intents. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ImportIntentsResponse::ConflictingResources)

    Info which resources have conflicts when [REPORT_CONFLICT][ImportIntentsResponse.REPORT_CONFLICT] merge_option is set in ImportIntentsRequest.

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ImportIntentsMetadata

Metadata returned for the [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents] long running operation.

Inherits from Protobuf::Message.

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ExportIntentsRequest

The request message for [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

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

    Type: String

    Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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->intents_content_inline() / $msg->intents_content_inline($value)

    Type: Bool

    Optional. The option to return the serialized intents inline.

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

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

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

Enum: ExportIntentsRequest::DataFormat

  • DATA_FORMAT_UNSPECIFIED => 0

  • BLOB => 1

  • JSON => 2

  • CSV => 3

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ExportIntentsResponse

The response message for [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

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

    Uncompressed byte content for intents. This field is populated only if `intents_content_inline` is set to true in [ExportIntentsRequest][google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest].

Google::Cloud::Dialogflow::Cx::V3beta1::Intent::ExportIntentsMetadata

Metadata returned for the [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents] long running operation.

Inherits from Protobuf::Message.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.