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.transcoder.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
 [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list]
 atoms with audio
 [EditAtom.inputs][google.cloud.video.transcoder.v1.EditAtom.inputs].
 
Protobuf type google.cloud.video.transcoder.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
    • getAtomKey

      public String getAtomKey()
       Required. The
       [EditAtom.key][google.cloud.video.transcoder.v1.EditAtom.key] that
       references the atom with audio inputs in the
       [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list].
       
      string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAtomKey in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The atomKey.
    • getAtomKeyBytes

      public com.google.protobuf.ByteString getAtomKeyBytes()
       Required. The
       [EditAtom.key][google.cloud.video.transcoder.v1.EditAtom.key] that
       references the atom with audio inputs in the
       [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list].
       
      string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAtomKeyBytes in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The bytes for atomKey.
    • setAtomKey

      public AudioStream.AudioMapping.Builder setAtomKey(String value)
       Required. The
       [EditAtom.key][google.cloud.video.transcoder.v1.EditAtom.key] that
       references the atom with audio inputs in the
       [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list].
       
      string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The atomKey to set.
      Returns:
      This builder for chaining.
    • clearAtomKey

      public AudioStream.AudioMapping.Builder clearAtomKey()
       Required. The
       [EditAtom.key][google.cloud.video.transcoder.v1.EditAtom.key] that
       references the atom with audio inputs in the
       [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list].
       
      string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAtomKeyBytes

      public AudioStream.AudioMapping.Builder setAtomKeyBytes(com.google.protobuf.ByteString value)
       Required. The
       [EditAtom.key][google.cloud.video.transcoder.v1.EditAtom.key] that
       references the atom with audio inputs in the
       [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list].
       
      string atom_key = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for atomKey to set.
      Returns:
      This builder for chaining.
    • getInputKey

      public String getInputKey()
       Required. The [Input.key][google.cloud.video.transcoder.v1.Input.key]
       that identifies the input file.
       
      string input_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInputKey in interface AudioStream.AudioMappingOrBuilder
      Returns:
      The inputKey.
    • getInputKeyBytes

      public com.google.protobuf.ByteString getInputKeyBytes()
       Required. The [Input.key][google.cloud.video.transcoder.v1.Input.key]
       that identifies the input file.
       
      string input_key = 2 [(.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 [Input.key][google.cloud.video.transcoder.v1.Input.key]
       that identifies the input file.
       
      string input_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The inputKey to set.
      Returns:
      This builder for chaining.
    • clearInputKey

      public AudioStream.AudioMapping.Builder clearInputKey()
       Required. The [Input.key][google.cloud.video.transcoder.v1.Input.key]
       that identifies the input file.
       
      string input_key = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setInputKeyBytes

      public AudioStream.AudioMapping.Builder setInputKeyBytes(com.google.protobuf.ByteString value)
       Required. The [Input.key][google.cloud.video.transcoder.v1.Input.key]
       that identifies the input file.
       
      string input_key = 2 [(.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 file.
       
      int32 input_track = 3 [(.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 file.
       
      int32 input_track = 3 [(.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 file.
       
      int32 input_track = 3 [(.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 audio stream.
       
      int32 input_channel = 4 [(.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 audio stream.
       
      int32 input_channel = 4 [(.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 audio stream.
       
      int32 input_channel = 4 [(.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.
       
      int32 output_channel = 5 [(.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.
       
      int32 output_channel = 5 [(.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.
       
      int32 output_channel = 5 [(.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 = 6;
      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 = 6;
      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 = 6;
      Returns:
      This builder for chaining.