NAME

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

SYNOPSIS

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

my $msg = Google::Actions::Sdk::V2::Interactionmodel::Scene::Scene->new({
    on_enter => $on_enter,
    intent_events => $intent_events,
    conditional_events => $conditional_events,
    slots => $slots,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/interactionmodel/scene.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::Scene::Scene

Scene is the basic unit of control flow when designing a conversation. They can be chained together with other scenes, generate prompts for the end user, and define slots. The scene name is specified in the name of the file.

Inherits from Protobuf::Message.

Accessors

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

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

    Handler to invoke when transitioning into this scene.

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

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

    The list of events that trigger based on intents. These events can be triggered at any time after the on_load Handler has been called. Important - these events define the set of intents which are scoped to this scene and will take precedence over any globally defined events that have the same intents or their triggering phrases. Intent names must be unique within a scene.

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

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

    The list of events to trigger based on conditional statements. These are evaluated after the form has been filled or immediately after on_load if this scene does not have a form (evaluation is only done once). Only the first matching event will be triggered.

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

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

    Ordered list of slots. Each slot defines the type of data that it will resolve and configuration to customize the experience of this resolution (e.g. prompts).

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

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

    Handler called when there is a change in state of a slot not caused by updates within another Handler. This allows slots to be invalidated, the scene invalidated or other changes to scene state.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.