# Google Cloud Config Delivery V1 Client - Class LabelSelector (0.3.3)

0.3.3 (latest) 0.3.2 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Config Delivery V1 Client class LabelSelector.

A label selector is a label query over a set of resources. An empty label
selector matches all objects.

Generated from protobuf message `google.cloud.configdelivery.v1.Fleet.LabelSelector`

## Namespace

Google \\ Cloud \\ ConfigDelivery \\ V1 \\ Fleet

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ match_labels` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. match_labels is a map of {key,value} pairs. Each {key,value} pair must match an existing label key and value exactly in order to satisfy the match. |

### getMatchLabels

Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setMatchLabels

Optional. match_labels is a map of {key,value} pairs. Each {key,value}
pair must match an existing label key and value exactly in order to
satisfy the match.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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