Google Shopping Merchant DataSources V1beta Client - Class FileInput (0.2.2)

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 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
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 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