/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ import com.facebook.thrift.IntRangeSet; import java.util.Map; import java.util.HashMap; @SuppressWarnings({ "unused" }) public enum StandardProtocol implements com.facebook.thrift.TEnum { Custom(0), Binary(1), Compact(2), Json(3), SimpleJson(4); private final int value; private StandardProtocol(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 StandardProtocol findByValue(int value) { switch (value) { case 0: return Custom; case 1: return Binary; case 2: return Compact; case 3: return Json; case 4: return SimpleJson; default: return null; } } }