com.navercorp.pinpoint.grpc.trace.PThreadState Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/ThreadDump.proto
package com.navercorp.pinpoint.grpc.trace;
/**
* Protobuf enum {@code v1.PThreadState}
*/
public enum PThreadState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* THREAD_STATE_NEW = 0;
*/
THREAD_STATE_NEW(0),
/**
* THREAD_STATE_RUNNABLE = 1;
*/
THREAD_STATE_RUNNABLE(1),
/**
* THREAD_STATE_BLOCKED = 2;
*/
THREAD_STATE_BLOCKED(2),
/**
* THREAD_STATE_WAITING = 3;
*/
THREAD_STATE_WAITING(3),
/**
* THREAD_STATE_TIMED_WAITING = 4;
*/
THREAD_STATE_TIMED_WAITING(4),
/**
* THREAD_STATE_TERMINATED = 5;
*/
THREAD_STATE_TERMINATED(5),
/**
* THREAD_STATE_UNKNOWN = 6;
*/
THREAD_STATE_UNKNOWN(6),
UNRECOGNIZED(-1),
;
/**
* THREAD_STATE_NEW = 0;
*/
public static final int THREAD_STATE_NEW_VALUE = 0;
/**
* THREAD_STATE_RUNNABLE = 1;
*/
public static final int THREAD_STATE_RUNNABLE_VALUE = 1;
/**
* THREAD_STATE_BLOCKED = 2;
*/
public static final int THREAD_STATE_BLOCKED_VALUE = 2;
/**
* THREAD_STATE_WAITING = 3;
*/
public static final int THREAD_STATE_WAITING_VALUE = 3;
/**
* THREAD_STATE_TIMED_WAITING = 4;
*/
public static final int THREAD_STATE_TIMED_WAITING_VALUE = 4;
/**
* THREAD_STATE_TERMINATED = 5;
*/
public static final int THREAD_STATE_TERMINATED_VALUE = 5;
/**
* THREAD_STATE_UNKNOWN = 6;
*/
public static final int THREAD_STATE_UNKNOWN_VALUE = 6;
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 PThreadState 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 PThreadState forNumber(int value) {
switch (value) {
case 0: return THREAD_STATE_NEW;
case 1: return THREAD_STATE_RUNNABLE;
case 2: return THREAD_STATE_BLOCKED;
case 3: return THREAD_STATE_WAITING;
case 4: return THREAD_STATE_TIMED_WAITING;
case 5: return THREAD_STATE_TERMINATED;
case 6: return THREAD_STATE_UNKNOWN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PThreadState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PThreadState findValueByNumber(int number) {
return PThreadState.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 com.navercorp.pinpoint.grpc.trace.ThreadDumpProto.getDescriptor().getEnumTypes().get(0);
}
private static final PThreadState[] VALUES = values();
public static PThreadState 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 PThreadState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:v1.PThreadState)
}