- JSON representation
- Table
- Row
- Conversation
- ConversationMessage
- MessageType
- BatchContentItem
- StringValueBatch
- ContentMetadata
- KeyValueMetadataProperty
Type of content to inspect.
| JSON representation |
|---|
{ "contentMetadata" : { object ( |
data_item
. Data of the item either in the byte array or UTF-8 string form, or table. data_item
can be only one of the following:value
string
String data to inspect or redact.
table
object (
Table
)
Structured content for inspection. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table to learn more.
byteItem
object (
ByteContentItem
)
Content data to inspect or redact. Replaces type
and data
.
conversation
object (
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 (
BatchContentItem
)
Represents a batch of items to inspect.
Table
Structured content to inspect. Up to 50,000 Value
s per request allowed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
to learn more.
| JSON representation |
|---|
{ "headers" : [ { object ( |
| Fields | |
|---|---|
headers[]
|
Headers of the table. |
rows[]
|
Rows of the table. |
Row
Values of the row.
| JSON representation |
|---|
{
"values"
:
[
{
object (
|
| Fields | |
|---|---|
values[]
|
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 (
|
| Fields |
|---|
ConversationMessage
Single message in a conversation.
| JSON representation |
|---|
{
"content"
:
string
,
"messageType"
:
enum (
|
| Fields | |
|---|---|
content
|
The contents of this message. |
participantId
|
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: |
MessageType
The type of message. New values may 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 |
|---|
{ // Union field |
batch
. Represents the batch to inspect or redact. batch
can be only one of the following:stringValueBatch
object (
StringValueBatch
)
Optional. Represents a batch of string values to inspect or redact.
StringValueBatch
Represents a batch of string values to inspect or redact.
| JSON representation |
|---|
{ "values" : [ string ] } |
| Fields | |
|---|---|
values[]
|
Optional. Represents string data to inspect or redact. |
ContentMetadata
Metadata on content to be scanned.
| JSON representation |
|---|
{
"properties"
:
[
{
object (
|
| Fields | |
|---|---|
properties[]
|
User provided key-value pairs of content metadata. |
KeyValueMetadataProperty
A key-value pair in the Metadata.
| JSON representation |
|---|
{ "key" : string , "value" : string } |
| Fields | |
|---|---|
key
|
The key of the property. |
value
|
The value of the property. |

