Interface HttpRoute.RouteMatchOrBuilder (0.4.0)

public static interface HttpRoute.RouteMatchOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

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
String

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
ByteString

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.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;

Returns
Type Description
int

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.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;

Returns
Type Description
List<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.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;

Returns
Type Description
List<? extends com.google.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
boolean

The ignoreCase.

getPathMatchCase()

public abstract HttpRoute.RouteMatch.PathMatchCase getPathMatchCase()
Returns
Type Description
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
String

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
ByteString

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.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;

Returns
Type Description
int

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.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;

Returns
Type Description
List<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.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;

Parameter
Name Description
index int
Returns
Type Description
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.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;

Returns
Type Description
List<? extends com.google.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
String

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
ByteString

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
boolean

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
boolean

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
boolean

Whether the regexMatch field is set.