# Google Cloud Video Live Stream V1 Client - Class DistributionStream (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 DistributionStream.

Multiplexing settings for output streams used in
[Distribution](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Distribution).

Generated from protobuf message `google.cloud.video.livestream.v1.DistributionStream`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key` | `string` Required. A unique key for this distribution 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. |
| `↳ container` | `string` Required. The container format. Supported container formats: - `ts`, must contain exactly one audio stream and up to one video stream. - `flv`, must contain at most one audio stream and at most one video stream. |
| `↳ elementary_streams` | `string[]` Required. List of `ElementaryStream` [key](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.ElementaryStream#_Google_Cloud_Video_LiveStream_V1_ElementaryStream__getKey__)s multiplexed in this stream. Must contain at least one audio stream and up to one video stream. |

### getKey

Required. A unique key for this distribution 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

Required. A unique key for this distribution 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` |   |

### getContainer

Required. The container format.

Supported container formats:

- `ts`, must contain exactly one audio stream and up to one video stream.
- `flv`, must contain at most one audio stream and at most one video stream.

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

### setContainer

Required. The container format.

Supported container formats:

- `ts`, must contain exactly one audio stream and up to one video stream.
- `flv`, must contain at most one audio stream and at most one video stream.

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

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

### getElementaryStreams

Required. List of `ElementaryStream`
[key](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.ElementaryStream#_Google_Cloud_Video_LiveStream_V1_ElementaryStream__getKey__)s multiplexed
in this stream. Must contain at least one audio stream and up to one video
stream.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setElementaryStreams

Required. List of `ElementaryStream`
[key](https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.ElementaryStream#_Google_Cloud_Video_LiveStream_V1_ElementaryStream__getKey__)s multiplexed
in this stream. Must contain at least one audio stream and up to one video
stream.

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

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