NAME

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

SYNOPSIS

use Google::Cloud::Automl::V1beta1::DataItems;

my $msg = Google::Cloud::Automl::V1beta1::DataItems::Image->new({
    image_bytes => $image_bytes,
    input_config => $input_config,
    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::V1beta1::DataItems::Image->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/automl/v1beta1/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::V1beta1::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->input_config() / $msg->input_config($value)

    Type: Message (Google::Cloud::Automl::V1beta1::Io::InputConfig)

    An input config specifying the content of the image.

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

    Type: String

    Output only. HTTP URI to the thumbnail image.

Google::Cloud::Automl::V1beta1::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.v1beta1.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.v1beta1.TextSnippet.content].

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

    Type: String

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

Google::Cloud::Automl::V1beta1::DataItems::DocumentDimensions

Message that describes dimension of a document.

Inherits from Protobuf::Message.

Accessors

Enum: DocumentDimensions::DocumentDimensionUnit

  • DOCUMENT_DIMENSION_UNIT_UNSPECIFIED => 0

  • INCH => 1

  • CENTIMETER => 2

  • POINT => 3

Google::Cloud::Automl::V1beta1::DataItems::Document

A structured text document e.g. a PDF.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Automl::V1beta1::DataItems::Row

A representation of a row in a relational table.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource IDs of the column specs describing the columns of the row. If set must contain, but possibly in a different order, all input feature

    [column_spec_ids][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] of the Model this row is being passed to. Note: The below `values` field must match order of this field, if this field is set.

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

    Type: Message (Google::Protobuf::Struct::Value)

    Required. The values of the row cells, given in the same order as the column_spec_ids, or, if not set, then in the same order as input feature

    [column_specs][google.cloud.automl.v1beta1.TablesModelMetadata.input_feature_column_specs] of the Model this row is being passed to.

Google::Cloud::Automl::V1beta1::DataItems::ExamplePayload

Example data used for training or prediction.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.