1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class TlsRoute.Types.RouteMatch : IMessage<TlsRoute.Types.RouteMatch>, IEquatable<TlsRoute.Types.RouteMatch>, IDeepCloneable<TlsRoute.Types.RouteMatch>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Services v1 API class TlsRoute.Types.RouteMatch.

RouteMatch defines the predicate used to match requests to a given action.
Multiple match types are "AND"ed for evaluation.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TlsRoute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types)[RouteMatch](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types.RouteMatch), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TlsRoute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types)[RouteMatch](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types.RouteMatch), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TlsRoute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types)[RouteMatch](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types.RouteMatch), [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.NetworkServices.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1)

## Assembly

Google.Cloud.NetworkServices.V1.dll

## Constructors

### RouteMatch()

    public RouteMatch()

### RouteMatch(RouteMatch)

    public RouteMatch(TlsRoute.Types.RouteMatch other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoutehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkServices.V1/latest/Google.Cloud.NetworkServices.V1.TlsRoute.Types.RouteMatch` |

## Properties

### Alpn

    public RepeatedField<string> Alpn { get; }

Optional. ALPN (Application-Layer Protocol Negotiation) to match against.
Examples: "http/1.1", "h2".
At least one of sni_host and alpn is required.
Up to 5 alpns across all matches can be set.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### SniHost

    public RepeatedField<string> SniHost { get; }

Optional. SNI (server name indicator) to match against.
SNI will be matched against all wildcard domains, i.e. `www.example.com`
will be first matched against `www.example.com`, then `*.example.com`,
then `*.com.`
Partial wildcards are not supported, and values like \*w.example.com are
invalid.
At least one of sni_host and alpn is required.
Up to 100 sni hosts across all matches can be set.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |