所需輸出位置和中繼資料。
| JSON 表示法 | |
|---|---|
{
"gcsDestination": {
object( |
|
| 欄位 | |
|---|---|
gcsDestination |
要寫入輸出內容的 Google Cloud Storage 位置。 |
batchSize |
Google Cloud Storage 中每個輸出 JSON 檔案可放入的回應 proto 數量上限。有效範圍為 [1, 100]。如未指定,則預設值為 20。 舉例來說,如果 PDF 檔案有 100 頁,就會產生 100 個回應 proto。如果 目前 batchSize 僅適用於 GcsDestination,未來可能會支援其他輸出設定。 |
GcsDestination
要寫入輸出的 Google Cloud Storage 位置。
| JSON 表示法 | |
|---|---|
{ "uri": string } |
|
| 欄位 | |
|---|---|
uri |
儲存結果的 Google Cloud Storage URI。結果會以 JSON 格式呈現,並在前面加上對應的輸入 URI。這個欄位可以代表單一檔案,也可以是多個輸出的前置字元。前置字串結尾須為 範例:
如果是多個輸出,每個回應仍是 AnnotateFileResponse,其中包含完整 AnnotateImageResponse 清單的部分子集。舉例來說,如果輸出 JSON 過大,溢位到多個分片檔案中,就可能發生這種情況。 |