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 ( |
| 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 |
Plaintext string data for sanitization. |
byteItem |
Data provided in the form of bytes. |
| End of mutually exclusive fields. | |
ByteDataItem
Represents Byte Data item.
| JSON representation |
|---|
{
"byteDataType": enum ( |
| Fields | |
|---|---|
byteDataType |
Required. The type of byte data |
byteData |
Required. Bytes Data A base64-encoded string. |
fileLabel |
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 |
|
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 |