Package com.viam.component.audioin.v1
Class Audioin.AudioChunk.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Audioin.AudioChunk,Audioin.AudioChunk.Builder>
com.viam.component.audioin.v1.Audioin.AudioChunk.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Audioin.AudioChunkOrBuilder,Cloneable
- Enclosing class:
- Audioin.AudioChunk
public static final class Audioin.AudioChunk.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Audioin.AudioChunk,Audioin.AudioChunk.Builder>
implements Audioin.AudioChunkOrBuilder
Protobuf type
viam.component.audioin.v1.AudioChunk-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionAudio data for this chunk, encoded according to the requested codec.Info about the audio stream for this chunkint64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];Sequential chunk numberint64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];com.google.protobuf.ByteStringAudio data for this chunk, encoded according to the requested codec.Info about the audio stream for this chunklongint64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];intSequential chunk numberlongint64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];booleanInfo about the audio stream for this chunkmergeAudioInfo(Common.AudioInfo value) Info about the audio stream for this chunksetAudioData(com.google.protobuf.ByteString value) Audio data for this chunk, encoded according to the requested codec.setAudioInfo(Common.AudioInfo value) Info about the audio stream for this chunksetAudioInfo(Common.AudioInfo.Builder builderForValue) Info about the audio stream for this chunksetEndTimestampNanoseconds(long value) int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];setSequence(int value) Sequential chunk numbersetStartTimestampNanoseconds(long value) int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];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
-
getAudioData
public com.google.protobuf.ByteString getAudioData()Audio data for this chunk, encoded according to the requested codec.
bytes audio_data = 1 [json_name = "audioData"];- Specified by:
getAudioDatain interfaceAudioin.AudioChunkOrBuilder- Returns:
- The audioData.
-
setAudioData
Audio data for this chunk, encoded according to the requested codec.
bytes audio_data = 1 [json_name = "audioData"];- Parameters:
value- The audioData to set.- Returns:
- This builder for chaining.
-
clearAudioData
Audio data for this chunk, encoded according to the requested codec.
bytes audio_data = 1 [json_name = "audioData"];- Returns:
- This builder for chaining.
-
hasAudioInfo
public boolean hasAudioInfo()Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"];- Specified by:
hasAudioInfoin interfaceAudioin.AudioChunkOrBuilder- Returns:
- Whether the audioInfo field is set.
-
getAudioInfo
Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"];- Specified by:
getAudioInfoin interfaceAudioin.AudioChunkOrBuilder- Returns:
- The audioInfo.
-
setAudioInfo
Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"]; -
setAudioInfo
Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"]; -
mergeAudioInfo
Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"]; -
clearAudioInfo
Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"]; -
getStartTimestampNanoseconds
public long getStartTimestampNanoseconds()int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];- Specified by:
getStartTimestampNanosecondsin interfaceAudioin.AudioChunkOrBuilder- Returns:
- The startTimestampNanoseconds.
-
setStartTimestampNanoseconds
int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];- Parameters:
value- The startTimestampNanoseconds to set.- Returns:
- This builder for chaining.
-
clearStartTimestampNanoseconds
int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];- Returns:
- This builder for chaining.
-
getEndTimestampNanoseconds
public long getEndTimestampNanoseconds()int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];- Specified by:
getEndTimestampNanosecondsin interfaceAudioin.AudioChunkOrBuilder- Returns:
- The endTimestampNanoseconds.
-
setEndTimestampNanoseconds
int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];- Parameters:
value- The endTimestampNanoseconds to set.- Returns:
- This builder for chaining.
-
clearEndTimestampNanoseconds
int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];- Returns:
- This builder for chaining.
-
getSequence
public int getSequence()Sequential chunk number
int32 sequence = 5 [json_name = "sequence"];- Specified by:
getSequencein interfaceAudioin.AudioChunkOrBuilder- Returns:
- The sequence.
-
setSequence
Sequential chunk number
int32 sequence = 5 [json_name = "sequence"];- Parameters:
value- The sequence to set.- Returns:
- This builder for chaining.
-
clearSequence
Sequential chunk number
int32 sequence = 5 [json_name = "sequence"];- Returns:
- This builder for chaining.
-