# Google API Common Protos Client - Class LabelDescriptor (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class LabelDescriptor.

A description of a label.

Generated from protobuf message `google.api.LabelDescriptor`

## Namespace

Google \\ Api

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` The label key. |
| `↳ value_type` | `int` The type of data that can be assigned to the label. |
| `↳ description` | `string` A human-readable description for the label. |

### getKey

The label key.

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

### setKey

The label key.

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

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

### getValueType

The type of data that can be assigned to the label.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ValueType](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.LabelDescriptor.ValueType). |

### setValueType

The type of data that can be assigned to the label.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ValueType](https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Api.LabelDescriptor.ValueType). |

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

### getDescription

A human-readable description for the label.

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

### setDescription

A human-readable description for the label.

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

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