# Google Cloud Channel V1 Client - Class Product (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class Product.

A Product is the entity a customer uses when placing an order. For example,
Google Workspace, Google Voice, etc.

Generated from protobuf message `google.cloud.channel.v1.Product`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Resource Name of the Product. Format: products/{product_id} |
| `↳ marketing_info` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.MarketingInfo` Marketing information for the product. |

### getName

Resource Name of the Product.

Format: products/{product_id}

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

### setName

Resource Name of the Product.

Format: products/{product_id}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getMarketingInfo

Marketing information for the product.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.MarketingInfo|null` |   |

### hasMarketingInfo

### clearMarketingInfo

### setMarketingInfo

Marketing information for the product.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.MarketingInfo` |

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