Package com.viam.component.audioinput.v1
Class Audioinput.AudioChunk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Audioinput.AudioChunk,Audioinput.AudioChunk.Builder>
com.viam.component.audioinput.v1.Audioinput.AudioChunk.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Audioinput.AudioChunkOrBuilder
,Cloneable
- Enclosing class:
- Audioinput.AudioChunk
public static final class Audioinput.AudioChunk.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Audioinput.AudioChunk,Audioinput.AudioChunk.Builder>
implements Audioinput.AudioChunkOrBuilder
Protobuf type
viam.component.audioinput.v1.AudioChunk
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionData is PCM data that is organized according to the sample format along with its possible interleaving.Length is the number of samplescom.google.protobuf.ByteString
getData()
Data is PCM data that is organized according to the sample format along with its possible interleaving.int
Length is the number of samplessetData
(com.google.protobuf.ByteString value) Data is PCM data that is organized according to the sample format along with its possible interleaving.setLength
(int value) Length is the number of samplesMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getData
public com.google.protobuf.ByteString getData()Data is PCM data that is organized according to the sample format along with its possible interleaving. Data in each format is Little Endian.
bytes data = 1 [json_name = "data"];
- Specified by:
getData
in interfaceAudioinput.AudioChunkOrBuilder
- Returns:
- The data.
-
setData
Data is PCM data that is organized according to the sample format along with its possible interleaving. Data in each format is Little Endian.
bytes data = 1 [json_name = "data"];
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
Data is PCM data that is organized according to the sample format along with its possible interleaving. Data in each format is Little Endian.
bytes data = 1 [json_name = "data"];
- Returns:
- This builder for chaining.
-
getLength
public int getLength()Length is the number of samples
uint32 length = 2 [json_name = "length"];
- Specified by:
getLength
in interfaceAudioinput.AudioChunkOrBuilder
- Returns:
- The length.
-
setLength
Length is the number of samples
uint32 length = 2 [json_name = "length"];
- Parameters:
value
- The length to set.- Returns:
- This builder for chaining.
-
clearLength
Length is the number of samples
uint32 length = 2 [json_name = "length"];
- Returns:
- This builder for chaining.
-