NAME

Google::Cloud::Datalabeling::V1beta1::Annotation - Compiled Protocol Buffers messages for google/cloud/datalabeling/v1beta1/annotation.proto

SYNOPSIS

use Google::Cloud::Datalabeling::V1beta1::Annotation;

my $msg = Google::Cloud::Datalabeling::V1beta1::Annotation::Annotation->new({
    name => $name,
    annotation_source => $annotation_source,
    annotation_value => $annotation_value,
    annotation_metadata => $annotation_metadata,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Datalabeling::V1beta1::Annotation::Annotation->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/datalabeling/v1beta1/annotation.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::Datalabeling::V1beta1::Annotation::Annotation

Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationValue

Annotation value for an example.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::ImageClassificationAnnotation

Image classification annotation definition.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::Vertex

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    X coordinate.

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

    Type: Int32

    Y coordinate.

Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedVertex

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Inherits from Protobuf::Message.

Accessors

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

    Type: Float

    X coordinate.

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

    Type: Float

    Y coordinate.

Google::Cloud::Datalabeling::V1beta1::Annotation::BoundingPoly

A bounding polygon in the image.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedBoundingPoly

Normalized bounding polygon.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::ImageBoundingPolyAnnotation

Image bounding poly annotation. It represents a polygon including bounding box in the image.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::Polyline

A line with multiple line segments.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::NormalizedPolyline

Normalized polyline.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::ImagePolylineAnnotation

A polyline for the image annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation

Image segmentation annotation.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Datalabeling::V1beta1::Annotation::ImageSegmentationAnnotation::AnnotationColorsEntry)

    The mapping between rgb color and annotation spec. The key is the rgb color represented in format of rgb(0, 0, 0). The value is the AnnotationSpec.

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

    Type: String

    Image format.

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

    Type: Bytes

    A byte string of a full image's color map.

Google::Cloud::Datalabeling::V1beta1::Annotation::TextClassificationAnnotation

Text classification annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::TextEntityExtractionAnnotation

Text entity extraction annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::SequentialSegment

Start and end position in a sequence (e.g. text segment).

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    Start position (inclusive).

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

    Type: Int32

    End position (exclusive).

Google::Cloud::Datalabeling::V1beta1::Annotation::TimeSegment

A time period inside of an example that has a time dimension (e.g. video).

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Duration::Duration)

    Start of the time segment (inclusive), represented as the duration since the example start.

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

    Type: Message (Google::Protobuf::Duration::Duration)

    End of the time segment (exclusive), represented as the duration since the example start.

Google::Cloud::Datalabeling::V1beta1::Annotation::VideoClassificationAnnotation

Video classification annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::ObjectTrackingFrame

Video frame level annotation for object detection and tracking.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::VideoObjectTrackingAnnotation

Video object tracking annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::VideoEventAnnotation

Video event annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::AnnotationMetadata

Additional information associated with the annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Datalabeling::V1beta1::Annotation::OperatorMetadata

General information useful for labels coming from contributors.

Inherits from Protobuf::Message.

Accessors

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

    Type: Float

    Confidence score corresponding to a label. For examle, if 3 contributors have answered the question and 2 of them agree on the final label, the confidence score will be 0.67 (2/3).

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

    Type: Int32

    The total number of contributors that answer this question.

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

    Type: Int32

    The total number of contributors that choose this label.

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

    Type: String

    Comments from contributors.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Datalabeling::V1beta1::Annotation::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.