@org.apache.thrift.annotation.Nullable
  public static TTypeId findByValue(int value) { 
    switch (value) {
      case 0:
        return BOOLEAN_TYPE;
      case 1:
        return TINYINT_TYPE;
      case 2:
        return SMALLINT_TYPE;
      case 3:
        return INT_TYPE;
      case 4:
        return BIGINT_TYPE;
      case 5:
        return FLOAT_TYPE;
      case 6:
        return DOUBLE_TYPE;
      case 7:
        return STRING_TYPE;
      case 8:
        return TIMESTAMP_TYPE;
      case 9:
        return BINARY_TYPE;
      case 10:
        return ARRAY_TYPE;
      case 11:
        return MAP_TYPE;
      case 12:
        return STRUCT_TYPE;
      case 13:
        return UNION_TYPE;
      case 14:
        return USER_DEFINED_TYPE;
      case 15:
        return DECIMAL_TYPE;
      case 16:
        return NULL_TYPE;
      case 17:
        return DATE_TYPE;
      case 18:
        return VARCHAR_TYPE;
      case 19:
        return CHAR_TYPE;
      case 20:
        return INTERVAL_YEAR_MONTH_TYPE;
      case 21:
        return INTERVAL_DAY_TIME_TYPE;
      case 22:
        return TIMESTAMPLOCALTZ_TYPE;
      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.
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TTypeId.java