NAME
Google::Cloud::Automl::V1beta1::DataTypes - Compiled Protocol Buffers messages for google/cloud/automl/v1beta1/data_types.proto
SYNOPSIS
use Google::Cloud::Automl::V1beta1::DataTypes;
my $msg = Google::Cloud::Automl::V1beta1::DataTypes::DataType->new({
list_element_type => $list_element_type,
struct_type => $struct_type,
time_format => $time_format,
type_code => $type_code,
});
# Read or update a field
my $val = $msg->list_element_type();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1beta1::DataTypes::DataType->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/automl/v1beta1/data_types.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::DataTypes::DataType
Indicated the type of data that can be stored in a structured data entity (e.g. a table).
Inherits from Protobuf::Message.
Accessors
$msg->list_element_type()/$msg->list_element_type($value)Type:
Message(Google::Cloud::Automl::V1beta1::DataTypes::DataType)If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
$msg->struct_type()/$msg->struct_type($value)Type:
Message(Google::Cloud::Automl::V1beta1::DataTypes::StructType)If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
$msg->time_format()/$msg->time_format($value)Type:
StringIf [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
$msg->type_code()/$msg->type_code($value)Type:
Enum(Google::Cloud::Automl::V1beta1::TypeCode)Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
$msg->nullable()/$msg->nullable($value)Type:
BoolIf true, this DataType can also be `NULL`. In .CSV files `NULL` value is expressed as an empty string.
Google::Cloud::Automl::V1beta1::DataTypes::StructType
`StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type.
Inherits from Protobuf::Message.
Accessors
$msg->fields()/$msg->fields($value)Type:
Message(Google::Cloud::Automl::V1beta1::DataTypes::StructType::FieldsEntry)Unordered map of struct field names to their data types. Fields cannot be added or removed via Update. Their names and data types are still mutable.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Automl::V1beta1::DataTypes::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.