public static final class RouteOuterClass.HeaderMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder> implements RouteOuterClass.HeaderMatcherOrBuilder
.. attention::
Internally, Envoy always uses the HTTP/2 *:authority* header to represent the HTTP/1 *Host*
header. Thus, if attempting to match on *Host*, match on *:authority* instead.
.. attention::
To route on HTTP method, use the special HTTP/2 *:method* header. This works for both
HTTP/1 and HTTP/2 as Envoy normalizes headers. E.g.,
.. code-block:: json
{
"name": ":method",
"value": "POST"
}
Protobuf type envoy.api.v2.route.HeaderMatcher| Modifier and Type | Method and Description |
|---|---|
RouteOuterClass.HeaderMatcher.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteOuterClass.HeaderMatcher |
build() |
RouteOuterClass.HeaderMatcher |
buildPartial() |
RouteOuterClass.HeaderMatcher.Builder |
clear() |
RouteOuterClass.HeaderMatcher.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteOuterClass.HeaderMatcher.Builder |
clearName()
Specifies the name of the header in the request.
|
RouteOuterClass.HeaderMatcher.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteOuterClass.HeaderMatcher.Builder |
clearRegex()
Specifies whether the header value is a regular
expression or not.
|
RouteOuterClass.HeaderMatcher.Builder |
clearValue()
Specifies the value of the header.
|
RouteOuterClass.HeaderMatcher.Builder |
clone() |
RouteOuterClass.HeaderMatcher |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Specifies the name of the header in the request.
|
com.google.protobuf.ByteString |
getNameBytes()
Specifies the name of the header in the request.
|
com.google.protobuf.BoolValue |
getRegex()
Specifies whether the header value is a regular
expression or not.
|
com.google.protobuf.BoolValue.Builder |
getRegexBuilder()
Specifies whether the header value is a regular
expression or not.
|
com.google.protobuf.BoolValueOrBuilder |
getRegexOrBuilder()
Specifies whether the header value is a regular
expression or not.
|
String |
getValue()
Specifies the value of the header.
|
com.google.protobuf.ByteString |
getValueBytes()
Specifies the value of the header.
|
boolean |
hasRegex()
Specifies whether the header value is a regular
expression or not.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouteOuterClass.HeaderMatcher.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteOuterClass.HeaderMatcher.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteOuterClass.HeaderMatcher.Builder |
mergeFrom(RouteOuterClass.HeaderMatcher other) |
RouteOuterClass.HeaderMatcher.Builder |
mergeRegex(com.google.protobuf.BoolValue value)
Specifies whether the header value is a regular
expression or not.
|
RouteOuterClass.HeaderMatcher.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteOuterClass.HeaderMatcher.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteOuterClass.HeaderMatcher.Builder |
setName(String value)
Specifies the name of the header in the request.
|
RouteOuterClass.HeaderMatcher.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the header in the request.
|
RouteOuterClass.HeaderMatcher.Builder |
setRegex(com.google.protobuf.BoolValue.Builder builderForValue)
Specifies whether the header value is a regular
expression or not.
|
RouteOuterClass.HeaderMatcher.Builder |
setRegex(com.google.protobuf.BoolValue value)
Specifies whether the header value is a regular
expression or not.
|
RouteOuterClass.HeaderMatcher.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteOuterClass.HeaderMatcher.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteOuterClass.HeaderMatcher.Builder |
setValue(String value)
Specifies the value of the header.
|
RouteOuterClass.HeaderMatcher.Builder |
setValueBytes(com.google.protobuf.ByteString value)
Specifies the value of the header.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteOuterClass.HeaderMatcher build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteOuterClass.HeaderMatcher buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteOuterClass.HeaderMatcher.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder mergeFrom(RouteOuterClass.HeaderMatcher other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public RouteOuterClass.HeaderMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteOuterClass.HeaderMatcher.Builder>IOExceptionpublic String getName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }getName in interface RouteOuterClass.HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }getNameBytes in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setName(String value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public RouteOuterClass.HeaderMatcher.Builder clearName()
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public RouteOuterClass.HeaderMatcher.Builder setNameBytes(com.google.protobuf.ByteString value)
Specifies the name of the header in the request.
string name = 1 [(.validate.rules) = { ... }public String getValue()
Specifies the value of the header. If the value is absent a request that has the name header will match, regardless of the header’s value.
string value = 2;getValue in interface RouteOuterClass.HeaderMatcherOrBuilderpublic com.google.protobuf.ByteString getValueBytes()
Specifies the value of the header. If the value is absent a request that has the name header will match, regardless of the header’s value.
string value = 2;getValueBytes in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setValue(String value)
Specifies the value of the header. If the value is absent a request that has the name header will match, regardless of the header’s value.
string value = 2;public RouteOuterClass.HeaderMatcher.Builder clearValue()
Specifies the value of the header. If the value is absent a request that has the name header will match, regardless of the header’s value.
string value = 2;public RouteOuterClass.HeaderMatcher.Builder setValueBytes(com.google.protobuf.ByteString value)
Specifies the value of the header. If the value is absent a request that has the name header will match, regardless of the header’s value.
string value = 2;public boolean hasRegex()
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;hasRegex in interface RouteOuterClass.HeaderMatcherOrBuilderpublic com.google.protobuf.BoolValue getRegex()
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;getRegex in interface RouteOuterClass.HeaderMatcherOrBuilderpublic RouteOuterClass.HeaderMatcher.Builder setRegex(com.google.protobuf.BoolValue value)
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;public RouteOuterClass.HeaderMatcher.Builder setRegex(com.google.protobuf.BoolValue.Builder builderForValue)
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;public RouteOuterClass.HeaderMatcher.Builder mergeRegex(com.google.protobuf.BoolValue value)
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;public RouteOuterClass.HeaderMatcher.Builder clearRegex()
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;public com.google.protobuf.BoolValue.Builder getRegexBuilder()
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;public com.google.protobuf.BoolValueOrBuilder getRegexOrBuilder()
Specifies whether the header value is a regular
expression or not. Defaults to false. The entire request header value must match the regex. The
rule will not match if only a subsequence of the request header value matches the regex. The
regex grammar used in the value field is defined
`here <http://en.cppreference.com/w/cpp/regex/ecmascript>`_.
Examples:
* The regex *\d{3}* matches the value *123*
* The regex *\d{3}* does not match the value *1234*
* The regex *\d{3}* does not match the value *123.456*
.google.protobuf.BoolValue regex = 3;getRegexOrBuilder in interface RouteOuterClass.HeaderMatcherOrBuilderpublic final RouteOuterClass.HeaderMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>public final RouteOuterClass.HeaderMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.HeaderMatcher.Builder>Copyright © 2018 The Envoy Project. All rights reserved.