Service Client: Google::Cloud::Dialogflow::Cx::V3::Flow::FlowsClient

Client stub representing the remote Flows 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::V3::Flow - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/flow.proto

SYNOPSIS

use Google::Cloud::Dialogflow::Cx::V3::Flow;

my $msg = Google::Cloud::Dialogflow::Cx::V3::Flow::NluSettings->new({
    model_type => $model_type,
    classification_threshold => $classification_threshold,
    model_training_mode => $model_training_mode,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/flow.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::V3::Flow::NluSettings

Settings related to NLU.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3::NluSettings::ModelType)

    Indicates the type of NLU model.

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

    Type: Float

    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 no-match event 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. You can set a separate classification threshold for the flow in each language enabled for the agent.

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3::NluSettings::ModelTrainingMode)

    Indicates NLU model training mode.

Enum: NluSettings::ModelType

  • MODEL_TYPE_UNSPECIFIED => 0

  • MODEL_TYPE_STANDARD => 1

  • MODEL_TYPE_ADVANCED => 3

Enum: NluSettings::ModelTrainingMode

  • MODEL_TRAINING_MODE_UNSPECIFIED => 0

  • MODEL_TRAINING_MODE_AUTOMATIC => 1

  • MODEL_TRAINING_MODE_MANUAL => 2

Google::Cloud::Dialogflow::Cx::V3::Flow::Flow

Flows represents the conversation flows when you build your chatbot agent.

A flow consists of many pages connected by the transition routes. Conversations always start with the built-in Start Flow (with an all-0 ID). Transition routes can direct the conversation session from the current flow (parent flow) to another flow (sub flow). When the sub flow is finished, Dialogflow will bring the session back to the parent flow, where the sub flow is started.

Usually, when a transition route is followed by a matched intent, the intent will be "consumed". This means the intent won't activate more transition routes. However, when the followed transition route moves the conversation session into a different flow, the matched intent can be carried over and to be consumed in the target flow.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique identifier of the flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

    Type: String

    Required. The human-readable name of the flow.

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

    Type: String

    The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Page::TransitionRoute)

    A flow's transition routes serve two purposes:

    * They are responsible for matching the user's first utterances in the flow. * They are inherited by every page's [transition routes][Page.transition_routes] and can support use cases such as the user saying "help" or "can I talk to a human?", which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow.

    TransitionRoutes are evaluated in the following order:

    * TransitionRoutes with intent specified. * TransitionRoutes with only condition specified.

    TransitionRoutes with intent specified are inherited by pages in the flow.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Page::EventHandler)

    A flow's event handlers serve two purposes:

    * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page's [event handlers][Page.event_handlers], which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow.

    Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.

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

    Type: String

    A flow's transition route group serve two purposes:

    * They are responsible for matching the user's first utterances in the flow. * They are inherited by every page's [transition route groups][Page.transition_route_groups]. Transition route groups defined in the page have higher priority than those defined in the flow.

    Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>` for agent-level groups.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Flow::NluSettings)

    NLU related settings of the flow.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::AdvancedSettings::AdvancedSettings)

    Hierarchical advanced settings for this flow. The settings exposed at the lower level overrides the settings exposed at the higher level.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Page::KnowledgeConnectorSettings)

    Optional. Knowledge connector configuration.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::ParameterDefinition::ParameterDefinition)

    Optional. Defined structured input parameters for this flow.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::ParameterDefinition::ParameterDefinition)

    Optional. Defined structured output parameters for this flow.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Flow::Flow::MultiLanguageSettings)

    Optional. Multi-lingual agent settings for this flow.

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

    Type: Bool

    Indicates whether the flow is locked for changes. If the flow is locked, modifications to the flow will be rejected.

Google::Cloud::Dialogflow::Cx::V3::Flow::CreateFlowRequest

The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Flow::Flow)

    Required. The flow to create.

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

    Type: String

    The language of the following fields in `flow`:

    * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases`

    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::V3::Flow::DeleteFlowRequest

The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the flow to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

    Type: Bool

    This field has no effect for flows with no incoming transitions. For flows with incoming transitions:

    * If `force` is set to false, an error will be returned with message indicating the incoming transitions. * If `force` is set to true, Dialogflow will remove the flow, as well as any transitions to the flow (i.e. [Target flow][EventHandler.target_flow] in event handlers or [Target flow][TransitionRoute.target_flow] in transition routes that point to this flow will be cleared).

Google::Cloud::Dialogflow::Cx::V3::Flow::ListFlowsRequest

The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The agent containing the flows. 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.

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

    Type: String

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

    * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases`

    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::V3::Flow::ListFlowsResponse

The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Flow::Flow)

    The list of flows. 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::V3::Flow::GetFlowRequest

The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the flow to get. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

    Type: String

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

    * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases`

    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::V3::Flow::UpdateFlowRequest

The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Flow::Flow)

    Required. The flow 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.

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

    Type: String

    The language of the following fields in `flow`:

    * `Flow.event_handlers.trigger_fulfillment.messages` * `Flow.event_handlers.trigger_fulfillment.conditional_cases` * `Flow.transition_routes.trigger_fulfillment.messages` * `Flow.transition_routes.trigger_fulfillment.conditional_cases`

    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::V3::Flow::TrainFlowRequest

The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The flow to train. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

Google::Cloud::Dialogflow::Cx::V3::Flow::ValidateFlowRequest

The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The flow to validate. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

    Type: String

    If not specified, the agent's default language is used.

Google::Cloud::Dialogflow::Cx::V3::Flow::GetFlowValidationResultRequest

The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The flow name. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/validationResult`.

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

    Type: String

    If not specified, the agent's default language is used.

Google::Cloud::Dialogflow::Cx::V3::Flow::FlowValidationResult

The response message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowRequest

The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

    Type: Bytes

    Uncompressed raw byte content for flow.

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3::ImportFlowRequest::ImportOption)

    Flow import mode. If not specified, `KEEP` is assumed.

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

    Type: Message (Google::Cloud::Dialogflow::Cx::V3::Flow::FlowImportStrategy)

    Optional. Specifies the import strategy used when resolving resource conflicts.

Enum: ImportFlowRequest::ImportOption

  • IMPORT_OPTION_UNSPECIFIED => 0

  • KEEP => 1

  • FALLBACK => 2

Google::Cloud::Dialogflow::Cx::V3::Flow::FlowImportStrategy

The flow import strategy used for resource conflict resolution associated with an [ImportFlowRequest][google.cloud.dialogflow.cx.v3.ImportFlowRequest].

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Dialogflow::Cx::V3::ImportStrategy)

    Optional. Import strategy for resource conflict resolution, applied globally throughout the flow. It will be applied for all display name conflicts in the imported content. If not specified, 'CREATE_NEW' is assumed.

Google::Cloud::Dialogflow::Cx::V3::Flow::ImportFlowResponse

The response message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique identifier of the new flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowRequest

The request message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

    Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the flow to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If left unspecified, the serialized flow 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->include_referenced_flows() / $msg->include_referenced_flows($value)

    Type: Bool

    Optional. Whether to export flows referenced by the specified flow.

Google::Cloud::Dialogflow::Cx::V3::Flow::ExportFlowResponse

The response message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The URI to a file containing the exported flow. This field is populated only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].

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

    Type: Bytes

    Uncompressed raw byte content for flow.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3::Flow::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.