# Google Cloud Datalabeling V1beta1 Client - Class AnnotationSpecSet (0.7.2)

0.7.2 (latest) 0.7.1 0.6.3 0.5.7 0.4.2 0.3.1 0.2.0 0.1.14

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class AnnotationSpecSet.

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.

Generated from protobuf message `google.cloud.datalabeling.v1beta1.AnnotationSpecSet`

## Namespace

Google \\ Cloud \\ DataLabeling \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The AnnotationSpecSet resource name in the following format: "projects/<var translate="no">{project_id}</var>/annotationSpecSets/<var translate="no">{annotation_spec_set_id}</var>" |
| `↳ display_name` | `string` Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters. |
| `↳ description` | `string` Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long. |
| `↳ annotation_specs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.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` | `string[]` Output only. The names of any related resources that are blocking changes to the annotation spec set. |

### getName

Output only. The AnnotationSpecSet resource name in the following format:
"projects/<var translate="no">{project_id}</var>/annotationSpecSets/<var translate="no">{annotation_spec_set_id}</var>"

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. The AnnotationSpecSet resource name in the following format:
"projects/<var translate="no">{project_id}</var>/annotationSpecSets/<var translate="no">{annotation_spec_set_id}</var>"

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Required. The display name for AnnotationSpecSet that you define when you
create it. Maximum of 64 characters.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Required. The display name for AnnotationSpecSet that you define when you
create it. Maximum of 64 characters.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Optional. User-provided description of the annotation specification set.

The description can be up to 10,000 characters long.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Optional. User-provided description of the annotation specification set.

The description can be up to 10,000 characters long.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAnnotationSpecs

Required. The array of AnnotationSpecs that you define when you create the
AnnotationSpecSet. These are the possible labels for the labeling task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.AnnotationSpec>` |   |

### setAnnotationSpecs

Required. The array of AnnotationSpecs that you define when you create the
AnnotationSpecSet. These are the possible labels for the labeling task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-datalabeling/latest/V1beta1.AnnotationSpec>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBlockingResources

Output only. The names of any related resources that are blocking changes
to the annotation spec set.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setBlockingResources

Output only. The names of any related resources that are blocking changes
to the annotation spec set.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |