Google Shopping Merchant Datasources V1beta Client - Class FileInput (0.1.0)

Reference documentation and code samples for the Google Shopping Merchant Datasources V1beta Client class FileInput.

The data specific for file data sources. This field is empty for other data source inputs.

Generated from protobuf message google.shopping.merchant.datasources.v1beta.FileInput

Namespace

Google \ Shopping \ Merchant \ Datasources \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ fetch_settings Google\Shopping\Merchant\Datasources\V1beta\FileInput\FetchSettings

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

↳ file_name string

Optional. The file name of the data source. Required for UPLOAD file input type.

↳ file_input_type int

Output only. The type of file input.

getFetchSettings

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

Returns
Type Description
Google\Shopping\Merchant\Datasources\V1beta\FileInput\FetchSettings|null

hasFetchSettings

clearFetchSettings

setFetchSettings

Optional. Fetch details to deliver the data source. It contains settings for FETCH and GOOGLE_SHEETS file input types. The required fields vary based on the frequency of fetching.

Parameter
Name Description
var Google\Shopping\Merchant\Datasources\V1beta\FileInput\FetchSettings
Returns
Type Description
$this

getFileName

Optional. The file name of the data source. Required for UPLOAD file input type.

Returns
Type Description
string

setFileName

Optional. The file name of the data source. Required for UPLOAD file input type.

Parameter
Name Description
var string
Returns
Type Description
$this

getFileInputType

Output only. The type of file input.

Returns
Type Description
int

setFileInputType

Output only. The type of file input.

Parameter
Name Description
var int
Returns
Type Description
$this