Class AudioStream.AudioMapping.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AudioStream.AudioMapping.Builder>
com.google.cloud.video.livestream.v1.AudioStream.AudioMapping.Builder
All Implemented Interfaces:
AudioStream.AudioMappingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AudioStream.AudioMapping

public static final class AudioStream.AudioMapping.Builder extends com.google.protobuf.GeneratedMessage.Builder<AudioStream.AudioMapping.Builder> implements AudioStream.AudioMappingOrBuilder
 The mapping for the input streams and audio channels.
 
Protobuf type google.cloud.video.livestream.v1.AudioStream.AudioMapping
  • 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<AudioStream.AudioMapping.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<AudioStream.AudioMapping.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<AudioStream.AudioMapping.Builder>
    • getDefaultInstanceForType

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

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

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

      public AudioStream.AudioMapping.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<AudioStream.AudioMapping.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<AudioStream.AudioMapping.Builder>
    • mergeFrom

      public AudioStream.AudioMapping.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<AudioStream.AudioMapping.Builder>
      Throws:
      IOException
    • getInputKey

      public String getInputKey()
       Required. The `Channel`
       [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       that identifies the input that this audio mapping applies to. If an
       active input doesn't have an audio mapping, the primary audio track in
       the input stream will be selected.
       
      string input_key = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputKey in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The inputKey.
    • getInputKeyBytes

      public com.google.protobuf.ByteString getInputKeyBytes()
       Required. The `Channel`
       [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       that identifies the input that this audio mapping applies to. If an
       active input doesn't have an audio mapping, the primary audio track in
       the input stream will be selected.
       
      string input_key = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputKeyBytes in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The bytes for inputKey.
    • setInputKey

      public AudioStream.AudioMapping.Builder setInputKey(String value)
       Required. The `Channel`
       [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       that identifies the input that this audio mapping applies to. If an
       active input doesn't have an audio mapping, the primary audio track in
       the input stream will be selected.
       
      string input_key = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The inputKey to set.
      Returns:
      This builder for chaining.
    • clearInputKey

      public AudioStream.AudioMapping.Builder clearInputKey()
       Required. The `Channel`
       [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       that identifies the input that this audio mapping applies to. If an
       active input doesn't have an audio mapping, the primary audio track in
       the input stream will be selected.
       
      string input_key = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInputKeyBytes

      public AudioStream.AudioMapping.Builder setInputKeyBytes(com.google.protobuf.ByteString value)
       Required. The `Channel`
       [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
       that identifies the input that this audio mapping applies to. If an
       active input doesn't have an audio mapping, the primary audio track in
       the input stream will be selected.
       
      string input_key = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for inputKey to set.
      Returns:
      This builder for chaining.
    • getInputTrack

      public int getInputTrack()
       Required. The zero-based index of the track in the input stream.
       All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in
       the same [AudioStream][google.cloud.video.livestream.v1.AudioStream] must
       have the same input track.
       
      int32 input_track = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputTrack in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The inputTrack.
    • setInputTrack

      public AudioStream.AudioMapping.Builder setInputTrack(int value)
       Required. The zero-based index of the track in the input stream.
       All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in
       the same [AudioStream][google.cloud.video.livestream.v1.AudioStream] must
       have the same input track.
       
      int32 input_track = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The inputTrack to set.
      Returns:
      This builder for chaining.
    • clearInputTrack

      public AudioStream.AudioMapping.Builder clearInputTrack()
       Required. The zero-based index of the track in the input stream.
       All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in
       the same [AudioStream][google.cloud.video.livestream.v1.AudioStream] must
       have the same input track.
       
      int32 input_track = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getInputChannel

      public int getInputChannel()
       Required. The zero-based index of the channel in the input stream.
       
      int32 input_channel = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputChannel in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The inputChannel.
    • setInputChannel

      public AudioStream.AudioMapping.Builder setInputChannel(int value)
       Required. The zero-based index of the channel in the input stream.
       
      int32 input_channel = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The inputChannel to set.
      Returns:
      This builder for chaining.
    • clearInputChannel

      public AudioStream.AudioMapping.Builder clearInputChannel()
       Required. The zero-based index of the channel in the input stream.
       
      int32 input_channel = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getOutputChannel

      public int getOutputChannel()
       Required. The zero-based index of the channel in the output audio stream.
       Must be consistent with the
       [input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel].
       
      int32 output_channel = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputChannel in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The outputChannel.
    • setOutputChannel

      public AudioStream.AudioMapping.Builder setOutputChannel(int value)
       Required. The zero-based index of the channel in the output audio stream.
       Must be consistent with the
       [input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel].
       
      int32 output_channel = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The outputChannel to set.
      Returns:
      This builder for chaining.
    • clearOutputChannel

      public AudioStream.AudioMapping.Builder clearOutputChannel()
       Required. The zero-based index of the channel in the output audio stream.
       Must be consistent with the
       [input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel].
       
      int32 output_channel = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getGainDb

      public double getGainDb()
       Audio volume control in dB. Negative values decrease volume,
       positive values increase. The default is 0.
       
      double gain_db = 5;
      Specified by:
      getGainDb in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The gainDb.
    • setGainDb

      public AudioStream.AudioMapping.Builder setGainDb(double value)
       Audio volume control in dB. Negative values decrease volume,
       positive values increase. The default is 0.
       
      double gain_db = 5;
      Parameters:
      value - The gainDb to set.
      Returns:
      This builder for chaining.
    • clearGainDb

      public AudioStream.AudioMapping.Builder clearGainDb()
       Audio volume control in dB. Negative values decrease volume,
       positive values increase. The default is 0.
       
      double gain_db = 5;
      Returns:
      This builder for chaining.