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 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.TextMapping.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.TextMapping.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.TextMapping.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      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.TextMapping.Builder>
      Throws:
      IOException
    • getInputKey

      public String 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:
      getInputKey in interface TextStream.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:
      getInputKeyBytes in interface TextStream.TextMappingOrBuilder
      Returns:
      The bytes for inputKey.
    • setInputKey

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

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

      public TextStream.TextMapping.Builder setInputKeyBytes(com.google.protobuf.ByteString value)
       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:
      getInputTrack in interface TextStream.TextMappingOrBuilder
      Returns:
      The inputTrack.
    • setInputTrack

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

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

      public String 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:
      getInputCeaChannel in interface TextStream.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:
      getInputCeaChannelBytes in interface TextStream.TextMappingOrBuilder
      Returns:
      The bytes for inputCeaChannel.
    • setInputCeaChannel

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

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

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

      public String 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:
      getFromLanguageCode in interface TextStream.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:
      getFromLanguageCodeBytes in interface TextStream.TextMappingOrBuilder
      Returns:
      The bytes for fromLanguageCode.
    • setFromLanguageCode

      public TextStream.TextMapping.Builder setFromLanguageCode(String 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 fromLanguageCode to set.
      Returns:
      This builder for chaining.
    • clearFromLanguageCode

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