# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::ElementaryStream (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #audio_stream

    def audio_stream() -> ::Google::Cloud::Video::LiveStream::V1::AudioStream

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::AudioStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream)) --- Encoding of an audio stream.


  Note: The following fields are mutually exclusive: `audio_stream`, `video_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #audio_stream=

    def audio_stream=(value) -> ::Google::Cloud::Video::LiveStream::V1::AudioStream

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::AudioStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream)) --- Encoding of an audio stream.


  Note: The following fields are mutually exclusive: `audio_stream`, `video_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::AudioStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-AudioStream)) --- Encoding of an audio stream.


  Note: The following fields are mutually exclusive: `audio_stream`, `video_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #key

    def key() -> ::String

**Returns**

- (::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.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #text_stream

    def text_stream() -> ::Google::Cloud::Video::LiveStream::V1::TextStream

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::TextStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-TextStream)) --- Encoding of a text stream. For example, closed captions or subtitles.


  Note: The following fields are mutually exclusive: `text_stream`, `video_stream`, `audio_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #text_stream=

    def text_stream=(value) -> ::Google::Cloud::Video::LiveStream::V1::TextStream

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::TextStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-TextStream)) --- Encoding of a text stream. For example, closed captions or subtitles.


  Note: The following fields are mutually exclusive: `text_stream`, `video_stream`, `audio_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::TextStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-TextStream)) --- Encoding of a text stream. For example, closed captions or subtitles.


  Note: The following fields are mutually exclusive: `text_stream`, `video_stream`, `audio_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_stream

    def video_stream() -> ::Google::Cloud::Video::LiveStream::V1::VideoStream

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::VideoStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream)) --- Encoding of a video stream.


  Note: The following fields are mutually exclusive: `video_stream`, `audio_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #video_stream=

    def video_stream=(value) -> ::Google::Cloud::Video::LiveStream::V1::VideoStream

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::VideoStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream)) --- Encoding of a video stream.


  Note: The following fields are mutually exclusive: `video_stream`, `audio_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::VideoStream](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-VideoStream)) --- Encoding of a video stream.


  Note: The following fields are mutually exclusive: `video_stream`, `audio_stream`, `text_stream`. If a field in that set is populated, all other fields in the set will automatically be cleared.