Class ServerNameMatcher.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
com.github.xds.type.matcher.v3.ServerNameMatcher.Builder
All Implemented Interfaces:
ServerNameMatcherOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ServerNameMatcher

public static final class ServerNameMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder> implements ServerNameMatcherOrBuilder
 Matches a fully qualified server name against a set of domain
 names with optional wildcards.
 
Protobuf type xds.type.matcher.v3.ServerNameMatcher
  • Method Details

    • 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<ServerNameMatcher.Builder>
    • clear

      public ServerNameMatcher.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.GeneratedMessageV3.Builder<ServerNameMatcher.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<ServerNameMatcher.Builder>
    • getDefaultInstanceForType

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

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

      public ServerNameMatcher buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ServerNameMatcher.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
    • setField

      public ServerNameMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
    • clearField

      public ServerNameMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
    • clearOneof

      public ServerNameMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServerNameMatcher.Builder>
    • setRepeatedField

      public ServerNameMatcher.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<ServerNameMatcher.Builder>
    • addRepeatedField

      public ServerNameMatcher.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<ServerNameMatcher.Builder>
    • mergeFrom

      public ServerNameMatcher.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<ServerNameMatcher.Builder>
    • mergeFrom

      public ServerNameMatcher.Builder mergeFrom(ServerNameMatcher other)
    • isInitialized

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

      public ServerNameMatcher.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<ServerNameMatcher.Builder>
      Throws:
      IOException
    • getDomainMatchersList

      public List<ServerNameMatcher.DomainMatcher> getDomainMatchersList()
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
      Specified by:
      getDomainMatchersList in interface ServerNameMatcherOrBuilder
    • getDomainMatchersCount

      public int getDomainMatchersCount()
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
      Specified by:
      getDomainMatchersCount in interface ServerNameMatcherOrBuilder
    • getDomainMatchers

      public ServerNameMatcher.DomainMatcher getDomainMatchers(int index)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
      Specified by:
      getDomainMatchers in interface ServerNameMatcherOrBuilder
    • setDomainMatchers

      public ServerNameMatcher.Builder setDomainMatchers(int index, ServerNameMatcher.DomainMatcher value)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • setDomainMatchers

      public ServerNameMatcher.Builder setDomainMatchers(int index, ServerNameMatcher.DomainMatcher.Builder builderForValue)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • addDomainMatchers

       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • addDomainMatchers

      public ServerNameMatcher.Builder addDomainMatchers(int index, ServerNameMatcher.DomainMatcher value)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • addDomainMatchers

      public ServerNameMatcher.Builder addDomainMatchers(ServerNameMatcher.DomainMatcher.Builder builderForValue)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • addDomainMatchers

      public ServerNameMatcher.Builder addDomainMatchers(int index, ServerNameMatcher.DomainMatcher.Builder builderForValue)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • addAllDomainMatchers

      public ServerNameMatcher.Builder addAllDomainMatchers(Iterable<? extends ServerNameMatcher.DomainMatcher> values)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • clearDomainMatchers

      public ServerNameMatcher.Builder clearDomainMatchers()
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • removeDomainMatchers

      public ServerNameMatcher.Builder removeDomainMatchers(int index)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • getDomainMatchersBuilder

      public ServerNameMatcher.DomainMatcher.Builder getDomainMatchersBuilder(int index)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • getDomainMatchersOrBuilder

      public ServerNameMatcher.DomainMatcherOrBuilder getDomainMatchersOrBuilder(int index)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
      Specified by:
      getDomainMatchersOrBuilder in interface ServerNameMatcherOrBuilder
    • getDomainMatchersOrBuilderList

      public List<? extends ServerNameMatcher.DomainMatcherOrBuilder> getDomainMatchersOrBuilderList()
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
      Specified by:
      getDomainMatchersOrBuilderList in interface ServerNameMatcherOrBuilder
    • addDomainMatchersBuilder

      public ServerNameMatcher.DomainMatcher.Builder addDomainMatchersBuilder()
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • addDomainMatchersBuilder

      public ServerNameMatcher.DomainMatcher.Builder addDomainMatchersBuilder(int index)
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • getDomainMatchersBuilderList

      public List<ServerNameMatcher.DomainMatcher.Builder> getDomainMatchersBuilderList()
       Match a server name by multiple domain matchers. Each domain, exact or
       wildcard, must appear at most once across all the domain matchers.
      
       The server name will be matched against all wildcard domains starting from
       the longest suffix, i.e. ``www.example.com`` input will be first matched
       against ``www.example.com``, then ``*.example.com``, then ``*.com``, then
       ``*``, until the associated matcher action accepts the input. Note that
       wildcards must be on a dot border, and values like ``*w.example.com`` are
       invalid.
       
      repeated .xds.type.matcher.v3.ServerNameMatcher.DomainMatcher domain_matchers = 1;
    • setUnknownFields

      public final ServerNameMatcher.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<ServerNameMatcher.Builder>
    • mergeUnknownFields

      public final ServerNameMatcher.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<ServerNameMatcher.Builder>