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

Metadata used to register VOD configs.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The resource name of the VOD config, in the form of `projects/{project}/locations/{location}/vodConfigs/{id}`. |
| `↳ source_uri` | `string` Required. Source URI for the VOD stream manifest. |
| `↳ ad_tag_uri` | `string` Required. The default ad tag associated with this VOD config. |
| `↳ gam_vod_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.GamVodConfig` Optional. Google Ad Manager (GAM) metadata. |
| `↳ state` | `int` Output only. State of the VOD config. |
| `↳ source_fetch_options` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.FetchOptions` Options for fetching source manifests and segments. |

### getName

Output only. The resource name of the VOD config, in the form of
`projects/{project}/locations/{location}/vodConfigs/{id}`.

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

### setName

Output only. The resource name of the VOD config, in the form of
`projects/{project}/locations/{location}/vodConfigs/{id}`.

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

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

### getSourceUri

Required. Source URI for the VOD stream manifest.

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

### setSourceUri

Required. Source URI for the VOD stream manifest.

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

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

### getAdTagUri

Required. The default ad tag associated with this VOD config.

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

### setAdTagUri

Required. The default ad tag associated with this VOD config.

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

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

### getGamVodConfig

Optional. Google Ad Manager (GAM) metadata.

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

### hasGamVodConfig

### clearGamVodConfig

### setGamVodConfig

Optional. Google Ad Manager (GAM) metadata.

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

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

### getState

Output only. State of the VOD config.

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

### setState

Output only. State of the VOD config.

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

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

### getSourceFetchOptions

Options for fetching source manifests and segments.

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

### hasSourceFetchOptions

### clearSourceFetchOptions

### setSourceFetchOptions

Options for fetching source manifests and segments.

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

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