Google Shopping Merchant Products V1beta Client - Class InsertProductInputRequest (0.1.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class InsertProductInputRequest.

Request message for the InsertProductInput method.

Generated from protobuf message google.shopping.merchant.products.v1beta.InsertProductInputRequest

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The account where this product will be inserted. Format: accounts/{account}

↳ product_input Google\Shopping\Merchant\Products\V1beta\ProductInput

Required. The product input to insert.

↳ data_source string

Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Format: accounts/{account}/dataSources/{datasource}.

getParent

Required. The account where this product will be inserted.

Format: accounts/{account}

Returns
Type Description
string

setParent

Required. The account where this product will be inserted.

Format: accounts/{account}

Parameter
Name Description
var string
Returns
Type Description
$this

getProductInput

Required. The product input to insert.

Returns
Type Description
Google\Shopping\Merchant\Products\V1beta\ProductInput|null

hasProductInput

clearProductInput

setProductInput

Required. The product input to insert.

Parameter
Name Description
var Google\Shopping\Merchant\Products\V1beta\ProductInput
Returns
Type Description
$this

getDataSource

Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Format: accounts/{account}/dataSources/{datasource}.

Returns
Type Description
string

setDataSource

Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Format: accounts/{account}/dataSources/{datasource}.

Parameter
Name Description
var string
Returns
Type Description
$this