Class Matcher.MatcherList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Matcher.MatcherList.Builder>
com.google.protobuf.GeneratedMessage.Builder<Matcher.MatcherList.Builder>
com.github.xds.type.matcher.v3.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, 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
  • Method Details

    • 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

      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
    • 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>
    • mergeFrom

    • 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 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:
      IOException
    • getMatchersList

      public List<Matcher.MatcherList.FieldMatcher> getMatchersList()
      A list of matchers. First match wins.
      
      repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      Specified by:
      getMatchersList in interface Matcher.MatcherListOrBuilder
    • 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
    • getMatchers

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

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

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

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

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

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

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

      public Matcher.MatcherList.Builder addAllMatchers(Iterable<? extends Matcher.MatcherList.FieldMatcher> values)
      A list of matchers. First match wins.
      
      repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
    • 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) = { ... }
    • getMatchersOrBuilder

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

      public List<? extends Matcher.MatcherList.FieldMatcherOrBuilder> getMatchersOrBuilderList()
      A list of matchers. First match wins.
      
      repeated .xds.type.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... }
      Specified by:
      getMatchersOrBuilderList in interface Matcher.MatcherListOrBuilder
    • 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 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) = { ... }