- [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#SCHEMA_REPRESENTATION)
- [Table](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Table)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Table.SCHEMA_REPRESENTATION)
- [Row](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Row)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Row.SCHEMA_REPRESENTATION)
- [Conversation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Conversation)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Conversation.SCHEMA_REPRESENTATION)
- [ConversationMessage](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ConversationMessage)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ConversationMessage.SCHEMA_REPRESENTATION)
- [MessagePart](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessagePart)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessagePart.SCHEMA_REPRESENTATION)
- [MessageType](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessageType)
- [BatchContentItem](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#BatchContentItem)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#BatchContentItem.SCHEMA_REPRESENTATION)
- [StringValueBatch](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#StringValueBatch)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#StringValueBatch.SCHEMA_REPRESENTATION)
- [ContentMetadata](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ContentMetadata)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ContentMetadata.SCHEMA_REPRESENTATION)
- [KeyValueMetadataProperty](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#KeyValueMetadataProperty)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#KeyValueMetadataProperty.SCHEMA_REPRESENTATION)
- [FileLabel](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#FileLabel)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#FileLabel.SCHEMA_REPRESENTATION)
- [SensitivityLabelMetadata](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#SensitivityLabelMetadata)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#SensitivityLabelMetadata.SCHEMA_REPRESENTATION)
- [GoogleDriveLabelMetadata](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#GoogleDriveLabelMetadata)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#GoogleDriveLabelMetadata.SCHEMA_REPRESENTATION)
- [LabelFieldMetadata](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#LabelFieldMetadata)
  - [JSON representation](https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#LabelFieldMetadata.SCHEMA_REPRESENTATION)

Type of content to inspect.

| JSON representation |
|---|
| ``` { "contentMetadata": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ContentMetadata`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "value": string, "table": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Table`) }, "byteItem": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ByteContentItem`) }, "conversation": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Conversation`) }, "batchContentItem": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#BatchContentItem`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `contentMetadata` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ContentMetadata`)`` User provided metadata for the content. |
| Data of the item either in the byte array or UTF-8 string form, or table. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `value` | `string` String data to inspect or redact. |
| `table` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Table`)`` Structured content for inspection. See <https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table> to learn more. |
| `byteItem` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ByteContentItem`)`` Content data to inspect or redact. Replaces `type` and `data`. |
| `conversation` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Conversation`)`` Represents a conversation (either complete or a slice). It is assumed that all included messages are contiguous and ordered in chronological order. |
| `batchContentItem` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#BatchContentItem`)`` Represents a batch of items to inspect. |
| End of mutually exclusive fields. ||

## Table

Structured content to inspect. Up to 50,000 `Value`s per request allowed. See <https://docs.cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table> to learn more.

| JSON representation |
|---|
| ``` { "headers": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/FieldId`) } ], "rows": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Row`) } ] } ``` |

| Fields ||
|---|---|
| `headers[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/FieldId`)`` Headers of the table. |
| `rows[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#Row`)`` Rows of the table. |

## Row

Values of the row.

| JSON representation |
|---|
| ``` { "values": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/Value`) } ] } ``` |

| Fields ||
|---|---|
| `values[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/Value`)`` Individual cells. |

## Conversation

Complete conversation or slice of a conversation. It is assumed that all included messages are contiguous and ordered in chronological order.

| JSON representation |
|---|
| ``` { "messages": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ConversationMessage`) } ] } ``` |

| Fields ||
|---|---|
| `messages[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#ConversationMessage`)`` Messages exchanged within this conversation. The maximum number of messages allowed is 50k. The order of the messages is assumed to be chronological and will be used to index findings in the response. |

## ConversationMessage

Single message in a conversation.

| JSON representation |
|---|
| ``` { "content": string, "messageParts": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessagePart`) } ], "messageType": enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessageType`), "participantId": string } ``` |

