NAME
Google::Cloud::Datalabeling::V1beta1::Dataset - Compiled Protocol Buffers messages for google/cloud/datalabeling/v1beta1/dataset.proto
SYNOPSIS
use Google::Cloud::Datalabeling::V1beta1::Dataset;
my $msg = Google::Cloud::Datalabeling::V1beta1::Dataset::Dataset->new({
name => $name,
display_name => $display_name,
description => $description,
create_time => $create_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Datalabeling::V1beta1::Dataset::Dataset->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/datalabeling/v1beta1/dataset.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::Dataset::Dataset
Dataset is the resource to hold your data. You can request multiple labeling tasks for a dataset while each one will generate an AnnotatedDataset.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Dataset resource name, format is: projects/{project_id}/datasets/{dataset_id}
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the dataset. Maximum of 64 characters.
$msg->description()/$msg->description($value)Type:
StringOptional. User-provided description of the annotation specification set. The description can be up to 10000 characters long.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the dataset is created.
$msg->input_configs()/$msg->input_configs($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::InputConfig)Output only. This is populated with the original input configs where ImportData is called. It is available only after the clients import data to this dataset.
$msg->blocking_resources()/$msg->blocking_resources($value)Type:
StringOutput only. The names of any related resources that are blocking changes to the dataset.
$msg->data_item_count()/$msg->data_item_count($value)Type:
Int64Output only. The number of data items in the dataset.
Google::Cloud::Datalabeling::V1beta1::Dataset::InputConfig
The configuration of input data, including data type, location, etc.
Inherits from Protobuf::Message.
Accessors
$msg->text_metadata()/$msg->text_metadata($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::TextMetadata)Required for text import, as language code must be specified.
$msg->gcs_source()/$msg->gcs_source($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::GcsSource)Source located in Cloud Storage.
$msg->bigquery_source()/$msg->bigquery_source($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::BigQuerySource)Source located in BigQuery. You must specify this field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
$msg->data_type()/$msg->data_type($value)Type:
Enum(Google::Cloud::Datalabeling::V1beta1::DataType)Required. Data type must be specifed when user tries to import data.
$msg->annotation_type()/$msg->annotation_type($value)Type:
Enum(Google::Cloud::Datalabeling::V1beta1::AnnotationType)Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
$msg->classification_metadata()/$msg->classification_metadata($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::ClassificationMetadata)Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a model version that performs classification.
Google::Cloud::Datalabeling::V1beta1::Dataset::TextMetadata
Metadata for the text.
Inherits from Protobuf::Message.
Accessors
$msg->language_code()/$msg->language_code($value)Type:
StringThe language of this text, as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
Google::Cloud::Datalabeling::V1beta1::Dataset::ClassificationMetadata
Metadata for classification annotations.
Inherits from Protobuf::Message.
Accessors
$msg->is_multi_label()/$msg->is_multi_label($value)Type:
BoolWhether the classification task is multi-label or not.
Google::Cloud::Datalabeling::V1beta1::Dataset::GcsSource
Source of the Cloud Storage file to be imported.
Inherits from Protobuf::Message.
Accessors
$msg->input_uri()/$msg->input_uri($value)Type:
StringRequired. The input URI of source file. This must be a Cloud Storage path (`gs://...`).
$msg->mime_type()/$msg->mime_type($value)Type:
StringRequired. The format of the source file. Only "text/csv" is supported.
Google::Cloud::Datalabeling::V1beta1::Dataset::BigQuerySource
The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this is where the service saves the prediction input and output sampled from the model version.
Inherits from Protobuf::Message.
Accessors
$msg->input_uri()/$msg->input_uri($value)Type:
StringRequired. BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
Provide the table URI in the following format:
"bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
[Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
Google::Cloud::Datalabeling::V1beta1::Dataset::OutputConfig
The configuration of output data.
Inherits from Protobuf::Message.
Accessors
$msg->gcs_destination()/$msg->gcs_destination($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::GcsDestination)Output to a file in Cloud Storage. Should be used for labeling output other than image segmentation.
$msg->gcs_folder_destination()/$msg->gcs_folder_destination($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::GcsFolderDestination)Output to a folder in Cloud Storage. Should be used for image segmentation labeling output.
Google::Cloud::Datalabeling::V1beta1::Dataset::GcsDestination
Export destination of the data.Only gcs path is allowed in output_uri.
Inherits from Protobuf::Message.
Accessors
$msg->output_uri()/$msg->output_uri($value)Type:
StringRequired. The output uri of destination file.
$msg->mime_type()/$msg->mime_type($value)Type:
StringRequired. The format of the gcs destination. Only "text/csv" and "application/json" are supported.
Google::Cloud::Datalabeling::V1beta1::Dataset::GcsFolderDestination
Export folder destination of the data.
Inherits from Protobuf::Message.
Accessors
$msg->output_folder_uri()/$msg->output_folder_uri($value)Type:
StringRequired. Cloud Storage directory to export data to.
Google::Cloud::Datalabeling::V1beta1::Dataset::DataItem
DataItem is a piece of data, without annotation. For example, an image.
Inherits from Protobuf::Message.
Accessors
$msg->image_payload()/$msg->image_payload($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::DataPayloads::ImagePayload)The image payload, a container of the image bytes/uri.
$msg->text_payload()/$msg->text_payload($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::DataPayloads::TextPayload)The text payload, a container of text content.
$msg->video_payload()/$msg->video_payload($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::DataPayloads::VideoPayload)The video payload, a container of the video uri.
$msg->name()/$msg->name($value)Type:
StringOutput only. Name of the data item, in format of: projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDataset
AnnotatedDataset is a set holding annotations for data in a Dataset. Each labeling task will generate an AnnotatedDataset under the Dataset that the task is requested for.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters.
$msg->description()/$msg->description($value)Type:
StringOutput only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters.
$msg->annotation_source()/$msg->annotation_source($value)Type:
Enum(Google::Cloud::Datalabeling::V1beta1::AnnotationSource)Output only. Source of the annotation.
$msg->annotation_type()/$msg->annotation_type($value)Type:
Enum(Google::Cloud::Datalabeling::V1beta1::AnnotationType)Output only. Type of the annotation. It is specified when starting labeling task.
$msg->example_count()/$msg->example_count($value)Type:
Int64Output only. Number of examples in the annotated dataset.
$msg->completed_example_count()/$msg->completed_example_count($value)Type:
Int64Output only. Number of examples that have annotation in the annotated dataset.
$msg->label_stats()/$msg->label_stats($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats)Output only. Per label statistics.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the AnnotatedDataset was created.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDatasetMetadata)Output only. Additional information about AnnotatedDataset.
$msg->blocking_resources()/$msg->blocking_resources($value)Type:
StringOutput only. The names of any related resources that are blocking changes to the annotated dataset.
Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats
Statistics about annotation specs.
Inherits from Protobuf::Message.
Accessors
$msg->example_count()/$msg->example_count($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Dataset::LabelStats::ExampleCountEntry)Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.
Google::Cloud::Datalabeling::V1beta1::Dataset::AnnotatedDatasetMetadata
Metadata on AnnotatedDataset.
Inherits from Protobuf::Message.
Accessors
$msg->image_classification_config()/$msg->image_classification_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ImageClassificationConfig)Configuration for image classification task.
$msg->bounding_poly_config()/$msg->bounding_poly_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::BoundingPolyConfig)Configuration for image bounding box and bounding poly task.
$msg->polyline_config()/$msg->polyline_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::PolylineConfig)Configuration for image polyline task.
$msg->segmentation_config()/$msg->segmentation_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::SegmentationConfig)Configuration for image segmentation task.
$msg->video_classification_config()/$msg->video_classification_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::VideoClassificationConfig)Configuration for video classification task.
$msg->object_detection_config()/$msg->object_detection_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ObjectDetectionConfig)Configuration for video object detection task.
$msg->object_tracking_config()/$msg->object_tracking_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::ObjectTrackingConfig)Configuration for video object tracking task.
$msg->event_config()/$msg->event_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::EventConfig)Configuration for video event labeling task.
$msg->text_classification_config()/$msg->text_classification_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::TextClassificationConfig)Configuration for text classification task.
$msg->text_entity_extraction_config()/$msg->text_entity_extraction_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::TextEntityExtractionConfig)Configuration for text entity extraction task.
$msg->human_annotation_config()/$msg->human_annotation_config($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::HumanAnnotationConfig::HumanAnnotationConfig)HumanAnnotationConfig used when requesting the human labeling task for this AnnotatedDataset.
Google::Cloud::Datalabeling::V1beta1::Dataset::Example
An Example is a piece of data and its annotation. For example, an image with label "house".
Inherits from Protobuf::Message.
Accessors
$msg->image_payload()/$msg->image_payload($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::DataPayloads::ImagePayload)The image payload, a container of the image bytes/uri.
$msg->text_payload()/$msg->text_payload($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::DataPayloads::TextPayload)The text payload, a container of the text content.
$msg->video_payload()/$msg->video_payload($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::DataPayloads::VideoPayload)The video payload, a container of the video uri.
$msg->name()/$msg->name($value)Type:
StringOutput only. Name of the example, in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}/examples/{example_id}
$msg->annotations()/$msg->annotations($value)Type:
Message(Google::Cloud::Datalabeling::V1beta1::Annotation::Annotation)Output only. Annotations for the piece of data in Example. One piece of data can have multiple annotations.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Datalabeling::V1beta1::Dataset::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.