# Datatype

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.Datatype/

Datatype enumeration.

- **Full name:** `MFiles.Datatype`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-DATATYPE_UNINITIALIZED"></a>`DATATYPE_UNINITIALIZED` | 0 | Unknown type (not initialized to any type). |
| <a id="v-DATATYPE_TEXT"></a>`DATATYPE_TEXT` | 1 | Text. |
| <a id="v-DATATYPE_INTEGER"></a>`DATATYPE_INTEGER` | 2 | 32-bit integer |
| <a id="v-DATATYPE_REAL_NUMBER"></a>`DATATYPE_REAL_NUMBER` | 3 | Double-precision floating point. |
| <a id="v-DATATYPE_DECIMAL_NUMBER"></a>`DATATYPE_DECIMAL_NUMBER` | 4 | Fixed-precision number. |
| <a id="v-DATATYPE_DATE"></a>`DATATYPE_DATE` | 5 | Date. |
| <a id="v-DATATYPE_TIME"></a>`DATATYPE_TIME` | 6 | Time. |
| <a id="v-DATATYPE_TIMESTAMP"></a>`DATATYPE_TIMESTAMP` | 7 | Timestamp. |
| <a id="v-DATATYPE_BOOLEAN"></a>`DATATYPE_BOOLEAN` | 8 | Boolean. |
| <a id="v-DATATYPE_LOOKUP"></a>`DATATYPE_LOOKUP` | 9 | Lookup (from a value list). |
| <a id="v-DATATYPE_MULTI_SELECT_LOOKUP"></a>`DATATYPE_MULTI_SELECT_LOOKUP` | 10 | Multiple selection from a value list. |
| <a id="v-DATATYPE_INTEGER64"></a>`DATATYPE_INTEGER64` | 11 | 64-bit integer. Not used in document properties. |
| <a id="v-DATATYPE_FILETIME"></a>`DATATYPE_FILETIME` | 12 | A Windows FILETIME (64-bit integer). Not used in object properties. |
| <a id="v-DATATYPE_MULTI_LINE_TEXT"></a>`DATATYPE_MULTI_LINE_TEXT` | 13 | Multi-line text. |
| <a id="v-DATATYPE_ACL"></a>`DATATYPE_ACL` | 14 | Access Control List. |
| <a id="v-DATATYPE_BINARY"></a>`DATATYPE_BINARY` | 15 | Byte array. |

<a id="used-in-fields"></a>

## Used in fields

- [`ExpressionUnion.TypedValueData.datatype`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExpressionUnion/index.md#t-TypedValueData-datatype): The data type of the values to match.
- [`OCRBlock.data_type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCRBlock/index.md#f-data_type): Data type for the result.
- [`PropertyDef.data_type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.PropertyDef/index.md#f-data_type): The data type of the values. Lookup properties use `DATATYPE_LOOKUP` (one item) or `DATATYPE_MULTI_SELECT_LOOKUP` (several items).
- [`TypedValue.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TypedValue/index.md#f-type): The data type of the value.
- [`TypedValueWithMetadata.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TypedValueWithMetadata/index.md#f-type): Data type. Note. Name of the property can't be isNull because name collision with Objective-C reserved name.
