# Interface HttpRoute.RouteMatchOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)

    public static interface HttpRoute.RouteMatchOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getFullPathMatch()

    public abstract String 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.

`string full_path_match = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fullPathMatch. |

### getFullPathMatchBytes()

    public abstract ByteString getFullPathMatchBytes()

The HTTP request path value should exactly match this value.
Only one of full_path_match, prefix_match, or regex_match should be
used.

`string full_path_match = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for fullPathMatch. |

### getHeaders(int index)

    public abstract HttpRoute.HeaderMatch getHeaders(int index)

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

`repeated .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch` |   |

### getHeadersCount()

    public abstract int getHeadersCount()

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

`repeated .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getHeadersList()

    public abstract List<HttpRoute.HeaderMatch> getHeadersList()

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

`repeated .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch>` |   |

### getHeadersOrBuilder(int index)

    public abstract HttpRoute.HeaderMatchOrBuilder getHeadersOrBuilder(int index)

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

`repeated .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.HeaderMatchOrBuilder` |   |

### getHeadersOrBuilderList()

    public abstract List<? extends HttpRoute.HeaderMatchOrBuilder> getHeadersOrBuilderList()

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

`repeated .google.events.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.events.cloud.networkservices.v1.HttpRoute.HeaderMatchOrBuilder>` |   |

### getIgnoreCase()

    public abstract boolean getIgnoreCase()

Specifies if prefix_match and full_path_match matches are case sensitive.
The default value is false.

`bool ignore_case = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The ignoreCase. |

### getPathMatchCase()

    public abstract HttpRoute.RouteMatch.PathMatchCase getPathMatchCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.RouteMatch.PathMatchCase` |   |

### getPrefixMatch()

    public abstract String 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.

`string prefix_match = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The prefixMatch. |

### getPrefixMatchBytes()

    public abstract ByteString getPrefixMatchBytes()

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.

`string prefix_match = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for prefixMatch. |

### getQueryParameters(int index)

    public abstract HttpRoute.QueryParameterMatch getQueryParameters(int index)

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

`
repeated .google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch` |   |

### getQueryParametersCount()

    public abstract int getQueryParametersCount()

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

`
repeated .google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getQueryParametersList()

    public abstract List<HttpRoute.QueryParameterMatch> getQueryParametersList()

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

`
repeated .google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch>` |   |

### getQueryParametersOrBuilder(int index)

    public abstract HttpRoute.QueryParameterMatchOrBuilder getQueryParametersOrBuilder(int index)

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

`
repeated .google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatchOrBuilder` |   |

### getQueryParametersOrBuilderList()

    public abstract List<? extends HttpRoute.QueryParameterMatchOrBuilder> getQueryParametersOrBuilderList()

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

`
repeated .google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatchOrBuilder>` |   |

### getRegexMatch()

    public abstract String 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.

`string regex_match = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The regexMatch. |

### getRegexMatchBytes()

    public abstract ByteString getRegexMatchBytes()

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.

`string regex_match = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for regexMatch. |

### hasFullPathMatch()

    public abstract boolean hasFullPathMatch()

The HTTP request path value should exactly match this value.
Only one of full_path_match, prefix_match, or regex_match should be
used.

`string full_path_match = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the fullPathMatch field is set. |

### hasPrefixMatch()

    public abstract boolean hasPrefixMatch()

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.

`string prefix_match = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the prefixMatch field is set. |

### hasRegexMatch()

    public abstract boolean hasRegexMatch()

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.

`string regex_match = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the regexMatch field is set. |