Class TextStream.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
com.google.cloud.video.livestream.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.GeneratedMessage.Builder<TextStream.Builder>
implements TextStreamOrBuilder
Encoding of a text stream. For example, closed captions or subtitles.Protobuf type
google.cloud.video.livestream.v1.TextStream-
Method Summary
Modifier and TypeMethodDescriptionaddAllMapping(Iterable<? extends TextStream.TextMapping> values) Optional.addMapping(int index, TextStream.TextMapping value) Optional.addMapping(int index, TextStream.TextMapping.Builder builderForValue) Optional.addMapping(TextStream.TextMapping value) Optional.addMapping(TextStream.TextMapping.Builder builderForValue) Optional.Optional.addMappingBuilder(int index) Optional.build()clear()Required.Optional.Optional.Optional.Optional.getCodec()Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getMapping(int index) Optional.getMappingBuilder(int index) Optional.Optional.intOptional.Optional.getMappingOrBuilder(int index) Optional.List<? extends TextStream.TextMappingOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TextStream other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeMapping(int index) Optional.Required.setCodecBytes(com.google.protobuf.ByteString value) Required.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setLanguageCode(String value) Optional.setLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.setMapping(int index, TextStream.TextMapping value) Optional.setMapping(int index, TextStream.TextMapping.Builder builderForValue) Optional.setOutputCeaChannel(String value) Optional.setOutputCeaChannelBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextStream.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
-
mergeFrom
public TextStream.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextStream.Builder>- Throws:
IOException
-
getCodec
Required. The codec for this text stream. Supported text codecs: - `cea608` - `cea708` - `webvtt`
string codec = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCodecin interfaceTextStreamOrBuilder- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()Required. The codec for this text stream. Supported text codecs: - `cea608` - `cea708` - `webvtt`
string codec = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getCodecBytesin interfaceTextStreamOrBuilder- Returns:
- The bytes for codec.
-
setCodec
Required. The codec for this text stream. Supported text codecs: - `cea608` - `cea708` - `webvtt`
string codec = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The codec to set.- Returns:
- This builder for chaining.
-
clearCodec
Required. The codec for this text stream. Supported text codecs: - `cea608` - `cea708` - `webvtt`
string codec = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setCodecBytes
Required. The codec for this text stream. Supported text codecs: - `cea608` - `cea708` - `webvtt`
string codec = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for codec to set.- Returns:
- This builder for chaining.
-
getLanguageCode
Optional. 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.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceTextStreamOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Optional. 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.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodeBytesin interfaceTextStreamOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
Optional. 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.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
Optional. 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.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
Optional. 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.
string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getDisplayName
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceTextStreamOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceTextStreamOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Optional. The name for this particular text stream that will be added to the HLS/DASH manifest.
string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getOutputCeaChannel
Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea708`.
string output_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCeaChannelin interfaceTextStreamOrBuilder- Returns:
- The outputCeaChannel.
-
getOutputCeaChannelBytes
public com.google.protobuf.ByteString getOutputCeaChannelBytes()Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea708`.
string output_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputCeaChannelBytesin interfaceTextStreamOrBuilder- Returns:
- The bytes for outputCeaChannel.
-
setOutputCeaChannel
Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea708`.
string output_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The outputCeaChannel to set.- Returns:
- This builder for chaining.
-
clearOutputCeaChannel
Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea708`.
string output_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setOutputCeaChannelBytes
Optional. The channel of the closed caption in the output stream. This field should only be set when textstream is used for partner distribution. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea608`; Must be one between `SERVICE1` and `SERVICE63`, if the [codec][google.cloud.video.livestream.v1.TextStream.codec] is `cea708`.
string output_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for outputCeaChannel to set.- Returns:
- This builder for chaining.
-
getMappingList
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMappingListin interfaceTextStreamOrBuilder
-
getMappingCount
public int getMappingCount()Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMappingCountin interfaceTextStreamOrBuilder
-
getMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMappingin interfaceTextStreamOrBuilder
-
setMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAllMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
removeMapping
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getMappingBuilder
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getMappingOrBuilder
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMappingOrBuilderin interfaceTextStreamOrBuilder
-
getMappingOrBuilderList
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMappingOrBuilderListin interfaceTextStreamOrBuilder
-
addMappingBuilder
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addMappingBuilder
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getMappingBuilderList
Optional. The mapping for the input streams and text tracks.
repeated .google.cloud.video.livestream.v1.TextStream.TextMapping mapping = 3 [(.google.api.field_behavior) = OPTIONAL];
-