Package com.viam.common.v1
Class Common.AudioInfo
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Common.AudioInfo,Common.AudioInfo.Builder>
com.viam.common.v1.Common.AudioInfo
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Common.AudioInfoOrBuilder
- Enclosing class:
- Common
public static final class Common.AudioInfo
extends com.google.protobuf.GeneratedMessageLite<Common.AudioInfo,Common.AudioInfo.Builder>
implements Common.AudioInfoOrBuilder
Information about an audio stream or device.Protobuf type
viam.common.v1.AudioInfo-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classInformation about an audio stream or device.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
FieldsModifier and TypeFieldDescriptionstatic 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) getCodec()Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")com.google.protobuf.ByteStringAudio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")static Common.AudioInfointNumber of audio channels in the recording or playbackintSample rate of the audio in Hzstatic Common.AudioInfo.Builderstatic Common.AudioInfo.BuildernewBuilder(Common.AudioInfo prototype) static Common.AudioInfoparseDelimitedFrom(InputStream input) static Common.AudioInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.AudioInfoparseFrom(byte[] data) static Common.AudioInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.AudioInfoparseFrom(com.google.protobuf.ByteString data) static Common.AudioInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.AudioInfoparseFrom(com.google.protobuf.CodedInputStream input) static Common.AudioInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.AudioInfoparseFrom(InputStream input) static Common.AudioInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Common.AudioInfoparseFrom(ByteBuffer data) static Common.AudioInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Common.AudioInfo>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
-
CODEC_FIELD_NUMBER
public static final int CODEC_FIELD_NUMBER- See Also:
-
SAMPLE_RATE_HZ_FIELD_NUMBER
public static final int SAMPLE_RATE_HZ_FIELD_NUMBER- See Also:
-
NUM_CHANNELS_FIELD_NUMBER
public static final int NUM_CHANNELS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getCodec
Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
string codec = 1 [json_name = "codec"];- Specified by:
getCodecin interfaceCommon.AudioInfoOrBuilder- Returns:
- The codec.
-
getCodecBytes
public com.google.protobuf.ByteString getCodecBytes()Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
string codec = 1 [json_name = "codec"];- Specified by:
getCodecBytesin interfaceCommon.AudioInfoOrBuilder- Returns:
- The bytes for codec.
-
getSampleRateHz
public int getSampleRateHz()Sample rate of the audio in Hz
int32 sample_rate_hz = 2 [json_name = "sampleRateHz"];- Specified by:
getSampleRateHzin interfaceCommon.AudioInfoOrBuilder- Returns:
- The sampleRateHz.
-
getNumChannels
public int getNumChannels()Number of audio channels in the recording or playback
int32 num_channels = 3 [json_name = "numChannels"];- Specified by:
getNumChannelsin interfaceCommon.AudioInfoOrBuilder- Returns:
- The numChannels.
-
parseFrom
public static Common.AudioInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.AudioInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.AudioInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.AudioInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.AudioInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Common.AudioInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Common.AudioInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Common.AudioInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Common.AudioInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Common.AudioInfo 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<Common.AudioInfo,Common.AudioInfo.Builder>
-
getDefaultInstance
-
parser
-