Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteMatch.
RouteMatch defines the predicate used to match requests to a given action.
Multiple match types are "AND"ed for evaluation.
Generated from protobuf message google.cloud.networkservices.v1.TlsRoute.RouteMatch
Namespace
Google \ Cloud \ NetworkServices \ V1 \ TlsRouteMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ sni_host | arrayOptional. SNI (server name indicator) to match against. SNI will be matched against all wildcard domains, i.e.  | 
| ↳ alpn | arrayOptional. 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. | 
getSniHost
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 | |
|---|---|
| Type | Description | 
| Google\Protobuf\Internal\RepeatedField | |
setSniHost
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.
| Parameter | |
|---|---|
| Name | Description | 
| var | string[] | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getAlpn
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 | |
|---|---|
| Type | Description | 
| Google\Protobuf\Internal\RepeatedField | |
setAlpn
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.
| Parameter | |
|---|---|
| Name | Description | 
| var | string[] | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |