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

Enum: Media::MediaType

  • MEDIA_TYPE_UNSPECIFIED => 0

  • AUDIO => 1

  • MEDIA_STATUS_ACK => 2

Enum: Media::OptionalMediaControls

  • OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED => 0

  • PAUSED => 1

  • STOPPED => 2

Google::Actions::Sdk::V2::Conversation::Media::MediaObject

Represents a single media object

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Name of this media object.

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

    Type: String

    Description of this media object.

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

    Type: String

    The 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

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.