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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
    • clear

      public TextStream.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TextStream.Builder>
    • getDefaultInstanceForType

      public TextStream getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TextStream build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TextStream buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TextStream.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextStream.Builder>
    • mergeFrom

      public TextStream.Builder mergeFrom(TextStream other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TextStream.Builder>
      Throws:
      IOException
    • getCodec

      public String getCodec()
       Required. The codec for this text stream.
      
       Supported text codecs:
      
       - `cea608`
       - `cea708`
       - `webvtt`
       
      string codec = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCodec in interface TextStreamOrBuilder
      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:
      getCodecBytes in interface TextStreamOrBuilder
      Returns:
      The bytes for codec.
    • setCodec

      public TextStream.Builder setCodec(String value)
       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

      public TextStream.Builder 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

      public TextStream.Builder setCodecBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getLanguageCode in interface TextStreamOrBuilder
      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:
      getLanguageCodeBytes in interface TextStreamOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public TextStream.Builder setLanguageCode(String value)
       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

      public TextStream.Builder 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

      public TextStream.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getDisplayName in interface TextStreamOrBuilder
      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:
      getDisplayNameBytes in interface TextStreamOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public TextStream.Builder setDisplayName(String value)
       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

      public TextStream.Builder 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

      public TextStream.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       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

      public String 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:
      getOutputCeaChannel in interface TextStreamOrBuilder
      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:
      getOutputCeaChannelBytes in interface TextStreamOrBuilder
      Returns:
      The bytes for outputCeaChannel.
    • setOutputCeaChannel

      public TextStream.Builder setOutputCeaChannel(String value)
       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

      public TextStream.Builder 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

      public TextStream.Builder setOutputCeaChannelBytes(com.google.protobuf.ByteString value)
       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

      public List<TextStream.TextMapping> 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:
      getMappingList in interface TextStreamOrBuilder
    • 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:
      getMappingCount in interface TextStreamOrBuilder
    • getMapping

      public TextStream.TextMapping getMapping(int index)
       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:
      getMapping in interface TextStreamOrBuilder
    • setMapping

      public TextStream.Builder setMapping(int index, TextStream.TextMapping value)
       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

      public TextStream.Builder setMapping(int index, TextStream.TextMapping.Builder builderForValue)
       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

      public TextStream.Builder addMapping(TextStream.TextMapping value)
       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

      public TextStream.Builder addMapping(int index, TextStream.TextMapping value)
       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

      public TextStream.Builder addMapping(TextStream.TextMapping.Builder builderForValue)
       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

      public TextStream.Builder addMapping(int index, TextStream.TextMapping.Builder builderForValue)
       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

      public TextStream.Builder addAllMapping(Iterable<? extends TextStream.TextMapping> values)
       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

      public TextStream.Builder 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

      public TextStream.Builder removeMapping(int index)
       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

      public TextStream.TextMapping.Builder getMappingBuilder(int index)
       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

      public TextStream.TextMappingOrBuilder getMappingOrBuilder(int index)
       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:
      getMappingOrBuilder in interface TextStreamOrBuilder
    • getMappingOrBuilderList

      public List<? extends TextStream.TextMappingOrBuilder> 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:
      getMappingOrBuilderList in interface TextStreamOrBuilder
    • addMappingBuilder

      public TextStream.TextMapping.Builder 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

      public TextStream.TextMapping.Builder addMappingBuilder(int index)
       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

      public List<TextStream.TextMapping.Builder> 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];