# Interface HttpRoute.QueryParameterMatchOrBuilder (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.QueryParameterMatchOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatchOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkservices.v1.HttpRoute.QueryParameterMatchOrBuilder)

    public static interface HttpRoute.QueryParameterMatchOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getExactMatch()

    public abstract String getExactMatch()

The value of the query parameter must exactly match the contents of
exact_match.
Only one of exact_match, regex_match, or present_match must be set.

`string exact_match = 2;`

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

### getExactMatchBytes()

    public abstract ByteString getExactMatchBytes()

The value of the query parameter must exactly match the contents of
exact_match.
Only one of exact_match, regex_match, or present_match must be set.

`string exact_match = 2;`

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

### getMatchTypeCase()

    public abstract HttpRoute.QueryParameterMatch.MatchTypeCase getMatchTypeCase()

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

### getPresentMatch()

    public abstract boolean getPresentMatch()

Specifies that the QueryParameterMatcher matches if request contains
query parameter, irrespective of whether the parameter has a value or
not.
Only one of exact_match, regex_match, or present_match must be set.

`bool present_match = 4;`

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

### getQueryParameter()

    public abstract String getQueryParameter()

The name of the query parameter to match.

`string query_parameter = 1;`

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

### getQueryParameterBytes()

    public abstract ByteString getQueryParameterBytes()

The name of the query parameter to match.

`string query_parameter = 1;`

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

### getRegexMatch()

    public abstract String getRegexMatch()

The value of the query parameter must match the regular expression
specified by regex_match. For regular expression grammar, please see
<https://github.com/google/re2/wiki/Syntax>
Only one of exact_match, regex_match, or present_match must be set.

`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 value of the query parameter must match the regular expression
specified by regex_match. For regular expression grammar, please see
<https://github.com/google/re2/wiki/Syntax>
Only one of exact_match, regex_match, or present_match must be set.

`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. |

### hasExactMatch()

    public abstract boolean hasExactMatch()

The value of the query parameter must exactly match the contents of
exact_match.
Only one of exact_match, regex_match, or present_match must be set.

`string exact_match = 2;`

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

### hasPresentMatch()

    public abstract boolean hasPresentMatch()

Specifies that the QueryParameterMatcher matches if request contains
query parameter, irrespective of whether the parameter has a value or
not.
Only one of exact_match, regex_match, or present_match must be set.

`bool present_match = 4;`

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

### hasRegexMatch()

    public abstract boolean hasRegexMatch()

The value of the query parameter must match the regular expression
specified by regex_match. For regular expression grammar, please see
<https://github.com/google/re2/wiki/Syntax>
Only one of exact_match, regex_match, or present_match must be set.

`string regex_match = 3;`

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