NAME

Google::Actions::Sdk::V2::Interactionmodel::GlobalIntentEvent - Compiled Protocol Buffers messages for google/actions/sdk/v2/interactionmodel/global_intent_event.proto

SYNOPSIS

use Google::Actions::Sdk::V2::Interactionmodel::GlobalIntentEvent;

my $msg = Google::Actions::Sdk::V2::Interactionmodel::GlobalIntentEvent::GlobalIntentEvent->new({
    transition_to_scene => $transition_to_scene,
    handler => $handler,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::Interactionmodel::GlobalIntentEvent::GlobalIntentEvent->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/interactionmodel/global_intent_event.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Actions::Sdk::V2::Interactionmodel::GlobalIntentEvent::GlobalIntentEvent

Defines a global intent handler. Global intent events are scoped to the entire Actions project and may be overridden by intent handlers in a scene. Intent names must be unique within an Actions project.

Global intents can be matched anytime during a session, allowing users to access common flows like "get help" or "go back home." They can also be used to deep link users into specific flows when they invoke an Action.

Note, the intent name is specified in the name of the file.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Optional. Destination scene which the conversation should jump to. The state of the current scene is destroyed on the transition.

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

    Type: Message (Google::Actions::Sdk::V2::Interactionmodel::EventHandler::EventHandler)

    Optional. Event handler which is triggered when the intent is matched. Should execute before transitioning to the destination scene. Useful to generate Prompts in response to events.

SEE ALSO

Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Interactionmodel::GlobalIntentEvent::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.