Reference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::AnnotationSpec.
Container of information related to one possible annotation that can be used
in a labeling task. For example, an image classification task where images
are labeled as dog or cat must reference an AnnotationSpec for dog and
an AnnotationSpec for cat.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#description
defdescription()->::String
Returns
(::String) โ Optional. User-provided description of the annotation specification.
The description can be up to 10,000 characters long.
#description=
defdescription=(value)->::String
Parameter
value (::String) โ Optional. User-provided description of the annotation specification.
The description can be up to 10,000 characters long.
Returns
(::String) โ Optional. User-provided description of the annotation specification.
The description can be up to 10,000 characters long.
#display_name
defdisplay_name()->::String
Returns
(::String) โ Required. The display name of the AnnotationSpec. Maximum of 64 characters.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::String) โ Required. The display name of the AnnotationSpec. Maximum of 64 characters.
Returns
(::String) โ Required. The display name of the AnnotationSpec. Maximum of 64 characters.
[[["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-09-04 UTC."],[],[],null,["# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::AnnotationSpec (v0.11.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.11.1 (latest)](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/latest/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.11.0](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.11.0/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.10.1](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.10.1/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.9.0](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.9.0/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.8.1](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.8.1/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.7.2](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.7.2/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.6.0](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.6.0/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.5.0](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.5.0/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.4.0/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec)\n- [0.3.5](/ruby/docs/reference/google-cloud-data_labeling-v1beta1/0.3.5/Google-Cloud-DataLabeling-V1beta1-AnnotationSpec) \nReference documentation and code samples for the AI Platform Data Labeling Service V1beta1 API class Google::Cloud::DataLabeling::V1beta1::AnnotationSpec.\n\nContainer of information related to one possible annotation that can be used\nin a labeling task. For example, an image classification task where images\nare labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and\nan AnnotationSpec for `cat`. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #description\n\n def description() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.\n\n### #description=\n\n def description=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long. \n**Returns**\n\n- (::String) --- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The display name of the AnnotationSpec. Maximum of 64 characters.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The display name of the AnnotationSpec. Maximum of 64 characters. \n**Returns**\n\n- (::String) --- Required. The display name of the AnnotationSpec. Maximum of 64 characters."]]