NAME
Google::Cloud::Visionai::V1alpha1::Annotations - Compiled Protocol Buffers messages for google/cloud/visionai/v1alpha1/annotations.proto
SYNOPSIS
use Google::Cloud::Visionai::V1alpha1::Annotations;
my $msg = Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Annotations::PersonalProtectiveEquipmentDetectionOutput->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1alpha1/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::V1alpha1::Annotations::PersonalProtectiveEquipmentDetectionOutput
Output format for Personal Protective Equipment Detection Operator.
Inherits from Protobuf::Message.
Accessors
$msg->current_time()/$msg->current_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Current timestamp.
$msg->detected_persons()/$msg->detected_persons($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::PersonalProtectiveEquipmentDetectionOutput::DetectedPerson)A list of DetectedPersons.
Google::Cloud::Visionai::V1alpha1::Annotations::ObjectDetectionPredictionResult
Prediction output format for Generic Object Detection.
Inherits from Protobuf::Message.
Accessors
$msg->current_time()/$msg->current_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Current timestamp.
$msg->identified_boxes()/$msg->identified_boxes($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::ObjectDetectionPredictionResult::IdentifiedBox)A list of identified boxes.
Google::Cloud::Visionai::V1alpha1::Annotations::ImageObjectDetectionPredictionResult
Prediction output format for Image Object Detection.
Inherits from Protobuf::Message.
Accessors
$msg->ids()/$msg->ids($value)Type:
Int64The 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:
StringThe display names of the AnnotationSpecs that had been identified, order matches the IDs.
$msg->confidences()/$msg->confidences($value)Type:
FloatThe 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::V1alpha1::Annotations::ClassificationPredictionResult
Prediction output format for Image and Text Classification.
Inherits from Protobuf::Message.
Accessors
$msg->ids()/$msg->ids($value)Type:
Int64The resource IDs of the AnnotationSpecs that had been identified.
$msg->display_names()/$msg->display_names($value)Type:
StringThe display names of the AnnotationSpecs that had been identified, order matches the IDs.
$msg->confidences()/$msg->confidences($value)Type:
FloatThe Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
Google::Cloud::Visionai::V1alpha1::Annotations::ImageSegmentationPredictionResult
Prediction output format for Image Segmentation.
Inherits from Protobuf::Message.
Accessors
$msg->category_mask()/$msg->category_mask($value)Type:
StringA 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:
StringA 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::V1alpha1::Annotations::VideoActionRecognitionPredictionResult
Prediction output format for Video Action Recognition.
Inherits from Protobuf::Message.
Accessors
$msg->segment_start_time()/$msg->segment_start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The beginning, inclusive, of the video's time segment in which the actions have been identified.
$msg->segment_end_time()/$msg->segment_end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The end, inclusive, of the video's time segment in which the actions have been identified. Particularly, if the end is the same as the start, it means the identification happens on a specific video frame.
$msg->actions()/$msg->actions($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::VideoActionRecognitionPredictionResult::IdentifiedAction)All of the actions identified in the time range.
Google::Cloud::Visionai::V1alpha1::Annotations::VideoObjectTrackingPredictionResult
Prediction output format for Video Object Tracking.
Inherits from Protobuf::Message.
Accessors
$msg->segment_start_time()/$msg->segment_start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The beginning, inclusive, of the video's time segment in which the current identifications happens.
$msg->segment_end_time()/$msg->segment_end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The end, inclusive, of the video's time segment in which the current identifications happen. Particularly, if the end is the same as the start, it means the identifications happen on a specific video frame.
$msg->objects()/$msg->objects($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::VideoObjectTrackingPredictionResult::DetectedObject)All of the objects detected in the specified time range.
Google::Cloud::Visionai::V1alpha1::Annotations::VideoClassificationPredictionResult
Prediction output format for Video Classification.
Inherits from Protobuf::Message.
Accessors
$msg->segment_start_time()/$msg->segment_start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The beginning, inclusive, of the video's time segment in which the classifications have been identified.
$msg->segment_end_time()/$msg->segment_end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The end, inclusive, of the video's time segment in which the classifications have been identified. Particularly, if the end is the same as the start, it means the identification happens on a specific video frame.
$msg->classifications()/$msg->classifications($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::VideoClassificationPredictionResult::IdentifiedClassification)All of the classifications identified in the time range.
Google::Cloud::Visionai::V1alpha1::Annotations::OccupancyCountingPredictionResult
The prediction result proto for occupancy counting.
Inherits from Protobuf::Message.
Accessors
$msg->current_time()/$msg->current_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Current timestamp.
$msg->identified_boxes()/$msg->identified_boxes($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::OccupancyCountingPredictionResult::IdentifiedBox)A list of identified boxes.
$msg->stats()/$msg->stats($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::OccupancyCountingPredictionResult::Stats)Detection statistics.
$msg->track_info()/$msg->track_info($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::OccupancyCountingPredictionResult::TrackInfo)Track related information. All the tracks that are live at this timestamp. It only exists if tracking is enabled.
$msg->dwell_time_info()/$msg->dwell_time_info($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::OccupancyCountingPredictionResult::DwellTimeInfo)Dwell time related information. All the tracks that are live in a given zone with a start and end dwell time timestamp
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::Annotations::NormalizedPolygon)Annotation for type ACTIVE_ZONE
$msg->crossing_line()/$msg->crossing_line($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::NormalizedPolyline)Annotation for type CROSSING_LINE
$msg->id()/$msg->id($value)Type:
StringID 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:
StringUser-friendly name for the annotation.
$msg->source_stream()/$msg->source_stream($value)Type:
StringThe Vision AI stream resource name.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Visionai::V1alpha1::StreamAnnotationType)The actual type of Annotation.
Google::Cloud::Visionai::V1alpha1::Annotations::StreamAnnotations
A wrapper of repeated StreamAnnotation.
Inherits from Protobuf::Message.
Accessors
$msg->stream_annotations()/$msg->stream_annotations($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::StreamAnnotation)Multiple annotations.
Google::Cloud::Visionai::V1alpha1::Annotations::NormalizedPolygon
Normalized Polygon.
Inherits from Protobuf::Message.
Accessors
$msg->normalized_vertices()/$msg->normalized_vertices($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::NormalizedVertex)The bounding polygon normalized vertices. Top left corner of the image will be [0, 0].
Google::Cloud::Visionai::V1alpha1::Annotations::NormalizedPolyline
Normalized Pplyline, which represents a curve consisting of connected straight-line segments.
Inherits from Protobuf::Message.
Accessors
$msg->normalized_vertices()/$msg->normalized_vertices($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::NormalizedVertex)A sequence of vertices connected by straight lines.
Google::Cloud::Visionai::V1alpha1::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:
FloatX coordinate.
$msg->y()/$msg->y($value)Type:
FloatY coordinate.
Google::Cloud::Visionai::V1alpha1::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:
StringThe application resource name.
$msg->instance_id()/$msg->instance_id($value)Type:
StringThe instance resource id. Instance is the nested resource of application under collection 'instances'.
$msg->node()/$msg->node($value)Type:
StringThe node name of the application graph.
$msg->processor()/$msg->processor($value)Type:
StringThe referred processor resource name of the application node.
Google::Cloud::Visionai::V1alpha1::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
$msg->app_platform_metadata()/$msg->app_platform_metadata($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::AppPlatformMetadata)The metadata of the AppPlatform for customer to identify the source of the payload.
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Cloud::Visionai::V1alpha1::Annotations::AppPlatformCloudFunctionRequest::StructedInputAnnotation)The actual annotations to be processed by the customized Cloud Function.
Google::Cloud::Visionai::V1alpha1::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::V1alpha1::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:
BoolIf 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::V1alpha1::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::V1alpha1::Annotations::AppPlatformEventBody
Message of content of appPlatform event
Inherits from Protobuf::Message.
Accessors
$msg->event_message()/$msg->event_message($value)Type:
StringHuman 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:
StringUser 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::V1alpha1::Annotations::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.