java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder>
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.v3.VirtualHost.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualHostOrBuilder, Cloneable
Enclosing class:
VirtualHost

public static final class VirtualHost.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualHost.Builder> implements VirtualHostOrBuilder
Protobuf type envoy.extensions.filters.network.generic_proxy.v3.VirtualHost
  • 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<VirtualHost.Builder>
    • clear

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

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

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

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

      public VirtualHost.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<VirtualHost.Builder>
    • setField

      public VirtualHost.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<VirtualHost.Builder>
    • clearField

      public VirtualHost.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<VirtualHost.Builder>
    • clearOneof

      public VirtualHost.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<VirtualHost.Builder>
    • setRepeatedField

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

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

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

      public VirtualHost.Builder mergeFrom(VirtualHost other)
    • isInitialized

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

      public VirtualHost.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<VirtualHost.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the virtual host.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getName in interface VirtualHostOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the virtual host.
       
      string name = 1 [(.validate.rules) = { ... }
      Specified by:
      getNameBytes in interface VirtualHostOrBuilder
      Returns:
      The bytes for name.
    • setName

      public VirtualHost.Builder setName(String value)
       The name of the virtual host.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public VirtualHost.Builder clearName()
       The name of the virtual host.
       
      string name = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public VirtualHost.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the virtual host.
       
      string name = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getHostsList

      public com.google.protobuf.ProtocolStringList getHostsList()
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Specified by:
      getHostsList in interface VirtualHostOrBuilder
      Returns:
      A list containing the hosts.
    • getHostsCount

      public int getHostsCount()
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Specified by:
      getHostsCount in interface VirtualHostOrBuilder
      Returns:
      The count of hosts.
    • getHosts

      public String getHosts(int index)
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Specified by:
      getHosts in interface VirtualHostOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The hosts at the given index.
    • getHostsBytes

      public com.google.protobuf.ByteString getHostsBytes(int index)
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Specified by:
      getHostsBytes in interface VirtualHostOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the hosts at the given index.
    • setHosts

      public VirtualHost.Builder setHosts(int index, String value)
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The hosts to set.
      Returns:
      This builder for chaining.
    • addHosts

      public VirtualHost.Builder addHosts(String value)
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The hosts to add.
      Returns:
      This builder for chaining.
    • addAllHosts

      public VirtualHost.Builder addAllHosts(Iterable<String> values)
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Parameters:
      values - The hosts to add.
      Returns:
      This builder for chaining.
    • clearHosts

      public VirtualHost.Builder clearHosts()
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • addHostsBytes

      public VirtualHost.Builder addHostsBytes(com.google.protobuf.ByteString value)
       A list of hosts that will be matched to this virtual host. Wildcard hosts are supported in
       the suffix or prefix form.
      
       Host search order:
        1. Exact names: ``www.foo.com``.
        2. Suffix wildcards: ``*.foo.com`` or ``*-bar.foo.com``.
        3. Prefix wildcards: ``foo.*`` or ``foo-*``.
        4. Special wildcard ``*`` matching any host and will be the default virtual host.
      
       .. note::
      
         The wildcard will not match the empty string.
         e.g. ``*-bar.foo.com`` will match ``baz-bar.foo.com`` but not ``-bar.foo.com``.
         The longest wildcards match first.
         Only a single virtual host in the entire route configuration can match on ``*``. A domain
         must be unique across all virtual hosts or the config will fail to load.
       
      repeated string hosts = 2 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes of the hosts to add.
      Returns:
      This builder for chaining.
    • hasRoutes

      public boolean hasRoutes()
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
      Specified by:
      hasRoutes in interface VirtualHostOrBuilder
      Returns:
      Whether the routes field is set.
    • getRoutes

      public Matcher getRoutes()
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
      Specified by:
      getRoutes in interface VirtualHostOrBuilder
      Returns:
      The routes.
    • setRoutes

      public VirtualHost.Builder setRoutes(Matcher value)
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
    • setRoutes

      public VirtualHost.Builder setRoutes(Matcher.Builder builderForValue)
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
    • mergeRoutes

      public VirtualHost.Builder mergeRoutes(Matcher value)
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
    • clearRoutes

      public VirtualHost.Builder clearRoutes()
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
    • getRoutesBuilder

      public Matcher.Builder getRoutesBuilder()
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
    • getRoutesOrBuilder

      public MatcherOrBuilder getRoutesOrBuilder()
       The match tree to use when resolving route actions for incoming requests.
       
      .xds.type.matcher.v3.Matcher routes = 3 [(.validate.rules) = { ... }
      Specified by:
      getRoutesOrBuilder in interface VirtualHostOrBuilder
    • setUnknownFields

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

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