# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::TextStream (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::TextStream.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #codec

    def codec() -> ::String

**Returns**

- (::String) --- The codec for this text stream. The default is `webvtt`.

  Supported text codecs:
  - `srt`
  - `ttml`
  - `cea608`
  - `cea708`
  - `webvtt`

### #codec=

    def codec=(value) -> ::String

**Parameter**

- **value** (::String) ---

  The codec for this text stream. The default is `webvtt`.

  Supported text codecs:
  - `srt`
  - `ttml`
  - `cea608`
  - `cea708`
  - `webvtt`
**Returns**

- (::String) --- The codec for this text stream. The default is `webvtt`.

  Supported text codecs:
  - `srt`
  - `ttml`
  - `cea608`
  - `cea708`
  - `webvtt`

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
**Returns**

- (::String) --- The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

### #language_code

    def language_code() -> ::String

**Returns**

- (::String) --- The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.

### #language_code=

    def language_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
**Returns**

- (::String) --- The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.

### #mapping

    def mapping() -> ::Array<::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping>

**Returns**

- (::Array\<[::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-TextStream-TextMapping)\>) --- The mapping for the [JobConfig.edit_list](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-JobConfig#Google__Cloud__Video__Transcoder__V1__JobConfig_edit_list_instance_ "Google::Cloud::Video::Transcoder::V1::JobConfig#edit_list (method)") atoms with text [EditAtom.inputs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-EditAtom#Google__Cloud__Video__Transcoder__V1__EditAtom_inputs_instance_ "Google::Cloud::Video::Transcoder::V1::EditAtom#inputs (method)").

### #mapping=

    def mapping=(value) -> ::Array<::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-TextStream-TextMapping)\>) --- The mapping for the [JobConfig.edit_list](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-JobConfig#Google__Cloud__Video__Transcoder__V1__JobConfig_edit_list_instance_ "Google::Cloud::Video::Transcoder::V1::JobConfig#edit_list (method)") atoms with text [EditAtom.inputs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-EditAtom#Google__Cloud__Video__Transcoder__V1__EditAtom_inputs_instance_ "Google::Cloud::Video::Transcoder::V1::EditAtom#inputs (method)").
**Returns**

- (::Array\<[::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-TextStream-TextMapping)\>) --- The mapping for the [JobConfig.edit_list](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-JobConfig#Google__Cloud__Video__Transcoder__V1__JobConfig_edit_list_instance_ "Google::Cloud::Video::Transcoder::V1::JobConfig#edit_list (method)") atoms with text [EditAtom.inputs](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-EditAtom#Google__Cloud__Video__Transcoder__V1__EditAtom_inputs_instance_ "Google::Cloud::Video::Transcoder::V1::EditAtom#inputs (method)").