Google Shopping Css V1 Client - Class CssProduct (0.3.2)

Reference documentation and code samples for the Google Shopping Css V1 Client class CssProduct.

The processed CSS Product(a.k.a Aggregate Offer internally).

Generated from protobuf message google.shopping.css.v1.CssProduct

Namespace

Google \ Shopping \ Css \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the CSS Product. Format: "accounts/{account}/cssProducts/{css_product}"

↳ raw_provided_id string

Output only. Your unique raw identifier for the product.

↳ content_language string

Output only. The two-letter ISO 639-1 language code for the product.

↳ feed_label string

Output only. The feed label for the product.

↳ attributes Attributes

Output only. A list of product attributes.

↳ custom_attributes array<Google\Shopping\Type\CustomAttribute>

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

↳ css_product_status CssProductStatus

Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.

getName

The name of the CSS Product.

Format: "accounts/{account}/cssProducts/{css_product}"

Returns
Type Description
string

setName

The name of the CSS Product.

Format: "accounts/{account}/cssProducts/{css_product}"

Parameter
Name Description
var string
Returns
Type Description
$this

getRawProvidedId

Output only. Your unique raw identifier for the product.

Returns
Type Description
string

setRawProvidedId

Output only. Your unique raw identifier for the product.

Parameter
Name Description
var string
Returns
Type Description
$this

getContentLanguage

Output only. The two-letter ISO 639-1 language code for the product.

Returns
Type Description
string

setContentLanguage

Output only. The two-letter ISO 639-1 language code for the product.

Parameter
Name Description
var string
Returns
Type Description
$this

getFeedLabel

Output only. The feed label for the product.

Returns
Type Description
string

setFeedLabel

Output only. The feed label for the product.

Parameter
Name Description
var string
Returns
Type Description
$this

getAttributes

Output only. A list of product attributes.

Returns
Type Description
Attributes|null

hasAttributes

clearAttributes

setAttributes

Output only. A list of product attributes.

Parameter
Name Description
var Attributes
Returns
Type Description
$this

getCustomAttributes

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }).

This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setCustomAttributes

Output only. A list of custom (CSS-provided) attributes. It can also be used to submit any attribute of the feed specification in its generic form (for example, { "name": "size type", "value": "regular" }).

This is useful for submitting attributes not explicitly exposed by the API, such as additional attributes used for Buy on Google.

Parameter
Name Description
var array<Google\Shopping\Type\CustomAttribute>
Returns
Type Description
$this

getCssProductStatus

Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.

Returns
Type Description
CssProductStatus|null

hasCssProductStatus

clearCssProductStatus

setCssProductStatus

Output only. The status of a product, data validation issues, that is, information about a product computed asynchronously.

Parameter
Name Description
var CssProductStatus
Returns
Type Description
$this