All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/admin/v2alpha/config_dump.proto

package io.envoyproxy.envoy.admin.v2alpha;

/**
 * 
 * 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 {@code envoy.admin.v2alpha.ClustersConfigDump} */ public final class ClustersConfigDump extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.ClustersConfigDump) ClustersConfigDumpOrBuilder { private static final long serialVersionUID = 0L; // Use ClustersConfigDump.newBuilder() to construct. private ClustersConfigDump(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ClustersConfigDump() { versionInfo_ = ""; staticClusters_ = java.util.Collections.emptyList(); dynamicActiveClusters_ = java.util.Collections.emptyList(); dynamicWarmingClusters_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ClustersConfigDump(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ClustersConfigDump( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); versionInfo_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { staticClusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } staticClusters_.add( input.readMessage(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { dynamicActiveClusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } dynamicActiveClusters_.add( input.readMessage(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { dynamicWarmingClusters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } dynamicWarmingClusters_.add( input.readMessage(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { staticClusters_ = java.util.Collections.unmodifiableList(staticClusters_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { dynamicActiveClusters_ = java.util.Collections.unmodifiableList(dynamicActiveClusters_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { dynamicWarmingClusters_ = java.util.Collections.unmodifiableList(dynamicWarmingClusters_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.class, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder.class); } public interface StaticClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) com.google.protobuf.MessageOrBuilder { /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 1; * @return Whether the cluster field is set. */ boolean hasCluster(); /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 1; * @return The cluster. */ com.google.protobuf.Any getCluster(); /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 1; */ com.google.protobuf.AnyOrBuilder getClusterOrBuilder(); /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 2; * @return Whether the lastUpdated field is set. */ boolean hasLastUpdated(); /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 2; * @return The lastUpdated. */ com.google.protobuf.Timestamp getLastUpdated(); /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 2; */ com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder(); } /** *
   * Describes a statically loaded cluster.
   * 
* * Protobuf type {@code envoy.admin.v2alpha.ClustersConfigDump.StaticCluster} */ public static final class StaticCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) StaticClusterOrBuilder { private static final long serialVersionUID = 0L; // Use StaticCluster.newBuilder() to construct. private StaticCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StaticCluster() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StaticCluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StaticCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Any.Builder subBuilder = null; if (cluster_ != null) { subBuilder = cluster_.toBuilder(); } cluster_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cluster_); cluster_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastUpdated_ != null) { subBuilder = lastUpdated_.toBuilder(); } lastUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastUpdated_); lastUpdated_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_StaticCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_StaticCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.class, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder.class); } public static final int CLUSTER_FIELD_NUMBER = 1; private com.google.protobuf.Any cluster_; /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 1; * @return Whether the cluster field is set. */ @java.lang.Override public boolean hasCluster() { return cluster_ != null; } /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 1; * @return The cluster. */ @java.lang.Override public com.google.protobuf.Any getCluster() { return cluster_ == null ? com.google.protobuf.Any.getDefaultInstance() : cluster_; } /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 1; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getClusterOrBuilder() { return getCluster(); } public static final int LAST_UPDATED_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp lastUpdated_; /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 2; * @return Whether the lastUpdated field is set. */ @java.lang.Override public boolean hasLastUpdated() { return lastUpdated_ != null; } /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 2; * @return The lastUpdated. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdated() { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() { return getLastUpdated(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cluster_ != null) { output.writeMessage(1, getCluster()); } if (lastUpdated_ != null) { output.writeMessage(2, getLastUpdated()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCluster()); } if (lastUpdated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLastUpdated()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster other = (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) obj; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { if (!getCluster() .equals(other.getCluster())) return false; } if (hasLastUpdated() != other.hasLastUpdated()) return false; if (hasLastUpdated()) { if (!getLastUpdated() .equals(other.getLastUpdated())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } if (hasLastUpdated()) { hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER; hash = (53 * hash) + getLastUpdated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Describes a statically loaded cluster.
     * 
* * Protobuf type {@code envoy.admin.v2alpha.ClustersConfigDump.StaticCluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_StaticCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_StaticCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.class, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (clusterBuilder_ == null) { cluster_ = null; } else { cluster_ = null; clusterBuilder_ = null; } if (lastUpdatedBuilder_ == null) { lastUpdated_ = null; } else { lastUpdated_ = null; lastUpdatedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_StaticCluster_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster build() { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster buildPartial() { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster result = new io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster(this); if (clusterBuilder_ == null) { result.cluster_ = cluster_; } else { result.cluster_ = clusterBuilder_.build(); } if (lastUpdatedBuilder_ == null) { result.lastUpdated_ = lastUpdated_; } else { result.lastUpdated_ = lastUpdatedBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) { return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster other) { if (other == io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.getDefaultInstance()) return this; if (other.hasCluster()) { mergeCluster(other.getCluster()); } if (other.hasLastUpdated()) { mergeLastUpdated(other.getLastUpdated()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Any cluster_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clusterBuilder_; /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; * @return The cluster. */ public com.google.protobuf.Any getCluster() { if (clusterBuilder_ == null) { return cluster_ == null ? com.google.protobuf.Any.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ public Builder setCluster(com.google.protobuf.Any value) { if (clusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cluster_ = value; onChanged(); } else { clusterBuilder_.setMessage(value); } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ public Builder setCluster( com.google.protobuf.Any.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); } else { clusterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ public Builder mergeCluster(com.google.protobuf.Any value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = com.google.protobuf.Any.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } onChanged(); } else { clusterBuilder_.mergeFrom(value); } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ public Builder clearCluster() { if (clusterBuilder_ == null) { cluster_ = null; onChanged(); } else { cluster_ = null; clusterBuilder_ = null; } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ public com.google.protobuf.Any.Builder getClusterBuilder() { onChanged(); return getClusterFieldBuilder().getBuilder(); } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ public com.google.protobuf.AnyOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { return cluster_ == null ? com.google.protobuf.Any.getDefaultInstance() : cluster_; } } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } private com.google.protobuf.Timestamp lastUpdated_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_; /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; * @return Whether the lastUpdated field is set. */ public boolean hasLastUpdated() { return lastUpdatedBuilder_ != null || lastUpdated_ != null; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; * @return The lastUpdated. */ public com.google.protobuf.Timestamp getLastUpdated() { if (lastUpdatedBuilder_ == null) { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } else { return lastUpdatedBuilder_.getMessage(); } } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ public Builder setLastUpdated(com.google.protobuf.Timestamp value) { if (lastUpdatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdated_ = value; onChanged(); } else { lastUpdatedBuilder_.setMessage(value); } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ public Builder setLastUpdated( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdatedBuilder_ == null) { lastUpdated_ = builderForValue.build(); onChanged(); } else { lastUpdatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) { if (lastUpdatedBuilder_ == null) { if (lastUpdated_ != null) { lastUpdated_ = com.google.protobuf.Timestamp.newBuilder(lastUpdated_).mergeFrom(value).buildPartial(); } else { lastUpdated_ = value; } onChanged(); } else { lastUpdatedBuilder_.mergeFrom(value); } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ public Builder clearLastUpdated() { if (lastUpdatedBuilder_ == null) { lastUpdated_ = null; onChanged(); } else { lastUpdated_ = null; lastUpdatedBuilder_ = null; } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() { onChanged(); return getLastUpdatedFieldBuilder().getBuilder(); } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() { if (lastUpdatedBuilder_ != null) { return lastUpdatedBuilder_.getMessageOrBuilder(); } else { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdatedFieldBuilder() { if (lastUpdatedBuilder_ == null) { lastUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdated(), getParentForChildren(), isClean()); lastUpdated_ = null; } return lastUpdatedBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) } // @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.ClustersConfigDump.StaticCluster) private static final io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster(); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StaticCluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StaticCluster(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DynamicClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) com.google.protobuf.MessageOrBuilder { /** *
     * This is the per-resource version information. This version is currently taken from the
     * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
     * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
     * the API.
     * 
* * string version_info = 1; * @return The versionInfo. */ java.lang.String getVersionInfo(); /** *
     * This is the per-resource version information. This version is currently taken from the
     * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
     * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
     * the API.
     * 
* * string version_info = 1; * @return The bytes for versionInfo. */ com.google.protobuf.ByteString getVersionInfoBytes(); /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 2; * @return Whether the cluster field is set. */ boolean hasCluster(); /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 2; * @return The cluster. */ com.google.protobuf.Any getCluster(); /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 2; */ com.google.protobuf.AnyOrBuilder getClusterOrBuilder(); /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 3; * @return Whether the lastUpdated field is set. */ boolean hasLastUpdated(); /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 3; * @return The lastUpdated. */ com.google.protobuf.Timestamp getLastUpdated(); /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 3; */ com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder(); } /** *
   * Describes a dynamically loaded cluster via the CDS API.
   * 
* * Protobuf type {@code envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster} */ public static final class DynamicCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) DynamicClusterOrBuilder { private static final long serialVersionUID = 0L; // Use DynamicCluster.newBuilder() to construct. private DynamicCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DynamicCluster() { versionInfo_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DynamicCluster(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DynamicCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); versionInfo_ = s; break; } case 18: { com.google.protobuf.Any.Builder subBuilder = null; if (cluster_ != null) { subBuilder = cluster_.toBuilder(); } cluster_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cluster_); cluster_ = subBuilder.buildPartial(); } break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (lastUpdated_ != null) { subBuilder = lastUpdated_.toBuilder(); } lastUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lastUpdated_); lastUpdated_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_DynamicCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_DynamicCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.class, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder.class); } public static final int VERSION_INFO_FIELD_NUMBER = 1; private volatile java.lang.Object versionInfo_; /** *
     * This is the per-resource version information. This version is currently taken from the
     * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
     * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
     * the API.
     * 
* * string version_info = 1; * @return The versionInfo. */ @java.lang.Override public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** *
     * This is the per-resource version information. This version is currently taken from the
     * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
     * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
     * the API.
     * 
* * string version_info = 1; * @return The bytes for versionInfo. */ @java.lang.Override public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLUSTER_FIELD_NUMBER = 2; private com.google.protobuf.Any cluster_; /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 2; * @return Whether the cluster field is set. */ @java.lang.Override public boolean hasCluster() { return cluster_ != null; } /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 2; * @return The cluster. */ @java.lang.Override public com.google.protobuf.Any getCluster() { return cluster_ == null ? com.google.protobuf.Any.getDefaultInstance() : cluster_; } /** *
     * The cluster config.
     * 
* * .google.protobuf.Any cluster = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getClusterOrBuilder() { return getCluster(); } public static final int LAST_UPDATED_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastUpdated_; /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 3; * @return Whether the lastUpdated field is set. */ @java.lang.Override public boolean hasLastUpdated() { return lastUpdated_ != null; } /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 3; * @return The lastUpdated. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdated() { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } /** *
     * The timestamp when the Cluster was last updated.
     * 
* * .google.protobuf.Timestamp last_updated = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() { return getLastUpdated(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_); } if (cluster_ != null) { output.writeMessage(2, getCluster()); } if (lastUpdated_ != null) { output.writeMessage(3, getLastUpdated()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_); } if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCluster()); } if (lastUpdated_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLastUpdated()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster other = (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) obj; if (!getVersionInfo() .equals(other.getVersionInfo())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { if (!getCluster() .equals(other.getCluster())) return false; } if (hasLastUpdated() != other.hasLastUpdated()) return false; if (hasLastUpdated()) { if (!getLastUpdated() .equals(other.getLastUpdated())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getVersionInfo().hashCode(); if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } if (hasLastUpdated()) { hash = (37 * hash) + LAST_UPDATED_FIELD_NUMBER; hash = (53 * hash) + getLastUpdated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Describes a dynamically loaded cluster via the CDS API.
     * 
* * Protobuf type {@code envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_DynamicCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_DynamicCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.class, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); versionInfo_ = ""; if (clusterBuilder_ == null) { cluster_ = null; } else { cluster_ = null; clusterBuilder_ = null; } if (lastUpdatedBuilder_ == null) { lastUpdated_ = null; } else { lastUpdated_ = null; lastUpdatedBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_DynamicCluster_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster build() { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster buildPartial() { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster result = new io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster(this); result.versionInfo_ = versionInfo_; if (clusterBuilder_ == null) { result.cluster_ = cluster_; } else { result.cluster_ = clusterBuilder_.build(); } if (lastUpdatedBuilder_ == null) { result.lastUpdated_ = lastUpdated_; } else { result.lastUpdated_ = lastUpdatedBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) { return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster other) { if (other == io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.getDefaultInstance()) return this; if (!other.getVersionInfo().isEmpty()) { versionInfo_ = other.versionInfo_; onChanged(); } if (other.hasCluster()) { mergeCluster(other.getCluster()); } if (other.hasLastUpdated()) { mergeLastUpdated(other.getLastUpdated()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object versionInfo_ = ""; /** *
       * This is the per-resource version information. This version is currently taken from the
       * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
       * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       * the API.
       * 
* * string version_info = 1; * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * This is the per-resource version information. This version is currently taken from the
       * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
       * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       * the API.
       * 
* * string version_info = 1; * @return The bytes for versionInfo. */ public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * This is the per-resource version information. This version is currently taken from the
       * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
       * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       * the API.
       * 
* * string version_info = 1; * @param value The versionInfo to set. * @return This builder for chaining. */ public Builder setVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionInfo_ = value; onChanged(); return this; } /** *
       * This is the per-resource version information. This version is currently taken from the
       * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
       * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       * the API.
       * 
* * string version_info = 1; * @return This builder for chaining. */ public Builder clearVersionInfo() { versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** *
       * This is the per-resource version information. This version is currently taken from the
       * :ref:`version_info <envoy_api_field_DiscoveryResponse.version_info>` field at the time
       * that the cluster was loaded. In the future, discrete per-cluster versions may be supported by
       * the API.
       * 
* * string version_info = 1; * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ public Builder setVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionInfo_ = value; onChanged(); return this; } private com.google.protobuf.Any cluster_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> clusterBuilder_; /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; * @return The cluster. */ public com.google.protobuf.Any getCluster() { if (clusterBuilder_ == null) { return cluster_ == null ? com.google.protobuf.Any.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ public Builder setCluster(com.google.protobuf.Any value) { if (clusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cluster_ = value; onChanged(); } else { clusterBuilder_.setMessage(value); } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ public Builder setCluster( com.google.protobuf.Any.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); } else { clusterBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ public Builder mergeCluster(com.google.protobuf.Any value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = com.google.protobuf.Any.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } onChanged(); } else { clusterBuilder_.mergeFrom(value); } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ public Builder clearCluster() { if (clusterBuilder_ == null) { cluster_ = null; onChanged(); } else { cluster_ = null; clusterBuilder_ = null; } return this; } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ public com.google.protobuf.Any.Builder getClusterBuilder() { onChanged(); return getClusterFieldBuilder().getBuilder(); } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ public com.google.protobuf.AnyOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { return cluster_ == null ? com.google.protobuf.Any.getDefaultInstance() : cluster_; } } /** *
       * The cluster config.
       * 
* * .google.protobuf.Any cluster = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } private com.google.protobuf.Timestamp lastUpdated_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_; /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; * @return Whether the lastUpdated field is set. */ public boolean hasLastUpdated() { return lastUpdatedBuilder_ != null || lastUpdated_ != null; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; * @return The lastUpdated. */ public com.google.protobuf.Timestamp getLastUpdated() { if (lastUpdatedBuilder_ == null) { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } else { return lastUpdatedBuilder_.getMessage(); } } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ public Builder setLastUpdated(com.google.protobuf.Timestamp value) { if (lastUpdatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdated_ = value; onChanged(); } else { lastUpdatedBuilder_.setMessage(value); } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ public Builder setLastUpdated( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdatedBuilder_ == null) { lastUpdated_ = builderForValue.build(); onChanged(); } else { lastUpdatedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) { if (lastUpdatedBuilder_ == null) { if (lastUpdated_ != null) { lastUpdated_ = com.google.protobuf.Timestamp.newBuilder(lastUpdated_).mergeFrom(value).buildPartial(); } else { lastUpdated_ = value; } onChanged(); } else { lastUpdatedBuilder_.mergeFrom(value); } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ public Builder clearLastUpdated() { if (lastUpdatedBuilder_ == null) { lastUpdated_ = null; onChanged(); } else { lastUpdated_ = null; lastUpdatedBuilder_ = null; } return this; } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() { onChanged(); return getLastUpdatedFieldBuilder().getBuilder(); } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() { if (lastUpdatedBuilder_ != null) { return lastUpdatedBuilder_.getMessageOrBuilder(); } else { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } } /** *
       * The timestamp when the Cluster was last updated.
       * 
* * .google.protobuf.Timestamp last_updated = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdatedFieldBuilder() { if (lastUpdatedBuilder_ == null) { lastUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdated(), getParentForChildren(), isClean()); lastUpdated_ = null; } return lastUpdatedBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) } // @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster) private static final io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster(); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DynamicCluster parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DynamicCluster(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VERSION_INFO_FIELD_NUMBER = 1; private volatile java.lang.Object versionInfo_; /** *
   * This is the :ref:`version_info <envoy_api_field_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; * @return The versionInfo. */ @java.lang.Override public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } } /** *
   * This is the :ref:`version_info <envoy_api_field_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; * @return The bytes for versionInfo. */ @java.lang.Override public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATIC_CLUSTERS_FIELD_NUMBER = 2; private java.util.List staticClusters_; /** *
   * The statically loaded cluster configs.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ @java.lang.Override public java.util.List getStaticClustersList() { return staticClusters_; } /** *
   * The statically loaded cluster configs.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ @java.lang.Override public java.util.List getStaticClustersOrBuilderList() { return staticClusters_; } /** *
   * The statically loaded cluster configs.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ @java.lang.Override public int getStaticClustersCount() { return staticClusters_.size(); } /** *
   * The statically loaded cluster configs.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster getStaticClusters(int index) { return staticClusters_.get(index); } /** *
   * The statically loaded cluster configs.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticClusterOrBuilder getStaticClustersOrBuilder( int index) { return staticClusters_.get(index); } public static final int DYNAMIC_ACTIVE_CLUSTERS_FIELD_NUMBER = 3; private java.util.List dynamicActiveClusters_; /** *
   * The dynamically loaded active clusters. These are clusters that are available to service
   * data plane traffic.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ @java.lang.Override public java.util.List getDynamicActiveClustersList() { return dynamicActiveClusters_; } /** *
   * The dynamically loaded active clusters. These are clusters that are available to service
   * data plane traffic.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ @java.lang.Override public java.util.List getDynamicActiveClustersOrBuilderList() { return dynamicActiveClusters_; } /** *
   * The dynamically loaded active clusters. These are clusters that are available to service
   * data plane traffic.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ @java.lang.Override public int getDynamicActiveClustersCount() { return dynamicActiveClusters_.size(); } /** *
   * The dynamically loaded active clusters. These are clusters that are available to service
   * data plane traffic.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDynamicActiveClusters(int index) { return dynamicActiveClusters_.get(index); } /** *
   * The dynamically loaded active clusters. These are clusters that are available to service
   * data plane traffic.
   * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder getDynamicActiveClustersOrBuilder( int index) { return dynamicActiveClusters_.get(index); } public static final int DYNAMIC_WARMING_CLUSTERS_FIELD_NUMBER = 4; private java.util.List dynamicWarmingClusters_; /** *
   * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ @java.lang.Override public java.util.List getDynamicWarmingClustersList() { return dynamicWarmingClusters_; } /** *
   * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ @java.lang.Override public java.util.List getDynamicWarmingClustersOrBuilderList() { return dynamicWarmingClusters_; } /** *
   * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ @java.lang.Override public int getDynamicWarmingClustersCount() { return dynamicWarmingClusters_.size(); } /** *
   * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDynamicWarmingClusters(int index) { return dynamicWarmingClusters_.get(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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder getDynamicWarmingClustersOrBuilder( int index) { return dynamicWarmingClusters_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, versionInfo_); } for (int i = 0; i < staticClusters_.size(); i++) { output.writeMessage(2, staticClusters_.get(i)); } for (int i = 0; i < dynamicActiveClusters_.size(); i++) { output.writeMessage(3, dynamicActiveClusters_.get(i)); } for (int i = 0; i < dynamicWarmingClusters_.size(); i++) { output.writeMessage(4, dynamicWarmingClusters_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(versionInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, versionInfo_); } for (int i = 0; i < staticClusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, staticClusters_.get(i)); } for (int i = 0; i < dynamicActiveClusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dynamicActiveClusters_.get(i)); } for (int i = 0; i < dynamicWarmingClusters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, dynamicWarmingClusters_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump)) { return super.equals(obj); } io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump other = (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) obj; if (!getVersionInfo() .equals(other.getVersionInfo())) return false; if (!getStaticClustersList() .equals(other.getStaticClustersList())) return false; if (!getDynamicActiveClustersList() .equals(other.getDynamicActiveClustersList())) return false; if (!getDynamicWarmingClustersList() .equals(other.getDynamicWarmingClustersList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_INFO_FIELD_NUMBER; hash = (53 * hash) + getVersionInfo().hashCode(); if (getStaticClustersCount() > 0) { hash = (37 * hash) + STATIC_CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getStaticClustersList().hashCode(); } if (getDynamicActiveClustersCount() > 0) { hash = (37 * hash) + DYNAMIC_ACTIVE_CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getDynamicActiveClustersList().hashCode(); } if (getDynamicWarmingClustersCount() > 0) { hash = (37 * hash) + DYNAMIC_WARMING_CLUSTERS_FIELD_NUMBER; hash = (53 * hash) + getDynamicWarmingClustersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * 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 {@code envoy.admin.v2alpha.ClustersConfigDump} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.admin.v2alpha.ClustersConfigDump) io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDumpOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.class, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.Builder.class); } // Construct using io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStaticClustersFieldBuilder(); getDynamicActiveClustersFieldBuilder(); getDynamicWarmingClustersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); versionInfo_ = ""; if (staticClustersBuilder_ == null) { staticClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { staticClustersBuilder_.clear(); } if (dynamicActiveClustersBuilder_ == null) { dynamicActiveClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { dynamicActiveClustersBuilder_.clear(); } if (dynamicWarmingClustersBuilder_ == null) { dynamicWarmingClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { dynamicWarmingClustersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.admin.v2alpha.ConfigDumpProto.internal_static_envoy_admin_v2alpha_ClustersConfigDump_descriptor; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump getDefaultInstanceForType() { return io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump build() { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump buildPartial() { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump result = new io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump(this); int from_bitField0_ = bitField0_; result.versionInfo_ = versionInfo_; if (staticClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { staticClusters_ = java.util.Collections.unmodifiableList(staticClusters_); bitField0_ = (bitField0_ & ~0x00000001); } result.staticClusters_ = staticClusters_; } else { result.staticClusters_ = staticClustersBuilder_.build(); } if (dynamicActiveClustersBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { dynamicActiveClusters_ = java.util.Collections.unmodifiableList(dynamicActiveClusters_); bitField0_ = (bitField0_ & ~0x00000002); } result.dynamicActiveClusters_ = dynamicActiveClusters_; } else { result.dynamicActiveClusters_ = dynamicActiveClustersBuilder_.build(); } if (dynamicWarmingClustersBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { dynamicWarmingClusters_ = java.util.Collections.unmodifiableList(dynamicWarmingClusters_); bitField0_ = (bitField0_ & ~0x00000004); } result.dynamicWarmingClusters_ = dynamicWarmingClusters_; } else { result.dynamicWarmingClusters_ = dynamicWarmingClustersBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) { return mergeFrom((io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump other) { if (other == io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.getDefaultInstance()) return this; if (!other.getVersionInfo().isEmpty()) { versionInfo_ = other.versionInfo_; onChanged(); } if (staticClustersBuilder_ == null) { if (!other.staticClusters_.isEmpty()) { if (staticClusters_.isEmpty()) { staticClusters_ = other.staticClusters_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStaticClustersIsMutable(); staticClusters_.addAll(other.staticClusters_); } onChanged(); } } else { if (!other.staticClusters_.isEmpty()) { if (staticClustersBuilder_.isEmpty()) { staticClustersBuilder_.dispose(); staticClustersBuilder_ = null; staticClusters_ = other.staticClusters_; bitField0_ = (bitField0_ & ~0x00000001); staticClustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStaticClustersFieldBuilder() : null; } else { staticClustersBuilder_.addAllMessages(other.staticClusters_); } } } if (dynamicActiveClustersBuilder_ == null) { if (!other.dynamicActiveClusters_.isEmpty()) { if (dynamicActiveClusters_.isEmpty()) { dynamicActiveClusters_ = other.dynamicActiveClusters_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.addAll(other.dynamicActiveClusters_); } onChanged(); } } else { if (!other.dynamicActiveClusters_.isEmpty()) { if (dynamicActiveClustersBuilder_.isEmpty()) { dynamicActiveClustersBuilder_.dispose(); dynamicActiveClustersBuilder_ = null; dynamicActiveClusters_ = other.dynamicActiveClusters_; bitField0_ = (bitField0_ & ~0x00000002); dynamicActiveClustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDynamicActiveClustersFieldBuilder() : null; } else { dynamicActiveClustersBuilder_.addAllMessages(other.dynamicActiveClusters_); } } } if (dynamicWarmingClustersBuilder_ == null) { if (!other.dynamicWarmingClusters_.isEmpty()) { if (dynamicWarmingClusters_.isEmpty()) { dynamicWarmingClusters_ = other.dynamicWarmingClusters_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.addAll(other.dynamicWarmingClusters_); } onChanged(); } } else { if (!other.dynamicWarmingClusters_.isEmpty()) { if (dynamicWarmingClustersBuilder_.isEmpty()) { dynamicWarmingClustersBuilder_.dispose(); dynamicWarmingClustersBuilder_ = null; dynamicWarmingClusters_ = other.dynamicWarmingClusters_; bitField0_ = (bitField0_ & ~0x00000004); dynamicWarmingClustersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDynamicWarmingClustersFieldBuilder() : null; } else { dynamicWarmingClustersBuilder_.addAllMessages(other.dynamicWarmingClusters_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object versionInfo_ = ""; /** *
     * This is the :ref:`version_info <envoy_api_field_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; * @return The versionInfo. */ public java.lang.String getVersionInfo() { java.lang.Object ref = versionInfo_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); versionInfo_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This is the :ref:`version_info <envoy_api_field_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; * @return The bytes for versionInfo. */ public com.google.protobuf.ByteString getVersionInfoBytes() { java.lang.Object ref = versionInfo_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionInfo_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This is the :ref:`version_info <envoy_api_field_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; * @param value The versionInfo to set. * @return This builder for chaining. */ public Builder setVersionInfo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } versionInfo_ = value; onChanged(); return this; } /** *
     * This is the :ref:`version_info <envoy_api_field_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; * @return This builder for chaining. */ public Builder clearVersionInfo() { versionInfo_ = getDefaultInstance().getVersionInfo(); onChanged(); return this; } /** *
     * This is the :ref:`version_info <envoy_api_field_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; * @param value The bytes for versionInfo to set. * @return This builder for chaining. */ public Builder setVersionInfoBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); versionInfo_ = value; onChanged(); return this; } private java.util.List staticClusters_ = java.util.Collections.emptyList(); private void ensureStaticClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { staticClusters_ = new java.util.ArrayList(staticClusters_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticClusterOrBuilder> staticClustersBuilder_; /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public java.util.List getStaticClustersList() { if (staticClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(staticClusters_); } else { return staticClustersBuilder_.getMessageList(); } } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public int getStaticClustersCount() { if (staticClustersBuilder_ == null) { return staticClusters_.size(); } else { return staticClustersBuilder_.getCount(); } } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster getStaticClusters(int index) { if (staticClustersBuilder_ == null) { return staticClusters_.get(index); } else { return staticClustersBuilder_.getMessage(index); } } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder setStaticClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster value) { if (staticClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStaticClustersIsMutable(); staticClusters_.set(index, value); onChanged(); } else { staticClustersBuilder_.setMessage(index, value); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder setStaticClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder builderForValue) { if (staticClustersBuilder_ == null) { ensureStaticClustersIsMutable(); staticClusters_.set(index, builderForValue.build()); onChanged(); } else { staticClustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder addStaticClusters(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster value) { if (staticClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStaticClustersIsMutable(); staticClusters_.add(value); onChanged(); } else { staticClustersBuilder_.addMessage(value); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder addStaticClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster value) { if (staticClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStaticClustersIsMutable(); staticClusters_.add(index, value); onChanged(); } else { staticClustersBuilder_.addMessage(index, value); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder addStaticClusters( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder builderForValue) { if (staticClustersBuilder_ == null) { ensureStaticClustersIsMutable(); staticClusters_.add(builderForValue.build()); onChanged(); } else { staticClustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder addStaticClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder builderForValue) { if (staticClustersBuilder_ == null) { ensureStaticClustersIsMutable(); staticClusters_.add(index, builderForValue.build()); onChanged(); } else { staticClustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder addAllStaticClusters( java.lang.Iterable values) { if (staticClustersBuilder_ == null) { ensureStaticClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, staticClusters_); onChanged(); } else { staticClustersBuilder_.addAllMessages(values); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder clearStaticClusters() { if (staticClustersBuilder_ == null) { staticClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { staticClustersBuilder_.clear(); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public Builder removeStaticClusters(int index) { if (staticClustersBuilder_ == null) { ensureStaticClustersIsMutable(); staticClusters_.remove(index); onChanged(); } else { staticClustersBuilder_.remove(index); } return this; } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder getStaticClustersBuilder( int index) { return getStaticClustersFieldBuilder().getBuilder(index); } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticClusterOrBuilder getStaticClustersOrBuilder( int index) { if (staticClustersBuilder_ == null) { return staticClusters_.get(index); } else { return staticClustersBuilder_.getMessageOrBuilder(index); } } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public java.util.List getStaticClustersOrBuilderList() { if (staticClustersBuilder_ != null) { return staticClustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(staticClusters_); } } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder addStaticClustersBuilder() { return getStaticClustersFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.getDefaultInstance()); } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder addStaticClustersBuilder( int index) { return getStaticClustersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.getDefaultInstance()); } /** *
     * The statically loaded cluster configs.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.StaticCluster static_clusters = 2; */ public java.util.List getStaticClustersBuilderList() { return getStaticClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticClusterOrBuilder> getStaticClustersFieldBuilder() { if (staticClustersBuilder_ == null) { staticClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.StaticClusterOrBuilder>( staticClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); staticClusters_ = null; } return staticClustersBuilder_; } private java.util.List dynamicActiveClusters_ = java.util.Collections.emptyList(); private void ensureDynamicActiveClustersIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { dynamicActiveClusters_ = new java.util.ArrayList(dynamicActiveClusters_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder> dynamicActiveClustersBuilder_; /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public java.util.List getDynamicActiveClustersList() { if (dynamicActiveClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(dynamicActiveClusters_); } else { return dynamicActiveClustersBuilder_.getMessageList(); } } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public int getDynamicActiveClustersCount() { if (dynamicActiveClustersBuilder_ == null) { return dynamicActiveClusters_.size(); } else { return dynamicActiveClustersBuilder_.getCount(); } } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDynamicActiveClusters(int index) { if (dynamicActiveClustersBuilder_ == null) { return dynamicActiveClusters_.get(index); } else { return dynamicActiveClustersBuilder_.getMessage(index); } } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder setDynamicActiveClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster value) { if (dynamicActiveClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.set(index, value); onChanged(); } else { dynamicActiveClustersBuilder_.setMessage(index, value); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder setDynamicActiveClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder builderForValue) { if (dynamicActiveClustersBuilder_ == null) { ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.set(index, builderForValue.build()); onChanged(); } else { dynamicActiveClustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder addDynamicActiveClusters(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster value) { if (dynamicActiveClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.add(value); onChanged(); } else { dynamicActiveClustersBuilder_.addMessage(value); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder addDynamicActiveClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster value) { if (dynamicActiveClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.add(index, value); onChanged(); } else { dynamicActiveClustersBuilder_.addMessage(index, value); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder addDynamicActiveClusters( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder builderForValue) { if (dynamicActiveClustersBuilder_ == null) { ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.add(builderForValue.build()); onChanged(); } else { dynamicActiveClustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder addDynamicActiveClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder builderForValue) { if (dynamicActiveClustersBuilder_ == null) { ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.add(index, builderForValue.build()); onChanged(); } else { dynamicActiveClustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder addAllDynamicActiveClusters( java.lang.Iterable values) { if (dynamicActiveClustersBuilder_ == null) { ensureDynamicActiveClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dynamicActiveClusters_); onChanged(); } else { dynamicActiveClustersBuilder_.addAllMessages(values); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder clearDynamicActiveClusters() { if (dynamicActiveClustersBuilder_ == null) { dynamicActiveClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { dynamicActiveClustersBuilder_.clear(); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public Builder removeDynamicActiveClusters(int index) { if (dynamicActiveClustersBuilder_ == null) { ensureDynamicActiveClustersIsMutable(); dynamicActiveClusters_.remove(index); onChanged(); } else { dynamicActiveClustersBuilder_.remove(index); } return this; } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder getDynamicActiveClustersBuilder( int index) { return getDynamicActiveClustersFieldBuilder().getBuilder(index); } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder getDynamicActiveClustersOrBuilder( int index) { if (dynamicActiveClustersBuilder_ == null) { return dynamicActiveClusters_.get(index); } else { return dynamicActiveClustersBuilder_.getMessageOrBuilder(index); } } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public java.util.List getDynamicActiveClustersOrBuilderList() { if (dynamicActiveClustersBuilder_ != null) { return dynamicActiveClustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dynamicActiveClusters_); } } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder addDynamicActiveClustersBuilder() { return getDynamicActiveClustersFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.getDefaultInstance()); } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder addDynamicActiveClustersBuilder( int index) { return getDynamicActiveClustersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.getDefaultInstance()); } /** *
     * The dynamically loaded active clusters. These are clusters that are available to service
     * data plane traffic.
     * 
* * repeated .envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3; */ public java.util.List getDynamicActiveClustersBuilderList() { return getDynamicActiveClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder> getDynamicActiveClustersFieldBuilder() { if (dynamicActiveClustersBuilder_ == null) { dynamicActiveClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder>( dynamicActiveClusters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); dynamicActiveClusters_ = null; } return dynamicActiveClustersBuilder_; } private java.util.List dynamicWarmingClusters_ = java.util.Collections.emptyList(); private void ensureDynamicWarmingClustersIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { dynamicWarmingClusters_ = new java.util.ArrayList(dynamicWarmingClusters_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder> dynamicWarmingClustersBuilder_; /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public java.util.List getDynamicWarmingClustersList() { if (dynamicWarmingClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(dynamicWarmingClusters_); } else { return dynamicWarmingClustersBuilder_.getMessageList(); } } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public int getDynamicWarmingClustersCount() { if (dynamicWarmingClustersBuilder_ == null) { return dynamicWarmingClusters_.size(); } else { return dynamicWarmingClustersBuilder_.getCount(); } } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster getDynamicWarmingClusters(int index) { if (dynamicWarmingClustersBuilder_ == null) { return dynamicWarmingClusters_.get(index); } else { return dynamicWarmingClustersBuilder_.getMessage(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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder setDynamicWarmingClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster value) { if (dynamicWarmingClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.set(index, value); onChanged(); } else { dynamicWarmingClustersBuilder_.setMessage(index, value); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder setDynamicWarmingClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder builderForValue) { if (dynamicWarmingClustersBuilder_ == null) { ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.set(index, builderForValue.build()); onChanged(); } else { dynamicWarmingClustersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder addDynamicWarmingClusters(io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster value) { if (dynamicWarmingClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.add(value); onChanged(); } else { dynamicWarmingClustersBuilder_.addMessage(value); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder addDynamicWarmingClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster value) { if (dynamicWarmingClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.add(index, value); onChanged(); } else { dynamicWarmingClustersBuilder_.addMessage(index, value); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder addDynamicWarmingClusters( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder builderForValue) { if (dynamicWarmingClustersBuilder_ == null) { ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.add(builderForValue.build()); onChanged(); } else { dynamicWarmingClustersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder addDynamicWarmingClusters( int index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder builderForValue) { if (dynamicWarmingClustersBuilder_ == null) { ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.add(index, builderForValue.build()); onChanged(); } else { dynamicWarmingClustersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder addAllDynamicWarmingClusters( java.lang.Iterable values) { if (dynamicWarmingClustersBuilder_ == null) { ensureDynamicWarmingClustersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dynamicWarmingClusters_); onChanged(); } else { dynamicWarmingClustersBuilder_.addAllMessages(values); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder clearDynamicWarmingClusters() { if (dynamicWarmingClustersBuilder_ == null) { dynamicWarmingClusters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { dynamicWarmingClustersBuilder_.clear(); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public Builder removeDynamicWarmingClusters(int index) { if (dynamicWarmingClustersBuilder_ == null) { ensureDynamicWarmingClustersIsMutable(); dynamicWarmingClusters_.remove(index); onChanged(); } else { dynamicWarmingClustersBuilder_.remove(index); } return this; } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder getDynamicWarmingClustersBuilder( int index) { return getDynamicWarmingClustersFieldBuilder().getBuilder(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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder getDynamicWarmingClustersOrBuilder( int index) { if (dynamicWarmingClustersBuilder_ == null) { return dynamicWarmingClusters_.get(index); } else { return dynamicWarmingClustersBuilder_.getMessageOrBuilder(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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public java.util.List getDynamicWarmingClustersOrBuilderList() { if (dynamicWarmingClustersBuilder_ != null) { return dynamicWarmingClustersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dynamicWarmingClusters_); } } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder addDynamicWarmingClustersBuilder() { return getDynamicWarmingClustersFieldBuilder().addBuilder( io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.getDefaultInstance()); } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder addDynamicWarmingClustersBuilder( int index) { return getDynamicWarmingClustersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.getDefaultInstance()); } /** *
     * 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.v2alpha.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4; */ public java.util.List getDynamicWarmingClustersBuilderList() { return getDynamicWarmingClustersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder> getDynamicWarmingClustersFieldBuilder() { if (dynamicWarmingClustersBuilder_ == null) { dynamicWarmingClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump.DynamicClusterOrBuilder>( dynamicWarmingClusters_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); dynamicWarmingClusters_ = null; } return dynamicWarmingClustersBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.admin.v2alpha.ClustersConfigDump) } // @@protoc_insertion_point(class_scope:envoy.admin.v2alpha.ClustersConfigDump) private static final io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump(); } public static io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ClustersConfigDump parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ClustersConfigDump(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.admin.v2alpha.ClustersConfigDump getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy