Class Common.GetPropertiesResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Common.GetPropertiesResponse,Common.GetPropertiesResponse.Builder>
com.viam.common.v1.Common.GetPropertiesResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Common.GetPropertiesResponseOrBuilder, Cloneable
Enclosing class:
Common.GetPropertiesResponse

public static final class Common.GetPropertiesResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Common.GetPropertiesResponse,Common.GetPropertiesResponse.Builder> implements Common.GetPropertiesResponseOrBuilder
Protobuf type viam.common.v1.GetPropertiesResponse
  • Method Details

    • getSupportedCodecsList

      public List<String> getSupportedCodecsList()
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Specified by:
      getSupportedCodecsList in interface Common.GetPropertiesResponseOrBuilder
      Returns:
      A list containing the supportedCodecs.
    • getSupportedCodecsCount

      public int getSupportedCodecsCount()
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Specified by:
      getSupportedCodecsCount in interface Common.GetPropertiesResponseOrBuilder
      Returns:
      The count of supportedCodecs.
    • getSupportedCodecs

      public String getSupportedCodecs(int index)
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Specified by:
      getSupportedCodecs in interface Common.GetPropertiesResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The supportedCodecs at the given index.
    • getSupportedCodecsBytes

      public com.google.protobuf.ByteString getSupportedCodecsBytes(int index)
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Specified by:
      getSupportedCodecsBytes in interface Common.GetPropertiesResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the supportedCodecs at the given index.
    • setSupportedCodecs

      public Common.GetPropertiesResponse.Builder setSupportedCodecs(int index, String value)
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Parameters:
      index - The index to set the value at.
      value - The supportedCodecs to set.
      Returns:
      This builder for chaining.
    • addSupportedCodecs

      public Common.GetPropertiesResponse.Builder addSupportedCodecs(String value)
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Parameters:
      value - The supportedCodecs to add.
      Returns:
      This builder for chaining.
    • addAllSupportedCodecs

      public Common.GetPropertiesResponse.Builder addAllSupportedCodecs(Iterable<String> values)
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Parameters:
      values - The supportedCodecs to add.
      Returns:
      This builder for chaining.
    • clearSupportedCodecs

      public Common.GetPropertiesResponse.Builder clearSupportedCodecs()
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Returns:
      This builder for chaining.
    • addSupportedCodecsBytes

      public Common.GetPropertiesResponse.Builder addSupportedCodecsBytes(com.google.protobuf.ByteString value)
       List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
       
      repeated string supported_codecs = 1 [json_name = "supportedCodecs"];
      Parameters:
      value - The bytes of the supportedCodecs to add.
      Returns:
      This builder for chaining.
    • getSampleRateHz

      public int getSampleRateHz()
       current sample rate in Hz
       
      int32 sample_rate_hz = 2 [json_name = "sampleRateHz"];
      Specified by:
      getSampleRateHz in interface Common.GetPropertiesResponseOrBuilder
      Returns:
      The sampleRateHz.
    • setSampleRateHz

      public Common.GetPropertiesResponse.Builder setSampleRateHz(int value)
       current sample rate in Hz
       
      int32 sample_rate_hz = 2 [json_name = "sampleRateHz"];
      Parameters:
      value - The sampleRateHz to set.
      Returns:
      This builder for chaining.
    • clearSampleRateHz

      public Common.GetPropertiesResponse.Builder clearSampleRateHz()
       current sample rate in Hz
       
      int32 sample_rate_hz = 2 [json_name = "sampleRateHz"];
      Returns:
      This builder for chaining.
    • getNumChannels

      public int getNumChannels()
       Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)
       
      int32 num_channels = 3 [json_name = "numChannels"];
      Specified by:
      getNumChannels in interface Common.GetPropertiesResponseOrBuilder
      Returns:
      The numChannels.
    • setNumChannels

      public Common.GetPropertiesResponse.Builder setNumChannels(int value)
       Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)
       
      int32 num_channels = 3 [json_name = "numChannels"];
      Parameters:
      value - The numChannels to set.
      Returns:
      This builder for chaining.
    • clearNumChannels

      public Common.GetPropertiesResponse.Builder clearNumChannels()
       Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)
       
      int32 num_channels = 3 [json_name = "numChannels"];
      Returns:
      This builder for chaining.