Class SubClustersConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SubClustersConfigOrBuilder, Cloneable
    Enclosing class:
    SubClustersConfig

    public static final class SubClustersConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SubClustersConfig.Builder>
    implements SubClustersConfigOrBuilder
     Configuration for sub clusters. Hard code STRICT_DNS cluster type now.
     
    Protobuf type envoy.extensions.clusters.dynamic_forward_proxy.v3.SubClustersConfig
    • 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<SubClustersConfig.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public SubClustersConfig.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<SubClustersConfig.Builder>
      • isInitialized

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

        public SubClustersConfig.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<SubClustersConfig.Builder>
        Throws:
        IOException
      • getLbPolicyValue

        public int getLbPolicyValue()
         The :ref:`load balancer type <arch_overview_load_balancing_types>` to use
         when picking a host in a sub cluster. Note that CLUSTER_PROVIDED is not allowed here.
         
        .envoy.config.cluster.v3.Cluster.LbPolicy lb_policy = 1 [(.validate.rules) = { ... }
        Specified by:
        getLbPolicyValue in interface SubClustersConfigOrBuilder
        Returns:
        The enum numeric value on the wire for lbPolicy.
      • setLbPolicyValue

        public SubClustersConfig.Builder setLbPolicyValue​(int value)
         The :ref:`load balancer type <arch_overview_load_balancing_types>` to use
         when picking a host in a sub cluster. Note that CLUSTER_PROVIDED is not allowed here.
         
        .envoy.config.cluster.v3.Cluster.LbPolicy lb_policy = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for lbPolicy to set.
        Returns:
        This builder for chaining.
      • getLbPolicy

        public Cluster.LbPolicy getLbPolicy()
         The :ref:`load balancer type <arch_overview_load_balancing_types>` to use
         when picking a host in a sub cluster. Note that CLUSTER_PROVIDED is not allowed here.
         
        .envoy.config.cluster.v3.Cluster.LbPolicy lb_policy = 1 [(.validate.rules) = { ... }
        Specified by:
        getLbPolicy in interface SubClustersConfigOrBuilder
        Returns:
        The lbPolicy.
      • setLbPolicy

        public SubClustersConfig.Builder setLbPolicy​(Cluster.LbPolicy value)
         The :ref:`load balancer type <arch_overview_load_balancing_types>` to use
         when picking a host in a sub cluster. Note that CLUSTER_PROVIDED is not allowed here.
         
        .envoy.config.cluster.v3.Cluster.LbPolicy lb_policy = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The lbPolicy to set.
        Returns:
        This builder for chaining.
      • clearLbPolicy

        public SubClustersConfig.Builder clearLbPolicy()
         The :ref:`load balancer type <arch_overview_load_balancing_types>` to use
         when picking a host in a sub cluster. Note that CLUSTER_PROVIDED is not allowed here.
         
        .envoy.config.cluster.v3.Cluster.LbPolicy lb_policy = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • hasMaxSubClusters

        public boolean hasMaxSubClusters()
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
        Specified by:
        hasMaxSubClusters in interface SubClustersConfigOrBuilder
        Returns:
        Whether the maxSubClusters field is set.
      • getMaxSubClusters

        public com.google.protobuf.UInt32Value getMaxSubClusters()
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
        Specified by:
        getMaxSubClusters in interface SubClustersConfigOrBuilder
        Returns:
        The maxSubClusters.
      • setMaxSubClusters

        public SubClustersConfig.Builder setMaxSubClusters​(com.google.protobuf.UInt32Value value)
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
      • setMaxSubClusters

        public SubClustersConfig.Builder setMaxSubClusters​(com.google.protobuf.UInt32Value.Builder builderForValue)
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
      • mergeMaxSubClusters

        public SubClustersConfig.Builder mergeMaxSubClusters​(com.google.protobuf.UInt32Value value)
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
      • clearMaxSubClusters

        public SubClustersConfig.Builder clearMaxSubClusters()
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
      • getMaxSubClustersBuilder

        public com.google.protobuf.UInt32Value.Builder getMaxSubClustersBuilder()
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
      • getMaxSubClustersOrBuilder

        public com.google.protobuf.UInt32ValueOrBuilder getMaxSubClustersOrBuilder()
         The maximum number of sub clusters that the DFP cluster will hold. If not specified defaults to 1024.
         
        .google.protobuf.UInt32Value max_sub_clusters = 2 [(.validate.rules) = { ... }
        Specified by:
        getMaxSubClustersOrBuilder in interface SubClustersConfigOrBuilder
      • hasSubClusterTtl

        public boolean hasSubClusterTtl()
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
        Specified by:
        hasSubClusterTtl in interface SubClustersConfigOrBuilder
        Returns:
        Whether the subClusterTtl field is set.
      • getSubClusterTtl

        public com.google.protobuf.Duration getSubClusterTtl()
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
        Specified by:
        getSubClusterTtl in interface SubClustersConfigOrBuilder
        Returns:
        The subClusterTtl.
      • setSubClusterTtl

        public SubClustersConfig.Builder setSubClusterTtl​(com.google.protobuf.Duration value)
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
      • setSubClusterTtl

        public SubClustersConfig.Builder setSubClusterTtl​(com.google.protobuf.Duration.Builder builderForValue)
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
      • mergeSubClusterTtl

        public SubClustersConfig.Builder mergeSubClusterTtl​(com.google.protobuf.Duration value)
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
      • clearSubClusterTtl

        public SubClustersConfig.Builder clearSubClusterTtl()
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
      • getSubClusterTtlBuilder

        public com.google.protobuf.Duration.Builder getSubClusterTtlBuilder()
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
      • getSubClusterTtlOrBuilder

        public com.google.protobuf.DurationOrBuilder getSubClusterTtlOrBuilder()
         The TTL for sub clusters that are unused. Sub clusters that have not been used in the configured time
         interval will be purged. If not specified defaults to 5m.
         
        .google.protobuf.Duration sub_cluster_ttl = 3 [(.validate.rules) = { ... }
        Specified by:
        getSubClusterTtlOrBuilder in interface SubClustersConfigOrBuilder
      • getPreresolveClustersList

        public List<SocketAddress> getPreresolveClustersList()
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
        Specified by:
        getPreresolveClustersList in interface SubClustersConfigOrBuilder
      • getPreresolveClustersCount

        public int getPreresolveClustersCount()
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
        Specified by:
        getPreresolveClustersCount in interface SubClustersConfigOrBuilder
      • getPreresolveClusters

        public SocketAddress getPreresolveClusters​(int index)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
        Specified by:
        getPreresolveClusters in interface SubClustersConfigOrBuilder
      • setPreresolveClusters

        public SubClustersConfig.Builder setPreresolveClusters​(int index,
                                                               SocketAddress value)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • setPreresolveClusters

        public SubClustersConfig.Builder setPreresolveClusters​(int index,
                                                               SocketAddress.Builder builderForValue)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • addPreresolveClusters

        public SubClustersConfig.Builder addPreresolveClusters​(SocketAddress value)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • addPreresolveClusters

        public SubClustersConfig.Builder addPreresolveClusters​(int index,
                                                               SocketAddress value)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • addPreresolveClusters

        public SubClustersConfig.Builder addPreresolveClusters​(SocketAddress.Builder builderForValue)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • addPreresolveClusters

        public SubClustersConfig.Builder addPreresolveClusters​(int index,
                                                               SocketAddress.Builder builderForValue)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • addAllPreresolveClusters

        public SubClustersConfig.Builder addAllPreresolveClusters​(Iterable<? extends SocketAddress> values)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • clearPreresolveClusters

        public SubClustersConfig.Builder clearPreresolveClusters()
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • removePreresolveClusters

        public SubClustersConfig.Builder removePreresolveClusters​(int index)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • getPreresolveClustersBuilder

        public SocketAddress.Builder getPreresolveClustersBuilder​(int index)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • getPreresolveClustersOrBuilder

        public SocketAddressOrBuilder getPreresolveClustersOrBuilder​(int index)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
        Specified by:
        getPreresolveClustersOrBuilder in interface SubClustersConfigOrBuilder
      • getPreresolveClustersOrBuilderList

        public List<? extends SocketAddressOrBuilder> getPreresolveClustersOrBuilderList()
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
        Specified by:
        getPreresolveClustersOrBuilderList in interface SubClustersConfigOrBuilder
      • addPreresolveClustersBuilder

        public SocketAddress.Builder addPreresolveClustersBuilder()
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • addPreresolveClustersBuilder

        public SocketAddress.Builder addPreresolveClustersBuilder​(int index)
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • getPreresolveClustersBuilderList

        public List<SocketAddress.Builder> getPreresolveClustersBuilderList()
         Sub clusters that should be created & warmed upon creation. This might provide a
         performance improvement, in the form of cache hits, for sub clusters that are going to be
         warmed during steady state and are known at config load time.
         
        repeated .envoy.config.core.v3.SocketAddress preresolve_clusters = 4;
      • setUnknownFields

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

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