NAME
Google::Actions::Sdk::V2::Conversation::Canvas - Compiled Protocol Buffers messages for google/actions/sdk/v2/conversation/prompt/content/canvas.proto
SYNOPSIS
use Google::Actions::Sdk::V2::Conversation::Canvas;
my $msg = Google::Actions::Sdk::V2::Conversation::Canvas::Canvas->new({
url => $url,
data => $data,
suppress_mic => $suppress_mic,
enable_full_screen => $enable_full_screen,
});
# Read or update a field
my $val = $msg->url();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::Conversation::Canvas::Canvas->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/conversation/prompt/content/canvas.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::Conversation::Canvas::Canvas
Represents an Interactive Canvas response to be sent to the user. This can be used in conjunction with the "first_simple" field in the containing prompt to speak to the user in addition to displaying a interactive canvas response. The maximum size of the response is 50k bytes.
Inherits from Protobuf::Message.
Accessors
$msg->url()/$msg->url($value)Type:
StringURL of the interactive canvas web app to load. If not set, the url from current active canvas will be reused.
$msg->data()/$msg->data($value)Type:
Message(Google::Protobuf::Struct::Value)Optional. JSON data to be passed through to the immersive experience web page as an event. If the "override" field in the containing prompt is "false" data values defined in this Canvas prompt will be added after data values defined in previous Canvas prompts.
$msg->suppress_mic()/$msg->suppress_mic($value)Type:
BoolOptional. Default value: false.
$msg->enable_full_screen()/$msg->enable_full_screen($value)Type:
BoolIf `true` the canvas application occupies the full screen and won't have a header at the top. A toast message will also be displayed on the loading screen that includes the Action's display name, the developer's name, and instructions for exiting the Action. Default value: `false`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Conversation::Canvas::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.