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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type viam.component.audioin.v1.AudioChunk

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    com.google.protobuf.ByteString
    Audio data for this chunk, encoded according to the requested codec.
    Info about the audio stream for this chunk
     
    long
    int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];
    int
    Sequential chunk number
    long
    int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];
    boolean
    Info about the audio stream for this chunk
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Audioin.AudioChunk>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getAudioData in interface Audioin.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:
      hasAudioInfo in interface Audioin.AudioChunkOrBuilder
      Returns:
      Whether the audioInfo field is set.
    • getAudioInfo

      public Common.AudioInfo getAudioInfo()
       Info about the audio stream for this chunk
       
      .viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"];
      Specified by:
      getAudioInfo in interface Audioin.AudioChunkOrBuilder
      Returns:
      The audioInfo.
    • getStartTimestampNanoseconds

      public long getStartTimestampNanoseconds()
      int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];
      Specified by:
      getStartTimestampNanoseconds in interface Audioin.AudioChunkOrBuilder
      Returns:
      The startTimestampNanoseconds.
    • getEndTimestampNanoseconds

      public long getEndTimestampNanoseconds()
      int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];
      Specified by:
      getEndTimestampNanoseconds in interface Audioin.AudioChunkOrBuilder
      Returns:
      The endTimestampNanoseconds.
    • getSequence

      public int getSequence()
       Sequential chunk number
       
      int32 sequence = 5 [json_name = "sequence"];
      Specified by:
      getSequence in interface Audioin.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

      public static Audioin.AudioChunk parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Audioin.AudioChunk parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Audioin.AudioChunk parseDelimitedFrom(InputStream input) throws IOException
      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

      public static Audioin.AudioChunk.Builder newBuilder()
    • newBuilder

      public static Audioin.AudioChunk.Builder newBuilder(Audioin.AudioChunk prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Audioin.AudioChunk,Audioin.AudioChunk.Builder>
    • getDefaultInstance

      public static Audioin.AudioChunk getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Audioin.AudioChunk> parser()