public static final class RouteMatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder> implements RouteMatchOrBuilder
envoy.extensions.filters.network.thrift_proxy.v3.RouteMatch| Modifier and Type | Method and Description |
|---|---|
RouteMatch.Builder |
addAllHeaders(Iterable<? extends HeaderMatcher> values)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
addHeaders(HeaderMatcher.Builder builderForValue)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
addHeaders(HeaderMatcher value)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
addHeaders(int index,
HeaderMatcher.Builder builderForValue)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
addHeaders(int index,
HeaderMatcher value)
Specifies a set of headers that the route should match on.
|
HeaderMatcher.Builder |
addHeadersBuilder()
Specifies a set of headers that the route should match on.
|
HeaderMatcher.Builder |
addHeadersBuilder(int index)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteMatch |
build() |
RouteMatch |
buildPartial() |
RouteMatch.Builder |
clear() |
RouteMatch.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteMatch.Builder |
clearHeaders()
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
clearInvert()
Inverts whatever matching is done in the :ref:`method_name
<envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or
:ref:`service_name
<envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields.
|
RouteMatch.Builder |
clearMatchSpecifier() |
RouteMatch.Builder |
clearMethodName()
If specified, the route must exactly match the request method name.
|
RouteMatch.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteMatch.Builder |
clearServiceName()
If specified, the route must have the service name as the request method name prefix.
|
RouteMatch.Builder |
clone() |
RouteMatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
HeaderMatcher |
getHeaders(int index)
Specifies a set of headers that the route should match on.
|
HeaderMatcher.Builder |
getHeadersBuilder(int index)
Specifies a set of headers that the route should match on.
|
List<HeaderMatcher.Builder> |
getHeadersBuilderList()
Specifies a set of headers that the route should match on.
|
int |
getHeadersCount()
Specifies a set of headers that the route should match on.
|
List<HeaderMatcher> |
getHeadersList()
Specifies a set of headers that the route should match on.
|
HeaderMatcherOrBuilder |
getHeadersOrBuilder(int index)
Specifies a set of headers that the route should match on.
|
List<? extends HeaderMatcherOrBuilder> |
getHeadersOrBuilderList()
Specifies a set of headers that the route should match on.
|
boolean |
getInvert()
Inverts whatever matching is done in the :ref:`method_name
<envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or
:ref:`service_name
<envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields.
|
RouteMatch.MatchSpecifierCase |
getMatchSpecifierCase() |
String |
getMethodName()
If specified, the route must exactly match the request method name.
|
com.google.protobuf.ByteString |
getMethodNameBytes()
If specified, the route must exactly match the request method name.
|
String |
getServiceName()
If specified, the route must have the service name as the request method name prefix.
|
com.google.protobuf.ByteString |
getServiceNameBytes()
If specified, the route must have the service name as the request method name prefix.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouteMatch.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteMatch.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteMatch.Builder |
mergeFrom(RouteMatch other) |
RouteMatch.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteMatch.Builder |
removeHeaders(int index)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteMatch.Builder |
setHeaders(int index,
HeaderMatcher.Builder builderForValue)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
setHeaders(int index,
HeaderMatcher value)
Specifies a set of headers that the route should match on.
|
RouteMatch.Builder |
setInvert(boolean value)
Inverts whatever matching is done in the :ref:`method_name
<envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or
:ref:`service_name
<envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields.
|
RouteMatch.Builder |
setMethodName(String value)
If specified, the route must exactly match the request method name.
|
RouteMatch.Builder |
setMethodNameBytes(com.google.protobuf.ByteString value)
If specified, the route must exactly match the request method name.
|
RouteMatch.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteMatch.Builder |
setServiceName(String value)
If specified, the route must have the service name as the request method name prefix.
|
RouteMatch.Builder |
setServiceNameBytes(com.google.protobuf.ByteString value)
If specified, the route must have the service name as the request method name prefix.
|
RouteMatch.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<RouteMatch.Builder>public RouteMatch.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.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<RouteMatch.Builder>public RouteMatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteMatch build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteMatch buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteMatch.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>public RouteMatch.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<RouteMatch.Builder>public RouteMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>public RouteMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>public RouteMatch.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<RouteMatch.Builder>public RouteMatch.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<RouteMatch.Builder>public RouteMatch.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteMatch.Builder>public RouteMatch.Builder mergeFrom(RouteMatch other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>public RouteMatch.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<RouteMatch.Builder>IOExceptionpublic RouteMatch.MatchSpecifierCase getMatchSpecifierCase()
getMatchSpecifierCase in interface RouteMatchOrBuilderpublic RouteMatch.Builder clearMatchSpecifier()
public String getMethodName()
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;getMethodName in interface RouteMatchOrBuilderpublic com.google.protobuf.ByteString getMethodNameBytes()
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;getMethodNameBytes in interface RouteMatchOrBuilderpublic RouteMatch.Builder setMethodName(String value)
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;public RouteMatch.Builder clearMethodName()
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;public RouteMatch.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
If specified, the route must exactly match the request method name. As a special case, an empty string matches any request method name.
string method_name = 1;public String getServiceName()
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;getServiceName in interface RouteMatchOrBuilderpublic com.google.protobuf.ByteString getServiceNameBytes()
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;getServiceNameBytes in interface RouteMatchOrBuilderpublic RouteMatch.Builder setServiceName(String value)
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;public RouteMatch.Builder clearServiceName()
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;public RouteMatch.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
If specified, the route must have the service name as the request method name prefix. As a special case, an empty string matches any service name. Only relevant when service multiplexing.
string service_name = 2;public boolean getInvert()
Inverts whatever matching is done in the :ref:`method_name <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields. Cannot be combined with wildcard matching as that would result in routes never being matched. .. note:: This does not invert matching done as part of the :ref:`headers field <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.headers>` field. To invert header matching, see :ref:`invert_match <envoy_api_field_config.route.v3.HeaderMatcher.invert_match>`.
bool invert = 3;getInvert in interface RouteMatchOrBuilderpublic RouteMatch.Builder setInvert(boolean value)
Inverts whatever matching is done in the :ref:`method_name <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields. Cannot be combined with wildcard matching as that would result in routes never being matched. .. note:: This does not invert matching done as part of the :ref:`headers field <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.headers>` field. To invert header matching, see :ref:`invert_match <envoy_api_field_config.route.v3.HeaderMatcher.invert_match>`.
bool invert = 3;public RouteMatch.Builder clearInvert()
Inverts whatever matching is done in the :ref:`method_name <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields. Cannot be combined with wildcard matching as that would result in routes never being matched. .. note:: This does not invert matching done as part of the :ref:`headers field <envoy_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.headers>` field. To invert header matching, see :ref:`invert_match <envoy_api_field_config.route.v3.HeaderMatcher.invert_match>`.
bool invert = 3;public List<HeaderMatcher> getHeadersList()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;getHeadersList in interface RouteMatchOrBuilderpublic int getHeadersCount()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;getHeadersCount in interface RouteMatchOrBuilderpublic HeaderMatcher getHeaders(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;getHeaders in interface RouteMatchOrBuilderpublic RouteMatch.Builder setHeaders(int index, HeaderMatcher value)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder setHeaders(int index, HeaderMatcher.Builder builderForValue)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder addHeaders(HeaderMatcher value)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder addHeaders(int index, HeaderMatcher value)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder addHeaders(HeaderMatcher.Builder builderForValue)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder addHeaders(int index, HeaderMatcher.Builder builderForValue)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder addAllHeaders(Iterable<? extends HeaderMatcher> values)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder clearHeaders()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public RouteMatch.Builder removeHeaders(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public HeaderMatcher.Builder getHeadersBuilder(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public HeaderMatcherOrBuilder getHeadersOrBuilder(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;getHeadersOrBuilder in interface RouteMatchOrBuilderpublic List<? extends HeaderMatcherOrBuilder> getHeadersOrBuilderList()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;getHeadersOrBuilderList in interface RouteMatchOrBuilderpublic HeaderMatcher.Builder addHeadersBuilder()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public HeaderMatcher.Builder addHeadersBuilder(int index)
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public List<HeaderMatcher.Builder> getHeadersBuilderList()
Specifies a set of headers that the route should match on. The router will check the request’s headers against all the specified headers in the route config. A match will happen if all the headers in the route are present in the request with the same values (or based on presence if the value field is not in the config). Note that this only applies for Thrift transports and/or protocols that support headers.
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;public final RouteMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>public final RouteMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.