NAME

Google::Actions::Sdk::V2::DataFile - Compiled Protocol Buffers messages for google/actions/sdk/v2/data_file.proto

SYNOPSIS

use Google::Actions::Sdk::V2::DataFile;

my $msg = Google::Actions::Sdk::V2::DataFile::DataFiles->new({
    data_files => $data_files,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/actions/sdk/v2/data_file.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::DataFile::DataFiles

Wrapper for repeated data file. Repeated fields cannot exist in a oneof.

Inherits from Protobuf::Message.

Accessors

Google::Actions::Sdk::V2::DataFile::DataFile

Represents a single file which contains unstructured data. Examples include image files, audio files, and cloud function source code.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Relative path of the data file from the project root in the SDK file structure. Allowed file paths: - Images: `resources/images/{multiple directories}?/{ImageName}.{extension}` - Audio: `resources/audio/{multiple directories}?/{AudioFileName}.{extension}` - Inline Cloud Function Code: `webhooks/{WebhookName}.zip` Allowed extensions: - Images: `png`, `jpg`, `jpeg` - Audio: `mp3`, `mpeg` - Inline Cloud Functions: `zip`

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

    Type: String

    Required. The content type of this asset. Example: `text/html`. The content type must comply with the specification (http://www.w3.org/Protocols/rfc1341/4_Content-Type.html). Cloud functions must be in zip format and the content type should be `application/zip;zip_type=cloud_function`. The zip_type parameter indicates that the zip is for a cloud function.

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

    Type: Bytes

    Content of the data file. Examples would be raw bytes of images, audio files, or cloud function zip format. There is 10 MB strict limit on the payload size.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.