ContentItem

Type of content to inspect.

JSON representation
{
  "contentMetadata": {
    object (ContentMetadata)
  },

  // Union field data_item can be only one of the following:
  "value": string,
  "table": {
    object (Table)
  },
  "byteItem": {
    object (ByteContentItem)
  }
  // End of list of possible types for union field data_item.
}
Fields
contentMetadata

object (ContentMetadata)

User provided metadata for the content.

Union field 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.

Table

Structured content to inspect. Up to 50,000 Values 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 (FieldId)
    }
  ],
  "rows": [
    {
      object (Row)
    }
  ]
}
Fields
headers[]

object (FieldId)

Headers of the table.

rows[]

object (Row)

Rows of the table.

Row

Values of the row.

JSON representation
{
  "values": [
    {
      object (Value)
    }
  ]
}
Fields
values[]

object (Value)

Individual cells.

ContentMetadata

Metadata on content to be scanned.

JSON representation
{
  "properties": [
    {
      object (KeyValueMetadataProperty)
    }
  ]
}
Fields
properties[]

object (KeyValueMetadataProperty)

User provided key-value pairs of content metadata.

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.