# BatchAnnotateFilesResponse

- [JSON representation](https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/BatchAnnotateFilesResponse#SCHEMA_REPRESENTATION)
- [AnnotateFileResponse](https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/BatchAnnotateFilesResponse#AnnotateFileResponse)
  - [JSON representation](https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/BatchAnnotateFilesResponse#AnnotateFileResponse.SCHEMA_REPRESENTATION)

A list of file annotation responses.

| JSON representation ||
|---|---|
| ``` { "responses": [ { object (`https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/BatchAnnotateFilesResponse#AnnotateFileResponse`) } ] } ``` |

| Fields ||
|---|---|
| `responses[]` | ``object (`https://docs.cloud.google.com/vision/product-search/docs/reference/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/vision/product-search/docs/reference/rest/v1/InputConfig`) }, "responses": [ { object (`https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/AnnotateImageResponse`) } ], "totalPages": number, "error": { object (`https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/Status`) } } ``` |

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