# Google Cloud Network Services V1 Client - Class MetadataLabels (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class MetadataLabels.

Defines a name-pair value for a single label.

Generated from protobuf message `google.cloud.networkservices.v1.EndpointMatcher.MetadataLabelMatcher.MetadataLabels`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ EndpointMatcher \\ MetadataLabelMatcher

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ label_name` | `string` Required. Label name presented as key in xDS Node Metadata. |
| `↳ label_value` | `string` Required. Label value presented as value corresponding to the above key, in xDS Node Metadata. |

### getLabelName

Required. Label name presented as key in xDS Node Metadata.

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

### setLabelName

Required. Label name presented as key in xDS Node Metadata.

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

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

### getLabelValue

Required. Label value presented as value corresponding to the above
key, in xDS Node Metadata.

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

### setLabelValue

Required. Label value presented as value corresponding to the above
key, in xDS Node Metadata.

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

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