# Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::AnnotationSpec (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.8 Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::AnnotationSpec.

A definition of an annotation spec.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.
**Returns**

- (::String) --- Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.

### #example_count

    def example_count() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of examples in the parent dataset labeled by the annotation spec.

### #example_count=

    def example_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Output only. The number of examples in the parent dataset labeled by the annotation spec.
**Returns**

- (::Integer) --- Output only. The number of examples in the parent dataset labeled by the annotation spec.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Resource name of the annotation spec. Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. Resource name of the annotation spec. Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'
**Returns**

- (::String) --- Output only. Resource name of the annotation spec. Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'