Class Audioinput.AudioChunkInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Audioinput.AudioChunkInfo,Audioinput.AudioChunkInfo.Builder>
com.viam.component.audioinput.v1.Audioinput.AudioChunkInfo.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Audioinput.AudioChunkInfoOrBuilder, Cloneable
Enclosing class:
Audioinput.AudioChunkInfo

public static final class Audioinput.AudioChunkInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Audioinput.AudioChunkInfo,Audioinput.AudioChunkInfo.Builder> implements Audioinput.AudioChunkInfoOrBuilder
Protobuf type viam.component.audioinput.v1.AudioChunkInfo
  • Method Details

    • getSampleFormatValue

      public int getSampleFormatValue()
       Actual sample encoding format of the response
       
      .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];
      Specified by:
      getSampleFormatValue in interface Audioinput.AudioChunkInfoOrBuilder
      Returns:
      The enum numeric value on the wire for sampleFormat.
    • setSampleFormatValue

      public Audioinput.AudioChunkInfo.Builder setSampleFormatValue(int value)
       Actual sample encoding format of the response
       
      .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];
      Parameters:
      value - The sampleFormat to set.
      Returns:
      This builder for chaining.
    • getSampleFormat

      public Audioinput.SampleFormat getSampleFormat()
       Actual sample encoding format of the response
       
      .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];
      Specified by:
      getSampleFormat in interface Audioinput.AudioChunkInfoOrBuilder
      Returns:
      The sampleFormat.
    • setSampleFormat

       Actual sample encoding format of the response
       
      .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];
      Parameters:
      value - The enum numeric value on the wire for sampleFormat to set.
      Returns:
      This builder for chaining.
    • clearSampleFormat

      public Audioinput.AudioChunkInfo.Builder clearSampleFormat()
       Actual sample encoding format of the response
       
      .viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];
      Returns:
      This builder for chaining.
    • getChannels

      public int getChannels()
      uint32 channels = 2 [json_name = "channels"];
      Specified by:
      getChannels in interface Audioinput.AudioChunkInfoOrBuilder
      Returns:
      The channels.
    • setChannels

      public Audioinput.AudioChunkInfo.Builder setChannels(int value)
      uint32 channels = 2 [json_name = "channels"];
      Parameters:
      value - The channels to set.
      Returns:
      This builder for chaining.
    • clearChannels

      public Audioinput.AudioChunkInfo.Builder clearChannels()
      uint32 channels = 2 [json_name = "channels"];
      Returns:
      This builder for chaining.
    • getSamplingRate

      public long getSamplingRate()
      int64 sampling_rate = 3 [json_name = "samplingRate"];
      Specified by:
      getSamplingRate in interface Audioinput.AudioChunkInfoOrBuilder
      Returns:
      The samplingRate.
    • setSamplingRate

      public Audioinput.AudioChunkInfo.Builder setSamplingRate(long value)
      int64 sampling_rate = 3 [json_name = "samplingRate"];
      Parameters:
      value - The samplingRate to set.
      Returns:
      This builder for chaining.
    • clearSamplingRate

      public Audioinput.AudioChunkInfo.Builder clearSamplingRate()
      int64 sampling_rate = 3 [json_name = "samplingRate"];
      Returns:
      This builder for chaining.