# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::TlsRoute::RouteMatch.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #alpn

    def alpn() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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.

### #alpn=

    def alpn=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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.
**Returns**

- (::Array\<::String\>) --- 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.

### #sni_host

    def sni_host() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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.

### #sni_host=

    def sni_host=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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.
**Returns**

- (::Array\<::String\>) --- 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.