Class IPMatcher.IPRangeMatcher.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
      • getDefaultInstanceForType

        public IPMatcher.IPRangeMatcher getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IPMatcher.IPRangeMatcher build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IPMatcher.IPRangeMatcher buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public IPMatcher.IPRangeMatcher.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
      • addRepeatedField

        public IPMatcher.IPRangeMatcher.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IPMatcher.IPRangeMatcher.Builder>
        Throws:
        IOException
      • clearRanges

        public IPMatcher.IPRangeMatcher.Builder clearRanges()
         A non-empty set of CIDR ranges.
         
        repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }
      • removeRanges

        public IPMatcher.IPRangeMatcher.Builder removeRanges​(int index)
         A non-empty set of CIDR ranges.
         
        repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }
      • getRangesBuilder

        public CidrRange.Builder getRangesBuilder​(int index)
         A non-empty set of CIDR ranges.
         
        repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }
      • addRangesBuilder

        public CidrRange.Builder addRangesBuilder()
         A non-empty set of CIDR ranges.
         
        repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }
      • addRangesBuilder

        public CidrRange.Builder addRangesBuilder​(int index)
         A non-empty set of CIDR ranges.
         
        repeated .xds.core.v3.CidrRange ranges = 1 [(.validate.rules) = { ... }
      • getRangesBuilderList

        public List<CidrRange.Builder> 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:
        hasOnMatch in interface IPMatcher.IPRangeMatcherOrBuilder
        Returns:
        Whether the onMatch field is set.
      • clearOnMatch

        public IPMatcher.IPRangeMatcher.Builder 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

        public Matcher.OnMatch.Builder 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;
      • 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:
        getExclusive in interface IPMatcher.IPRangeMatcherOrBuilder
        Returns:
        The exclusive.
      • setExclusive

        public IPMatcher.IPRangeMatcher.Builder setExclusive​(boolean value)
         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

        public IPMatcher.IPRangeMatcher.Builder 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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>
      • mergeUnknownFields

        public final IPMatcher.IPRangeMatcher.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IPMatcher.IPRangeMatcher.Builder>