# InputConfig

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

The desired input location and metadata.

| JSON representation ||
|---|---|
| ``` { "gcsSource": { object (`https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/InputConfig#GcsSource`) }, "content": string, "mimeType": string } ``` |

| Fields ||
|---|---|
| `gcsSource` | ``object (`https://docs.cloud.google.com/vision/product-search/docs/reference/rest/v1/InputConfig#GcsSource`)`` The Google Cloud Storage location to read the input from. |
| `content` | `string (https://developers.google.com/discovery/v1/type-format format)` File content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64. Currently, this field only works for files.annotate requests. It does not work for files.asyncBatchAnnotate requests. A base64-encoded string. <br /> |
| `mimeType` | `string` The type of the file. Currently only "application/pdf", "image/tiff" and "image/gif" are supported. Wildcards are not supported. |

## GcsSource

The Google Cloud Storage location where the input will be read from.

| JSON representation ||
|---|---|
| ``` { "uri": string } ``` |

| Fields ||
|---|---|
| `uri` | `string` Google Cloud Storage URI for the input file. This must only be a Google Cloud Storage object. Wildcards are not currently supported. |