Service Client: Google::Cloud::Dialogflow::Cx::V3::Page::PagesClient

Client stub representing the remote Pages 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::Page - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/page.proto

SYNOPSIS

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

my $msg = Google::Cloud::Dialogflow::Cx::V3::Page::Page->new({
    name => $name,
    display_name => $display_name,
    description => $description,
    entry_fulfillment => $entry_fulfillment,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/page.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::Page::Page

A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages.

For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page.

You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page.

For more information, see the [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The unique identifier of the page. Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

    Type: String

    Required. The human-readable name of the page, unique within the flow.

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

    Type: String

    The description of the page. The maximum length is 500 characters.

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

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

    The fulfillment to call when the session is entering the page.

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

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

    The form associated with the page, used for collecting parameters relevant to the page.

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

    Type: String

    Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] added to the page. Transition route groups must be unique within a page. If the page links both flow-level transition route groups and agent-level transition route groups, the flow-level ones will have higher priority and will be put before the agent-level ones.

    * If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route -> page's transition route group -> flow's transition routes.

    * If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence.

    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->transition_routes() / $msg->transition_routes($value)

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

    A list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow.

    When we are in a certain page, the TransitionRoutes are evaluated in the following order:

    * TransitionRoutes defined in the page with intent specified. * TransitionRoutes defined in the [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent specified. * TransitionRoutes defined in flow with intent specified. * TransitionRoutes defined in the [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent specified. * TransitionRoutes defined in the page with only condition specified. * TransitionRoutes defined in the [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only condition specified.

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

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

    Handlers associated with the page to handle events such as webhook errors, no match or no input.

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

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

    Hierarchical advanced settings for this page. 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.

Google::Cloud::Dialogflow::Cx::V3::Page::Form

A form is a data model that groups related parameters that can be collected from the user. The process in which the agent prompts the user and collects parameter values from the user is called form filling. A form can be added to a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the filled parameters will be written to the [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Dialogflow::Cx::V3::Page::EventHandler

An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled during a session. When the specified event happens, the following actions are taken in order:

* If there is a [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with the event, it will be called. * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated with the event, the session will transition into the specified page. * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated with the event, the session will transition into the specified flow.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The unique identifier of this event handler.

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

    Type: String

    Required. The name of the event to handle.

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

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

    The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.

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

    Type: String

    The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

    Type: String

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

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

    Type: String

    The target playbook to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.

Google::Cloud::Dialogflow::Cx::V3::Page::TransitionRoute

A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order:

* If there is a [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with the transition, it will be called. * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated with the transition, the session will transition into the specified page. * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated with the transition, the session will transition into the specified flow.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The unique identifier of this transition route.

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

    Type: String

    Optional. The description of the transition route. The maximum length is 500 characters.

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

    Type: String

    The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.

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

    Type: String

    The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].

    See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled.

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

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

    The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first.

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

    Type: String

    The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

    Type: String

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

Google::Cloud::Dialogflow::Cx::V3::Page::ListPagesRequest

The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The flow to list all pages for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

    Type: String

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

    * `Page.entry_fulfillment.messages` * `Page.entry_fulfillment.conditional_cases` * `Page.event_handlers.trigger_fulfillment.messages` * `Page.event_handlers.trigger_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.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.

  • $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::V3::Page::ListPagesResponse

The response message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].

Inherits from Protobuf::Message.

Accessors

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

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

    The list of pages. 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::Page::GetPageRequest

The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the page. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

    Type: String

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

    * `Page.entry_fulfillment.messages` * `Page.entry_fulfillment.conditional_cases` * `Page.event_handlers.trigger_fulfillment.messages` * `Page.event_handlers.trigger_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.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::Page::CreatePageRequest

The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

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

    Required. The page to create.

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

    Type: String

    The language of the following fields in `page`:

    * `Page.entry_fulfillment.messages` * `Page.entry_fulfillment.conditional_cases` * `Page.event_handlers.trigger_fulfillment.messages` * `Page.event_handlers.trigger_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.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::Page::UpdatePageRequest

The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].

Inherits from Protobuf::Message.

Accessors

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

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

    Required. The page to update.

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

    Type: String

    The language of the following fields in `page`:

    * `Page.entry_fulfillment.messages` * `Page.entry_fulfillment.conditional_cases` * `Page.event_handlers.trigger_fulfillment.messages` * `Page.event_handlers.trigger_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` * `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases` * `Page.transition_routes.trigger_fulfillment.messages` * `Page.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.

  • $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::V3::Page::DeletePageRequest

The request message for [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the page to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/Flows/<flowID>/pages/<PageID>`.

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

    Type: Bool

    This field has no effect for pages with no incoming transitions. For pages 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 page, as well as any transitions to the page (i.e. [Target page][EventHandler.target_page] in event handlers or [Target page][TransitionRoute.target_page] in transition routes that point to this page will be cleared).

Google::Cloud::Dialogflow::Cx::V3::Page::KnowledgeConnectorSettings

The Knowledge Connector settings for this page or flow. This includes information such as the attached Knowledge Bases, and the way to execute fulfillment.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Whether Knowledge Connector is enabled or not.

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

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

    The fulfillment to be triggered.

    When the answers from the Knowledge Connector are selected by Dialogflow, you can utitlize the request scoped parameter `$request.knowledge.answers` (contains up to the 5 highest confidence answers) and `$request.knowledge.questions` (contains the corresponding questions) to construct the fulfillment.

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

    Type: String

    The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

    Type: String

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

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

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

    Optional. List of related data store connections.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.