- [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ByteContentItem#SCHEMA_REPRESENTATION)
- [BytesType](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ByteContentItem#BytesType)

Container for bytes to inspect or redact.

| JSON representation |
|---|
| ``` { "type": enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ByteContentItem#BytesType`), "data": string } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ByteContentItem#BytesType`)`` The type of data stored in the bytes string. Default will be TEXT_UTF8. |
| `data` | `string (https://developers.google.com/discovery/v1/type-format format)` Content data to inspect or redact. A base64-encoded string. |

## BytesType

The type of data being sent for inspection. To learn more, see [Supported file types](https://docs.cloud.google.com/sensitive-data-protection/docs/supported-file-types).

Only the first frame of each multiframe image is inspected. Metadata and other frames aren't inspected.

| Enums ||
|---|---|
| `BYTES_TYPE_UNSPECIFIED` | Unused |
| `IMAGE` | Any image type. |
| `IMAGE_JPEG` | jpeg |
| `IMAGE_BMP` | bmp |
| `IMAGE_PNG` | png |
| `IMAGE_SVG` | svg |
| `TEXT_UTF8` | plain text |
| `WORD_DOCUMENT` | docx, docm, dotx, dotm |
| `PDF` | pdf |
| `POWERPOINT_DOCUMENT` | pptx, pptm, potx, potm, pot |
| `EXCEL_DOCUMENT` | xlsx, xlsm, xltx, xltm |
| `AVRO` | avro |
| `CSV` | csv |
| `TSV` | tsv |
| `AUDIO` | Audio file types. Only used for profiling. |
| `VIDEO` | Video file types. |
| `EXECUTABLE` | Executable file types. Only used for profiling. |
| `AI_MODEL` | AI model file types. Only used for profiling. |
| `IMAGE_TIFF` | TIFF image format. |