io.envoyproxy.envoy.service.status.v2.ConfigStatus Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/status/v2/csds.proto
package io.envoyproxy.envoy.service.status.v2;
/**
*
* Status of a config.
*
*
* Protobuf enum {@code envoy.service.status.v2.ConfigStatus}
*/
public enum ConfigStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Status info is not available/unknown.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* Management server has sent the config to client and received ACK.
*
*
* SYNCED = 1;
*/
SYNCED(1),
/**
*
* Config is not sent.
*
*
* NOT_SENT = 2;
*/
NOT_SENT(2),
/**
*
* Management server has sent the config to client but hasn’t received
* ACK/NACK.
*
*
* STALE = 3;
*/
STALE(3),
/**
*
* Management server has sent the config to client but received NACK.
*
*
* ERROR = 4;
*/
ERROR(4),
UNRECOGNIZED(-1),
;
/**
*
* Status info is not available/unknown.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* Management server has sent the config to client and received ACK.
*
*
* SYNCED = 1;
*/
public static final int SYNCED_VALUE = 1;
/**
*
* Config is not sent.
*
*
* NOT_SENT = 2;
*/
public static final int NOT_SENT_VALUE = 2;
/**
*
* Management server has sent the config to client but hasn’t received
* ACK/NACK.
*
*
* STALE = 3;
*/
public static final int STALE_VALUE = 3;
/**
*
* Management server has sent the config to client but received NACK.
*
*
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConfigStatus forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SYNCED;
case 2: return NOT_SENT;
case 3: return STALE;
case 4: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ConfigStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ConfigStatus findValueByNumber(int number) {
return ConfigStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.envoyproxy.envoy.service.status.v2.CsdsProto.getDescriptor().getEnumTypes().get(0);
}
private static final ConfigStatus[] VALUES = values();
public static ConfigStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ConfigStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:envoy.service.status.v2.ConfigStatus)
}