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
defexact_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=
defexact_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
defpresent_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=
defpresent_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
defquery_parameter()->::String
Returns
(::String) — The name of the query parameter to match.
#query_parameter=
defquery_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
defregex_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=
defregex_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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::QueryParameterMatch (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-QueryParameterMatch) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::QueryParameterMatch.\n\nSpecifications to match a query parameter in the request. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #exact_match\n\n def exact_match() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The value of the query parameter must exactly match the contents of exact_match.\n\n Only one of exact_match, regex_match, or present_match must be set.\n\n 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.\n\n### #exact_match=\n\n def exact_match=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The value of the query parameter must exactly match the contents of exact_match.\n\n\n Only one of exact_match, regex_match, or present_match must be set.\n\nNote: 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. \n**Returns**\n\n- (::String) --- The value of the query parameter must exactly match the contents of exact_match.\n\n Only one of exact_match, regex_match, or present_match must be set.\n\n 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.\n\n### #present_match\n\n def present_match() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.\n\n Only one of exact_match, regex_match, or present_match must be set.\n\n 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.\n\n### #present_match=\n\n def present_match=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.\n\n\n Only one of exact_match, regex_match, or present_match must be set.\n\nNote: 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. \n**Returns**\n\n- (::Boolean) --- Specifies that the QueryParameterMatcher matches if request contains query parameter, irrespective of whether the parameter has a value or not.\n\n Only one of exact_match, regex_match, or present_match must be set.\n\n 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.\n\n### #query_parameter\n\n def query_parameter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The name of the query parameter to match.\n\n### #query_parameter=\n\n def query_parameter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The name of the query parameter to match. \n**Returns**\n\n- (::String) --- The name of the query parameter to match.\n\n### #regex_match\n\n def regex_match() -\u003e ::String\n\n**Returns**\n\n- (::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\n\n Only one of exact_match, regex_match, or present_match must be set.\n\n 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.\n\n### #regex_match=\n\n def regex_match=(value) -\u003e ::String\n\n**Parameter**\n\n- **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\n\n\n Only one of exact_match, regex_match, or present_match must be set.\n\nNote: 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. \n**Returns**\n\n- (::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\n\n Only one of exact_match, regex_match, or present_match must be set.\n\n 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."]]