diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 00000000..3502bc99
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,22 @@
+# Summary
+
+One or two line summary of what this PR's changes do, and why you're making them.
+
+If this closes an issue, include the phrase: Closes (hashtag-issue_number)
+
+## Details
+
+- List of key changes made
+- Can be functional changes, or non-functional (eg, style, linting, refactoring)
+
+## Action Items
+
+- [ ] Test
+ - [ ] Minimum SDK (Android 9)
+ - [ ] Latest SDK
+- [ ] If there are any other outstanding items to be completed before merging, put them here
+ - Remember to request at least one code review! (You don't need to list this as an item here, as GitHub will already track code reviews for you)
+
+> # **NOTICE! Do not merge a pull request if it is not your assigned pull request!**
+>
+> Do not merge just because you are a code reviewer and you are okay with it. _Only_ merge if you are (one of) the author(s)!
diff --git a/.github/workflows/android-16.yml b/.github/workflows/android-16.yml
new file mode 100644
index 00000000..3879929c
--- /dev/null
+++ b/.github/workflows/android-16.yml
@@ -0,0 +1,36 @@
+name: Android 16 Build
+
+on:
+ push:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up JDK 21.0.3
+ uses: actions/setup-java@v4
+ with:
+ java-version: '21.0.3'
+ distribution: 'jetbrains'
+ cache: gradle
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v5
+
+ - name: Add (empty) local.properties
+ run: touch ./local.properties
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - name: Setup Android 16.0 SDK
+ uses: android-actions/setup-android@v3.2.2
+ with:
+ cmdline-tools-version: 12266719
+
+ - name: gradle build
+ run: ./gradlew --no-daemon --parallel build
\ No newline at end of file
diff --git a/.github/workflows/android-9.yml b/.github/workflows/android-9.yml
new file mode 100644
index 00000000..2312fc09
--- /dev/null
+++ b/.github/workflows/android-9.yml
@@ -0,0 +1,36 @@
+name: Android 9 Build
+
+on:
+ push:
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up JDK 21.0.3
+ uses: actions/setup-java@v4
+ with:
+ java-version: '21.0.3'
+ distribution: 'jetbrains'
+ cache: gradle
+
+ - name: Setup Gradle
+ uses: gradle/actions/setup-gradle@v5
+
+ - name: Add (empty) local.properties
+ run: touch ./local.properties
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - name: Setup Android 9.0 SDK
+ uses: android-actions/setup-android@v3.2.2
+ with:
+ cmdline-tools-version: 9477386
+
+ - name: gradle build
+ run: ./gradlew --no-daemon --parallel build
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index d4c3a57e..a231a4bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,16 +1,10 @@
*.iml
.gradle
/local.properties
-/.idea/caches
-/.idea/libraries
-/.idea/modules.xml
-/.idea/workspace.xml
-/.idea/navEditor.xml
-/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
-local.properties
/.idea/
+**/.vscode/
diff --git a/README.md b/README.md
index c4a9f02d..dfb5bd54 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,9 @@
-**PositionMe** is an indoor positioning data collection application initially developed for the University of Edinburgh's Embedded Wireless course. The application now includes enhanced features, including **trajectory playback**, improved UI design, and comprehensive location tracking.
+# Embedded Mobile and Wireless Systems (EWireless) 5 2025/26
+## Coursework 2 - Group 13
+
+[](https://github.com/sa-fx/ENG-EMWSE5/actions/workflows/android-9.yml) [](https://github.com/sa-fx/ENG-EMWSE5/actions/workflows/android-16.yml)
+
+**PositionMe** is an indoor positioning data collection application initially developed for the [University of Edinburgh's Embedded Wireless course](https://www.drps.ed.ac.uk/25-26/dpt/cxelee11083.htm). The application now includes enhanced features, including **trajectory playback**, improved UI design, and comprehensive location tracking.
## Features
@@ -13,19 +18,6 @@
- **Progress bar for tracking playback status**.
- **Redesigned UI**: Modern and user-friendly interface for enhanced usability.
-## Requirements
-
-- **Android Studio 4.2** or later
-- **Android SDK 30** or later
-
-## Installation
-
-1. **Clone the repository.**
-2. **Open the project in Android Studio**.
-3. Add your own API key for Google Maps in AndroidManifest.xml
-4. Set the website where you want to send your data. The application was built for use with [openpositioning.org](http://openpositioning.org/).
-5. **Build and run the project on your Android device**.
-
## Usage
1. **Install the application** using Android Studio.
@@ -43,3 +35,41 @@
6. **Control playback**:
- Pause, restart, or jump to the end using playback controls.
+## Requirements
+
+- **Android Studio 4.2** or later
+- **Android SDK 28** or later
+
+For developers, the latest commits have been tested using the following configuration:
+- [Android Studio 2024.2.1 Patch 1 ('Ladybird')](https://developer.android.com/studio/archive)
+ - Android Gradle Plugin 8.7.3
+ - Gradle 8.10.2
+ - Google Services 4.4.2
+ - [Spotless](https://github.com/diffplug/spotless) 8.3.0
+- Android SDK 28 ('Android 9')
+
+## Installation
+
+1. Clone the repository (`git clone`).
+2. Open the project in Android Studio.
+3. Add your own API keys for Google Maps and OpenPositioning in `secrets.properties`.
+4. Build and run the project on your Android device.
+
+## Build
+
+This project uses [Spotless](https://github.com/diffplug/spotless) for automatic linting against the [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html). To build the project with linting, run:
+
+```bash
+$ chmod +x ./gradlew
+$ ./gradlew clean build
+```
+
+This will run `spotlessCheck` as a pre-requisite for `build`. Any lint errors will cause the build to fail.
+
+If there are lint errors, you can either resolve these manually or run:
+
+```bash
+$ ./gradlew spotlessApply
+```
+
+This will use Spotless to let you resolve the errors identified during `spotlessCheck`.
diff --git a/app/build.gradle b/app/build.gradle
index 3e29b13f..11c12078 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,15 +3,43 @@ plugins {
id 'com.google.gms.google-services'
id 'androidx.navigation.safeargs'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
+ id 'com.diffplug.spotless' version "8.3.0"
}
-// (Optional) load local secrets file:
+// Load local secrets file:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('secrets.properties')
if (localPropertiesFile.exists()) {
localProperties.load(new FileInputStream(localPropertiesFile))
}
+spotless {
+ format 'misc', {
+ // Define the files to apply `misc` to
+ target '*.gradle', '.gitattributes', '.gitignore'
+
+ // Define the steps to apply to those files
+ trimTrailingWhitespace()
+ leadingTabsToSpaces(2)
+ endWithNewline()
+ }
+ java {
+ // All Java files, except autogenerated Traj.java
+ target "**/*.java"
+ targetExclude "**/Traj.java"
+
+ // Checks to be applied (on top of Google's Java style guide)
+ endWithNewline()
+ forbidWildcardImports()
+ formatAnnotations()
+ leadingTabsToSpaces(2)
+ removeUnusedImports()
+ trimTrailingWhitespace()
+
+ googleJavaFormat('1.35.0').aosp().reflowLongStrings()
+ }
+}
+
android {
namespace "com.openpositioning.PositionMe"
compileSdk 34
@@ -28,10 +56,11 @@ android {
// Example of referencing secrets (if you use secrets.properties):
buildConfigField "String", "MAPS_API_KEY",
"\"${localProperties['MAPS_API_KEY'] ?: ''}\""
- buildConfigField "String", "OPENPOSITIONING_API_KEY",
- "\"${localProperties['OPENPOSITIONING_API_KEY'] ?: ''}\""
buildConfigField "String", "OPENPOSITIONING_MASTER_KEY",
"\"${localProperties['OPENPOSITIONING_MASTER_KEY'] ?: ''}\""
+
+ // Add reference to maps API key for manifest file
+ manifestPlaceholders = [MAPS_API_KEY:localProperties['MAPS_API_KEY']?:""]
}
buildFeatures {
@@ -55,29 +84,37 @@ android {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
+
+ // Add lint support (Android linting)
+ lintOptions {
+ abortOnError true
+ baseline file("lint-baseline.xml")
+ }
}
dependencies {
// Core AndroidX
implementation 'androidx.appcompat:appcompat:1.7.0-alpha03' // or stable: 1.6.1
- implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
- implementation 'androidx.preference:preference:1.2.1'
+ implementation 'androidx.core:core-ktx:1.12.0'
+ implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
+ implementation 'androidx.preference:preference:1.2.1'
implementation 'com.android.volley:volley:1.2.1'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
-
// Material Components (Material 3 support is in 1.12.0+)
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.2.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
implementation 'com.google.android.material:material:1.12.0'
- implementation 'com.google.protobuf:protobuf-java:3.0.0'
- implementation 'com.squareup.okhttp3:okhttp:4.10.0'
- implementation "com.google.protobuf:protobuf-java-util:3.0.0"
- implementation "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"
implementation 'com.google.android.gms:play-services-maps:19.0.0'
+ implementation 'com.google.android.gms:play-services-location:21.3.0'
+ implementation "com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava"
+ implementation 'com.google.protobuf:protobuf-java:3.20.1'
+ implementation "com.google.protobuf:protobuf-java-util:3.20.1"
+ implementation 'com.squareup.okhttp3:okhttp:4.10.0'
+
+ // Secure credential storage
+ implementation 'androidx.datastore:datastore-preferences-rxjava3:1.2.1'
+ implementation "androidx.security:security-crypto:1.1.0"
// Navigation components
def nav_version = "2.8.6"
@@ -88,8 +125,10 @@ dependencies {
// implementation "androidx.compose.material3:material3:1.3.1"
// implementation "androidx.activity:activity-compose:1.7.2"
+ implementation "org.ejml:ejml-all:0.38"
+
// Testing
testImplementation 'junit:junit:4.13.2'
+ androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml
new file mode 100644
index 00000000..2429dfc0
--- /dev/null
+++ b/app/lint-baseline.xml
@@ -0,0 +1,2956 @@
+
+optional string android_version = 1;
+ * string android_version = 1;
+ * @return The androidVersion.
*/
- String getAndroidVersion();
+ java.lang.String getAndroidVersion();
/**
- * optional string android_version = 1;
+ * string android_version = 1;
+ * @return The bytes for androidVersion.
*/
com.google.protobuf.ByteString
getAndroidVersionBytes();
/**
- * repeated .Motion_Sample imu_data = 2;
+ *
+ * version 2.0 + *+ * + *
float trajectory_version = 2;
+ * @return The trajectoryVersion.
+ */
+ float getTrajectoryVersion();
+
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return The trajectoryId.
+ */
+ java.lang.String getTrajectoryId();
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return The bytes for trajectoryId.
+ */
+ com.google.protobuf.ByteString
+ getTrajectoryIdBytes();
+
+ /**
+ * repeated .IMUReading imu_data = 4;
*/
- java.util.Listrepeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- Motion_Sample getImuData(int index);
+ Traj.IMUReading getImuData(int index);
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
int getImuDataCount();
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- java.util.List extends Motion_SampleOrBuilder>
+ java.util.List extends Traj.IMUReadingOrBuilder>
getImuDataOrBuilderList();
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- Motion_SampleOrBuilder getImuDataOrBuilder(
+ Traj.IMUReadingOrBuilder getImuDataOrBuilder(
int index);
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- java.util.Listrepeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- Pdr_Sample getPdrData(int index);
+ Traj.RelativePosition getPdrData(int index);
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
int getPdrDataCount();
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- java.util.List extends Pdr_SampleOrBuilder>
+ java.util.List extends Traj.RelativePositionOrBuilder>
getPdrDataOrBuilderList();
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- Pdr_SampleOrBuilder getPdrDataOrBuilder(
+ Traj.RelativePositionOrBuilder getPdrDataOrBuilder(
int index);
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- java.util.Listrepeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- Position_Sample getPositionData(int index);
+ Traj.MagnetometerReading getMagnetometerData(int index);
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- int getPositionDataCount();
+ int getMagnetometerDataCount();
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- java.util.List extends Position_SampleOrBuilder>
- getPositionDataOrBuilderList();
+ java.util.List extends Traj.MagnetometerReadingOrBuilder>
+ getMagnetometerDataOrBuilderList();
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- Position_SampleOrBuilder getPositionDataOrBuilder(
+ Traj.MagnetometerReadingOrBuilder getMagnetometerDataOrBuilder(
int index);
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- java.util.Listrepeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- Pressure_Sample getPressureData(int index);
+ Traj.BarometerReading getPressureData(int index);
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
int getPressureDataCount();
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- java.util.List extends Pressure_SampleOrBuilder>
+ java.util.List extends Traj.BarometerReadingOrBuilder>
getPressureDataOrBuilderList();
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- Pressure_SampleOrBuilder getPressureDataOrBuilder(
+ Traj.BarometerReadingOrBuilder getPressureDataOrBuilder(
int index);
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- java.util.Listrepeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- Light_Sample getLightData(int index);
+ Traj.LightReading getLightData(int index);
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
int getLightDataCount();
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- java.util.List extends Light_SampleOrBuilder>
+ java.util.List extends Traj.LightReadingOrBuilder>
getLightDataOrBuilderList();
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
+ */
+ Traj.LightReadingOrBuilder getLightDataOrBuilder(
+ int index);
+
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ java.util.Listrepeated .ProximityReading proximity_data = 9;
*/
- Light_SampleOrBuilder getLightDataOrBuilder(
+ Traj.ProximityReading getProximityData(int index);
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ int getProximityDataCount();
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ java.util.List extends Traj.ProximityReadingOrBuilder>
+ getProximityDataOrBuilderList();
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ Traj.ProximityReadingOrBuilder getProximityDataOrBuilder(
int index);
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- java.util.Listrepeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- GNSS_Sample getGnssData(int index);
+ Traj.GNSSReading getGnssData(int index);
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
int getGnssDataCount();
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- java.util.List extends GNSS_SampleOrBuilder>
+ java.util.List extends Traj.GNSSReadingOrBuilder>
getGnssDataOrBuilderList();
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- GNSS_SampleOrBuilder getGnssDataOrBuilder(
+ Traj.GNSSReadingOrBuilder getGnssDataOrBuilder(
int index);
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- java.util.Listrepeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- WiFi_Sample getWifiData(int index);
+ Traj.Fingerprint getWifiFingerprints(int index);
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- int getWifiDataCount();
+ int getWifiFingerprintsCount();
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- java.util.List extends WiFi_SampleOrBuilder>
- getWifiDataOrBuilderList();
+ java.util.List extends Traj.FingerprintOrBuilder>
+ getWifiFingerprintsOrBuilderList();
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- WiFi_SampleOrBuilder getWifiDataOrBuilder(
+ Traj.FingerprintOrBuilder getWifiFingerprintsOrBuilder(
int index);
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- java.util.Listrepeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- AP_Data getApsData(int index);
+ Traj.WiFiAPData getApsData(int index);
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
int getApsDataCount();
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- java.util.List extends AP_DataOrBuilder>
+ java.util.List extends Traj.WiFiAPDataOrBuilder>
getApsDataOrBuilderList();
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
+ */
+ Traj.WiFiAPDataOrBuilder getApsDataOrBuilder(
+ int index);
+
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ java.util.Listrepeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ Traj.WiFiRTTReading getWifiRttData(int index);
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ int getWifiRttDataCount();
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ java.util.List extends Traj.WiFiRTTReadingOrBuilder>
+ getWifiRttDataOrBuilderList();
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ Traj.WiFiRTTReadingOrBuilder getWifiRttDataOrBuilder(
+ int index);
+
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ java.util.Listrepeated .Fingerprint ble_fingerprints = 14;
+ */
+ Traj.Fingerprint getBleFingerprints(int index);
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ int getBleFingerprintsCount();
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ java.util.List extends Traj.FingerprintOrBuilder>
+ getBleFingerprintsOrBuilderList();
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ Traj.FingerprintOrBuilder getBleFingerprintsOrBuilder(
+ int index);
+
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ java.util.Listrepeated .BleData ble_data = 15;
+ */
+ Traj.BleData getBleData(int index);
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ int getBleDataCount();
+ /**
+ * repeated .BleData ble_data = 15;
*/
- AP_DataOrBuilder getApsDataOrBuilder(
+ java.util.List extends Traj.BleDataOrBuilder>
+ getBleDataOrBuilderList();
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ Traj.BleDataOrBuilder getBleDataOrBuilder(
int index);
/**
@@ -229,134 +357,233 @@ AP_DataOrBuilder getApsDataOrBuilder(
* relative_timestamp = 3000 (3s)
*
*
- * optional int64 start_timestamp = 10;
+ * int64 start_timestamp = 16;
+ * @return The startTimestamp.
*/
long getStartTimestamp();
/**
- * optional string data_identifier = 11;
+ * .GNSSPosition initial_position = 17;
+ * @return Whether the initialPosition field is set.
*/
- String getDataIdentifier();
+ boolean hasInitialPosition();
/**
- * optional string data_identifier = 11;
+ * .GNSSPosition initial_position = 17;
+ * @return The initialPosition.
*/
- com.google.protobuf.ByteString
- getDataIdentifierBytes();
+ Traj.GNSSPosition getInitialPosition();
+ /**
+ * .GNSSPosition initial_position = 17;
+ */
+ Traj.GNSSPositionOrBuilder getInitialPositionOrBuilder();
+
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ java.util.Listrepeated .GNSSPosition corrected_positions = 18;
+ */
+ Traj.GNSSPosition getCorrectedPositions(int index);
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ int getCorrectedPositionsCount();
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ java.util.List extends Traj.GNSSPositionOrBuilder>
+ getCorrectedPositionsOrBuilderList();
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ Traj.GNSSPositionOrBuilder getCorrectedPositionsOrBuilder(
+ int index);
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * .SensorInfo accelerometer_info = 19;
+ * @return Whether the accelerometerInfo field is set.
*/
boolean hasAccelerometerInfo();
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * .SensorInfo accelerometer_info = 19;
+ * @return The accelerometerInfo.
*/
- Sensor_Info getAccelerometerInfo();
+ Traj.SensorInfo getAccelerometerInfo();
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * .SensorInfo accelerometer_info = 19;
*/
- Sensor_InfoOrBuilder getAccelerometerInfoOrBuilder();
+ Traj.SensorInfoOrBuilder getAccelerometerInfoOrBuilder();
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * .SensorInfo gyroscope_info = 20;
+ * @return Whether the gyroscopeInfo field is set.
*/
boolean hasGyroscopeInfo();
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * .SensorInfo gyroscope_info = 20;
+ * @return The gyroscopeInfo.
*/
- Sensor_Info getGyroscopeInfo();
+ Traj.SensorInfo getGyroscopeInfo();
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * .SensorInfo gyroscope_info = 20;
*/
- Sensor_InfoOrBuilder getGyroscopeInfoOrBuilder();
+ Traj.SensorInfoOrBuilder getGyroscopeInfoOrBuilder();
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * .SensorInfo rotation_vector_info = 21;
+ * @return Whether the rotationVectorInfo field is set.
*/
boolean hasRotationVectorInfo();
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * .SensorInfo rotation_vector_info = 21;
+ * @return The rotationVectorInfo.
*/
- Sensor_Info getRotationVectorInfo();
+ Traj.SensorInfo getRotationVectorInfo();
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * .SensorInfo rotation_vector_info = 21;
*/
- Sensor_InfoOrBuilder getRotationVectorInfoOrBuilder();
+ Traj.SensorInfoOrBuilder getRotationVectorInfoOrBuilder();
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * .SensorInfo magnetometer_info = 22;
+ * @return Whether the magnetometerInfo field is set.
*/
boolean hasMagnetometerInfo();
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * .SensorInfo magnetometer_info = 22;
+ * @return The magnetometerInfo.
*/
- Sensor_Info getMagnetometerInfo();
+ Traj.SensorInfo getMagnetometerInfo();
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * .SensorInfo magnetometer_info = 22;
*/
- Sensor_InfoOrBuilder getMagnetometerInfoOrBuilder();
+ Traj.SensorInfoOrBuilder getMagnetometerInfoOrBuilder();
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .SensorInfo barometer_info = 23;
+ * @return Whether the barometerInfo field is set.
*/
boolean hasBarometerInfo();
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .SensorInfo barometer_info = 23;
+ * @return The barometerInfo.
*/
- Sensor_Info getBarometerInfo();
+ Traj.SensorInfo getBarometerInfo();
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .SensorInfo barometer_info = 23;
*/
- Sensor_InfoOrBuilder getBarometerInfoOrBuilder();
+ Traj.SensorInfoOrBuilder getBarometerInfoOrBuilder();
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * .SensorInfo light_sensor_info = 24;
+ * @return Whether the lightSensorInfo field is set.
*/
boolean hasLightSensorInfo();
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * .SensorInfo light_sensor_info = 24;
+ * @return The lightSensorInfo.
+ */
+ Traj.SensorInfo getLightSensorInfo();
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ Traj.SensorInfoOrBuilder getLightSensorInfoOrBuilder();
+
+ /**
+ * .SensorInfo proximity_info = 25;
+ * @return Whether the proximityInfo field is set.
+ */
+ boolean hasProximityInfo();
+ /**
+ * .SensorInfo proximity_info = 25;
+ * @return The proximityInfo.
+ */
+ Traj.SensorInfo getProximityInfo();
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ Traj.SensorInfoOrBuilder getProximityInfoOrBuilder();
+
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ java.util.Listrepeated .GNSSPosition test_points = 26;
+ */
+ Traj.GNSSPosition getTestPoints(int index);
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ int getTestPointsCount();
+ /**
+ * repeated .GNSSPosition test_points = 26;
*/
- Sensor_Info getLightSensorInfo();
+ java.util.List extends Traj.GNSSPositionOrBuilder>
+ getTestPointsOrBuilderList();
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition test_points = 26;
*/
- Sensor_InfoOrBuilder getLightSensorInfoOrBuilder();
+ Traj.GNSSPositionOrBuilder getTestPointsOrBuilder(
+ int index);
}
/**
* Protobuf type {@code Trajectory}
*/
- public static final class Trajectory extends
+ public static final class Trajectory extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Trajectory)
TrajectoryOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Trajectory.newBuilder() to construct.
private Trajectory(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Trajectory() {
androidVersion_ = "";
+ trajectoryId_ = "";
imuData_ = java.util.Collections.emptyList();
pdrData_ = java.util.Collections.emptyList();
- positionData_ = java.util.Collections.emptyList();
+ magnetometerData_ = java.util.Collections.emptyList();
pressureData_ = java.util.Collections.emptyList();
lightData_ = java.util.Collections.emptyList();
+ proximityData_ = java.util.Collections.emptyList();
gnssData_ = java.util.Collections.emptyList();
- wifiData_ = java.util.Collections.emptyList();
+ wifiFingerprints_ = java.util.Collections.emptyList();
apsData_ = java.util.Collections.emptyList();
- startTimestamp_ = 0L;
- dataIdentifier_ = "";
+ wifiRttData_ = java.util.Collections.emptyList();
+ bleFingerprints_ = java.util.Collections.emptyList();
+ bleData_ = java.util.Collections.emptyList();
+ correctedPositions_ = java.util.Collections.emptyList();
+ testPoints_ = java.util.Collections.emptyList();
}
- @Override
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Trajectory();
+ }
+
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ return this.unknownFields;
}
private Trajectory(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -365,107 +592,164 @@ private Trajectory(
case 0:
done = true;
break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
case 10: {
- String s = input.readStringRequireUtf8();
+ java.lang.String s = input.readStringRequireUtf8();
androidVersion_ = s;
break;
}
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- imuData_ = new java.util.ArrayListoptional string android_version = 1;
+ * string android_version = 1;
+ * @return The androidVersion.
*/
- public String getAndroidVersion() {
- Object ref = androidVersion_;
- if (ref instanceof String) {
- return (String) ref;
+ @java.lang.Override
+ public java.lang.String getAndroidVersion() {
+ java.lang.Object ref = androidVersion_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ java.lang.String s = bs.toStringUtf8();
androidVersion_ = s;
return s;
}
}
/**
- * optional string android_version = 1;
+ * string android_version = 1;
+ * @return The bytes for androidVersion.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getAndroidVersionBytes() {
- Object ref = androidVersion_;
- if (ref instanceof String) {
+ java.lang.Object ref = androidVersion_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
androidVersion_ = b;
return b;
} else {
@@ -620,466 +958,858 @@ public String getAndroidVersion() {
}
}
- public static final int IMU_DATA_FIELD_NUMBER = 2;
- private java.util.List+ * version 2.0 + *+ * + *
float trajectory_version = 2;
+ * @return The trajectoryVersion.
+ */
+ @java.lang.Override
+ public float getTrajectoryVersion() {
+ return trajectoryVersion_;
+ }
+
+ public static final int TRAJECTORY_ID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object trajectoryId_;
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return The trajectoryId.
+ */
+ @java.lang.Override
+ public java.lang.String getTrajectoryId() {
+ java.lang.Object ref = trajectoryId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ trajectoryId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return The bytes for trajectoryId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTrajectoryIdBytes() {
+ java.lang.Object ref = trajectoryId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ trajectoryId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IMU_DATA_FIELD_NUMBER = 4;
+ private java.util.Listrepeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public java.util.Listrepeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public java.util.List extends Motion_SampleOrBuilder>
+ @java.lang.Override
+ public java.util.List extends Traj.IMUReadingOrBuilder>
getImuDataOrBuilderList() {
return imuData_;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
+ @java.lang.Override
public int getImuDataCount() {
return imuData_.size();
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_Sample getImuData(int index) {
+ @java.lang.Override
+ public Traj.IMUReading getImuData(int index) {
return imuData_.get(index);
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_SampleOrBuilder getImuDataOrBuilder(
+ @java.lang.Override
+ public Traj.IMUReadingOrBuilder getImuDataOrBuilder(
int index) {
return imuData_.get(index);
}
- public static final int PDR_DATA_FIELD_NUMBER = 3;
- private java.util.Listrepeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public java.util.Listrepeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public java.util.List extends Pdr_SampleOrBuilder>
+ @java.lang.Override
+ public java.util.List extends Traj.RelativePositionOrBuilder>
getPdrDataOrBuilderList() {
return pdrData_;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
+ @java.lang.Override
public int getPdrDataCount() {
return pdrData_.size();
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_Sample getPdrData(int index) {
+ @java.lang.Override
+ public Traj.RelativePosition getPdrData(int index) {
return pdrData_.get(index);
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_SampleOrBuilder getPdrDataOrBuilder(
+ @java.lang.Override
+ public Traj.RelativePositionOrBuilder getPdrDataOrBuilder(
int index) {
return pdrData_.get(index);
}
- public static final int POSITION_DATA_FIELD_NUMBER = 4;
- private java.util.Listrepeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public java.util.Listrepeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public java.util.List extends Position_SampleOrBuilder>
- getPositionDataOrBuilderList() {
- return positionData_;
+ @java.lang.Override
+ public java.util.List extends Traj.MagnetometerReadingOrBuilder>
+ getMagnetometerDataOrBuilderList() {
+ return magnetometerData_;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public int getPositionDataCount() {
- return positionData_.size();
+ @java.lang.Override
+ public int getMagnetometerDataCount() {
+ return magnetometerData_.size();
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_Sample getPositionData(int index) {
- return positionData_.get(index);
+ @java.lang.Override
+ public Traj.MagnetometerReading getMagnetometerData(int index) {
+ return magnetometerData_.get(index);
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_SampleOrBuilder getPositionDataOrBuilder(
+ @java.lang.Override
+ public Traj.MagnetometerReadingOrBuilder getMagnetometerDataOrBuilder(
int index) {
- return positionData_.get(index);
+ return magnetometerData_.get(index);
}
- public static final int PRESSURE_DATA_FIELD_NUMBER = 5;
- private java.util.Listrepeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public java.util.Listrepeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public java.util.List extends Pressure_SampleOrBuilder>
+ @java.lang.Override
+ public java.util.List extends Traj.BarometerReadingOrBuilder>
getPressureDataOrBuilderList() {
return pressureData_;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
+ @java.lang.Override
public int getPressureDataCount() {
return pressureData_.size();
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_Sample getPressureData(int index) {
+ @java.lang.Override
+ public Traj.BarometerReading getPressureData(int index) {
return pressureData_.get(index);
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_SampleOrBuilder getPressureDataOrBuilder(
+ @java.lang.Override
+ public Traj.BarometerReadingOrBuilder getPressureDataOrBuilder(
int index) {
return pressureData_.get(index);
}
- public static final int LIGHT_DATA_FIELD_NUMBER = 6;
- private java.util.Listrepeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public java.util.Listrepeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public java.util.List extends Light_SampleOrBuilder>
+ @java.lang.Override
+ public java.util.List extends Traj.LightReadingOrBuilder>
getLightDataOrBuilderList() {
return lightData_;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
+ @java.lang.Override
public int getLightDataCount() {
return lightData_.size();
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_Sample getLightData(int index) {
+ @java.lang.Override
+ public Traj.LightReading getLightData(int index) {
return lightData_.get(index);
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_SampleOrBuilder getLightDataOrBuilder(
+ @java.lang.Override
+ public Traj.LightReadingOrBuilder getLightDataOrBuilder(
int index) {
return lightData_.get(index);
}
- public static final int GNSS_DATA_FIELD_NUMBER = 7;
- private java.util.Listrepeated .ProximityReading proximity_data = 9;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .ProximityReading proximity_data = 9;
+ */
+ @java.lang.Override
+ public java.util.List extends Traj.ProximityReadingOrBuilder>
+ getProximityDataOrBuilderList() {
+ return proximityData_;
+ }
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ @java.lang.Override
+ public int getProximityDataCount() {
+ return proximityData_.size();
+ }
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ @java.lang.Override
+ public Traj.ProximityReading getProximityData(int index) {
+ return proximityData_.get(index);
+ }
+ /**
+ * repeated .ProximityReading proximity_data = 9;
+ */
+ @java.lang.Override
+ public Traj.ProximityReadingOrBuilder getProximityDataOrBuilder(
+ int index) {
+ return proximityData_.get(index);
+ }
+
+ public static final int GNSS_DATA_FIELD_NUMBER = 10;
+ private java.util.Listrepeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- public java.util.Listrepeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- public java.util.List extends GNSS_SampleOrBuilder>
+ @java.lang.Override
+ public java.util.List extends Traj.GNSSReadingOrBuilder>
getGnssDataOrBuilderList() {
return gnssData_;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
+ @java.lang.Override
public int getGnssDataCount() {
return gnssData_.size();
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- public GNSS_Sample getGnssData(int index) {
+ @java.lang.Override
+ public Traj.GNSSReading getGnssData(int index) {
return gnssData_.get(index);
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .GNSSReading gnss_data = 10;
*/
- public GNSS_SampleOrBuilder getGnssDataOrBuilder(
+ @java.lang.Override
+ public Traj.GNSSReadingOrBuilder getGnssDataOrBuilder(
int index) {
return gnssData_.get(index);
}
- public static final int WIFI_DATA_FIELD_NUMBER = 8;
- private java.util.Listrepeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public java.util.Listrepeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public java.util.List extends WiFi_SampleOrBuilder>
- getWifiDataOrBuilderList() {
- return wifiData_;
+ @java.lang.Override
+ public java.util.List extends Traj.FingerprintOrBuilder>
+ getWifiFingerprintsOrBuilderList() {
+ return wifiFingerprints_;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public int getWifiDataCount() {
- return wifiData_.size();
+ @java.lang.Override
+ public int getWifiFingerprintsCount() {
+ return wifiFingerprints_.size();
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_Sample getWifiData(int index) {
- return wifiData_.get(index);
+ @java.lang.Override
+ public Traj.Fingerprint getWifiFingerprints(int index) {
+ return wifiFingerprints_.get(index);
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_SampleOrBuilder getWifiDataOrBuilder(
+ @java.lang.Override
+ public Traj.FingerprintOrBuilder getWifiFingerprintsOrBuilder(
int index) {
- return wifiData_.get(index);
+ return wifiFingerprints_.get(index);
}
- public static final int APS_DATA_FIELD_NUMBER = 9;
- private java.util.Listrepeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public java.util.Listrepeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public java.util.List extends AP_DataOrBuilder>
+ @java.lang.Override
+ public java.util.List extends Traj.WiFiAPDataOrBuilder>
getApsDataOrBuilderList() {
return apsData_;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
+ @java.lang.Override
public int getApsDataCount() {
return apsData_.size();
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_Data getApsData(int index) {
+ @java.lang.Override
+ public Traj.WiFiAPData getApsData(int index) {
return apsData_.get(index);
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_DataOrBuilder getApsDataOrBuilder(
+ @java.lang.Override
+ public Traj.WiFiAPDataOrBuilder getApsDataOrBuilder(
int index) {
return apsData_.get(index);
}
- public static final int START_TIMESTAMP_FIELD_NUMBER = 10;
- private long startTimestamp_;
+ public static final int WIFI_RTT_DATA_FIELD_NUMBER = 13;
+ private java.util.List- * UNIX timestamp (in milliseconds) recorded from the start of this - * trajectory data collection event. All future - * timestamps in sub classes are to be RELATIVE timestamps - * (in milliseconds) to this start time. - * E.g. - * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) - * relative_timestamp = 3000 (3s) - *- * - *
optional int64 start_timestamp = 10;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public long getStartTimestamp() {
- return startTimestamp_;
+ @java.lang.Override
+ public java.util.Listoptional string data_identifier = 11;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public String getDataIdentifier() {
- Object ref = dataIdentifier_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- dataIdentifier_ = s;
- return s;
- }
+ @java.lang.Override
+ public java.util.List extends Traj.WiFiRTTReadingOrBuilder>
+ getWifiRttDataOrBuilderList() {
+ return wifiRttData_;
}
/**
- * optional string data_identifier = 11;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public com.google.protobuf.ByteString
- getDataIdentifierBytes() {
- Object ref = dataIdentifier_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- dataIdentifier_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ @java.lang.Override
+ public int getWifiRttDataCount() {
+ return wifiRttData_.size();
+ }
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ @java.lang.Override
+ public Traj.WiFiRTTReading getWifiRttData(int index) {
+ return wifiRttData_.get(index);
+ }
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ @java.lang.Override
+ public Traj.WiFiRTTReadingOrBuilder getWifiRttDataOrBuilder(
+ int index) {
+ return wifiRttData_.get(index);
+ }
+
+ public static final int BLE_FINGERPRINTS_FIELD_NUMBER = 14;
+ private java.util.Listrepeated .Fingerprint ble_fingerprints = 14;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .Fingerprint ble_fingerprints = 14;
+ */
+ @java.lang.Override
+ public java.util.List extends Traj.FingerprintOrBuilder>
+ getBleFingerprintsOrBuilderList() {
+ return bleFingerprints_;
+ }
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ @java.lang.Override
+ public int getBleFingerprintsCount() {
+ return bleFingerprints_.size();
+ }
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ @java.lang.Override
+ public Traj.Fingerprint getBleFingerprints(int index) {
+ return bleFingerprints_.get(index);
+ }
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ @java.lang.Override
+ public Traj.FingerprintOrBuilder getBleFingerprintsOrBuilder(
+ int index) {
+ return bleFingerprints_.get(index);
+ }
+
+ public static final int BLE_DATA_FIELD_NUMBER = 15;
+ private java.util.Listrepeated .BleData ble_data = 15;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .BleData ble_data = 15;
+ */
+ @java.lang.Override
+ public java.util.List extends Traj.BleDataOrBuilder>
+ getBleDataOrBuilderList() {
+ return bleData_;
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ @java.lang.Override
+ public int getBleDataCount() {
+ return bleData_.size();
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ @java.lang.Override
+ public Traj.BleData getBleData(int index) {
+ return bleData_.get(index);
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ @java.lang.Override
+ public Traj.BleDataOrBuilder getBleDataOrBuilder(
+ int index) {
+ return bleData_.get(index);
+ }
+
+ public static final int START_TIMESTAMP_FIELD_NUMBER = 16;
+ private long startTimestamp_;
+ /**
+ * + * UNIX timestamp (in milliseconds) recorded from the start of this + * trajectory data collection event. All future + * timestamps in sub classes are to be RELATIVE timestamps + * (in milliseconds) to this start time. + * E.g. + * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) + * relative_timestamp = 3000 (3s) + *+ * + *
int64 start_timestamp = 16;
+ * @return The startTimestamp.
+ */
+ @java.lang.Override
+ public long getStartTimestamp() {
+ return startTimestamp_;
+ }
+
+ public static final int INITIAL_POSITION_FIELD_NUMBER = 17;
+ private Traj.GNSSPosition initialPosition_;
+ /**
+ * .GNSSPosition initial_position = 17;
+ * @return Whether the initialPosition field is set.
+ */
+ @java.lang.Override
+ public boolean hasInitialPosition() {
+ return initialPosition_ != null;
+ }
+ /**
+ * .GNSSPosition initial_position = 17;
+ * @return The initialPosition.
+ */
+ @java.lang.Override
+ public Traj.GNSSPosition getInitialPosition() {
+ return initialPosition_ == null ? Traj.GNSSPosition.getDefaultInstance() : initialPosition_;
+ }
+ /**
+ * .GNSSPosition initial_position = 17;
+ */
+ @java.lang.Override
+ public Traj.GNSSPositionOrBuilder getInitialPositionOrBuilder() {
+ return getInitialPosition();
+ }
+
+ public static final int CORRECTED_POSITIONS_FIELD_NUMBER = 18;
+ private java.util.Listrepeated .GNSSPosition corrected_positions = 18;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .GNSSPosition corrected_positions = 18;
+ */
+ @java.lang.Override
+ public java.util.List extends Traj.GNSSPositionOrBuilder>
+ getCorrectedPositionsOrBuilderList() {
+ return correctedPositions_;
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ @java.lang.Override
+ public int getCorrectedPositionsCount() {
+ return correctedPositions_.size();
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ @java.lang.Override
+ public Traj.GNSSPosition getCorrectedPositions(int index) {
+ return correctedPositions_.get(index);
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ @java.lang.Override
+ public Traj.GNSSPositionOrBuilder getCorrectedPositionsOrBuilder(
+ int index) {
+ return correctedPositions_.get(index);
}
- public static final int ACCELEROMETER_INFO_FIELD_NUMBER = 12;
- private Sensor_Info accelerometerInfo_;
+ public static final int ACCELEROMETER_INFO_FIELD_NUMBER = 19;
+ private Traj.SensorInfo accelerometerInfo_;
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * .SensorInfo accelerometer_info = 19;
+ * @return Whether the accelerometerInfo field is set.
*/
+ @java.lang.Override
public boolean hasAccelerometerInfo() {
return accelerometerInfo_ != null;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * .SensorInfo accelerometer_info = 19;
+ * @return The accelerometerInfo.
*/
- public Sensor_Info getAccelerometerInfo() {
- return accelerometerInfo_ == null ? Sensor_Info.getDefaultInstance() : accelerometerInfo_;
+ @java.lang.Override
+ public Traj.SensorInfo getAccelerometerInfo() {
+ return accelerometerInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : accelerometerInfo_;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * .SensorInfo accelerometer_info = 19;
*/
- public Sensor_InfoOrBuilder getAccelerometerInfoOrBuilder() {
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getAccelerometerInfoOrBuilder() {
return getAccelerometerInfo();
}
- public static final int GYROSCOPE_INFO_FIELD_NUMBER = 13;
- private Sensor_Info gyroscopeInfo_;
+ public static final int GYROSCOPE_INFO_FIELD_NUMBER = 20;
+ private Traj.SensorInfo gyroscopeInfo_;
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * .SensorInfo gyroscope_info = 20;
+ * @return Whether the gyroscopeInfo field is set.
*/
+ @java.lang.Override
public boolean hasGyroscopeInfo() {
return gyroscopeInfo_ != null;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * .SensorInfo gyroscope_info = 20;
+ * @return The gyroscopeInfo.
*/
- public Sensor_Info getGyroscopeInfo() {
- return gyroscopeInfo_ == null ? Sensor_Info.getDefaultInstance() : gyroscopeInfo_;
+ @java.lang.Override
+ public Traj.SensorInfo getGyroscopeInfo() {
+ return gyroscopeInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : gyroscopeInfo_;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * .SensorInfo gyroscope_info = 20;
*/
- public Sensor_InfoOrBuilder getGyroscopeInfoOrBuilder() {
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getGyroscopeInfoOrBuilder() {
return getGyroscopeInfo();
}
- public static final int ROTATION_VECTOR_INFO_FIELD_NUMBER = 14;
- private Sensor_Info rotationVectorInfo_;
+ public static final int ROTATION_VECTOR_INFO_FIELD_NUMBER = 21;
+ private Traj.SensorInfo rotationVectorInfo_;
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * .SensorInfo rotation_vector_info = 21;
+ * @return Whether the rotationVectorInfo field is set.
*/
+ @java.lang.Override
public boolean hasRotationVectorInfo() {
return rotationVectorInfo_ != null;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * .SensorInfo rotation_vector_info = 21;
+ * @return The rotationVectorInfo.
*/
- public Sensor_Info getRotationVectorInfo() {
- return rotationVectorInfo_ == null ? Sensor_Info.getDefaultInstance() : rotationVectorInfo_;
+ @java.lang.Override
+ public Traj.SensorInfo getRotationVectorInfo() {
+ return rotationVectorInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : rotationVectorInfo_;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * .SensorInfo rotation_vector_info = 21;
*/
- public Sensor_InfoOrBuilder getRotationVectorInfoOrBuilder() {
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getRotationVectorInfoOrBuilder() {
return getRotationVectorInfo();
}
- public static final int MAGNETOMETER_INFO_FIELD_NUMBER = 15;
- private Sensor_Info magnetometerInfo_;
+ public static final int MAGNETOMETER_INFO_FIELD_NUMBER = 22;
+ private Traj.SensorInfo magnetometerInfo_;
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * .SensorInfo magnetometer_info = 22;
+ * @return Whether the magnetometerInfo field is set.
*/
+ @java.lang.Override
public boolean hasMagnetometerInfo() {
return magnetometerInfo_ != null;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * .SensorInfo magnetometer_info = 22;
+ * @return The magnetometerInfo.
*/
- public Sensor_Info getMagnetometerInfo() {
- return magnetometerInfo_ == null ? Sensor_Info.getDefaultInstance() : magnetometerInfo_;
+ @java.lang.Override
+ public Traj.SensorInfo getMagnetometerInfo() {
+ return magnetometerInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : magnetometerInfo_;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * .SensorInfo magnetometer_info = 22;
*/
- public Sensor_InfoOrBuilder getMagnetometerInfoOrBuilder() {
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getMagnetometerInfoOrBuilder() {
return getMagnetometerInfo();
}
- public static final int BAROMETER_INFO_FIELD_NUMBER = 16;
- private Sensor_Info barometerInfo_;
+ public static final int BAROMETER_INFO_FIELD_NUMBER = 23;
+ private Traj.SensorInfo barometerInfo_;
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .SensorInfo barometer_info = 23;
+ * @return Whether the barometerInfo field is set.
*/
+ @java.lang.Override
public boolean hasBarometerInfo() {
return barometerInfo_ != null;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .SensorInfo barometer_info = 23;
+ * @return The barometerInfo.
*/
- public Sensor_Info getBarometerInfo() {
- return barometerInfo_ == null ? Sensor_Info.getDefaultInstance() : barometerInfo_;
+ @java.lang.Override
+ public Traj.SensorInfo getBarometerInfo() {
+ return barometerInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : barometerInfo_;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .SensorInfo barometer_info = 23;
*/
- public Sensor_InfoOrBuilder getBarometerInfoOrBuilder() {
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getBarometerInfoOrBuilder() {
return getBarometerInfo();
}
- public static final int LIGHT_SENSOR_INFO_FIELD_NUMBER = 17;
- private Sensor_Info lightSensorInfo_;
+ public static final int LIGHT_SENSOR_INFO_FIELD_NUMBER = 24;
+ private Traj.SensorInfo lightSensorInfo_;
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * .SensorInfo light_sensor_info = 24;
+ * @return Whether the lightSensorInfo field is set.
*/
+ @java.lang.Override
public boolean hasLightSensorInfo() {
return lightSensorInfo_ != null;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * .SensorInfo light_sensor_info = 24;
+ * @return The lightSensorInfo.
*/
- public Sensor_Info getLightSensorInfo() {
- return lightSensorInfo_ == null ? Sensor_Info.getDefaultInstance() : lightSensorInfo_;
+ @java.lang.Override
+ public Traj.SensorInfo getLightSensorInfo() {
+ return lightSensorInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : lightSensorInfo_;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * .SensorInfo light_sensor_info = 24;
*/
- public Sensor_InfoOrBuilder getLightSensorInfoOrBuilder() {
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getLightSensorInfoOrBuilder() {
return getLightSensorInfo();
}
+ public static final int PROXIMITY_INFO_FIELD_NUMBER = 25;
+ private Traj.SensorInfo proximityInfo_;
+ /**
+ * .SensorInfo proximity_info = 25;
+ * @return Whether the proximityInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasProximityInfo() {
+ return proximityInfo_ != null;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ * @return The proximityInfo.
+ */
+ @java.lang.Override
+ public Traj.SensorInfo getProximityInfo() {
+ return proximityInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : proximityInfo_;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ @java.lang.Override
+ public Traj.SensorInfoOrBuilder getProximityInfoOrBuilder() {
+ return getProximityInfo();
+ }
+
+ public static final int TEST_POINTS_FIELD_NUMBER = 26;
+ private java.util.Listrepeated .GNSSPosition test_points = 26;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .GNSSPosition test_points = 26;
+ */
+ @java.lang.Override
+ public java.util.List extends Traj.GNSSPositionOrBuilder>
+ getTestPointsOrBuilderList() {
+ return testPoints_;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ @java.lang.Override
+ public int getTestPointsCount() {
+ return testPoints_.size();
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ @java.lang.Override
+ public Traj.GNSSPosition getTestPoints(int index) {
+ return testPoints_.get(index);
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ @java.lang.Override
+ public Traj.GNSSPositionOrBuilder getTestPointsOrBuilder(
+ int index) {
+ return testPoints_.get(index);
+ }
+
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1089,212 +1819,308 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- if (!getAndroidVersionBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, androidVersion_);
}
+ if (java.lang.Float.floatToRawIntBits(trajectoryVersion_) != 0) {
+ output.writeFloat(2, trajectoryVersion_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trajectoryId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, trajectoryId_);
+ }
for (int i = 0; i < imuData_.size(); i++) {
- output.writeMessage(2, imuData_.get(i));
+ output.writeMessage(4, imuData_.get(i));
}
for (int i = 0; i < pdrData_.size(); i++) {
- output.writeMessage(3, pdrData_.get(i));
+ output.writeMessage(5, pdrData_.get(i));
}
- for (int i = 0; i < positionData_.size(); i++) {
- output.writeMessage(4, positionData_.get(i));
+ for (int i = 0; i < magnetometerData_.size(); i++) {
+ output.writeMessage(6, magnetometerData_.get(i));
}
for (int i = 0; i < pressureData_.size(); i++) {
- output.writeMessage(5, pressureData_.get(i));
+ output.writeMessage(7, pressureData_.get(i));
}
for (int i = 0; i < lightData_.size(); i++) {
- output.writeMessage(6, lightData_.get(i));
+ output.writeMessage(8, lightData_.get(i));
+ }
+ for (int i = 0; i < proximityData_.size(); i++) {
+ output.writeMessage(9, proximityData_.get(i));
}
for (int i = 0; i < gnssData_.size(); i++) {
- output.writeMessage(7, gnssData_.get(i));
+ output.writeMessage(10, gnssData_.get(i));
}
- for (int i = 0; i < wifiData_.size(); i++) {
- output.writeMessage(8, wifiData_.get(i));
+ for (int i = 0; i < wifiFingerprints_.size(); i++) {
+ output.writeMessage(11, wifiFingerprints_.get(i));
}
for (int i = 0; i < apsData_.size(); i++) {
- output.writeMessage(9, apsData_.get(i));
+ output.writeMessage(12, apsData_.get(i));
+ }
+ for (int i = 0; i < wifiRttData_.size(); i++) {
+ output.writeMessage(13, wifiRttData_.get(i));
+ }
+ for (int i = 0; i < bleFingerprints_.size(); i++) {
+ output.writeMessage(14, bleFingerprints_.get(i));
+ }
+ for (int i = 0; i < bleData_.size(); i++) {
+ output.writeMessage(15, bleData_.get(i));
}
if (startTimestamp_ != 0L) {
- output.writeInt64(10, startTimestamp_);
+ output.writeInt64(16, startTimestamp_);
}
- if (!getDataIdentifierBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 11, dataIdentifier_);
+ if (initialPosition_ != null) {
+ output.writeMessage(17, getInitialPosition());
+ }
+ for (int i = 0; i < correctedPositions_.size(); i++) {
+ output.writeMessage(18, correctedPositions_.get(i));
}
if (accelerometerInfo_ != null) {
- output.writeMessage(12, getAccelerometerInfo());
+ output.writeMessage(19, getAccelerometerInfo());
}
if (gyroscopeInfo_ != null) {
- output.writeMessage(13, getGyroscopeInfo());
+ output.writeMessage(20, getGyroscopeInfo());
}
if (rotationVectorInfo_ != null) {
- output.writeMessage(14, getRotationVectorInfo());
+ output.writeMessage(21, getRotationVectorInfo());
}
if (magnetometerInfo_ != null) {
- output.writeMessage(15, getMagnetometerInfo());
+ output.writeMessage(22, getMagnetometerInfo());
}
if (barometerInfo_ != null) {
- output.writeMessage(16, getBarometerInfo());
+ output.writeMessage(23, getBarometerInfo());
}
if (lightSensorInfo_ != null) {
- output.writeMessage(17, getLightSensorInfo());
+ output.writeMessage(24, getLightSensorInfo());
+ }
+ if (proximityInfo_ != null) {
+ output.writeMessage(25, getProximityInfo());
}
+ for (int i = 0; i < testPoints_.size(); i++) {
+ output.writeMessage(26, testPoints_.get(i));
+ }
+ unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (!getAndroidVersionBytes().isEmpty()) {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(androidVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, androidVersion_);
}
+ if (java.lang.Float.floatToRawIntBits(trajectoryVersion_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, trajectoryVersion_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trajectoryId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, trajectoryId_);
+ }
for (int i = 0; i < imuData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, imuData_.get(i));
+ .computeMessageSize(4, imuData_.get(i));
}
for (int i = 0; i < pdrData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, pdrData_.get(i));
+ .computeMessageSize(5, pdrData_.get(i));
}
- for (int i = 0; i < positionData_.size(); i++) {
+ for (int i = 0; i < magnetometerData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, positionData_.get(i));
+ .computeMessageSize(6, magnetometerData_.get(i));
}
for (int i = 0; i < pressureData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, pressureData_.get(i));
+ .computeMessageSize(7, pressureData_.get(i));
}
for (int i = 0; i < lightData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(6, lightData_.get(i));
+ .computeMessageSize(8, lightData_.get(i));
+ }
+ for (int i = 0; i < proximityData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, proximityData_.get(i));
}
for (int i = 0; i < gnssData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(7, gnssData_.get(i));
+ .computeMessageSize(10, gnssData_.get(i));
}
- for (int i = 0; i < wifiData_.size(); i++) {
+ for (int i = 0; i < wifiFingerprints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, wifiData_.get(i));
+ .computeMessageSize(11, wifiFingerprints_.get(i));
}
for (int i = 0; i < apsData_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, apsData_.get(i));
+ .computeMessageSize(12, apsData_.get(i));
+ }
+ for (int i = 0; i < wifiRttData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(13, wifiRttData_.get(i));
+ }
+ for (int i = 0; i < bleFingerprints_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(14, bleFingerprints_.get(i));
+ }
+ for (int i = 0; i < bleData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(15, bleData_.get(i));
}
if (startTimestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(10, startTimestamp_);
+ .computeInt64Size(16, startTimestamp_);
}
- if (!getDataIdentifierBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, dataIdentifier_);
+ if (initialPosition_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(17, getInitialPosition());
+ }
+ for (int i = 0; i < correctedPositions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(18, correctedPositions_.get(i));
}
if (accelerometerInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(12, getAccelerometerInfo());
+ .computeMessageSize(19, getAccelerometerInfo());
}
if (gyroscopeInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(13, getGyroscopeInfo());
+ .computeMessageSize(20, getGyroscopeInfo());
}
if (rotationVectorInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(14, getRotationVectorInfo());
+ .computeMessageSize(21, getRotationVectorInfo());
}
if (magnetometerInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(15, getMagnetometerInfo());
+ .computeMessageSize(22, getMagnetometerInfo());
}
if (barometerInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(16, getBarometerInfo());
+ .computeMessageSize(23, getBarometerInfo());
}
if (lightSensorInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(17, getLightSensorInfo());
+ .computeMessageSize(24, getLightSensorInfo());
+ }
+ if (proximityInfo_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(25, getProximityInfo());
+ }
+ for (int i = 0; i < testPoints_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(26, testPoints_.get(i));
}
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof Trajectory)) {
+ if (!(obj instanceof Traj.Trajectory)) {
return super.equals(obj);
}
- Trajectory other = (Trajectory) obj;
-
- boolean result = true;
- result = result && getAndroidVersion()
- .equals(other.getAndroidVersion());
- result = result && getImuDataList()
- .equals(other.getImuDataList());
- result = result && getPdrDataList()
- .equals(other.getPdrDataList());
- result = result && getPositionDataList()
- .equals(other.getPositionDataList());
- result = result && getPressureDataList()
- .equals(other.getPressureDataList());
- result = result && getLightDataList()
- .equals(other.getLightDataList());
- result = result && getGnssDataList()
- .equals(other.getGnssDataList());
- result = result && getWifiDataList()
- .equals(other.getWifiDataList());
- result = result && getApsDataList()
- .equals(other.getApsDataList());
- result = result && (getStartTimestamp()
- == other.getStartTimestamp());
- result = result && getDataIdentifier()
- .equals(other.getDataIdentifier());
- result = result && (hasAccelerometerInfo() == other.hasAccelerometerInfo());
+ Traj.Trajectory other = (Traj.Trajectory) obj;
+
+ if (!getAndroidVersion()
+ .equals(other.getAndroidVersion())) return false;
+ if (java.lang.Float.floatToIntBits(getTrajectoryVersion())
+ != java.lang.Float.floatToIntBits(
+ other.getTrajectoryVersion())) return false;
+ if (!getTrajectoryId()
+ .equals(other.getTrajectoryId())) return false;
+ if (!getImuDataList()
+ .equals(other.getImuDataList())) return false;
+ if (!getPdrDataList()
+ .equals(other.getPdrDataList())) return false;
+ if (!getMagnetometerDataList()
+ .equals(other.getMagnetometerDataList())) return false;
+ if (!getPressureDataList()
+ .equals(other.getPressureDataList())) return false;
+ if (!getLightDataList()
+ .equals(other.getLightDataList())) return false;
+ if (!getProximityDataList()
+ .equals(other.getProximityDataList())) return false;
+ if (!getGnssDataList()
+ .equals(other.getGnssDataList())) return false;
+ if (!getWifiFingerprintsList()
+ .equals(other.getWifiFingerprintsList())) return false;
+ if (!getApsDataList()
+ .equals(other.getApsDataList())) return false;
+ if (!getWifiRttDataList()
+ .equals(other.getWifiRttDataList())) return false;
+ if (!getBleFingerprintsList()
+ .equals(other.getBleFingerprintsList())) return false;
+ if (!getBleDataList()
+ .equals(other.getBleDataList())) return false;
+ if (getStartTimestamp()
+ != other.getStartTimestamp()) return false;
+ if (hasInitialPosition() != other.hasInitialPosition()) return false;
+ if (hasInitialPosition()) {
+ if (!getInitialPosition()
+ .equals(other.getInitialPosition())) return false;
+ }
+ if (!getCorrectedPositionsList()
+ .equals(other.getCorrectedPositionsList())) return false;
+ if (hasAccelerometerInfo() != other.hasAccelerometerInfo()) return false;
if (hasAccelerometerInfo()) {
- result = result && getAccelerometerInfo()
- .equals(other.getAccelerometerInfo());
+ if (!getAccelerometerInfo()
+ .equals(other.getAccelerometerInfo())) return false;
}
- result = result && (hasGyroscopeInfo() == other.hasGyroscopeInfo());
+ if (hasGyroscopeInfo() != other.hasGyroscopeInfo()) return false;
if (hasGyroscopeInfo()) {
- result = result && getGyroscopeInfo()
- .equals(other.getGyroscopeInfo());
+ if (!getGyroscopeInfo()
+ .equals(other.getGyroscopeInfo())) return false;
}
- result = result && (hasRotationVectorInfo() == other.hasRotationVectorInfo());
+ if (hasRotationVectorInfo() != other.hasRotationVectorInfo()) return false;
if (hasRotationVectorInfo()) {
- result = result && getRotationVectorInfo()
- .equals(other.getRotationVectorInfo());
+ if (!getRotationVectorInfo()
+ .equals(other.getRotationVectorInfo())) return false;
}
- result = result && (hasMagnetometerInfo() == other.hasMagnetometerInfo());
+ if (hasMagnetometerInfo() != other.hasMagnetometerInfo()) return false;
if (hasMagnetometerInfo()) {
- result = result && getMagnetometerInfo()
- .equals(other.getMagnetometerInfo());
+ if (!getMagnetometerInfo()
+ .equals(other.getMagnetometerInfo())) return false;
}
- result = result && (hasBarometerInfo() == other.hasBarometerInfo());
+ if (hasBarometerInfo() != other.hasBarometerInfo()) return false;
if (hasBarometerInfo()) {
- result = result && getBarometerInfo()
- .equals(other.getBarometerInfo());
+ if (!getBarometerInfo()
+ .equals(other.getBarometerInfo())) return false;
}
- result = result && (hasLightSensorInfo() == other.hasLightSensorInfo());
+ if (hasLightSensorInfo() != other.hasLightSensorInfo()) return false;
if (hasLightSensorInfo()) {
- result = result && getLightSensorInfo()
- .equals(other.getLightSensorInfo());
+ if (!getLightSensorInfo()
+ .equals(other.getLightSensorInfo())) return false;
+ }
+ if (hasProximityInfo() != other.hasProximityInfo()) return false;
+ if (hasProximityInfo()) {
+ if (!getProximityInfo()
+ .equals(other.getProximityInfo())) return false;
}
- return result;
+ if (!getTestPointsList()
+ .equals(other.getTestPointsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ANDROID_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getAndroidVersion().hashCode();
+ hash = (37 * hash) + TRAJECTORY_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getTrajectoryVersion());
+ hash = (37 * hash) + TRAJECTORY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTrajectoryId().hashCode();
if (getImuDataCount() > 0) {
hash = (37 * hash) + IMU_DATA_FIELD_NUMBER;
hash = (53 * hash) + getImuDataList().hashCode();
@@ -1303,9 +2129,9 @@ public int hashCode() {
hash = (37 * hash) + PDR_DATA_FIELD_NUMBER;
hash = (53 * hash) + getPdrDataList().hashCode();
}
- if (getPositionDataCount() > 0) {
- hash = (37 * hash) + POSITION_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getPositionDataList().hashCode();
+ if (getMagnetometerDataCount() > 0) {
+ hash = (37 * hash) + MAGNETOMETER_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getMagnetometerDataList().hashCode();
}
if (getPressureDataCount() > 0) {
hash = (37 * hash) + PRESSURE_DATA_FIELD_NUMBER;
@@ -1315,23 +2141,45 @@ public int hashCode() {
hash = (37 * hash) + LIGHT_DATA_FIELD_NUMBER;
hash = (53 * hash) + getLightDataList().hashCode();
}
+ if (getProximityDataCount() > 0) {
+ hash = (37 * hash) + PROXIMITY_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getProximityDataList().hashCode();
+ }
if (getGnssDataCount() > 0) {
hash = (37 * hash) + GNSS_DATA_FIELD_NUMBER;
hash = (53 * hash) + getGnssDataList().hashCode();
}
- if (getWifiDataCount() > 0) {
- hash = (37 * hash) + WIFI_DATA_FIELD_NUMBER;
- hash = (53 * hash) + getWifiDataList().hashCode();
+ if (getWifiFingerprintsCount() > 0) {
+ hash = (37 * hash) + WIFI_FINGERPRINTS_FIELD_NUMBER;
+ hash = (53 * hash) + getWifiFingerprintsList().hashCode();
}
if (getApsDataCount() > 0) {
hash = (37 * hash) + APS_DATA_FIELD_NUMBER;
hash = (53 * hash) + getApsDataList().hashCode();
}
+ if (getWifiRttDataCount() > 0) {
+ hash = (37 * hash) + WIFI_RTT_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getWifiRttDataList().hashCode();
+ }
+ if (getBleFingerprintsCount() > 0) {
+ hash = (37 * hash) + BLE_FINGERPRINTS_FIELD_NUMBER;
+ hash = (53 * hash) + getBleFingerprintsList().hashCode();
+ }
+ if (getBleDataCount() > 0) {
+ hash = (37 * hash) + BLE_DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getBleDataList().hashCode();
+ }
hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTimestamp());
- hash = (37 * hash) + DATA_IDENTIFIER_FIELD_NUMBER;
- hash = (53 * hash) + getDataIdentifier().hashCode();
+ if (hasInitialPosition()) {
+ hash = (37 * hash) + INITIAL_POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getInitialPosition().hashCode();
+ }
+ if (getCorrectedPositionsCount() > 0) {
+ hash = (37 * hash) + CORRECTED_POSITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getCorrectedPositionsList().hashCode();
+ }
if (hasAccelerometerInfo()) {
hash = (37 * hash) + ACCELEROMETER_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAccelerometerInfo().hashCode();
@@ -1356,63 +2204,82 @@ public int hashCode() {
hash = (37 * hash) + LIGHT_SENSOR_INFO_FIELD_NUMBER;
hash = (53 * hash) + getLightSensorInfo().hashCode();
}
+ if (hasProximityInfo()) {
+ hash = (37 * hash) + PROXIMITY_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getProximityInfo().hashCode();
+ }
+ if (getTestPointsCount() > 0) {
+ hash = (37 * hash) + TEST_POINTS_FIELD_NUMBER;
+ hash = (53 * hash) + getTestPointsList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Trajectory parseFrom(
+ public static Traj.Trajectory parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.Trajectory parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.Trajectory parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Trajectory parseFrom(
+ public static Traj.Trajectory parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Trajectory parseFrom(byte[] data)
+ public static Traj.Trajectory parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Trajectory parseFrom(
+ public static Traj.Trajectory parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Trajectory parseFrom(java.io.InputStream input)
+ public static Traj.Trajectory parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Trajectory parseFrom(
+ public static Traj.Trajectory parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Trajectory parseDelimitedFrom(java.io.InputStream input)
+ public static Traj.Trajectory parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static Trajectory parseDelimitedFrom(
+ public static Traj.Trajectory parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static Trajectory parseFrom(
+ public static Traj.Trajectory parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Trajectory parseFrom(
+ public static Traj.Trajectory parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -1420,19 +2287,21 @@ public static Trajectory parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Trajectory prototype) {
+ public static Builder newBuilder(Traj.Trajectory prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
@@ -1444,17 +2313,18 @@ protected Builder newBuilderForType(
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderoptional string android_version = 1;
+ * string android_version = 1;
+ * @return The androidVersion.
*/
- public String getAndroidVersion() {
- Object ref = androidVersion_;
- if (!(ref instanceof String)) {
+ public java.lang.String getAndroidVersion() {
+ java.lang.Object ref = androidVersion_;
+ if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
+ java.lang.String s = bs.toStringUtf8();
androidVersion_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string android_version = 1;
+ * string android_version = 1;
+ * @return The bytes for androidVersion.
*/
public com.google.protobuf.ByteString
getAndroidVersionBytes() {
- Object ref = androidVersion_;
+ java.lang.Object ref = androidVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
androidVersion_ = b;
return b;
} else {
@@ -2040,10 +3211,12 @@ public String getAndroidVersion() {
}
}
/**
- * optional string android_version = 1;
+ * string android_version = 1;
+ * @param value The androidVersion to set.
+ * @return This builder for chaining.
*/
public Builder setAndroidVersion(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
@@ -2053,7 +3226,8 @@ public Builder setAndroidVersion(
return this;
}
/**
- * optional string android_version = 1;
+ * string android_version = 1;
+ * @return This builder for chaining.
*/
public Builder clearAndroidVersion() {
@@ -2062,7 +3236,9 @@ public Builder clearAndroidVersion() {
return this;
}
/**
- * optional string android_version = 1;
+ * string android_version = 1;
+ * @param value The bytes for androidVersion to set.
+ * @return This builder for chaining.
*/
public Builder setAndroidVersionBytes(
com.google.protobuf.ByteString value) {
@@ -2076,22 +3252,161 @@ public Builder setAndroidVersionBytes(
return this;
}
- private java.util.List+ * version 2.0 + *+ * + *
float trajectory_version = 2;
+ * @return The trajectoryVersion.
+ */
+ @java.lang.Override
+ public float getTrajectoryVersion() {
+ return trajectoryVersion_;
+ }
+ /**
+ * + * version 2.0 + *+ * + *
float trajectory_version = 2;
+ * @param value The trajectoryVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrajectoryVersion(float value) {
+
+ trajectoryVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * version 2.0 + *+ * + *
float trajectory_version = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearTrajectoryVersion() {
+
+ trajectoryVersion_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object trajectoryId_ = "";
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return The trajectoryId.
+ */
+ public java.lang.String getTrajectoryId() {
+ java.lang.Object ref = trajectoryId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ trajectoryId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return The bytes for trajectoryId.
+ */
+ public com.google.protobuf.ByteString
+ getTrajectoryIdBytes() {
+ java.lang.Object ref = trajectoryId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ trajectoryId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @param value The trajectoryId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrajectoryId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ trajectoryId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearTrajectoryId() {
+
+ trajectoryId_ = getDefaultInstance().getTrajectoryId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * trajectory id/name for identification + *+ * + *
string trajectory_id = 3;
+ * @param value The bytes for trajectoryId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTrajectoryIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ trajectoryId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public java.util.Listrepeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public int getImuDataCount() {
if (imuDataBuilder_ == null) {
@@ -2109,9 +3424,9 @@ public int getImuDataCount() {
}
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_Sample getImuData(int index) {
+ public Traj.IMUReading getImuData(int index) {
if (imuDataBuilder_ == null) {
return imuData_.get(index);
} else {
@@ -2119,10 +3434,10 @@ public Motion_Sample getImuData(int index) {
}
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder setImuData(
- int index, Motion_Sample value) {
+ int index, Traj.IMUReading value) {
if (imuDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2136,10 +3451,10 @@ public Builder setImuData(
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder setImuData(
- int index, Motion_Sample.Builder builderForValue) {
+ int index, Traj.IMUReading.Builder builderForValue) {
if (imuDataBuilder_ == null) {
ensureImuDataIsMutable();
imuData_.set(index, builderForValue.build());
@@ -2150,9 +3465,9 @@ public Builder setImuData(
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Builder addImuData(Motion_Sample value) {
+ public Builder addImuData(Traj.IMUReading value) {
if (imuDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2166,10 +3481,10 @@ public Builder addImuData(Motion_Sample value) {
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder addImuData(
- int index, Motion_Sample value) {
+ int index, Traj.IMUReading value) {
if (imuDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2183,10 +3498,10 @@ public Builder addImuData(
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder addImuData(
- Motion_Sample.Builder builderForValue) {
+ Traj.IMUReading.Builder builderForValue) {
if (imuDataBuilder_ == null) {
ensureImuDataIsMutable();
imuData_.add(builderForValue.build());
@@ -2197,10 +3512,10 @@ public Builder addImuData(
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder addImuData(
- int index, Motion_Sample.Builder builderForValue) {
+ int index, Traj.IMUReading.Builder builderForValue) {
if (imuDataBuilder_ == null) {
ensureImuDataIsMutable();
imuData_.add(index, builderForValue.build());
@@ -2211,10 +3526,10 @@ public Builder addImuData(
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder addAllImuData(
- Iterable extends Motion_Sample> values) {
+ java.lang.Iterable extends Traj.IMUReading> values) {
if (imuDataBuilder_ == null) {
ensureImuDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2226,12 +3541,12 @@ public Builder addAllImuData(
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder clearImuData() {
if (imuDataBuilder_ == null) {
imuData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
imuDataBuilder_.clear();
@@ -2239,7 +3554,7 @@ public Builder clearImuData() {
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
public Builder removeImuData(int index) {
if (imuDataBuilder_ == null) {
@@ -2252,16 +3567,16 @@ public Builder removeImuData(int index) {
return this;
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_Sample.Builder getImuDataBuilder(
+ public Traj.IMUReading.Builder getImuDataBuilder(
int index) {
return getImuDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_SampleOrBuilder getImuDataOrBuilder(
+ public Traj.IMUReadingOrBuilder getImuDataOrBuilder(
int index) {
if (imuDataBuilder_ == null) {
return imuData_.get(index); } else {
@@ -2269,9 +3584,9 @@ public Motion_SampleOrBuilder getImuDataOrBuilder(
}
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public java.util.List extends Motion_SampleOrBuilder>
+ public java.util.List extends Traj.IMUReadingOrBuilder>
getImuDataOrBuilderList() {
if (imuDataBuilder_ != null) {
return imuDataBuilder_.getMessageOrBuilderList();
@@ -2280,35 +3595,35 @@ public Motion_SampleOrBuilder getImuDataOrBuilder(
}
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_Sample.Builder addImuDataBuilder() {
+ public Traj.IMUReading.Builder addImuDataBuilder() {
return getImuDataFieldBuilder().addBuilder(
- Motion_Sample.getDefaultInstance());
+ Traj.IMUReading.getDefaultInstance());
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public Motion_Sample.Builder addImuDataBuilder(
+ public Traj.IMUReading.Builder addImuDataBuilder(
int index) {
return getImuDataFieldBuilder().addBuilder(
- index, Motion_Sample.getDefaultInstance());
+ index, Traj.IMUReading.getDefaultInstance());
}
/**
- * repeated .Motion_Sample imu_data = 2;
+ * repeated .IMUReading imu_data = 4;
*/
- public java.util.Listrepeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public java.util.Listrepeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public int getPdrDataCount() {
if (pdrDataBuilder_ == null) {
@@ -2349,9 +3664,9 @@ public int getPdrDataCount() {
}
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_Sample getPdrData(int index) {
+ public Traj.RelativePosition getPdrData(int index) {
if (pdrDataBuilder_ == null) {
return pdrData_.get(index);
} else {
@@ -2359,10 +3674,10 @@ public Pdr_Sample getPdrData(int index) {
}
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder setPdrData(
- int index, Pdr_Sample value) {
+ int index, Traj.RelativePosition value) {
if (pdrDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2376,10 +3691,10 @@ public Builder setPdrData(
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder setPdrData(
- int index, Pdr_Sample.Builder builderForValue) {
+ int index, Traj.RelativePosition.Builder builderForValue) {
if (pdrDataBuilder_ == null) {
ensurePdrDataIsMutable();
pdrData_.set(index, builderForValue.build());
@@ -2390,9 +3705,9 @@ public Builder setPdrData(
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Builder addPdrData(Pdr_Sample value) {
+ public Builder addPdrData(Traj.RelativePosition value) {
if (pdrDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2406,10 +3721,10 @@ public Builder addPdrData(Pdr_Sample value) {
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder addPdrData(
- int index, Pdr_Sample value) {
+ int index, Traj.RelativePosition value) {
if (pdrDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2423,10 +3738,10 @@ public Builder addPdrData(
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder addPdrData(
- Pdr_Sample.Builder builderForValue) {
+ Traj.RelativePosition.Builder builderForValue) {
if (pdrDataBuilder_ == null) {
ensurePdrDataIsMutable();
pdrData_.add(builderForValue.build());
@@ -2437,10 +3752,10 @@ public Builder addPdrData(
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder addPdrData(
- int index, Pdr_Sample.Builder builderForValue) {
+ int index, Traj.RelativePosition.Builder builderForValue) {
if (pdrDataBuilder_ == null) {
ensurePdrDataIsMutable();
pdrData_.add(index, builderForValue.build());
@@ -2451,10 +3766,10 @@ public Builder addPdrData(
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder addAllPdrData(
- Iterable extends Pdr_Sample> values) {
+ java.lang.Iterable extends Traj.RelativePosition> values) {
if (pdrDataBuilder_ == null) {
ensurePdrDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2466,12 +3781,12 @@ public Builder addAllPdrData(
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder clearPdrData() {
if (pdrDataBuilder_ == null) {
pdrData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
pdrDataBuilder_.clear();
@@ -2479,7 +3794,7 @@ public Builder clearPdrData() {
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
public Builder removePdrData(int index) {
if (pdrDataBuilder_ == null) {
@@ -2492,16 +3807,16 @@ public Builder removePdrData(int index) {
return this;
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_Sample.Builder getPdrDataBuilder(
+ public Traj.RelativePosition.Builder getPdrDataBuilder(
int index) {
return getPdrDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_SampleOrBuilder getPdrDataOrBuilder(
+ public Traj.RelativePositionOrBuilder getPdrDataOrBuilder(
int index) {
if (pdrDataBuilder_ == null) {
return pdrData_.get(index); } else {
@@ -2509,9 +3824,9 @@ public Pdr_SampleOrBuilder getPdrDataOrBuilder(
}
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public java.util.List extends Pdr_SampleOrBuilder>
+ public java.util.List extends Traj.RelativePositionOrBuilder>
getPdrDataOrBuilderList() {
if (pdrDataBuilder_ != null) {
return pdrDataBuilder_.getMessageOrBuilderList();
@@ -2520,35 +3835,35 @@ public Pdr_SampleOrBuilder getPdrDataOrBuilder(
}
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_Sample.Builder addPdrDataBuilder() {
+ public Traj.RelativePosition.Builder addPdrDataBuilder() {
return getPdrDataFieldBuilder().addBuilder(
- Pdr_Sample.getDefaultInstance());
+ Traj.RelativePosition.getDefaultInstance());
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public Pdr_Sample.Builder addPdrDataBuilder(
+ public Traj.RelativePosition.Builder addPdrDataBuilder(
int index) {
return getPdrDataFieldBuilder().addBuilder(
- index, Pdr_Sample.getDefaultInstance());
+ index, Traj.RelativePosition.getDefaultInstance());
}
/**
- * repeated .Pdr_Sample pdr_data = 3;
+ * repeated .RelativePosition pdr_data = 5;
*/
- public java.util.Listrepeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public java.util.Listrepeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public int getPositionDataCount() {
- if (positionDataBuilder_ == null) {
- return positionData_.size();
+ public int getMagnetometerDataCount() {
+ if (magnetometerDataBuilder_ == null) {
+ return magnetometerData_.size();
} else {
- return positionDataBuilder_.getCount();
+ return magnetometerDataBuilder_.getCount();
}
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_Sample getPositionData(int index) {
- if (positionDataBuilder_ == null) {
- return positionData_.get(index);
+ public Traj.MagnetometerReading getMagnetometerData(int index) {
+ if (magnetometerDataBuilder_ == null) {
+ return magnetometerData_.get(index);
} else {
- return positionDataBuilder_.getMessage(index);
+ return magnetometerDataBuilder_.getMessage(index);
}
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder setPositionData(
- int index, Position_Sample value) {
- if (positionDataBuilder_ == null) {
+ public Builder setMagnetometerData(
+ int index, Traj.MagnetometerReading value) {
+ if (magnetometerDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensurePositionDataIsMutable();
- positionData_.set(index, value);
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.set(index, value);
onChanged();
} else {
- positionDataBuilder_.setMessage(index, value);
+ magnetometerDataBuilder_.setMessage(index, value);
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder setPositionData(
- int index, Position_Sample.Builder builderForValue) {
- if (positionDataBuilder_ == null) {
- ensurePositionDataIsMutable();
- positionData_.set(index, builderForValue.build());
+ public Builder setMagnetometerData(
+ int index, Traj.MagnetometerReading.Builder builderForValue) {
+ if (magnetometerDataBuilder_ == null) {
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.set(index, builderForValue.build());
onChanged();
} else {
- positionDataBuilder_.setMessage(index, builderForValue.build());
+ magnetometerDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder addPositionData(Position_Sample value) {
- if (positionDataBuilder_ == null) {
+ public Builder addMagnetometerData(Traj.MagnetometerReading value) {
+ if (magnetometerDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensurePositionDataIsMutable();
- positionData_.add(value);
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.add(value);
onChanged();
} else {
- positionDataBuilder_.addMessage(value);
+ magnetometerDataBuilder_.addMessage(value);
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder addPositionData(
- int index, Position_Sample value) {
- if (positionDataBuilder_ == null) {
+ public Builder addMagnetometerData(
+ int index, Traj.MagnetometerReading value) {
+ if (magnetometerDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensurePositionDataIsMutable();
- positionData_.add(index, value);
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.add(index, value);
onChanged();
} else {
- positionDataBuilder_.addMessage(index, value);
+ magnetometerDataBuilder_.addMessage(index, value);
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder addPositionData(
- Position_Sample.Builder builderForValue) {
- if (positionDataBuilder_ == null) {
- ensurePositionDataIsMutable();
- positionData_.add(builderForValue.build());
+ public Builder addMagnetometerData(
+ Traj.MagnetometerReading.Builder builderForValue) {
+ if (magnetometerDataBuilder_ == null) {
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.add(builderForValue.build());
onChanged();
} else {
- positionDataBuilder_.addMessage(builderForValue.build());
+ magnetometerDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder addPositionData(
- int index, Position_Sample.Builder builderForValue) {
- if (positionDataBuilder_ == null) {
- ensurePositionDataIsMutable();
- positionData_.add(index, builderForValue.build());
+ public Builder addMagnetometerData(
+ int index, Traj.MagnetometerReading.Builder builderForValue) {
+ if (magnetometerDataBuilder_ == null) {
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.add(index, builderForValue.build());
onChanged();
} else {
- positionDataBuilder_.addMessage(index, builderForValue.build());
+ magnetometerDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder addAllPositionData(
- Iterable extends Position_Sample> values) {
- if (positionDataBuilder_ == null) {
- ensurePositionDataIsMutable();
+ public Builder addAllMagnetometerData(
+ java.lang.Iterable extends Traj.MagnetometerReading> values) {
+ if (magnetometerDataBuilder_ == null) {
+ ensureMagnetometerDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, positionData_);
+ values, magnetometerData_);
onChanged();
} else {
- positionDataBuilder_.addAllMessages(values);
+ magnetometerDataBuilder_.addAllMessages(values);
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder clearPositionData() {
- if (positionDataBuilder_ == null) {
- positionData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder clearMagnetometerData() {
+ if (magnetometerDataBuilder_ == null) {
+ magnetometerData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
- positionDataBuilder_.clear();
+ magnetometerDataBuilder_.clear();
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Builder removePositionData(int index) {
- if (positionDataBuilder_ == null) {
- ensurePositionDataIsMutable();
- positionData_.remove(index);
+ public Builder removeMagnetometerData(int index) {
+ if (magnetometerDataBuilder_ == null) {
+ ensureMagnetometerDataIsMutable();
+ magnetometerData_.remove(index);
onChanged();
} else {
- positionDataBuilder_.remove(index);
+ magnetometerDataBuilder_.remove(index);
}
return this;
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_Sample.Builder getPositionDataBuilder(
+ public Traj.MagnetometerReading.Builder getMagnetometerDataBuilder(
int index) {
- return getPositionDataFieldBuilder().getBuilder(index);
+ return getMagnetometerDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_SampleOrBuilder getPositionDataOrBuilder(
+ public Traj.MagnetometerReadingOrBuilder getMagnetometerDataOrBuilder(
int index) {
- if (positionDataBuilder_ == null) {
- return positionData_.get(index); } else {
- return positionDataBuilder_.getMessageOrBuilder(index);
+ if (magnetometerDataBuilder_ == null) {
+ return magnetometerData_.get(index); } else {
+ return magnetometerDataBuilder_.getMessageOrBuilder(index);
}
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public java.util.List extends Position_SampleOrBuilder>
- getPositionDataOrBuilderList() {
- if (positionDataBuilder_ != null) {
- return positionDataBuilder_.getMessageOrBuilderList();
+ public java.util.List extends Traj.MagnetometerReadingOrBuilder>
+ getMagnetometerDataOrBuilderList() {
+ if (magnetometerDataBuilder_ != null) {
+ return magnetometerDataBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(positionData_);
+ return java.util.Collections.unmodifiableList(magnetometerData_);
}
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_Sample.Builder addPositionDataBuilder() {
- return getPositionDataFieldBuilder().addBuilder(
- Position_Sample.getDefaultInstance());
+ public Traj.MagnetometerReading.Builder addMagnetometerDataBuilder() {
+ return getMagnetometerDataFieldBuilder().addBuilder(
+ Traj.MagnetometerReading.getDefaultInstance());
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public Position_Sample.Builder addPositionDataBuilder(
+ public Traj.MagnetometerReading.Builder addMagnetometerDataBuilder(
int index) {
- return getPositionDataFieldBuilder().addBuilder(
- index, Position_Sample.getDefaultInstance());
+ return getMagnetometerDataFieldBuilder().addBuilder(
+ index, Traj.MagnetometerReading.getDefaultInstance());
}
/**
- * repeated .Position_Sample position_data = 4;
+ * repeated .MagnetometerReading magnetometer_data = 6;
*/
- public java.util.Listrepeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public java.util.Listrepeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public int getPressureDataCount() {
if (pressureDataBuilder_ == null) {
@@ -2829,9 +4144,9 @@ public int getPressureDataCount() {
}
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_Sample getPressureData(int index) {
+ public Traj.BarometerReading getPressureData(int index) {
if (pressureDataBuilder_ == null) {
return pressureData_.get(index);
} else {
@@ -2839,10 +4154,10 @@ public Pressure_Sample getPressureData(int index) {
}
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder setPressureData(
- int index, Pressure_Sample value) {
+ int index, Traj.BarometerReading value) {
if (pressureDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2856,10 +4171,10 @@ public Builder setPressureData(
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder setPressureData(
- int index, Pressure_Sample.Builder builderForValue) {
+ int index, Traj.BarometerReading.Builder builderForValue) {
if (pressureDataBuilder_ == null) {
ensurePressureDataIsMutable();
pressureData_.set(index, builderForValue.build());
@@ -2870,9 +4185,9 @@ public Builder setPressureData(
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Builder addPressureData(Pressure_Sample value) {
+ public Builder addPressureData(Traj.BarometerReading value) {
if (pressureDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2886,10 +4201,10 @@ public Builder addPressureData(Pressure_Sample value) {
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder addPressureData(
- int index, Pressure_Sample value) {
+ int index, Traj.BarometerReading value) {
if (pressureDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -2903,10 +4218,10 @@ public Builder addPressureData(
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder addPressureData(
- Pressure_Sample.Builder builderForValue) {
+ Traj.BarometerReading.Builder builderForValue) {
if (pressureDataBuilder_ == null) {
ensurePressureDataIsMutable();
pressureData_.add(builderForValue.build());
@@ -2917,10 +4232,10 @@ public Builder addPressureData(
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder addPressureData(
- int index, Pressure_Sample.Builder builderForValue) {
+ int index, Traj.BarometerReading.Builder builderForValue) {
if (pressureDataBuilder_ == null) {
ensurePressureDataIsMutable();
pressureData_.add(index, builderForValue.build());
@@ -2931,10 +4246,10 @@ public Builder addPressureData(
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder addAllPressureData(
- Iterable extends Pressure_Sample> values) {
+ java.lang.Iterable extends Traj.BarometerReading> values) {
if (pressureDataBuilder_ == null) {
ensurePressureDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -2946,12 +4261,12 @@ public Builder addAllPressureData(
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder clearPressureData() {
if (pressureDataBuilder_ == null) {
pressureData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
pressureDataBuilder_.clear();
@@ -2959,7 +4274,7 @@ public Builder clearPressureData() {
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
public Builder removePressureData(int index) {
if (pressureDataBuilder_ == null) {
@@ -2972,16 +4287,16 @@ public Builder removePressureData(int index) {
return this;
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_Sample.Builder getPressureDataBuilder(
+ public Traj.BarometerReading.Builder getPressureDataBuilder(
int index) {
return getPressureDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_SampleOrBuilder getPressureDataOrBuilder(
+ public Traj.BarometerReadingOrBuilder getPressureDataOrBuilder(
int index) {
if (pressureDataBuilder_ == null) {
return pressureData_.get(index); } else {
@@ -2989,9 +4304,9 @@ public Pressure_SampleOrBuilder getPressureDataOrBuilder(
}
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public java.util.List extends Pressure_SampleOrBuilder>
+ public java.util.List extends Traj.BarometerReadingOrBuilder>
getPressureDataOrBuilderList() {
if (pressureDataBuilder_ != null) {
return pressureDataBuilder_.getMessageOrBuilderList();
@@ -3000,35 +4315,35 @@ public Pressure_SampleOrBuilder getPressureDataOrBuilder(
}
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_Sample.Builder addPressureDataBuilder() {
+ public Traj.BarometerReading.Builder addPressureDataBuilder() {
return getPressureDataFieldBuilder().addBuilder(
- Pressure_Sample.getDefaultInstance());
+ Traj.BarometerReading.getDefaultInstance());
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public Pressure_Sample.Builder addPressureDataBuilder(
+ public Traj.BarometerReading.Builder addPressureDataBuilder(
int index) {
return getPressureDataFieldBuilder().addBuilder(
- index, Pressure_Sample.getDefaultInstance());
+ index, Traj.BarometerReading.getDefaultInstance());
}
/**
- * repeated .Pressure_Sample pressure_data = 5;
+ * repeated .BarometerReading pressure_data = 7;
*/
- public java.util.Listrepeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public java.util.Listrepeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public int getLightDataCount() {
if (lightDataBuilder_ == null) {
@@ -3069,9 +4384,9 @@ public int getLightDataCount() {
}
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_Sample getLightData(int index) {
+ public Traj.LightReading getLightData(int index) {
if (lightDataBuilder_ == null) {
return lightData_.get(index);
} else {
@@ -3079,10 +4394,10 @@ public Light_Sample getLightData(int index) {
}
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder setLightData(
- int index, Light_Sample value) {
+ int index, Traj.LightReading value) {
if (lightDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3096,10 +4411,10 @@ public Builder setLightData(
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder setLightData(
- int index, Light_Sample.Builder builderForValue) {
+ int index, Traj.LightReading.Builder builderForValue) {
if (lightDataBuilder_ == null) {
ensureLightDataIsMutable();
lightData_.set(index, builderForValue.build());
@@ -3110,9 +4425,9 @@ public Builder setLightData(
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Builder addLightData(Light_Sample value) {
+ public Builder addLightData(Traj.LightReading value) {
if (lightDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3126,10 +4441,10 @@ public Builder addLightData(Light_Sample value) {
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder addLightData(
- int index, Light_Sample value) {
+ int index, Traj.LightReading value) {
if (lightDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3143,10 +4458,10 @@ public Builder addLightData(
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder addLightData(
- Light_Sample.Builder builderForValue) {
+ Traj.LightReading.Builder builderForValue) {
if (lightDataBuilder_ == null) {
ensureLightDataIsMutable();
lightData_.add(builderForValue.build());
@@ -3157,10 +4472,10 @@ public Builder addLightData(
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder addLightData(
- int index, Light_Sample.Builder builderForValue) {
+ int index, Traj.LightReading.Builder builderForValue) {
if (lightDataBuilder_ == null) {
ensureLightDataIsMutable();
lightData_.add(index, builderForValue.build());
@@ -3171,10 +4486,10 @@ public Builder addLightData(
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder addAllLightData(
- Iterable extends Light_Sample> values) {
+ java.lang.Iterable extends Traj.LightReading> values) {
if (lightDataBuilder_ == null) {
ensureLightDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -3186,12 +4501,12 @@ public Builder addAllLightData(
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder clearLightData() {
if (lightDataBuilder_ == null) {
lightData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
lightDataBuilder_.clear();
@@ -3199,7 +4514,7 @@ public Builder clearLightData() {
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
public Builder removeLightData(int index) {
if (lightDataBuilder_ == null) {
@@ -3212,16 +4527,16 @@ public Builder removeLightData(int index) {
return this;
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_Sample.Builder getLightDataBuilder(
+ public Traj.LightReading.Builder getLightDataBuilder(
int index) {
return getLightDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_SampleOrBuilder getLightDataOrBuilder(
+ public Traj.LightReadingOrBuilder getLightDataOrBuilder(
int index) {
if (lightDataBuilder_ == null) {
return lightData_.get(index); } else {
@@ -3229,9 +4544,9 @@ public Light_SampleOrBuilder getLightDataOrBuilder(
}
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public java.util.List extends Light_SampleOrBuilder>
+ public java.util.List extends Traj.LightReadingOrBuilder>
getLightDataOrBuilderList() {
if (lightDataBuilder_ != null) {
return lightDataBuilder_.getMessageOrBuilderList();
@@ -3240,35 +4555,35 @@ public Light_SampleOrBuilder getLightDataOrBuilder(
}
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_Sample.Builder addLightDataBuilder() {
+ public Traj.LightReading.Builder addLightDataBuilder() {
return getLightDataFieldBuilder().addBuilder(
- Light_Sample.getDefaultInstance());
+ Traj.LightReading.getDefaultInstance());
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public Light_Sample.Builder addLightDataBuilder(
+ public Traj.LightReading.Builder addLightDataBuilder(
int index) {
return getLightDataFieldBuilder().addBuilder(
- index, Light_Sample.getDefaultInstance());
+ index, Traj.LightReading.getDefaultInstance());
}
/**
- * repeated .Light_Sample light_data = 6;
+ * repeated .LightReading light_data = 8;
*/
- public java.util.Listrepeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public java.util.Listrepeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public int getGnssDataCount() {
- if (gnssDataBuilder_ == null) {
- return gnssData_.size();
+ public int getProximityDataCount() {
+ if (proximityDataBuilder_ == null) {
+ return proximityData_.size();
} else {
- return gnssDataBuilder_.getCount();
+ return proximityDataBuilder_.getCount();
}
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public GNSS_Sample getGnssData(int index) {
- if (gnssDataBuilder_ == null) {
- return gnssData_.get(index);
+ public Traj.ProximityReading getProximityData(int index) {
+ if (proximityDataBuilder_ == null) {
+ return proximityData_.get(index);
} else {
- return gnssDataBuilder_.getMessage(index);
+ return proximityDataBuilder_.getMessage(index);
}
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder setGnssData(
- int index, GNSS_Sample value) {
- if (gnssDataBuilder_ == null) {
+ public Builder setProximityData(
+ int index, Traj.ProximityReading value) {
+ if (proximityDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGnssDataIsMutable();
- gnssData_.set(index, value);
+ ensureProximityDataIsMutable();
+ proximityData_.set(index, value);
onChanged();
} else {
- gnssDataBuilder_.setMessage(index, value);
+ proximityDataBuilder_.setMessage(index, value);
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder setGnssData(
- int index, GNSS_Sample.Builder builderForValue) {
- if (gnssDataBuilder_ == null) {
- ensureGnssDataIsMutable();
- gnssData_.set(index, builderForValue.build());
+ public Builder setProximityData(
+ int index, Traj.ProximityReading.Builder builderForValue) {
+ if (proximityDataBuilder_ == null) {
+ ensureProximityDataIsMutable();
+ proximityData_.set(index, builderForValue.build());
onChanged();
} else {
- gnssDataBuilder_.setMessage(index, builderForValue.build());
+ proximityDataBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder addGnssData(GNSS_Sample value) {
- if (gnssDataBuilder_ == null) {
+ public Builder addProximityData(Traj.ProximityReading value) {
+ if (proximityDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGnssDataIsMutable();
- gnssData_.add(value);
+ ensureProximityDataIsMutable();
+ proximityData_.add(value);
onChanged();
} else {
- gnssDataBuilder_.addMessage(value);
+ proximityDataBuilder_.addMessage(value);
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder addGnssData(
- int index, GNSS_Sample value) {
- if (gnssDataBuilder_ == null) {
+ public Builder addProximityData(
+ int index, Traj.ProximityReading value) {
+ if (proximityDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureGnssDataIsMutable();
- gnssData_.add(index, value);
+ ensureProximityDataIsMutable();
+ proximityData_.add(index, value);
onChanged();
} else {
- gnssDataBuilder_.addMessage(index, value);
+ proximityDataBuilder_.addMessage(index, value);
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder addGnssData(
- GNSS_Sample.Builder builderForValue) {
- if (gnssDataBuilder_ == null) {
- ensureGnssDataIsMutable();
- gnssData_.add(builderForValue.build());
+ public Builder addProximityData(
+ Traj.ProximityReading.Builder builderForValue) {
+ if (proximityDataBuilder_ == null) {
+ ensureProximityDataIsMutable();
+ proximityData_.add(builderForValue.build());
onChanged();
} else {
- gnssDataBuilder_.addMessage(builderForValue.build());
+ proximityDataBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder addGnssData(
- int index, GNSS_Sample.Builder builderForValue) {
- if (gnssDataBuilder_ == null) {
- ensureGnssDataIsMutable();
- gnssData_.add(index, builderForValue.build());
+ public Builder addProximityData(
+ int index, Traj.ProximityReading.Builder builderForValue) {
+ if (proximityDataBuilder_ == null) {
+ ensureProximityDataIsMutable();
+ proximityData_.add(index, builderForValue.build());
onChanged();
} else {
- gnssDataBuilder_.addMessage(index, builderForValue.build());
+ proximityDataBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder addAllGnssData(
- Iterable extends GNSS_Sample> values) {
- if (gnssDataBuilder_ == null) {
- ensureGnssDataIsMutable();
+ public Builder addAllProximityData(
+ java.lang.Iterable extends Traj.ProximityReading> values) {
+ if (proximityDataBuilder_ == null) {
+ ensureProximityDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, gnssData_);
+ values, proximityData_);
onChanged();
} else {
- gnssDataBuilder_.addAllMessages(values);
+ proximityDataBuilder_.addAllMessages(values);
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder clearGnssData() {
- if (gnssDataBuilder_ == null) {
- gnssData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
+ public Builder clearProximityData() {
+ if (proximityDataBuilder_ == null) {
+ proximityData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
- gnssDataBuilder_.clear();
+ proximityDataBuilder_.clear();
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public Builder removeGnssData(int index) {
- if (gnssDataBuilder_ == null) {
- ensureGnssDataIsMutable();
- gnssData_.remove(index);
+ public Builder removeProximityData(int index) {
+ if (proximityDataBuilder_ == null) {
+ ensureProximityDataIsMutable();
+ proximityData_.remove(index);
onChanged();
} else {
- gnssDataBuilder_.remove(index);
+ proximityDataBuilder_.remove(index);
}
return this;
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public GNSS_Sample.Builder getGnssDataBuilder(
+ public Traj.ProximityReading.Builder getProximityDataBuilder(
int index) {
- return getGnssDataFieldBuilder().getBuilder(index);
+ return getProximityDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public GNSS_SampleOrBuilder getGnssDataOrBuilder(
+ public Traj.ProximityReadingOrBuilder getProximityDataOrBuilder(
int index) {
- if (gnssDataBuilder_ == null) {
- return gnssData_.get(index); } else {
- return gnssDataBuilder_.getMessageOrBuilder(index);
+ if (proximityDataBuilder_ == null) {
+ return proximityData_.get(index); } else {
+ return proximityDataBuilder_.getMessageOrBuilder(index);
}
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public java.util.List extends GNSS_SampleOrBuilder>
- getGnssDataOrBuilderList() {
- if (gnssDataBuilder_ != null) {
- return gnssDataBuilder_.getMessageOrBuilderList();
+ public java.util.List extends Traj.ProximityReadingOrBuilder>
+ getProximityDataOrBuilderList() {
+ if (proximityDataBuilder_ != null) {
+ return proximityDataBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(gnssData_);
+ return java.util.Collections.unmodifiableList(proximityData_);
}
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public GNSS_Sample.Builder addGnssDataBuilder() {
- return getGnssDataFieldBuilder().addBuilder(
- GNSS_Sample.getDefaultInstance());
+ public Traj.ProximityReading.Builder addProximityDataBuilder() {
+ return getProximityDataFieldBuilder().addBuilder(
+ Traj.ProximityReading.getDefaultInstance());
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public GNSS_Sample.Builder addGnssDataBuilder(
+ public Traj.ProximityReading.Builder addProximityDataBuilder(
int index) {
- return getGnssDataFieldBuilder().addBuilder(
- index, GNSS_Sample.getDefaultInstance());
+ return getProximityDataFieldBuilder().addBuilder(
+ index, Traj.ProximityReading.getDefaultInstance());
}
/**
- * repeated .GNSS_Sample gnss_data = 7;
+ * repeated .ProximityReading proximity_data = 9;
*/
- public java.util.Listrepeated .WiFi_Sample wifi_data = 8;
+ * repeated .GNSSReading gnss_data = 10;
*/
- public java.util.Listrepeated .WiFi_Sample wifi_data = 8;
+ * repeated .GNSSReading gnss_data = 10;
*/
- public int getWifiDataCount() {
- if (wifiDataBuilder_ == null) {
- return wifiData_.size();
+ public int getGnssDataCount() {
+ if (gnssDataBuilder_ == null) {
+ return gnssData_.size();
+ } else {
+ return gnssDataBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Traj.GNSSReading getGnssData(int index) {
+ if (gnssDataBuilder_ == null) {
+ return gnssData_.get(index);
+ } else {
+ return gnssDataBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder setGnssData(
+ int index, Traj.GNSSReading value) {
+ if (gnssDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGnssDataIsMutable();
+ gnssData_.set(index, value);
+ onChanged();
+ } else {
+ gnssDataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder setGnssData(
+ int index, Traj.GNSSReading.Builder builderForValue) {
+ if (gnssDataBuilder_ == null) {
+ ensureGnssDataIsMutable();
+ gnssData_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ gnssDataBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder addGnssData(Traj.GNSSReading value) {
+ if (gnssDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGnssDataIsMutable();
+ gnssData_.add(value);
+ onChanged();
+ } else {
+ gnssDataBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder addGnssData(
+ int index, Traj.GNSSReading value) {
+ if (gnssDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGnssDataIsMutable();
+ gnssData_.add(index, value);
+ onChanged();
+ } else {
+ gnssDataBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder addGnssData(
+ Traj.GNSSReading.Builder builderForValue) {
+ if (gnssDataBuilder_ == null) {
+ ensureGnssDataIsMutable();
+ gnssData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ gnssDataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder addGnssData(
+ int index, Traj.GNSSReading.Builder builderForValue) {
+ if (gnssDataBuilder_ == null) {
+ ensureGnssDataIsMutable();
+ gnssData_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ gnssDataBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder addAllGnssData(
+ java.lang.Iterable extends Traj.GNSSReading> values) {
+ if (gnssDataBuilder_ == null) {
+ ensureGnssDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, gnssData_);
+ onChanged();
+ } else {
+ gnssDataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder clearGnssData() {
+ if (gnssDataBuilder_ == null) {
+ gnssData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ gnssDataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Builder removeGnssData(int index) {
+ if (gnssDataBuilder_ == null) {
+ ensureGnssDataIsMutable();
+ gnssData_.remove(index);
+ onChanged();
+ } else {
+ gnssDataBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Traj.GNSSReading.Builder getGnssDataBuilder(
+ int index) {
+ return getGnssDataFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Traj.GNSSReadingOrBuilder getGnssDataOrBuilder(
+ int index) {
+ if (gnssDataBuilder_ == null) {
+ return gnssData_.get(index); } else {
+ return gnssDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public java.util.List extends Traj.GNSSReadingOrBuilder>
+ getGnssDataOrBuilderList() {
+ if (gnssDataBuilder_ != null) {
+ return gnssDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(gnssData_);
+ }
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Traj.GNSSReading.Builder addGnssDataBuilder() {
+ return getGnssDataFieldBuilder().addBuilder(
+ Traj.GNSSReading.getDefaultInstance());
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public Traj.GNSSReading.Builder addGnssDataBuilder(
+ int index) {
+ return getGnssDataFieldBuilder().addBuilder(
+ index, Traj.GNSSReading.getDefaultInstance());
+ }
+ /**
+ * repeated .GNSSReading gnss_data = 10;
+ */
+ public java.util.Listrepeated .Fingerprint wifi_fingerprints = 11;
+ */
+ public java.util.Listrepeated .Fingerprint wifi_fingerprints = 11;
+ */
+ public int getWifiFingerprintsCount() {
+ if (wifiFingerprintsBuilder_ == null) {
+ return wifiFingerprints_.size();
} else {
- return wifiDataBuilder_.getCount();
+ return wifiFingerprintsBuilder_.getCount();
}
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_Sample getWifiData(int index) {
- if (wifiDataBuilder_ == null) {
- return wifiData_.get(index);
+ public Traj.Fingerprint getWifiFingerprints(int index) {
+ if (wifiFingerprintsBuilder_ == null) {
+ return wifiFingerprints_.get(index);
} else {
- return wifiDataBuilder_.getMessage(index);
+ return wifiFingerprintsBuilder_.getMessage(index);
}
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder setWifiData(
- int index, WiFi_Sample value) {
- if (wifiDataBuilder_ == null) {
+ public Builder setWifiFingerprints(
+ int index, Traj.Fingerprint value) {
+ if (wifiFingerprintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureWifiDataIsMutable();
- wifiData_.set(index, value);
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.set(index, value);
onChanged();
} else {
- wifiDataBuilder_.setMessage(index, value);
+ wifiFingerprintsBuilder_.setMessage(index, value);
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder setWifiData(
- int index, WiFi_Sample.Builder builderForValue) {
- if (wifiDataBuilder_ == null) {
- ensureWifiDataIsMutable();
- wifiData_.set(index, builderForValue.build());
+ public Builder setWifiFingerprints(
+ int index, Traj.Fingerprint.Builder builderForValue) {
+ if (wifiFingerprintsBuilder_ == null) {
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.set(index, builderForValue.build());
onChanged();
} else {
- wifiDataBuilder_.setMessage(index, builderForValue.build());
+ wifiFingerprintsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder addWifiData(WiFi_Sample value) {
- if (wifiDataBuilder_ == null) {
+ public Builder addWifiFingerprints(Traj.Fingerprint value) {
+ if (wifiFingerprintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureWifiDataIsMutable();
- wifiData_.add(value);
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.add(value);
onChanged();
} else {
- wifiDataBuilder_.addMessage(value);
+ wifiFingerprintsBuilder_.addMessage(value);
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder addWifiData(
- int index, WiFi_Sample value) {
- if (wifiDataBuilder_ == null) {
+ public Builder addWifiFingerprints(
+ int index, Traj.Fingerprint value) {
+ if (wifiFingerprintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureWifiDataIsMutable();
- wifiData_.add(index, value);
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.add(index, value);
onChanged();
} else {
- wifiDataBuilder_.addMessage(index, value);
+ wifiFingerprintsBuilder_.addMessage(index, value);
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder addWifiData(
- WiFi_Sample.Builder builderForValue) {
- if (wifiDataBuilder_ == null) {
- ensureWifiDataIsMutable();
- wifiData_.add(builderForValue.build());
+ public Builder addWifiFingerprints(
+ Traj.Fingerprint.Builder builderForValue) {
+ if (wifiFingerprintsBuilder_ == null) {
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.add(builderForValue.build());
onChanged();
} else {
- wifiDataBuilder_.addMessage(builderForValue.build());
+ wifiFingerprintsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder addWifiData(
- int index, WiFi_Sample.Builder builderForValue) {
- if (wifiDataBuilder_ == null) {
- ensureWifiDataIsMutable();
- wifiData_.add(index, builderForValue.build());
+ public Builder addWifiFingerprints(
+ int index, Traj.Fingerprint.Builder builderForValue) {
+ if (wifiFingerprintsBuilder_ == null) {
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.add(index, builderForValue.build());
onChanged();
} else {
- wifiDataBuilder_.addMessage(index, builderForValue.build());
+ wifiFingerprintsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder addAllWifiData(
- Iterable extends WiFi_Sample> values) {
- if (wifiDataBuilder_ == null) {
- ensureWifiDataIsMutable();
+ public Builder addAllWifiFingerprints(
+ java.lang.Iterable extends Traj.Fingerprint> values) {
+ if (wifiFingerprintsBuilder_ == null) {
+ ensureWifiFingerprintsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, wifiData_);
+ values, wifiFingerprints_);
onChanged();
} else {
- wifiDataBuilder_.addAllMessages(values);
+ wifiFingerprintsBuilder_.addAllMessages(values);
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder clearWifiData() {
- if (wifiDataBuilder_ == null) {
- wifiData_ = java.util.Collections.emptyList();
+ public Builder clearWifiFingerprints() {
+ if (wifiFingerprintsBuilder_ == null) {
+ wifiFingerprints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
- wifiDataBuilder_.clear();
+ wifiFingerprintsBuilder_.clear();
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public Builder removeWifiData(int index) {
- if (wifiDataBuilder_ == null) {
- ensureWifiDataIsMutable();
- wifiData_.remove(index);
+ public Builder removeWifiFingerprints(int index) {
+ if (wifiFingerprintsBuilder_ == null) {
+ ensureWifiFingerprintsIsMutable();
+ wifiFingerprints_.remove(index);
onChanged();
} else {
- wifiDataBuilder_.remove(index);
+ wifiFingerprintsBuilder_.remove(index);
}
return this;
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_Sample.Builder getWifiDataBuilder(
+ public Traj.Fingerprint.Builder getWifiFingerprintsBuilder(
int index) {
- return getWifiDataFieldBuilder().getBuilder(index);
+ return getWifiFingerprintsFieldBuilder().getBuilder(index);
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_SampleOrBuilder getWifiDataOrBuilder(
+ public Traj.FingerprintOrBuilder getWifiFingerprintsOrBuilder(
int index) {
- if (wifiDataBuilder_ == null) {
- return wifiData_.get(index); } else {
- return wifiDataBuilder_.getMessageOrBuilder(index);
+ if (wifiFingerprintsBuilder_ == null) {
+ return wifiFingerprints_.get(index); } else {
+ return wifiFingerprintsBuilder_.getMessageOrBuilder(index);
}
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public java.util.List extends WiFi_SampleOrBuilder>
- getWifiDataOrBuilderList() {
- if (wifiDataBuilder_ != null) {
- return wifiDataBuilder_.getMessageOrBuilderList();
+ public java.util.List extends Traj.FingerprintOrBuilder>
+ getWifiFingerprintsOrBuilderList() {
+ if (wifiFingerprintsBuilder_ != null) {
+ return wifiFingerprintsBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(wifiData_);
+ return java.util.Collections.unmodifiableList(wifiFingerprints_);
}
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_Sample.Builder addWifiDataBuilder() {
- return getWifiDataFieldBuilder().addBuilder(
- WiFi_Sample.getDefaultInstance());
+ public Traj.Fingerprint.Builder addWifiFingerprintsBuilder() {
+ return getWifiFingerprintsFieldBuilder().addBuilder(
+ Traj.Fingerprint.getDefaultInstance());
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public WiFi_Sample.Builder addWifiDataBuilder(
+ public Traj.Fingerprint.Builder addWifiFingerprintsBuilder(
int index) {
- return getWifiDataFieldBuilder().addBuilder(
- index, WiFi_Sample.getDefaultInstance());
+ return getWifiFingerprintsFieldBuilder().addBuilder(
+ index, Traj.Fingerprint.getDefaultInstance());
}
/**
- * repeated .WiFi_Sample wifi_data = 8;
+ * repeated .Fingerprint wifi_fingerprints = 11;
*/
- public java.util.Listrepeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public java.util.Listrepeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public int getApsDataCount() {
if (apsDataBuilder_ == null) {
@@ -3789,9 +5344,9 @@ public int getApsDataCount() {
}
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_Data getApsData(int index) {
+ public Traj.WiFiAPData getApsData(int index) {
if (apsDataBuilder_ == null) {
return apsData_.get(index);
} else {
@@ -3799,10 +5354,10 @@ public AP_Data getApsData(int index) {
}
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder setApsData(
- int index, AP_Data value) {
+ int index, Traj.WiFiAPData value) {
if (apsDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3816,10 +5371,10 @@ public Builder setApsData(
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder setApsData(
- int index, AP_Data.Builder builderForValue) {
+ int index, Traj.WiFiAPData.Builder builderForValue) {
if (apsDataBuilder_ == null) {
ensureApsDataIsMutable();
apsData_.set(index, builderForValue.build());
@@ -3830,9 +5385,9 @@ public Builder setApsData(
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public Builder addApsData(AP_Data value) {
+ public Builder addApsData(Traj.WiFiAPData value) {
if (apsDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3846,10 +5401,10 @@ public Builder addApsData(AP_Data value) {
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder addApsData(
- int index, AP_Data value) {
+ int index, Traj.WiFiAPData value) {
if (apsDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -3863,10 +5418,10 @@ public Builder addApsData(
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder addApsData(
- AP_Data.Builder builderForValue) {
+ Traj.WiFiAPData.Builder builderForValue) {
if (apsDataBuilder_ == null) {
ensureApsDataIsMutable();
apsData_.add(builderForValue.build());
@@ -3877,10 +5432,10 @@ public Builder addApsData(
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder addApsData(
- int index, AP_Data.Builder builderForValue) {
+ int index, Traj.WiFiAPData.Builder builderForValue) {
if (apsDataBuilder_ == null) {
ensureApsDataIsMutable();
apsData_.add(index, builderForValue.build());
@@ -3891,10 +5446,10 @@ public Builder addApsData(
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder addAllApsData(
- Iterable extends AP_Data> values) {
+ java.lang.Iterable extends Traj.WiFiAPData> values) {
if (apsDataBuilder_ == null) {
ensureApsDataIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -3906,7 +5461,7 @@ public Builder addAllApsData(
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder clearApsData() {
if (apsDataBuilder_ == null) {
@@ -3919,7 +5474,7 @@ public Builder clearApsData() {
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
public Builder removeApsData(int index) {
if (apsDataBuilder_ == null) {
@@ -3932,16 +5487,16 @@ public Builder removeApsData(int index) {
return this;
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_Data.Builder getApsDataBuilder(
+ public Traj.WiFiAPData.Builder getApsDataBuilder(
int index) {
return getApsDataFieldBuilder().getBuilder(index);
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_DataOrBuilder getApsDataOrBuilder(
+ public Traj.WiFiAPDataOrBuilder getApsDataOrBuilder(
int index) {
if (apsDataBuilder_ == null) {
return apsData_.get(index); } else {
@@ -3949,9 +5504,9 @@ public AP_DataOrBuilder getApsDataOrBuilder(
}
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public java.util.List extends AP_DataOrBuilder>
+ public java.util.List extends Traj.WiFiAPDataOrBuilder>
getApsDataOrBuilderList() {
if (apsDataBuilder_ != null) {
return apsDataBuilder_.getMessageOrBuilderList();
@@ -3960,35 +5515,35 @@ public AP_DataOrBuilder getApsDataOrBuilder(
}
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_Data.Builder addApsDataBuilder() {
+ public Traj.WiFiAPData.Builder addApsDataBuilder() {
return getApsDataFieldBuilder().addBuilder(
- AP_Data.getDefaultInstance());
+ Traj.WiFiAPData.getDefaultInstance());
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public AP_Data.Builder addApsDataBuilder(
+ public Traj.WiFiAPData.Builder addApsDataBuilder(
int index) {
return getApsDataFieldBuilder().addBuilder(
- index, AP_Data.getDefaultInstance());
+ index, Traj.WiFiAPData.getDefaultInstance());
}
/**
- * repeated .AP_Data aps_data = 9;
+ * repeated .WiFiAPData aps_data = 12;
*/
- public java.util.List- * UNIX timestamp (in milliseconds) recorded from the start of this - * trajectory data collection event. All future - * timestamps in sub classes are to be RELATIVE timestamps - * (in milliseconds) to this start time. - * E.g. - * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) - * relative_timestamp = 3000 (3s) - *- * - *
optional int64 start_timestamp = 10;
- */
- public long getStartTimestamp() {
- return startTimestamp_;
+ private java.util.List- * UNIX timestamp (in milliseconds) recorded from the start of this - * trajectory data collection event. All future - * timestamps in sub classes are to be RELATIVE timestamps - * (in milliseconds) to this start time. - * E.g. - * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) - * relative_timestamp = 3000 (3s) - *- * - *
optional int64 start_timestamp = 10;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder setStartTimestamp(long value) {
-
- startTimestamp_ = value;
- onChanged();
- return this;
+ public java.util.List- * UNIX timestamp (in milliseconds) recorded from the start of this - * trajectory data collection event. All future - * timestamps in sub classes are to be RELATIVE timestamps - * (in milliseconds) to this start time. - * E.g. - * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) - * relative_timestamp = 3000 (3s) - *- * - *
optional int64 start_timestamp = 10;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder clearStartTimestamp() {
-
- startTimestamp_ = 0L;
- onChanged();
- return this;
+ public int getWifiRttDataCount() {
+ if (wifiRttDataBuilder_ == null) {
+ return wifiRttData_.size();
+ } else {
+ return wifiRttDataBuilder_.getCount();
+ }
}
-
- private Object dataIdentifier_ = "";
/**
- * optional string data_identifier = 11;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public String getDataIdentifier() {
- Object ref = dataIdentifier_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- dataIdentifier_ = s;
- return s;
+ public Traj.WiFiRTTReading getWifiRttData(int index) {
+ if (wifiRttDataBuilder_ == null) {
+ return wifiRttData_.get(index);
} else {
- return (String) ref;
+ return wifiRttDataBuilder_.getMessage(index);
}
}
/**
- * optional string data_identifier = 11;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public com.google.protobuf.ByteString
- getDataIdentifierBytes() {
- Object ref = dataIdentifier_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
- dataIdentifier_ = b;
- return b;
+ public Builder setWifiRttData(
+ int index, Traj.WiFiRTTReading value) {
+ if (wifiRttDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.set(index, value);
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ wifiRttDataBuilder_.setMessage(index, value);
}
- }
- /**
- * optional string data_identifier = 11;
- */
- public Builder setDataIdentifier(
- String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- dataIdentifier_ = value;
- onChanged();
return this;
}
/**
- * optional string data_identifier = 11;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder clearDataIdentifier() {
-
- dataIdentifier_ = getDefaultInstance().getDataIdentifier();
- onChanged();
+ public Builder setWifiRttData(
+ int index, Traj.WiFiRTTReading.Builder builderForValue) {
+ if (wifiRttDataBuilder_ == null) {
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ wifiRttDataBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
/**
- * optional string data_identifier = 11;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder setDataIdentifierBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- dataIdentifier_ = value;
- onChanged();
+ public Builder addWifiRttData(Traj.WiFiRTTReading value) {
+ if (wifiRttDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.add(value);
+ onChanged();
+ } else {
+ wifiRttDataBuilder_.addMessage(value);
+ }
return this;
}
-
- private Sensor_Info accelerometerInfo_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder> accelerometerInfoBuilder_;
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public boolean hasAccelerometerInfo() {
- return accelerometerInfoBuilder_ != null || accelerometerInfo_ != null;
+ public Builder addWifiRttData(
+ int index, Traj.WiFiRTTReading value) {
+ if (wifiRttDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.add(index, value);
+ onChanged();
+ } else {
+ wifiRttDataBuilder_.addMessage(index, value);
+ }
+ return this;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Sensor_Info getAccelerometerInfo() {
- if (accelerometerInfoBuilder_ == null) {
- return accelerometerInfo_ == null ? Sensor_Info.getDefaultInstance() : accelerometerInfo_;
+ public Builder addWifiRttData(
+ Traj.WiFiRTTReading.Builder builderForValue) {
+ if (wifiRttDataBuilder_ == null) {
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.add(builderForValue.build());
+ onChanged();
} else {
- return accelerometerInfoBuilder_.getMessage();
+ wifiRttDataBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder setAccelerometerInfo(Sensor_Info value) {
- if (accelerometerInfoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- accelerometerInfo_ = value;
+ public Builder addWifiRttData(
+ int index, Traj.WiFiRTTReading.Builder builderForValue) {
+ if (wifiRttDataBuilder_ == null) {
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.add(index, builderForValue.build());
onChanged();
} else {
- accelerometerInfoBuilder_.setMessage(value);
+ wifiRttDataBuilder_.addMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder setAccelerometerInfo(
- Sensor_Info.Builder builderForValue) {
- if (accelerometerInfoBuilder_ == null) {
- accelerometerInfo_ = builderForValue.build();
+ public Builder addAllWifiRttData(
+ java.lang.Iterable extends Traj.WiFiRTTReading> values) {
+ if (wifiRttDataBuilder_ == null) {
+ ensureWifiRttDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, wifiRttData_);
onChanged();
} else {
- accelerometerInfoBuilder_.setMessage(builderForValue.build());
+ wifiRttDataBuilder_.addAllMessages(values);
}
-
return this;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder mergeAccelerometerInfo(Sensor_Info value) {
- if (accelerometerInfoBuilder_ == null) {
- if (accelerometerInfo_ != null) {
- accelerometerInfo_ =
- Sensor_Info.newBuilder(accelerometerInfo_).mergeFrom(value).buildPartial();
- } else {
- accelerometerInfo_ = value;
- }
+ public Builder clearWifiRttData() {
+ if (wifiRttDataBuilder_ == null) {
+ wifiRttData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
} else {
- accelerometerInfoBuilder_.mergeFrom(value);
+ wifiRttDataBuilder_.clear();
}
-
return this;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Builder clearAccelerometerInfo() {
- if (accelerometerInfoBuilder_ == null) {
- accelerometerInfo_ = null;
+ public Builder removeWifiRttData(int index) {
+ if (wifiRttDataBuilder_ == null) {
+ ensureWifiRttDataIsMutable();
+ wifiRttData_.remove(index);
onChanged();
} else {
- accelerometerInfo_ = null;
- accelerometerInfoBuilder_ = null;
+ wifiRttDataBuilder_.remove(index);
}
-
return this;
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Sensor_Info.Builder getAccelerometerInfoBuilder() {
-
- onChanged();
- return getAccelerometerInfoFieldBuilder().getBuilder();
+ public Traj.WiFiRTTReading.Builder getWifiRttDataBuilder(
+ int index) {
+ return getWifiRttDataFieldBuilder().getBuilder(index);
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- public Sensor_InfoOrBuilder getAccelerometerInfoOrBuilder() {
- if (accelerometerInfoBuilder_ != null) {
- return accelerometerInfoBuilder_.getMessageOrBuilder();
+ public Traj.WiFiRTTReadingOrBuilder getWifiRttDataOrBuilder(
+ int index) {
+ if (wifiRttDataBuilder_ == null) {
+ return wifiRttData_.get(index); } else {
+ return wifiRttDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ public java.util.List extends Traj.WiFiRTTReadingOrBuilder>
+ getWifiRttDataOrBuilderList() {
+ if (wifiRttDataBuilder_ != null) {
+ return wifiRttDataBuilder_.getMessageOrBuilderList();
} else {
- return accelerometerInfo_ == null ?
- Sensor_Info.getDefaultInstance() : accelerometerInfo_;
+ return java.util.Collections.unmodifiableList(wifiRttData_);
}
}
/**
- * optional .Sensor_Info accelerometer_info = 12;
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>
- getAccelerometerInfoFieldBuilder() {
- if (accelerometerInfoBuilder_ == null) {
- accelerometerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>(
- getAccelerometerInfo(),
+ public Traj.WiFiRTTReading.Builder addWifiRttDataBuilder() {
+ return getWifiRttDataFieldBuilder().addBuilder(
+ Traj.WiFiRTTReading.getDefaultInstance());
+ }
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ public Traj.WiFiRTTReading.Builder addWifiRttDataBuilder(
+ int index) {
+ return getWifiRttDataFieldBuilder().addBuilder(
+ index, Traj.WiFiRTTReading.getDefaultInstance());
+ }
+ /**
+ * repeated .WiFiRTTReading wifi_rtt_data = 13;
+ */
+ public java.util.Listoptional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public boolean hasGyroscopeInfo() {
- return gyroscopeInfoBuilder_ != null || gyroscopeInfo_ != null;
+ public java.util.Listoptional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Sensor_Info getGyroscopeInfo() {
- if (gyroscopeInfoBuilder_ == null) {
- return gyroscopeInfo_ == null ? Sensor_Info.getDefaultInstance() : gyroscopeInfo_;
+ public int getBleFingerprintsCount() {
+ if (bleFingerprintsBuilder_ == null) {
+ return bleFingerprints_.size();
} else {
- return gyroscopeInfoBuilder_.getMessage();
+ return bleFingerprintsBuilder_.getCount();
}
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder setGyroscopeInfo(Sensor_Info value) {
- if (gyroscopeInfoBuilder_ == null) {
+ public Traj.Fingerprint getBleFingerprints(int index) {
+ if (bleFingerprintsBuilder_ == null) {
+ return bleFingerprints_.get(index);
+ } else {
+ return bleFingerprintsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ public Builder setBleFingerprints(
+ int index, Traj.Fingerprint value) {
+ if (bleFingerprintsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- gyroscopeInfo_ = value;
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.set(index, value);
onChanged();
} else {
- gyroscopeInfoBuilder_.setMessage(value);
+ bleFingerprintsBuilder_.setMessage(index, value);
}
-
return this;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder setGyroscopeInfo(
- Sensor_Info.Builder builderForValue) {
- if (gyroscopeInfoBuilder_ == null) {
- gyroscopeInfo_ = builderForValue.build();
+ public Builder setBleFingerprints(
+ int index, Traj.Fingerprint.Builder builderForValue) {
+ if (bleFingerprintsBuilder_ == null) {
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.set(index, builderForValue.build());
onChanged();
} else {
- gyroscopeInfoBuilder_.setMessage(builderForValue.build());
+ bleFingerprintsBuilder_.setMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder mergeGyroscopeInfo(Sensor_Info value) {
- if (gyroscopeInfoBuilder_ == null) {
- if (gyroscopeInfo_ != null) {
- gyroscopeInfo_ =
- Sensor_Info.newBuilder(gyroscopeInfo_).mergeFrom(value).buildPartial();
- } else {
- gyroscopeInfo_ = value;
+ public Builder addBleFingerprints(Traj.Fingerprint value) {
+ if (bleFingerprintsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.add(value);
onChanged();
} else {
- gyroscopeInfoBuilder_.mergeFrom(value);
+ bleFingerprintsBuilder_.addMessage(value);
}
-
return this;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder clearGyroscopeInfo() {
- if (gyroscopeInfoBuilder_ == null) {
- gyroscopeInfo_ = null;
+ public Builder addBleFingerprints(
+ int index, Traj.Fingerprint value) {
+ if (bleFingerprintsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.add(index, value);
onChanged();
} else {
- gyroscopeInfo_ = null;
- gyroscopeInfoBuilder_ = null;
+ bleFingerprintsBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
- */
- public Sensor_Info.Builder getGyroscopeInfoBuilder() {
-
- onChanged();
- return getGyroscopeInfoFieldBuilder().getBuilder();
- }
- /**
- * optional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Sensor_InfoOrBuilder getGyroscopeInfoOrBuilder() {
- if (gyroscopeInfoBuilder_ != null) {
- return gyroscopeInfoBuilder_.getMessageOrBuilder();
+ public Builder addBleFingerprints(
+ Traj.Fingerprint.Builder builderForValue) {
+ if (bleFingerprintsBuilder_ == null) {
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.add(builderForValue.build());
+ onChanged();
} else {
- return gyroscopeInfo_ == null ?
- Sensor_Info.getDefaultInstance() : gyroscopeInfo_;
+ bleFingerprintsBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
- * optional .Sensor_Info gyroscope_info = 13;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>
- getGyroscopeInfoFieldBuilder() {
- if (gyroscopeInfoBuilder_ == null) {
- gyroscopeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>(
- getGyroscopeInfo(),
- getParentForChildren(),
- isClean());
- gyroscopeInfo_ = null;
+ public Builder addBleFingerprints(
+ int index, Traj.Fingerprint.Builder builderForValue) {
+ if (bleFingerprintsBuilder_ == null) {
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ bleFingerprintsBuilder_.addMessage(index, builderForValue.build());
}
- return gyroscopeInfoBuilder_;
- }
-
- private Sensor_Info rotationVectorInfo_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder> rotationVectorInfoBuilder_;
- /**
- * optional .Sensor_Info rotation_vector_info = 14;
- */
- public boolean hasRotationVectorInfo() {
- return rotationVectorInfoBuilder_ != null || rotationVectorInfo_ != null;
+ return this;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Sensor_Info getRotationVectorInfo() {
- if (rotationVectorInfoBuilder_ == null) {
- return rotationVectorInfo_ == null ? Sensor_Info.getDefaultInstance() : rotationVectorInfo_;
+ public Builder addAllBleFingerprints(
+ java.lang.Iterable extends Traj.Fingerprint> values) {
+ if (bleFingerprintsBuilder_ == null) {
+ ensureBleFingerprintsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, bleFingerprints_);
+ onChanged();
} else {
- return rotationVectorInfoBuilder_.getMessage();
+ bleFingerprintsBuilder_.addAllMessages(values);
}
+ return this;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder setRotationVectorInfo(Sensor_Info value) {
- if (rotationVectorInfoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- rotationVectorInfo_ = value;
+ public Builder clearBleFingerprints() {
+ if (bleFingerprintsBuilder_ == null) {
+ bleFingerprints_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
- rotationVectorInfoBuilder_.setMessage(value);
+ bleFingerprintsBuilder_.clear();
}
-
return this;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder setRotationVectorInfo(
- Sensor_Info.Builder builderForValue) {
- if (rotationVectorInfoBuilder_ == null) {
- rotationVectorInfo_ = builderForValue.build();
+ public Builder removeBleFingerprints(int index) {
+ if (bleFingerprintsBuilder_ == null) {
+ ensureBleFingerprintsIsMutable();
+ bleFingerprints_.remove(index);
onChanged();
} else {
- rotationVectorInfoBuilder_.setMessage(builderForValue.build());
+ bleFingerprintsBuilder_.remove(index);
}
-
return this;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder mergeRotationVectorInfo(Sensor_Info value) {
- if (rotationVectorInfoBuilder_ == null) {
- if (rotationVectorInfo_ != null) {
- rotationVectorInfo_ =
- Sensor_Info.newBuilder(rotationVectorInfo_).mergeFrom(value).buildPartial();
- } else {
- rotationVectorInfo_ = value;
- }
- onChanged();
- } else {
- rotationVectorInfoBuilder_.mergeFrom(value);
+ public Traj.Fingerprint.Builder getBleFingerprintsBuilder(
+ int index) {
+ return getBleFingerprintsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .Fingerprint ble_fingerprints = 14;
+ */
+ public Traj.FingerprintOrBuilder getBleFingerprintsOrBuilder(
+ int index) {
+ if (bleFingerprintsBuilder_ == null) {
+ return bleFingerprints_.get(index); } else {
+ return bleFingerprintsBuilder_.getMessageOrBuilder(index);
}
-
- return this;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Builder clearRotationVectorInfo() {
- if (rotationVectorInfoBuilder_ == null) {
- rotationVectorInfo_ = null;
- onChanged();
+ public java.util.List extends Traj.FingerprintOrBuilder>
+ getBleFingerprintsOrBuilderList() {
+ if (bleFingerprintsBuilder_ != null) {
+ return bleFingerprintsBuilder_.getMessageOrBuilderList();
} else {
- rotationVectorInfo_ = null;
- rotationVectorInfoBuilder_ = null;
+ return java.util.Collections.unmodifiableList(bleFingerprints_);
}
-
- return this;
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Sensor_Info.Builder getRotationVectorInfoBuilder() {
-
- onChanged();
- return getRotationVectorInfoFieldBuilder().getBuilder();
+ public Traj.Fingerprint.Builder addBleFingerprintsBuilder() {
+ return getBleFingerprintsFieldBuilder().addBuilder(
+ Traj.Fingerprint.getDefaultInstance());
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- public Sensor_InfoOrBuilder getRotationVectorInfoOrBuilder() {
- if (rotationVectorInfoBuilder_ != null) {
- return rotationVectorInfoBuilder_.getMessageOrBuilder();
- } else {
- return rotationVectorInfo_ == null ?
- Sensor_Info.getDefaultInstance() : rotationVectorInfo_;
- }
+ public Traj.Fingerprint.Builder addBleFingerprintsBuilder(
+ int index) {
+ return getBleFingerprintsFieldBuilder().addBuilder(
+ index, Traj.Fingerprint.getDefaultInstance());
}
/**
- * optional .Sensor_Info rotation_vector_info = 14;
+ * repeated .Fingerprint ble_fingerprints = 14;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>
- getRotationVectorInfoFieldBuilder() {
- if (rotationVectorInfoBuilder_ == null) {
- rotationVectorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>(
- getRotationVectorInfo(),
+ public java.util.Listoptional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public boolean hasMagnetometerInfo() {
- return magnetometerInfoBuilder_ != null || magnetometerInfo_ != null;
+ public java.util.Listoptional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Sensor_Info getMagnetometerInfo() {
- if (magnetometerInfoBuilder_ == null) {
- return magnetometerInfo_ == null ? Sensor_Info.getDefaultInstance() : magnetometerInfo_;
+ public int getBleDataCount() {
+ if (bleDataBuilder_ == null) {
+ return bleData_.size();
} else {
- return magnetometerInfoBuilder_.getMessage();
+ return bleDataBuilder_.getCount();
}
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Builder setMagnetometerInfo(Sensor_Info value) {
- if (magnetometerInfoBuilder_ == null) {
+ public Traj.BleData getBleData(int index) {
+ if (bleDataBuilder_ == null) {
+ return bleData_.get(index);
+ } else {
+ return bleDataBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Builder setBleData(
+ int index, Traj.BleData value) {
+ if (bleDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- magnetometerInfo_ = value;
+ ensureBleDataIsMutable();
+ bleData_.set(index, value);
onChanged();
} else {
- magnetometerInfoBuilder_.setMessage(value);
+ bleDataBuilder_.setMessage(index, value);
}
-
return this;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Builder setMagnetometerInfo(
- Sensor_Info.Builder builderForValue) {
- if (magnetometerInfoBuilder_ == null) {
- magnetometerInfo_ = builderForValue.build();
+ public Builder setBleData(
+ int index, Traj.BleData.Builder builderForValue) {
+ if (bleDataBuilder_ == null) {
+ ensureBleDataIsMutable();
+ bleData_.set(index, builderForValue.build());
onChanged();
} else {
- magnetometerInfoBuilder_.setMessage(builderForValue.build());
+ bleDataBuilder_.setMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Builder mergeMagnetometerInfo(Sensor_Info value) {
- if (magnetometerInfoBuilder_ == null) {
- if (magnetometerInfo_ != null) {
- magnetometerInfo_ =
- Sensor_Info.newBuilder(magnetometerInfo_).mergeFrom(value).buildPartial();
- } else {
- magnetometerInfo_ = value;
+ public Builder addBleData(Traj.BleData value) {
+ if (bleDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureBleDataIsMutable();
+ bleData_.add(value);
onChanged();
} else {
- magnetometerInfoBuilder_.mergeFrom(value);
+ bleDataBuilder_.addMessage(value);
}
-
return this;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Builder clearMagnetometerInfo() {
- if (magnetometerInfoBuilder_ == null) {
- magnetometerInfo_ = null;
+ public Builder addBleData(
+ int index, Traj.BleData value) {
+ if (bleDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBleDataIsMutable();
+ bleData_.add(index, value);
onChanged();
} else {
- magnetometerInfo_ = null;
- magnetometerInfoBuilder_ = null;
+ bleDataBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Sensor_Info.Builder getMagnetometerInfoBuilder() {
-
- onChanged();
- return getMagnetometerInfoFieldBuilder().getBuilder();
+ public Builder addBleData(
+ Traj.BleData.Builder builderForValue) {
+ if (bleDataBuilder_ == null) {
+ ensureBleDataIsMutable();
+ bleData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ bleDataBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- public Sensor_InfoOrBuilder getMagnetometerInfoOrBuilder() {
- if (magnetometerInfoBuilder_ != null) {
- return magnetometerInfoBuilder_.getMessageOrBuilder();
+ public Builder addBleData(
+ int index, Traj.BleData.Builder builderForValue) {
+ if (bleDataBuilder_ == null) {
+ ensureBleDataIsMutable();
+ bleData_.add(index, builderForValue.build());
+ onChanged();
} else {
- return magnetometerInfo_ == null ?
- Sensor_Info.getDefaultInstance() : magnetometerInfo_;
+ bleDataBuilder_.addMessage(index, builderForValue.build());
}
+ return this;
}
/**
- * optional .Sensor_Info magnetometer_info = 15;
+ * repeated .BleData ble_data = 15;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>
- getMagnetometerInfoFieldBuilder() {
- if (magnetometerInfoBuilder_ == null) {
- magnetometerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>(
- getMagnetometerInfo(),
+ public Builder addAllBleData(
+ java.lang.Iterable extends Traj.BleData> values) {
+ if (bleDataBuilder_ == null) {
+ ensureBleDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, bleData_);
+ onChanged();
+ } else {
+ bleDataBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Builder clearBleData() {
+ if (bleDataBuilder_ == null) {
+ bleData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ } else {
+ bleDataBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Builder removeBleData(int index) {
+ if (bleDataBuilder_ == null) {
+ ensureBleDataIsMutable();
+ bleData_.remove(index);
+ onChanged();
+ } else {
+ bleDataBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Traj.BleData.Builder getBleDataBuilder(
+ int index) {
+ return getBleDataFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Traj.BleDataOrBuilder getBleDataOrBuilder(
+ int index) {
+ if (bleDataBuilder_ == null) {
+ return bleData_.get(index); } else {
+ return bleDataBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public java.util.List extends Traj.BleDataOrBuilder>
+ getBleDataOrBuilderList() {
+ if (bleDataBuilder_ != null) {
+ return bleDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(bleData_);
+ }
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Traj.BleData.Builder addBleDataBuilder() {
+ return getBleDataFieldBuilder().addBuilder(
+ Traj.BleData.getDefaultInstance());
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public Traj.BleData.Builder addBleDataBuilder(
+ int index) {
+ return getBleDataFieldBuilder().addBuilder(
+ index, Traj.BleData.getDefaultInstance());
+ }
+ /**
+ * repeated .BleData ble_data = 15;
+ */
+ public java.util.List+ * UNIX timestamp (in milliseconds) recorded from the start of this + * trajectory data collection event. All future + * timestamps in sub classes are to be RELATIVE timestamps + * (in milliseconds) to this start time. + * E.g. + * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) + * relative_timestamp = 3000 (3s) + *+ * + *
int64 start_timestamp = 16;
+ * @return The startTimestamp.
+ */
+ @java.lang.Override
+ public long getStartTimestamp() {
+ return startTimestamp_;
+ }
+ /**
+ * + * UNIX timestamp (in milliseconds) recorded from the start of this + * trajectory data collection event. All future + * timestamps in sub classes are to be RELATIVE timestamps + * (in milliseconds) to this start time. + * E.g. + * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) + * relative_timestamp = 3000 (3s) + *+ * + *
int64 start_timestamp = 16;
+ * @param value The startTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartTimestamp(long value) {
+
+ startTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * UNIX timestamp (in milliseconds) recorded from the start of this + * trajectory data collection event. All future + * timestamps in sub classes are to be RELATIVE timestamps + * (in milliseconds) to this start time. + * E.g. + * start_timestamp = 1674819807315 (UTC 27 Jan 2023 in the morning) + * relative_timestamp = 3000 (3s) + *+ * + *
int64 start_timestamp = 16;
+ * @return This builder for chaining.
+ */
+ public Builder clearStartTimestamp() {
+
+ startTimestamp_ = 0L;
+ onChanged();
+ return this;
}
- private Sensor_Info barometerInfo_ = null;
+ private Traj.GNSSPosition initialPosition_;
private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder> barometerInfoBuilder_;
+ Traj.GNSSPosition, Traj.GNSSPosition.Builder, Traj.GNSSPositionOrBuilder> initialPositionBuilder_;
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
+ * @return Whether the initialPosition field is set.
*/
- public boolean hasBarometerInfo() {
- return barometerInfoBuilder_ != null || barometerInfo_ != null;
+ public boolean hasInitialPosition() {
+ return initialPositionBuilder_ != null || initialPosition_ != null;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
+ * @return The initialPosition.
*/
- public Sensor_Info getBarometerInfo() {
- if (barometerInfoBuilder_ == null) {
- return barometerInfo_ == null ? Sensor_Info.getDefaultInstance() : barometerInfo_;
+ public Traj.GNSSPosition getInitialPosition() {
+ if (initialPositionBuilder_ == null) {
+ return initialPosition_ == null ? Traj.GNSSPosition.getDefaultInstance() : initialPosition_;
} else {
- return barometerInfoBuilder_.getMessage();
+ return initialPositionBuilder_.getMessage();
}
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
- public Builder setBarometerInfo(Sensor_Info value) {
- if (barometerInfoBuilder_ == null) {
+ public Builder setInitialPosition(Traj.GNSSPosition value) {
+ if (initialPositionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- barometerInfo_ = value;
+ initialPosition_ = value;
onChanged();
} else {
- barometerInfoBuilder_.setMessage(value);
+ initialPositionBuilder_.setMessage(value);
}
return this;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
- public Builder setBarometerInfo(
- Sensor_Info.Builder builderForValue) {
- if (barometerInfoBuilder_ == null) {
- barometerInfo_ = builderForValue.build();
+ public Builder setInitialPosition(
+ Traj.GNSSPosition.Builder builderForValue) {
+ if (initialPositionBuilder_ == null) {
+ initialPosition_ = builderForValue.build();
onChanged();
} else {
- barometerInfoBuilder_.setMessage(builderForValue.build());
+ initialPositionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
- public Builder mergeBarometerInfo(Sensor_Info value) {
- if (barometerInfoBuilder_ == null) {
- if (barometerInfo_ != null) {
- barometerInfo_ =
- Sensor_Info.newBuilder(barometerInfo_).mergeFrom(value).buildPartial();
+ public Builder mergeInitialPosition(Traj.GNSSPosition value) {
+ if (initialPositionBuilder_ == null) {
+ if (initialPosition_ != null) {
+ initialPosition_ =
+ Traj.GNSSPosition.newBuilder(initialPosition_).mergeFrom(value).buildPartial();
} else {
- barometerInfo_ = value;
+ initialPosition_ = value;
}
onChanged();
} else {
- barometerInfoBuilder_.mergeFrom(value);
+ initialPositionBuilder_.mergeFrom(value);
}
return this;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
- public Builder clearBarometerInfo() {
- if (barometerInfoBuilder_ == null) {
- barometerInfo_ = null;
+ public Builder clearInitialPosition() {
+ if (initialPositionBuilder_ == null) {
+ initialPosition_ = null;
onChanged();
} else {
- barometerInfo_ = null;
- barometerInfoBuilder_ = null;
+ initialPosition_ = null;
+ initialPositionBuilder_ = null;
}
return this;
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
- public Sensor_Info.Builder getBarometerInfoBuilder() {
+ public Traj.GNSSPosition.Builder getInitialPositionBuilder() {
onChanged();
- return getBarometerInfoFieldBuilder().getBuilder();
+ return getInitialPositionFieldBuilder().getBuilder();
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
- public Sensor_InfoOrBuilder getBarometerInfoOrBuilder() {
- if (barometerInfoBuilder_ != null) {
- return barometerInfoBuilder_.getMessageOrBuilder();
+ public Traj.GNSSPositionOrBuilder getInitialPositionOrBuilder() {
+ if (initialPositionBuilder_ != null) {
+ return initialPositionBuilder_.getMessageOrBuilder();
} else {
- return barometerInfo_ == null ?
- Sensor_Info.getDefaultInstance() : barometerInfo_;
+ return initialPosition_ == null ?
+ Traj.GNSSPosition.getDefaultInstance() : initialPosition_;
}
}
/**
- * optional .Sensor_Info barometer_info = 16;
+ * .GNSSPosition initial_position = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>
- getBarometerInfoFieldBuilder() {
- if (barometerInfoBuilder_ == null) {
- barometerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>(
- getBarometerInfo(),
+ Traj.GNSSPosition, Traj.GNSSPosition.Builder, Traj.GNSSPositionOrBuilder>
+ getInitialPositionFieldBuilder() {
+ if (initialPositionBuilder_ == null) {
+ initialPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.GNSSPosition, Traj.GNSSPosition.Builder, Traj.GNSSPositionOrBuilder>(
+ getInitialPosition(),
getParentForChildren(),
isClean());
- barometerInfo_ = null;
+ initialPosition_ = null;
}
- return barometerInfoBuilder_;
+ return initialPositionBuilder_;
}
- private Sensor_Info lightSensorInfo_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder> lightSensorInfoBuilder_;
+ private java.util.Listoptional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public boolean hasLightSensorInfo() {
- return lightSensorInfoBuilder_ != null || lightSensorInfo_ != null;
+ public java.util.Listoptional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Sensor_Info getLightSensorInfo() {
- if (lightSensorInfoBuilder_ == null) {
- return lightSensorInfo_ == null ? Sensor_Info.getDefaultInstance() : lightSensorInfo_;
+ public int getCorrectedPositionsCount() {
+ if (correctedPositionsBuilder_ == null) {
+ return correctedPositions_.size();
} else {
- return lightSensorInfoBuilder_.getMessage();
+ return correctedPositionsBuilder_.getCount();
}
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Builder setLightSensorInfo(Sensor_Info value) {
- if (lightSensorInfoBuilder_ == null) {
+ public Traj.GNSSPosition getCorrectedPositions(int index) {
+ if (correctedPositionsBuilder_ == null) {
+ return correctedPositions_.get(index);
+ } else {
+ return correctedPositionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Builder setCorrectedPositions(
+ int index, Traj.GNSSPosition value) {
+ if (correctedPositionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- lightSensorInfo_ = value;
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.set(index, value);
onChanged();
} else {
- lightSensorInfoBuilder_.setMessage(value);
+ correctedPositionsBuilder_.setMessage(index, value);
}
-
return this;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Builder setLightSensorInfo(
- Sensor_Info.Builder builderForValue) {
- if (lightSensorInfoBuilder_ == null) {
- lightSensorInfo_ = builderForValue.build();
+ public Builder setCorrectedPositions(
+ int index, Traj.GNSSPosition.Builder builderForValue) {
+ if (correctedPositionsBuilder_ == null) {
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.set(index, builderForValue.build());
onChanged();
} else {
- lightSensorInfoBuilder_.setMessage(builderForValue.build());
+ correctedPositionsBuilder_.setMessage(index, builderForValue.build());
}
-
return this;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Builder mergeLightSensorInfo(Sensor_Info value) {
- if (lightSensorInfoBuilder_ == null) {
- if (lightSensorInfo_ != null) {
- lightSensorInfo_ =
- Sensor_Info.newBuilder(lightSensorInfo_).mergeFrom(value).buildPartial();
- } else {
- lightSensorInfo_ = value;
+ public Builder addCorrectedPositions(Traj.GNSSPosition value) {
+ if (correctedPositionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.add(value);
onChanged();
} else {
- lightSensorInfoBuilder_.mergeFrom(value);
+ correctedPositionsBuilder_.addMessage(value);
}
-
return this;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Builder clearLightSensorInfo() {
- if (lightSensorInfoBuilder_ == null) {
- lightSensorInfo_ = null;
+ public Builder addCorrectedPositions(
+ int index, Traj.GNSSPosition value) {
+ if (correctedPositionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.add(index, value);
onChanged();
} else {
- lightSensorInfo_ = null;
- lightSensorInfoBuilder_ = null;
+ correctedPositionsBuilder_.addMessage(index, value);
}
-
return this;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Sensor_Info.Builder getLightSensorInfoBuilder() {
-
- onChanged();
- return getLightSensorInfoFieldBuilder().getBuilder();
+ public Builder addCorrectedPositions(
+ Traj.GNSSPosition.Builder builderForValue) {
+ if (correctedPositionsBuilder_ == null) {
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ correctedPositionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- public Sensor_InfoOrBuilder getLightSensorInfoOrBuilder() {
- if (lightSensorInfoBuilder_ != null) {
- return lightSensorInfoBuilder_.getMessageOrBuilder();
+ public Builder addCorrectedPositions(
+ int index, Traj.GNSSPosition.Builder builderForValue) {
+ if (correctedPositionsBuilder_ == null) {
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.add(index, builderForValue.build());
+ onChanged();
} else {
- return lightSensorInfo_ == null ?
- Sensor_Info.getDefaultInstance() : lightSensorInfo_;
+ correctedPositionsBuilder_.addMessage(index, builderForValue.build());
}
+ return this;
}
/**
- * optional .Sensor_Info light_sensor_info = 17;
+ * repeated .GNSSPosition corrected_positions = 18;
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>
- getLightSensorInfoFieldBuilder() {
- if (lightSensorInfoBuilder_ == null) {
- lightSensorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- Sensor_Info, Sensor_Info.Builder, Sensor_InfoOrBuilder>(
- getLightSensorInfo(),
- getParentForChildren(),
- isClean());
- lightSensorInfo_ = null;
+ public Builder addAllCorrectedPositions(
+ java.lang.Iterable extends Traj.GNSSPosition> values) {
+ if (correctedPositionsBuilder_ == null) {
+ ensureCorrectedPositionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, correctedPositions_);
+ onChanged();
+ } else {
+ correctedPositionsBuilder_.addAllMessages(values);
}
- return lightSensorInfoBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Builder clearCorrectedPositions() {
+ if (correctedPositionsBuilder_ == null) {
+ correctedPositions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ onChanged();
+ } else {
+ correctedPositionsBuilder_.clear();
+ }
return this;
}
-
-
- // @@protoc_insertion_point(builder_scope:Trajectory)
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Builder removeCorrectedPositions(int index) {
+ if (correctedPositionsBuilder_ == null) {
+ ensureCorrectedPositionsIsMutable();
+ correctedPositions_.remove(index);
+ onChanged();
+ } else {
+ correctedPositionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Traj.GNSSPosition.Builder getCorrectedPositionsBuilder(
+ int index) {
+ return getCorrectedPositionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Traj.GNSSPositionOrBuilder getCorrectedPositionsOrBuilder(
+ int index) {
+ if (correctedPositionsBuilder_ == null) {
+ return correctedPositions_.get(index); } else {
+ return correctedPositionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public java.util.List extends Traj.GNSSPositionOrBuilder>
+ getCorrectedPositionsOrBuilderList() {
+ if (correctedPositionsBuilder_ != null) {
+ return correctedPositionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(correctedPositions_);
+ }
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Traj.GNSSPosition.Builder addCorrectedPositionsBuilder() {
+ return getCorrectedPositionsFieldBuilder().addBuilder(
+ Traj.GNSSPosition.getDefaultInstance());
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public Traj.GNSSPosition.Builder addCorrectedPositionsBuilder(
+ int index) {
+ return getCorrectedPositionsFieldBuilder().addBuilder(
+ index, Traj.GNSSPosition.getDefaultInstance());
+ }
+ /**
+ * repeated .GNSSPosition corrected_positions = 18;
+ */
+ public java.util.List.SensorInfo accelerometer_info = 19;
+ * @return Whether the accelerometerInfo field is set.
+ */
+ public boolean hasAccelerometerInfo() {
+ return accelerometerInfoBuilder_ != null || accelerometerInfo_ != null;
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ * @return The accelerometerInfo.
+ */
+ public Traj.SensorInfo getAccelerometerInfo() {
+ if (accelerometerInfoBuilder_ == null) {
+ return accelerometerInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : accelerometerInfo_;
+ } else {
+ return accelerometerInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ public Builder setAccelerometerInfo(Traj.SensorInfo value) {
+ if (accelerometerInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ accelerometerInfo_ = value;
+ onChanged();
+ } else {
+ accelerometerInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ public Builder setAccelerometerInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (accelerometerInfoBuilder_ == null) {
+ accelerometerInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ accelerometerInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ public Builder mergeAccelerometerInfo(Traj.SensorInfo value) {
+ if (accelerometerInfoBuilder_ == null) {
+ if (accelerometerInfo_ != null) {
+ accelerometerInfo_ =
+ Traj.SensorInfo.newBuilder(accelerometerInfo_).mergeFrom(value).buildPartial();
+ } else {
+ accelerometerInfo_ = value;
+ }
+ onChanged();
+ } else {
+ accelerometerInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ public Builder clearAccelerometerInfo() {
+ if (accelerometerInfoBuilder_ == null) {
+ accelerometerInfo_ = null;
+ onChanged();
+ } else {
+ accelerometerInfo_ = null;
+ accelerometerInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ public Traj.SensorInfo.Builder getAccelerometerInfoBuilder() {
+
+ onChanged();
+ return getAccelerometerInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ public Traj.SensorInfoOrBuilder getAccelerometerInfoOrBuilder() {
+ if (accelerometerInfoBuilder_ != null) {
+ return accelerometerInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return accelerometerInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : accelerometerInfo_;
+ }
+ }
+ /**
+ * .SensorInfo accelerometer_info = 19;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getAccelerometerInfoFieldBuilder() {
+ if (accelerometerInfoBuilder_ == null) {
+ accelerometerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getAccelerometerInfo(),
+ getParentForChildren(),
+ isClean());
+ accelerometerInfo_ = null;
+ }
+ return accelerometerInfoBuilder_;
+ }
+
+ private Traj.SensorInfo gyroscopeInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder> gyroscopeInfoBuilder_;
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ * @return Whether the gyroscopeInfo field is set.
+ */
+ public boolean hasGyroscopeInfo() {
+ return gyroscopeInfoBuilder_ != null || gyroscopeInfo_ != null;
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ * @return The gyroscopeInfo.
+ */
+ public Traj.SensorInfo getGyroscopeInfo() {
+ if (gyroscopeInfoBuilder_ == null) {
+ return gyroscopeInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : gyroscopeInfo_;
+ } else {
+ return gyroscopeInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ public Builder setGyroscopeInfo(Traj.SensorInfo value) {
+ if (gyroscopeInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gyroscopeInfo_ = value;
+ onChanged();
+ } else {
+ gyroscopeInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ public Builder setGyroscopeInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (gyroscopeInfoBuilder_ == null) {
+ gyroscopeInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ gyroscopeInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ public Builder mergeGyroscopeInfo(Traj.SensorInfo value) {
+ if (gyroscopeInfoBuilder_ == null) {
+ if (gyroscopeInfo_ != null) {
+ gyroscopeInfo_ =
+ Traj.SensorInfo.newBuilder(gyroscopeInfo_).mergeFrom(value).buildPartial();
+ } else {
+ gyroscopeInfo_ = value;
+ }
+ onChanged();
+ } else {
+ gyroscopeInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ public Builder clearGyroscopeInfo() {
+ if (gyroscopeInfoBuilder_ == null) {
+ gyroscopeInfo_ = null;
+ onChanged();
+ } else {
+ gyroscopeInfo_ = null;
+ gyroscopeInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ public Traj.SensorInfo.Builder getGyroscopeInfoBuilder() {
+
+ onChanged();
+ return getGyroscopeInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ public Traj.SensorInfoOrBuilder getGyroscopeInfoOrBuilder() {
+ if (gyroscopeInfoBuilder_ != null) {
+ return gyroscopeInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return gyroscopeInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : gyroscopeInfo_;
+ }
+ }
+ /**
+ * .SensorInfo gyroscope_info = 20;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getGyroscopeInfoFieldBuilder() {
+ if (gyroscopeInfoBuilder_ == null) {
+ gyroscopeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getGyroscopeInfo(),
+ getParentForChildren(),
+ isClean());
+ gyroscopeInfo_ = null;
+ }
+ return gyroscopeInfoBuilder_;
+ }
+
+ private Traj.SensorInfo rotationVectorInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder> rotationVectorInfoBuilder_;
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ * @return Whether the rotationVectorInfo field is set.
+ */
+ public boolean hasRotationVectorInfo() {
+ return rotationVectorInfoBuilder_ != null || rotationVectorInfo_ != null;
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ * @return The rotationVectorInfo.
+ */
+ public Traj.SensorInfo getRotationVectorInfo() {
+ if (rotationVectorInfoBuilder_ == null) {
+ return rotationVectorInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : rotationVectorInfo_;
+ } else {
+ return rotationVectorInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ public Builder setRotationVectorInfo(Traj.SensorInfo value) {
+ if (rotationVectorInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rotationVectorInfo_ = value;
+ onChanged();
+ } else {
+ rotationVectorInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ public Builder setRotationVectorInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (rotationVectorInfoBuilder_ == null) {
+ rotationVectorInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ rotationVectorInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ public Builder mergeRotationVectorInfo(Traj.SensorInfo value) {
+ if (rotationVectorInfoBuilder_ == null) {
+ if (rotationVectorInfo_ != null) {
+ rotationVectorInfo_ =
+ Traj.SensorInfo.newBuilder(rotationVectorInfo_).mergeFrom(value).buildPartial();
+ } else {
+ rotationVectorInfo_ = value;
+ }
+ onChanged();
+ } else {
+ rotationVectorInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ public Builder clearRotationVectorInfo() {
+ if (rotationVectorInfoBuilder_ == null) {
+ rotationVectorInfo_ = null;
+ onChanged();
+ } else {
+ rotationVectorInfo_ = null;
+ rotationVectorInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ public Traj.SensorInfo.Builder getRotationVectorInfoBuilder() {
+
+ onChanged();
+ return getRotationVectorInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ public Traj.SensorInfoOrBuilder getRotationVectorInfoOrBuilder() {
+ if (rotationVectorInfoBuilder_ != null) {
+ return rotationVectorInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return rotationVectorInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : rotationVectorInfo_;
+ }
+ }
+ /**
+ * .SensorInfo rotation_vector_info = 21;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getRotationVectorInfoFieldBuilder() {
+ if (rotationVectorInfoBuilder_ == null) {
+ rotationVectorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getRotationVectorInfo(),
+ getParentForChildren(),
+ isClean());
+ rotationVectorInfo_ = null;
+ }
+ return rotationVectorInfoBuilder_;
+ }
+
+ private Traj.SensorInfo magnetometerInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder> magnetometerInfoBuilder_;
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ * @return Whether the magnetometerInfo field is set.
+ */
+ public boolean hasMagnetometerInfo() {
+ return magnetometerInfoBuilder_ != null || magnetometerInfo_ != null;
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ * @return The magnetometerInfo.
+ */
+ public Traj.SensorInfo getMagnetometerInfo() {
+ if (magnetometerInfoBuilder_ == null) {
+ return magnetometerInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : magnetometerInfo_;
+ } else {
+ return magnetometerInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ public Builder setMagnetometerInfo(Traj.SensorInfo value) {
+ if (magnetometerInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ magnetometerInfo_ = value;
+ onChanged();
+ } else {
+ magnetometerInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ public Builder setMagnetometerInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (magnetometerInfoBuilder_ == null) {
+ magnetometerInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ magnetometerInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ public Builder mergeMagnetometerInfo(Traj.SensorInfo value) {
+ if (magnetometerInfoBuilder_ == null) {
+ if (magnetometerInfo_ != null) {
+ magnetometerInfo_ =
+ Traj.SensorInfo.newBuilder(magnetometerInfo_).mergeFrom(value).buildPartial();
+ } else {
+ magnetometerInfo_ = value;
+ }
+ onChanged();
+ } else {
+ magnetometerInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ public Builder clearMagnetometerInfo() {
+ if (magnetometerInfoBuilder_ == null) {
+ magnetometerInfo_ = null;
+ onChanged();
+ } else {
+ magnetometerInfo_ = null;
+ magnetometerInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ public Traj.SensorInfo.Builder getMagnetometerInfoBuilder() {
+
+ onChanged();
+ return getMagnetometerInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ public Traj.SensorInfoOrBuilder getMagnetometerInfoOrBuilder() {
+ if (magnetometerInfoBuilder_ != null) {
+ return magnetometerInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return magnetometerInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : magnetometerInfo_;
+ }
+ }
+ /**
+ * .SensorInfo magnetometer_info = 22;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getMagnetometerInfoFieldBuilder() {
+ if (magnetometerInfoBuilder_ == null) {
+ magnetometerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getMagnetometerInfo(),
+ getParentForChildren(),
+ isClean());
+ magnetometerInfo_ = null;
+ }
+ return magnetometerInfoBuilder_;
+ }
+
+ private Traj.SensorInfo barometerInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder> barometerInfoBuilder_;
+ /**
+ * .SensorInfo barometer_info = 23;
+ * @return Whether the barometerInfo field is set.
+ */
+ public boolean hasBarometerInfo() {
+ return barometerInfoBuilder_ != null || barometerInfo_ != null;
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ * @return The barometerInfo.
+ */
+ public Traj.SensorInfo getBarometerInfo() {
+ if (barometerInfoBuilder_ == null) {
+ return barometerInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : barometerInfo_;
+ } else {
+ return barometerInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ public Builder setBarometerInfo(Traj.SensorInfo value) {
+ if (barometerInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ barometerInfo_ = value;
+ onChanged();
+ } else {
+ barometerInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ public Builder setBarometerInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (barometerInfoBuilder_ == null) {
+ barometerInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ barometerInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ public Builder mergeBarometerInfo(Traj.SensorInfo value) {
+ if (barometerInfoBuilder_ == null) {
+ if (barometerInfo_ != null) {
+ barometerInfo_ =
+ Traj.SensorInfo.newBuilder(barometerInfo_).mergeFrom(value).buildPartial();
+ } else {
+ barometerInfo_ = value;
+ }
+ onChanged();
+ } else {
+ barometerInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ public Builder clearBarometerInfo() {
+ if (barometerInfoBuilder_ == null) {
+ barometerInfo_ = null;
+ onChanged();
+ } else {
+ barometerInfo_ = null;
+ barometerInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ public Traj.SensorInfo.Builder getBarometerInfoBuilder() {
+
+ onChanged();
+ return getBarometerInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ public Traj.SensorInfoOrBuilder getBarometerInfoOrBuilder() {
+ if (barometerInfoBuilder_ != null) {
+ return barometerInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return barometerInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : barometerInfo_;
+ }
+ }
+ /**
+ * .SensorInfo barometer_info = 23;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getBarometerInfoFieldBuilder() {
+ if (barometerInfoBuilder_ == null) {
+ barometerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getBarometerInfo(),
+ getParentForChildren(),
+ isClean());
+ barometerInfo_ = null;
+ }
+ return barometerInfoBuilder_;
+ }
+
+ private Traj.SensorInfo lightSensorInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder> lightSensorInfoBuilder_;
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ * @return Whether the lightSensorInfo field is set.
+ */
+ public boolean hasLightSensorInfo() {
+ return lightSensorInfoBuilder_ != null || lightSensorInfo_ != null;
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ * @return The lightSensorInfo.
+ */
+ public Traj.SensorInfo getLightSensorInfo() {
+ if (lightSensorInfoBuilder_ == null) {
+ return lightSensorInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : lightSensorInfo_;
+ } else {
+ return lightSensorInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ public Builder setLightSensorInfo(Traj.SensorInfo value) {
+ if (lightSensorInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ lightSensorInfo_ = value;
+ onChanged();
+ } else {
+ lightSensorInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ public Builder setLightSensorInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (lightSensorInfoBuilder_ == null) {
+ lightSensorInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ lightSensorInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ public Builder mergeLightSensorInfo(Traj.SensorInfo value) {
+ if (lightSensorInfoBuilder_ == null) {
+ if (lightSensorInfo_ != null) {
+ lightSensorInfo_ =
+ Traj.SensorInfo.newBuilder(lightSensorInfo_).mergeFrom(value).buildPartial();
+ } else {
+ lightSensorInfo_ = value;
+ }
+ onChanged();
+ } else {
+ lightSensorInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ public Builder clearLightSensorInfo() {
+ if (lightSensorInfoBuilder_ == null) {
+ lightSensorInfo_ = null;
+ onChanged();
+ } else {
+ lightSensorInfo_ = null;
+ lightSensorInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ public Traj.SensorInfo.Builder getLightSensorInfoBuilder() {
+
+ onChanged();
+ return getLightSensorInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ public Traj.SensorInfoOrBuilder getLightSensorInfoOrBuilder() {
+ if (lightSensorInfoBuilder_ != null) {
+ return lightSensorInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return lightSensorInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : lightSensorInfo_;
+ }
+ }
+ /**
+ * .SensorInfo light_sensor_info = 24;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getLightSensorInfoFieldBuilder() {
+ if (lightSensorInfoBuilder_ == null) {
+ lightSensorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getLightSensorInfo(),
+ getParentForChildren(),
+ isClean());
+ lightSensorInfo_ = null;
+ }
+ return lightSensorInfoBuilder_;
+ }
+
+ private Traj.SensorInfo proximityInfo_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder> proximityInfoBuilder_;
+ /**
+ * .SensorInfo proximity_info = 25;
+ * @return Whether the proximityInfo field is set.
+ */
+ public boolean hasProximityInfo() {
+ return proximityInfoBuilder_ != null || proximityInfo_ != null;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ * @return The proximityInfo.
+ */
+ public Traj.SensorInfo getProximityInfo() {
+ if (proximityInfoBuilder_ == null) {
+ return proximityInfo_ == null ? Traj.SensorInfo.getDefaultInstance() : proximityInfo_;
+ } else {
+ return proximityInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ public Builder setProximityInfo(Traj.SensorInfo value) {
+ if (proximityInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ proximityInfo_ = value;
+ onChanged();
+ } else {
+ proximityInfoBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ public Builder setProximityInfo(
+ Traj.SensorInfo.Builder builderForValue) {
+ if (proximityInfoBuilder_ == null) {
+ proximityInfo_ = builderForValue.build();
+ onChanged();
+ } else {
+ proximityInfoBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ public Builder mergeProximityInfo(Traj.SensorInfo value) {
+ if (proximityInfoBuilder_ == null) {
+ if (proximityInfo_ != null) {
+ proximityInfo_ =
+ Traj.SensorInfo.newBuilder(proximityInfo_).mergeFrom(value).buildPartial();
+ } else {
+ proximityInfo_ = value;
+ }
+ onChanged();
+ } else {
+ proximityInfoBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ public Builder clearProximityInfo() {
+ if (proximityInfoBuilder_ == null) {
+ proximityInfo_ = null;
+ onChanged();
+ } else {
+ proximityInfo_ = null;
+ proximityInfoBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ public Traj.SensorInfo.Builder getProximityInfoBuilder() {
+
+ onChanged();
+ return getProximityInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ public Traj.SensorInfoOrBuilder getProximityInfoOrBuilder() {
+ if (proximityInfoBuilder_ != null) {
+ return proximityInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return proximityInfo_ == null ?
+ Traj.SensorInfo.getDefaultInstance() : proximityInfo_;
+ }
+ }
+ /**
+ * .SensorInfo proximity_info = 25;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>
+ getProximityInfoFieldBuilder() {
+ if (proximityInfoBuilder_ == null) {
+ proximityInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.SensorInfo, Traj.SensorInfo.Builder, Traj.SensorInfoOrBuilder>(
+ getProximityInfo(),
+ getParentForChildren(),
+ isClean());
+ proximityInfo_ = null;
+ }
+ return proximityInfoBuilder_;
+ }
+
+ private java.util.Listrepeated .GNSSPosition test_points = 26;
+ */
+ public java.util.Listrepeated .GNSSPosition test_points = 26;
+ */
+ public int getTestPointsCount() {
+ if (testPointsBuilder_ == null) {
+ return testPoints_.size();
+ } else {
+ return testPointsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Traj.GNSSPosition getTestPoints(int index) {
+ if (testPointsBuilder_ == null) {
+ return testPoints_.get(index);
+ } else {
+ return testPointsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder setTestPoints(
+ int index, Traj.GNSSPosition value) {
+ if (testPointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTestPointsIsMutable();
+ testPoints_.set(index, value);
+ onChanged();
+ } else {
+ testPointsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder setTestPoints(
+ int index, Traj.GNSSPosition.Builder builderForValue) {
+ if (testPointsBuilder_ == null) {
+ ensureTestPointsIsMutable();
+ testPoints_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ testPointsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder addTestPoints(Traj.GNSSPosition value) {
+ if (testPointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTestPointsIsMutable();
+ testPoints_.add(value);
+ onChanged();
+ } else {
+ testPointsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder addTestPoints(
+ int index, Traj.GNSSPosition value) {
+ if (testPointsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTestPointsIsMutable();
+ testPoints_.add(index, value);
+ onChanged();
+ } else {
+ testPointsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder addTestPoints(
+ Traj.GNSSPosition.Builder builderForValue) {
+ if (testPointsBuilder_ == null) {
+ ensureTestPointsIsMutable();
+ testPoints_.add(builderForValue.build());
+ onChanged();
+ } else {
+ testPointsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder addTestPoints(
+ int index, Traj.GNSSPosition.Builder builderForValue) {
+ if (testPointsBuilder_ == null) {
+ ensureTestPointsIsMutable();
+ testPoints_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ testPointsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder addAllTestPoints(
+ java.lang.Iterable extends Traj.GNSSPosition> values) {
+ if (testPointsBuilder_ == null) {
+ ensureTestPointsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, testPoints_);
+ onChanged();
+ } else {
+ testPointsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder clearTestPoints() {
+ if (testPointsBuilder_ == null) {
+ testPoints_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00002000);
+ onChanged();
+ } else {
+ testPointsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Builder removeTestPoints(int index) {
+ if (testPointsBuilder_ == null) {
+ ensureTestPointsIsMutable();
+ testPoints_.remove(index);
+ onChanged();
+ } else {
+ testPointsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Traj.GNSSPosition.Builder getTestPointsBuilder(
+ int index) {
+ return getTestPointsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Traj.GNSSPositionOrBuilder getTestPointsOrBuilder(
+ int index) {
+ if (testPointsBuilder_ == null) {
+ return testPoints_.get(index); } else {
+ return testPointsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public java.util.List extends Traj.GNSSPositionOrBuilder>
+ getTestPointsOrBuilderList() {
+ if (testPointsBuilder_ != null) {
+ return testPointsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(testPoints_);
+ }
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Traj.GNSSPosition.Builder addTestPointsBuilder() {
+ return getTestPointsFieldBuilder().addBuilder(
+ Traj.GNSSPosition.getDefaultInstance());
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public Traj.GNSSPosition.Builder addTestPointsBuilder(
+ int index) {
+ return getTestPointsFieldBuilder().addBuilder(
+ index, Traj.GNSSPosition.getDefaultInstance());
+ }
+ /**
+ * repeated .GNSSPosition test_points = 26;
+ */
+ public java.util.List+ * milliseconds from the start_timestamp + *+ * + *
int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ * + * Both in metres. You should implement an algorithm to estimate + * these values. The values are always relative to your start point + * so the first entry should always be x = 0.0, y = 0.0 + *+ * + *
float x = 2;
+ * @return The x.
+ */
+ float getX();
+
+ /**
+ * float y = 3;
+ * @return The y.
+ */
+ float getY();
+ }
+ /**
+ * Protobuf type {@code RelativePosition}
+ */
+ public static final class RelativePosition extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:RelativePosition)
+ RelativePositionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RelativePosition.newBuilder() to construct.
+ private RelativePosition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private RelativePosition() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new RelativePosition();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private RelativePosition(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ relativeTimestamp_ = input.readInt64();
+ break;
+ }
+ case 21: {
+
+ x_ = input.readFloat();
+ break;
+ }
+ case 29: {
+
+ y_ = input.readFloat();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return Traj.internal_static_RelativePosition_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Traj.internal_static_RelativePosition_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Traj.RelativePosition.class, Traj.RelativePosition.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_;
+ /**
+ * + * milliseconds from the start_timestamp + *+ * + *
int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int X_FIELD_NUMBER = 2;
+ private float x_;
+ /**
+ * + * Both in metres. You should implement an algorithm to estimate + * these values. The values are always relative to your start point + * so the first entry should always be x = 0.0, y = 0.0 + *+ * + *
float x = 2;
+ * @return The x.
+ */
+ @java.lang.Override
+ public float getX() {
+ return x_;
+ }
+
+ public static final int Y_FIELD_NUMBER = 3;
+ private float y_;
+ /**
+ * float y = 3;
+ * @return The y.
+ */
+ @java.lang.Override
+ public float getY() {
+ return y_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(x_) != 0) {
+ output.writeFloat(2, x_);
+ }
+ if (java.lang.Float.floatToRawIntBits(y_) != 0) {
+ output.writeFloat(3, y_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(x_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, x_);
+ }
+ if (java.lang.Float.floatToRawIntBits(y_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(3, y_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Traj.RelativePosition)) {
+ return super.equals(obj);
+ }
+ Traj.RelativePosition other = (Traj.RelativePosition) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getX())
+ != java.lang.Float.floatToIntBits(
+ other.getX())) return false;
+ if (java.lang.Float.floatToIntBits(getY())
+ != java.lang.Float.floatToIntBits(
+ other.getY())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + X_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getX());
+ hash = (37 * hash) + Y_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getY());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Traj.RelativePosition parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.RelativePosition parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.RelativePosition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.RelativePosition parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.RelativePosition parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.RelativePosition parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.RelativePosition parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.RelativePosition parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.RelativePosition parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Traj.RelativePosition parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.RelativePosition parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.RelativePosition parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Traj.RelativePosition prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code RelativePosition}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * milliseconds from the start_timestamp + *+ * + *
int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * + * milliseconds from the start_timestamp + *+ * + *
int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * milliseconds from the start_timestamp + *+ * + *
int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float x_ ;
+ /**
+ * + * Both in metres. You should implement an algorithm to estimate + * these values. The values are always relative to your start point + * so the first entry should always be x = 0.0, y = 0.0 + *+ * + *
float x = 2;
+ * @return The x.
+ */
+ @java.lang.Override
+ public float getX() {
+ return x_;
+ }
+ /**
+ * + * Both in metres. You should implement an algorithm to estimate + * these values. The values are always relative to your start point + * so the first entry should always be x = 0.0, y = 0.0 + *+ * + *
float x = 2;
+ * @param value The x to set.
+ * @return This builder for chaining.
+ */
+ public Builder setX(float value) {
+
+ x_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Both in metres. You should implement an algorithm to estimate + * these values. The values are always relative to your start point + * so the first entry should always be x = 0.0, y = 0.0 + *+ * + *
float x = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearX() {
+
+ x_ = 0F;
+ onChanged();
+ return this;
+ }
+
+ private float y_ ;
+ /**
+ * float y = 3;
+ * @return The y.
+ */
+ @java.lang.Override
+ public float getY() {
+ return y_;
+ }
+ /**
+ * float y = 3;
+ * @param value The y to set.
+ * @return This builder for chaining.
+ */
+ public Builder setY(float value) {
+
+ y_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * float y = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearY() {
+
+ y_ = 0F;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:RelativePosition)
+ }
+
+ // @@protoc_insertion_point(class_scope:RelativePosition)
+ private static final Traj.RelativePosition DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Traj.RelativePosition();
+ }
+
+ public static Traj.RelativePosition getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * milliseconds + *+ * + *
int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ * @return Whether the acc field is set.
+ */
+ boolean hasAcc();
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ * @return The acc.
+ */
+ Traj.Vector3 getAcc();
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ Traj.Vector3OrBuilder getAccOrBuilder();
+
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ * @return Whether the gyr field is set.
+ */
+ boolean hasGyr();
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ * @return The gyr.
+ */
+ Traj.Vector3 getGyr();
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ Traj.Vector3OrBuilder getGyrOrBuilder();
+
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ * @return Whether the rotationVector field is set.
+ */
+ boolean hasRotationVector();
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ * @return The rotationVector.
+ */
+ Traj.Quaternion getRotationVector();
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ Traj.QuaternionOrBuilder getRotationVectorOrBuilder();
+
+ /**
+ * + * Number of steps so far + *+ * + *
int32 step_count = 5;
+ * @return The stepCount.
+ */
+ int getStepCount();
+ }
+ /**
+ * Protobuf type {@code IMUReading}
+ */
+ public static final class IMUReading extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:IMUReading)
+ IMUReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IMUReading.newBuilder() to construct.
+ private IMUReading(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IMUReading() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IMUReading();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private IMUReading(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ relativeTimestamp_ = input.readInt64();
+ break;
+ }
+ case 18: {
+ Traj.Vector3.Builder subBuilder = null;
+ if (acc_ != null) {
+ subBuilder = acc_.toBuilder();
+ }
+ acc_ = input.readMessage(Traj.Vector3.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(acc_);
+ acc_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ Traj.Vector3.Builder subBuilder = null;
+ if (gyr_ != null) {
+ subBuilder = gyr_.toBuilder();
+ }
+ gyr_ = input.readMessage(Traj.Vector3.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(gyr_);
+ gyr_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 34: {
+ Traj.Quaternion.Builder subBuilder = null;
+ if (rotationVector_ != null) {
+ subBuilder = rotationVector_.toBuilder();
+ }
+ rotationVector_ = input.readMessage(Traj.Quaternion.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(rotationVector_);
+ rotationVector_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 40: {
+
+ stepCount_ = input.readInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return Traj.internal_static_IMUReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Traj.internal_static_IMUReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Traj.IMUReading.class, Traj.IMUReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_;
+ /**
+ * + * milliseconds + *+ * + *
int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int ACC_FIELD_NUMBER = 2;
+ private Traj.Vector3 acc_;
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ * @return Whether the acc field is set.
+ */
+ @java.lang.Override
+ public boolean hasAcc() {
+ return acc_ != null;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ * @return The acc.
+ */
+ @java.lang.Override
+ public Traj.Vector3 getAcc() {
+ return acc_ == null ? Traj.Vector3.getDefaultInstance() : acc_;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ @java.lang.Override
+ public Traj.Vector3OrBuilder getAccOrBuilder() {
+ return getAcc();
+ }
+
+ public static final int GYR_FIELD_NUMBER = 3;
+ private Traj.Vector3 gyr_;
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ * @return Whether the gyr field is set.
+ */
+ @java.lang.Override
+ public boolean hasGyr() {
+ return gyr_ != null;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ * @return The gyr.
+ */
+ @java.lang.Override
+ public Traj.Vector3 getGyr() {
+ return gyr_ == null ? Traj.Vector3.getDefaultInstance() : gyr_;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ @java.lang.Override
+ public Traj.Vector3OrBuilder getGyrOrBuilder() {
+ return getGyr();
+ }
+
+ public static final int ROTATION_VECTOR_FIELD_NUMBER = 4;
+ private Traj.Quaternion rotationVector_;
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ * @return Whether the rotationVector field is set.
+ */
+ @java.lang.Override
+ public boolean hasRotationVector() {
+ return rotationVector_ != null;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ * @return The rotationVector.
+ */
+ @java.lang.Override
+ public Traj.Quaternion getRotationVector() {
+ return rotationVector_ == null ? Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ @java.lang.Override
+ public Traj.QuaternionOrBuilder getRotationVectorOrBuilder() {
+ return getRotationVector();
+ }
+
+ public static final int STEP_COUNT_FIELD_NUMBER = 5;
+ private int stepCount_;
+ /**
+ * + * Number of steps so far + *+ * + *
int32 step_count = 5;
+ * @return The stepCount.
+ */
+ @java.lang.Override
+ public int getStepCount() {
+ return stepCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (acc_ != null) {
+ output.writeMessage(2, getAcc());
+ }
+ if (gyr_ != null) {
+ output.writeMessage(3, getGyr());
+ }
+ if (rotationVector_ != null) {
+ output.writeMessage(4, getRotationVector());
+ }
+ if (stepCount_ != 0) {
+ output.writeInt32(5, stepCount_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (acc_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getAcc());
+ }
+ if (gyr_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getGyr());
+ }
+ if (rotationVector_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getRotationVector());
+ }
+ if (stepCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(5, stepCount_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Traj.IMUReading)) {
+ return super.equals(obj);
+ }
+ Traj.IMUReading other = (Traj.IMUReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (hasAcc() != other.hasAcc()) return false;
+ if (hasAcc()) {
+ if (!getAcc()
+ .equals(other.getAcc())) return false;
+ }
+ if (hasGyr() != other.hasGyr()) return false;
+ if (hasGyr()) {
+ if (!getGyr()
+ .equals(other.getGyr())) return false;
+ }
+ if (hasRotationVector() != other.hasRotationVector()) return false;
+ if (hasRotationVector()) {
+ if (!getRotationVector()
+ .equals(other.getRotationVector())) return false;
+ }
+ if (getStepCount()
+ != other.getStepCount()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ if (hasAcc()) {
+ hash = (37 * hash) + ACC_FIELD_NUMBER;
+ hash = (53 * hash) + getAcc().hashCode();
+ }
+ if (hasGyr()) {
+ hash = (37 * hash) + GYR_FIELD_NUMBER;
+ hash = (53 * hash) + getGyr().hashCode();
+ }
+ if (hasRotationVector()) {
+ hash = (37 * hash) + ROTATION_VECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getRotationVector().hashCode();
+ }
+ hash = (37 * hash) + STEP_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getStepCount();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Traj.IMUReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.IMUReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.IMUReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.IMUReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.IMUReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.IMUReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.IMUReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.IMUReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.IMUReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Traj.IMUReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.IMUReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.IMUReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Traj.IMUReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code IMUReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder+ * milliseconds + *+ * + *
int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * + * milliseconds + *+ * + *
int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * milliseconds + *+ * + *
int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private Traj.Vector3 acc_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder> accBuilder_;
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ * @return Whether the acc field is set.
+ */
+ public boolean hasAcc() {
+ return accBuilder_ != null || acc_ != null;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ * @return The acc.
+ */
+ public Traj.Vector3 getAcc() {
+ if (accBuilder_ == null) {
+ return acc_ == null ? Traj.Vector3.getDefaultInstance() : acc_;
+ } else {
+ return accBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ public Builder setAcc(Traj.Vector3 value) {
+ if (accBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ acc_ = value;
+ onChanged();
+ } else {
+ accBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ public Builder setAcc(
+ Traj.Vector3.Builder builderForValue) {
+ if (accBuilder_ == null) {
+ acc_ = builderForValue.build();
+ onChanged();
+ } else {
+ accBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ public Builder mergeAcc(Traj.Vector3 value) {
+ if (accBuilder_ == null) {
+ if (acc_ != null) {
+ acc_ =
+ Traj.Vector3.newBuilder(acc_).mergeFrom(value).buildPartial();
+ } else {
+ acc_ = value;
+ }
+ onChanged();
+ } else {
+ accBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ public Builder clearAcc() {
+ if (accBuilder_ == null) {
+ acc_ = null;
+ onChanged();
+ } else {
+ acc_ = null;
+ accBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ public Traj.Vector3.Builder getAccBuilder() {
+
+ onChanged();
+ return getAccFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ public Traj.Vector3OrBuilder getAccOrBuilder() {
+ if (accBuilder_ != null) {
+ return accBuilder_.getMessageOrBuilder();
+ } else {
+ return acc_ == null ?
+ Traj.Vector3.getDefaultInstance() : acc_;
+ }
+ }
+ /**
+ * + * Accelerometer [m/s^2] + *+ * + *
.Vector3 acc = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder>
+ getAccFieldBuilder() {
+ if (accBuilder_ == null) {
+ accBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder>(
+ getAcc(),
+ getParentForChildren(),
+ isClean());
+ acc_ = null;
+ }
+ return accBuilder_;
+ }
+
+ private Traj.Vector3 gyr_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder> gyrBuilder_;
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ * @return Whether the gyr field is set.
+ */
+ public boolean hasGyr() {
+ return gyrBuilder_ != null || gyr_ != null;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ * @return The gyr.
+ */
+ public Traj.Vector3 getGyr() {
+ if (gyrBuilder_ == null) {
+ return gyr_ == null ? Traj.Vector3.getDefaultInstance() : gyr_;
+ } else {
+ return gyrBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ public Builder setGyr(Traj.Vector3 value) {
+ if (gyrBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ gyr_ = value;
+ onChanged();
+ } else {
+ gyrBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ public Builder setGyr(
+ Traj.Vector3.Builder builderForValue) {
+ if (gyrBuilder_ == null) {
+ gyr_ = builderForValue.build();
+ onChanged();
+ } else {
+ gyrBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ public Builder mergeGyr(Traj.Vector3 value) {
+ if (gyrBuilder_ == null) {
+ if (gyr_ != null) {
+ gyr_ =
+ Traj.Vector3.newBuilder(gyr_).mergeFrom(value).buildPartial();
+ } else {
+ gyr_ = value;
+ }
+ onChanged();
+ } else {
+ gyrBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ public Builder clearGyr() {
+ if (gyrBuilder_ == null) {
+ gyr_ = null;
+ onChanged();
+ } else {
+ gyr_ = null;
+ gyrBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ public Traj.Vector3.Builder getGyrBuilder() {
+
+ onChanged();
+ return getGyrFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ public Traj.Vector3OrBuilder getGyrOrBuilder() {
+ if (gyrBuilder_ != null) {
+ return gyrBuilder_.getMessageOrBuilder();
+ } else {
+ return gyr_ == null ?
+ Traj.Vector3.getDefaultInstance() : gyr_;
+ }
+ }
+ /**
+ * + * Gyroscope [radians/s] + *+ * + *
.Vector3 gyr = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder>
+ getGyrFieldBuilder() {
+ if (gyrBuilder_ == null) {
+ gyrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder>(
+ getGyr(),
+ getParentForChildren(),
+ isClean());
+ gyr_ = null;
+ }
+ return gyrBuilder_;
+ }
+
+ private Traj.Quaternion rotationVector_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Quaternion, Traj.Quaternion.Builder, Traj.QuaternionOrBuilder> rotationVectorBuilder_;
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ * @return Whether the rotationVector field is set.
+ */
+ public boolean hasRotationVector() {
+ return rotationVectorBuilder_ != null || rotationVector_ != null;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ * @return The rotationVector.
+ */
+ public Traj.Quaternion getRotationVector() {
+ if (rotationVectorBuilder_ == null) {
+ return rotationVector_ == null ? Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ } else {
+ return rotationVectorBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ public Builder setRotationVector(Traj.Quaternion value) {
+ if (rotationVectorBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ rotationVector_ = value;
+ onChanged();
+ } else {
+ rotationVectorBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ public Builder setRotationVector(
+ Traj.Quaternion.Builder builderForValue) {
+ if (rotationVectorBuilder_ == null) {
+ rotationVector_ = builderForValue.build();
+ onChanged();
+ } else {
+ rotationVectorBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ public Builder mergeRotationVector(Traj.Quaternion value) {
+ if (rotationVectorBuilder_ == null) {
+ if (rotationVector_ != null) {
+ rotationVector_ =
+ Traj.Quaternion.newBuilder(rotationVector_).mergeFrom(value).buildPartial();
+ } else {
+ rotationVector_ = value;
+ }
+ onChanged();
+ } else {
+ rotationVectorBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ public Builder clearRotationVector() {
+ if (rotationVectorBuilder_ == null) {
+ rotationVector_ = null;
+ onChanged();
+ } else {
+ rotationVector_ = null;
+ rotationVectorBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ public Traj.Quaternion.Builder getRotationVectorBuilder() {
+
+ onChanged();
+ return getRotationVectorFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ public Traj.QuaternionOrBuilder getRotationVectorOrBuilder() {
+ if (rotationVectorBuilder_ != null) {
+ return rotationVectorBuilder_.getMessageOrBuilder();
+ } else {
+ return rotationVector_ == null ?
+ Traj.Quaternion.getDefaultInstance() : rotationVector_;
+ }
+ }
+ /**
+ * + * Orientation [unitless], 4 components should square sum to ~1 + *+ * + *
.Quaternion rotation_vector = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Quaternion, Traj.Quaternion.Builder, Traj.QuaternionOrBuilder>
+ getRotationVectorFieldBuilder() {
+ if (rotationVectorBuilder_ == null) {
+ rotationVectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Quaternion, Traj.Quaternion.Builder, Traj.QuaternionOrBuilder>(
+ getRotationVector(),
+ getParentForChildren(),
+ isClean());
+ rotationVector_ = null;
+ }
+ return rotationVectorBuilder_;
+ }
+
+ private int stepCount_ ;
+ /**
+ * + * Number of steps so far + *+ * + *
int32 step_count = 5;
+ * @return The stepCount.
+ */
+ @java.lang.Override
+ public int getStepCount() {
+ return stepCount_;
+ }
+ /**
+ * + * Number of steps so far + *+ * + *
int32 step_count = 5;
+ * @param value The stepCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStepCount(int value) {
+
+ stepCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Number of steps so far + *+ * + *
int32 step_count = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearStepCount() {
+
+ stepCount_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:IMUReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:IMUReading)
+ private static final Traj.IMUReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Traj.IMUReading();
+ }
+
+ public static Traj.IMUReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ * @return Whether the mag field is set.
+ */
+ boolean hasMag();
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ * @return The mag.
+ */
+ Traj.Vector3 getMag();
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ Traj.Vector3OrBuilder getMagOrBuilder();
+ }
+ /**
+ * Protobuf type {@code MagnetometerReading}
+ */
+ public static final class MagnetometerReading extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MagnetometerReading)
+ MagnetometerReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MagnetometerReading.newBuilder() to construct.
+ private MagnetometerReading(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MagnetometerReading() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MagnetometerReading();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MagnetometerReading(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ relativeTimestamp_ = input.readInt64();
+ break;
+ }
+ case 18: {
+ Traj.Vector3.Builder subBuilder = null;
+ if (mag_ != null) {
+ subBuilder = mag_.toBuilder();
+ }
+ mag_ = input.readMessage(Traj.Vector3.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(mag_);
+ mag_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return Traj.internal_static_MagnetometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Traj.internal_static_MagnetometerReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Traj.MagnetometerReading.class, Traj.MagnetometerReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int MAG_FIELD_NUMBER = 2;
+ private Traj.Vector3 mag_;
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ * @return Whether the mag field is set.
+ */
+ @java.lang.Override
+ public boolean hasMag() {
+ return mag_ != null;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ * @return The mag.
+ */
+ @java.lang.Override
+ public Traj.Vector3 getMag() {
+ return mag_ == null ? Traj.Vector3.getDefaultInstance() : mag_;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ @java.lang.Override
+ public Traj.Vector3OrBuilder getMagOrBuilder() {
+ return getMag();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (mag_ != null) {
+ output.writeMessage(2, getMag());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (mag_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getMag());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Traj.MagnetometerReading)) {
+ return super.equals(obj);
+ }
+ Traj.MagnetometerReading other = (Traj.MagnetometerReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (hasMag() != other.hasMag()) return false;
+ if (hasMag()) {
+ if (!getMag()
+ .equals(other.getMag())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ if (hasMag()) {
+ hash = (37 * hash) + MAG_FIELD_NUMBER;
+ hash = (53 * hash) + getMag().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Traj.MagnetometerReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.MagnetometerReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.MagnetometerReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.MagnetometerReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Traj.MagnetometerReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.MagnetometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Traj.MagnetometerReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code MagnetometerReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private Traj.Vector3 mag_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder> magBuilder_;
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ * @return Whether the mag field is set.
+ */
+ public boolean hasMag() {
+ return magBuilder_ != null || mag_ != null;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ * @return The mag.
+ */
+ public Traj.Vector3 getMag() {
+ if (magBuilder_ == null) {
+ return mag_ == null ? Traj.Vector3.getDefaultInstance() : mag_;
+ } else {
+ return magBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ public Builder setMag(Traj.Vector3 value) {
+ if (magBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ mag_ = value;
+ onChanged();
+ } else {
+ magBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ public Builder setMag(
+ Traj.Vector3.Builder builderForValue) {
+ if (magBuilder_ == null) {
+ mag_ = builderForValue.build();
+ onChanged();
+ } else {
+ magBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ public Builder mergeMag(Traj.Vector3 value) {
+ if (magBuilder_ == null) {
+ if (mag_ != null) {
+ mag_ =
+ Traj.Vector3.newBuilder(mag_).mergeFrom(value).buildPartial();
+ } else {
+ mag_ = value;
+ }
+ onChanged();
+ } else {
+ magBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ public Builder clearMag() {
+ if (magBuilder_ == null) {
+ mag_ = null;
+ onChanged();
+ } else {
+ mag_ = null;
+ magBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ public Traj.Vector3.Builder getMagBuilder() {
+
+ onChanged();
+ return getMagFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ public Traj.Vector3OrBuilder getMagOrBuilder() {
+ if (magBuilder_ != null) {
+ return magBuilder_.getMessageOrBuilder();
+ } else {
+ return mag_ == null ?
+ Traj.Vector3.getDefaultInstance() : mag_;
+ }
+ }
+ /**
+ * + * Magnetometer [uT] + *+ * + *
.Vector3 mag = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder>
+ getMagFieldBuilder() {
+ if (magBuilder_ == null) {
+ magBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.Vector3, Traj.Vector3.Builder, Traj.Vector3OrBuilder>(
+ getMag(),
+ getParentForChildren(),
+ isClean());
+ mag_ = null;
+ }
+ return magBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:MagnetometerReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:MagnetometerReading)
+ private static final Traj.MagnetometerReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Traj.MagnetometerReading();
+ }
+
+ public static Traj.MagnetometerReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ * + * mbar + *+ * + *
float pressure = 2;
+ * @return The pressure.
+ */
+ float getPressure();
+ }
+ /**
+ * Protobuf type {@code BarometerReading}
+ */
+ public static final class BarometerReading extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:BarometerReading)
+ BarometerReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BarometerReading.newBuilder() to construct.
+ private BarometerReading(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BarometerReading() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BarometerReading();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BarometerReading(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ relativeTimestamp_ = input.readInt64();
+ break;
+ }
+ case 21: {
+
+ pressure_ = input.readFloat();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return Traj.internal_static_BarometerReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Traj.internal_static_BarometerReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Traj.BarometerReading.class, Traj.BarometerReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int PRESSURE_FIELD_NUMBER = 2;
+ private float pressure_;
+ /**
+ * + * mbar + *+ * + *
float pressure = 2;
+ * @return The pressure.
+ */
+ @java.lang.Override
+ public float getPressure() {
+ return pressure_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(pressure_) != 0) {
+ output.writeFloat(2, pressure_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(pressure_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, pressure_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Traj.BarometerReading)) {
+ return super.equals(obj);
+ }
+ Traj.BarometerReading other = (Traj.BarometerReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getPressure())
+ != java.lang.Float.floatToIntBits(
+ other.getPressure())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + PRESSURE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getPressure());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Traj.BarometerReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.BarometerReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.BarometerReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.BarometerReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.BarometerReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.BarometerReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.BarometerReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.BarometerReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.BarometerReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Traj.BarometerReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.BarometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.BarometerReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Traj.BarometerReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code BarometerReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float pressure_ ;
+ /**
+ * + * mbar + *+ * + *
float pressure = 2;
+ * @return The pressure.
+ */
+ @java.lang.Override
+ public float getPressure() {
+ return pressure_;
+ }
+ /**
+ * + * mbar + *+ * + *
float pressure = 2;
+ * @param value The pressure to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPressure(float value) {
+
+ pressure_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * mbar + *+ * + *
float pressure = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPressure() {
+
+ pressure_ = 0F;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:BarometerReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:BarometerReading)
+ private static final Traj.BarometerReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Traj.BarometerReading();
+ }
+
+ public static Traj.BarometerReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ * + * lux + *+ * + *
float light = 2;
+ * @return The light.
+ */
+ float getLight();
+ }
+ /**
+ * Protobuf type {@code LightReading}
+ */
+ public static final class LightReading extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:LightReading)
+ LightReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use LightReading.newBuilder() to construct.
+ private LightReading(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private LightReading() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new LightReading();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private LightReading(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ relativeTimestamp_ = input.readInt64();
+ break;
+ }
+ case 21: {
+
+ light_ = input.readFloat();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return Traj.internal_static_LightReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Traj.internal_static_LightReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Traj.LightReading.class, Traj.LightReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int LIGHT_FIELD_NUMBER = 2;
+ private float light_;
+ /**
+ * + * lux + *+ * + *
float light = 2;
+ * @return The light.
+ */
+ @java.lang.Override
+ public float getLight() {
+ return light_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(light_) != 0) {
+ output.writeFloat(2, light_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(light_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, light_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Traj.LightReading)) {
+ return super.equals(obj);
+ }
+ Traj.LightReading other = (Traj.LightReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getLight())
+ != java.lang.Float.floatToIntBits(
+ other.getLight())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + LIGHT_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getLight());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Traj.LightReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.LightReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.LightReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.LightReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.LightReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.LightReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.LightReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.LightReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.LightReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Traj.LightReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.LightReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.LightReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Traj.LightReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code LightReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float light_ ;
+ /**
+ * + * lux + *+ * + *
float light = 2;
+ * @return The light.
+ */
+ @java.lang.Override
+ public float getLight() {
+ return light_;
+ }
+ /**
+ * + * lux + *+ * + *
float light = 2;
+ * @param value The light to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLight(float value) {
+
+ light_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * lux + *+ * + *
float light = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLight() {
+
+ light_ = 0F;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:LightReading)
+ }
+
+ // @@protoc_insertion_point(class_scope:LightReading)
+ private static final Traj.LightReading DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new Traj.LightReading();
+ }
+
+ public static Traj.LightReading getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
+ /**
+ * + * cm + *+ * + *
float distance = 2;
+ * @return The distance.
+ */
+ float getDistance();
+ }
+ /**
+ * Protobuf type {@code ProximityReading}
+ */
+ public static final class ProximityReading extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ProximityReading)
+ ProximityReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ProximityReading.newBuilder() to construct.
+ private ProximityReading(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ProximityReading() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ProximityReading();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ProximityReading(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ relativeTimestamp_ = input.readInt64();
+ break;
+ }
+ case 21: {
+
+ distance_ = input.readFloat();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return Traj.internal_static_ProximityReading_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return Traj.internal_static_ProximityReading_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Traj.ProximityReading.class, Traj.ProximityReading.Builder.class);
+ }
+
+ public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
+ private long relativeTimestamp_;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int DISTANCE_FIELD_NUMBER = 2;
+ private float distance_;
+ /**
+ * + * cm + *+ * + *
float distance = 2;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public float getDistance() {
+ return distance_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (relativeTimestamp_ != 0L) {
+ output.writeInt64(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(distance_) != 0) {
+ output.writeFloat(2, distance_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (relativeTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, relativeTimestamp_);
+ }
+ if (java.lang.Float.floatToRawIntBits(distance_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeFloatSize(2, distance_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Traj.ProximityReading)) {
+ return super.equals(obj);
+ }
+ Traj.ProximityReading other = (Traj.ProximityReading) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Float.floatToIntBits(getDistance())
+ != java.lang.Float.floatToIntBits(
+ other.getDistance())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getRelativeTimestamp());
+ hash = (37 * hash) + DISTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getDistance());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Traj.ProximityReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.ProximityReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.ProximityReading parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.ProximityReading parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.ProximityReading parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.ProximityReading parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.ProximityReading parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.ProximityReading parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.ProximityReading parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static Traj.ProximityReading parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static Traj.ProximityReading parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static Traj.ProximityReading parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(Traj.ProximityReading prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ProximityReading}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private float distance_ ;
+ /**
+ * + * cm + *+ * + *
float distance = 2;
+ * @return The distance.
+ */
+ @java.lang.Override
+ public float getDistance() {
+ return distance_;
+ }
+ /**
+ * + * cm + *+ * + *
float distance = 2;
+ * @param value The distance to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDistance(float value) {
+
+ distance_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * cm + *+ * + *
float distance = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDistance() {
+
+ distance_ = 0F;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ProximityReading)
}
- // @@protoc_insertion_point(class_scope:Trajectory)
- private static final Trajectory DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:ProximityReading)
+ private static final Traj.ProximityReading DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Trajectory();
+ DEFAULT_INSTANCE = new Traj.ProximityReading();
}
- public static Trajectory getDefaultInstance() {
+ public static Traj.ProximityReading getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parserint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ long getRelativeTimestamp();
+
/**
*
- * milliseconds from the start_timestamp
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
*
*
- * optional int64 relative_timestamp = 1;
+ * double latitude = 2;
+ * @return The latitude.
*/
- long getRelativeTimestamp();
+ double getLatitude();
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * longitude between -180 and 180
*
*
- * optional float x = 2;
+ * double longitude = 3;
+ * @return The longitude.
*/
- float getX();
+ double getLongitude();
/**
- * optional float y = 3;
+ * + *metres + *+ * + *
double altitude = 4;
+ * @return The altitude.
*/
- float getY();
+ double getAltitude();
+
+ /**
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return Whether the floor field is set.
+ */
+ boolean hasFloor();
+ /**
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return The floor.
+ */
+ java.lang.String getFloor();
+ /**
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return The bytes for floor.
+ */
+ com.google.protobuf.ByteString
+ getFloorBytes();
}
/**
- * Protobuf type {@code Pdr_Sample}
+ * Protobuf type {@code GNSSPosition}
*/
- public static final class Pdr_Sample extends
+ public static final class GNSSPosition extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Pdr_Sample)
- Pdr_SampleOrBuilder {
- // Use Pdr_Sample.newBuilder() to construct.
- private Pdr_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // @@protoc_insertion_point(message_implements:GNSSPosition)
+ GNSSPositionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GNSSPosition.newBuilder() to construct.
+ private GNSSPosition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Pdr_Sample() {
- relativeTimestamp_ = 0L;
- x_ = 0F;
- y_ = 0F;
+ private GNSSPosition() {
+ floor_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GNSSPosition();
}
- @Override
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ return this.unknownFields;
}
- private Pdr_Sample(
+ private GNSSPosition(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -4936,88 +12511,184 @@ private Pdr_Sample(
case 0:
done = true;
break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
case 8: {
relativeTimestamp_ = input.readInt64();
break;
}
- case 21: {
+ case 17: {
- x_ = input.readFloat();
+ latitude_ = input.readDouble();
break;
}
- case 29: {
+ case 25: {
- y_ = input.readFloat();
+ longitude_ = input.readDouble();
+ break;
+ }
+ case 33: {
+
+ altitude_ = input.readDouble();
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ floor_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
+ this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return Traj.internal_static_Pdr_Sample_descriptor;
+ return Traj.internal_static_GNSSPosition_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return Traj.internal_static_Pdr_Sample_fieldAccessorTable
+ return Traj.internal_static_GNSSPosition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Pdr_Sample.class, Builder.class);
+ Traj.GNSSPosition.class, Traj.GNSSPosition.Builder.class);
}
+ private int bitField0_;
public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
private long relativeTimestamp_;
+ /**
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+
+ public static final int LATITUDE_FIELD_NUMBER = 2;
+ private double latitude_;
/**
*
- * milliseconds from the start_timestamp
+ * degrees (minimum 6 significant figures)
+ * latitude between -90 and 90
*
*
- * optional int64 relative_timestamp = 1;
+ * double latitude = 2;
+ * @return The latitude.
*/
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ @java.lang.Override
+ public double getLatitude() {
+ return latitude_;
}
- public static final int X_FIELD_NUMBER = 2;
- private float x_;
+ public static final int LONGITUDE_FIELD_NUMBER = 3;
+ private double longitude_;
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * longitude between -180 and 180
*
*
- * optional float x = 2;
+ * double longitude = 3;
+ * @return The longitude.
*/
- public float getX() {
- return x_;
+ @java.lang.Override
+ public double getLongitude() {
+ return longitude_;
}
- public static final int Y_FIELD_NUMBER = 3;
- private float y_;
+ public static final int ALTITUDE_FIELD_NUMBER = 4;
+ private double altitude_;
/**
- * optional float y = 3;
+ * + *metres + *+ * + *
double altitude = 4;
+ * @return The altitude.
*/
- public float getY() {
- return y_;
+ @java.lang.Override
+ public double getAltitude() {
+ return altitude_;
+ }
+
+ public static final int FLOOR_FIELD_NUMBER = 5;
+ private volatile java.lang.Object floor_;
+ /**
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return Whether the floor field is set.
+ */
+ @java.lang.Override
+ public boolean hasFloor() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return The floor.
+ */
+ @java.lang.Override
+ public java.lang.String getFloor() {
+ java.lang.Object ref = floor_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ floor_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return The bytes for floor.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getFloorBytes() {
+ java.lang.Object ref = floor_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ floor_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -5027,19 +12698,28 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (relativeTimestamp_ != 0L) {
output.writeInt64(1, relativeTimestamp_);
}
- if (x_ != 0F) {
- output.writeFloat(2, x_);
+ if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) {
+ output.writeDouble(2, latitude_);
}
- if (y_ != 0F) {
- output.writeFloat(3, y_);
+ if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) {
+ output.writeDouble(3, longitude_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(altitude_) != 0) {
+ output.writeDouble(4, altitude_);
}
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, floor_);
+ }
+ unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -5049,116 +12729,147 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, relativeTimestamp_);
}
- if (x_ != 0F) {
+ if (java.lang.Double.doubleToRawLongBits(latitude_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, x_);
+ .computeDoubleSize(2, latitude_);
}
- if (y_ != 0F) {
+ if (java.lang.Double.doubleToRawLongBits(longitude_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, y_);
+ .computeDoubleSize(3, longitude_);
+ }
+ if (java.lang.Double.doubleToRawLongBits(altitude_) != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(4, altitude_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, floor_);
}
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof Pdr_Sample)) {
+ if (!(obj instanceof Traj.GNSSPosition)) {
return super.equals(obj);
}
- Pdr_Sample other = (Pdr_Sample) obj;
-
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getX())
- == Float.floatToIntBits(
- other.getX()));
- result = result && (
- Float.floatToIntBits(getY())
- == Float.floatToIntBits(
- other.getY()));
- return result;
+ Traj.GNSSPosition other = (Traj.GNSSPosition) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (java.lang.Double.doubleToLongBits(getLatitude())
+ != java.lang.Double.doubleToLongBits(
+ other.getLatitude())) return false;
+ if (java.lang.Double.doubleToLongBits(getLongitude())
+ != java.lang.Double.doubleToLongBits(
+ other.getLongitude())) return false;
+ if (java.lang.Double.doubleToLongBits(getAltitude())
+ != java.lang.Double.doubleToLongBits(
+ other.getAltitude())) return false;
+ if (hasFloor() != other.hasFloor()) return false;
+ if (hasFloor()) {
+ if (!getFloor()
+ .equals(other.getFloor())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
- @Override
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRelativeTimestamp());
- hash = (37 * hash) + X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getX());
- hash = (37 * hash) + Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getY());
+ hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getLatitude()));
+ hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getLongitude()));
+ hash = (37 * hash) + ALTITUDE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getAltitude()));
+ if (hasFloor()) {
+ hash = (37 * hash) + FLOOR_FIELD_NUMBER;
+ hash = (53 * hash) + getFloor().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Pdr_Sample parseFrom(
+ public static Traj.GNSSPosition parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.GNSSPosition parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.GNSSPosition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pdr_Sample parseFrom(
+ public static Traj.GNSSPosition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pdr_Sample parseFrom(byte[] data)
+ public static Traj.GNSSPosition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pdr_Sample parseFrom(
+ public static Traj.GNSSPosition parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pdr_Sample parseFrom(java.io.InputStream input)
+ public static Traj.GNSSPosition parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Pdr_Sample parseFrom(
+ public static Traj.GNSSPosition parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Pdr_Sample parseDelimitedFrom(java.io.InputStream input)
+ public static Traj.GNSSPosition parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static Pdr_Sample parseDelimitedFrom(
+ public static Traj.GNSSPosition parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static Pdr_Sample parseFrom(
+ public static Traj.GNSSPosition parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Pdr_Sample parseFrom(
+ public static Traj.GNSSPosition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -5166,44 +12877,47 @@ public static Pdr_Sample parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Pdr_Sample prototype) {
+ public static Builder newBuilder(Traj.GNSSPosition prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Pdr_Sample}
+ * Protobuf type {@code GNSSPosition}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderint64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
+ */
+ @java.lang.Override
+ public long getRelativeTimestamp() {
+ return relativeTimestamp_;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRelativeTimestamp(long value) {
+
+ relativeTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRelativeTimestamp() {
+
+ relativeTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private double latitude_ ;
+ /**
+ * + * degrees (minimum 6 significant figures) + * latitude between -90 and 90 + *+ * + *
double latitude = 2;
+ * @return The latitude.
+ */
+ @java.lang.Override
+ public double getLatitude() {
+ return latitude_;
+ }
+ /**
+ * + * degrees (minimum 6 significant figures) + * latitude between -90 and 90 + *+ * + *
double latitude = 2;
+ * @param value The latitude to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLatitude(double value) {
+
+ latitude_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * degrees (minimum 6 significant figures) + * latitude between -90 and 90 + *+ * + *
double latitude = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearLatitude() {
+
+ latitude_ = 0D;
+ onChanged();
+ return this;
+ }
+
+ private double longitude_ ;
+ /**
+ * + * longitude between -180 and 180 + *+ * + *
double longitude = 3;
+ * @return The longitude.
+ */
+ @java.lang.Override
+ public double getLongitude() {
+ return longitude_;
+ }
+ /**
+ * + * longitude between -180 and 180 + *+ * + *
double longitude = 3;
+ * @param value The longitude to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLongitude(double value) {
+
+ longitude_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * longitude between -180 and 180 + *+ * + *
double longitude = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearLongitude() {
+
+ longitude_ = 0D;
+ onChanged();
+ return this;
+ }
- private long relativeTimestamp_ ;
+ private double altitude_ ;
/**
*
- * milliseconds from the start_timestamp
+ *metres
*
*
- * optional int64 relative_timestamp = 1;
+ * double altitude = 4;
+ * @return The altitude.
*/
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ @java.lang.Override
+ public double getAltitude() {
+ return altitude_;
}
/**
*
- * milliseconds from the start_timestamp
+ *metres
*
*
- * optional int64 relative_timestamp = 1;
+ * double altitude = 4;
+ * @param value The altitude to set.
+ * @return This builder for chaining.
*/
- public Builder setRelativeTimestamp(long value) {
+ public Builder setAltitude(double value) {
- relativeTimestamp_ = value;
+ altitude_ = value;
onChanged();
return this;
}
/**
*
- * milliseconds from the start_timestamp
+ *metres
*
*
- * optional int64 relative_timestamp = 1;
+ * double altitude = 4;
+ * @return This builder for chaining.
*/
- public Builder clearRelativeTimestamp() {
+ public Builder clearAltitude() {
- relativeTimestamp_ = 0L;
+ altitude_ = 0D;
onChanged();
return this;
}
- private float x_ ;
+ private java.lang.Object floor_ = "";
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * floor name
*
*
- * optional float x = 2;
+ * optional string floor = 5;
+ * @return Whether the floor field is set.
*/
- public float getX() {
- return x_;
+ public boolean hasFloor() {
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * floor name
*
*
- * optional float x = 2;
+ * optional string floor = 5;
+ * @return The floor.
*/
- public Builder setX(float value) {
-
- x_ = value;
- onChanged();
- return this;
+ public java.lang.String getFloor() {
+ java.lang.Object ref = floor_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ floor_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
- * Both in metres. You should implement an algorithm to estimate
- * these values. The values are always relative to your start point
- * so the first entry should always be x = 0.0, y = 0.0
+ * floor name
*
*
- * optional float x = 2;
+ * optional string floor = 5;
+ * @return The bytes for floor.
*/
- public Builder clearX() {
-
- x_ = 0F;
- onChanged();
- return this;
+ public com.google.protobuf.ByteString
+ getFloorBytes() {
+ java.lang.Object ref = floor_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ floor_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
-
- private float y_ ;
/**
- * optional float y = 3;
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @param value The floor to set.
+ * @return This builder for chaining.
*/
- public float getY() {
- return y_;
+ public Builder setFloor(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ floor_ = value;
+ onChanged();
+ return this;
}
/**
- * optional float y = 3;
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @return This builder for chaining.
*/
- public Builder setY(float value) {
-
- y_ = value;
+ public Builder clearFloor() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ floor_ = getDefaultInstance().getFloor();
onChanged();
return this;
}
/**
- * optional float y = 3;
+ * + * floor name + *+ * + *
optional string floor = 5;
+ * @param value The bytes for floor to set.
+ * @return This builder for chaining.
*/
- public Builder clearY() {
-
- y_ = 0F;
+ public Builder setFloorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ bitField0_ |= 0x00000001;
+ floor_ = value;
onChanged();
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+ return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:Pdr_Sample)
+ // @@protoc_insertion_point(builder_scope:GNSSPosition)
}
- // @@protoc_insertion_point(class_scope:Pdr_Sample)
- private static final Pdr_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:GNSSPosition)
+ private static final Traj.GNSSPosition DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Pdr_Sample();
+ DEFAULT_INSTANCE = new Traj.GNSSPosition();
}
- public static Pdr_Sample getDefaultInstance() {
+ public static Traj.GNSSPosition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser- * milliseconds - *- * - *
optional int64 relative_timestamp = 1;
- */
- long getRelativeTimestamp();
-
- /**
- * - * m/s^2 - *- * - *
optional float acc_x = 2;
+ * .GNSSPosition position = 1;
+ * @return Whether the position field is set.
*/
- float getAccX();
-
+ boolean hasPosition();
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
+ * @return The position.
*/
- float getAccY();
-
+ Traj.GNSSPosition getPosition();
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- float getAccZ();
+ Traj.GNSSPositionOrBuilder getPositionOrBuilder();
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
- */
- float getGyrX();
-
- /**
- * optional float gyr_y = 6;
+ * float accuracy = 2;
+ * @return The accuracy.
*/
- float getGyrY();
-
- /**
- * optional float gyr_z = 7;
- */
- float getGyrZ();
+ float getAccuracy();
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
- */
- float getRotationVectorX();
-
- /**
- * optional float rotation_vector_y = 9;
+ * float speed = 3;
+ * @return The speed.
*/
- float getRotationVectorY();
+ float getSpeed();
/**
- * optional float rotation_vector_z = 10;
+ * + * degrees + *+ * + *
float bearing = 4;
+ * @return The bearing.
*/
- float getRotationVectorZ();
+ float getBearing();
/**
- * optional float rotation_vector_w = 11;
+ * + * e.g 'gps' or 'network' + *+ * + *
string provider = 5;
+ * @return The provider.
*/
- float getRotationVectorW();
-
+ java.lang.String getProvider();
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return The bytes for provider.
*/
- int getStepCount();
+ com.google.protobuf.ByteString
+ getProviderBytes();
}
/**
- * Protobuf type {@code Motion_Sample}
+ * Protobuf type {@code GNSSReading}
*/
- public static final class Motion_Sample extends
+ public static final class GNSSReading extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Motion_Sample)
- Motion_SampleOrBuilder {
- // Use Motion_Sample.newBuilder() to construct.
- private Motion_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // @@protoc_insertion_point(message_implements:GNSSReading)
+ GNSSReadingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GNSSReading.newBuilder() to construct.
+ private GNSSReading(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Motion_Sample() {
- relativeTimestamp_ = 0L;
- accX_ = 0F;
- accY_ = 0F;
- accZ_ = 0F;
- gyrX_ = 0F;
- gyrY_ = 0F;
- gyrZ_ = 0F;
- rotationVectorX_ = 0F;
- rotationVectorY_ = 0F;
- rotationVectorZ_ = 0F;
- rotationVectorW_ = 0F;
- stepCount_ = 0;
- }
-
- @Override
+ private GNSSReading() {
+ provider_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GNSSReading();
+ }
+
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ return this.unknownFields;
}
- private Motion_Sample(
+ private GNSSReading(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
- int mutable_bitField0_ = 0;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -5612,488 +13514,373 @@ private Motion_Sample(
case 0:
done = true;
break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
+ case 10: {
+ Traj.GNSSPosition.Builder subBuilder = null;
+ if (position_ != null) {
+ subBuilder = position_.toBuilder();
+ }
+ position_ = input.readMessage(Traj.GNSSPosition.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(position_);
+ position_ = subBuilder.buildPartial();
}
- break;
- }
- case 8: {
- relativeTimestamp_ = input.readInt64();
break;
}
case 21: {
- accX_ = input.readFloat();
+ accuracy_ = input.readFloat();
break;
}
case 29: {
- accY_ = input.readFloat();
+ speed_ = input.readFloat();
break;
}
case 37: {
- accZ_ = input.readFloat();
- break;
- }
- case 45: {
-
- gyrX_ = input.readFloat();
- break;
- }
- case 53: {
-
- gyrY_ = input.readFloat();
- break;
- }
- case 61: {
-
- gyrZ_ = input.readFloat();
- break;
- }
- case 69: {
-
- rotationVectorX_ = input.readFloat();
- break;
- }
- case 77: {
-
- rotationVectorY_ = input.readFloat();
+ bearing_ = input.readFloat();
break;
}
- case 85: {
-
- rotationVectorZ_ = input.readFloat();
- break;
- }
- case 93: {
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
- rotationVectorW_ = input.readFloat();
+ provider_ = s;
break;
}
- case 96: {
-
- stepCount_ = input.readInt32();
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
+ this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return Traj.internal_static_Motion_Sample_descriptor;
+ return Traj.internal_static_GNSSReading_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return Traj.internal_static_Motion_Sample_fieldAccessorTable
+ return Traj.internal_static_GNSSReading_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Motion_Sample.class, Builder.class);
- }
-
- public static final int RELATIVE_TIMESTAMP_FIELD_NUMBER = 1;
- private long relativeTimestamp_;
- /**
- * - * milliseconds - *- * - *
optional int64 relative_timestamp = 1;
- */
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ Traj.GNSSReading.class, Traj.GNSSReading.Builder.class);
}
- public static final int ACC_X_FIELD_NUMBER = 2;
- private float accX_;
+ public static final int POSITION_FIELD_NUMBER = 1;
+ private Traj.GNSSPosition position_;
/**
- * - * m/s^2 - *- * - *
optional float acc_x = 2;
+ * .GNSSPosition position = 1;
+ * @return Whether the position field is set.
*/
- public float getAccX() {
- return accX_;
+ @java.lang.Override
+ public boolean hasPosition() {
+ return position_ != null;
}
-
- public static final int ACC_Y_FIELD_NUMBER = 3;
- private float accY_;
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
+ * @return The position.
*/
- public float getAccY() {
- return accY_;
+ @java.lang.Override
+ public Traj.GNSSPosition getPosition() {
+ return position_ == null ? Traj.GNSSPosition.getDefaultInstance() : position_;
}
-
- public static final int ACC_Z_FIELD_NUMBER = 4;
- private float accZ_;
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public float getAccZ() {
- return accZ_;
+ @java.lang.Override
+ public Traj.GNSSPositionOrBuilder getPositionOrBuilder() {
+ return getPosition();
}
- public static final int GYR_X_FIELD_NUMBER = 5;
- private float gyrX_;
+ public static final int ACCURACY_FIELD_NUMBER = 2;
+ private float accuracy_;
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
- */
- public float getGyrX() {
- return gyrX_;
- }
-
- public static final int GYR_Y_FIELD_NUMBER = 6;
- private float gyrY_;
- /**
- * optional float gyr_y = 6;
- */
- public float getGyrY() {
- return gyrY_;
- }
-
- public static final int GYR_Z_FIELD_NUMBER = 7;
- private float gyrZ_;
- /**
- * optional float gyr_z = 7;
+ * float accuracy = 2;
+ * @return The accuracy.
*/
- public float getGyrZ() {
- return gyrZ_;
+ @java.lang.Override
+ public float getAccuracy() {
+ return accuracy_;
}
- public static final int ROTATION_VECTOR_X_FIELD_NUMBER = 8;
- private float rotationVectorX_;
+ public static final int SPEED_FIELD_NUMBER = 3;
+ private float speed_;
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
- */
- public float getRotationVectorX() {
- return rotationVectorX_;
- }
-
- public static final int ROTATION_VECTOR_Y_FIELD_NUMBER = 9;
- private float rotationVectorY_;
- /**
- * optional float rotation_vector_y = 9;
+ * float speed = 3;
+ * @return The speed.
*/
- public float getRotationVectorY() {
- return rotationVectorY_;
+ @java.lang.Override
+ public float getSpeed() {
+ return speed_;
}
- public static final int ROTATION_VECTOR_Z_FIELD_NUMBER = 10;
- private float rotationVectorZ_;
+ public static final int BEARING_FIELD_NUMBER = 4;
+ private float bearing_;
/**
- * optional float rotation_vector_z = 10;
+ * + * degrees + *+ * + *
float bearing = 4;
+ * @return The bearing.
*/
- public float getRotationVectorZ() {
- return rotationVectorZ_;
+ @java.lang.Override
+ public float getBearing() {
+ return bearing_;
}
- public static final int ROTATION_VECTOR_W_FIELD_NUMBER = 11;
- private float rotationVectorW_;
+ public static final int PROVIDER_FIELD_NUMBER = 5;
+ private volatile java.lang.Object provider_;
/**
- * optional float rotation_vector_w = 11;
+ * + * e.g 'gps' or 'network' + *+ * + *
string provider = 5;
+ * @return The provider.
*/
- public float getRotationVectorW() {
- return rotationVectorW_;
+ @java.lang.Override
+ public java.lang.String getProvider() {
+ java.lang.Object ref = provider_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ provider_ = s;
+ return s;
+ }
}
-
- public static final int STEP_COUNT_FIELD_NUMBER = 12;
- private int stepCount_;
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return The bytes for provider.
*/
- public int getStepCount() {
- return stepCount_;
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getProviderBytes() {
+ java.lang.Object ref = provider_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ provider_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (relativeTimestamp_ != 0L) {
- output.writeInt64(1, relativeTimestamp_);
- }
- if (accX_ != 0F) {
- output.writeFloat(2, accX_);
- }
- if (accY_ != 0F) {
- output.writeFloat(3, accY_);
- }
- if (accZ_ != 0F) {
- output.writeFloat(4, accZ_);
- }
- if (gyrX_ != 0F) {
- output.writeFloat(5, gyrX_);
- }
- if (gyrY_ != 0F) {
- output.writeFloat(6, gyrY_);
- }
- if (gyrZ_ != 0F) {
- output.writeFloat(7, gyrZ_);
- }
- if (rotationVectorX_ != 0F) {
- output.writeFloat(8, rotationVectorX_);
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (position_ != null) {
+ output.writeMessage(1, getPosition());
}
- if (rotationVectorY_ != 0F) {
- output.writeFloat(9, rotationVectorY_);
+ if (java.lang.Float.floatToRawIntBits(accuracy_) != 0) {
+ output.writeFloat(2, accuracy_);
}
- if (rotationVectorZ_ != 0F) {
- output.writeFloat(10, rotationVectorZ_);
+ if (java.lang.Float.floatToRawIntBits(speed_) != 0) {
+ output.writeFloat(3, speed_);
}
- if (rotationVectorW_ != 0F) {
- output.writeFloat(11, rotationVectorW_);
+ if (java.lang.Float.floatToRawIntBits(bearing_) != 0) {
+ output.writeFloat(4, bearing_);
}
- if (stepCount_ != 0) {
- output.writeInt32(12, stepCount_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, provider_);
}
+ unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (relativeTimestamp_ != 0L) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt64Size(1, relativeTimestamp_);
- }
- if (accX_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, accX_);
- }
- if (accY_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, accY_);
- }
- if (accZ_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(4, accZ_);
- }
- if (gyrX_ != 0F) {
+ if (position_ != null) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(5, gyrX_);
+ .computeMessageSize(1, getPosition());
}
- if (gyrY_ != 0F) {
+ if (java.lang.Float.floatToRawIntBits(accuracy_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(6, gyrY_);
+ .computeFloatSize(2, accuracy_);
}
- if (gyrZ_ != 0F) {
+ if (java.lang.Float.floatToRawIntBits(speed_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(7, gyrZ_);
+ .computeFloatSize(3, speed_);
}
- if (rotationVectorX_ != 0F) {
+ if (java.lang.Float.floatToRawIntBits(bearing_) != 0) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(8, rotationVectorX_);
+ .computeFloatSize(4, bearing_);
}
- if (rotationVectorY_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(9, rotationVectorY_);
- }
- if (rotationVectorZ_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(10, rotationVectorZ_);
- }
- if (rotationVectorW_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(11, rotationVectorW_);
- }
- if (stepCount_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(12, stepCount_);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, provider_);
}
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof Motion_Sample)) {
+ if (!(obj instanceof Traj.GNSSReading)) {
return super.equals(obj);
}
- Motion_Sample other = (Motion_Sample) obj;
-
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getAccX())
- == Float.floatToIntBits(
- other.getAccX()));
- result = result && (
- Float.floatToIntBits(getAccY())
- == Float.floatToIntBits(
- other.getAccY()));
- result = result && (
- Float.floatToIntBits(getAccZ())
- == Float.floatToIntBits(
- other.getAccZ()));
- result = result && (
- Float.floatToIntBits(getGyrX())
- == Float.floatToIntBits(
- other.getGyrX()));
- result = result && (
- Float.floatToIntBits(getGyrY())
- == Float.floatToIntBits(
- other.getGyrY()));
- result = result && (
- Float.floatToIntBits(getGyrZ())
- == Float.floatToIntBits(
- other.getGyrZ()));
- result = result && (
- Float.floatToIntBits(getRotationVectorX())
- == Float.floatToIntBits(
- other.getRotationVectorX()));
- result = result && (
- Float.floatToIntBits(getRotationVectorY())
- == Float.floatToIntBits(
- other.getRotationVectorY()));
- result = result && (
- Float.floatToIntBits(getRotationVectorZ())
- == Float.floatToIntBits(
- other.getRotationVectorZ()));
- result = result && (
- Float.floatToIntBits(getRotationVectorW())
- == Float.floatToIntBits(
- other.getRotationVectorW()));
- result = result && (getStepCount()
- == other.getStepCount());
- return result;
- }
-
- @Override
+ Traj.GNSSReading other = (Traj.GNSSReading) obj;
+
+ if (hasPosition() != other.hasPosition()) return false;
+ if (hasPosition()) {
+ if (!getPosition()
+ .equals(other.getPosition())) return false;
+ }
+ if (java.lang.Float.floatToIntBits(getAccuracy())
+ != java.lang.Float.floatToIntBits(
+ other.getAccuracy())) return false;
+ if (java.lang.Float.floatToIntBits(getSpeed())
+ != java.lang.Float.floatToIntBits(
+ other.getSpeed())) return false;
+ if (java.lang.Float.floatToIntBits(getBearing())
+ != java.lang.Float.floatToIntBits(
+ other.getBearing())) return false;
+ if (!getProvider()
+ .equals(other.getProvider())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
- hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getRelativeTimestamp());
- hash = (37 * hash) + ACC_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getAccX());
- hash = (37 * hash) + ACC_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getAccY());
- hash = (37 * hash) + ACC_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getAccZ());
- hash = (37 * hash) + GYR_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getGyrX());
- hash = (37 * hash) + GYR_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getGyrY());
- hash = (37 * hash) + GYR_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getGyrZ());
- hash = (37 * hash) + ROTATION_VECTOR_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorX());
- hash = (37 * hash) + ROTATION_VECTOR_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorY());
- hash = (37 * hash) + ROTATION_VECTOR_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorZ());
- hash = (37 * hash) + ROTATION_VECTOR_W_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getRotationVectorW());
- hash = (37 * hash) + STEP_COUNT_FIELD_NUMBER;
- hash = (53 * hash) + getStepCount();
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasPosition()) {
+ hash = (37 * hash) + POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + getPosition().hashCode();
+ }
+ hash = (37 * hash) + ACCURACY_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getAccuracy());
+ hash = (37 * hash) + SPEED_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getSpeed());
+ hash = (37 * hash) + BEARING_FIELD_NUMBER;
+ hash = (53 * hash) + java.lang.Float.floatToIntBits(
+ getBearing());
+ hash = (37 * hash) + PROVIDER_FIELD_NUMBER;
+ hash = (53 * hash) + getProvider().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Motion_Sample parseFrom(
+ public static Traj.GNSSReading parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.GNSSReading parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.GNSSReading parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Motion_Sample parseFrom(
+ public static Traj.GNSSReading parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Motion_Sample parseFrom(byte[] data)
+ public static Traj.GNSSReading parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Motion_Sample parseFrom(
+ public static Traj.GNSSReading parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Motion_Sample parseFrom(java.io.InputStream input)
+ public static Traj.GNSSReading parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Motion_Sample parseFrom(
+ public static Traj.GNSSReading parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Motion_Sample parseDelimitedFrom(java.io.InputStream input)
+ public static Traj.GNSSReading parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static Motion_Sample parseDelimitedFrom(
+ public static Traj.GNSSReading parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static Motion_Sample parseFrom(
+ public static Traj.GNSSReading parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Motion_Sample parseFrom(
+ public static Traj.GNSSReading parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -6101,44 +13888,47 @@ public static Motion_Sample parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Motion_Sample prototype) {
+ public static Builder newBuilder(Traj.GNSSReading prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Motion_Sample}
+ * Protobuf type {@code GNSSReading}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder- * milliseconds - *- * - *
optional int64 relative_timestamp = 1;
+ * .GNSSPosition position = 1;
+ * @return Whether the position field is set.
*/
- public long getRelativeTimestamp() {
- return relativeTimestamp_;
+ public boolean hasPosition() {
+ return positionBuilder_ != null || position_ != null;
}
/**
- * - * milliseconds - *- * - *
optional int64 relative_timestamp = 1;
+ * .GNSSPosition position = 1;
+ * @return The position.
*/
- public Builder setRelativeTimestamp(long value) {
-
- relativeTimestamp_ = value;
- onChanged();
- return this;
+ public Traj.GNSSPosition getPosition() {
+ if (positionBuilder_ == null) {
+ return position_ == null ? Traj.GNSSPosition.getDefaultInstance() : position_;
+ } else {
+ return positionBuilder_.getMessage();
+ }
}
/**
- * - * milliseconds - *- * - *
optional int64 relative_timestamp = 1;
+ * .GNSSPosition position = 1;
*/
- public Builder clearRelativeTimestamp() {
-
- relativeTimestamp_ = 0L;
- onChanged();
- return this;
- }
+ public Builder setPosition(Traj.GNSSPosition value) {
+ if (positionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ position_ = value;
+ onChanged();
+ } else {
+ positionBuilder_.setMessage(value);
+ }
- private float accX_ ;
- /**
- * - * m/s^2 - *- * - *
optional float acc_x = 2;
- */
- public float getAccX() {
- return accX_;
- }
- /**
- * - * m/s^2 - *- * - *
optional float acc_x = 2;
- */
- public Builder setAccX(float value) {
-
- accX_ = value;
- onChanged();
return this;
}
/**
- * - * m/s^2 - *- * - *
optional float acc_x = 2;
+ * .GNSSPosition position = 1;
*/
- public Builder clearAccX() {
-
- accX_ = 0F;
- onChanged();
+ public Builder setPosition(
+ Traj.GNSSPosition.Builder builderForValue) {
+ if (positionBuilder_ == null) {
+ position_ = builderForValue.build();
+ onChanged();
+ } else {
+ positionBuilder_.setMessage(builderForValue.build());
+ }
+
return this;
}
-
- private float accY_ ;
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
*/
- public float getAccY() {
- return accY_;
+ public Builder mergePosition(Traj.GNSSPosition value) {
+ if (positionBuilder_ == null) {
+ if (position_ != null) {
+ position_ =
+ Traj.GNSSPosition.newBuilder(position_).mergeFrom(value).buildPartial();
+ } else {
+ position_ = value;
+ }
+ onChanged();
+ } else {
+ positionBuilder_.mergeFrom(value);
+ }
+
+ return this;
}
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
*/
- public Builder setAccY(float value) {
-
- accY_ = value;
- onChanged();
+ public Builder clearPosition() {
+ if (positionBuilder_ == null) {
+ position_ = null;
+ onChanged();
+ } else {
+ position_ = null;
+ positionBuilder_ = null;
+ }
+
return this;
}
/**
- * optional float acc_y = 3;
+ * .GNSSPosition position = 1;
*/
- public Builder clearAccY() {
+ public Traj.GNSSPosition.Builder getPositionBuilder() {
- accY_ = 0F;
onChanged();
- return this;
- }
-
- private float accZ_ ;
- /**
- * optional float acc_z = 4;
- */
- public float getAccZ() {
- return accZ_;
+ return getPositionFieldBuilder().getBuilder();
}
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public Builder setAccZ(float value) {
-
- accZ_ = value;
- onChanged();
- return this;
+ public Traj.GNSSPositionOrBuilder getPositionOrBuilder() {
+ if (positionBuilder_ != null) {
+ return positionBuilder_.getMessageOrBuilder();
+ } else {
+ return position_ == null ?
+ Traj.GNSSPosition.getDefaultInstance() : position_;
+ }
}
/**
- * optional float acc_z = 4;
+ * .GNSSPosition position = 1;
*/
- public Builder clearAccZ() {
-
- accZ_ = 0F;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ Traj.GNSSPosition, Traj.GNSSPosition.Builder, Traj.GNSSPositionOrBuilder>
+ getPositionFieldBuilder() {
+ if (positionBuilder_ == null) {
+ positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ Traj.GNSSPosition, Traj.GNSSPosition.Builder, Traj.GNSSPositionOrBuilder>(
+ getPosition(),
+ getParentForChildren(),
+ isClean());
+ position_ = null;
+ }
+ return positionBuilder_;
}
- private float gyrX_ ;
+ private float accuracy_ ;
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
+ * float accuracy = 2;
+ * @return The accuracy.
*/
- public float getGyrX() {
- return gyrX_;
+ @java.lang.Override
+ public float getAccuracy() {
+ return accuracy_;
}
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
+ * float accuracy = 2;
+ * @param value The accuracy to set.
+ * @return This builder for chaining.
*/
- public Builder setGyrX(float value) {
+ public Builder setAccuracy(float value) {
- gyrX_ = value;
+ accuracy_ = value;
onChanged();
return this;
}
/**
*
- * radians/s
+ * metres
*
*
- * optional float gyr_x = 5;
- */
- public Builder clearGyrX() {
-
- gyrX_ = 0F;
- onChanged();
- return this;
- }
-
- private float gyrY_ ;
- /**
- * optional float gyr_y = 6;
- */
- public float getGyrY() {
- return gyrY_;
- }
- /**
- * optional float gyr_y = 6;
+ * float accuracy = 2;
+ * @return This builder for chaining.
*/
- public Builder setGyrY(float value) {
-
- gyrY_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float gyr_y = 6;
- */
- public Builder clearGyrY() {
-
- gyrY_ = 0F;
- onChanged();
- return this;
- }
-
- private float gyrZ_ ;
- /**
- * optional float gyr_z = 7;
- */
- public float getGyrZ() {
- return gyrZ_;
- }
- /**
- * optional float gyr_z = 7;
- */
- public Builder setGyrZ(float value) {
-
- gyrZ_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float gyr_z = 7;
- */
- public Builder clearGyrZ() {
+ public Builder clearAccuracy() {
- gyrZ_ = 0F;
+ accuracy_ = 0F;
onChanged();
return this;
}
- private float rotationVectorX_ ;
+ private float speed_ ;
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
+ * float speed = 3;
+ * @return The speed.
*/
- public float getRotationVectorX() {
- return rotationVectorX_;
+ @java.lang.Override
+ public float getSpeed() {
+ return speed_;
}
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
+ * float speed = 3;
+ * @param value The speed to set.
+ * @return This builder for chaining.
*/
- public Builder setRotationVectorX(float value) {
+ public Builder setSpeed(float value) {
- rotationVectorX_ = value;
+ speed_ = value;
onChanged();
return this;
}
/**
*
- * unitless, 4 components should sum to ~1
+ * m/s
*
*
- * optional float rotation_vector_x = 8;
- */
- public Builder clearRotationVectorX() {
-
- rotationVectorX_ = 0F;
- onChanged();
- return this;
- }
-
- private float rotationVectorY_ ;
- /**
- * optional float rotation_vector_y = 9;
- */
- public float getRotationVectorY() {
- return rotationVectorY_;
- }
- /**
- * optional float rotation_vector_y = 9;
- */
- public Builder setRotationVectorY(float value) {
-
- rotationVectorY_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float rotation_vector_y = 9;
- */
- public Builder clearRotationVectorY() {
-
- rotationVectorY_ = 0F;
- onChanged();
- return this;
- }
-
- private float rotationVectorZ_ ;
- /**
- * optional float rotation_vector_z = 10;
- */
- public float getRotationVectorZ() {
- return rotationVectorZ_;
- }
- /**
- * optional float rotation_vector_z = 10;
- */
- public Builder setRotationVectorZ(float value) {
-
- rotationVectorZ_ = value;
- onChanged();
- return this;
- }
- /**
- * optional float rotation_vector_z = 10;
+ * float speed = 3;
+ * @return This builder for chaining.
*/
- public Builder clearRotationVectorZ() {
+ public Builder clearSpeed() {
- rotationVectorZ_ = 0F;
+ speed_ = 0F;
onChanged();
return this;
}
- private float rotationVectorW_ ;
+ private float bearing_ ;
/**
- * optional float rotation_vector_w = 11;
+ * + * degrees + *+ * + *
float bearing = 4;
+ * @return The bearing.
*/
- public float getRotationVectorW() {
- return rotationVectorW_;
+ @java.lang.Override
+ public float getBearing() {
+ return bearing_;
}
/**
- * optional float rotation_vector_w = 11;
+ * + * degrees + *+ * + *
float bearing = 4;
+ * @param value The bearing to set.
+ * @return This builder for chaining.
*/
- public Builder setRotationVectorW(float value) {
+ public Builder setBearing(float value) {
- rotationVectorW_ = value;
+ bearing_ = value;
onChanged();
return this;
}
/**
- * optional float rotation_vector_w = 11;
+ * + * degrees + *+ * + *
float bearing = 4;
+ * @return This builder for chaining.
*/
- public Builder clearRotationVectorW() {
+ public Builder clearBearing() {
- rotationVectorW_ = 0F;
+ bearing_ = 0F;
onChanged();
return this;
}
- private int stepCount_ ;
+ private java.lang.Object provider_ = "";
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return The provider.
*/
- public int getStepCount() {
- return stepCount_;
+ public java.lang.String getProvider() {
+ java.lang.Object ref = provider_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ provider_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
}
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @return The bytes for provider.
*/
- public Builder setStepCount(int value) {
+ public com.google.protobuf.ByteString
+ getProviderBytes() {
+ java.lang.Object ref = provider_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ provider_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * e.g 'gps' or 'network' + *+ * + *
string provider = 5;
+ * @param value The provider to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProvider(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ provider_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * e.g 'gps' or 'network' + *+ * + *
string provider = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearProvider() {
- stepCount_ = value;
+ provider_ = getDefaultInstance().getProvider();
onChanged();
return this;
}
/**
*
- * Integer
+ * e.g 'gps' or 'network'
*
*
- * optional int32 step_count = 12;
+ * string provider = 5;
+ * @param value The bytes for provider to set.
+ * @return This builder for chaining.
*/
- public Builder clearStepCount() {
+ public Builder setProviderBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
- stepCount_ = 0;
+ provider_ = value;
onChanged();
return this;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+ return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:Motion_Sample)
+ // @@protoc_insertion_point(builder_scope:GNSSReading)
}
- // @@protoc_insertion_point(class_scope:Motion_Sample)
- private static final Motion_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:GNSSReading)
+ private static final Traj.GNSSReading DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Motion_Sample();
+ DEFAULT_INSTANCE = new Traj.GNSSReading();
}
- public static Motion_Sample getDefaultInstance() {
+ public static Traj.GNSSReading getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parseroptional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
long getRelativeTimestamp();
/**
- * - * uT - *- * - *
optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- float getMagX();
-
+ java.util.Listoptional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- float getMagY();
-
+ Traj.RFScan getRfScans(int index);
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ int getRfScansCount();
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ java.util.List extends Traj.RFScanOrBuilder>
+ getRfScansOrBuilderList();
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- float getMagZ();
+ Traj.RFScanOrBuilder getRfScansOrBuilder(
+ int index);
}
/**
- * Protobuf type {@code Position_Sample}
+ * Protobuf type {@code Fingerprint}
*/
- public static final class Position_Sample extends
+ public static final class Fingerprint extends
com.google.protobuf.GeneratedMessageV3 implements
- // @@protoc_insertion_point(message_implements:Position_Sample)
- Position_SampleOrBuilder {
- // Use Position_Sample.newBuilder() to construct.
- private Position_Sample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // @@protoc_insertion_point(message_implements:Fingerprint)
+ FingerprintOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Fingerprint.newBuilder() to construct.
+ private Fingerprint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Position_Sample() {
- relativeTimestamp_ = 0L;
- magX_ = 0F;
- magY_ = 0F;
- magZ_ = 0F;
+ private Fingerprint() {
+ rfScans_ = java.util.Collections.emptyList();
}
- @Override
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new Fingerprint();
+ }
+
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
- return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ return this.unknownFields;
}
- private Position_Sample(
+ private Fingerprint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
@@ -6801,96 +14565,110 @@ private Position_Sample(
case 0:
done = true;
break;
- default: {
- if (!input.skipField(tag)) {
- done = true;
- }
- break;
- }
case 8: {
relativeTimestamp_ = input.readInt64();
break;
}
- case 21: {
-
- magX_ = input.readFloat();
- break;
- }
- case 29: {
-
- magY_ = input.readFloat();
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ rfScans_ = new java.util.ArrayListoptional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
+ @java.lang.Override
public long getRelativeTimestamp() {
return relativeTimestamp_;
}
- public static final int MAG_X_FIELD_NUMBER = 2;
- private float magX_;
+ public static final int RF_SCANS_FIELD_NUMBER = 2;
+ private java.util.List- * uT - *- * - *
optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagX() {
- return magX_;
+ @java.lang.Override
+ public java.util.Listoptional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagY() {
- return magY_;
+ @java.lang.Override
+ public java.util.List extends Traj.RFScanOrBuilder>
+ getRfScansOrBuilderList() {
+ return rfScans_;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ @java.lang.Override
+ public int getRfScansCount() {
+ return rfScans_.size();
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ @java.lang.Override
+ public Traj.RFScan getRfScans(int index) {
+ return rfScans_.get(index);
}
-
- public static final int MAG_Z_FIELD_NUMBER = 4;
- private float magZ_;
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagZ() {
- return magZ_;
+ @java.lang.Override
+ public Traj.RFScanOrBuilder getRfScansOrBuilder(
+ int index) {
+ return rfScans_.get(index);
}
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -6900,22 +14678,19 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (relativeTimestamp_ != 0L) {
output.writeInt64(1, relativeTimestamp_);
}
- if (magX_ != 0F) {
- output.writeFloat(2, magX_);
- }
- if (magY_ != 0F) {
- output.writeFloat(3, magY_);
- }
- if (magZ_ != 0F) {
- output.writeFloat(4, magZ_);
+ for (int i = 0; i < rfScans_.size(); i++) {
+ output.writeMessage(2, rfScans_.get(i));
}
+ unknownFields.writeTo(output);
}
+ @java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
@@ -6925,127 +14700,115 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, relativeTimestamp_);
}
- if (magX_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, magX_);
- }
- if (magY_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, magY_);
- }
- if (magZ_ != 0F) {
+ for (int i = 0; i < rfScans_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(4, magZ_);
+ .computeMessageSize(2, rfScans_.get(i));
}
+ size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
- if (!(obj instanceof Position_Sample)) {
+ if (!(obj instanceof Traj.Fingerprint)) {
return super.equals(obj);
}
- Position_Sample other = (Position_Sample) obj;
-
- boolean result = true;
- result = result && (getRelativeTimestamp()
- == other.getRelativeTimestamp());
- result = result && (
- Float.floatToIntBits(getMagX())
- == Float.floatToIntBits(
- other.getMagX()));
- result = result && (
- Float.floatToIntBits(getMagY())
- == Float.floatToIntBits(
- other.getMagY()));
- result = result && (
- Float.floatToIntBits(getMagZ())
- == Float.floatToIntBits(
- other.getMagZ()));
- return result;
- }
-
- @Override
+ Traj.Fingerprint other = (Traj.Fingerprint) obj;
+
+ if (getRelativeTimestamp()
+ != other.getRelativeTimestamp()) return false;
+ if (!getRfScansList()
+ .equals(other.getRfScansList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
- hash = (19 * hash) + getDescriptorForType().hashCode();
+ hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + RELATIVE_TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getRelativeTimestamp());
- hash = (37 * hash) + MAG_X_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getMagX());
- hash = (37 * hash) + MAG_Y_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getMagY());
- hash = (37 * hash) + MAG_Z_FIELD_NUMBER;
- hash = (53 * hash) + Float.floatToIntBits(
- getMagZ());
+ if (getRfScansCount() > 0) {
+ hash = (37 * hash) + RF_SCANS_FIELD_NUMBER;
+ hash = (53 * hash) + getRfScansList().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
- public static Position_Sample parseFrom(
+ public static Traj.Fingerprint parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Traj.Fingerprint parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static Traj.Fingerprint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Position_Sample parseFrom(
+ public static Traj.Fingerprint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Position_Sample parseFrom(byte[] data)
+ public static Traj.Fingerprint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Position_Sample parseFrom(
+ public static Traj.Fingerprint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Position_Sample parseFrom(java.io.InputStream input)
+ public static Traj.Fingerprint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Position_Sample parseFrom(
+ public static Traj.Fingerprint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Position_Sample parseDelimitedFrom(java.io.InputStream input)
+ public static Traj.Fingerprint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
- public static Position_Sample parseDelimitedFrom(
+ public static Traj.Fingerprint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static Position_Sample parseFrom(
+ public static Traj.Fingerprint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
- public static Position_Sample parseFrom(
+ public static Traj.Fingerprint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
@@ -7053,44 +14816,47 @@ public static Position_Sample parseFrom(
.parseWithIOException(PARSER, input, extensionRegistry);
}
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
- public static Builder newBuilder(Position_Sample prototype) {
+ public static Builder newBuilder(Traj.Fingerprint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
+ @java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code Position_Sample}
+ * Protobuf type {@code Fingerprint}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderoptional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return The relativeTimestamp.
*/
+ @java.lang.Override
public long getRelativeTimestamp() {
return relativeTimestamp_;
}
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @param value The relativeTimestamp to set.
+ * @return This builder for chaining.
*/
public Builder setRelativeTimestamp(long value) {
@@ -7237,7 +15048,8 @@ public Builder setRelativeTimestamp(long value) {
return this;
}
/**
- * optional int64 relative_timestamp = 1;
+ * int64 relative_timestamp = 1;
+ * @return This builder for chaining.
*/
public Builder clearRelativeTimestamp() {
@@ -7246,189 +15058,395 @@ public Builder clearRelativeTimestamp() {
return this;
}
- private float magX_ ;
+ private java.util.List- * uT - *- * - *
optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagX() {
- return magX_;
+ public java.util.List- * uT - *- * - *
optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder setMagX(float value) {
-
- magX_ = value;
- onChanged();
+ public int getRfScansCount() {
+ if (rfScansBuilder_ == null) {
+ return rfScans_.size();
+ } else {
+ return rfScansBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Traj.RFScan getRfScans(int index) {
+ if (rfScansBuilder_ == null) {
+ return rfScans_.get(index);
+ } else {
+ return rfScansBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder setRfScans(
+ int index, Traj.RFScan value) {
+ if (rfScansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRfScansIsMutable();
+ rfScans_.set(index, value);
+ onChanged();
+ } else {
+ rfScansBuilder_.setMessage(index, value);
+ }
return this;
}
/**
- * - * uT - *- * - *
optional float mag_x = 2;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder clearMagX() {
-
- magX_ = 0F;
- onChanged();
+ public Builder setRfScans(
+ int index, Traj.RFScan.Builder builderForValue) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rfScansBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
}
-
- private float magY_ ;
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder addRfScans(Traj.RFScan value) {
+ if (rfScansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRfScansIsMutable();
+ rfScans_.add(value);
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder addRfScans(
+ int index, Traj.RFScan value) {
+ if (rfScansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRfScansIsMutable();
+ rfScans_.add(index, value);
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder addRfScans(
+ Traj.RFScan.Builder builderForValue) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder addRfScans(
+ int index, Traj.RFScan.Builder builderForValue) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rfScansBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder addAllRfScans(
+ java.lang.Iterable extends Traj.RFScan> values) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rfScans_);
+ onChanged();
+ } else {
+ rfScansBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder clearRfScans() {
+ if (rfScansBuilder_ == null) {
+ rfScans_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ rfScansBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Builder removeRfScans(int index) {
+ if (rfScansBuilder_ == null) {
+ ensureRfScansIsMutable();
+ rfScans_.remove(index);
+ onChanged();
+ } else {
+ rfScansBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
+ */
+ public Traj.RFScan.Builder getRfScansBuilder(
+ int index) {
+ return getRfScansFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagY() {
- return magY_;
+ public Traj.RFScanOrBuilder getRfScansOrBuilder(
+ int index) {
+ if (rfScansBuilder_ == null) {
+ return rfScans_.get(index); } else {
+ return rfScansBuilder_.getMessageOrBuilder(index);
+ }
}
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder setMagY(float value) {
-
- magY_ = value;
- onChanged();
- return this;
+ public java.util.List extends Traj.RFScanOrBuilder>
+ getRfScansOrBuilderList() {
+ if (rfScansBuilder_ != null) {
+ return rfScansBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rfScans_);
+ }
}
/**
- * optional float mag_y = 3;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder clearMagY() {
-
- magY_ = 0F;
- onChanged();
- return this;
+ public Traj.RFScan.Builder addRfScansBuilder() {
+ return getRfScansFieldBuilder().addBuilder(
+ Traj.RFScan.getDefaultInstance());
}
-
- private float magZ_ ;
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public float getMagZ() {
- return magZ_;
+ public Traj.RFScan.Builder addRfScansBuilder(
+ int index) {
+ return getRfScansFieldBuilder().addBuilder(
+ index, Traj.RFScan.getDefaultInstance());
}
/**
- * optional float mag_z = 4;
+ * repeated .RFScan rf_scans = 2;
*/
- public Builder setMagZ(float value) {
-
- magZ_ = value;
- onChanged();
- return this;
+ public java.util.Listoptional float mag_z = 4;
- */
- public Builder clearMagZ() {
-
- magZ_ = 0F;
- onChanged();
- return this;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ Traj.RFScan, Traj.RFScan.Builder, Traj.RFScanOrBuilder>
+ getRfScansFieldBuilder() {
+ if (rfScansBuilder_ == null) {
+ rfScansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ Traj.RFScan, Traj.RFScan.Builder, Traj.RFScanOrBuilder>(
+ rfScans_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ rfScans_ = null;
+ }
+ return rfScansBuilder_;
}
+ @java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+ return super.setUnknownFields(unknownFields);
}
+ @java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
- return this;
+ return super.mergeUnknownFields(unknownFields);
}
- // @@protoc_insertion_point(builder_scope:Position_Sample)
+ // @@protoc_insertion_point(builder_scope:Fingerprint)
}
- // @@protoc_insertion_point(class_scope:Position_Sample)
- private static final Position_Sample DEFAULT_INSTANCE;
+ // @@protoc_insertion_point(class_scope:Fingerprint)
+ private static final Traj.Fingerprint DEFAULT_INSTANCE;
static {
- DEFAULT_INSTANCE = new Position_Sample();
+ DEFAULT_INSTANCE = new Traj.Fingerprint();
}
- public static Position_Sample getDefaultInstance() {
+ public static Traj.Fingerprint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser