Package com.viam.component.audioinput.v1
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionuint32 channels = 2 [json_name = "channels"];Actual sample encoding format of the responseint64 sampling_rate = 3 [json_name = "samplingRate"];intuint32 channels = 2 [json_name = "channels"];Actual sample encoding format of the responseintActual sample encoding format of the responselongint64 sampling_rate = 3 [json_name = "samplingRate"];setChannels(int value) uint32 channels = 2 [json_name = "channels"];Actual sample encoding format of the responsesetSampleFormatValue(int value) Actual sample encoding format of the responsesetSamplingRate(long value) int64 sampling_rate = 3 [json_name = "samplingRate"];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
-
getSampleFormatValue
public int getSampleFormatValue()Actual sample encoding format of the response
.viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];- Specified by:
getSampleFormatValuein interfaceAudioinput.AudioChunkInfoOrBuilder- Returns:
- The enum numeric value on the wire for sampleFormat.
-
setSampleFormatValue
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
Actual sample encoding format of the response
.viam.component.audioinput.v1.SampleFormat sample_format = 1 [json_name = "sampleFormat"];- Specified by:
getSampleFormatin interfaceAudioinput.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
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:
getChannelsin interfaceAudioinput.AudioChunkInfoOrBuilder- Returns:
- The channels.
-
setChannels
uint32 channels = 2 [json_name = "channels"];- Parameters:
value- The channels to set.- Returns:
- This builder for chaining.
-
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:
getSamplingRatein interfaceAudioinput.AudioChunkInfoOrBuilder- Returns:
- The samplingRate.
-
setSamplingRate
int64 sampling_rate = 3 [json_name = "samplingRate"];- Parameters:
value- The samplingRate to set.- Returns:
- This builder for chaining.
-
clearSamplingRate
int64 sampling_rate = 3 [json_name = "samplingRate"];- Returns:
- This builder for chaining.
-