Class ListenerFilterChainMatchPredicate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
com.google.protobuf.GeneratedMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
io.envoyproxy.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ListenerFilterChainMatchPredicateOrBuilder
,Cloneable
- Enclosing class:
ListenerFilterChainMatchPredicate
public static final class ListenerFilterChainMatchPredicate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
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 type
envoy.config.listener.v3.ListenerFilterChainMatchPredicate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.SingleFieldBuilder
<ListenerFilterChainMatchPredicate.MatchSet, ListenerFilterChainMatchPredicate.MatchSet.Builder, ListenerFilterChainMatchPredicate.MatchSetOrBuilder> private int
private com.google.protobuf.SingleFieldBuilder
<Int32Range, Int32Range.Builder, Int32RangeOrBuilder> private com.google.protobuf.SingleFieldBuilder
<ListenerFilterChainMatchPredicate, ListenerFilterChainMatchPredicate.Builder, ListenerFilterChainMatchPredicateOrBuilder> private com.google.protobuf.SingleFieldBuilder
<ListenerFilterChainMatchPredicate.MatchSet, ListenerFilterChainMatchPredicate.MatchSet.Builder, ListenerFilterChainMatchPredicate.MatchSetOrBuilder> private Object
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
private void
clear()
A set that describes a logical AND.The match configuration will always match.Match destination port.A negation match.A set that describes a logical OR.A set that describes a logical AND.A set that describes a logical AND.A set that describes a logical AND.boolean
The match configuration will always match.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Match destination port.Match destination port.Match destination port.A negation match.A negation match.A negation match.A set that describes a logical OR.A set that describes a logical OR.A set that describes a logical OR.boolean
A set that describes a logical AND.boolean
The match configuration will always match.boolean
Match destination port.boolean
A negation match.boolean
A set that describes a logical OR.private com.google.protobuf.SingleFieldBuilder
<ListenerFilterChainMatchPredicate.MatchSet, ListenerFilterChainMatchPredicate.MatchSet.Builder, ListenerFilterChainMatchPredicate.MatchSetOrBuilder> A set that describes a logical AND.private com.google.protobuf.SingleFieldBuilder
<Int32Range, Int32Range.Builder, Int32RangeOrBuilder> Match destination port.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<ListenerFilterChainMatchPredicate, ListenerFilterChainMatchPredicate.Builder, ListenerFilterChainMatchPredicateOrBuilder> A negation match.private com.google.protobuf.SingleFieldBuilder
<ListenerFilterChainMatchPredicate.MatchSet, ListenerFilterChainMatchPredicate.MatchSet.Builder, ListenerFilterChainMatchPredicate.MatchSetOrBuilder> A set that describes a logical OR.final boolean
A set that describes a logical AND.Match destination port.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) A negation match.A set that describes a logical OR.A set that describes a logical AND.setAndMatch
(ListenerFilterChainMatchPredicate.MatchSet.Builder builderForValue) A set that describes a logical AND.setAnyMatch
(boolean value) The match configuration will always match.Match destination port.setDestinationPortRange
(Int32Range.Builder builderForValue) Match destination port.A negation match.setNotMatch
(ListenerFilterChainMatchPredicate.Builder builderForValue) A negation match.A set that describes a logical OR.setOrMatch
(ListenerFilterChainMatchPredicate.MatchSet.Builder builderForValue) A set that describes a logical OR.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ruleCase_
private int ruleCase_ -
rule_
-
bitField0_
private int bitField0_ -
orMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<ListenerFilterChainMatchPredicate.MatchSet,ListenerFilterChainMatchPredicate.MatchSet.Builder, orMatchBuilder_ListenerFilterChainMatchPredicate.MatchSetOrBuilder> -
andMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<ListenerFilterChainMatchPredicate.MatchSet,ListenerFilterChainMatchPredicate.MatchSet.Builder, andMatchBuilder_ListenerFilterChainMatchPredicate.MatchSetOrBuilder> -
notMatchBuilder_
private com.google.protobuf.SingleFieldBuilder<ListenerFilterChainMatchPredicate,ListenerFilterChainMatchPredicate.Builder, notMatchBuilder_ListenerFilterChainMatchPredicateOrBuilder> -
destinationPortRangeBuilder_
private com.google.protobuf.SingleFieldBuilder<Int32Range,Int32Range.Builder, destinationPortRangeBuilder_Int32RangeOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
-
mergeFrom
public ListenerFilterChainMatchPredicate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListenerFilterChainMatchPredicate.Builder>
- Throws:
IOException
-
getRuleCase
- Specified by:
getRuleCase
in interfaceListenerFilterChainMatchPredicateOrBuilder
-
clearRule
-
hasOrMatch
public boolean hasOrMatch()A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
- Specified by:
hasOrMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- Whether the orMatch field is set.
-
getOrMatch
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
- Specified by:
getOrMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- The orMatch.
-
setOrMatch
public ListenerFilterChainMatchPredicate.Builder setOrMatch(ListenerFilterChainMatchPredicate.MatchSet value) A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
-
setOrMatch
public ListenerFilterChainMatchPredicate.Builder setOrMatch(ListenerFilterChainMatchPredicate.MatchSet.Builder builderForValue) A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
-
mergeOrMatch
public ListenerFilterChainMatchPredicate.Builder mergeOrMatch(ListenerFilterChainMatchPredicate.MatchSet value) A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
-
clearOrMatch
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
-
getOrMatchBuilder
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
-
getOrMatchOrBuilder
A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
- Specified by:
getOrMatchOrBuilder
in interfaceListenerFilterChainMatchPredicateOrBuilder
-
internalGetOrMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ListenerFilterChainMatchPredicate.MatchSet,ListenerFilterChainMatchPredicate.MatchSet.Builder, internalGetOrMatchFieldBuilder()ListenerFilterChainMatchPredicate.MatchSetOrBuilder> A set that describes a logical OR. If any member of the set matches, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet or_match = 1;
-
hasAndMatch
public boolean hasAndMatch()A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
- Specified by:
hasAndMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- Whether the andMatch field is set.
-
getAndMatch
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
- Specified by:
getAndMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- The andMatch.
-
setAndMatch
public ListenerFilterChainMatchPredicate.Builder setAndMatch(ListenerFilterChainMatchPredicate.MatchSet value) A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
-
setAndMatch
public ListenerFilterChainMatchPredicate.Builder setAndMatch(ListenerFilterChainMatchPredicate.MatchSet.Builder builderForValue) A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
-
mergeAndMatch
public ListenerFilterChainMatchPredicate.Builder mergeAndMatch(ListenerFilterChainMatchPredicate.MatchSet value) A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
-
clearAndMatch
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
-
getAndMatchBuilder
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
-
getAndMatchOrBuilder
A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
- Specified by:
getAndMatchOrBuilder
in interfaceListenerFilterChainMatchPredicateOrBuilder
-
internalGetAndMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ListenerFilterChainMatchPredicate.MatchSet,ListenerFilterChainMatchPredicate.MatchSet.Builder, internalGetAndMatchFieldBuilder()ListenerFilterChainMatchPredicate.MatchSetOrBuilder> A set that describes a logical AND. If all members of the set match, the match configuration matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate.MatchSet and_match = 2;
-
hasNotMatch
public boolean hasNotMatch()A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
- Specified by:
hasNotMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- Whether the notMatch field is set.
-
getNotMatch
A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
- Specified by:
getNotMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- The notMatch.
-
setNotMatch
public ListenerFilterChainMatchPredicate.Builder setNotMatch(ListenerFilterChainMatchPredicate value) A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
-
setNotMatch
public ListenerFilterChainMatchPredicate.Builder setNotMatch(ListenerFilterChainMatchPredicate.Builder builderForValue) A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
-
mergeNotMatch
public ListenerFilterChainMatchPredicate.Builder mergeNotMatch(ListenerFilterChainMatchPredicate value) A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
-
clearNotMatch
A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
-
getNotMatchBuilder
A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
-
getNotMatchOrBuilder
A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
- Specified by:
getNotMatchOrBuilder
in interfaceListenerFilterChainMatchPredicateOrBuilder
-
internalGetNotMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<ListenerFilterChainMatchPredicate,ListenerFilterChainMatchPredicate.Builder, internalGetNotMatchFieldBuilder()ListenerFilterChainMatchPredicateOrBuilder> A negation match. The match configuration will match if the negated match condition matches.
.envoy.config.listener.v3.ListenerFilterChainMatchPredicate not_match = 3;
-
hasAnyMatch
public boolean hasAnyMatch()The match configuration will always match.
bool any_match = 4 [(.validate.rules) = { ... }
- Specified by:
hasAnyMatch
in 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:
getAnyMatch
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- The anyMatch.
-
setAnyMatch
The match configuration will always match.
bool any_match = 4 [(.validate.rules) = { ... }
- Parameters:
value
- The anyMatch to set.- Returns:
- This builder for chaining.
-
clearAnyMatch
The match configuration will always match.
bool any_match = 4 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
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.v3.Int32Range destination_port_range = 5;
- Specified by:
hasDestinationPortRange
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- Whether the destinationPortRange field is set.
-
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.v3.Int32Range destination_port_range = 5;
- Specified by:
getDestinationPortRange
in interfaceListenerFilterChainMatchPredicateOrBuilder
- Returns:
- The destinationPortRange.
-
setDestinationPortRange
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.v3.Int32Range destination_port_range = 5;
-
setDestinationPortRange
public ListenerFilterChainMatchPredicate.Builder setDestinationPortRange(Int32Range.Builder builderForValue) 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.v3.Int32Range destination_port_range = 5;
-
mergeDestinationPortRange
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.v3.Int32Range destination_port_range = 5;
-
clearDestinationPortRange
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.v3.Int32Range destination_port_range = 5;
-
getDestinationPortRangeBuilder
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.v3.Int32Range destination_port_range = 5;
-
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.v3.Int32Range destination_port_range = 5;
- Specified by:
getDestinationPortRangeOrBuilder
in interfaceListenerFilterChainMatchPredicateOrBuilder
-
internalGetDestinationPortRangeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Int32Range,Int32Range.Builder, internalGetDestinationPortRangeFieldBuilder()Int32RangeOrBuilder> 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.v3.Int32Range destination_port_range = 5;
-