# AI Platform Data Labeling Service V1beta1 API - Class Google::Cloud::DataLabeling::V1beta1::AnnotationSpec (v0.15.0)

0.15.0 (latest) 0.14.0 0.13.1 0.12.0 0.11.1 0.10.1 0.9.0 0.8.1 0.7.2 0.6.0 0.5.0 0.4.0 0.3.5 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

    def description() -> ::String

**Returns**

- (::String) --- Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.

### #description=

    def description=(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

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The display name of the AnnotationSpec. Maximum of 64 characters.

### #display_name=

    def display_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.