public static DataType forNumber(int value) {
      switch (value) {
        case 0:
          return DATA_TYPE_UNSPECIFIED;
        case 1:
          return BOOL;
        case 2:
          return STRING;
        case 3:
          return FLOAT;
        case 4:
          return DOUBLE;
        case 5:
          return INT8;
        case 6:
          return INT16;
        case 7:
          return INT32;
        case 8:
          return INT64;
        case 9:
          return UINT8;
        case 10:
          return UINT16;
        case 11:
          return UINT32;
        case 12:
          return UINT64;
        default:
          return null;
      }
    }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Tensor.java