InputConfig

所需的输入位置和元数据。

JSON 表示法
{
  "gcsSource": {
    object (GcsSource)
  },
  "content": string,
  "mimeType": string
}
字段
gcsSource

object (GcsSource)

要从中读取输入的 Google Cloud Storage 位置。

content

string (bytes format)

文件内容,由字节流表示。注意:与所有 bytes 字段一样,协议缓冲区使用纯二进制表示法,而 JSON 表示法使用 Base64。

目前,此字段仅适用于 files.annotate 请求,而不适用于 files.asyncBatchAnnotate 请求。

使用 base64 编码的字符串。

mimeType

string

文件的类型。目前仅支持“application/pdf”“image/tiff”和“image/gif”。不支持通配符。

GcsSource

将从中读取输入的 Google Cloud Storage 位置。

JSON 表示法
{
  "uri": string
}
字段
uri

string

输入文件的 Google Cloud Storage URI。此参数只能是 Google Cloud Storage 对象。目前不支持使用通配符。