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.
Generated from protobuf enum FETCH = 2;
GOOGLE_SHEETS
Value: 3
The file is fetched from Google Sheets specified in the
fetch_uri.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant DataSources V1 Client - Class FileInputType (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-datasources/latest/V1.FileInput.FileInputType)\n- [0.6.0](/php/docs/reference/shopping-merchant-datasources/0.6.0/V1.FileInput.FileInputType)\n- [0.5.1](/php/docs/reference/shopping-merchant-datasources/0.5.1/V1.FileInput.FileInputType)\n- [0.4.0](/php/docs/reference/shopping-merchant-datasources/0.4.0/V1.FileInput.FileInputType)\n- [0.3.1](/php/docs/reference/shopping-merchant-datasources/0.3.1/V1.FileInput.FileInputType)\n- [0.2.3](/php/docs/reference/shopping-merchant-datasources/0.2.3/V1.FileInput.FileInputType)\n- [0.1.0](/php/docs/reference/shopping-merchant-datasources/0.1.0/V1.FileInput.FileInputType) \nReference documentation and code samples for the Google Shopping Merchant DataSources V1 Client class FileInputType.\n\nThe method of file delivery.\n\nProtobuf type `google.shopping.merchant.datasources.v1.FileInput.FileInputType`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ DataSources \\\\ V1 \\\\ FileInput\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### FILE_INPUT_TYPE_UNSPECIFIED\n\n Value: 0\n\nFile input type unspecified.\n\nGenerated from protobuf enum `FILE_INPUT_TYPE_UNSPECIFIED = 0;`\n\n### UPLOAD\n\n Value: 1\n\nThe file is uploaded through SFTP, Google Cloud Storage or manually in\nthe Merchant Center.\n\nGenerated from protobuf enum `UPLOAD = 1;`\n\n### FETCH\n\n Value: 2\n\nThe file is fetched from the configured\n[fetch_uri](/php/docs/reference/shopping-merchant-datasources/latest/V1.FileInput.FetchSettings#_Google_Shopping_Merchant_DataSources_V1_FileInput_FetchSettings__getFetchUri__).\n\nGenerated from protobuf enum `FETCH = 2;`\n\n### GOOGLE_SHEETS\n\n Value: 3\n\nThe file is fetched from Google Sheets specified in the\n[fetch_uri](/php/docs/reference/shopping-merchant-datasources/latest/V1.FileInput.FetchSettings#_Google_Shopping_Merchant_DataSources_V1_FileInput_FetchSettings__getFetchUri__).\n\nHowever, you can't set up `GOOGLE_SHEETS` as a data source through the\nAPI. To add `GOOGLE_SHEETS` as a data source through the Merchant Center,\nsee [Add products to Merchant\nCenter](https://support.google.com/merchants/answer/12158053).\n\nGenerated from protobuf enum `GOOGLE_SHEETS = 3;`"]]