# Google Cloud Database Center V1beta Client - Class Label (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!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 Database Center V1beta Client class Label.

Label is a key value pair applied to a resource.

Generated from protobuf message `google.cloud.databasecenter.v1beta.Label`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` The key part of the label. |
| `↳ value` | `string` The value part of the label. |
| `↳ source` | `string` The source of the Label. Source is empty if the label is directly attached to the resource and not inherited. |

### getKey

The key part of the label.

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

### setKey

The key part of the label.

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

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

### getValue

The value part of the label.

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

### setValue

The value part of the label.

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

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

### getSource

The source of the Label. Source is empty if the label is directly attached
to the resource and not inherited.

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

### setSource

The source of the Label. Source is empty if the label is directly attached
to the resource and not inherited.

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

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