
alluxio.grpc.TaskStatus Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/block_worker.proto
package alluxio.grpc;
/**
* Protobuf enum {@code alluxio.grpc.block.TaskStatus}
*/
public enum TaskStatus
implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
/**
* SUCCESS = 0;
*/
SUCCESS(0),
/**
* FAILURE = 1;
*/
FAILURE(1),
/**
* PARTIAL_FAILURE = 2;
*/
PARTIAL_FAILURE(2),
;
/**
* SUCCESS = 0;
*/
public static final int SUCCESS_VALUE = 0;
/**
* FAILURE = 1;
*/
public static final int FAILURE_VALUE = 1;
/**
* PARTIAL_FAILURE = 2;
*/
public static final int PARTIAL_FAILURE_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 TaskStatus 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 TaskStatus forNumber(int value) {
switch (value) {
case 0: return SUCCESS;
case 1: return FAILURE;
case 2: return PARTIAL_FAILURE;
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<
TaskStatus> internalValueMap =
new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
public TaskStatus findValueByNumber(int number) {
return TaskStatus.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.BlockWorkerProto.getDescriptor().getEnumTypes().get(1);
}
private static final TaskStatus[] VALUES = values();
public static TaskStatus 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 TaskStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.grpc.block.TaskStatus)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy