public static final class TextStream.Builder extends GeneratedMessageV3.Builder<TextStream.Builder> implements TextStreamOrBuilder
Encoding of a text stream. For example, closed captions or subtitles.
Protobuf type google.cloud.video.transcoder.v1beta1.TextStream
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllMapping(Iterable<? extends TextStream.TextAtom> values)
public TextStream.Builder addAllMapping(Iterable<? extends TextStream.TextAtom> values)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.video.transcoder.v1beta1.TextStream.TextAtom>
|
Returns
addMapping(TextStream.TextAtom value)
public TextStream.Builder addMapping(TextStream.TextAtom value)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
addMapping(TextStream.TextAtom.Builder builderForValue)
public TextStream.Builder addMapping(TextStream.TextAtom.Builder builderForValue)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
addMapping(int index, TextStream.TextAtom value)
public TextStream.Builder addMapping(int index, TextStream.TextAtom value)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameters
Returns
addMapping(int index, TextStream.TextAtom.Builder builderForValue)
public TextStream.Builder addMapping(int index, TextStream.TextAtom.Builder builderForValue)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameters
Returns
addMappingBuilder()
public TextStream.TextAtom.Builder addMappingBuilder()
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Returns
addMappingBuilder(int index)
public TextStream.TextAtom.Builder addMappingBuilder(int index)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TextStream.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TextStream build()
Returns
buildPartial()
public TextStream buildPartial()
Returns
clear()
public TextStream.Builder clear()
Returns
Overrides
clearCodec()
public TextStream.Builder clearCodec()
The codec for this text stream. The default is "webvtt"
.
Supported text codecs:
- 'srt'
- 'ttml'
- 'cea608'
- 'cea708'
- 'webvtt'
string codec = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public TextStream.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLanguageCode()
public TextStream.Builder clearLanguageCode()
Returns
clearMapping()
public TextStream.Builder clearMapping()
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TextStream.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TextStream.Builder clone()
Returns
Overrides
getCodec()
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()
public ByteString getCodecBytes()
The codec for this text stream. The default is "webvtt"
.
Supported text codecs:
- 'srt'
- 'ttml'
- 'cea608'
- 'cea708'
- 'webvtt'
string codec = 1;
Returns
getDefaultInstanceForType()
public TextStream getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLanguageCode()
public String getLanguageCode()
Returns
Type | Description |
String | The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Returns
Type | Description |
ByteString | The bytes for languageCode.
|
getMapping(int index)
public TextStream.TextAtom getMapping(int index)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
getMappingBuilder(int index)
public TextStream.TextAtom.Builder getMappingBuilder(int index)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
getMappingBuilderList()
public List<TextStream.TextAtom.Builder> getMappingBuilderList()
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Returns
getMappingCount()
public int getMappingCount()
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Returns
getMappingList()
public List<TextStream.TextAtom> getMappingList()
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Returns
getMappingOrBuilder(int index)
public TextStream.TextAtomOrBuilder getMappingOrBuilder(int index)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
getMappingOrBuilderList()
public List<? extends TextStream.TextAtomOrBuilder> getMappingOrBuilderList()
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Returns
Type | Description |
List<? extends com.google.cloud.video.transcoder.v1beta1.TextStream.TextAtomOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TextStream other)
public TextStream.Builder mergeFrom(TextStream other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TextStream.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TextStream.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TextStream.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMapping(int index)
public TextStream.Builder removeMapping(int index)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameter
Returns
setCodec(String value)
public TextStream.Builder setCodec(String value)
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
setCodecBytes(ByteString value)
public TextStream.Builder setCodecBytes(ByteString value)
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
setField(Descriptors.FieldDescriptor field, Object value)
public TextStream.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLanguageCode(String value)
public TextStream.Builder setLanguageCode(String value)
Parameter
Name | Description |
value | String
The languageCode to set.
|
Returns
setLanguageCodeBytes(ByteString value)
public TextStream.Builder setLanguageCodeBytes(ByteString value)
Parameter
Name | Description |
value | ByteString
The bytes for languageCode to set.
|
Returns
setMapping(int index, TextStream.TextAtom value)
public TextStream.Builder setMapping(int index, TextStream.TextAtom value)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameters
Returns
setMapping(int index, TextStream.TextAtom.Builder builderForValue)
public TextStream.Builder setMapping(int index, TextStream.TextAtom.Builder builderForValue)
The mapping for the Job.edit_list
atoms with text EditAtom.inputs
.
repeated .google.cloud.video.transcoder.v1beta1.TextStream.TextAtom mapping = 3;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TextStream.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TextStream.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides