Class FilterChainMatch
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.listener.v3.FilterChainMatch
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FilterChainMatchOrBuilder,Serializable
public final class FilterChainMatch extends com.google.protobuf.GeneratedMessageV3 implements FilterChainMatchOrBuilder
Specifies the match criteria for selecting a specific filter chain for a listener. In order for a filter chain to be selected, *ALL* of its criteria must be fulfilled by the incoming connection, properties of which are set by the networking stack and/or listener filters. The following order applies: 1. Destination port. 2. Destination IP address. 3. Server name (e.g. SNI for TLS protocol), 4. Transport protocol. 5. Application protocols (e.g. ALPN for TLS protocol). 6. Directly connected source IP address (this will only be different from the source IP address when using a listener filter that overrides the source address, such as the :ref:`Proxy Protocol listener filter <config_listener_filters_proxy_protocol>`). 7. Source type (e.g. any, local or external network). 8. Source IP address. 9. Source port. For criteria that allow ranges or wildcards, the most specific value in any of the configured filter chains that matches the incoming connection is going to be used (e.g. for SNI ``www.example.com`` the most specific match would be ``www.example.com``, then ``*.example.com``, then ``*.com``, then any filter chain without ``server_names`` requirements). A different way to reason about the filter chain matches: Suppose there exists N filter chains. Prune the filter chain set using the above 8 steps. In each step, filter chains which most specifically matches the attributes continue to the next step. The listener guarantees at most 1 filter chain is left after all of the steps. Example: For destination port, filter chains specifying the destination port of incoming traffic are the most specific match. If none of the filter chains specifies the exact destination port, the filter chains which do not specify ports are the most specific match. Filter chains specifying the wrong port can never be the most specific match. [#comment: Implemented rules are kept in the preference order, with deprecated fields listed at the end, because that's how we want to list them in the docs. [#comment:TODO(PiotrSikora): Add support for configurable precedence of the rules] [#next-free-field: 14]Protobuf typeenvoy.config.listener.v3.FilterChainMatch- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilterChainMatch.BuilderSpecifies the match criteria for selecting a specific filter chain for a listener.static classFilterChainMatch.ConnectionSourceTypeProtobuf enumenvoy.config.listener.v3.FilterChainMatch.ConnectionSourceType-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intADDRESS_SUFFIX_FIELD_NUMBERstatic intAPPLICATION_PROTOCOLS_FIELD_NUMBERstatic intDESTINATION_PORT_FIELD_NUMBERstatic intDIRECT_SOURCE_PREFIX_RANGES_FIELD_NUMBERstatic intPREFIX_RANGES_FIELD_NUMBERstatic intSERVER_NAMES_FIELD_NUMBERstatic intSOURCE_PORTS_FIELD_NUMBERstatic intSOURCE_PREFIX_RANGES_FIELD_NUMBERstatic intSOURCE_TYPE_FIELD_NUMBERstatic intSUFFIX_LEN_FIELD_NUMBERstatic intTRANSPORT_PROTOCOL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAddressSuffix()If non-empty, an IP address and suffix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.com.google.protobuf.ByteStringgetAddressSuffixBytes()If non-empty, an IP address and suffix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.StringgetApplicationProtocols(int index)If non-empty, a list of application protocols (e.g.com.google.protobuf.ByteStringgetApplicationProtocolsBytes(int index)If non-empty, a list of application protocols (e.g.intgetApplicationProtocolsCount()If non-empty, a list of application protocols (e.g.com.google.protobuf.ProtocolStringListgetApplicationProtocolsList()If non-empty, a list of application protocols (e.g.static FilterChainMatchgetDefaultInstance()FilterChainMatchgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.UInt32ValuegetDestinationPort()Optional destination port to consider when use_original_dst is set on the listener in determining a filter chain match.com.google.protobuf.UInt32ValueOrBuildergetDestinationPortOrBuilder()Optional destination port to consider when use_original_dst is set on the listener in determining a filter chain match.CidrRangegetDirectSourcePrefixRanges(int index)The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets.intgetDirectSourcePrefixRangesCount()The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets.List<CidrRange>getDirectSourcePrefixRangesList()The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets.CidrRangeOrBuildergetDirectSourcePrefixRangesOrBuilder(int index)The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets.List<? extends CidrRangeOrBuilder>getDirectSourcePrefixRangesOrBuilderList()The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets.com.google.protobuf.Parser<FilterChainMatch>getParserForType()CidrRangegetPrefixRanges(int index)If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.intgetPrefixRangesCount()If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.List<CidrRange>getPrefixRangesList()If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.CidrRangeOrBuildergetPrefixRangesOrBuilder(int index)If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.List<? extends CidrRangeOrBuilder>getPrefixRangesOrBuilderList()If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.intgetSerializedSize()StringgetServerNames(int index)If non-empty, a list of server names (e.g.com.google.protobuf.ByteStringgetServerNamesBytes(int index)If non-empty, a list of server names (e.g.intgetServerNamesCount()If non-empty, a list of server names (e.g.com.google.protobuf.ProtocolStringListgetServerNamesList()If non-empty, a list of server names (e.g.intgetSourcePorts(int index)The criteria is satisfied if the source port of the downstream connection is contained in at least one of the specified ports.intgetSourcePortsCount()The criteria is satisfied if the source port of the downstream connection is contained in at least one of the specified ports.List<Integer>getSourcePortsList()The criteria is satisfied if the source port of the downstream connection is contained in at least one of the specified ports.CidrRangegetSourcePrefixRanges(int index)The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets.intgetSourcePrefixRangesCount()The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets.List<CidrRange>getSourcePrefixRangesList()The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets.CidrRangeOrBuildergetSourcePrefixRangesOrBuilder(int index)The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets.List<? extends CidrRangeOrBuilder>getSourcePrefixRangesOrBuilderList()The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets.FilterChainMatch.ConnectionSourceTypegetSourceType()Specifies the connection source IP match type.intgetSourceTypeValue()Specifies the connection source IP match type.com.google.protobuf.UInt32ValuegetSuffixLen()[#not-implemented-hide:]com.google.protobuf.UInt32ValueOrBuildergetSuffixLenOrBuilder()[#not-implemented-hide:]StringgetTransportProtocol()If non-empty, a transport protocol to consider when determining a filter chain match.com.google.protobuf.ByteStringgetTransportProtocolBytes()If non-empty, a transport protocol to consider when determining a filter chain match.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasDestinationPort()Optional destination port to consider when use_original_dst is set on the listener in determining a filter chain match.inthashCode()booleanhasSuffixLen()[#not-implemented-hide:]protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FilterChainMatch.BuildernewBuilder()static FilterChainMatch.BuildernewBuilder(FilterChainMatch prototype)FilterChainMatch.BuildernewBuilderForType()protected FilterChainMatch.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FilterChainMatchparseDelimitedFrom(InputStream input)static FilterChainMatchparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterChainMatchparseFrom(byte[] data)static FilterChainMatchparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterChainMatchparseFrom(com.google.protobuf.ByteString data)static FilterChainMatchparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterChainMatchparseFrom(com.google.protobuf.CodedInputStream input)static FilterChainMatchparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterChainMatchparseFrom(InputStream input)static FilterChainMatchparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FilterChainMatchparseFrom(ByteBuffer data)static FilterChainMatchparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FilterChainMatch>parser()FilterChainMatch.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DESTINATION_PORT_FIELD_NUMBER
public static final int DESTINATION_PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREFIX_RANGES_FIELD_NUMBER
public static final int PREFIX_RANGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDRESS_SUFFIX_FIELD_NUMBER
public static final int ADDRESS_SUFFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUFFIX_LEN_FIELD_NUMBER
public static final int SUFFIX_LEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIRECT_SOURCE_PREFIX_RANGES_FIELD_NUMBER
public static final int DIRECT_SOURCE_PREFIX_RANGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_TYPE_FIELD_NUMBER
public static final int SOURCE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_PREFIX_RANGES_FIELD_NUMBER
public static final int SOURCE_PREFIX_RANGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_PORTS_FIELD_NUMBER
public static final int SOURCE_PORTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVER_NAMES_FIELD_NUMBER
public static final int SERVER_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSPORT_PROTOCOL_FIELD_NUMBER
public static final int TRANSPORT_PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APPLICATION_PROTOCOLS_FIELD_NUMBER
public static final int APPLICATION_PROTOCOLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasDestinationPort
public boolean hasDestinationPort()
Optional destination port to consider when use_original_dst is set on the listener in determining a filter chain match.
.google.protobuf.UInt32Value destination_port = 8 [(.validate.rules) = { ... }- Specified by:
hasDestinationPortin interfaceFilterChainMatchOrBuilder- Returns:
- Whether the destinationPort field is set.
-
getDestinationPort
public com.google.protobuf.UInt32Value getDestinationPort()
Optional destination port to consider when use_original_dst is set on the listener in determining a filter chain match.
.google.protobuf.UInt32Value destination_port = 8 [(.validate.rules) = { ... }- Specified by:
getDestinationPortin interfaceFilterChainMatchOrBuilder- Returns:
- The destinationPort.
-
getDestinationPortOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getDestinationPortOrBuilder()
Optional destination port to consider when use_original_dst is set on the listener in determining a filter chain match.
.google.protobuf.UInt32Value destination_port = 8 [(.validate.rules) = { ... }- Specified by:
getDestinationPortOrBuilderin interfaceFilterChainMatchOrBuilder
-
getPrefixRangesList
public List<CidrRange> getPrefixRangesList()
If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
repeated .envoy.config.core.v3.CidrRange prefix_ranges = 3;- Specified by:
getPrefixRangesListin interfaceFilterChainMatchOrBuilder
-
getPrefixRangesOrBuilderList
public List<? extends CidrRangeOrBuilder> getPrefixRangesOrBuilderList()
If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
repeated .envoy.config.core.v3.CidrRange prefix_ranges = 3;- Specified by:
getPrefixRangesOrBuilderListin interfaceFilterChainMatchOrBuilder
-
getPrefixRangesCount
public int getPrefixRangesCount()
If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
repeated .envoy.config.core.v3.CidrRange prefix_ranges = 3;- Specified by:
getPrefixRangesCountin interfaceFilterChainMatchOrBuilder
-
getPrefixRanges
public CidrRange getPrefixRanges(int index)
If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
repeated .envoy.config.core.v3.CidrRange prefix_ranges = 3;- Specified by:
getPrefixRangesin interfaceFilterChainMatchOrBuilder
-
getPrefixRangesOrBuilder
public CidrRangeOrBuilder getPrefixRangesOrBuilder(int index)
If non-empty, an IP address and prefix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
repeated .envoy.config.core.v3.CidrRange prefix_ranges = 3;- Specified by:
getPrefixRangesOrBuilderin interfaceFilterChainMatchOrBuilder
-
getAddressSuffix
public String getAddressSuffix()
If non-empty, an IP address and suffix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified. [#not-implemented-hide:]
string address_suffix = 4;- Specified by:
getAddressSuffixin interfaceFilterChainMatchOrBuilder- Returns:
- The addressSuffix.
-
getAddressSuffixBytes
public com.google.protobuf.ByteString getAddressSuffixBytes()
If non-empty, an IP address and suffix length to match addresses when the listener is bound to 0.0.0.0/:: or when use_original_dst is specified. [#not-implemented-hide:]
string address_suffix = 4;- Specified by:
getAddressSuffixBytesin interfaceFilterChainMatchOrBuilder- Returns:
- The bytes for addressSuffix.
-
hasSuffixLen
public boolean hasSuffixLen()
[#not-implemented-hide:]
.google.protobuf.UInt32Value suffix_len = 5;- Specified by:
hasSuffixLenin interfaceFilterChainMatchOrBuilder- Returns:
- Whether the suffixLen field is set.
-
getSuffixLen
public com.google.protobuf.UInt32Value getSuffixLen()
[#not-implemented-hide:]
.google.protobuf.UInt32Value suffix_len = 5;- Specified by:
getSuffixLenin interfaceFilterChainMatchOrBuilder- Returns:
- The suffixLen.
-
getSuffixLenOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getSuffixLenOrBuilder()
[#not-implemented-hide:]
.google.protobuf.UInt32Value suffix_len = 5;- Specified by:
getSuffixLenOrBuilderin interfaceFilterChainMatchOrBuilder
-
getDirectSourcePrefixRangesList
public List<CidrRange> getDirectSourcePrefixRangesList()
The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the directly connected source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange direct_source_prefix_ranges = 13;- Specified by:
getDirectSourcePrefixRangesListin interfaceFilterChainMatchOrBuilder
-
getDirectSourcePrefixRangesOrBuilderList
public List<? extends CidrRangeOrBuilder> getDirectSourcePrefixRangesOrBuilderList()
The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the directly connected source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange direct_source_prefix_ranges = 13;- Specified by:
getDirectSourcePrefixRangesOrBuilderListin interfaceFilterChainMatchOrBuilder
-
getDirectSourcePrefixRangesCount
public int getDirectSourcePrefixRangesCount()
The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the directly connected source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange direct_source_prefix_ranges = 13;- Specified by:
getDirectSourcePrefixRangesCountin interfaceFilterChainMatchOrBuilder
-
getDirectSourcePrefixRanges
public CidrRange getDirectSourcePrefixRanges(int index)
The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the directly connected source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange direct_source_prefix_ranges = 13;- Specified by:
getDirectSourcePrefixRangesin interfaceFilterChainMatchOrBuilder
-
getDirectSourcePrefixRangesOrBuilder
public CidrRangeOrBuilder getDirectSourcePrefixRangesOrBuilder(int index)
The criteria is satisfied if the directly connected source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the directly connected source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange direct_source_prefix_ranges = 13;- Specified by:
getDirectSourcePrefixRangesOrBuilderin interfaceFilterChainMatchOrBuilder
-
getSourceTypeValue
public int getSourceTypeValue()
Specifies the connection source IP match type. Can be any, local or external network.
.envoy.config.listener.v3.FilterChainMatch.ConnectionSourceType source_type = 12 [(.validate.rules) = { ... }- Specified by:
getSourceTypeValuein interfaceFilterChainMatchOrBuilder- Returns:
- The enum numeric value on the wire for sourceType.
-
getSourceType
public FilterChainMatch.ConnectionSourceType getSourceType()
Specifies the connection source IP match type. Can be any, local or external network.
.envoy.config.listener.v3.FilterChainMatch.ConnectionSourceType source_type = 12 [(.validate.rules) = { ... }- Specified by:
getSourceTypein interfaceFilterChainMatchOrBuilder- Returns:
- The sourceType.
-
getSourcePrefixRangesList
public List<CidrRange> getSourcePrefixRangesList()
The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange source_prefix_ranges = 6;- Specified by:
getSourcePrefixRangesListin interfaceFilterChainMatchOrBuilder
-
getSourcePrefixRangesOrBuilderList
public List<? extends CidrRangeOrBuilder> getSourcePrefixRangesOrBuilderList()
The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange source_prefix_ranges = 6;- Specified by:
getSourcePrefixRangesOrBuilderListin interfaceFilterChainMatchOrBuilder
-
getSourcePrefixRangesCount
public int getSourcePrefixRangesCount()
The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange source_prefix_ranges = 6;- Specified by:
getSourcePrefixRangesCountin interfaceFilterChainMatchOrBuilder
-
getSourcePrefixRanges
public CidrRange getSourcePrefixRanges(int index)
The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange source_prefix_ranges = 6;- Specified by:
getSourcePrefixRangesin interfaceFilterChainMatchOrBuilder
-
getSourcePrefixRangesOrBuilder
public CidrRangeOrBuilder getSourcePrefixRangesOrBuilder(int index)
The criteria is satisfied if the source IP address of the downstream connection is contained in at least one of the specified subnets. If the parameter is not specified or the list is empty, the source IP address is ignored.
repeated .envoy.config.core.v3.CidrRange source_prefix_ranges = 6;- Specified by:
getSourcePrefixRangesOrBuilderin interfaceFilterChainMatchOrBuilder
-
getSourcePortsList
public List<Integer> getSourcePortsList()
The criteria is satisfied if the source port of the downstream connection is contained in at least one of the specified ports. If the parameter is not specified, the source port is ignored.
repeated uint32 source_ports = 7 [(.validate.rules) = { ... }- Specified by:
getSourcePortsListin interfaceFilterChainMatchOrBuilder- Returns:
- A list containing the sourcePorts.
-
getSourcePortsCount
public int getSourcePortsCount()
The criteria is satisfied if the source port of the downstream connection is contained in at least one of the specified ports. If the parameter is not specified, the source port is ignored.
repeated uint32 source_ports = 7 [(.validate.rules) = { ... }- Specified by:
getSourcePortsCountin interfaceFilterChainMatchOrBuilder- Returns:
- The count of sourcePorts.
-
getSourcePorts
public int getSourcePorts(int index)
The criteria is satisfied if the source port of the downstream connection is contained in at least one of the specified ports. If the parameter is not specified, the source port is ignored.
repeated uint32 source_ports = 7 [(.validate.rules) = { ... }- Specified by:
getSourcePortsin interfaceFilterChainMatchOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sourcePorts at the given index.
-
getServerNamesList
public com.google.protobuf.ProtocolStringList getServerNamesList()
If non-empty, a list of server names (e.g. SNI for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the server names of a new connection, when detected by one of the listener filters. The server name will be matched against all wildcard domains, i.e. ``www.example.com`` will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``. Note that partial wildcards are not supported, and values like ``*w.example.com`` are invalid. .. attention:: See the :ref:`FAQ entry <faq_how_to_setup_sni>` on how to configure SNI for more information.
repeated string server_names = 11;- Specified by:
getServerNamesListin interfaceFilterChainMatchOrBuilder- Returns:
- A list containing the serverNames.
-
getServerNamesCount
public int getServerNamesCount()
If non-empty, a list of server names (e.g. SNI for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the server names of a new connection, when detected by one of the listener filters. The server name will be matched against all wildcard domains, i.e. ``www.example.com`` will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``. Note that partial wildcards are not supported, and values like ``*w.example.com`` are invalid. .. attention:: See the :ref:`FAQ entry <faq_how_to_setup_sni>` on how to configure SNI for more information.
repeated string server_names = 11;- Specified by:
getServerNamesCountin interfaceFilterChainMatchOrBuilder- Returns:
- The count of serverNames.
-
getServerNames
public String getServerNames(int index)
If non-empty, a list of server names (e.g. SNI for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the server names of a new connection, when detected by one of the listener filters. The server name will be matched against all wildcard domains, i.e. ``www.example.com`` will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``. Note that partial wildcards are not supported, and values like ``*w.example.com`` are invalid. .. attention:: See the :ref:`FAQ entry <faq_how_to_setup_sni>` on how to configure SNI for more information.
repeated string server_names = 11;- Specified by:
getServerNamesin interfaceFilterChainMatchOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The serverNames at the given index.
-
getServerNamesBytes
public com.google.protobuf.ByteString getServerNamesBytes(int index)
If non-empty, a list of server names (e.g. SNI for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the server names of a new connection, when detected by one of the listener filters. The server name will be matched against all wildcard domains, i.e. ``www.example.com`` will be first matched against ``www.example.com``, then ``*.example.com``, then ``*.com``. Note that partial wildcards are not supported, and values like ``*w.example.com`` are invalid. .. attention:: See the :ref:`FAQ entry <faq_how_to_setup_sni>` on how to configure SNI for more information.
repeated string server_names = 11;- Specified by:
getServerNamesBytesin interfaceFilterChainMatchOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the serverNames at the given index.
-
getTransportProtocol
public String getTransportProtocol()
If non-empty, a transport protocol to consider when determining a filter chain match. This value will be compared against the transport protocol of a new connection, when it's detected by one of the listener filters. Suggested values include: * ``raw_buffer`` - default, used when no transport protocol is detected, * ``tls`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>` when TLS protocol is detected.
string transport_protocol = 9;- Specified by:
getTransportProtocolin interfaceFilterChainMatchOrBuilder- Returns:
- The transportProtocol.
-
getTransportProtocolBytes
public com.google.protobuf.ByteString getTransportProtocolBytes()
If non-empty, a transport protocol to consider when determining a filter chain match. This value will be compared against the transport protocol of a new connection, when it's detected by one of the listener filters. Suggested values include: * ``raw_buffer`` - default, used when no transport protocol is detected, * ``tls`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>` when TLS protocol is detected.
string transport_protocol = 9;- Specified by:
getTransportProtocolBytesin interfaceFilterChainMatchOrBuilder- Returns:
- The bytes for transportProtocol.
-
getApplicationProtocolsList
public com.google.protobuf.ProtocolStringList getApplicationProtocolsList()
If non-empty, a list of application protocols (e.g. ALPN for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the application protocols of a new connection, when detected by one of the listener filters. Suggested values include: * ``http/1.1`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>`, * ``h2`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>` .. attention:: Currently, only :ref:`TLS Inspector <config_listener_filters_tls_inspector>` provides application protocol detection based on the requested `ALPN <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_ values. However, the use of ALPN is pretty much limited to the HTTP/2 traffic on the Internet, and matching on values other than ``h2`` is going to lead to a lot of false negatives, unless all connecting clients are known to use ALPN.
repeated string application_protocols = 10;- Specified by:
getApplicationProtocolsListin interfaceFilterChainMatchOrBuilder- Returns:
- A list containing the applicationProtocols.
-
getApplicationProtocolsCount
public int getApplicationProtocolsCount()
If non-empty, a list of application protocols (e.g. ALPN for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the application protocols of a new connection, when detected by one of the listener filters. Suggested values include: * ``http/1.1`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>`, * ``h2`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>` .. attention:: Currently, only :ref:`TLS Inspector <config_listener_filters_tls_inspector>` provides application protocol detection based on the requested `ALPN <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_ values. However, the use of ALPN is pretty much limited to the HTTP/2 traffic on the Internet, and matching on values other than ``h2`` is going to lead to a lot of false negatives, unless all connecting clients are known to use ALPN.
repeated string application_protocols = 10;- Specified by:
getApplicationProtocolsCountin interfaceFilterChainMatchOrBuilder- Returns:
- The count of applicationProtocols.
-
getApplicationProtocols
public String getApplicationProtocols(int index)
If non-empty, a list of application protocols (e.g. ALPN for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the application protocols of a new connection, when detected by one of the listener filters. Suggested values include: * ``http/1.1`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>`, * ``h2`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>` .. attention:: Currently, only :ref:`TLS Inspector <config_listener_filters_tls_inspector>` provides application protocol detection based on the requested `ALPN <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_ values. However, the use of ALPN is pretty much limited to the HTTP/2 traffic on the Internet, and matching on values other than ``h2`` is going to lead to a lot of false negatives, unless all connecting clients are known to use ALPN.
repeated string application_protocols = 10;- Specified by:
getApplicationProtocolsin interfaceFilterChainMatchOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The applicationProtocols at the given index.
-
getApplicationProtocolsBytes
public com.google.protobuf.ByteString getApplicationProtocolsBytes(int index)
If non-empty, a list of application protocols (e.g. ALPN for TLS protocol) to consider when determining a filter chain match. Those values will be compared against the application protocols of a new connection, when detected by one of the listener filters. Suggested values include: * ``http/1.1`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>`, * ``h2`` - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>` .. attention:: Currently, only :ref:`TLS Inspector <config_listener_filters_tls_inspector>` provides application protocol detection based on the requested `ALPN <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_ values. However, the use of ALPN is pretty much limited to the HTTP/2 traffic on the Internet, and matching on values other than ``h2`` is going to lead to a lot of false negatives, unless all connecting clients are known to use ALPN.
repeated string application_protocols = 10;- Specified by:
getApplicationProtocolsBytesin interfaceFilterChainMatchOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the applicationProtocols at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FilterChainMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterChainMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterChainMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterChainMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterChainMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterChainMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterChainMatch parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FilterChainMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FilterChainMatch parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FilterChainMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static FilterChainMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FilterChainMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public FilterChainMatch.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FilterChainMatch.Builder newBuilder()
-
newBuilder
public static FilterChainMatch.Builder newBuilder(FilterChainMatch prototype)
-
toBuilder
public FilterChainMatch.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FilterChainMatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static FilterChainMatch getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FilterChainMatch> parser()
-
getParserForType
public com.google.protobuf.Parser<FilterChainMatch> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FilterChainMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-