An AnnotationSpecSet is a collection of label definitions.
For example, in image classification tasks, you define a set of
possible labels for images as an AnnotationSpecSet. An
AnnotationSpecSet is immutable upon creation.
Attributes
Name
Description
name
str
Output only. The AnnotationSpecSet resource name in the
following format:
"projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}".
display_name
str
Required. The display name for
AnnotationSpecSet that you define when you
create it. Maximum of 64 characters.
description
str
Optional. User-provided description of the
annotation specification set. The description
can be up to 10,000 characters long.
annotation_specs
MutableSequence[google.cloud.datalabeling_v1beta1.types.AnnotationSpec]
Required. The array of AnnotationSpecs that
you define when you create the
AnnotationSpecSet. These are the possible labels
for the labeling task.
blocking_resources
MutableSequence[str]
Output only. The names of any related
resources that are blocking changes to the
annotation spec set.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class AnnotationSpecSet (1.13.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.13.2 (latest)](/python/docs/reference/datalabeling/latest/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.13.1](/python/docs/reference/datalabeling/1.13.1/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.12.0](/python/docs/reference/datalabeling/1.12.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.11.1](/python/docs/reference/datalabeling/1.11.1/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.10.5](/python/docs/reference/datalabeling/1.10.5/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.9.0](/python/docs/reference/datalabeling/1.9.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.8.3](/python/docs/reference/datalabeling/1.8.3/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.7.0](/python/docs/reference/datalabeling/1.7.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.6.3](/python/docs/reference/datalabeling/1.6.3/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.5.2](/python/docs/reference/datalabeling/1.5.2/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.4.0](/python/docs/reference/datalabeling/1.4.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.3.0](/python/docs/reference/datalabeling/1.3.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.2.4](/python/docs/reference/datalabeling/1.2.4/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.1.0](/python/docs/reference/datalabeling/1.1.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [1.0.0](/python/docs/reference/datalabeling/1.0.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [0.4.2](/python/docs/reference/datalabeling/0.4.2/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [0.3.0](/python/docs/reference/datalabeling/0.3.0/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet)\n- [0.2.1](/python/docs/reference/datalabeling/0.2.1/google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet) \n\n AnnotationSpecSet(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nAn AnnotationSpecSet is a collection of label definitions.\nFor example, in image classification tasks, you define a set of\npossible labels for images as an AnnotationSpecSet. An\nAnnotationSpecSet is immutable upon creation."]]