Class Matcher.MatcherList.Builder

  • All Implemented Interfaces:
    Matcher.MatcherListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Matcher.MatcherList

    public static final class Matcher.MatcherList.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Matcher.MatcherList.Builder>
    implements Matcher.MatcherListOrBuilder
     A linear list of field matchers.
     The field matchers are evaluated in order, and the first match
     wins.
     
    Protobuf type xds.type.matcher.v3.Matcher.MatcherList
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Matcher.MatcherList.Builder>
      • clear

        public Matcher.MatcherList.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Matcher.MatcherList.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.GeneratedMessage.Builder<Matcher.MatcherList.Builder>
      • getDefaultInstanceForType

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

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

        public Matcher.MatcherList buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(Matcher.MatcherList result)
      • mergeFrom

        public Matcher.MatcherList.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Matcher.MatcherList.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Matcher.MatcherList.Builder>
      • mergeFrom

        public Matcher.MatcherList.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.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<Matcher.MatcherList.Builder>
        Throws:
        java.io.IOException
      • ensureMatchersIsMutable

        private void ensureMatchersIsMutable()
      • getMatchersCount

        public int getMatchersCount()
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
        Specified by:
        getMatchersCount in interface Matcher.MatcherListOrBuilder
      • clearMatchers

        public Matcher.MatcherList.Builder clearMatchers()
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      • removeMatchers

        public Matcher.MatcherList.Builder removeMatchers​(int index)
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      • getMatchersBuilder

        public Matcher.MatcherList.FieldMatcher.Builder getMatchersBuilder​(int index)
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      • addMatchersBuilder

        public Matcher.MatcherList.FieldMatcher.Builder addMatchersBuilder()
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      • addMatchersBuilder

        public Matcher.MatcherList.FieldMatcher.Builder addMatchersBuilder​(int index)
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      • getMatchersBuilderList

        public java.util.List<Matcher.MatcherList.FieldMatcher.Builder> getMatchersBuilderList()
         A list of matchers. First match wins.
         
        repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }