# Google Cloud Video Stitcher V1 Client - Class AdStitchDetail (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 AdStitchDetail.

Metadata for a stitched ad.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ad_break_id` | `string` Required. The ad break ID of the processed ad. |
| `↳ ad_id` | `string` Required. The ad ID of the processed ad. |
| `↳ ad_time_offset` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Required. The time offset of the processed ad. |
| `↳ skip_reason` | `string` Optional. Indicates the reason why the ad has been skipped. |
| `↳ media` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional. The metadata of the chosen media file for the ad. |

### getAdBreakId

Required. The ad break ID of the processed ad.

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

### setAdBreakId

Required. The ad break ID of the processed ad.

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

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

### getAdId

Required. The ad ID of the processed ad.

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

### setAdId

Required. The ad ID of the processed ad.

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

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

### getAdTimeOffset

Required. The time offset of the processed ad.

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

### hasAdTimeOffset

### clearAdTimeOffset

### setAdTimeOffset

Required. The time offset of the processed ad.

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

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

### getSkipReason

Optional. Indicates the reason why the ad has been skipped.

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

### setSkipReason

Optional. Indicates the reason why the ad has been skipped.

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

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

### getMedia

Optional. The metadata of the chosen media file for the ad.

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

### setMedia

Optional. The metadata of the chosen media file for the ad.

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

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