Class TextStream.Builder (1.59.0)

publicstaticfinalclassTextStream.BuilderextendsGeneratedMessageV3.Builder<TextStream.Builder>implementsTextStreamOrBuilder

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

Protobuf type google.cloud.video.transcoder.v1.TextStream

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllMapping(Iterable<? extends TextStream.TextMapping> values)

publicTextStream.BuilderaddAllMapping(Iterable<?extendsTextStream.TextMapping>values)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.video.transcoder.v1.TextStream.TextMapping>
Returns
TypeDescription
TextStream.Builder

addMapping(TextStream.TextMapping value)

publicTextStream.BuilderaddMapping(TextStream.TextMappingvalue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
valueTextStream.TextMapping
Returns
TypeDescription
TextStream.Builder

addMapping(TextStream.TextMapping.Builder builderForValue)

publicTextStream.BuilderaddMapping(TextStream.TextMapping.BuilderbuilderForValue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
builderForValueTextStream.TextMapping.Builder
Returns
TypeDescription
TextStream.Builder

addMapping(int index, TextStream.TextMapping value)

publicTextStream.BuilderaddMapping(intindex,TextStream.TextMappingvalue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
NameDescription
indexint
valueTextStream.TextMapping
Returns
TypeDescription
TextStream.Builder

addMapping(int index, TextStream.TextMapping.Builder builderForValue)

publicTextStream.BuilderaddMapping(intindex,TextStream.TextMapping.BuilderbuilderForValue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
NameDescription
indexint
builderForValueTextStream.TextMapping.Builder
Returns
TypeDescription
TextStream.Builder

addMappingBuilder()

publicTextStream.TextMapping.BuilderaddMappingBuilder()

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Returns
TypeDescription
TextStream.TextMapping.Builder

addMappingBuilder(int index)

publicTextStream.TextMapping.BuilderaddMappingBuilder(intindex)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextMapping.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTextStream.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

build()

publicTextStreambuild()
Returns
TypeDescription
TextStream

buildPartial()

publicTextStreambuildPartial()
Returns
TypeDescription
TextStream

clear()

publicTextStream.Builderclear()
Returns
TypeDescription
TextStream.Builder
Overrides

clearCodec()

publicTextStream.BuilderclearCodec()

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

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

clearDisplayName()

publicTextStream.BuilderclearDisplayName()

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

string display_name = 4;

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicTextStream.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TextStream.Builder
Overrides

clearLanguageCode()

publicTextStream.BuilderclearLanguageCode()

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.

string language_code = 2;

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

clearMapping()

publicTextStream.BuilderclearMapping()

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Returns
TypeDescription
TextStream.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicTextStream.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TextStream.Builder
Overrides

clone()

publicTextStream.Builderclone()
Returns
TypeDescription
TextStream.Builder
Overrides

getCodec()

publicStringgetCodec()

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

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Returns
TypeDescription
String

The codec.

getCodecBytes()

publicByteStringgetCodecBytes()

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

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Returns
TypeDescription
ByteString

The bytes for codec.

getDefaultInstanceForType()

publicTextStreamgetDefaultInstanceForType()
Returns
TypeDescription
TextStream

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

publicStringgetDisplayName()

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

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

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

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLanguageCode()

publicStringgetLanguageCode()

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.

string language_code = 2;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

publicByteStringgetLanguageCodeBytes()

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.

string language_code = 2;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getMapping(int index)

publicTextStream.TextMappinggetMapping(intindex)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextMapping

getMappingBuilder(int index)

publicTextStream.TextMapping.BuildergetMappingBuilder(intindex)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextMapping.Builder

getMappingBuilderList()

publicList<TextStream.TextMapping.Builder>getMappingBuilderList()

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Returns
TypeDescription
List<Builder>

getMappingCount()

publicintgetMappingCount()

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Returns
TypeDescription
int

getMappingList()

publicList<TextStream.TextMapping>getMappingList()

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Returns
TypeDescription
List<TextMapping>

getMappingOrBuilder(int index)

publicTextStream.TextMappingOrBuildergetMappingOrBuilder(intindex)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.TextMappingOrBuilder

getMappingOrBuilderList()

publicList<?extendsTextStream.TextMappingOrBuilder>getMappingOrBuilderList()

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Returns
TypeDescription
List<? extends com.google.cloud.video.transcoder.v1.TextStream.TextMappingOrBuilder>

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextStream other)

publicTextStream.BuildermergeFrom(TextStreamother)
Parameter
NameDescription
otherTextStream
Returns
TypeDescription
TextStream.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTextStream.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextStream.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

publicTextStream.BuildermergeFrom(Messageother)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TextStream.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTextStream.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextStream.Builder
Overrides

removeMapping(int index)

publicTextStream.BuilderremoveMapping(intindex)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextStream.Builder

setCodec(String value)

publicTextStream.BuildersetCodec(Stringvalue)

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

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Parameter
NameDescription
valueString

The codec to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setCodecBytes(ByteString value)

publicTextStream.BuildersetCodecBytes(ByteStringvalue)

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

Supported text codecs:

  • srt
  • ttml
  • cea608
  • cea708
  • webvtt

string codec = 1;

Parameter
NameDescription
valueByteString

The bytes for codec to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setDisplayName(String value)

publicTextStream.BuildersetDisplayName(Stringvalue)

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

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

publicTextStream.BuildersetDisplayNameBytes(ByteStringvalue)

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

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicTextStream.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

setLanguageCode(String value)

publicTextStream.BuildersetLanguageCode(Stringvalue)

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.

string language_code = 2;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

publicTextStream.BuildersetLanguageCodeBytes(ByteStringvalue)

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.

string language_code = 2;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
TextStream.Builder

This builder for chaining.

setMapping(int index, TextStream.TextMapping value)

publicTextStream.BuildersetMapping(intindex,TextStream.TextMappingvalue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
NameDescription
indexint
valueTextStream.TextMapping
Returns
TypeDescription
TextStream.Builder

setMapping(int index, TextStream.TextMapping.Builder builderForValue)

publicTextStream.BuildersetMapping(intindex,TextStream.TextMapping.BuilderbuilderForValue)

The mapping for the Job.edit_list atoms with text EditAtom.inputs.

repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;

Parameters
NameDescription
indexint
builderForValueTextStream.TextMapping.Builder
Returns
TypeDescription
TextStream.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicTextStream.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextStream.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTextStream.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TextStream.Builder
Overrides