Package com.viam.common.v1
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedCodecs(Iterable<String> values) List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")addSupportedCodecs(String value) List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")addSupportedCodecsBytes(com.google.protobuf.ByteString value) List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)current sample rate in HzList of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")intMaximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)intcurrent sample rate in HzgetSupportedCodecs(int index) List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")com.google.protobuf.ByteStringgetSupportedCodecsBytes(int index) List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")intList of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")setNumChannels(int value) Maximum number of audio channels supported (e.g., 1 for mono, 2 for stereo)setSampleRateHz(int value) current sample rate in HzsetSupportedCodecs(int index, String value) List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getSupportedCodecsList
List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
repeated string supported_codecs = 1 [json_name = "supportedCodecs"];- Specified by:
getSupportedCodecsListin interfaceCommon.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:
getSupportedCodecsCountin interfaceCommon.GetPropertiesResponseOrBuilder- Returns:
- The count of supportedCodecs.
-
getSupportedCodecs
List of audio codecs supported by the system (e.g., "mp3", "pcm16", "pcm32float")
repeated string supported_codecs = 1 [json_name = "supportedCodecs"];- Specified by:
getSupportedCodecsin interfaceCommon.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:
getSupportedCodecsBytesin interfaceCommon.GetPropertiesResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the supportedCodecs at the given index.
-
setSupportedCodecs
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
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
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
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:
getSampleRateHzin interfaceCommon.GetPropertiesResponseOrBuilder- Returns:
- The sampleRateHz.
-
setSampleRateHz
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
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:
getNumChannelsin interfaceCommon.GetPropertiesResponseOrBuilder- Returns:
- The numChannels.
-
setNumChannels
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
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.
-