NAME
Google::Cloud::Automl::V1::AnnotationPayload - Compiled Protocol Buffers messages for google/cloud/automl/v1/annotation_payload.proto
SYNOPSIS
use Google::Cloud::Automl::V1::AnnotationPayload;
my $msg = Google::Cloud::Automl::V1::AnnotationPayload::AnnotationPayload->new({
translation => $translation,
classification => $classification,
image_object_detection => $image_object_detection,
text_extraction => $text_extraction,
});
# Read or update a field
my $val = $msg->translation();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Automl::V1::AnnotationPayload::AnnotationPayload->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/automl/v1/annotation_payload.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::AnnotationPayload::AnnotationPayload
Contains annotation information that is relevant to AutoML.
Inherits from Protobuf::Message.
Accessors
$msg->translation()/$msg->translation($value)Type:
Message(Google::Cloud::Automl::V1::Translation::TranslationAnnotation)Annotation details for translation.
$msg->classification()/$msg->classification($value)Type:
Message(Google::Cloud::Automl::V1::Classification::ClassificationAnnotation)Annotation details for content or image classification.
$msg->image_object_detection()/$msg->image_object_detection($value)Type:
Message(Google::Cloud::Automl::V1::Detection::ImageObjectDetectionAnnotation)Annotation details for image object detection.
$msg->text_extraction()/$msg->text_extraction($value)Type:
Message(Google::Cloud::Automl::V1::TextExtraction::TextExtractionAnnotation)Annotation details for text extraction.
$msg->text_sentiment()/$msg->text_sentiment($value)Type:
Message(Google::Cloud::Automl::V1::TextSentiment::TextSentimentAnnotation)Annotation details for text sentiment.
$msg->annotation_spec_id()/$msg->annotation_spec_id($value)Type:
StringOutput only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The value of [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] when the model was trained. Because this field returns a value at model training time, for different models trained using the same dataset, the returned value could be different as model owner could update the `display_name` between any two model training.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Automl::V1::AnnotationPayload::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.