# Google Shopping Css V1 Client - Class CssProduct (0.8.1)

0.8.1 (latest) 0.8.0 0.7.3 0.6.2 0.5.1 0.4.1 0.3.3 0.2.9 0.1.0 Reference documentation and code samples for the Google Shopping Css V1 Client class CssProduct.

The processed CSS Product.

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](http://en.wikipedia.org/wiki/ISO_639-1) language code for the product. |
| `↳ feed_label` | `string` Output only. The feed label for the product. |
| `↳ attributes` | `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.Attributes` Output only. A list of product attributes. |
| `↳ custom_attributes` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.CustomAttribute.html>` 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` | `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/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** ||
|---|---|
| **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](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
product.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setContentLanguage

Output only. The two-letter [ISO
639-1](http://en.wikipedia.org/wiki/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** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.Attributes|null` |   |

### hasAttributes

### clearAttributes

### setAttributes

Output only. A list of product attributes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.CustomAttribute.html>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/shopping-common-protos/latest/Type.CustomAttribute.html>` |

| **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** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/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** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-css/latest/V1.CssProductStatus` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |