NAME
Google::Cloud::Automl::V1::AnnotationSpec - Compiled Protocol Buffers messages for google/cloud/automl/v1/annotation_spec.proto
SYNOPSIS
use Google::Cloud::Automl::V1::AnnotationSpec;
my $msg = Google::Cloud::Automl::V1::AnnotationSpec::AnnotationSpec->new({
name => $name,
display_name => $display_name,
example_count => $example_count,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1::AnnotationSpec::AnnotationSpec->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/annotation_spec.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::AnnotationSpec::AnnotationSpec
A definition of an annotation spec.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the annotation spec. Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
$msg->example_count()/$msg->example_count($value)Type:
Int32Output only. The number of examples in the parent dataset labeled by the annotation spec.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::AnnotationSpec::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.