NAME

Google::Actions::Sdk::V2::Conversation::Image - Compiled Protocol Buffers messages for google/actions/sdk/v2/conversation/prompt/content/image.proto

SYNOPSIS

use Google::Actions::Sdk::V2::Conversation::Image;

my $msg = Google::Actions::Sdk::V2::Conversation::Image::Image->new({
    url => $url,
    alt => $alt,
    height => $height,
    width => $width,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/conversation/prompt/content/image.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::Image::Image

An image displayed in the card.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The source url of the image. Images can be JPG, PNG and GIF (animated and non-animated). For example,`https://www.agentx.com/logo.png`. Required.

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

    Type: String

    A text description of the image to be used for accessibility, e.g. screen readers. Required.

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

    Type: Int32

    The height of the image in pixels. Optional.

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

    Type: Int32

    The width of the image in pixels. Optional.

Enum: Image::ImageFill

  • UNSPECIFIED => 0

  • GRAY => 1

  • WHITE => 2

  • CROPPED => 3

SEE ALSO

Protobuf, Protobuf::Message, Google::Actions::Sdk::V2::Conversation::Image::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.