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:
BytesImage 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:
StringOutput 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:
StringRequired. The content of the text snippet as a string. Up to 250000 characters long.
$msg->mime_type()/$msg->mime_type($value)Type:
StringOptional. 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:
StringOutput 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:
FloatWidth value of the document, works together with the unit.
$msg->height()/$msg->height($value)Type:
FloatHeight value of the document, works together with the unit.
Enum: DocumentDimensions::DocumentDimensionUnit
DOCUMENT_DIMENSION_UNIT_UNSPECIFIED=>0INCH=>1CENTIMETER=>2POINT=>3
Google::Cloud::Automl::V1::DataItems::Document
A structured text document e.g. a PDF.
Inherits from Protobuf::Message.
Accessors
$msg->input_config()/$msg->input_config($value)Type:
Message(Google::Cloud::Automl::V1::Io::DocumentInputConfig)An input config specifying the content of the document.
$msg->document_text()/$msg->document_text($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::TextSnippet)The plain text version of this document.
$msg->layout()/$msg->layout($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::Document::Layout)Describes the layout of the document. Sorted by [page_number][].
$msg->document_dimensions()/$msg->document_dimensions($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::DocumentDimensions)The dimensions of the page in the document.
$msg->page_count()/$msg->page_count($value)Type:
Int32Number of pages in the document.
Google::Cloud::Automl::V1::DataItems::ExamplePayload
Example data used for training or prediction.
Inherits from Protobuf::Message.
Accessors
$msg->image()/$msg->image($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::Image)Example image.
$msg->text_snippet()/$msg->text_snippet($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::TextSnippet)Example text.
$msg->document()/$msg->document($value)Type:
Message(Google::Cloud::Automl::V1::DataItems::Document)Example document.
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.