# Google Cloud Network Services V1 Client - Class RouteMatch (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteMatch.

RouteMatch defines specifications used to match requests. If multiple match
types are set, this RouteMatch will match if ALL type of matches are
matched.

Generated from protobuf message `google.cloud.networkservices.v1.HttpRoute.RouteMatch`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ HttpRoute

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ full_path_match` | `string` The HTTP request path value should exactly match this value. Only one of full_path_match, prefix_match, or regex_match should be used. |
| `↳ prefix_match` | `string` The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /. Only one of full_path_match, prefix_match, or regex_match should be used. |
| `↳ regex_match` | `string` The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see <https://github.com/google/re2/wiki/Syntax> Only one of full_path_match, prefix_match, or regex_match should be used. |
| `↳ ignore_case` | `bool` Specifies if prefix_match and full_path_match matches are case sensitive. The default value is false. |
| `↳ headers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.HeaderMatch>` Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched. |
| `↳ query_parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.QueryParameterMatch>` Specifies a list of query parameters to match against. ALL of the query parameters must be matched. |

### getFullPathMatch

The HTTP request path value should exactly match this value.

Only one of full_path_match, prefix_match, or regex_match should be
used.

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

### hasFullPathMatch

### setFullPathMatch

The HTTP request path value should exactly match this value.

Only one of full_path_match, prefix_match, or regex_match should be
used.

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

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

### getPrefixMatch

The HTTP request path value must begin with specified prefix_match.

prefix_match must begin with a /.
Only one of full_path_match, prefix_match, or regex_match should be
used.

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

### hasPrefixMatch

### setPrefixMatch

The HTTP request path value must begin with specified prefix_match.

prefix_match must begin with a /.
Only one of full_path_match, prefix_match, or regex_match should be
used.

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

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

### getRegexMatch

The HTTP request path value must satisfy the regular expression
specified by regex_match after removing any query parameters and anchor
supplied with the original URL. For regular expression grammar, please
see <https://github.com/google/re2/wiki/Syntax>
Only one of full_path_match, prefix_match, or regex_match should be
used.

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

### hasRegexMatch

### setRegexMatch

The HTTP request path value must satisfy the regular expression
specified by regex_match after removing any query parameters and anchor
supplied with the original URL. For regular expression grammar, please
see <https://github.com/google/re2/wiki/Syntax>
Only one of full_path_match, prefix_match, or regex_match should be
used.

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

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

### getIgnoreCase

Specifies if prefix_match and full_path_match matches are case sensitive.

The default value is false.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIgnoreCase

Specifies if prefix_match and full_path_match matches are case sensitive.

The default value is false.

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

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

### getHeaders

Specifies a list of HTTP request headers to match against. ALL of the
supplied headers must be matched.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.HeaderMatch>` |   |

### setHeaders

Specifies a list of HTTP request headers to match against. ALL of the
supplied headers must be matched.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.HeaderMatch>` |

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

### getQueryParameters

Specifies a list of query parameters to match against. ALL of the query
parameters must be matched.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.QueryParameterMatch>` |   |

### setQueryParameters

Specifies a list of query parameters to match against. ALL of the query
parameters must be matched.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.HttpRoute.QueryParameterMatch>` |

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

### getPathMatch

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