# Google Cloud Video Stitcher V1 Client - Class VodSessionAdBreak (1.2.0)

1.2.0 (latest) 1.1.2 1.0.4 0.9.1 0.8.4 0.7.3 0.6.2 0.5.1 0.3.4 Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class VodSessionAdBreak.

Metadata for an inserted ad break.

Generated from protobuf message `google.cloud.video.stitcher.v1.VodSessionAdBreak`

## Namespace

Google \\ Cloud \\ Video \\ Stitcher \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ progress_events` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.ProgressEvent>` List of events that are expected to be triggered, ordered by time. |
| `↳ ads` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.VodSessionAd>` Ordered list of ads stitched into the ad break. |
| `↳ end_time_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Ad break end time in seconds relative to the start of the VOD asset. |
| `↳ start_time_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Ad break start time in seconds relative to the start of the VOD asset. |

### getProgressEvents

List of events that are expected to be triggered, ordered by time.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.ProgressEvent>` |   |

### setProgressEvents

List of events that are expected to be triggered, ordered by time.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.ProgressEvent>` |

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

### getAds

Ordered list of ads stitched into the ad break.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.VodSessionAd>` |   |

### setAds

Ordered list of ads stitched into the ad break.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.VodSessionAd>` |

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

### getEndTimeOffset

Ad break end time in seconds relative to the start of the VOD asset.

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

### hasEndTimeOffset

### clearEndTimeOffset

### setEndTimeOffset

Ad break end time in seconds relative to the start of the VOD asset.

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

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

### getStartTimeOffset

Ad break start time in seconds relative to the start of the VOD asset.

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

### hasStartTimeOffset

### clearStartTimeOffset

### setStartTimeOffset

Ad break start time in seconds relative to the start of the VOD asset.

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

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