- [Resource: FileUpload](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#FileUpload)
  - [JSON representation](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#FileUpload.SCHEMA_REPRESENTATION)
- [ProcessingState](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#ProcessingState)
- [Issue](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#Issue)
  - [JSON representation](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#Issue.SCHEMA_REPRESENTATION)
- [Severity](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#Severity)
- [Methods](https://developers.google.com/merchant/api/reference/rest/datasources_v1/accounts.dataSources.fileUploads.md.txt#METHODS_SUMMARY)

## Resource: FileUpload

The file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.

For more information, see [Monitor and trigger data source processing](https://developers.google.com/merchant/api/guides/data-sources/monitor-status.md.txt) and [Manage various data source types](https://developers.google.com/merchant/api/guides/data-sources/manage-various-data-sources.md.txt).

| JSON representation |
|---|
| ``` { "name": string, "dataSourceId": string, "processingState": enum (`ProcessingState`), "issues": [ { object (`Issue`) } ], "itemsTotal": string, "itemsCreated": string, "itemsUpdated": string, "uploadTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The name of the data source file upload. Format: `{datasource.name=accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}}` |
| `dataSourceId` | `string (int64 format)` Output only. The data source id. |
| `processingState` | ``enum (`ProcessingState`)`` Output only. The processing state of the data source. |
| `issues[]` | ``object (`Issue`)`` Output only. The list of issues occurring in the data source. |
| `itemsTotal` | `string (int64 format)` Output only. The number of items in the data source that were processed. |
| `itemsCreated` | `string (int64 format)` Output only. The number of items in the data source that were created. |
| `itemsUpdated` | `string (int64 format)` Output only. The number of items in the data source that were updated. |
| `uploadTime` | ``string (`Timestamp` format)`` Output only. The date at which the file of the data source was uploaded. |

## ProcessingState

The processing state of the data source.

| Enums ||
|---|---|
| `PROCESSING_STATE_UNSPECIFIED` | Processing state unspecified. |
| `FAILED` | The data source could not be processed or all the items had errors. |
| `IN_PROGRESS` | The data source is being processed. |
| `SUCCEEDED` | The data source was processed successfully, though some items might have had errors. |

## Issue

An error occurring in the data source, like "invalid price".

| JSON representation |
|---|
| ``` { "title": string, "description": string, "code": string, "count": string, "severity": enum (`Severity`), "documentationUri": string } ``` |

| Fields ||
|---|---|
| `title` | `string` Output only. The title of the issue, for example, "Item too big". |
| `description` | `string` Output only. The error description, for example, "Your data source contains items which have too many attributes, or are too big. These items will be dropped". |
| `code` | `string` Output only. The code of the error, for example, "validation/invalid_value". Returns "?" if the code is unknown. |
| `count` | `string (int64 format)` Output only. The number of occurrences of the error in the file upload. |
| `severity` | ``enum (`Severity`)`` Output only. The severity of the issue. |
| `documentationUri` | `string` Output only. Link to the documentation explaining the issue in more details, if available. |

## Severity

The severity of the issue.

| Enums ||
|---|---|
| `SEVERITY_UNSPECIFIED` | Severity unspecified. |
| `WARNING` | The issue is the warning. |
| `ERROR` | The issue is an error. |

| ## Methods ||
|---|---|
| ### `get` | Gets the latest data source file upload. |