# Google Cloud Recommender v1 API - Class ValueMatcher (3.9.0)

3.9.0 (latest) 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.8.0 2.7.0 2.6.0 2.5.0

    public sealed class ValueMatcher : IMessage<ValueMatcher>, IEquatable<ValueMatcher>, IDeepCloneable<ValueMatcher>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Recommender v1 API class ValueMatcher.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ValueMatcher

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ValueMatcher](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ValueMatcher), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ValueMatcher](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ValueMatcher), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ValueMatcher](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ValueMatcher), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Recommender.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1)

## Assembly

Google.Cloud.Recommender.V1.dll

## Constructors

### ValueMatcher()

    public ValueMatcher()

### ValueMatcher(ValueMatcher)

    public ValueMatcher(ValueMatcher other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ValueMatcher` |

## Properties

### HasMatchesPattern

    public bool HasMatchesPattern { get; }

Gets whether the "matches_pattern" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MatchVariantCase

    public ValueMatcher.MatchVariantOneofCase MatchVariantCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ValueMatcherhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Recommender.V1/latest/Google.Cloud.Recommender.V1.ValueMatcher.MatchVariantOneofCase` |   |

### MatchesPattern

    public string MatchesPattern { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |