DataItem

Represents Data item

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,
  "byteItem": {
    object (ByteDataItem)
  }
  // End of mutually exclusive fields.
}
Fields
Either of text or bytes data. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
text

string

Plaintext string data for sanitization.

byteItem

object (ByteDataItem)

Data provided in the form of bytes.

End of mutually exclusive fields.

ByteDataItem

Represents Byte Data item.

JSON representation
{
  "byteDataType": enum (ByteItemType),
  "byteData": string,
  "fileLabel": string
}
Fields
byteDataType

enum (ByteItemType)

Required. The type of byte data

byteData

string (bytes format)

Required. Bytes Data

A base64-encoded string.

fileLabel

string

Optional. Label of the file. This is used to identify the file in the response.

ByteItemType

Option to specify the type of byte data.

Enums
BYTE_ITEM_TYPE_UNSPECIFIED Unused
PLAINTEXT_UTF8 plain text
PDF PDF
WORD_DOCUMENT DOCX, DOCM, DOTX, DOTM
EXCEL_DOCUMENT XLSX, XLSM, XLTX, XLYM
POWERPOINT_DOCUMENT PPTX, PPTM, POTX, POTM, POT
TXT TXT
CSV CSV
IMAGE IMAGE