Skip to main content

annotated_datasets

Creates, updates, deletes, gets or lists an annotated_datasets resource.

Overview

Nameannotated_datasets
TypeResource
Idgoogle.datalabeling.annotated_datasets

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. AnnotatedDataset resource name in format of: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
annotationSourcestringOutput only. Source of the annotation.
annotationTypestringOutput only. Type of the annotation. It is specified when starting labeling task.
blockingResourcesarrayOutput only. The names of any related resources that are blocking changes to the annotated dataset.
completedExampleCountstring (int64)Output only. Number of examples that have annotation in the annotated dataset.
createTimestring (google-datetime)Output only. Time the AnnotatedDataset was created.
descriptionstringOutput only. The description of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 10000 characters.
displayNamestringOutput only. The display name of the AnnotatedDataset. It is specified in HumanAnnotationConfig when user starts a labeling task. Maximum of 64 characters.
exampleCountstring (int64)Output only. Number of examples in the annotated dataset.
labelStatsobjectOutput only. Per label statistics. (id: GoogleCloudDatalabelingV1beta1LabelStats)
metadataobjectOutput only. Additional information about AnnotatedDataset. (id: GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_datasets_annotated_datasets_getselectprojectsId, datasetsId, annotatedDatasetsIdGets an annotated dataset by resource name.
projects_datasets_annotated_datasets_listselectprojectsId, datasetsIdfilter, pageSize, pageTokenLists annotated datasets for a dataset. Pagination is supported.
projects_datasets_annotated_datasets_deletedeleteprojectsId, datasetsId, annotatedDatasetsIdDeletes an annotated dataset by resource name.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
annotatedDatasetsIdstring
datasetsIdstring
projectsIdstring
filterstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets an annotated dataset by resource name.

SELECT
name,
annotationSource,
annotationType,
blockingResources,
completedExampleCount,
createTime,
description,
displayName,
exampleCount,
labelStats,
metadata
FROM google.datalabeling.annotated_datasets
WHERE projectsId = '{{ projectsId }}' -- required
AND datasetsId = '{{ datasetsId }}' -- required
AND annotatedDatasetsId = '{{ annotatedDatasetsId }}' -- required;

DELETE examples

Deletes an annotated dataset by resource name.

DELETE FROM google.datalabeling.annotated_datasets
WHERE projectsId = '{{ projectsId }}' --required
AND datasetsId = '{{ datasetsId }}' --required
AND annotatedDatasetsId = '{{ annotatedDatasetsId }}' --required;