NAME
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig - Compiled Protocol Buffers messages for google/cloud/datalabeling/v1beta1/human_annotation_config.proto
SYNOPSIS
use Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig;
my $msg = Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::HumanAnnotationConfig->new({
instruction => $instruction,
annotated_dataset_display_name => $annotated_dataset_display_name,
annotated_dataset_description => $annotated_dataset_description,
label_group => $label_group,
});
# Read or update a field
my $val = $msg->instruction();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::HumanAnnotationConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/datalabeling/v1beta1/human_annotation_config.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::HumanAnnotationConfig::HumanAnnotationConfig
Configuration for how human labeling task should be done.
Inherits from Protobuf::Message.
Accessors
$msg->instruction()/$msg->instruction($value)Type:
StringRequired. Instruction resource name.
$msg->annotated_dataset_display_name()/$msg->annotated_dataset_display_name($value)Type:
StringRequired. A human-readable name for AnnotatedDataset defined by users. Maximum of 64 characters .
$msg->annotated_dataset_description()/$msg->annotated_dataset_description($value)Type:
StringOptional. A human-readable description for AnnotatedDataset. The description can be up to 10000 characters long.
$msg->label_group()/$msg->label_group($value)Type:
StringOptional. A human-readable label used to logically group labeling tasks. This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The Language of this question, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only need to set this when task is language related. For example, French text classification.
$msg->replica_count()/$msg->replica_count($value)Type:
Int32Optional. Replication of questions. Each question will be sent to up to this number of contributors to label. Aggregated answers will be returned. Default is set to 1. For image related labeling, valid values are 1, 3, 5.
$msg->question_duration()/$msg->question_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. Maximum duration for contributors to answer a question. Maximum is 3600 seconds. Default is 3600 seconds.
$msg->contributor_emails()/$msg->contributor_emails($value)Type:
StringOptional. If you want your own labeling contributors to manage and work on this labeling request, you can set these contributors here. We will give them access to the question types in crowdcompute. Note that these emails must be registered in crowdcompute worker UI: https://crowd-compute.appspot.com/
$msg->user_email_address()/$msg->user_email_address($value)Type:
StringEmail of the user who started the labeling task and should be notified by email. If empty no notification will be sent.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ImageClassificationConfig
Config for image classification human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
$msg->allow_multi_label()/$msg->allow_multi_label($value)Type:
BoolOptional. If allow_multi_label is true, contributors are able to choose multiple labels for one image.
$msg->answer_aggregation_type()/$msg->answer_aggregation_type($value)Type:
Enum(Google::Cloud::Datalabeling::V1beta1::StringAggregationType)Optional. The type of how to aggregate answers.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::BoundingPolyConfig
Config for image bounding poly (and bounding box) human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
$msg->instruction_message()/$msg->instruction_message($value)Type:
StringOptional. Instruction message showed on contributors UI.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::PolylineConfig
Config for image polyline human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
$msg->instruction_message()/$msg->instruction_message($value)Type:
StringOptional. Instruction message showed on contributors UI.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::SegmentationConfig
Config for image segmentation
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name. format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
$msg->instruction_message()/$msg->instruction_message($value)Type:
StringInstruction message showed on labelers UI.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::VideoClassificationConfig
Config for video classification human labeling task. Currently two types of video classification are supported: 1. Assign labels on the entire video. 2. Split the video into multiple video clips based on camera shot, and assign labels on each video clip.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set_configs()/$msg->annotation_spec_set_configs($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::VideoClassificationConfig::AnnotationSpecSetConfig)Required. The list of annotation spec set configs. Since watching a video clip takes much longer time than an image, we support label with multiple AnnotationSpecSet at the same time. Labels in each AnnotationSpecSet will be shown in a group to contributors. Contributors can select one or more (depending on whether to allow multi label) from each group.
$msg->apply_shot_detection()/$msg->apply_shot_detection($value)Type:
BoolOptional. Option to apply shot detection on the video.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ObjectDetectionConfig
Config for video object detection human labeling task. Object detection will be conducted on the images extracted from the video, and those objects will be labeled with bounding boxes. User need to specify the number of images to be extracted per second as the extraction frame rate.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
$msg->extraction_frame_rate()/$msg->extraction_frame_rate($value)Type:
DoubleRequired. Number of frames per second to be extracted from the video.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ObjectTrackingConfig
Config for video object tracking human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::EventConfig
Config for video event human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_sets()/$msg->annotation_spec_sets($value)Type:
StringRequired. The list of annotation spec set resource name. Similar to video classification, we support selecting event from multiple AnnotationSpecSet at the same time.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::TextClassificationConfig
Config for text classification human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->allow_multi_label()/$msg->allow_multi_label($value)Type:
BoolOptional. If allow_multi_label is true, contributors are able to choose multiple labels for one text segment.
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
$msg->sentiment_config()/$msg->sentiment_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::SentimentConfig)Optional. Configs for sentiment selection.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::SentimentConfig
Config for setting up sentiments.
Inherits from Protobuf::Message.
Accessors
$msg->enable_label_sentiment_selection()/$msg->enable_label_sentiment_selection($value)Type:
BoolIf set to true, contributors will have the option to select sentiment of the label they selected, to mark it as negative or positive label. Default is false.
Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::TextEntityExtractionConfig
Config for text entity extraction human labeling task.
Inherits from Protobuf::Message.
Accessors
$msg->annotation_spec_set()/$msg->annotation_spec_set($value)Type:
StringRequired. Annotation spec set resource name.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.