Class ListenerFilterChainMatchPredicate
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.listener.ListenerFilterChainMatchPredicate
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ListenerFilterChainMatchPredicateOrBuilder,Serializable
public final class ListenerFilterChainMatchPredicate extends com.google.protobuf.GeneratedMessageV3 implements ListenerFilterChainMatchPredicateOrBuilder
Listener filter chain match configuration. This is a recursive structure which allows complex nested match configurations to be built using various logical operators. Examples: * Matches if the destination port is 3306. .. code-block:: yaml destination_port_range: start: 3306 end: 3307 * Matches if the destination port is 3306 or 15000. .. code-block:: yaml or_match: rules: - destination_port_range: start: 3306 end: 3307 - destination_port_range: start: 15000 end: 15001 [#next-free-field: 6]Protobuf typeenvoy.api.v2.listener.ListenerFilterChainMatchPredicate- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListenerFilterChainMatchPredicate.BuilderListener filter chain match configuration.static classListenerFilterChainMatchPredicate.MatchSetA set of match configurations used for logical operations.static interfaceListenerFilterChainMatchPredicate.MatchSetOrBuilderstatic classListenerFilterChainMatchPredicate.RuleCase-
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 intAND_MATCH_FIELD_NUMBERstatic intANY_MATCH_FIELD_NUMBERstatic intDESTINATION_PORT_RANGE_FIELD_NUMBERstatic intNOT_MATCH_FIELD_NUMBERstatic intOR_MATCH_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ListenerFilterChainMatchPredicate.MatchSetgetAndMatch()A set that describes a logical AND.ListenerFilterChainMatchPredicate.MatchSetOrBuildergetAndMatchOrBuilder()A set that describes a logical AND.booleangetAnyMatch()The match configuration will always match.static ListenerFilterChainMatchPredicategetDefaultInstance()ListenerFilterChainMatchPredicategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Int32RangegetDestinationPortRange()Match destination port.Int32RangeOrBuildergetDestinationPortRangeOrBuilder()Match destination port.ListenerFilterChainMatchPredicategetNotMatch()A negation match.ListenerFilterChainMatchPredicateOrBuildergetNotMatchOrBuilder()A negation match.ListenerFilterChainMatchPredicate.MatchSetgetOrMatch()A set that describes a logical OR.ListenerFilterChainMatchPredicate.MatchSetOrBuildergetOrMatchOrBuilder()A set that describes a logical OR.com.google.protobuf.Parser<ListenerFilterChainMatchPredicate>getParserForType()ListenerFilterChainMatchPredicate.RuleCasegetRuleCase()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasAndMatch()A set that describes a logical AND.booleanhasAnyMatch()The match configuration will always match.booleanhasDestinationPortRange()Match destination port.inthashCode()booleanhasNotMatch()A negation match.booleanhasOrMatch()A set that describes a logical OR.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ListenerFilterChainMatchPredicate.BuildernewBuilder()static ListenerFilterChainMatchPredicate.BuildernewBuilder(ListenerFilterChainMatchPredicate prototype)ListenerFilterChainMatchPredicate.BuildernewBuilderForType()protected ListenerFilterChainMatchPredicate.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ListenerFilterChainMatchPredicateparseDelimitedFrom(InputStream input)static ListenerFilterChainMatchPredicateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListenerFilterChainMatchPredicateparseFrom(byte[] data)static ListenerFilterChainMatchPredicateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListenerFilterChainMatchPredicateparseFrom(com.google.protobuf.ByteString data)static ListenerFilterChainMatchPredicateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListenerFilterChainMatchPredicateparseFrom(com.google.protobuf.CodedInputStream input)static ListenerFilterChainMatchPredicateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListenerFilterChainMatchPredicateparseFrom(InputStream input)static ListenerFilterChainMatchPredicateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ListenerFilterChainMatchPredicateparseFrom(ByteBuffer data)static ListenerFilterChainMatchPredicateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ListenerFilterChainMatchPredicate>parser()ListenerFilterChainMatchPredicate.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
-
OR_MATCH_FIELD_NUMBER
public static final int OR_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AND_MATCH_FIELD_NUMBER
public static final int AND_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOT_MATCH_FIELD_NUMBER
public static final int NOT_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANY_MATCH_FIELD_NUMBER
public static final int ANY_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESTINATION_PORT_RANGE_FIELD_NUMBER
public static final int DESTINATION_PORT_RANGE_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
-
getRuleCase
public ListenerFilterChainMatchPredicate.RuleCase getRuleCase()
- Specified by:
getRuleCasein interfaceListenerFilterChainMatchPredicateOrBuilder
-
hasOrMatch
public boolean hasOrMatch()
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;- Specified by:
hasOrMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- Whether the orMatch field is set.
-
getOrMatch
public ListenerFilterChainMatchPredicate.MatchSet getOrMatch()
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;- Specified by:
getOrMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- The orMatch.
-
getOrMatchOrBuilder
public ListenerFilterChainMatchPredicate.MatchSetOrBuilder getOrMatchOrBuilder()
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;- Specified by:
getOrMatchOrBuilderin interfaceListenerFilterChainMatchPredicateOrBuilder
-
hasAndMatch
public boolean hasAndMatch()
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;- Specified by:
hasAndMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- Whether the andMatch field is set.
-
getAndMatch
public ListenerFilterChainMatchPredicate.MatchSet getAndMatch()
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;- Specified by:
getAndMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- The andMatch.
-
getAndMatchOrBuilder
public ListenerFilterChainMatchPredicate.MatchSetOrBuilder getAndMatchOrBuilder()
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;- Specified by:
getAndMatchOrBuilderin interfaceListenerFilterChainMatchPredicateOrBuilder
-
hasNotMatch
public boolean hasNotMatch()
A negation match. The match configuration will match if the negated match condition matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate not_match = 3;- Specified by:
hasNotMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- Whether the notMatch field is set.
-
getNotMatch
public ListenerFilterChainMatchPredicate getNotMatch()
A negation match. The match configuration will match if the negated match condition matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate not_match = 3;- Specified by:
getNotMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- The notMatch.
-
getNotMatchOrBuilder
public ListenerFilterChainMatchPredicateOrBuilder getNotMatchOrBuilder()
A negation match. The match configuration will match if the negated match condition matches.
.envoy.api.v2.listener.ListenerFilterChainMatchPredicate not_match = 3;- Specified by:
getNotMatchOrBuilderin interfaceListenerFilterChainMatchPredicateOrBuilder
-
hasAnyMatch
public boolean hasAnyMatch()
The match configuration will always match.
bool any_match = 4 [(.validate.rules) = { ... }- Specified by:
hasAnyMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- Whether the anyMatch field is set.
-
getAnyMatch
public boolean getAnyMatch()
The match configuration will always match.
bool any_match = 4 [(.validate.rules) = { ... }- Specified by:
getAnyMatchin interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- The anyMatch.
-
hasDestinationPortRange
public boolean hasDestinationPortRange()
Match destination port. Particularly, the match evaluation must use the recovered local port if the owning listener filter is after :ref:`an original_dst listener filter <config_listener_filters_original_dst>`.
.envoy.type.Int32Range destination_port_range = 5;- Specified by:
hasDestinationPortRangein interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- Whether the destinationPortRange field is set.
-
getDestinationPortRange
public Int32Range getDestinationPortRange()
Match destination port. Particularly, the match evaluation must use the recovered local port if the owning listener filter is after :ref:`an original_dst listener filter <config_listener_filters_original_dst>`.
.envoy.type.Int32Range destination_port_range = 5;- Specified by:
getDestinationPortRangein interfaceListenerFilterChainMatchPredicateOrBuilder- Returns:
- The destinationPortRange.
-
getDestinationPortRangeOrBuilder
public Int32RangeOrBuilder getDestinationPortRangeOrBuilder()
Match destination port. Particularly, the match evaluation must use the recovered local port if the owning listener filter is after :ref:`an original_dst listener filter <config_listener_filters_original_dst>`.
.envoy.type.Int32Range destination_port_range = 5;- Specified by:
getDestinationPortRangeOrBuilderin interfaceListenerFilterChainMatchPredicateOrBuilder
-
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 ListenerFilterChainMatchPredicate parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ListenerFilterChainMatchPredicate parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ListenerFilterChainMatchPredicate parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ListenerFilterChainMatchPredicate parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ListenerFilterChainMatchPredicate.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ListenerFilterChainMatchPredicate.Builder newBuilder()
-
newBuilder
public static ListenerFilterChainMatchPredicate.Builder newBuilder(ListenerFilterChainMatchPredicate prototype)
-
toBuilder
public ListenerFilterChainMatchPredicate.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ListenerFilterChainMatchPredicate.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ListenerFilterChainMatchPredicate getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ListenerFilterChainMatchPredicate> parser()
-
getParserForType
public com.google.protobuf.Parser<ListenerFilterChainMatchPredicate> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ListenerFilterChainMatchPredicate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-