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

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

The data source for the Merchant Center account.

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

Namespace

Google \ Shopping \ Merchant \ Datasources \ V1beta

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ primary_product_data_source
↳ supplemental_product_data_source
↳ local_inventory_data_source
↳ regional_inventory_data_source
↳ promotion_data_source
↳ name
string

Identifier. The name of the data source. Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

↳ data_source_id
int|string

Output only. The data source id.

↳ display_name
string

Required. The displayed data source name in the Merchant Center UI.

↳ input
int

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

↳ file_input
Google\Shopping\Merchant\Datasources\V1beta\FileInput

Optional. The field is used only when data is managed through a file.

getPrimaryProductDataSource

Required. The primary data source for local and online products.

hasPrimaryProductDataSource

setPrimaryProductDataSource

Required. The primary data source for local and online products.

Returns
Type
Description
$this

getSupplementalProductDataSource

Required. The supplemental data source for local and online products.

hasSupplementalProductDataSource

setSupplementalProductDataSource

Required. The supplemental data source for local and online products.

Returns
Type
Description
$this

getLocalInventoryDataSource

Required. The local inventory data source.

hasLocalInventoryDataSource

setLocalInventoryDataSource

Required. The local inventory data source.

Returns
Type
Description
$this

getRegionalInventoryDataSource

Required. The regional inventory data source.

hasRegionalInventoryDataSource

setRegionalInventoryDataSource

Required. The regional inventory data source.

Returns
Type
Description
$this

getPromotionDataSource

Required. The promotion data source.

hasPromotionDataSource

setPromotionDataSource

Required. The promotion data source.

Returns
Type
Description
$this

getName

Identifier. The name of the data source.

Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

Returns
Type
Description
string

setName

Identifier. The name of the data source.

Format: {datasource.name=accounts/{account}/dataSources/{datasource}}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDataSourceId

Output only. The data source id.

Returns
Type
Description
int|string

setDataSourceId

Output only. The data source id.

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getDisplayName

Required. The displayed data source name in the Merchant Center UI.

Returns
Type
Description
string

setDisplayName

Required. The displayed data source name in the Merchant Center UI.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getInput

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

Returns
Type
Description
int

setInput

Output only. Determines the type of input to the data source. Based on the input some settings might not work. Only generic data sources can be created through the API.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getFileInput

Optional. The field is used only when data is managed through a file.

hasFileInput

clearFileInput

setFileInput

Optional. The field is used only when data is managed through a file.

Returns
Type
Description
$this

getType

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: