# Google Shopping Merchant DataSources V1 Client - Class FileInputType (2.0.0)

2.0.0 (latest) 1.3.1 1.2.1 1.1.1 1.0.0 0.6.0 0.5.1 0.4.0 0.3.1 0.2.3 0.1.0 Reference documentation and code samples for the Google Shopping Merchant DataSources V1 Client class FileInputType.

The method of file delivery.

Protobuf type `google.shopping.merchant.datasources.v1.FileInput.FileInputType`

## Namespace

Google \\ Shopping \\ Merchant \\ DataSources \\ V1 \\ FileInput

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### FILE_INPUT_TYPE_UNSPECIFIED

    Value: 0

File input type unspecified.

Generated from protobuf enum `FILE_INPUT_TYPE_UNSPECIFIED = 0;`

### UPLOAD

    Value: 1

The file is uploaded through SFTP, Google Cloud Storage or manually in
the Merchant Center.

Generated from protobuf enum `UPLOAD = 1;`

### FETCH

    Value: 2

The file is fetched from the configured
[fetch_uri](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-datasources/latest/V1.FileInput.FetchSettings#_Google_Shopping_Merchant_DataSources_V1_FileInput_FetchSettings__getFetchUri__).

Generated from protobuf enum `FETCH = 2;`

### GOOGLE_SHEETS

    Value: 3

The file is fetched from Google Sheets specified in the
[fetch_uri](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-datasources/latest/V1.FileInput.FetchSettings#_Google_Shopping_Merchant_DataSources_V1_FileInput_FetchSettings__getFetchUri__).

However, you can't set up `GOOGLE_SHEETS` as a data source through the
API. To add `GOOGLE_SHEETS` as a data source through the Merchant Center,
see [Add products to Merchant
Center](https://support.google.com/merchants/answer/12158053).

Generated from protobuf enum `GOOGLE_SHEETS = 3;`