NAME

Google::Cloud::Automl::V1::DataItems - Compiled Protocol Buffers messages for google/cloud/automl/v1/data_items.proto

SYNOPSIS

use Google::Cloud::Automl::V1::DataItems;

my $msg = Google::Cloud::Automl::V1::DataItems::Image->new({
    image_bytes => $image_bytes,
    thumbnail_uri => $thumbnail_uri,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1::DataItems::Image->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/data_items.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Automl::V1::DataItems::Image

A representation of an image. Only images up to 30MB in size are supported.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    Image content represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.

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

    Type: String

    Output only. HTTP URI to the thumbnail image.

Google::Cloud::Automl::V1::DataItems::TextSnippet

A representation of a text snippet.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The content of the text snippet as a string. Up to 250000 characters long.

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

    Type: String

    Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed values are "text/html" and "text/plain". If left blank, the format is automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content].

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

    Type: String

    Output only. HTTP URI where you can download the content.

Google::Cloud::Automl::V1::DataItems::DocumentDimensions

Message that describes dimension of a document.

Inherits from Protobuf::Message.

Accessors

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

    Type: Enum (Google::Cloud::Automl::V1::DocumentDimensions::DocumentDimensionUnit)

    Unit of the dimension.

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

    Type: Float

    Width value of the document, works together with the unit.

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

    Type: Float

    Height value of the document, works together with the unit.

Enum: DocumentDimensions::DocumentDimensionUnit

  • DOCUMENT_DIMENSION_UNIT_UNSPECIFIED => 0

  • INCH => 1

  • CENTIMETER => 2

  • POINT => 3

Google::Cloud::Automl::V1::DataItems::Document

A structured text document e.g. a PDF.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Automl::V1::DataItems::ExamplePayload

Example data used for training or prediction.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::DataItems::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.