Class RouteMatch.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
- io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.v3.RouteMatch.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouteMatchOrBuilder,Cloneable
- Enclosing class:
- RouteMatch
public static final class RouteMatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder> implements RouteMatchOrBuilder
Protobuf typeenvoy.extensions.filters.network.thrift_proxy.v3.RouteMatch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteMatch.BuilderaddAllHeaders(Iterable<? extends HeaderMatcher> values)Specifies a set of headers that the route should match on.RouteMatch.BuilderaddHeaders(int index, HeaderMatcher value)Specifies a set of headers that the route should match on.RouteMatch.BuilderaddHeaders(int index, HeaderMatcher.Builder builderForValue)Specifies a set of headers that the route should match on.RouteMatch.BuilderaddHeaders(HeaderMatcher value)Specifies a set of headers that the route should match on.RouteMatch.BuilderaddHeaders(HeaderMatcher.Builder builderForValue)Specifies a set of headers that the route should match on.HeaderMatcher.BuilderaddHeadersBuilder()Specifies a set of headers that the route should match on.HeaderMatcher.BuilderaddHeadersBuilder(int index)Specifies a set of headers that the route should match on.RouteMatch.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteMatchbuild()RouteMatchbuildPartial()RouteMatch.Builderclear()RouteMatch.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RouteMatch.BuilderclearHeaders()Specifies a set of headers that the route should match on.RouteMatch.BuilderclearInvert()Inverts whatever matching is done in the :ref:`method_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields.RouteMatch.BuilderclearMatchSpecifier()RouteMatch.BuilderclearMethodName()If specified, the route must exactly match the request method name.RouteMatch.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RouteMatch.BuilderclearServiceName()If specified, the route must have the service name as the request method name prefix.RouteMatch.Builderclone()RouteMatchgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()HeaderMatchergetHeaders(int index)Specifies a set of headers that the route should match on.HeaderMatcher.BuildergetHeadersBuilder(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.intgetHeadersCount()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.HeaderMatcherOrBuildergetHeadersOrBuilder(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.booleangetInvert()Inverts whatever matching is done in the :ref:`method_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields.RouteMatch.MatchSpecifierCasegetMatchSpecifierCase()StringgetMethodName()If specified, the route must exactly match the request method name.com.google.protobuf.ByteStringgetMethodNameBytes()If specified, the route must exactly match the request method name.StringgetServiceName()If specified, the route must have the service name as the request method name prefix.com.google.protobuf.ByteStringgetServiceNameBytes()If specified, the route must have the service name as the request method name prefix.booleanhasMethodName()If specified, the route must exactly match the request method name.booleanhasServiceName()If specified, the route must have the service name as the request method name prefix.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RouteMatch.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RouteMatch.BuildermergeFrom(com.google.protobuf.Message other)RouteMatch.BuildermergeFrom(RouteMatch other)RouteMatch.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RouteMatch.BuilderremoveHeaders(int index)Specifies a set of headers that the route should match on.RouteMatch.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RouteMatch.BuildersetHeaders(int index, HeaderMatcher value)Specifies a set of headers that the route should match on.RouteMatch.BuildersetHeaders(int index, HeaderMatcher.Builder builderForValue)Specifies a set of headers that the route should match on.RouteMatch.BuildersetInvert(boolean value)Inverts whatever matching is done in the :ref:`method_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.service_name>` fields.RouteMatch.BuildersetMethodName(String value)If specified, the route must exactly match the request method name.RouteMatch.BuildersetMethodNameBytes(com.google.protobuf.ByteString value)If specified, the route must exactly match the request method name.RouteMatch.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RouteMatch.BuildersetServiceName(String value)If specified, the route must have the service name as the request method name prefix.RouteMatch.BuildersetServiceNameBytes(com.google.protobuf.ByteString value)If specified, the route must have the service name as the request method name prefix.RouteMatch.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
clear
public RouteMatch.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
getDefaultInstanceForType
public RouteMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteMatch build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteMatch buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteMatch.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
setField
public RouteMatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
clearField
public RouteMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
clearOneof
public RouteMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
setRepeatedField
public RouteMatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
addRepeatedField
public RouteMatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
mergeFrom
public RouteMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteMatch.Builder>
-
mergeFrom
public RouteMatch.Builder mergeFrom(RouteMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
mergeFrom
public RouteMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteMatch.Builder>- Throws:
IOException
-
getMatchSpecifierCase
public RouteMatch.MatchSpecifierCase getMatchSpecifierCase()
- Specified by:
getMatchSpecifierCasein interfaceRouteMatchOrBuilder
-
clearMatchSpecifier
public RouteMatch.Builder clearMatchSpecifier()
-
hasMethodName
public boolean hasMethodName()
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;- Specified by:
hasMethodNamein interfaceRouteMatchOrBuilder- Returns:
- Whether the methodName field is set.
-
getMethodName
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;- Specified by:
getMethodNamein interfaceRouteMatchOrBuilder- Returns:
- The methodName.
-
getMethodNameBytes
public 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;- Specified by:
getMethodNameBytesin interfaceRouteMatchOrBuilder- Returns:
- The bytes for methodName.
-
setMethodName
public 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;- Parameters:
value- The methodName to set.- Returns:
- This builder for chaining.
-
clearMethodName
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;- Returns:
- This builder for chaining.
-
setMethodNameBytes
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;- Parameters:
value- The bytes for methodName to set.- Returns:
- This builder for chaining.
-
hasServiceName
public boolean hasServiceName()
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;- Specified by:
hasServiceNamein interfaceRouteMatchOrBuilder- Returns:
- Whether the serviceName field is set.
-
getServiceName
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;- Specified by:
getServiceNamein interfaceRouteMatchOrBuilder- Returns:
- The serviceName.
-
getServiceNameBytes
public 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;- Specified by:
getServiceNameBytesin interfaceRouteMatchOrBuilder- Returns:
- The bytes for serviceName.
-
setServiceName
public 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;- Parameters:
value- The serviceName to set.- Returns:
- This builder for chaining.
-
clearServiceName
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;- Returns:
- This builder for chaining.
-
setServiceNameBytes
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;- Parameters:
value- The bytes for serviceName to set.- Returns:
- This builder for chaining.
-
getInvert
public boolean getInvert()
Inverts whatever matching is done in the :ref:`method_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_v3_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_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.headers>` field. To invert header matching, see :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>`.
bool invert = 3;- Specified by:
getInvertin interfaceRouteMatchOrBuilder- Returns:
- The invert.
-
setInvert
public RouteMatch.Builder setInvert(boolean value)
Inverts whatever matching is done in the :ref:`method_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_v3_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_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.headers>` field. To invert header matching, see :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>`.
bool invert = 3;- Parameters:
value- The invert to set.- Returns:
- This builder for chaining.
-
clearInvert
public RouteMatch.Builder clearInvert()
Inverts whatever matching is done in the :ref:`method_name <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.method_name>` or :ref:`service_name <envoy_v3_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_v3_api_field_extensions.filters.network.thrift_proxy.v3.RouteMatch.headers>` field. To invert header matching, see :ref:`invert_match <envoy_v3_api_field_config.route.v3.HeaderMatcher.invert_match>`.
bool invert = 3;- Returns:
- This builder for chaining.
-
getHeadersList
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;- Specified by:
getHeadersListin interfaceRouteMatchOrBuilder
-
getHeadersCount
public 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;- Specified by:
getHeadersCountin interfaceRouteMatchOrBuilder
-
getHeaders
public 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;- Specified by:
getHeadersin interfaceRouteMatchOrBuilder
-
setHeaders
public 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;
-
setHeaders
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;
-
addHeaders
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;
-
addHeaders
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;
-
addHeaders
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;
-
addHeaders
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;
-
addAllHeaders
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;
-
clearHeaders
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;
-
removeHeaders
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;
-
getHeadersBuilder
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;
-
getHeadersOrBuilder
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;- Specified by:
getHeadersOrBuilderin interfaceRouteMatchOrBuilder
-
getHeadersOrBuilderList
public 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;- Specified by:
getHeadersOrBuilderListin interfaceRouteMatchOrBuilder
-
addHeadersBuilder
public 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;
-
addHeadersBuilder
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;
-
getHeadersBuilderList
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;
-
setUnknownFields
public final RouteMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
mergeUnknownFields
public final RouteMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
-
-