Class TextStream.TextMapping.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextStream.TextMapping.Builder>
com.google.cloud.video.livestream.v1.TextStream.TextMapping.Builder
- All Implemented Interfaces:
TextStream.TextMappingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextStream.TextMapping
public static final class TextStream.TextMapping.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TextStream.TextMapping.Builder>
implements TextStream.TextMappingOrBuilder
The mapping for the input streams and text tracks.Protobuf type
google.cloud.video.livestream.v1.TextStream.TextMapping-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TextStream.TextMapping other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFromLanguageCode(String value) Optional.setFromLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.setInputCeaChannel(String value) Optional.setInputCeaChannelBytes(com.google.protobuf.ByteString value) Optional.setInputKey(String value) Optional.setInputKeyBytes(com.google.protobuf.ByteString value) Optional.setInputTrack(int 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.TextMapping.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.TextMapping.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.TextMapping.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.TextMapping.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextStream.TextMapping.Builder>
-
mergeFrom
public TextStream.TextMapping.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.TextMapping.Builder>- Throws:
IOException
-
getInputKey
Optional. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this text mapping applies to.
string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputKeyin interfaceTextStream.TextMappingOrBuilder- Returns:
- The inputKey.
-
getInputKeyBytes
public com.google.protobuf.ByteString getInputKeyBytes()Optional. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this text mapping applies to.
string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputKeyBytesin interfaceTextStream.TextMappingOrBuilder- Returns:
- The bytes for inputKey.
-
setInputKey
Optional. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this text mapping applies to.
string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The inputKey to set.- Returns:
- This builder for chaining.
-
clearInputKey
Optional. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this text mapping applies to.
string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setInputKeyBytes
Optional. The `Channel` [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that identifies the input that this text mapping applies to.
string input_key = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for inputKey to set.- Returns:
- This builder for chaining.
-
getInputTrack
public int getInputTrack()Optional. The zero-based index of the track in the input stream.
int32 input_track = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputTrackin interfaceTextStream.TextMappingOrBuilder- Returns:
- The inputTrack.
-
setInputTrack
Optional. The zero-based index of the track in the input stream.
int32 input_track = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The inputTrack to set.- Returns:
- This builder for chaining.
-
clearInputTrack
Optional. The zero-based index of the track in the input stream.
int32 input_track = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getInputCeaChannel
Optional. The channel of the closed caption in the input stream. If this field is set, the output [codec][google.cloud.video.livestream.v1.TextStream.codec] must be `webvtt`. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec of the input closed caption is `cea608`; Must be one between `SERVICE1` and `SERVICE64`, if the codec of the input closed caption is `cea708`.
string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputCeaChannelin interfaceTextStream.TextMappingOrBuilder- Returns:
- The inputCeaChannel.
-
getInputCeaChannelBytes
public com.google.protobuf.ByteString getInputCeaChannelBytes()Optional. The channel of the closed caption in the input stream. If this field is set, the output [codec][google.cloud.video.livestream.v1.TextStream.codec] must be `webvtt`. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec of the input closed caption is `cea608`; Must be one between `SERVICE1` and `SERVICE64`, if the codec of the input closed caption is `cea708`.
string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputCeaChannelBytesin interfaceTextStream.TextMappingOrBuilder- Returns:
- The bytes for inputCeaChannel.
-
setInputCeaChannel
Optional. The channel of the closed caption in the input stream. If this field is set, the output [codec][google.cloud.video.livestream.v1.TextStream.codec] must be `webvtt`. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec of the input closed caption is `cea608`; Must be one between `SERVICE1` and `SERVICE64`, if the codec of the input closed caption is `cea708`.
string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The inputCeaChannel to set.- Returns:
- This builder for chaining.
-
clearInputCeaChannel
Optional. The channel of the closed caption in the input stream. If this field is set, the output [codec][google.cloud.video.livestream.v1.TextStream.codec] must be `webvtt`. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec of the input closed caption is `cea608`; Must be one between `SERVICE1` and `SERVICE64`, if the codec of the input closed caption is `cea708`.
string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setInputCeaChannelBytes
Optional. The channel of the closed caption in the input stream. If this field is set, the output [codec][google.cloud.video.livestream.v1.TextStream.codec] must be `webvtt`. Must be one of `CC1`, `CC2`, `CC3`, and `CC4`, if the codec of the input closed caption is `cea608`; Must be one between `SERVICE1` and `SERVICE64`, if the codec of the input closed caption is `cea708`.
string input_cea_channel = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for inputCeaChannel to set.- Returns:
- This builder for chaining.
-
getFromLanguageCode
Optional. The BCP-47 source language code, such as `en-US` or `sr-Latn`. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFromLanguageCodein interfaceTextStream.TextMappingOrBuilder- Returns:
- The fromLanguageCode.
-
getFromLanguageCodeBytes
public com.google.protobuf.ByteString getFromLanguageCodeBytes()Optional. The BCP-47 source language code, such as `en-US` or `sr-Latn`. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFromLanguageCodeBytesin interfaceTextStream.TextMappingOrBuilder- Returns:
- The bytes for fromLanguageCode.
-
setFromLanguageCode
Optional. The BCP-47 source language code, such as `en-US` or `sr-Latn`. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The fromLanguageCode to set.- Returns:
- This builder for chaining.
-
clearFromLanguageCode
Optional. The BCP-47 source language code, such as `en-US` or `sr-Latn`. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setFromLanguageCodeBytes
public TextStream.TextMapping.Builder setFromLanguageCodeBytes(com.google.protobuf.ByteString value) Optional. The BCP-47 source language code, such as `en-US` or `sr-Latn`. If differ from the textStream's language code, enable translation. For more information on BCP-47 language codes, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string from_language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for fromLanguageCode to set.- Returns:
- This builder for chaining.
-