public static Set<PrivilegeType> toPriType(Set<Integer> priSet) {
    Set<PrivilegeType> typeSet = new HashSet<>();
    for (Integer pri : priSet) {
      typeSet.add(PrivilegeType.values()[pri]);
    }
    return typeSet;
  }
This enum class contains all available privileges in IoTDB.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/entity/PrivilegeType.java