NAME
Google::Actions::Sdk::V2::Conversation::Media - Compiled Protocol Buffers messages for google/actions/sdk/v2/conversation/prompt/content/media.proto
SYNOPSIS
use Google::Actions::Sdk::V2::Conversation::Media;
my $msg = Google::Actions::Sdk::V2::Conversation::Media::Media->new({
media_type => $media_type,
start_offset => $start_offset,
optional_media_controls => $optional_media_controls,
media_objects => $media_objects,
});
# Read or update a field
my $val = $msg->media_type();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Actions::Sdk::V2::Conversation::Media::Media->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/conversation/prompt/content/media.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::Media::Media
Represents one media object. Contains information about the media, such as name, description, url, etc.
Inherits from Protobuf::Message.
Accessors
$msg->media_type()/$msg->media_type($value)Type:
Enum(Google::Actions::Sdk::V2::Conversation::Media::MediaType)Media type.
$msg->start_offset()/$msg->start_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Start offset of the first media object.
$msg->optional_media_controls()/$msg->optional_media_controls($value)Type:
Enum(Google::Actions::Sdk::V2::Conversation::Media::OptionalMediaControls)Optional media control types this media response session can support. If set, request will be made to 3p when a certain media event happens. If not set, 3p must still handle two default control type, FINISHED and FAILED.
$msg->media_objects()/$msg->media_objects($value)Type:
Message(Google::Actions::Sdk::V2::Conversation::Media::MediaObject)List of Media Objects
Enum: Media::MediaType
MEDIA_TYPE_UNSPECIFIED=>0AUDIO=>1MEDIA_STATUS_ACK=>2
Enum: Media::OptionalMediaControls
OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED=>0PAUSED=>1STOPPED=>2
Google::Actions::Sdk::V2::Conversation::Media::MediaObject
Represents a single media object
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of this media object.
$msg->description()/$msg->description($value)Type:
StringDescription of this media object.
$msg->url()/$msg->url($value)Type:
StringThe url pointing to the media content.
$msg->image()/$msg->image($value)Type:
Message(Google::Actions::Sdk::V2::Conversation::Media::MediaImage)Image to show with the media card.
Google::Actions::Sdk::V2::Conversation::Media::MediaImage
Image to show with the media card.
Inherits from Protobuf::Message.
Accessors
$msg->large()/$msg->large($value)Type:
Message(Google::Actions::Sdk::V2::Conversation::Image::Image)A large image, such as the cover of the album, etc.
$msg->icon()/$msg->icon($value)Type:
Message(Google::Actions::Sdk::V2::Conversation::Image::Image)A small image icon displayed on the right from the title. It's resized to 36x36 dp.
SEE ALSO
Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Conversation::Media::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.