# Recommender V1 Client - Class ValueMatcher (2.2.0)

2.2.0 (latest) 2.1.3 2.0.5 1.11.5 1.10.0 1.9.1 1.8.2 1.7.8 Reference documentation and code samples for the Recommender V1 Client class ValueMatcher.

Contains various matching options for values for a GCP resource field.

Generated from protobuf message `google.cloud.recommender.v1.ValueMatcher`

## Namespace

Google \\ Cloud \\ Recommender \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ matches_pattern` | `string` To be used for full regex matching. The regular expression is using the Google RE2 syntax (<https://github.com/google/re2/wiki/Syntax>), so to be used with RE2::FullMatch |

### getMatchesPattern

To be used for full regex matching. The regular expression is using the
Google RE2 syntax (<https://github.com/google/re2/wiki/Syntax>), so to be
used with RE2::FullMatch

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

### hasMatchesPattern

### setMatchesPattern

To be used for full regex matching. The regular expression is using the
Google RE2 syntax (<https://github.com/google/re2/wiki/Syntax>), so to be
used with RE2::FullMatch

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

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

### getMatchVariant

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