Skip to main content

annotation_spec_sets

Creates, updates, deletes, gets or lists a annotation_spec_sets resource.

Overview

Nameannotation_spec_sets
TypeResource
Idgoogle.datalabeling.annotation_spec_sets

Fields

NameDatatypeDescription
namestringOutput only. The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
descriptionstringOptional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.
annotationSpecsarrayRequired. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.
blockingResourcesarrayOutput only. The names of any related resources that are blocking changes to the annotation spec set.
displayNamestringRequired. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.

Methods

NameAccessible byRequired ParamsDescription
projects_annotation_spec_sets_getSELECTannotationSpecSetsId, projectsIdGets an annotation spec set by resource name.
projects_annotation_spec_sets_listSELECTprojectsIdLists annotation spec sets for a project. Pagination is supported.
projects_annotation_spec_sets_createINSERTprojectsIdCreates an annotation spec set by providing a set of labels.
projects_annotation_spec_sets_deleteDELETEannotationSpecSetsId, projectsIdDeletes an annotation spec set by resource name.

SELECT examples

Lists annotation spec sets for a project. Pagination is supported.

SELECT
name,
description,
annotationSpecs,
blockingResources,
displayName
FROM google.datalabeling.annotation_spec_sets
WHERE projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new annotation_spec_sets resource.

/*+ create */
INSERT INTO google.datalabeling.annotation_spec_sets (
projectsId,
annotationSpecSet
)
SELECT
'{{ projectsId }}',
'{{ annotationSpecSet }}'
;

DELETE example

Deletes the specified annotation_spec_sets resource.

/*+ delete */
DELETE FROM google.datalabeling.annotation_spec_sets
WHERE annotationSpecSetsId = '{{ annotationSpecSetsId }}'
AND projectsId = '{{ projectsId }}';