blob: b66df34cbecf87b8af4ba2ec78244802ab57b179 [file] [log] [blame]
/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.twitter.zipkin.gen;
import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;
public enum AnnotationType implements org.apache.thrift.TEnum {
BOOL(0),
BYTES(1),
I16(2),
I32(3),
I64(4),
DOUBLE(5),
STRING(6);
private final int value;
private AnnotationType(int value) {
this.value = value;
}
/**
* Get the integer value of this enum value, as defined in the Thrift IDL.
*/
public int getValue() {
return value;
}
/**
* Find a the enum type by its integer value, as defined in the Thrift IDL.
* @return null if the value is not found.
*/
public static AnnotationType findByValue(int value) {
switch (value) {
case 0:
return BOOL;
case 1:
return BYTES;
case 2:
return I16;
case 3:
return I32;
case 4:
return I64;
case 5:
return DOUBLE;
case 6:
return STRING;
default:
return null;
}
}
}