Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/admin/v3/config_dump_shared.proto
package io.envoyproxy.envoy.admin.v3;
/**
*
* 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.v3.ClustersConfigDump}
*/
public final class ClustersConfigDump extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.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.v3.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.v3.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.v3.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.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_ClustersConfigDump_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_ClustersConfigDump_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.class, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.Builder.class);
}
public interface StaticClusterOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.admin.v3.ClustersConfigDump.StaticCluster)
com.google.protobuf.MessageOrBuilder {
/**
*
* The cluster config.
*
*
* .google.protobuf.Any cluster = 1;
* @return Whether the cluster field is set.
*/
boolean hasCluster();
/**
*
* 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.v3.ClustersConfigDump.StaticCluster)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.ClustersConfigDump.StaticCluster)
private static final io.envoyproxy.envoy.admin.v3.ClustersConfigDump.StaticCluster DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.ClustersConfigDump.StaticCluster();
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump.StaticCluster getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DynamicClusterOrBuilder extends
// @@protoc_insertion_point(interface_extends:envoy.admin.v3.ClustersConfigDump.DynamicCluster)
com.google.protobuf.MessageOrBuilder {
/**
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.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.
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.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();
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return Whether the errorState field is set.
*/
boolean hasErrorState();
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The enum numeric value on the wire for clientStatus.
*/
int getClientStatusValue();
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
* Describes a dynamically loaded cluster via the CDS API.
* [#next-free-field: 6]
*
*
* Protobuf type {@code envoy.admin.v3.ClustersConfigDump.DynamicCluster}
*/
public static final class DynamicCluster extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.admin.v3.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_ = "";
clientStatus_ = 0;
}
@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;
}
case 34: {
io.envoyproxy.envoy.admin.v3.UpdateFailureState.Builder subBuilder = null;
if (errorState_ != null) {
subBuilder = errorState_.toBuilder();
}
errorState_ = input.readMessage(io.envoyproxy.envoy.admin.v3.UpdateFailureState.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorState_);
errorState_ = subBuilder.buildPartial();
}
break;
}
case 40: {
int rawValue = input.readEnum();
clientStatus_ = rawValue;
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.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_ClustersConfigDump_DynamicCluster_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.admin.v3.ConfigDumpSharedProto.internal_static_envoy_admin_v3_ClustersConfigDump_DynamicCluster_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster.class, io.envoyproxy.envoy.admin.v3.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_v3_api_field_service.discovery.v3.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.
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.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 timestamp when the Cluster was last updated.
*
*
* .google.protobuf.Timestamp last_updated = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() {
return getLastUpdated();
}
public static final int ERROR_STATE_FIELD_NUMBER = 4;
private io.envoyproxy.envoy.admin.v3.UpdateFailureState errorState_;
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return Whether the errorState field is set.
*/
@java.lang.Override
public boolean hasErrorState() {
return errorState_ != null;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.UpdateFailureStateOrBuilder getErrorStateOrBuilder() {
return getErrorState();
}
public static final int CLIENT_STATUS_FIELD_NUMBER = 5;
private int clientStatus_;
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The clientStatus.
*/
@java.lang.Override public io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.ClientResourceStatus result = io.envoyproxy.envoy.admin.v3.ClientResourceStatus.valueOf(clientStatus_);
return result == null ? io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNRECOGNIZED : result;
}
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());
}
if (errorState_ != null) {
output.writeMessage(4, getErrorState());
}
if (clientStatus_ != io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNKNOWN.getNumber()) {
output.writeEnum(5, clientStatus_);
}
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());
}
if (errorState_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getErrorState());
}
if (clientStatus_ != io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, clientStatus_);
}
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.v3.ClustersConfigDump.DynamicCluster)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster other = (io.envoyproxy.envoy.admin.v3.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 (hasErrorState() != other.hasErrorState()) return false;
if (hasErrorState()) {
if (!getErrorState()
.equals(other.getErrorState())) return false;
}
if (clientStatus_ != other.clientStatus_) 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();
}
if (hasErrorState()) {
hash = (37 * hash) + ERROR_STATE_FIELD_NUMBER;
hash = (53 * hash) + getErrorState().hashCode();
}
hash = (37 * hash) + CLIENT_STATUS_FIELD_NUMBER;
hash = (53 * hash) + clientStatus_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump.DynamicCluster parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump.DynamicCluster parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.v3.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.
* [#next-free-field: 6]
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.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.
*
* This is the per-resource version information. This version is currently taken from the
* :ref:`version_info <envoy_v3_api_field_service.discovery.v3.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_v3_api_field_service.discovery.v3.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_v3_api_field_service.discovery.v3.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_v3_api_field_service.discovery.v3.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;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
* @return Whether the errorState field is set.
*/
public boolean hasErrorState() {
return errorStateBuilder_ != null || errorState_ != null;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.UpdateFailureState error_state = 4;
*/
public Builder setErrorState(io.envoyproxy.envoy.admin.v3.UpdateFailureState value) {
if (errorStateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorState_ = value;
onChanged();
} else {
errorStateBuilder_.setMessage(value);
}
return this;
}
/**
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* Set if the last update failed, cleared after the next successful update.
* The ``error_state`` field contains the rejected version of this particular
* resource along with the reason and timestamp. For successfully updated or
* acknowledged resource, this field should be empty.
* [#not-implemented-hide:]
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The enum numeric value on the wire for clientStatus.
*/
@java.lang.Override public int getClientStatusValue() {
return clientStatus_;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @param value The enum numeric value on the wire for clientStatus to set.
* @return This builder for chaining.
*/
public Builder setClientStatusValue(int value) {
clientStatus_ = value;
onChanged();
return this;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return The clientStatus.
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.ClientResourceStatus getClientStatus() {
@SuppressWarnings("deprecation")
io.envoyproxy.envoy.admin.v3.ClientResourceStatus result = io.envoyproxy.envoy.admin.v3.ClientResourceStatus.valueOf(clientStatus_);
return result == null ? io.envoyproxy.envoy.admin.v3.ClientResourceStatus.UNRECOGNIZED : result;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @param value The clientStatus to set.
* @return This builder for chaining.
*/
public Builder setClientStatus(io.envoyproxy.envoy.admin.v3.ClientResourceStatus value) {
if (value == null) {
throw new NullPointerException();
}
clientStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The client status of this resource.
* [#not-implemented-hide:]
*
*
* .envoy.admin.v3.ClientResourceStatus client_status = 5;
* @return This builder for chaining.
*/
public Builder clearClientStatus() {
clientStatus_ = 0;
onChanged();
return this;
}
@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.v3.ClustersConfigDump.DynamicCluster)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.ClustersConfigDump.DynamicCluster)
private static final io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster();
}
public static io.envoyproxy.envoy.admin.v3.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.v3.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_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
*
* string version_info = 1;
* @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 dynamically loaded active clusters. These are clusters that are available to service
* data plane traffic.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_active_clusters = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.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.
*
* 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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
@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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump)) {
return super.equals(obj);
}
io.envoyproxy.envoy.admin.v3.ClustersConfigDump other = (io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.admin.v3.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.v3.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.v3.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.v3.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.
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
*
* string version_info = 1;
* @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_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
*
* string version_info = 1;
* @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_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
*
* string version_info = 1;
* @return This builder for chaining.
*/
public Builder clearVersionInfo() {
versionInfo_ = getDefaultInstance().getVersionInfo();
onChanged();
return this;
}
/**
*
* This is the :ref:`version_info <envoy_v3_api_field_service.discovery.v3.DiscoveryResponse.version_info>` in the
* last processed CDS discovery response. If there are only static bootstrap clusters, this field
* will be "".
*
*
* string version_info = 1;
* @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.v3.ClustersConfigDump.StaticCluster, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.StaticCluster.Builder, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.StaticClusterOrBuilder> staticClustersBuilder_;
/**
*
* 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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
public Builder setDynamicWarmingClusters(
int index, io.envoyproxy.envoy.admin.v3.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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
public Builder addDynamicWarmingClusters(io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
public Builder addDynamicWarmingClusters(
int index, io.envoyproxy.envoy.admin.v3.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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
public io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
public io.envoyproxy.envoy.admin.v3.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.
*
* 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.
*
* 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.
*
* The dynamically loaded warming clusters. These are clusters that are currently undergoing
* warming in preparation to service data plane traffic. Note that if attempting to recreate an
* Envoy configuration from a configuration dump, the warming clusters should generally be
* discarded.
*
*
* repeated .envoy.admin.v3.ClustersConfigDump.DynamicCluster dynamic_warming_clusters = 4;
*/
public java.util.List
getDynamicWarmingClustersBuilderList() {
return getDynamicWarmingClustersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicClusterOrBuilder>
getDynamicWarmingClustersFieldBuilder() {
if (dynamicWarmingClustersBuilder_ == null) {
dynamicWarmingClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster, io.envoyproxy.envoy.admin.v3.ClustersConfigDump.DynamicCluster.Builder, io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump)
}
// @@protoc_insertion_point(class_scope:envoy.admin.v3.ClustersConfigDump)
private static final io.envoyproxy.envoy.admin.v3.ClustersConfigDump DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.admin.v3.ClustersConfigDump();
}
public static io.envoyproxy.envoy.admin.v3.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.v3.ClustersConfigDump getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}