public static final class HttpRoute.RouteMatch.Builder extends GeneratedMessageV3.Builder<HttpRoute.RouteMatch.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HttpRoute.RouteMatch.BuilderImplements
HttpRoute.RouteMatchOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllHeaders(Iterable<? extends HttpRoute.HeaderMatch> values)
public HttpRoute.RouteMatch.Builder addAllHeaders(Iterable<? extends HttpRoute.HeaderMatch> values)
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 |
values |
Iterable<? extends com.google.cloud.networkservices.v1.HttpRoute.HeaderMatch> |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addAllQueryParameters(Iterable<? extends HttpRoute.QueryParameterMatch> values)
public HttpRoute.RouteMatch.Builder addAllQueryParameters(Iterable<? extends HttpRoute.QueryParameterMatch> values)
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 |
values |
Iterable<? extends com.google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch> |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addHeaders(HttpRoute.HeaderMatch value)
public HttpRoute.RouteMatch.Builder addHeaders(HttpRoute.HeaderMatch value)
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 |
value |
HttpRoute.HeaderMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addHeaders(HttpRoute.HeaderMatch.Builder builderForValue)
public HttpRoute.RouteMatch.Builder addHeaders(HttpRoute.HeaderMatch.Builder builderForValue)
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 |
builderForValue |
HttpRoute.HeaderMatch.Builder |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addHeaders(int index, HttpRoute.HeaderMatch value)
public HttpRoute.RouteMatch.Builder addHeaders(int index, HttpRoute.HeaderMatch value)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
HttpRoute.HeaderMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addHeaders(int index, HttpRoute.HeaderMatch.Builder builderForValue)
public HttpRoute.RouteMatch.Builder addHeaders(int index, HttpRoute.HeaderMatch.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
HttpRoute.HeaderMatch.Builder |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addHeadersBuilder()
public HttpRoute.HeaderMatch.Builder addHeadersBuilder()
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 |
HttpRoute.HeaderMatch.Builder |
addHeadersBuilder(int index)
public HttpRoute.HeaderMatch.Builder addHeadersBuilder(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.Builder |
addQueryParameters(HttpRoute.QueryParameterMatch value)
public HttpRoute.RouteMatch.Builder addQueryParameters(HttpRoute.QueryParameterMatch value)
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 |
value |
HttpRoute.QueryParameterMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addQueryParameters(HttpRoute.QueryParameterMatch.Builder builderForValue)
public HttpRoute.RouteMatch.Builder addQueryParameters(HttpRoute.QueryParameterMatch.Builder builderForValue)
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 |
builderForValue |
HttpRoute.QueryParameterMatch.Builder |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addQueryParameters(int index, HttpRoute.QueryParameterMatch value)
public HttpRoute.RouteMatch.Builder addQueryParameters(int index, HttpRoute.QueryParameterMatch value)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
HttpRoute.QueryParameterMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addQueryParameters(int index, HttpRoute.QueryParameterMatch.Builder builderForValue)
public HttpRoute.RouteMatch.Builder addQueryParameters(int index, HttpRoute.QueryParameterMatch.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
HttpRoute.QueryParameterMatch.Builder |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
addQueryParametersBuilder()
public HttpRoute.QueryParameterMatch.Builder addQueryParametersBuilder()
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 |
HttpRoute.QueryParameterMatch.Builder |
addQueryParametersBuilder(int index)
public HttpRoute.QueryParameterMatch.Builder addQueryParametersBuilder(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.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute.RouteMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
build()
public HttpRoute.RouteMatch build()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch |
buildPartial()
public HttpRoute.RouteMatch buildPartial()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch |
clear()
public HttpRoute.RouteMatch.Builder clear()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
clearField(Descriptors.FieldDescriptor field)
public HttpRoute.RouteMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
clearFullPathMatch()
public HttpRoute.RouteMatch.Builder clearFullPathMatch()
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 |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
clearHeaders()
public HttpRoute.RouteMatch.Builder clearHeaders()
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 |
HttpRoute.RouteMatch.Builder |
clearIgnoreCase()
public HttpRoute.RouteMatch.Builder clearIgnoreCase()
Specifies if prefix_match and full_path_match matches are case sensitive. The default value is false.
bool ignore_case = 4;
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRoute.RouteMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
clearPathMatch()
public HttpRoute.RouteMatch.Builder clearPathMatch()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
clearPrefixMatch()
public HttpRoute.RouteMatch.Builder clearPrefixMatch()
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 |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
clearQueryParameters()
public HttpRoute.RouteMatch.Builder clearQueryParameters()
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 |
HttpRoute.RouteMatch.Builder |
clearRegexMatch()
public HttpRoute.RouteMatch.Builder clearRegexMatch()
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 |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
clone()
public HttpRoute.RouteMatch.Builder clone()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
getDefaultInstanceForType()
public HttpRoute.RouteMatch getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
getHeaders(int index)
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 |
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderMatch |
getHeadersBuilder(int index)
public HttpRoute.HeaderMatch.Builder getHeadersBuilder(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.Builder |
getHeadersBuilderList()
public List<HttpRoute.HeaderMatch.Builder> getHeadersBuilderList()
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<Builder> |
getHeadersCount()
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 |
getHeadersList()
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;
Returns | |
---|---|
Type | Description |
List<HeaderMatch> |
getHeadersOrBuilder(int index)
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 |
Returns | |
---|---|
Type | Description |
HttpRoute.HeaderMatchOrBuilder |
getHeadersOrBuilderList()
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. |
getPathMatchCase()
public HttpRoute.RouteMatch.PathMatchCase getPathMatchCase()
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.PathMatchCase |
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 |
Returns | |
---|---|
Type | Description |
HttpRoute.QueryParameterMatch |
getQueryParametersBuilder(int index)
public HttpRoute.QueryParameterMatch.Builder getQueryParametersBuilder(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.Builder |
getQueryParametersBuilderList()
public List<HttpRoute.QueryParameterMatch.Builder> getQueryParametersBuilderList()
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<Builder> |
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;
Returns | |
---|---|
Type | Description |
List<QueryParameterMatch> |
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 |
Returns | |
---|---|
Type | Description |
HttpRoute.QueryParameterMatchOrBuilder |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(HttpRoute.RouteMatch other)
public HttpRoute.RouteMatch.Builder mergeFrom(HttpRoute.RouteMatch other)
Parameter | |
---|---|
Name | Description |
other |
HttpRoute.RouteMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpRoute.RouteMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public HttpRoute.RouteMatch.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute.RouteMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
removeHeaders(int index)
public HttpRoute.RouteMatch.Builder removeHeaders(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.RouteMatch.Builder |
removeQueryParameters(int index)
public HttpRoute.RouteMatch.Builder removeQueryParameters(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.RouteMatch.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public HttpRoute.RouteMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
setFullPathMatch(String value)
public HttpRoute.RouteMatch.Builder setFullPathMatch(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The fullPathMatch to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setFullPathMatchBytes(ByteString value)
public HttpRoute.RouteMatch.Builder setFullPathMatchBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for fullPathMatch to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setHeaders(int index, HttpRoute.HeaderMatch value)
public HttpRoute.RouteMatch.Builder setHeaders(int index, HttpRoute.HeaderMatch value)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
HttpRoute.HeaderMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
setHeaders(int index, HttpRoute.HeaderMatch.Builder builderForValue)
public HttpRoute.RouteMatch.Builder setHeaders(int index, HttpRoute.HeaderMatch.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
HttpRoute.HeaderMatch.Builder |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
setIgnoreCase(boolean value)
public HttpRoute.RouteMatch.Builder setIgnoreCase(boolean value)
Specifies if prefix_match and full_path_match matches are case sensitive. The default value is false.
bool ignore_case = 4;
Parameter | |
---|---|
Name | Description |
value |
boolean The ignoreCase to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setPrefixMatch(String value)
public HttpRoute.RouteMatch.Builder setPrefixMatch(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The prefixMatch to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setPrefixMatchBytes(ByteString value)
public HttpRoute.RouteMatch.Builder setPrefixMatchBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for prefixMatch to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setQueryParameters(int index, HttpRoute.QueryParameterMatch value)
public HttpRoute.RouteMatch.Builder setQueryParameters(int index, HttpRoute.QueryParameterMatch value)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
HttpRoute.QueryParameterMatch |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
setQueryParameters(int index, HttpRoute.QueryParameterMatch.Builder builderForValue)
public HttpRoute.RouteMatch.Builder setQueryParameters(int index, HttpRoute.QueryParameterMatch.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
HttpRoute.QueryParameterMatch.Builder |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
setRegexMatch(String value)
public HttpRoute.RouteMatch.Builder setRegexMatch(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The regexMatch to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setRegexMatchBytes(ByteString value)
public HttpRoute.RouteMatch.Builder setRegexMatchBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for regexMatch to set. |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpRoute.RouteMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpRoute.RouteMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
HttpRoute.RouteMatch.Builder |