# Google Cloud Video Transcoder V1 Client - Class JobConfig (1.4.0)

1.4.0 (latest) 1.3.2 1.2.0 1.1.0 1.0.3 0.10.5 0.9.1 0.8.2 0.7.1 0.6.0 0.5.3 Reference documentation and code samples for the Google Cloud Video Transcoder V1 Client class JobConfig.

Job configuration

Generated from protobuf message `google.cloud.video.transcoder.v1.JobConfig`

## Namespace

Google \\ Cloud \\ Video \\ Transcoder \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ inputs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Input>` List of input assets stored in Cloud Storage. |
| `↳ edit_list` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.EditAtom>` List of edit atoms. Defines the ultimate timeline of the resulting file or manifest. |
| `↳ elementary_streams` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.ElementaryStream>` List of elementary streams. |
| `↳ mux_streams` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream>` List of multiplexing settings for output streams. |
| `↳ manifests` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Manifest>` List of output manifests. |
| `↳ output` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Output` Output configuration. |
| `↳ ad_breaks` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.AdBreak>` List of ad breaks. Specifies where to insert ad break tags in the output manifests. |
| `↳ pubsub_destination` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.PubsubDestination` Destination on Pub/Sub. |
| `↳ sprite_sheets` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.SpriteSheet>` List of output sprite sheets. Spritesheets require at least one VideoStream in the Jobconfig. |
| `↳ overlays` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Overlay>` List of overlays on the output video, in descending Z-order. |
| `↳ encryptions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.Encryption>` List of encryption configurations for the content. Each configuration has an ID. Specify this ID in the [MuxStream.encryption_id](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getEncryptionId__) field to indicate the configuration to use for that `MuxStream` output. |

### getInputs

List of input assets stored in Cloud Storage.

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

### setInputs

List of input assets stored in Cloud Storage.

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

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

### getEditList

List of edit atoms. Defines the ultimate timeline of the resulting
file or manifest.

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

### setEditList

List of edit atoms. Defines the ultimate timeline of the resulting
file or manifest.

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

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

### getElementaryStreams

List of elementary streams.

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

### setElementaryStreams

List of elementary streams.

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

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

### getMuxStreams

List of multiplexing settings for output streams.

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

### setMuxStreams

List of multiplexing settings for output streams.

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

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

### getManifests

List of output manifests.

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

### setManifests

List of output manifests.

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

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

### getOutput

Output configuration.

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

### hasOutput

### clearOutput

### setOutput

Output configuration.

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

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

### getAdBreaks

List of ad breaks. Specifies where to insert ad break tags in the output
manifests.

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

### setAdBreaks

List of ad breaks. Specifies where to insert ad break tags in the output
manifests.

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

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

### getPubsubDestination

Destination on Pub/Sub.

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

### hasPubsubDestination

### clearPubsubDestination

### setPubsubDestination

Destination on Pub/Sub.

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

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

### getSpriteSheets

List of output sprite sheets.

Spritesheets require at least one VideoStream in the Jobconfig.

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

### setSpriteSheets

List of output sprite sheets.

Spritesheets require at least one VideoStream in the Jobconfig.

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

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

### getOverlays

List of overlays on the output video, in descending Z-order.

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

### setOverlays

List of overlays on the output video, in descending Z-order.

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

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

### getEncryptions

List of encryption configurations for the content.

Each configuration has an ID. Specify this ID in the
[MuxStream.encryption_id](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getEncryptionId__)
field to indicate the configuration to use for that `MuxStream` output.

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

### setEncryptions

List of encryption configurations for the content.

Each configuration has an ID. Specify this ID in the
[MuxStream.encryption_id](https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.MuxStream#_Google_Cloud_Video_Transcoder_V1_MuxStream__getEncryptionId__)
field to indicate the configuration to use for that `MuxStream` output.

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

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