# Google Cloud Video Live Stream V1 Client - Class ElementaryStream (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class ElementaryStream.

Encoding of an input element 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.livestream.v1.ElementaryStream`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ 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. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between. |
| `↳ video_stream` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.VideoStream` Encoding of a video stream. |
| `↳ audio_stream` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream` Encoding of an audio stream. |
| `↳ text_stream` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.TextStream` Encoding of a text stream. For example, closed captions or subtitles. |

### getKey

A unique key for this elementary stream. The key must be 1-63
characters in length. The key must begin and end with a letter (regardless
of case) or a number, but can contain dashes or underscores in between.

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

### setKey

A unique key for this elementary stream. The key must be 1-63
characters in length. The key must begin and end with a letter (regardless
of case) or a number, but can contain dashes or underscores in between.

| **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-live-stream/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-live-stream/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-live-stream/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-live-stream/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-live-stream/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-live-stream/latest/V1.TextStream` |

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

### getElementaryStream

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