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 \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ primary_product_data_source |
PrimaryProductDataSource
The primary data source for local and online products. |
↳ supplemental_product_data_source |
SupplementalProductDataSource
The supplemental data source for local and online products. |
↳ local_inventory_data_source |
LocalInventoryDataSource
The local inventory data source. |
↳ regional_inventory_data_source |
RegionalInventoryDataSource
The regional inventory data source. |
↳ promotion_data_source |
PromotionDataSource
The promotion data source. |
↳ product_review_data_source |
ProductReviewDataSource
The product review data source. |
↳ merchant_review_data_source |
MerchantReviewDataSource
The merchant review data source. |
↳ name |
string
Identifier. The name of the data source. Format: |
↳ 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 |
FileInput
Optional. The field is used only when data is managed through a file. |
getPrimaryProductDataSource
The primary data source for local and online products.
Returns | |
---|---|
Type | Description |
PrimaryProductDataSource|null |
hasPrimaryProductDataSource
setPrimaryProductDataSource
The primary data source for local and online products.
Parameter | |
---|---|
Name | Description |
var |
PrimaryProductDataSource
|
Returns | |
---|---|
Type | Description |
$this |
getSupplementalProductDataSource
The supplemental data source for local and online products.
Returns | |
---|---|
Type | Description |
SupplementalProductDataSource|null |
hasSupplementalProductDataSource
setSupplementalProductDataSource
The supplemental data source for local and online products.
Parameter | |
---|---|
Name | Description |
var |
SupplementalProductDataSource
|
Returns | |
---|---|
Type | Description |
$this |
getLocalInventoryDataSource
The local inventory data source.
Returns | |
---|---|
Type | Description |
LocalInventoryDataSource|null |
hasLocalInventoryDataSource
setLocalInventoryDataSource
The local inventory data source.
Parameter | |
---|---|
Name | Description |
var |
LocalInventoryDataSource
|
Returns | |
---|---|
Type | Description |
$this |
getRegionalInventoryDataSource
The regional inventory data source.
Returns | |
---|---|
Type | Description |
RegionalInventoryDataSource|null |
hasRegionalInventoryDataSource
setRegionalInventoryDataSource
The regional inventory data source.
Parameter | |
---|---|
Name | Description |
var |
RegionalInventoryDataSource
|
Returns | |
---|---|
Type | Description |
$this |
getPromotionDataSource
The promotion data source.
Returns | |
---|---|
Type | Description |
PromotionDataSource|null |
hasPromotionDataSource
setPromotionDataSource
The promotion data source.
Parameter | |
---|---|
Name | Description |
var |
PromotionDataSource
|
Returns | |
---|---|
Type | Description |
$this |
getProductReviewDataSource
The product review data source.
Returns | |
---|---|
Type | Description |
ProductReviewDataSource|null |
hasProductReviewDataSource
setProductReviewDataSource
The product review data source.
Parameter | |
---|---|
Name | Description |
var |
ProductReviewDataSource
|
Returns | |
---|---|
Type | Description |
$this |
getMerchantReviewDataSource
The merchant review data source.
Returns | |
---|---|
Type | Description |
MerchantReviewDataSource|null |
hasMerchantReviewDataSource
setMerchantReviewDataSource
The merchant review data source.
Parameter | |
---|---|
Name | Description |
var |
MerchantReviewDataSource
|
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.
Returns | |
---|---|
Type | Description |
FileInput|null |
hasFileInput
clearFileInput
setFileInput
Optional. The field is used only when data is managed through a file.
Parameter | |
---|---|
Name | Description |
var |
FileInput
|
Returns | |
---|---|
Type | Description |
$this |
getType
Returns | |
---|---|
Type | Description |
string |