# Interface MuxStreamOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.MuxStreamOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.video.transcoder.v1.MuxStreamOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.video.transcoder.v1.MuxStreamOrBuilder)

    public interface MuxStreamOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getContainer()

    public abstract String getContainer()

The container format. The default is `mp4`
Supported container formats:

- `ts`
- `fmp4`- the corresponding file extension is `.m4s`
- `mp4`
- `vtt` See also: [Supported input and output
  formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)

`string container = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The container. |

### getContainerBytes()

    public abstract ByteString getContainerBytes()

The container format. The default is `mp4`
Supported container formats:

- `ts`
- `fmp4`- the corresponding file extension is `.m4s`
- `mp4`
- `vtt` See also: [Supported input and output
  formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)

`string container = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for container. |

### getElementaryStreams(int index)

    public abstract String getElementaryStreams(int index)

List of `ElementaryStream.key`s multiplexed in this stream.

`repeated string elementary_streams = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The elementaryStreams at the given index. |

### getElementaryStreamsBytes(int index)

    public abstract ByteString getElementaryStreamsBytes(int index)

List of `ElementaryStream.key`s multiplexed in this stream.

`repeated string elementary_streams = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the elementaryStreams at the given index. |

### getElementaryStreamsCount()

    public abstract int getElementaryStreamsCount()

List of `ElementaryStream.key`s multiplexed in this stream.

`repeated string elementary_streams = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of elementaryStreams. |

### getElementaryStreamsList()

    public abstract List<String> getElementaryStreamsList()

List of `ElementaryStream.key`s multiplexed in this stream.

`repeated string elementary_streams = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the elementaryStreams. |

### getFileName()

    public abstract String getFileName()

The name of the generated file. The default is `MuxStream.key` with the
extension suffix corresponding to the `MuxStream.container`.
Individual segments also have an incremental 10-digit zero-padded suffix
starting from 0 before the extension, such as `mux_stream0000000123.ts`.

`string file_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The fileName. |

### getFileNameBytes()

    public abstract ByteString getFileNameBytes()

The name of the generated file. The default is `MuxStream.key` with the
extension suffix corresponding to the `MuxStream.container`.
Individual segments also have an incremental 10-digit zero-padded suffix
starting from 0 before the extension, such as `mux_stream0000000123.ts`.

`string file_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for fileName. |

### getKey()

    public abstract String getKey()

A unique key for this multiplexed stream. HLS media manifests will be
named `MuxStream.key` with the `.m3u8` extension suffix.

`string key = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The key. |

### getKeyBytes()

    public abstract ByteString getKeyBytes()

A unique key for this multiplexed stream. HLS media manifests will be
named `MuxStream.key` with the `.m3u8` extension suffix.

`string key = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for key. |

### getSegmentSettings()

    public abstract SegmentSettings getSegmentSettings()

Segment settings for `ts`, `fmp4` and `vtt`.

`.google.events.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.SegmentSettings` | The segmentSettings. |

### getSegmentSettingsOrBuilder()

    public abstract SegmentSettingsOrBuilder getSegmentSettingsOrBuilder()

Segment settings for `ts`, `fmp4` and `vtt`.

`.google.events.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.video.transcoder.v1.SegmentSettingsOrBuilder` |   |

### hasSegmentSettings()

    public abstract boolean hasSegmentSettings()

Segment settings for `ts`, `fmp4` and `vtt`.

`.google.events.cloud.video.transcoder.v1.SegmentSettings segment_settings = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the segmentSettings field is set. |