NAME

Google::Cloud::Visionai::V1::Annotations - Compiled Protocol Buffers messages for google/cloud/visionai/v1/annotations.proto

SYNOPSIS

use Google::Cloud::Visionai::V1::Annotations;

my $msg = Google::Cloud::Visionai::V1::Annotations::PersonalProtectiveEquipmentDetectionOutput->new({
    current_time => $current_time,
    detected_persons => $detected_persons,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Visionai::V1::Annotations::PersonalProtectiveEquipmentDetectionOutput->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1/annotations.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::Visionai::V1::Annotations::PersonalProtectiveEquipmentDetectionOutput

Output format for Personal Protective Equipment Detection Operator.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::ObjectDetectionPredictionResult

Prediction output format for Generic Object Detection.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::ImageObjectDetectionPredictionResult

Prediction output format for Image Object Detection.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly. It is the id segment instead of full resource name.

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

    Type: String

    The display names of the AnnotationSpecs that had been identified, order matches the IDs.

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

    Type: Float

    The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

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

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

    Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and `yMax`, which represent the extremal coordinates of the box. They are relative to the image size, and the point 0,0 is in the top left of the image.

Google::Cloud::Visionai::V1::Annotations::ClassificationPredictionResult

Prediction output format for Image and Text Classification.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    The resource IDs of the AnnotationSpecs that had been identified.

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

    Type: String

    The display names of the AnnotationSpecs that had been identified, order matches the IDs.

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

    Type: Float

    The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

Google::Cloud::Visionai::V1::Annotations::ImageSegmentationPredictionResult

Prediction output format for Image Segmentation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A PNG image where each pixel in the mask represents the category in which the pixel in the original image was predicted to belong to. The size of this image will be the same as the original image. The mapping between the AnntoationSpec and the color can be found in model's metadata. The model will choose the most likely category and if none of the categories reach the confidence threshold, the pixel will be marked as background.

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

    Type: String

    A one channel image which is encoded as an 8bit lossless PNG. The size of the image will be the same as the original image. For a specific pixel, darker color means less confidence in correctness of the cateogry in the categoryMask for the corresponding pixel. Black means no confidence and white means complete confidence.

Google::Cloud::Visionai::V1::Annotations::VideoActionRecognitionPredictionResult

Prediction output format for Video Action Recognition.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::VideoObjectTrackingPredictionResult

Prediction output format for Video Object Tracking.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::VideoClassificationPredictionResult

Prediction output format for Video Classification.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::OccupancyCountingPredictionResult

The prediction result proto for occupancy counting.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::StreamAnnotation

message about annotations about Vision AI stream resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Visionai::V1::Annotations::NormalizedPolygon)

    Annotation for type ACTIVE_ZONE

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

    Type: Message (Google::Cloud::Visionai::V1::Annotations::NormalizedPolyline)

    Annotation for type CROSSING_LINE

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

    Type: String

    ID of the annotation. It must be unique when used in the certain context. For example, all the annotations to one input streams of a Vision AI application.

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

    Type: String

    User-friendly name for the annotation.

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

    Type: String

    The Vision AI stream resource name.

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

    Type: Enum (Google::Cloud::Visionai::V1::StreamAnnotationType)

    The actual type of Annotation.

Google::Cloud::Visionai::V1::Annotations::StreamAnnotations

A wrapper of repeated StreamAnnotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::NormalizedPolygon

Normalized Polygon.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::NormalizedPolyline

Normalized Pplyline, which represents a curve consisting of connected straight-line segments.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::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::Visionai::V1::Annotations::AppPlatformMetadata

Message of essential metadata of App Platform. This message is usually attached to a certain processor output annotation for customer to identify the source of the data.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The application resource name.

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

    Type: String

    The instance resource id. Instance is the nested resource of application under collection 'instances'.

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

    Type: String

    The node name of the application graph.

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

    Type: String

    The referred processor resource name of the application node.

Google::Cloud::Visionai::V1::Annotations::AppPlatformCloudFunctionRequest

For any cloud function based customer processing logic, customer's cloud function is expected to receive AppPlatformCloudFunctionRequest as request and send back AppPlatformCloudFunctionResponse as response. Message of request from AppPlatform to Cloud Function.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1::Annotations::AppPlatformCloudFunctionResponse

Message of the response from customer's Cloud Function to AppPlatform.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Visionai::V1::Annotations::AppPlatformCloudFunctionResponse::StructedOutputAnnotation)

    The modified annotations that is returned back to AppPlatform. If the annotations fields are empty, then those annotations will be dropped by AppPlatform.

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

    Type: Bool

    If set to true, AppPlatform will use original annotations instead of dropping them, even if it is empty in the annotations filed.

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

    Type: Message (Google::Cloud::Visionai::V1::Annotations::AppPlatformEventBody)

    The event notifications that is returned back to AppPlatform. Typically it will then be configured to be consumed/forwared to a operator that handles events, such as Pub/Sub operator.

Google::Cloud::Visionai::V1::Annotations::AppPlatformEventBody

Message of content of appPlatform event

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Human readable string of the event like "There are more than 6 people in the scene". or "Shelf is empty!".

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

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

    For the case of Pub/Sub, it will be stored in the message attributes. ​​pubsub.proto

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

    Type: String

    User defined Event Id, used to classify event, within a delivery interval, events from the same application instance with the same id will be de-duplicated & only first one will be sent out. Empty event_id will be treated as "".

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1::Annotations::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.