Package com.viam.component.audioin.v1
Class Audioin.AudioChunk
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Audioin.AudioChunk,Audioin.AudioChunk.Builder>
com.viam.component.audioin.v1.Audioin.AudioChunk
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Audioin.AudioChunkOrBuilder
- Enclosing class:
- Audioin
public static final class Audioin.AudioChunk
extends com.google.protobuf.GeneratedMessageLite<Audioin.AudioChunk,Audioin.AudioChunk.Builder>
implements Audioin.AudioChunkOrBuilder
Protobuf type
viam.component.audioin.v1.AudioChunk-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeviam.component.audioin.v1.AudioChunkNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) com.google.protobuf.ByteStringAudio data for this chunk, encoded according to the requested codec.Info about the audio stream for this chunkstatic Audioin.AudioChunklongint64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];intSequential chunk numberlongint64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];booleanInfo about the audio stream for this chunkstatic Audioin.AudioChunk.Builderstatic Audioin.AudioChunk.BuildernewBuilder(Audioin.AudioChunk prototype) static Audioin.AudioChunkparseDelimitedFrom(InputStream input) static Audioin.AudioChunkparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Audioin.AudioChunkparseFrom(byte[] data) static Audioin.AudioChunkparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Audioin.AudioChunkparseFrom(com.google.protobuf.ByteString data) static Audioin.AudioChunkparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Audioin.AudioChunkparseFrom(com.google.protobuf.CodedInputStream input) static Audioin.AudioChunkparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Audioin.AudioChunkparseFrom(InputStream input) static Audioin.AudioChunkparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Audioin.AudioChunkparseFrom(ByteBuffer data) static Audioin.AudioChunkparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Audioin.AudioChunk>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
AUDIO_DATA_FIELD_NUMBER
public static final int AUDIO_DATA_FIELD_NUMBER- See Also:
-
AUDIO_INFO_FIELD_NUMBER
public static final int AUDIO_INFO_FIELD_NUMBER- See Also:
-
START_TIMESTAMP_NANOSECONDS_FIELD_NUMBER
public static final int START_TIMESTAMP_NANOSECONDS_FIELD_NUMBER- See Also:
-
END_TIMESTAMP_NANOSECONDS_FIELD_NUMBER
public static final int END_TIMESTAMP_NANOSECONDS_FIELD_NUMBER- See Also:
-
SEQUENCE_FIELD_NUMBER
public static final int SEQUENCE_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
getStartTimestampNanoseconds
public long getStartTimestampNanoseconds()int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];- Specified by:
getStartTimestampNanosecondsin interfaceAudioin.AudioChunkOrBuilder- Returns:
- The startTimestampNanoseconds.
-
getEndTimestampNanoseconds
public long getEndTimestampNanoseconds()int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];- Specified by:
getEndTimestampNanosecondsin interfaceAudioin.AudioChunkOrBuilder- Returns:
- The endTimestampNanoseconds.
-
getSequence
public int getSequence()Sequential chunk number
int32 sequence = 5 [json_name = "sequence"];- Specified by:
getSequencein interfaceAudioin.AudioChunkOrBuilder- Returns:
- The sequence.
-
parseFrom
public static Audioin.AudioChunk parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audioin.AudioChunk parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audioin.AudioChunk parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audioin.AudioChunk parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audioin.AudioChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Audioin.AudioChunk parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Audioin.AudioChunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Audioin.AudioChunk parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Audioin.AudioChunk parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Audioin.AudioChunk parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Audioin.AudioChunk,Audioin.AudioChunk.Builder>
-
getDefaultInstance
-
parser
-