Google Shopping Css V1 Client - Class CssProduct (0.1.0)

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
NameDescription
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 Google\Shopping\Css\V1\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 Google\Shopping\Css\V1\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
TypeDescription
string

setName

The name of the CSS Product.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRawProvidedId

Output only. Your unique raw identifier for the product.

Returns
TypeDescription
string

setRawProvidedId

Output only. Your unique raw identifier for the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getContentLanguage

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

Returns
TypeDescription
string

setContentLanguage

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFeedLabel

Output only. The feed label for the product.

Returns
TypeDescription
string

setFeedLabel

Output only. The feed label for the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttributes

Output only. A list of product attributes.

Returns
TypeDescription
Google\Shopping\Css\V1\Attributes|null

hasAttributes

clearAttributes

setAttributes

Output only. A list of product attributes.

Parameter
NameDescription
var Google\Shopping\Css\V1\Attributes
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Shopping\Type\CustomAttribute>
Returns
TypeDescription
$this

getCssProductStatus

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

Returns
TypeDescription
Google\Shopping\Css\V1\CssProductStatus|null

hasCssProductStatus

clearCssProductStatus

setCssProductStatus

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

Parameter
NameDescription
var Google\Shopping\Css\V1\CssProductStatus
Returns
TypeDescription
$this