Package com.github.xds.type.matcher.v3
Class IPMatcher.IPRangeMatcher
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.github.xds.type.matcher.v3.IPMatcher.IPRangeMatcher
- All Implemented Interfaces:
IPMatcher.IPRangeMatcherOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- IPMatcher
public static final class IPMatcher.IPRangeMatcher
extends com.google.protobuf.GeneratedMessageV3
implements IPMatcher.IPRangeMatcherOrBuilder
Specifies a list of IP address ranges and a match action.Protobuf type
xds.type.matcher.v3.IPMatcher.IPRangeMatcher- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies a list of IP address ranges and a match action.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic IPMatcher.IPRangeMatcherstatic final com.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.com.google.protobuf.Parser<IPMatcher.IPRangeMatcher>getRanges(int index) 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.intinthashCode()booleanMatch action to apply when the IP address is within one of the CIDR ranges.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(IPMatcher.IPRangeMatcher prototype) protected IPMatcher.IPRangeMatcher.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static IPMatcher.IPRangeMatcherparseDelimitedFrom(InputStream input) static IPMatcher.IPRangeMatcherparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IPMatcher.IPRangeMatcherparseFrom(byte[] data) static IPMatcher.IPRangeMatcherparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IPMatcher.IPRangeMatcherparseFrom(com.google.protobuf.ByteString data) static IPMatcher.IPRangeMatcherparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IPMatcher.IPRangeMatcherparseFrom(com.google.protobuf.CodedInputStream input) static IPMatcher.IPRangeMatcherparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IPMatcher.IPRangeMatcherparseFrom(InputStream input) static IPMatcher.IPRangeMatcherparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IPMatcher.IPRangeMatcherparseFrom(ByteBuffer data) static IPMatcher.IPRangeMatcherparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<IPMatcher.IPRangeMatcher>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RANGES_FIELD_NUMBER
public static final int RANGES_FIELD_NUMBER- See Also:
-
ON_MATCH_FIELD_NUMBER
public static final int ON_MATCH_FIELD_NUMBER- See Also:
-
EXCLUSIVE_FIELD_NUMBER
public static final int EXCLUSIVE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
-
getRangesList
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesListin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
getRangesOrBuilderList
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesOrBuilderListin 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
-
getRangesOrBuilder
A non-empty set of CIDR ranges.
repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }- Specified by:
getRangesOrBuilderin interfaceIPMatcher.IPRangeMatcherOrBuilder
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 IPMatcher.IPRangeMatcher parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static IPMatcher.IPRangeMatcher parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static IPMatcher.IPRangeMatcher parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected IPMatcher.IPRangeMatcher.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-