
alluxio.grpc.NodeState Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/journal_master.proto
package alluxio.grpc;
/**
* Protobuf enum {@code alluxio.grpc.journal.NodeState}
*/
public enum NodeState
implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
/**
* STANDBY = 0;
*/
STANDBY(0),
/**
* PRIMARY = 1;
*/
PRIMARY(1),
;
/**
* STANDBY = 0;
*/
public static final int STANDBY_VALUE = 0;
/**
* PRIMARY = 1;
*/
public static final int PRIMARY_VALUE = 1;
public final int getNumber() {
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 NodeState 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 NodeState forNumber(int value) {
switch (value) {
case 0: return STANDBY;
case 1: return PRIMARY;
default: return null;
}
}
public static alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap<
NodeState> internalValueMap =
new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
public NodeState findValueByNumber(int number) {
return NodeState.forNumber(number);
}
};
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return alluxio.grpc.JournalMasterProto.getDescriptor().getEnumTypes().get(2);
}
private static final NodeState[] VALUES = values();
public static NodeState valueOf(
alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private NodeState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.grpc.journal.NodeState)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy