public static final class HttpRoute.RouteMatch extends GeneratedMessageV3 implements HttpRoute.RouteMatchOrBuilder
RouteMatch defines specifications used to match requests. If multiple match
types are set, this RouteMatch will match if ALL type of matches are
matched.
Protobuf type google.cloud.networkservices.v1.HttpRoute.RouteMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
FULL_PATH_MATCH_FIELD_NUMBER
public static final int FULL_PATH_MATCH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int HEADERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
IGNORE_CASE_FIELD_NUMBER
public static final int IGNORE_CASE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PREFIX_MATCH_FIELD_NUMBER
public static final int PREFIX_MATCH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUERY_PARAMETERS_FIELD_NUMBER
public static final int QUERY_PARAMETERS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REGEX_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static HttpRoute.RouteMatch getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static HttpRoute.RouteMatch.Builder newBuilder()
newBuilder(HttpRoute.RouteMatch prototype)
public static HttpRoute.RouteMatch.Builder newBuilder(HttpRoute.RouteMatch prototype)
public static HttpRoute.RouteMatch parseDelimitedFrom(InputStream input)
public static HttpRoute.RouteMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static HttpRoute.RouteMatch parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static HttpRoute.RouteMatch parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteMatch parseFrom(CodedInputStream input)
public static HttpRoute.RouteMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteMatch parseFrom(InputStream input)
public static HttpRoute.RouteMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static HttpRoute.RouteMatch parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.RouteMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<HttpRoute.RouteMatch> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public HttpRoute.RouteMatch getDefaultInstanceForType()
getFullPathMatch()
public 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 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.
|
public 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
|
public 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 |
|
public 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;
public 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
|
public 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 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.
|
getParserForType()
public Parser<HttpRoute.RouteMatch> getParserForType()
Overrides
getPathMatchCase()
public HttpRoute.RouteMatch.PathMatchCase getPathMatchCase()
getPrefixMatch()
public 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 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 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
|
getQueryParametersCount()
public 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 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;
getQueryParametersOrBuilder(int index)
public 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
|
getQueryParametersOrBuilderList()
public 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 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 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.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasFullPathMatch()
public 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 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 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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public HttpRoute.RouteMatch.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpRoute.RouteMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public HttpRoute.RouteMatch.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides