@org.apache.thrift.annotation.Nullable
  public static TThriftServerType findByValue(int value) { 
    switch (value) {
      case 1:
        return ONE;
      case 2:
        return TWO;
      default:
        return null;
    }
  }
Find a the enum type by its integer value, as defined in the Thrift IDL.
@return null if the value is not found.
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TThriftServerType.java