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

Encoding of an input file such as an audio, video, or text track.

Elementary streams must be packaged before
mapping and sharing between different output formats.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` A unique key for this elementary stream. |
| `↳ video_stream` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.VideoStream` Encoding of a video stream. |
| `↳ audio_stream` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.AudioStream` Encoding of an audio stream. |
| `↳ text_stream` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-transcoder/latest/V1.TextStream` Encoding of a text stream. For example, closed captions or subtitles. |

### getKey

A unique key for this elementary stream.

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

### setKey

A unique key for this elementary stream.

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

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

### getVideoStream

Encoding of a video stream.

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

### hasVideoStream

### setVideoStream

Encoding of a video stream.

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

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

### getAudioStream

Encoding of an audio stream.

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

### hasAudioStream

### setAudioStream

Encoding of an audio stream.

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

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

### getTextStream

Encoding of a text stream. For example, closed captions or subtitles.

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

### hasTextStream

### setTextStream

Encoding of a text stream. For example, closed captions or subtitles.

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

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

### getElementaryStream

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