# BatchAnnotateFilesResponse

A list of file annotation responses.

| JSON representation |
|---|
| ``` { "responses": [ { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/BatchAnnotateFilesResponse#AnnotateFileResponse`) } ] } ``` |

| Fields ||
|---|---|
| `responses[]` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/BatchAnnotateFilesResponse#AnnotateFileResponse`)`` The list of file annotation responses, each response corresponding to each AnnotateFileRequest in BatchAnnotateFilesRequest. |

## AnnotateFileResponse

Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.

| JSON representation |
|---|
| ``` { "inputConfig": { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/InputConfig`) }, "responses": [ { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/AnnotateImageResponse`) } ], "totalPages": integer, "error": { object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/Status`) } } ``` |

| Fields ||
|---|---|
| `inputConfig` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/InputConfig`)`` Information about the file for which this response is generated. |
| `responses[]` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/AnnotateImageResponse`)`` Individual responses to images found within the file. This field will be empty if the `error` field is set. |
| `totalPages` | `integer` This field gives the total number of pages in the file. |
| `error` | ``object (`https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/apis/service/vertex-ai/ocr/rest/v1/Status`)`` If set, represents the error message for the failed request. The `responses` field will not be set in this case. |