Class ClusterConfig.Builder

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

    public static final class ClusterConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ClusterConfig.Builder>
    implements ClusterConfigOrBuilder
     Configuration for the aggregate cluster. See the :ref:`architecture overview
     <arch_overview_aggregate_cluster>` for more information.
     [#extension: envoy.clusters.aggregate]
     
    Protobuf type envoy.extensions.clusters.aggregate.v3.ClusterConfig
    • 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<ClusterConfig.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ClusterConfig.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<ClusterConfig.Builder>
        Throws:
        IOException
      • getClustersList

        public com.google.protobuf.ProtocolStringList getClustersList()
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Specified by:
        getClustersList in interface ClusterConfigOrBuilder
        Returns:
        A list containing the clusters.
      • getClustersCount

        public int getClustersCount()
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Specified by:
        getClustersCount in interface ClusterConfigOrBuilder
        Returns:
        The count of clusters.
      • getClusters

        public String getClusters​(int index)
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Specified by:
        getClusters in interface ClusterConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The clusters at the given index.
      • getClustersBytes

        public com.google.protobuf.ByteString getClustersBytes​(int index)
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Specified by:
        getClustersBytes in interface ClusterConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the clusters at the given index.
      • setClusters

        public ClusterConfig.Builder setClusters​(int index,
                                                 String value)
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The clusters to set.
        Returns:
        This builder for chaining.
      • addClusters

        public ClusterConfig.Builder addClusters​(String value)
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The clusters to add.
        Returns:
        This builder for chaining.
      • addAllClusters

        public ClusterConfig.Builder addAllClusters​(Iterable<String> values)
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Parameters:
        values - The clusters to add.
        Returns:
        This builder for chaining.
      • clearClusters

        public ClusterConfig.Builder clearClusters()
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • addClustersBytes

        public ClusterConfig.Builder addClustersBytes​(com.google.protobuf.ByteString value)
         Load balancing clusters in aggregate cluster. Clusters are prioritized based on the order they
         appear in this list.
         
        repeated string clusters = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes of the clusters to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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