Optional. The URL where the data source file can be fetched. Google
Merchant Center supports automatic scheduled uploads using the HTTP,
HTTPS or SFTP protocols, so the value will need to be a valid link using
one of those three protocols. Immutable for Google Sheets files.
Optional. The URL where the data source file can be fetched. Google
Merchant Center supports automatic scheduled uploads using the HTTP,
HTTPS or SFTP protocols, so the value will need to be a valid link using
one of those three protocols. Immutable for Google Sheets files.
[[["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-08-16 UTC."],[],[],null,["# Interface FileInput.FetchSettingsOrBuilder (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/java/docs/reference/google-shopping-merchant-datasources/latest/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.26.0](/java/docs/reference/google-shopping-merchant-datasources/0.26.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.24.0](/java/docs/reference/google-shopping-merchant-datasources/0.24.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.23.0](/java/docs/reference/google-shopping-merchant-datasources/0.23.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.20.0](/java/docs/reference/google-shopping-merchant-datasources/0.20.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.19.0](/java/docs/reference/google-shopping-merchant-datasources/0.19.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.18.0](/java/docs/reference/google-shopping-merchant-datasources/0.18.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.16.0](/java/docs/reference/google-shopping-merchant-datasources/0.16.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.15.0](/java/docs/reference/google-shopping-merchant-datasources/0.15.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.14.0](/java/docs/reference/google-shopping-merchant-datasources/0.14.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.13.0](/java/docs/reference/google-shopping-merchant-datasources/0.13.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.12.0](/java/docs/reference/google-shopping-merchant-datasources/0.12.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.11.0](/java/docs/reference/google-shopping-merchant-datasources/0.11.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.10.0](/java/docs/reference/google-shopping-merchant-datasources/0.10.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.9.0](/java/docs/reference/google-shopping-merchant-datasources/0.9.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.8.0](/java/docs/reference/google-shopping-merchant-datasources/0.8.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.7.0](/java/docs/reference/google-shopping-merchant-datasources/0.7.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.5.0](/java/docs/reference/google-shopping-merchant-datasources/0.5.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.4.0](/java/docs/reference/google-shopping-merchant-datasources/0.4.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.3.0](/java/docs/reference/google-shopping-merchant-datasources/0.3.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.2.0](/java/docs/reference/google-shopping-merchant-datasources/0.2.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder)\n- [0.1.0](/java/docs/reference/google-shopping-merchant-datasources/0.1.0/com.google.shopping.merchant.datasources.v1.FileInput.FetchSettingsOrBuilder) \n\n public static interface FileInput.FetchSettingsOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getDayOfMonth()\n\n public abstract int getDayOfMonth()\n\nOptional. The day of the month when the data source file should be\nfetched (1-31). This field can only be set for monthly frequency.\n\n`int32 day_of_month = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getDayOfWeek()\n\n public abstract DayOfWeek getDayOfWeek()\n\nOptional. The day of the week when the data source file should be\nfetched. This field can only be set for weekly frequency.\n\n`.google.type.DayOfWeek day_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getDayOfWeekValue()\n\n public abstract int getDayOfWeekValue()\n\nOptional. The day of the week when the data source file should be\nfetched. This field can only be set for weekly frequency.\n\n`.google.type.DayOfWeek day_of_week = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getEnabled()\n\n public abstract boolean getEnabled()\n\nOptional. Enables or pauses the fetch schedule.\n\n`bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getFetchUri()\n\n public abstract String getFetchUri()\n\nOptional. The URL where the data source file can be fetched. Google\nMerchant Center supports automatic scheduled uploads using the HTTP,\nHTTPS or SFTP protocols, so the value will need to be a valid link using\none of those three protocols. Immutable for Google Sheets files.\n\n`string fetch_uri = 7 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getFetchUriBytes()\n\n public abstract ByteString getFetchUriBytes()\n\nOptional. The URL where the data source file can be fetched. Google\nMerchant Center supports automatic scheduled uploads using the HTTP,\nHTTPS or SFTP protocols, so the value will need to be a valid link using\none of those three protocols. Immutable for Google Sheets files.\n\n`string fetch_uri = 7 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getFrequency()\n\n public abstract FileInput.FetchSettings.Frequency getFrequency()\n\nRequired. The frequency describing fetch schedule.\n\n`\n.google.shopping.merchant.datasources.v1.FileInput.FetchSettings.Frequency frequency = 6 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getFrequencyValue()\n\n public abstract int getFrequencyValue()\n\nRequired. The frequency describing fetch schedule.\n\n`\n.google.shopping.merchant.datasources.v1.FileInput.FetchSettings.Frequency frequency = 6 [(.google.api.field_behavior) = REQUIRED];\n`\n\n### getPassword()\n\n public abstract String getPassword()\n\nOptional. An optional password for\nfetch_uri.\nUsed for [submitting data sources through\nSFTP](https://support.google.com/merchants/answer/13813117).\n\n`string password = 9 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getPasswordBytes()\n\n public abstract ByteString getPasswordBytes()\n\nOptional. An optional password for\nfetch_uri.\nUsed for [submitting data sources through\nSFTP](https://support.google.com/merchants/answer/13813117).\n\n`string password = 9 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getTimeOfDay()\n\n public abstract TimeOfDay getTimeOfDay()\n\nOptional. The hour of the day when the data source file should be\nfetched. Minutes and seconds are not supported and will be ignored.\n\n`.google.type.TimeOfDay time_of_day = 3 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getTimeOfDayOrBuilder()\n\n public abstract TimeOfDayOrBuilder getTimeOfDayOrBuilder()\n\nOptional. The hour of the day when the data source file should be\nfetched. Minutes and seconds are not supported and will be ignored.\n\n`.google.type.TimeOfDay time_of_day = 3 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getTimeZone()\n\n public abstract String getTimeZone()\n\nOptional. [Time zone](https://cldr.unicode.org) used for schedule. UTC by\ndefault. For example, \"America/Los_Angeles\".\n\n`string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getTimeZoneBytes()\n\n public abstract ByteString getTimeZoneBytes()\n\nOptional. [Time zone](https://cldr.unicode.org) used for schedule. UTC by\ndefault. For example, \"America/Los_Angeles\".\n\n`string time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getUsername()\n\n public abstract String getUsername()\n\nOptional. An optional user name for\nfetch_uri.\nUsed for [submitting data sources through\nSFTP](https://support.google.com/merchants/answer/13813117).\n\n`string username = 8 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getUsernameBytes()\n\n public abstract ByteString getUsernameBytes()\n\nOptional. An optional user name for\nfetch_uri.\nUsed for [submitting data sources through\nSFTP](https://support.google.com/merchants/answer/13813117).\n\n`string username = 8 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasTimeOfDay()\n\n public abstract boolean hasTimeOfDay()\n\nOptional. The hour of the day when the data source file should be\nfetched. Minutes and seconds are not supported and will be ignored.\n\n`.google.type.TimeOfDay time_of_day = 3 [(.google.api.field_behavior) = OPTIONAL];\n`"]]