| Fields ||
|---|---|
| `content (deprecated)` | `string` > [!WARNING] > This item is deprecated! Deprecated: Use `messageParts` instead. The contents of this message. Only one of `content` and `messageParts` can be set. |
| `messageParts[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessagePart`)`` Optional. The parts of the message. Restricted to being at most a single text item. Only one of `content` and `messageParts` can be set. |
| `messageType` | ``enum (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#MessageType`)`` The type of message. |
| `participantId` | `string` Optional. The identifier of the participant, for example 'test-user' or 'gemini'. The participant ID can contain lowercase letters, numbers, and hyphens; that is, it must match the regular expression: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. The maximum length is 63 characters. |

## MessagePart

A part of a conversation message.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "text": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The content of the message part. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `text` | `string` String content for text-based messages. |
| End of mutually exclusive fields. ||

## MessageType

The type of message. New values can be added in the future.

| Enums ||
|---|---|
| `MESSAGE_TYPE_UNSPECIFIED` | Unused. |
| `CONTENT` | Message contains content to be inspected. |
| `CONTEXT` | Message contains context only and will not have findings reported from it during inspection or redacted from it during de-identification. |

## BatchContentItem

Represents a batch of content to inspect or redact.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "stringValueBatch": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#StringValueBatch`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Represents the batch to inspect or redact. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `stringValueBatch` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#StringValueBatch`)`` Optional. Represents a batch of string values to inspect or redact. |
| End of mutually exclusive fields. ||

## StringValueBatch

Represents a batch of string values to inspect or redact.

| JSON representation |
|---|
| ``` { "values": [ string ] } ``` |

| Fields ||
|---|---|
| `values[]` | `string` Optional. Represents string data to inspect or redact. |

## ContentMetadata

Metadata on content to be scanned.

| JSON representation |
|---|
| ``` { "properties": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#KeyValueMetadataProperty`) } ], "fileLabels": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#FileLabel`) } ] } ``` |

| Fields ||
|---|---|
| `properties[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#KeyValueMetadataProperty`)`` User provided key-value pairs of content metadata. |
| `fileLabels[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#FileLabel`)`` Optional. The file labels associated with the content. |

## KeyValueMetadataProperty

A key-value pair in the Metadata.

| JSON representation |
|---|
| ``` { "key": string, "value": string } ``` |

| Fields ||
|---|---|
| `key` | `string` The key of the property. |
| `value` | `string` The value of the property. |

## FileLabel

Represents a file label.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "sensitivityLabel": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#SensitivityLabelMetadata`) }, "googleDriveLabel": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#GoogleDriveLabelMetadata`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The type of file label. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `sensitivityLabel` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#SensitivityLabelMetadata`)`` Sensitivity labels published by Microsoft. |
| `googleDriveLabel` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#GoogleDriveLabelMetadata`)`` Google Drive labels published by Google. |
| End of mutually exclusive fields. ||

## SensitivityLabelMetadata

Sensitivity labels published by Microsoft.

| JSON representation |
|---|
| ``` { "guid": string } ``` |

| Fields ||
|---|---|
| `guid` | `string` Required. The GUID of the sensitivity label. |

## GoogleDriveLabelMetadata

Google Drive labels published by Google.

| JSON representation |
|---|
| ``` { "labelId": string, "labelFields": [ { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#LabelFieldMetadata`) } ] } ``` |

| Fields ||
|---|---|
| `labelId` | `string` The [label ID](https://developers.google.com/workspace/drive/labels/guides/overview) of the Google Drive label. |
| `labelFields[]` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/ContentItem#LabelFieldMetadata`)`` The field values of the Google Drive label |

## LabelFieldMetadata

The field values of the Google Drive label

| JSON representation |
|---|
| ``` { "id": string, "value": { object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/Value`) } } ``` |

| Fields ||
|---|---|
| `id` | `string` The identifier of the Label Field. |
| `value` | ``object (`https://docs.cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/Value`)`` The value of the Label Field. |