Class ClustersConfigDump.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClustersConfigDumpOrBuilder, java.lang.Cloneable
    Enclosing class:
    ClustersConfigDump

    public static final class ClustersConfigDump.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ClustersConfigDump.Builder>
    implements ClustersConfigDumpOrBuilder
     Envoy's cluster manager fills this message with all currently known clusters. Cluster
     configuration information can be used to recreate an Envoy configuration by populating all
     clusters as static clusters or by returning them in a CDS response.
     
    Protobuf type envoy.admin.v3.ClustersConfigDump
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

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

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

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

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

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

        private void buildPartialRepeatedFields​(ClustersConfigDump result)
      • mergeFrom

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

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

        public ClustersConfigDump.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.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<ClustersConfigDump.Builder>
        Throws:
        java.io.IOException
      • getVersionInfo

        public java.lang.String getVersionInfo()
         This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
         last processed CDS discovery response. If there are only static bootstrap clusters, this field
         will be "".
         
        string version_info = 1;
        Specified by:
        getVersionInfo in interface ClustersConfigDumpOrBuilder
        Returns:
        The versionInfo.
      • getVersionInfoBytes

        public com.google.protobuf.ByteString getVersionInfoBytes()
         This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
         last processed CDS discovery response. If there are only static bootstrap clusters, this field
         will be "".
         
        string version_info = 1;
        Specified by:
        getVersionInfoBytes in interface ClustersConfigDumpOrBuilder
        Returns:
        The bytes for versionInfo.
      • setVersionInfo

        public ClustersConfigDump.Builder setVersionInfo​(java.lang.String value)
         This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
         last processed CDS discovery response. If there are only static bootstrap clusters, this field
         will be "".
         
        string version_info = 1;
        Parameters:
        value - The versionInfo to set.
        Returns:
        This builder for chaining.
      • clearVersionInfo

        public ClustersConfigDump.Builder clearVersionInfo()
         This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
         last processed CDS discovery response. If there are only static bootstrap clusters, this field
         will be "".
         
        string version_info = 1;
        Returns:
        This builder for chaining.
      • setVersionInfoBytes

        public ClustersConfigDump.Builder setVersionInfoBytes​(com.google.protobuf.ByteString value)
         This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
         last processed CDS discovery response. If there are only static bootstrap clusters, this field
         will be "".
         
        string version_info = 1;
        Parameters:
        value - The bytes for versionInfo to set.
        Returns:
        This builder for chaining.
      • ensureStaticClustersIsMutable

        private void ensureStaticClustersIsMutable()
      • getStaticClustersCount

        public int getStaticClustersCount()
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
        Specified by:
        getStaticClustersCount in interface ClustersConfigDumpOrBuilder
      • clearStaticClusters

        public ClustersConfigDump.Builder clearStaticClusters()
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
      • removeStaticClusters

        public ClustersConfigDump.Builder removeStaticClusters​(int index)
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
      • getStaticClustersBuilder

        public ClustersConfigDump.StaticCluster.Builder getStaticClustersBuilder​(int index)
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
      • addStaticClustersBuilder

        public ClustersConfigDump.StaticCluster.Builder addStaticClustersBuilder()
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
      • addStaticClustersBuilder

        public ClustersConfigDump.StaticCluster.Builder addStaticClustersBuilder​(int index)
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
      • getStaticClustersBuilderList

        public java.util.List<ClustersConfigDump.StaticCluster.Builder> getStaticClustersBuilderList()
         The statically loaded cluster configs.
         
        repeated .envoy.admin.v3.ClustersConfigDump.StaticCluster static_clusters = 2;
      • ensureDynamicActiveClustersIsMutable

        private void ensureDynamicActiveClustersIsMutable()
      • getDynamicActiveClustersCount

        public int getDynamicActiveClustersCount()
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
        Specified by:
        getDynamicActiveClustersCount in interface ClustersConfigDumpOrBuilder
      • setDynamicActiveClusters

        public ClustersConfigDump.Builder setDynamicActiveClusters​(int index,
                                                                   ClustersConfigDump.DynamicCluster value)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • setDynamicActiveClusters

        public ClustersConfigDump.Builder setDynamicActiveClusters​(int index,
                                                                   ClustersConfigDump.DynamicCluster.Builder builderForValue)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addDynamicActiveClusters

        public ClustersConfigDump.Builder addDynamicActiveClusters​(ClustersConfigDump.DynamicCluster value)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addDynamicActiveClusters

        public ClustersConfigDump.Builder addDynamicActiveClusters​(int index,
                                                                   ClustersConfigDump.DynamicCluster value)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addDynamicActiveClusters

        public ClustersConfigDump.Builder addDynamicActiveClusters​(ClustersConfigDump.DynamicCluster.Builder builderForValue)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addDynamicActiveClusters

        public ClustersConfigDump.Builder addDynamicActiveClusters​(int index,
                                                                   ClustersConfigDump.DynamicCluster.Builder builderForValue)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addAllDynamicActiveClusters

        public ClustersConfigDump.Builder addAllDynamicActiveClusters​(java.lang.Iterable<? extends ClustersConfigDump.DynamicCluster> values)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • clearDynamicActiveClusters

        public ClustersConfigDump.Builder clearDynamicActiveClusters()
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • removeDynamicActiveClusters

        public ClustersConfigDump.Builder removeDynamicActiveClusters​(int index)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • getDynamicActiveClustersBuilder

        public ClustersConfigDump.DynamicCluster.Builder getDynamicActiveClustersBuilder​(int index)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addDynamicActiveClustersBuilder

        public ClustersConfigDump.DynamicCluster.Builder addDynamicActiveClustersBuilder()
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • addDynamicActiveClustersBuilder

        public ClustersConfigDump.DynamicCluster.Builder addDynamicActiveClustersBuilder​(int index)
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • getDynamicActiveClustersBuilderList

        public java.util.List<ClustersConfigDump.DynamicCluster.Builder> getDynamicActiveClustersBuilderList()
         The dynamically loaded active clusters. These are clusters that are available to service
         data plane traffic.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
      • ensureDynamicWarmingClustersIsMutable

        private void ensureDynamicWarmingClustersIsMutable()
      • getDynamicWarmingClustersList

        public java.util.List<ClustersConfigDump.DynamicCluster> getDynamicWarmingClustersList()
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
        Specified by:
        getDynamicWarmingClustersList in interface ClustersConfigDumpOrBuilder
      • getDynamicWarmingClustersCount

        public int getDynamicWarmingClustersCount()
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
        Specified by:
        getDynamicWarmingClustersCount in interface ClustersConfigDumpOrBuilder
      • getDynamicWarmingClusters

        public ClustersConfigDump.DynamicCluster getDynamicWarmingClusters​(int index)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
        Specified by:
        getDynamicWarmingClusters in interface ClustersConfigDumpOrBuilder
      • setDynamicWarmingClusters

        public ClustersConfigDump.Builder setDynamicWarmingClusters​(int index,
                                                                    ClustersConfigDump.DynamicCluster value)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • setDynamicWarmingClusters

        public ClustersConfigDump.Builder setDynamicWarmingClusters​(int index,
                                                                    ClustersConfigDump.DynamicCluster.Builder builderForValue)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • addDynamicWarmingClusters

        public ClustersConfigDump.Builder addDynamicWarmingClusters​(ClustersConfigDump.DynamicCluster value)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • addDynamicWarmingClusters

        public ClustersConfigDump.Builder addDynamicWarmingClusters​(int index,
                                                                    ClustersConfigDump.DynamicCluster value)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • addDynamicWarmingClusters

        public ClustersConfigDump.Builder addDynamicWarmingClusters​(ClustersConfigDump.DynamicCluster.Builder builderForValue)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • addDynamicWarmingClusters

        public ClustersConfigDump.Builder addDynamicWarmingClusters​(int index,
                                                                    ClustersConfigDump.DynamicCluster.Builder builderForValue)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • addAllDynamicWarmingClusters

        public ClustersConfigDump.Builder addAllDynamicWarmingClusters​(java.lang.Iterable<? extends ClustersConfigDump.DynamicCluster> values)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • clearDynamicWarmingClusters

        public ClustersConfigDump.Builder clearDynamicWarmingClusters()
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • removeDynamicWarmingClusters

        public ClustersConfigDump.Builder removeDynamicWarmingClusters​(int index)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • getDynamicWarmingClustersBuilder

        public ClustersConfigDump.DynamicCluster.Builder getDynamicWarmingClustersBuilder​(int index)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • getDynamicWarmingClustersOrBuilder

        public ClustersConfigDump.DynamicClusterOrBuilder getDynamicWarmingClustersOrBuilder​(int index)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
        Specified by:
        getDynamicWarmingClustersOrBuilder in interface ClustersConfigDumpOrBuilder
      • getDynamicWarmingClustersOrBuilderList

        public java.util.List<? extends ClustersConfigDump.DynamicClusterOrBuilder> getDynamicWarmingClustersOrBuilderList()
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
        Specified by:
        getDynamicWarmingClustersOrBuilderList in interface ClustersConfigDumpOrBuilder
      • addDynamicWarmingClustersBuilder

        public ClustersConfigDump.DynamicCluster.Builder addDynamicWarmingClustersBuilder()
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • addDynamicWarmingClustersBuilder

        public ClustersConfigDump.DynamicCluster.Builder addDynamicWarmingClustersBuilder​(int index)
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
      • getDynamicWarmingClustersBuilderList

        public java.util.List<ClustersConfigDump.DynamicCluster.Builder> getDynamicWarmingClustersBuilderList()
         The dynamically loaded warming clusters. These are clusters that are currently undergoing
         warming in preparation to service data plane traffic. Note that if attempting to recreate an
         Envoy configuration from a configuration dump, the warming clusters should generally be
         discarded.
         
        repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;