# Google Cloud Network Services V1 Client - Class EndpointMatcher (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 EndpointMatcher.

A definition of a matcher that selects endpoints to which the policies
should be applied.

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

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ metadata_label_matcher` | `https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.EndpointMatcher.MetadataLabelMatcher` The matcher is based on node metadata presented by xDS clients. |

### getMetadataLabelMatcher

The matcher is based on node metadata presented by xDS clients.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.EndpointMatcher.MetadataLabelMatcher|null` |   |

### hasMetadataLabelMatcher

### setMetadataLabelMatcher

The matcher is based on node metadata presented by xDS clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.EndpointMatcher.MetadataLabelMatcher` |

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

### getMatcherType

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