public class WrappedRedvoxPacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Api900.RedvoxPacket |
redvoxPacket
Reference to original protobuf encoded RedvoxPacket.
|
Constructor and Description |
---|
WrappedRedvoxPacket(Api900.RedvoxPacket redvoxPacket)
Instantiates a new WrappedRedvoxPacket from the Java protobuf representation of an API 900 packet.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<AccelerometerSensor> |
accelerometerChannel()
Returns the accelerometer channel in an optional if it is present, otherwise, an empty optional.
|
java.lang.String |
acquisitionServer()
Returns the URL of the server this packet was acquired at.
|
int |
api()
Returns the API level of the RedVox protocol.
|
long |
appFileStartTimestampEpochMicrosecondsUtc()
Returns the number of microseconds since the epoch UTC marking the creation of this packet as calculated by
the sensor device's clock.
|
long |
appFileStartTimestampMachine()
Returns the number of microseconds since the epoch UTC which marks the creation of this packet as calculated by
the sensor device's machine time.
|
java.lang.String |
appVersion()
Returns the app version of the sensor device.
|
java.lang.String |
authenticatedEmail()
Returns the authenticated e-mail address used to create this packet.
|
java.lang.String |
authenticationServer()
Returns the URL of the server that the sensor device authenticated itself with.
|
java.lang.String |
authenticationToken()
Returns the JWT authentication token.
|
java.util.Optional<BarometerSensor> |
barometerChannel()
Returns the barometer channel in an optional if it is present, otherwise, an empty optional.
|
float |
batteryLevelPercent()
Returns the battery level of the sensor device as a percentage.
|
java.lang.String |
deviceMake()
Returns the sensor device make.
|
java.lang.String |
deviceModel()
Returns the sensor device model.
|
java.lang.String |
deviceOs()
Returns the operating system of the sensor device.
|
java.lang.String |
deviceOsVersion()
Returns the operating system version of the sensor device.
|
float |
deviceTemperatureC()
Returns the temperature of the sensor device in degrees Celsius.
|
java.lang.String |
firebaseToken()
Returns the firebase token.
|
java.util.Optional<GyroscopeSensor> |
gyroscopeChannel()
Returns the gyroscope channel in an optional if it is present, otherwise, an empty optional.
|
boolean |
hasAccelerometerChannel()
Returns if this packet contains an accelerometer sensor channel.
|
boolean |
hasBarometerChannel()
Returns if this packet contains a barometer sensor channel.
|
boolean |
hasGyroscopeChannel()
Returns if this packet contains a gyroscope sensor channel.
|
boolean |
hasImageChannel()
Returns if this packet contains an image sensor channel.
|
boolean |
hasInfraredChannel()
Returns if this packet contains an infrared sensor channel.
|
boolean |
hasLightChannel()
Returns if this packet contains a light sensor channel.
|
boolean |
hasLocationChannel()
Returns if this packet contains a location sensor channel.
|
boolean |
hasMagnetometerChannel()
Returns if this packet contains a magnetometer sensor channel.
|
boolean |
hasMicrophoneChannel()
Returns if this packet contains a microphone sensor channel.
|
boolean |
hasTimeSynchronizationChannel()
Returns if this packet contains a time synchronization sensor channel.
|
java.util.Optional<ImageSensor> |
imageChannel()
Returns the image channel in an optional if it is present, otherwise, an empty optional.
|
java.util.Optional<InfraredSensor> |
infraredChannel()
Returns the infrared channel in an optional if it is present, otherwise, an empty optional.
|
boolean |
isBackfilled()
Flag that is set for backfilled data.
|
boolean |
isPrivate()
Flag that is set for private data.
|
boolean |
isScrambled()
Flag that is set for if microphone data is scrambled data.
|
java.util.Optional<LightSensor> |
lightChannel()
Returns the light channel in an optional if it is present, otherwise, an empty optional.
|
java.util.Optional<LocationSensor> |
locationChannel()
Returns the location channel in an optional if it is present, otherwise, an empty optional.
|
java.util.Optional<MagnetometerSensor> |
magnetometerChannel()
Returns the magnetometer channel in an optional if it is present, otherwise, an empty optional.
|
java.util.List<java.lang.String> |
metadataList()
Returns any top-level metadata added to this packet as a list.
|
java.util.Map<java.lang.String,java.lang.String> |
metadataMap()
Returns any top-level metadata added to this packet as key-values.
|
java.util.Optional<MicrophoneSensor> |
microphoneChannel()
Returns the microphone channel in an optional if it is present, otherwise, an empty optional.
|
java.lang.String |
redvoxId()
Returns the redvox id.
|
long |
serverTimestampEpochMicrosecondsUtc()
Returns the number of microseconds since the epoch UTC that marks this packet's arrival at the acquisition
server.
|
java.util.Optional<TimeSynchronizationSensor> |
timeSynchronizationChannel()
Returns the time synchronization channel in an optional if it is present, otherwise, an empty optional.
|
java.lang.String |
timeSynchronizationServer()
Returns the URL of the server where time synchronization exchanges took place.
|
java.util.Optional<java.lang.String> |
toJson()
Attempts to convert the underlying encoded protobuf message to JSON.
|
java.lang.String |
toString()
Use protobuf-java's String representation.
|
java.lang.String |
uuid()
Returns the RedVox uuid.
|
public final Api900.RedvoxPacket redvoxPacket
public WrappedRedvoxPacket(Api900.RedvoxPacket redvoxPacket)
public int api()
public java.lang.String redvoxId()
public java.lang.String uuid()
public java.lang.String authenticatedEmail()
public java.lang.String authenticationToken()
public java.lang.String firebaseToken()
public boolean isBackfilled()
public boolean isPrivate()
public boolean isScrambled()
public java.lang.String deviceMake()
public java.lang.String deviceModel()
public java.lang.String deviceOs()
public java.lang.String deviceOsVersion()
public java.lang.String appVersion()
public float batteryLevelPercent()
public float deviceTemperatureC()
public java.lang.String acquisitionServer()
public java.lang.String timeSynchronizationServer()
public java.lang.String authenticationServer()
public long appFileStartTimestampEpochMicrosecondsUtc()
public long appFileStartTimestampMachine()
public long serverTimestampEpochMicrosecondsUtc()
public java.util.List<java.lang.String> metadataList()
public java.util.Map<java.lang.String,java.lang.String> metadataMap()
public boolean hasMicrophoneChannel()
public java.util.Optional<MicrophoneSensor> microphoneChannel()
public boolean hasBarometerChannel()
public java.util.Optional<BarometerSensor> barometerChannel()
public boolean hasLocationChannel()
public java.util.Optional<LocationSensor> locationChannel()
public boolean hasTimeSynchronizationChannel()
public java.util.Optional<TimeSynchronizationSensor> timeSynchronizationChannel()
public boolean hasAccelerometerChannel()
public java.util.Optional<AccelerometerSensor> accelerometerChannel()
public boolean hasMagnetometerChannel()
public java.util.Optional<MagnetometerSensor> magnetometerChannel()
public boolean hasGyroscopeChannel()
public java.util.Optional<GyroscopeSensor> gyroscopeChannel()
public boolean hasLightChannel()
public java.util.Optional<LightSensor> lightChannel()
public boolean hasInfraredChannel()
public java.util.Optional<InfraredSensor> infraredChannel()
public boolean hasImageChannel()
public java.util.Optional<ImageSensor> imageChannel()
public java.util.Optional<java.lang.String> toJson()
public java.lang.String toString()
toString
in class java.lang.Object