# Google Cloud Video Live Stream V1 Client - Class SlateTask (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class SlateTask.

Inserts a slate.

Generated from protobuf message `google.cloud.video.livestream.v1.Event.SlateTask`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1 \\ Event

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Optional. Duration of the slate. Must be greater than 0 if specified. Omit this field for a long running slate. |
| `↳ asset` | `string` Slate asset to use for the duration. If its duration is less than the duration of the SlateTask, then the slate loops. The slate must be represented in the form of: `projects/{project}/locations/{location}/assets/{assetId}`. |

### getDuration

Optional. Duration of the slate. Must be greater than 0 if specified.

Omit this field for a long running slate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasDuration

### clearDuration

### setDuration

Optional. Duration of the slate. Must be greater than 0 if specified.

Omit this field for a long running slate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getAsset

Slate asset to use for the duration. If its duration is less than the
duration of the SlateTask, then the slate loops. The slate must be
represented in the form of:
`projects/{project}/locations/{location}/assets/{assetId}`.

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

### setAsset

Slate asset to use for the duration. If its duration is less than the
duration of the SlateTask, then the slate loops. The slate must be
represented in the form of:
`projects/{project}/locations/{location}/assets/{assetId}`.

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

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