# Google Cloud Channel V1 Client - Class Media (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 Media.

Represents media information.

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

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ title` | `string` Title of the media. |
| `↳ content` | `string` URL of the media. |
| `↳ type` | `int` Type of the media. |

### getTitle

Title of the media.

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

### setTitle

Title of the media.

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

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

### getContent

URL of the media.

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

### setContent

URL of the media.

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

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

### getType

Type of the media.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [MediaType](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.MediaType). |

### setType

Type of the media.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [MediaType](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.MediaType). |

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