Class TextStream.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
- com.google.cloud.video.transcoder.v1.TextStream.Builder
-
- All Implemented Interfaces:
TextStreamOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TextStream
public static final class TextStream.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder> implements TextStreamOrBuilder
Encoding of a text stream. For example, closed captions or subtitles.
Protobuf typegoogle.cloud.video.transcoder.v1.TextStream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TextStream.Builder
addAllMapping(Iterable<? extends TextStream.TextMapping> values)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
addMapping(int index, TextStream.TextMapping value)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
addMapping(int index, TextStream.TextMapping.Builder builderForValue)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
addMapping(TextStream.TextMapping value)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
addMapping(TextStream.TextMapping.Builder builderForValue)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.TextMapping.Builder
addMappingBuilder()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.TextMapping.Builder
addMappingBuilder(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TextStream
build()
TextStream
buildPartial()
TextStream.Builder
clear()
TextStream.Builder
clearCodec()
The codec for this text stream.TextStream.Builder
clearDisplayName()
The name for this particular text stream that will be added to the HLS/DASH manifest.TextStream.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TextStream.Builder
clearLanguageCode()
The BCP-47 language code, such as `en-US` or `sr-Latn`.TextStream.Builder
clearMapping()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TextStream.Builder
clone()
String
getCodec()
The codec for this text stream.com.google.protobuf.ByteString
getCodecBytes()
The codec for this text stream.TextStream
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
The name for this particular text stream that will be added to the HLS/DASH manifest.com.google.protobuf.ByteString
getDisplayNameBytes()
The name for this particular text stream that will be added to the HLS/DASH manifest.String
getLanguageCode()
The BCP-47 language code, such as `en-US` or `sr-Latn`.com.google.protobuf.ByteString
getLanguageCodeBytes()
The BCP-47 language code, such as `en-US` or `sr-Latn`.TextStream.TextMapping
getMapping(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.TextMapping.Builder
getMappingBuilder(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.List<TextStream.TextMapping.Builder>
getMappingBuilderList()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.int
getMappingCount()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.List<TextStream.TextMapping>
getMappingList()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.TextMappingOrBuilder
getMappingOrBuilder(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.List<? extends TextStream.TextMappingOrBuilder>
getMappingOrBuilderList()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TextStream.Builder
mergeFrom(TextStream other)
TextStream.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TextStream.Builder
mergeFrom(com.google.protobuf.Message other)
TextStream.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TextStream.Builder
removeMapping(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
setCodec(String value)
The codec for this text stream.TextStream.Builder
setCodecBytes(com.google.protobuf.ByteString value)
The codec for this text stream.TextStream.Builder
setDisplayName(String value)
The name for this particular text stream that will be added to the HLS/DASH manifest.TextStream.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
The name for this particular text stream that will be added to the HLS/DASH manifest.TextStream.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TextStream.Builder
setLanguageCode(String value)
The BCP-47 language code, such as `en-US` or `sr-Latn`.TextStream.Builder
setLanguageCodeBytes(com.google.protobuf.ByteString value)
The BCP-47 language code, such as `en-US` or `sr-Latn`.TextStream.Builder
setMapping(int index, TextStream.TextMapping value)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
setMapping(int index, TextStream.TextMapping.Builder builderForValue)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.TextStream.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TextStream.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
clear
public TextStream.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
getDefaultInstanceForType
public TextStream getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TextStream build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TextStream buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TextStream.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
setField
public TextStream.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
clearField
public TextStream.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
clearOneof
public TextStream.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
setRepeatedField
public TextStream.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
addRepeatedField
public TextStream.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
mergeFrom
public TextStream.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TextStream.Builder>
-
mergeFrom
public TextStream.Builder mergeFrom(TextStream other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
mergeFrom
public TextStream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TextStream.Builder>
- Throws:
IOException
-
getCodec
public String getCodec()
The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` - `ttml` - `cea608` - `cea708` - `webvtt`
string codec = 1;
- Specified by:
getCodec
in interfaceTextStreamOrBuilder
- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()
The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` - `ttml` - `cea608` - `cea708` - `webvtt`
string codec = 1;
- Specified by:
getCodecBytes
in interfaceTextStreamOrBuilder
- Returns:
- The bytes for codec.
-
setCodec
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;
- Parameters:
value
- The codec to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCodecBytes
public TextStream.Builder setCodecBytes(com.google.protobuf.ByteString value)
The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` - `ttml` - `cea608` - `cea708` - `webvtt`
string codec = 1;
- Parameters:
value
- The bytes for codec to set.- Returns:
- This builder for chaining.
-
getLanguageCode
public String getLanguageCode()
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;
- Specified by:
getLanguageCode
in interfaceTextStreamOrBuilder
- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
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;
- Specified by:
getLanguageCodeBytes
in interfaceTextStreamOrBuilder
- Returns:
- The bytes for languageCode.
-
setLanguageCode
public TextStream.Builder setLanguageCode(String value)
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;
- Parameters:
value
- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
public TextStream.Builder clearLanguageCode()
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:
- This builder for chaining.
-
setLanguageCodeBytes
public TextStream.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getMappingList
public List<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;
- Specified by:
getMappingList
in interfaceTextStreamOrBuilder
-
getMappingCount
public int getMappingCount()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
- Specified by:
getMappingCount
in interfaceTextStreamOrBuilder
-
getMapping
public TextStream.TextMapping getMapping(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
- Specified by:
getMapping
in interfaceTextStreamOrBuilder
-
setMapping
public TextStream.Builder setMapping(int index, TextStream.TextMapping value)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
setMapping
public TextStream.Builder setMapping(int index, TextStream.TextMapping.Builder builderForValue)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
addMapping
public TextStream.Builder addMapping(TextStream.TextMapping value)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
addMapping
public TextStream.Builder addMapping(int index, TextStream.TextMapping value)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
addMapping
public TextStream.Builder addMapping(TextStream.TextMapping.Builder builderForValue)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
addMapping
public TextStream.Builder addMapping(int index, TextStream.TextMapping.Builder builderForValue)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
addAllMapping
public TextStream.Builder addAllMapping(Iterable<? extends TextStream.TextMapping> values)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
clearMapping
public TextStream.Builder clearMapping()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
removeMapping
public TextStream.Builder removeMapping(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
getMappingBuilder
public TextStream.TextMapping.Builder getMappingBuilder(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
getMappingOrBuilder
public TextStream.TextMappingOrBuilder getMappingOrBuilder(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
- Specified by:
getMappingOrBuilder
in interfaceTextStreamOrBuilder
-
getMappingOrBuilderList
public List<? extends TextStream.TextMappingOrBuilder> getMappingOrBuilderList()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
- Specified by:
getMappingOrBuilderList
in interfaceTextStreamOrBuilder
-
addMappingBuilder
public TextStream.TextMapping.Builder addMappingBuilder()
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
addMappingBuilder
public TextStream.TextMapping.Builder addMappingBuilder(int index)
The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
repeated .google.cloud.video.transcoder.v1.TextStream.TextMapping mapping = 3;
-
getMappingBuilderList
public List<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;
-
getDisplayName
public String getDisplayName()
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;
- Specified by:
getDisplayName
in interfaceTextStreamOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
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;
- Specified by:
getDisplayNameBytes
in interfaceTextStreamOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public TextStream.Builder setDisplayName(String value)
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;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public TextStream.Builder clearDisplayName()
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:
- This builder for chaining.
-
setDisplayNameBytes
public TextStream.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TextStream.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
mergeUnknownFields
public final TextStream.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TextStream.Builder>
-
-