Package com.github.xds.type.matcher.v3
Class IPMatcher.IPRangeMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
com.github.xds.type.matcher.v3.IPMatcher.IPRangeMatcher.Builder
- All Implemented Interfaces:
IPMatcher.IPRangeMatcherOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IPMatcher.IPRangeMatcher
public static final class IPMatcher.IPRangeMatcher.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
implements IPMatcher.IPRangeMatcherOrBuilder
Specifies a list of IP address ranges and a match action.Protobuf type
xds.type.matcher.v3.IPMatcher.IPRangeMatcher-
Method Summary
Modifier and TypeMethodDescriptionaddAllRanges(Iterable<? extends CidrRange> values) A non-empty set of CIDR ranges.A non-empty set of CIDR ranges.addRanges(int index, CidrRange.Builder builderForValue) A non-empty set of CIDR ranges.A non-empty set of CIDR ranges.addRanges(CidrRange.Builder builderForValue) A non-empty set of CIDR ranges.A non-empty set of CIDR ranges.addRangesBuilder(int index) A non-empty set of CIDR ranges.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Indicates whether this match option should be considered if there is a more specific matcher.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Match action to apply when the IP address is within one of the CIDR ranges.A non-empty set of CIDR ranges.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates whether this match option should be considered if there is a more specific matcher.Match action to apply when the IP address is within one of the CIDR ranges.Match action to apply when the IP address is within one of the CIDR ranges.Match action to apply when the IP address is within one of the CIDR ranges.getRanges(int index) A non-empty set of CIDR ranges.getRangesBuilder(int index) A non-empty set of CIDR ranges.A non-empty set of CIDR ranges.intA non-empty set of CIDR ranges.A non-empty set of CIDR ranges.getRangesOrBuilder(int index) A non-empty set of CIDR ranges.List<? extends CidrRangeOrBuilder>A non-empty set of CIDR ranges.booleanMatch action to apply when the IP address is within one of the CIDR ranges.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeOnMatch(Matcher.OnMatch value) Match action to apply when the IP address is within one of the CIDR ranges.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeRanges(int index) A non-empty set of CIDR ranges.setExclusive(boolean value) Indicates whether this match option should be considered if there is a more specific matcher.setOnMatch(Matcher.OnMatch value) Match action to apply when the IP address is within one of the CIDR ranges.setOnMatch(Matcher.OnMatch.Builder builderForValue) Match action to apply when the IP address is within one of the CIDR ranges.A non-empty set of CIDR ranges.setRanges(int index, CidrRange.Builder builderForValue) A non-empty set of CIDR ranges.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<IPMatcher.IPRangeMatcher.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<IPMatcher.IPRangeMatcher.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<IPMatcher.IPRangeMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<IPMatcher.IPRangeMatcher.Builder>
-
setField
public IPMatcher.IPRangeMatcher.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<IPMatcher.IPRangeMatcher.Builder>
-
clearField
public IPMatcher.IPRangeMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
-
clearOneof
public IPMatcher.IPRangeMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
-
setRepeatedField
public IPMatcher.IPRangeMatcher.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<IPMatcher.IPRangeMatcher.Builder>
-
addRepeatedField
public IPMatcher.IPRangeMatcher.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<IPMatcher.IPRangeMatcher.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IPMatcher.IPRangeMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
-
mergeFrom
public IPMatcher.IPRangeMatcher.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<IPMatcher.IPRangeMatcher.Builder>- Throws:
IOException
-
getRangesList
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesListin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
getRangesCount
public int getRangesCount()A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesCountin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
getRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
setRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
setRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
addRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
addRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
addRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
addRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
addAllRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
clearRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
removeRanges
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
getRangesBuilder
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
getRangesOrBuilder
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesOrBuilderin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
getRangesOrBuilderList
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesOrBuilderListin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
addRangesBuilder
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
addRangesBuilder
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
getRangesBuilderList
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... } -
hasOnMatch
public boolean hasOnMatch()Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;- Specified by:
hasOnMatchin interfaceIPMatcher.IPRangeMatcherOrBuilder- Returns:
- Whether the onMatch field is set.
-
getOnMatch
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;- Specified by:
getOnMatchin interfaceIPMatcher.IPRangeMatcherOrBuilder- Returns:
- The onMatch.
-
setOnMatch
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2; -
setOnMatch
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2; -
mergeOnMatch
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2; -
clearOnMatch
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2; -
getOnMatchBuilder
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2; -
getOnMatchOrBuilder
Match action to apply when the IP address is within one of the CIDR ranges.
.xds.type.matcher.v3.Matcher.OnMatch on_match = 2;- Specified by:
getOnMatchOrBuilderin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
getExclusive
public boolean getExclusive()Indicates whether this match option should be considered if there is a more specific matcher. Exclusive matchers are not selected whenever a more specific matcher exists (e.g. matcher with a longer prefix) even when the more specific matcher fails its nested match condition. Non-exclusive matchers are considered if the more specific matcher exists but its nested match condition does not entirely match. Non-exclusive matchers are selected in the order of their specificity first (longest prefix first), then the order of declaration next. For example, consider two range matchers: an exclusive matcher *X* on ``0.0.0.0/0`` and a matcher *Y* on ``192.0.0.0/2`` with a nested match condition *Z*. For the input IP ``192.168.0.1`` matcher *Y* is the most specific. If its nested match condition *Z* does not accept the input, then the less specific matcher *X* does not apply either despite the input being within the range, because matcher *X* is exclusive. The opposite is true if matcher *X* is not marked as exclusive. In that case matcher *X* always matches whenever matcher "*Y* rejects the input.
bool exclusive = 3;- Specified by:
getExclusivein interfaceIPMatcher.IPRangeMatcherOrBuilder- Returns:
- The exclusive.
-
setExclusive
Indicates whether this match option should be considered if there is a more specific matcher. Exclusive matchers are not selected whenever a more specific matcher exists (e.g. matcher with a longer prefix) even when the more specific matcher fails its nested match condition. Non-exclusive matchers are considered if the more specific matcher exists but its nested match condition does not entirely match. Non-exclusive matchers are selected in the order of their specificity first (longest prefix first), then the order of declaration next. For example, consider two range matchers: an exclusive matcher *X* on ``0.0.0.0/0`` and a matcher *Y* on ``192.0.0.0/2`` with a nested match condition *Z*. For the input IP ``192.168.0.1`` matcher *Y* is the most specific. If its nested match condition *Z* does not accept the input, then the less specific matcher *X* does not apply either despite the input being within the range, because matcher *X* is exclusive. The opposite is true if matcher *X* is not marked as exclusive. In that case matcher *X* always matches whenever matcher "*Y* rejects the input.
bool exclusive = 3;- Parameters:
value- The exclusive to set.- Returns:
- This builder for chaining.
-
clearExclusive
Indicates whether this match option should be considered if there is a more specific matcher. Exclusive matchers are not selected whenever a more specific matcher exists (e.g. matcher with a longer prefix) even when the more specific matcher fails its nested match condition. Non-exclusive matchers are considered if the more specific matcher exists but its nested match condition does not entirely match. Non-exclusive matchers are selected in the order of their specificity first (longest prefix first), then the order of declaration next. For example, consider two range matchers: an exclusive matcher *X* on ``0.0.0.0/0`` and a matcher *Y* on ``192.0.0.0/2`` with a nested match condition *Z*. For the input IP ``192.168.0.1`` matcher *Y* is the most specific. If its nested match condition *Z* does not accept the input, then the less specific matcher *X* does not apply either despite the input being within the range, because matcher *X* is exclusive. The opposite is true if matcher *X* is not marked as exclusive. In that case matcher *X* always matches whenever matcher "*Y* rejects the input.
bool exclusive = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final IPMatcher.IPRangeMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
-
mergeUnknownFields
public final IPMatcher.IPRangeMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
-