Class TextStream.Builder (1.5.0)

publicstaticfinalclass TextStream.BuilderextendsGeneratedMessageV3.Builder<TextStream.Builder>implementsTextStreamOrBuilder

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

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

Implements

TextStreamOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

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
Name Description
values Iterable<? extends com.google.cloud.video.transcoder.v1.TextStream.TextMapping>
Returns
Type Description

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
Name Description
Returns
Type Description

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
Name Description
Returns
Type Description

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
Name Description
index int
Returns
Type Description

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
Name Description
index int
Returns
Type Description

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
Type Description

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
Name Description
index int
Returns
Type Description

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicTextStream.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicTextStreambuild()
Returns
Type Description

buildPartial()

publicTextStreambuildPartial()
Returns
Type Description

clear()

publicTextStream.Builderclear()
Returns
Type Description
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
Type Description
TextStream.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicTextStream.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

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
Type Description

clearOneof(Descriptors.OneofDescriptor oneof)

publicTextStream.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clone()

publicTextStream.Builderclone()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for codec.

getDefaultInstanceForType()

publicTextStreamgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

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
Name Description
index int
Returns
Type Description

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
Name Description
index int
Returns
Type Description

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
Type Description

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
Type Description
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
Type Description

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
Name Description
index int
Returns
Type Description

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
Type Description
List<? extends com.google.cloud.video.transcoder.v1.TextStream.TextMappingOrBuilder>

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(TextStream other)

publicTextStream.BuildermergeFrom(TextStreamother)
Parameter
Name Description
other TextStream
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicTextStream.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicTextStream.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalTextStream.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description

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
Name Description
value String

The codec to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for codec to set.

Returns
Type Description
TextStream.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicTextStream.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

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
Name Description
index int
Returns
Type Description

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
Name Description
index int
Returns
Type Description

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

publicTextStream.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalTextStream.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.