# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::QueryParameterMatch (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::HttpRoute::QueryParameterMatch.

Specifications to match a query parameter in the request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #exact_match

    def exact_match() -> ::String

**Returns**

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

  Note: The following fields are mutually exclusive: `exact_match`, `regex_match`, `present_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #exact_match=

    def exact_match=(value) -> ::String

**Parameter**

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

  Note: The following fields are mutually exclusive: `exact_match`, `regex_match`, `present_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

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

  Note: The following fields are mutually exclusive: `exact_match`, `regex_match`, `present_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #present_match

    def present_match() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

  Note: The following fields are mutually exclusive: `present_match`, `exact_match`, `regex_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #present_match=

    def present_match=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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.

  Note: The following fields are mutually exclusive: `present_match`, `exact_match`, `regex_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::Boolean) --- 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.

  Note: The following fields are mutually exclusive: `present_match`, `exact_match`, `regex_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #query_parameter

    def query_parameter() -> ::String

**Returns**

- (::String) --- The name of the query parameter to match.

### #query_parameter=

    def query_parameter=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the query parameter to match.
**Returns**

- (::String) --- The name of the query parameter to match.

### #regex_match

    def regex_match() -> ::String

**Returns**

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

  Note: The following fields are mutually exclusive: `regex_match`, `exact_match`, `present_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #regex_match=

    def regex_match=(value) -> ::String

**Parameter**

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

  Note: The following fields are mutually exclusive: `regex_match`, `exact_match`, `present_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

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

  Note: The following fields are mutually exclusive: `regex_match`, `exact_match`, `present_match`. If a field in that set is populated, all other fields in the set will automatically be cleared.