alluxio.grpc.QuorumServerState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Shaded Alluxio Client Module for hadoop 3
// 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.QuorumServerState}
*/
public enum QuorumServerState
implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
/**
* AVAILABLE = 1;
*/
AVAILABLE(1),
/**
* UNAVAILABLE = 2;
*/
UNAVAILABLE(2),
;
/**
* AVAILABLE = 1;
*/
public static final int AVAILABLE_VALUE = 1;
/**
* UNAVAILABLE = 2;
*/
public static final int UNAVAILABLE_VALUE = 2;
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 QuorumServerState 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 QuorumServerState forNumber(int value) {
switch (value) {
case 1: return AVAILABLE;
case 2: return UNAVAILABLE;
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<
QuorumServerState> internalValueMap =
new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
public QuorumServerState findValueByNumber(int number) {
return QuorumServerState.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(0);
}
private static final QuorumServerState[] VALUES = values();
public static QuorumServerState 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 QuorumServerState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.grpc.journal.QuorumServerState)
}