com.pingcap.tidb.tipb.Event Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace.proto
package com.pingcap.tidb.tipb;
/**
* Protobuf enum {@code tipb.Event}
*/
public enum Event
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Unknown = 0;
*/
Unknown(0),
/**
* TiKvCoprGetRequest = 1000;
*/
TiKvCoprGetRequest(1000),
/**
* TiKvCoprHandleRequest = 1001;
*/
TiKvCoprHandleRequest(1001),
/**
* TiKvCoprScheduleTask = 1002;
*/
TiKvCoprScheduleTask(1002),
/**
* TiKvCoprGetSnapshot = 1003;
*/
TiKvCoprGetSnapshot(1003),
/**
* TiKvCoprExecuteDagRunner = 1004;
*/
TiKvCoprExecuteDagRunner(1004),
/**
* TiKvCoprExecuteBatchDagRunner = 1005;
*/
TiKvCoprExecuteBatchDagRunner(1005),
;
/**
* Unknown = 0;
*/
public static final int Unknown_VALUE = 0;
/**
* TiKvCoprGetRequest = 1000;
*/
public static final int TiKvCoprGetRequest_VALUE = 1000;
/**
* TiKvCoprHandleRequest = 1001;
*/
public static final int TiKvCoprHandleRequest_VALUE = 1001;
/**
* TiKvCoprScheduleTask = 1002;
*/
public static final int TiKvCoprScheduleTask_VALUE = 1002;
/**
* TiKvCoprGetSnapshot = 1003;
*/
public static final int TiKvCoprGetSnapshot_VALUE = 1003;
/**
* TiKvCoprExecuteDagRunner = 1004;
*/
public static final int TiKvCoprExecuteDagRunner_VALUE = 1004;
/**
* TiKvCoprExecuteBatchDagRunner = 1005;
*/
public static final int TiKvCoprExecuteBatchDagRunner_VALUE = 1005;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Event valueOf(int value) {
return forNumber(value);
}
public static Event forNumber(int value) {
switch (value) {
case 0: return Unknown;
case 1000: return TiKvCoprGetRequest;
case 1001: return TiKvCoprHandleRequest;
case 1002: return TiKvCoprScheduleTask;
case 1003: return TiKvCoprGetSnapshot;
case 1004: return TiKvCoprExecuteDagRunner;
case 1005: return TiKvCoprExecuteBatchDagRunner;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Event> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Event findValueByNumber(int number) {
return Event.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
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.pingcap.tidb.tipb.Trace.getDescriptor().getEnumTypes().get(0);
}
private static final Event[] VALUES = values();
public static Event valueOf(
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 Event(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:tipb.Event)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy