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.
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.
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.
[[["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-16 UTC."],[],[],null,["# Interface HttpRoute.RouteMatchOrBuilder (0.28.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.28.0 (latest)](/java/docs/reference/google-cloud-networkservices/latest/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-networkservices/0.26.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.24.0](/java/docs/reference/google-cloud-networkservices/0.24.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-networkservices/0.23.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.20.0](/java/docs/reference/google-cloud-networkservices/0.20.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-networkservices/0.19.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-networkservices/0.18.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-networkservices/0.16.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-networkservices/0.15.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-networkservices/0.14.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-networkservices/0.13.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-networkservices/0.12.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-networkservices/0.11.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-networkservices/0.10.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.9.0](/java/docs/reference/google-cloud-networkservices/0.9.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-networkservices/0.8.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-networkservices/0.7.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-networkservices/0.5.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-networkservices/0.4.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-networkservices/0.3.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-networkservices/0.2.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-networkservices/0.1.0/com.google.cloud.networkservices.v1.HttpRoute.RouteMatchOrBuilder) \n\n public static interface HttpRoute.RouteMatchOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getFullPathMatch()\n\n public abstract String getFullPathMatch()\n\nThe HTTP request path value should exactly match this value.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string full_path_match = 1;`\n\n### getFullPathMatchBytes()\n\n public abstract ByteString getFullPathMatchBytes()\n\nThe HTTP request path value should exactly match this value.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string full_path_match = 1;`\n\n### getHeaders(int index)\n\n public abstract HttpRoute.HeaderMatch getHeaders(int index)\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n`repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;`\n\n### getHeadersCount()\n\n public abstract int getHeadersCount()\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n`repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;`\n\n### getHeadersList()\n\n public abstract List\u003cHttpRoute.HeaderMatch\u003e getHeadersList()\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n`repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;`\n\n### getHeadersOrBuilder(int index)\n\n public abstract HttpRoute.HeaderMatchOrBuilder getHeadersOrBuilder(int index)\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n`repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;`\n\n### getHeadersOrBuilderList()\n\n public abstract List\u003c? extends HttpRoute.HeaderMatchOrBuilder\u003e getHeadersOrBuilderList()\n\nSpecifies a list of HTTP request headers to match against. ALL of the\nsupplied headers must be matched.\n\n`repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;`\n\n### getIgnoreCase()\n\n public abstract boolean getIgnoreCase()\n\nSpecifies if prefix_match and full_path_match matches are case sensitive.\nThe default value is false.\n\n`bool ignore_case = 4;`\n\n### getPathMatchCase()\n\n public abstract HttpRoute.RouteMatch.PathMatchCase getPathMatchCase()\n\n### getPrefixMatch()\n\n public abstract String getPrefixMatch()\n\nThe HTTP request path value must begin with specified prefix_match.\nprefix_match must begin with a /.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string prefix_match = 2;`\n\n### getPrefixMatchBytes()\n\n public abstract ByteString getPrefixMatchBytes()\n\nThe HTTP request path value must begin with specified prefix_match.\nprefix_match must begin with a /.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string prefix_match = 2;`\n\n### getQueryParameters(int index)\n\n public abstract HttpRoute.QueryParameterMatch getQueryParameters(int index)\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n`\nrepeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;\n`\n\n### getQueryParametersCount()\n\n public abstract int getQueryParametersCount()\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n`\nrepeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;\n`\n\n### getQueryParametersList()\n\n public abstract List\u003cHttpRoute.QueryParameterMatch\u003e getQueryParametersList()\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n`\nrepeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;\n`\n\n### getQueryParametersOrBuilder(int index)\n\n public abstract HttpRoute.QueryParameterMatchOrBuilder getQueryParametersOrBuilder(int index)\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n`\nrepeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;\n`\n\n### getQueryParametersOrBuilderList()\n\n public abstract List\u003c? extends HttpRoute.QueryParameterMatchOrBuilder\u003e getQueryParametersOrBuilderList()\n\nSpecifies a list of query parameters to match against. ALL of the query\nparameters must be matched.\n\n`\nrepeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;\n`\n\n### getRegexMatch()\n\n public abstract String getRegexMatch()\n\nThe HTTP request path value must satisfy the regular expression\nspecified by regex_match after removing any query parameters and anchor\nsupplied with the original URL. For regular expression grammar, please\nsee \u003chttps://github.com/google/re2/wiki/Syntax\u003e\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string regex_match = 3;`\n\n### getRegexMatchBytes()\n\n public abstract ByteString getRegexMatchBytes()\n\nThe HTTP request path value must satisfy the regular expression\nspecified by regex_match after removing any query parameters and anchor\nsupplied with the original URL. For regular expression grammar, please\nsee \u003chttps://github.com/google/re2/wiki/Syntax\u003e\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string regex_match = 3;`\n\n### hasFullPathMatch()\n\n public abstract boolean hasFullPathMatch()\n\nThe HTTP request path value should exactly match this value.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string full_path_match = 1;`\n\n### hasPrefixMatch()\n\n public abstract boolean hasPrefixMatch()\n\nThe HTTP request path value must begin with specified prefix_match.\nprefix_match must begin with a /.\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string prefix_match = 2;`\n\n### hasRegexMatch()\n\n public abstract boolean hasRegexMatch()\n\nThe HTTP request path value must satisfy the regular expression\nspecified by regex_match after removing any query parameters and anchor\nsupplied with the original URL. For regular expression grammar, please\nsee \u003chttps://github.com/google/re2/wiki/Syntax\u003e\n\nOnly one of full_path_match, prefix_match, or regex_match should be\nused.\n\n`string regex_match = 3;`"]]