From 5a83497b2b4c7880063832b46ebfe42bf259246b Mon Sep 17 00:00:00 2001 From: xinfengkun Date: Mon, 14 Mar 2022 14:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zhidao/adas/client/bean/Base.java | 2 +- .../com/zhidao/adas/client/bean/Config.java | 11 + .../adas/client/ui/mian/ConfigAdapter.java | 62 + .../adas/client/ui/mian/InfoFragment.java | 7 +- .../adas/client/ui/mian/MainActivity.java | 2 +- .../adas/client/ui/mian/VersionFragment.java | 105 +- .../src/main/res/layout/fragment_version.xml | 148 +- .../src/main/res/layout/item_config.xml | 19 + .../debug/google/protobuf/any.proto | 155 - .../debug/google/protobuf/api.proto | 210 - .../google/protobuf/compiler/plugin.proto | 178 - .../debug/google/protobuf/descriptor.proto | 909 - .../debug/google/protobuf/duration.proto | 116 - .../debug/google/protobuf/empty.proto | 52 - .../debug/google/protobuf/field_mask.proto | 245 - .../google/protobuf/source_context.proto | 48 - .../debug/google/protobuf/struct.proto | 95 - .../debug/google/protobuf/timestamp.proto | 138 - .../debug/google/protobuf/type.proto | 187 - .../debug/google/protobuf/wrappers.proto | 123 - .../com/zhjt/mogo/adas/data/BuildConfig.java | 18 - .../proto/debug/java/chassis/Chassis.java | 654 - .../java/chassis/VehicleStateOuterClass.java | 4068 --- .../debug/java/common/HeaderOuterClass.java | 1973 -- .../java/mogo/telematics/pad/MessagePad.java | 24953 ---------------- .../debug/java/mogo_msg/MogoReportMsg.java | 2906 -- .../record_cache/RecordPanelOuterClass.java | 5023 ---- .../debug/aapt/AndroidManifest.xml | 10 - .../debug/aapt/output.json | 1 - .../debug/annotationProcessors.json | 1 - .../compile_library_classes/debug/classes.jar | Bin 429876 -> 0 bytes .../debug/R.jar | Bin 312 -> 0 bytes .../debug/createFullJarDebug/full.jar | Bin 436298 -> 0 bytes .../mergeDebugJniLibFolders/merger.xml | 2 - .../incremental/mergeDebugShaders/merger.xml | 2 - .../incremental/packageDebugAssets/merger.xml | 2 - .../compile-file-map.properties | 1 - .../packageDebugResources/merger.xml | 2 - .../chassis/Chassis$EPSSteeringMode$1.class | Bin 1007 -> 0 bytes .../chassis/Chassis$EPSSteeringMode.class | Bin 4023 -> 0 bytes .../chassis/Chassis$GearPosition$1.class | Bin 989 -> 0 bytes .../chassis/Chassis$GearPosition.class | Bin 3903 -> 0 bytes .../chassis/Chassis$LightSwitch$1.class | Bin 983 -> 0 bytes .../classes/chassis/Chassis$LightSwitch.class | Bin 4045 -> 0 bytes .../Chassis$LongitudeDrivingMode$1.class | Bin 1037 -> 0 bytes .../Chassis$LongitudeDrivingMode.class | Bin 3978 -> 0 bytes .../classes/chassis/Chassis$PilotMode$1.class | Bin 971 -> 0 bytes .../classes/chassis/Chassis$PilotMode.class | Bin 3822 -> 0 bytes .../javac/debug/classes/chassis/Chassis.class | Bin 2128 -> 0 bytes .../chassis/VehicleStateOuterClass$1.class | Bin 230 -> 0 bytes ...ehicleStateOuterClass$VehicleState$1.class | Bin 1423 -> 0 bytes ...StateOuterClass$VehicleState$Builder.class | Bin 33874 -> 0 bytes .../VehicleStateOuterClass$VehicleState.class | Bin 31740 -> 0 bytes ...tateOuterClass$VehicleStateOrBuilder.class | Bin 2487 -> 0 bytes .../chassis/VehicleStateOuterClass.class | Bin 4184 -> 0 bytes .../com/zhjt/mogo/adas/data/BuildConfig.class | Bin 840 -> 0 bytes .../classes/common/HeaderOuterClass$1.class | Bin 210 -> 0 bytes .../common/HeaderOuterClass$Header$1.class | Bin 1325 -> 0 bytes .../HeaderOuterClass$Header$Builder.class | Bin 18761 -> 0 bytes .../common/HeaderOuterClass$Header.class | Bin 16443 -> 0 bytes .../HeaderOuterClass$HeaderOrBuilder.class | Bin 770 -> 0 bytes .../common/HeaderOuterClass$Time$1.class | Bin 1313 -> 0 bytes .../HeaderOuterClass$Time$Builder.class | Bin 13023 -> 0 bytes .../common/HeaderOuterClass$Time.class | Bin 12775 -> 0 bytes .../HeaderOuterClass$TimeOrBuilder.class | Bin 336 -> 0 bytes .../classes/common/HeaderOuterClass.class | Bin 3012 -> 0 bytes .../mogo/telematics/pad/MessagePad$1.class | Bin 218 -> 0 bytes .../MessagePad$ArrivalNotification$1.class | Bin 1453 -> 0 bytes ...ssagePad$ArrivalNotification$Builder.class | Bin 16407 -> 0 bytes .../pad/MessagePad$ArrivalNotification.class | Bin 14349 -> 0 bytes ...sagePad$ArrivalNotificationOrBuilder.class | Bin 656 -> 0 bytes .../pad/MessagePad$AutopilotState$1.class | Bin 1423 -> 0 bytes .../MessagePad$AutopilotState$Builder.class | Bin 16280 -> 0 bytes .../pad/MessagePad$AutopilotState.class | Bin 16182 -> 0 bytes .../MessagePad$AutopilotStateOrBuilder.class | Bin 520 -> 0 bytes .../pad/MessagePad$BasicInfoReq$1.class | Bin 1411 -> 0 bytes .../pad/MessagePad$BasicInfoReq$Builder.class | Bin 12078 -> 0 bytes .../pad/MessagePad$BasicInfoReq.class | Bin 11787 -> 0 bytes .../MessagePad$BasicInfoReqOrBuilder.class | Bin 278 -> 0 bytes .../pad/MessagePad$BasicInfoResp$1.class | Bin 1417 -> 0 bytes .../MessagePad$BasicInfoResp$Builder.class | Bin 14225 -> 0 bytes .../pad/MessagePad$BasicInfoResp.class | Bin 13970 -> 0 bytes .../MessagePad$BasicInfoRespOrBuilder.class | Bin 408 -> 0 bytes .../pad/MessagePad$CarConfigReq$1.class | Bin 1411 -> 0 bytes .../pad/MessagePad$CarConfigReq$Builder.class | Bin 12078 -> 0 bytes .../pad/MessagePad$CarConfigReq.class | Bin 11787 -> 0 bytes .../MessagePad$CarConfigReqOrBuilder.class | Bin 278 -> 0 bytes .../pad/MessagePad$CarConfigResp$1.class | Bin 1417 -> 0 bytes .../MessagePad$CarConfigResp$Builder.class | Bin 18663 -> 0 bytes .../pad/MessagePad$CarConfigResp.class | Bin 18362 -> 0 bytes .../MessagePad$CarConfigRespOrBuilder.class | Bin 818 -> 0 bytes .../pad/MessagePad$GlobalPathReq$1.class | Bin 1417 -> 0 bytes .../MessagePad$GlobalPathReq$Builder.class | Bin 12099 -> 0 bytes .../pad/MessagePad$GlobalPathReq.class | Bin 11813 -> 0 bytes .../MessagePad$GlobalPathReqOrBuilder.class | Bin 280 -> 0 bytes .../pad/MessagePad$GlobalPathResp$1.class | Bin 1423 -> 0 bytes .../MessagePad$GlobalPathResp$Builder.class | Bin 19832 -> 0 bytes .../pad/MessagePad$GlobalPathResp.class | Bin 14264 -> 0 bytes .../MessagePad$GlobalPathRespOrBuilder.class | Bin 870 -> 0 bytes .../pad/MessagePad$GnssInfo$1.class | Bin 1387 -> 0 bytes .../pad/MessagePad$GnssInfo$Builder.class | Bin 16042 -> 0 bytes .../telematics/pad/MessagePad$GnssInfo.class | Bin 16170 -> 0 bytes .../pad/MessagePad$GnssInfoOrBuilder.class | Bin 511 -> 0 bytes .../telematics/pad/MessagePad$Header$1.class | Bin 1375 -> 0 bytes .../pad/MessagePad$Header$Builder.class | Bin 14599 -> 0 bytes .../telematics/pad/MessagePad$Header.class | Bin 14426 -> 0 bytes .../pad/MessagePad$HeaderOrBuilder.class | Bin 521 -> 0 bytes .../pad/MessagePad$Location$1.class | Bin 1387 -> 0 bytes .../pad/MessagePad$Location$Builder.class | Bin 13663 -> 0 bytes .../telematics/pad/MessagePad$Location.class | Bin 13653 -> 0 bytes .../pad/MessagePad$LocationOrBuilder.class | Bin 364 -> 0 bytes .../pad/MessagePad$MessageType$1.class | Bin 1076 -> 0 bytes .../pad/MessagePad$MessageType.class | Bin 6869 -> 0 bytes .../pad/MessagePad$ProtocolVersion$1.class | Bin 1100 -> 0 bytes .../pad/MessagePad$ProtocolVersion.class | Bin 4139 -> 0 bytes .../pad/MessagePad$RecordCause$1.class | Bin 1405 -> 0 bytes .../pad/MessagePad$RecordCause$Builder.class | Bin 15959 -> 0 bytes .../pad/MessagePad$RecordCause.class | Bin 15686 -> 0 bytes .../pad/MessagePad$RecordCauseOrBuilder.class | Bin 502 -> 0 bytes .../pad/MessagePad$RecordData$1.class | Bin 1399 -> 0 bytes .../pad/MessagePad$RecordData$Builder.class | Bin 14151 -> 0 bytes .../pad/MessagePad$RecordData.class | Bin 14015 -> 0 bytes .../pad/MessagePad$RecordDataOrBuilder.class | Bin 385 -> 0 bytes .../pad/MessagePad$RouteInfo$1.class | Bin 1393 -> 0 bytes .../pad/MessagePad$RouteInfo$Builder.class | Bin 27863 -> 0 bytes .../telematics/pad/MessagePad$RouteInfo.class | Bin 20510 -> 0 bytes .../pad/MessagePad$RouteInfoOrBuilder.class | Bin 1380 -> 0 bytes .../MessagePad$SetAutopilotModeReq$1.class | Bin 1453 -> 0 bytes ...ssagePad$SetAutopilotModeReq$Builder.class | Bin 16776 -> 0 bytes .../pad/MessagePad$SetAutopilotModeReq.class | Bin 14717 -> 0 bytes ...sagePad$SetAutopilotModeReqOrBuilder.class | Bin 673 -> 0 bytes .../MessagePad$SetAutopilotSpeedReq$1.class | Bin 1459 -> 0 bytes ...sagePad$SetAutopilotSpeedReq$Builder.class | Bin 12780 -> 0 bytes .../pad/MessagePad$SetAutopilotSpeedReq.class | Bin 12747 -> 0 bytes ...agePad$SetAutopilotSpeedReqOrBuilder.class | Bin 324 -> 0 bytes .../pad/MessagePad$SetDemoModeReq$1.class | Bin 1423 -> 0 bytes .../MessagePad$SetDemoModeReq$Builder.class | Bin 12620 -> 0 bytes .../pad/MessagePad$SetDemoModeReq.class | Bin 12410 -> 0 bytes .../MessagePad$SetDemoModeReqOrBuilder.class | Bin 308 -> 0 bytes .../pad/MessagePad$TrackedObject$1.class | Bin 1417 -> 0 bytes .../MessagePad$TrackedObject$Builder.class | Bin 19091 -> 0 bytes .../pad/MessagePad$TrackedObject.class | Bin 19139 -> 0 bytes .../MessagePad$TrackedObjectOrBuilder.class | Bin 679 -> 0 bytes .../pad/MessagePad$TrackedObjects$1.class | Bin 1423 -> 0 bytes .../MessagePad$TrackedObjects$Builder.class | Bin 19879 -> 0 bytes .../pad/MessagePad$TrackedObjects.class | Bin 14266 -> 0 bytes .../MessagePad$TrackedObjectsOrBuilder.class | Bin 885 -> 0 bytes .../pad/MessagePad$TrafficLightData$1.class | Bin 1435 -> 0 bytes .../MessagePad$TrafficLightData$Builder.class | Bin 22012 -> 0 bytes .../pad/MessagePad$TrafficLightData.class | Bin 19951 -> 0 bytes ...MessagePad$TrafficLightDataOrBuilder.class | Bin 1029 -> 0 bytes .../pad/MessagePad$TrafficLightDetail$1.class | Bin 1447 -> 0 bytes ...essagePad$TrafficLightDetail$Builder.class | Bin 18925 -> 0 bytes .../pad/MessagePad$TrafficLightDetail.class | Bin 15315 -> 0 bytes ...ssagePad$TrafficLightDetailOrBuilder.class | Bin 792 -> 0 bytes .../pad/MessagePad$TrafficLightStatus$1.class | Bin 1447 -> 0 bytes ...essagePad$TrafficLightStatus$Builder.class | Bin 15247 -> 0 bytes .../pad/MessagePad$TrafficLightStatus.class | Bin 14954 -> 0 bytes ...ssagePad$TrafficLightStatusOrBuilder.class | Bin 466 -> 0 bytes .../pad/MessagePad$Trajectory$1.class | Bin 1399 -> 0 bytes .../pad/MessagePad$Trajectory$Builder.class | Bin 19849 -> 0 bytes .../pad/MessagePad$Trajectory.class | Bin 14186 -> 0 bytes .../pad/MessagePad$TrajectoryOrBuilder.class | Bin 903 -> 0 bytes .../pad/MessagePad$TrajectoryPoint$1.class | Bin 1429 -> 0 bytes .../MessagePad$TrajectoryPoint$Builder.class | Bin 16203 -> 0 bytes .../pad/MessagePad$TrajectoryPoint.class | Bin 16359 -> 0 bytes .../MessagePad$TrajectoryPointOrBuilder.class | Bin 525 -> 0 bytes .../telematics/pad/MessagePad$Warn$1.class | Bin 1363 -> 0 bytes .../pad/MessagePad$Warn$Builder.class | Bin 15236 -> 0 bytes .../mogo/telematics/pad/MessagePad$Warn.class | Bin 14915 -> 0 bytes .../pad/MessagePad$WarnOrBuilder.class | Bin 455 -> 0 bytes .../mogo/telematics/pad/MessagePad.class | Bin 19689 -> 0 bytes .../classes/mogo_msg/MogoReportMsg$1.class | Bin 205 -> 0 bytes .../MogoReportMsg$MogoMsgTimestamp$1.class | Bin 1374 -> 0 bytes ...goReportMsg$MogoMsgTimestamp$Builder.class | Bin 13323 -> 0 bytes .../MogoReportMsg$MogoMsgTimestamp.class | Bin 13121 -> 0 bytes ...oReportMsg$MogoMsgTimestampOrBuilder.class | Bin 355 -> 0 bytes .../MogoReportMsg$MogoReportMessage$1.class | Bin 1380 -> 0 bytes ...oReportMsg$MogoReportMessage$Builder.class | Bin 25245 -> 0 bytes .../MogoReportMsg$MogoReportMessage.class | Bin 21200 -> 0 bytes ...ReportMsg$MogoReportMessageOrBuilder.class | Bin 1265 -> 0 bytes .../classes/mogo_msg/MogoReportMsg.class | Bin 3278 -> 0 bytes .../RecordPanelOuterClass$1.class | Bin 237 -> 0 bytes .../RecordPanelOuterClass$RecordItem$1.class | Bin 1442 -> 0 bytes ...rdPanelOuterClass$RecordItem$Builder.class | Bin 14710 -> 0 bytes .../RecordPanelOuterClass$RecordItem.class | Bin 14317 -> 0 bytes ...dPanelOuterClass$RecordItemOrBuilder.class | Bin 463 -> 0 bytes .../RecordPanelOuterClass$RecordPanel$1.class | Bin 1448 -> 0 bytes ...dPanelOuterClass$RecordPanel$Builder.class | Bin 37064 -> 0 bytes .../RecordPanelOuterClass$RecordPanel.class | Bin 27479 -> 0 bytes ...PanelOuterClass$RecordPanelOrBuilder.class | Bin 2342 -> 0 bytes .../RecordPanelOuterClass$TriggerInfo$1.class | Bin 1448 -> 0 bytes ...dPanelOuterClass$TriggerInfo$Builder.class | Bin 15944 -> 0 bytes .../RecordPanelOuterClass$TriggerInfo.class | Bin 15473 -> 0 bytes ...PanelOuterClass$TriggerInfoOrBuilder.class | Bin 547 -> 0 bytes .../record_cache/RecordPanelOuterClass.class | Bin 4283 -> 0 bytes .../library_java_res/debug/res.jar | Bin 6452 -> 0 bytes .../debug/AndroidManifest.xml | 10 - .../parseDebugLibraryResources/R-def.txt | 2 - .../manifest-merger-blame-debug-report.txt | 12 - .../merged_manifests/debug/output.json | 1 - .../debug/package-aware-r.txt | 1 - .../runtime_library_classes/debug/classes.jar | Bin 429876 -> 0 bytes .../debug/chassis.proto | 41 - .../debug/header.proto | 23 - .../debug/message_pad.proto | 277 - .../debug/mogo_report_msg.proto | 21 - .../debug/record_panel.proto | 35 - .../debug/vehicle_state.proto | 41 - .../build/intermediates/symbols/debug/R.txt | 0 .../logs/manifest-merger-debug-report.txt | 31 - 211 files changed, 155 insertions(+), 42768 deletions(-) create mode 100644 app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Config.java create mode 100644 app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/ConfigAdapter.java create mode 100644 app_ipc_monitoring/src/main/res/layout/item_config.xml delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/any.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/api.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/compiler/plugin.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/descriptor.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/duration.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/empty.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/field_mask.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/source_context.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/struct.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/timestamp.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/type.proto delete mode 100644 libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/wrappers.proto delete mode 100644 libraries/mogo-adas-data/build/generated/source/buildConfig/debug/com/zhjt/mogo/adas/data/BuildConfig.java delete mode 100644 libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/Chassis.java delete mode 100644 libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/VehicleStateOuterClass.java delete mode 100644 libraries/mogo-adas-data/build/generated/source/proto/debug/java/common/HeaderOuterClass.java delete mode 100644 libraries/mogo-adas-data/build/generated/source/proto/debug/java/mogo/telematics/pad/MessagePad.java delete mode 100644 libraries/mogo-adas-data/build/generated/source/proto/debug/java/mogo_msg/MogoReportMsg.java delete mode 100644 libraries/mogo-adas-data/build/generated/source/proto/debug/java/record_cache/RecordPanelOuterClass.java delete mode 100644 libraries/mogo-adas-data/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml delete mode 100644 libraries/mogo-adas-data/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json delete mode 100644 libraries/mogo-adas-data/build/intermediates/annotation_processor_list/debug/annotationProcessors.json delete mode 100644 libraries/mogo-adas-data/build/intermediates/compile_library_classes/debug/classes.jar delete mode 100644 libraries/mogo-adas-data/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar delete mode 100644 libraries/mogo-adas-data/build/intermediates/full_jar/debug/createFullJarDebug/full.jar delete mode 100644 libraries/mogo-adas-data/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml delete mode 100644 libraries/mogo-adas-data/build/intermediates/incremental/mergeDebugShaders/merger.xml delete mode 100644 libraries/mogo-adas-data/build/intermediates/incremental/packageDebugAssets/merger.xml delete mode 100644 libraries/mogo-adas-data/build/intermediates/incremental/packageDebugResources/compile-file-map.properties delete mode 100644 libraries/mogo-adas-data/build/intermediates/incremental/packageDebugResources/merger.xml delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$EPSSteeringMode$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$EPSSteeringMode.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$GearPosition$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$GearPosition.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$LightSwitch$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$LightSwitch.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$LongitudeDrivingMode$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$LongitudeDrivingMode.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$PilotMode$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis$PilotMode.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/Chassis.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/VehicleStateOuterClass$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/VehicleStateOuterClass$VehicleState$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/VehicleStateOuterClass$VehicleState$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/VehicleStateOuterClass$VehicleState.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/VehicleStateOuterClass$VehicleStateOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/chassis/VehicleStateOuterClass.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/com/zhjt/mogo/adas/data/BuildConfig.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$Header$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$Header$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$Header.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$HeaderOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$Time$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$Time$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$Time.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass$TimeOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/common/HeaderOuterClass.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$ArrivalNotification$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$ArrivalNotification$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$ArrivalNotification.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$ArrivalNotificationOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$AutopilotState$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$AutopilotState$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$AutopilotState.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$AutopilotStateOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoReq$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoReq$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoReq.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoReqOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoResp$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoResp$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoResp.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$BasicInfoRespOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigReq$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigReq$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigReq.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigReqOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigResp$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigResp$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigResp.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$CarConfigRespOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathReq$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathReq$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathReq.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathReqOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathResp$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathResp$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathResp.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GlobalPathRespOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GnssInfo$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GnssInfo$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GnssInfo.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$GnssInfoOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Header$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Header$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Header.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$HeaderOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Location$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Location$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Location.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$LocationOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$MessageType$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$MessageType.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$ProtocolVersion$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$ProtocolVersion.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordCause$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordCause$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordCause.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordCauseOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordData$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordData$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordData.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RecordDataOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RouteInfo$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RouteInfo$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RouteInfo.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$RouteInfoOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotModeReq$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotModeReq$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotModeReq.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotModeReqOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotSpeedReq$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotSpeedReq$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotSpeedReq.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetAutopilotSpeedReqOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetDemoModeReq$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetDemoModeReq$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetDemoModeReq.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$SetDemoModeReqOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObject$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObject$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObject.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObjectOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObjects$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObjects$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObjects.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrackedObjectsOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightData$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightData$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightData.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightDataOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightDetail$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightDetail$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightDetail.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightDetailOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightStatus$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightStatus$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightStatus.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrafficLightStatusOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Trajectory$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Trajectory$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Trajectory.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrajectoryOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrajectoryPoint$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrajectoryPoint$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrajectoryPoint.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$TrajectoryPointOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Warn$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Warn$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$Warn.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad$WarnOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo/telematics/pad/MessagePad.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoMsgTimestamp$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoMsgTimestamp$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoMsgTimestamp.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoMsgTimestampOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoReportMessage$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoReportMessage$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoReportMessage.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg$MogoReportMessageOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/mogo_msg/MogoReportMsg.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordItem$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordItem$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordItem.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordItemOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordPanel$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordPanel$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordPanel.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$RecordPanelOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$TriggerInfo$1.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$TriggerInfo$Builder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$TriggerInfo.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass$TriggerInfoOrBuilder.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/javac/debug/classes/record_cache/RecordPanelOuterClass.class delete mode 100644 libraries/mogo-adas-data/build/intermediates/library_java_res/debug/res.jar delete mode 100644 libraries/mogo-adas-data/build/intermediates/library_manifest/debug/AndroidManifest.xml delete mode 100644 libraries/mogo-adas-data/build/intermediates/local_only_symbol_list/debug/parseDebugLibraryResources/R-def.txt delete mode 100644 libraries/mogo-adas-data/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt delete mode 100644 libraries/mogo-adas-data/build/intermediates/merged_manifests/debug/output.json delete mode 100644 libraries/mogo-adas-data/build/intermediates/res/symbol-table-with-package/debug/package-aware-r.txt delete mode 100644 libraries/mogo-adas-data/build/intermediates/runtime_library_classes/debug/classes.jar delete mode 100644 libraries/mogo-adas-data/build/intermediates/sourceFolderJavaResources/debug/chassis.proto delete mode 100644 libraries/mogo-adas-data/build/intermediates/sourceFolderJavaResources/debug/header.proto delete mode 100644 libraries/mogo-adas-data/build/intermediates/sourceFolderJavaResources/debug/message_pad.proto delete mode 100644 libraries/mogo-adas-data/build/intermediates/sourceFolderJavaResources/debug/mogo_report_msg.proto delete mode 100644 libraries/mogo-adas-data/build/intermediates/sourceFolderJavaResources/debug/record_panel.proto delete mode 100644 libraries/mogo-adas-data/build/intermediates/sourceFolderJavaResources/debug/vehicle_state.proto delete mode 100644 libraries/mogo-adas-data/build/intermediates/symbols/debug/R.txt delete mode 100644 libraries/mogo-adas-data/build/outputs/logs/manifest-merger-debug-report.txt diff --git a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Base.java b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Base.java index 55b76ef370..9fad0c832e 100644 --- a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Base.java +++ b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Base.java @@ -16,6 +16,6 @@ public abstract class Base { @Override public String toString() { - return len + "##Header:[" + TextFormat.shortDebugString(header)+"]\n"; + return len + "##Header:[" + TextFormat.printer().escapingNonAscii(false).printToString(header)+"]\n"; } } diff --git a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Config.java b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Config.java new file mode 100644 index 0000000000..9f18c1fd2b --- /dev/null +++ b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/bean/Config.java @@ -0,0 +1,11 @@ +package com.zhidao.adas.client.bean; + +public class Config { + public final String name; + public final String value; + + public Config(String name, String value) { + this.name = name; + this.value = value; + } +} diff --git a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/ConfigAdapter.java b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/ConfigAdapter.java new file mode 100644 index 0000000000..88dd8b7c35 --- /dev/null +++ b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/ConfigAdapter.java @@ -0,0 +1,62 @@ +package com.zhidao.adas.client.ui.mian; + +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; + +import com.zhidao.adas.client.R; +import com.zhidao.adas.client.base.BaseAdapter; +import com.zhidao.adas.client.base.BaseViewHolder; +import com.zhidao.adas.client.bean.Config; + +import java.util.List; + +/** + * @author song kenan + * @des + * @date 2021/8/13 + */ +public class ConfigAdapter extends BaseAdapter { + + + public ConfigAdapter() { + + } + + @Override + public void setData(List mDatas) { + super.setData(mDatas); + } + + @Override + protected void onBindDataToItem(ViewHolder viewHolder, Config data, int position) { + if (data == null) { + return; + } + viewHolder.name.setText(data.name); + viewHolder.value.setText(data.value); + + } + + @Override + protected View getItemViewResource(ViewGroup viewGroup) { + return LayoutInflater.from(mContext).inflate(R.layout.item_config, viewGroup, false); + } + + @Override + protected ViewHolder getViewHolder(View view) { + return new ViewHolder(view, this); + } + + class ViewHolder extends BaseViewHolder { + TextView name; + TextView value; + + public ViewHolder(View itemView, ConfigAdapter adapter) { + super(itemView, adapter); + name = itemView.findViewById(R.id.name); + value = itemView.findViewById(R.id.value); + } + } +} diff --git a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/InfoFragment.java b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/InfoFragment.java index 3baacd77f4..51d06b0e10 100644 --- a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/InfoFragment.java +++ b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/InfoFragment.java @@ -90,7 +90,7 @@ public class InfoFragment extends Fragment { //创建默认的线性LayoutManager 横向的GridLayoutManager MyLinearLayoutManager linearLayoutManager = new MyLinearLayoutManager(this.getContext()); linearLayoutManager.setStackFromEnd(true);//列表再底部开始展示,反转后由上面开始展示 - linearLayoutManager.setReverseLayout(true);//列表翻转 +// linearLayoutManager.setReverseLayout(true);//列表翻转 rvInfo.setLayoutManager(linearLayoutManager); //如果可以确定每个item的高度是固定的,设置这个选项可以提高性能 rvInfo.setHasFixedSize(false); @@ -104,7 +104,7 @@ public class InfoFragment extends Fragment { @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) public void onWarnEvent(Warn info) { if (title.equals(MainActivity.TITLE.RECEIVE_WARN)) { - if (data.size() > 19) { + if (data.size() > 9) { data.remove(0); } data.add(info.toString()); @@ -126,6 +126,9 @@ public class InfoFragment extends Fragment { @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) public void onErrorEvent(ErrorData info) { if (title.equals(MainActivity.TITLE.RECEIVE_ERROR)) { + if (data.size() > 19) { + data.remove(0); + } data.add(info.toString()); adapter.notifyDataSetChanged(); } diff --git a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/MainActivity.java b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/MainActivity.java index 4e892ccc80..af50145689 100644 --- a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/MainActivity.java +++ b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/MainActivity.java @@ -484,7 +484,7 @@ public class MainActivity extends AppCompatActivity implements OnAdasListener, O case TITLE.RECEIVE_CAR_CONFIG_RESP: AdasManager.getInstance().sendCarConfigReq(); if (versionFragment == null) - versionFragment = new VersionFragment("工控机版本\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t固定IP配置"); + versionFragment = new VersionFragment("工控机版本\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t固定IP配置"); if (!versionFragment.isVisible()) { transaction.replace(R.id.fl_info, versionFragment); transaction.commit(); diff --git a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/VersionFragment.java b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/VersionFragment.java index c5dddc3dc3..d8afbd403f 100644 --- a/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/VersionFragment.java +++ b/app_ipc_monitoring/src/main/java/com/zhidao/adas/client/ui/mian/VersionFragment.java @@ -15,11 +15,15 @@ import android.widget.Toast; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import androidx.recyclerview.widget.SimpleItemAnimator; import com.mogo.eagle.core.utilcode.util.AppUtils; import com.zhidao.adas.client.BuildConfig; import com.zhidao.adas.client.R; import com.zhidao.adas.client.bean.CarConfigResp; +import com.zhidao.adas.client.bean.Config; import com.zhidao.support.adas.high.AdasManager; import com.zhidao.support.adas.high.common.Constants; import com.zhidao.support.adas.high.common.CupidLogUtils; @@ -28,7 +32,9 @@ import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; +import java.util.ArrayList; import java.util.HashSet; +import java.util.List; /** * @des 升级页面 @@ -37,6 +43,7 @@ public class VersionFragment extends Fragment { private String title; + private ConfigAdapter adapter; public VersionFragment() { } @@ -91,53 +98,21 @@ public class VersionFragment extends Fragment { } private TextView tvTitle; - private TextView ipcIpView; - private TextView ipcVersionView; - private TextView plate_number_view; - private TextView mac_address_view; - private TextView protocol_version_view; - private TextView app_protocol_version_view; - private TextView speed_limit_view; - private TextView ipcIpHint; - private TextView ipcVersionHint; - private TextView plate_number_hint; - private TextView appVersionView; - private TextView mac_address_hint; - private TextView protocol_version_hint; - private TextView app_protocol_version_hint; - private TextView speed_limit_hint; - private TextView mapVersionView; + private TextView ipsView; private Button btn1; private Button btn2; private EditText ipView; - private View layoutVersion; + private RecyclerView recyclerView; private void initView(View view) { tvTitle = view.findViewById(R.id.tv_title); btn1 = view.findViewById(R.id.btn1); ipView = view.findViewById(R.id.ip); btn2 = view.findViewById(R.id.btn2); - ipcIpView = view.findViewById(R.id.ipc_ip_view); - ipcVersionView = view.findViewById(R.id.ipc_version_view); - plate_number_view = view.findViewById(R.id.plate_number_view); - mac_address_view = view.findViewById(R.id.mac_address_view); - protocol_version_view = view.findViewById(R.id.protocol_version_view); - app_protocol_version_view = view.findViewById(R.id.app_protocol_version_view); - speed_limit_view = view.findViewById(R.id.speed_limit_view); - - ipcIpHint = view.findViewById(R.id.ipc_ip_hint); - ipcVersionHint = view.findViewById(R.id.ipc_version_hint); - plate_number_hint = view.findViewById(R.id.plate_number_hint); - mac_address_hint = view.findViewById(R.id.mac_address_hint); - protocol_version_hint = view.findViewById(R.id.protocol_version_hint); - app_protocol_version_hint = view.findViewById(R.id.app_protocol_version_hint); - speed_limit_hint = view.findViewById(R.id.speed_limit_hint); - appVersionView = view.findViewById(R.id.app_version_view); - mapVersionView = view.findViewById(R.id.map_version_view); - layoutVersion = view.findViewById(R.id.layout_version); ipsView = view.findViewById(R.id.ips_view); - + recyclerView = view.findViewById(R.id.config_list); + initFragmentRecyclerView(); CupidLogUtils.w("InfoFragment===>" + title); tvTitle.setText(title); tvTitle.setGravity(Gravity.CENTER); @@ -174,13 +149,20 @@ public class VersionFragment extends Fragment { } } }); + if (BuildConfig.IS_CLIENT) { + view.findViewById(R.id.ipc_ip_config).setVisibility(View.GONE); + view.findViewById(R.id.line1).setVisibility(View.GONE); + tvTitle.setText("版本"); + } +// if (AdasManager.getInstance().getIpcConnectionStatus() != Constants.IPC_CONNECTION_STATUS.CONNECTED) + showVersion(null); } @Subscribe(threadMode = ThreadMode.MAIN, sticky = true) public void showVersion(CarConfigResp adasConfig) { - layoutVersion.setVisibility(View.VISIBLE); + List list = new ArrayList<>(); if (!BuildConfig.IS_CLIENT) { String ip = AdasManager.getInstance().getIpcConnectedIp(); if (!TextUtils.isEmpty(ip)) { @@ -188,27 +170,20 @@ public class VersionFragment extends Fragment { ip = ip + ":" + Constants.DEFAULT_PORT; } } - ipcIpView.setText(ip); - ipcVersionView.setText(adasConfig.bean.getDockVersion()); - plate_number_view.setText(adasConfig.bean.getPlateNumber()); - mac_address_view.setText(adasConfig.bean.getMacAddress()); - speed_limit_view.setText(String.valueOf(adasConfig.bean.getSpeedLimit())); - protocol_version_view.setText(String.valueOf(adasConfig.bean.getProtocolVersion().getNumber())); - app_protocol_version_view.setText(String.valueOf(AdasManager.getInstance().getProtocolVersion())); - } else { - ipcIpView.setVisibility(View.GONE); - ipcVersionView.setVisibility(View.GONE); - ipcIpHint.setVisibility(View.GONE); - ipcVersionHint.setVisibility(View.GONE); - plate_number_hint.setVisibility(View.GONE); - appVersionView.setVisibility(View.GONE); - mac_address_hint.setVisibility(View.GONE); - speed_limit_hint.setVisibility(View.GONE); - protocol_version_hint.setVisibility(View.GONE); - app_protocol_version_hint.setVisibility(View.GONE); + list.add(new Config("工控机IP:", ip)); + list.add(new Config("工控机版本:", adasConfig == null ? null : adasConfig.bean.getDockVersion())); + list.add(new Config("车牌号:", adasConfig == null ? null : adasConfig.bean.getPlateNumber())); + list.add(new Config("MAC地址:", adasConfig == null ? null : adasConfig.bean.getMacAddress())); + list.add(new Config("自动驾驶限速:", adasConfig == null ? null : adasConfig.bean.getSpeedLimit() + "m/s")); + list.add(new Config("最大自动驾驶限速:", adasConfig == null ? null : adasConfig.bean.getMaxSpeedLimit() + "m/s")); + list.add(new Config("最小加速度:", adasConfig == null ? null : adasConfig.bean.getMinAcceleration() + "m/s²")); + list.add(new Config("最大加速度:", adasConfig == null ? null : adasConfig.bean.getMaxAcceleration() + "m/s²")); + list.add(new Config("IPC通信协议版本:", adasConfig == null ? null : String.valueOf(adasConfig.bean.getProtocolVersion().getNumber()))); + list.add(new Config("APP通信协议版本:", String.valueOf(AdasManager.getInstance().getProtocolVersion()))); } - appVersionView.setText(AppUtils.getAppVersionName()); - mapVersionView.setText(AdasManager.getInstance().getAPVersion()); + list.add(new Config("软件版本:", com.zhidao.support.adas.high.BuildConfig.VERSION_NAME)); + list.add(new Config("MAP版本:", AdasManager.getInstance().getAPVersion())); + adapter.setData(list); } @Override @@ -217,6 +192,22 @@ public class VersionFragment extends Fragment { EventBus.getDefault().unregister(this); } + private void initFragmentRecyclerView() { + //创建默认的线性LayoutManager 横向的GridLayoutManager + LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity()); + linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL); + recyclerView.setLayoutManager(linearLayoutManager); + //如果可以确定每个item的高度是固定的,设置这个选项可以提高性能 + recyclerView.setHasFixedSize(true); + //解决局部刷新闪屏问题 + SimpleItemAnimator animator = (SimpleItemAnimator) recyclerView.getItemAnimator(); + if (animator != null) + animator.setSupportsChangeAnimations(false); + //创建并设置Adapter + adapter = new ConfigAdapter(); + recyclerView.setAdapter(adapter); + } + @Override public void onDestroy() { super.onDestroy(); diff --git a/app_ipc_monitoring/src/main/res/layout/fragment_version.xml b/app_ipc_monitoring/src/main/res/layout/fragment_version.xml index c865f3f5c4..b26df8515a 100644 --- a/app_ipc_monitoring/src/main/res/layout/fragment_version.xml +++ b/app_ipc_monitoring/src/main/res/layout/fragment_version.xml @@ -26,13 +26,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_weight="1" /> + android:orientation="vertical" + android:padding="10dp"> - - \ No newline at end of file diff --git a/app_ipc_monitoring/src/main/res/layout/item_config.xml b/app_ipc_monitoring/src/main/res/layout/item_config.xml new file mode 100644 index 0000000000..d3a8c192a0 --- /dev/null +++ b/app_ipc_monitoring/src/main/res/layout/item_config.xml @@ -0,0 +1,19 @@ + + + + + + + \ No newline at end of file diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/any.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/any.proto deleted file mode 100644 index c9be854167..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/any.proto +++ /dev/null @@ -1,155 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "github.com/golang/protobuf/ptypes/any"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "AnyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Any` contains an arbitrary serialized protocol buffer message along with a -// URL that describes the type of the serialized message. -// -// Protobuf library provides support to pack/unpack Any values in the form -// of utility functions or additional generated methods of the Any type. -// -// Example 1: Pack and unpack a message in C++. -// -// Foo foo = ...; -// Any any; -// any.PackFrom(foo); -// ... -// if (any.UnpackTo(&foo)) { -// ... -// } -// -// Example 2: Pack and unpack a message in Java. -// -// Foo foo = ...; -// Any any = Any.pack(foo); -// ... -// if (any.is(Foo.class)) { -// foo = any.unpack(Foo.class); -// } -// -// Example 3: Pack and unpack a message in Python. -// -// foo = Foo(...) -// any = Any() -// any.Pack(foo) -// ... -// if any.Is(Foo.DESCRIPTOR): -// any.Unpack(foo) -// ... -// -// Example 4: Pack and unpack a message in Go -// -// foo := &pb.Foo{...} -// any, err := ptypes.MarshalAny(foo) -// ... -// foo := &pb.Foo{} -// if err := ptypes.UnmarshalAny(any, foo); err != nil { -// ... -// } -// -// The pack methods provided by protobuf library will by default use -// 'type.googleapis.com/full.type.name' as the type URL and the unpack -// methods only use the fully qualified type name after the last '/' -// in the type URL, for example "foo.bar.com/x/y.z" will yield type -// name "y.z". -// -// -// JSON -// ==== -// The JSON representation of an `Any` value uses the regular -// representation of the deserialized, embedded message, with an -// additional field `@type` which contains the type URL. Example: -// -// package google.profile; -// message Person { -// string first_name = 1; -// string last_name = 2; -// } -// -// { -// "@type": "type.googleapis.com/google.profile.Person", -// "firstName": , -// "lastName": -// } -// -// If the embedded message type is well-known and has a custom JSON -// representation, that representation will be embedded adding a field -// `value` which holds the custom JSON in addition to the `@type` -// field. Example (for message [google.protobuf.Duration][]): -// -// { -// "@type": "type.googleapis.com/google.protobuf.Duration", -// "value": "1.212s" -// } -// -message Any { - // A URL/resource name that uniquely identifies the type of the serialized - // protocol buffer message. This string must contain at least - // one "/" character. The last segment of the URL's path must represent - // the fully qualified name of the type (as in - // `path/google.protobuf.Duration`). The name should be in a canonical form - // (e.g., leading "." is not accepted). - // - // In practice, teams usually precompile into the binary all types that they - // expect it to use in the context of Any. However, for URLs which use the - // scheme `http`, `https`, or no scheme, one can optionally set up a type - // server that maps type URLs to message definitions as follows: - // - // * If no scheme is provided, `https` is assumed. - // * An HTTP GET on the URL must yield a [google.protobuf.Type][] - // value in binary format, or produce an error. - // * Applications are allowed to cache lookup results based on the - // URL, or have them precompiled into a binary to avoid any - // lookup. Therefore, binary compatibility needs to be preserved - // on changes to types. (Use versioned type names to manage - // breaking changes.) - // - // Note: this functionality is not currently available in the official - // protobuf release, and it is not used for type URLs beginning with - // type.googleapis.com. - // - // Schemes other than `http`, `https` (or the empty scheme) might be - // used with implementation specific semantics. - // - string type_url = 1; - - // Must be a valid serialized protocol buffer of the above specified type. - bytes value = 2; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/api.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/api.proto deleted file mode 100644 index f37ee2fa46..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/api.proto +++ /dev/null @@ -1,210 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -import "google/protobuf/source_context.proto"; -import "google/protobuf/type.proto"; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "ApiProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/genproto/protobuf/api;api"; - -// Api is a light-weight descriptor for an API Interface. -// -// Interfaces are also described as "protocol buffer services" in some contexts, -// such as by the "service" keyword in a .proto file, but they are different -// from API Services, which represent a concrete implementation of an interface -// as opposed to simply a description of methods and bindings. They are also -// sometimes simply referred to as "APIs" in other contexts, such as the name of -// this message itself. See https://cloud.google.com/apis/design/glossary for -// detailed terminology. -message Api { - - // The fully qualified name of this interface, including package name - // followed by the interface's simple name. - string name = 1; - - // The methods of this interface, in unspecified order. - repeated Method methods = 2; - - // Any metadata attached to the interface. - repeated Option options = 3; - - // A version string for this interface. If specified, must have the form - // `major-version.minor-version`, as in `1.10`. If the minor version is - // omitted, it defaults to zero. If the entire version field is empty, the - // major version is derived from the package name, as outlined below. If the - // field is not empty, the version in the package name will be verified to be - // consistent with what is provided here. - // - // The versioning schema uses [semantic - // versioning](http://semver.org) where the major version number - // indicates a breaking change and the minor version an additive, - // non-breaking change. Both version numbers are signals to users - // what to expect from different versions, and should be carefully - // chosen based on the product plan. - // - // The major version is also reflected in the package name of the - // interface, which must end in `v`, as in - // `google.feature.v1`. For major versions 0 and 1, the suffix can - // be omitted. Zero major versions must only be used for - // experimental, non-GA interfaces. - // - // - string version = 4; - - // Source context for the protocol buffer service represented by this - // message. - SourceContext source_context = 5; - - // Included interfaces. See [Mixin][]. - repeated Mixin mixins = 6; - - // The source syntax of the service. - Syntax syntax = 7; -} - -// Method represents a method of an API interface. -message Method { - - // The simple name of this method. - string name = 1; - - // A URL of the input message type. - string request_type_url = 2; - - // If true, the request is streamed. - bool request_streaming = 3; - - // The URL of the output message type. - string response_type_url = 4; - - // If true, the response is streamed. - bool response_streaming = 5; - - // Any metadata attached to the method. - repeated Option options = 6; - - // The source syntax of this method. - Syntax syntax = 7; -} - -// Declares an API Interface to be included in this interface. The including -// interface must redeclare all the methods from the included interface, but -// documentation and options are inherited as follows: -// -// - If after comment and whitespace stripping, the documentation -// string of the redeclared method is empty, it will be inherited -// from the original method. -// -// - Each annotation belonging to the service config (http, -// visibility) which is not set in the redeclared method will be -// inherited. -// -// - If an http annotation is inherited, the path pattern will be -// modified as follows. Any version prefix will be replaced by the -// version of the including interface plus the [root][] path if -// specified. -// -// Example of a simple mixin: -// -// package google.acl.v1; -// service AccessControl { -// // Get the underlying ACL object. -// rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = "/v1/{resource=**}:getAcl"; -// } -// } -// -// package google.storage.v2; -// service Storage { -// rpc GetAcl(GetAclRequest) returns (Acl); -// -// // Get a data record. -// rpc GetData(GetDataRequest) returns (Data) { -// option (google.api.http).get = "/v2/{resource=**}"; -// } -// } -// -// Example of a mixin configuration: -// -// apis: -// - name: google.storage.v2.Storage -// mixins: -// - name: google.acl.v1.AccessControl -// -// The mixin construct implies that all methods in `AccessControl` are -// also declared with same name and request/response types in -// `Storage`. A documentation generator or annotation processor will -// see the effective `Storage.GetAcl` method after inherting -// documentation and annotations as follows: -// -// service Storage { -// // Get the underlying ACL object. -// rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = "/v2/{resource=**}:getAcl"; -// } -// ... -// } -// -// Note how the version in the path pattern changed from `v1` to `v2`. -// -// If the `root` field in the mixin is specified, it should be a -// relative path under which inherited HTTP paths are placed. Example: -// -// apis: -// - name: google.storage.v2.Storage -// mixins: -// - name: google.acl.v1.AccessControl -// root: acls -// -// This implies the following inherited HTTP annotation: -// -// service Storage { -// // Get the underlying ACL object. -// rpc GetAcl(GetAclRequest) returns (Acl) { -// option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; -// } -// ... -// } -message Mixin { - // The fully qualified name of the interface which is included. - string name = 1; - - // If non-empty specifies a path under which inherited HTTP paths - // are rooted. - string root = 2; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/compiler/plugin.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/compiler/plugin.proto deleted file mode 100644 index 492b896c5b..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/compiler/plugin.proto +++ /dev/null @@ -1,178 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// -// WARNING: The plugin interface is currently EXPERIMENTAL and is subject to -// change. -// -// protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is -// just a program that reads a CodeGeneratorRequest from stdin and writes a -// CodeGeneratorResponse to stdout. -// -// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead -// of dealing with the raw protocol defined here. -// -// A plugin executable needs only to be placed somewhere in the path. The -// plugin should be named "protoc-gen-$NAME", and will then be used when the -// flag "--${NAME}_out" is passed to protoc. - -syntax = "proto2"; - -package google.protobuf.compiler; -option java_package = "com.google.protobuf.compiler"; -option java_outer_classname = "PluginProtos"; - -option go_package = "github.com/golang/protobuf/protoc-gen-go/plugin;plugin_go"; - -import "google/protobuf/descriptor.proto"; - -// The version number of protocol compiler. -message Version { - optional int32 major = 1; - optional int32 minor = 2; - optional int32 patch = 3; - // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should - // be empty for mainline stable releases. - optional string suffix = 4; -} - -// An encoded CodeGeneratorRequest is written to the plugin's stdin. -message CodeGeneratorRequest { - // The .proto files that were explicitly listed on the command-line. The - // code generator should generate code only for these files. Each file's - // descriptor will be included in proto_file, below. - repeated string file_to_generate = 1; - - // The generator parameter passed on the command-line. - optional string parameter = 2; - - // FileDescriptorProtos for all files in files_to_generate and everything - // they import. The files will appear in topological order, so each file - // appears before any file that imports it. - // - // protoc guarantees that all proto_files will be written after - // the fields above, even though this is not technically guaranteed by the - // protobuf wire format. This theoretically could allow a plugin to stream - // in the FileDescriptorProtos and handle them one by one rather than read - // the entire set into memory at once. However, as of this writing, this - // is not similarly optimized on protoc's end -- it will store all fields in - // memory at once before sending them to the plugin. - // - // Type names of fields and extensions in the FileDescriptorProto are always - // fully qualified. - repeated FileDescriptorProto proto_file = 15; - - // The version number of protocol compiler. - optional Version compiler_version = 3; - -} - -// The plugin writes an encoded CodeGeneratorResponse to stdout. -message CodeGeneratorResponse { - // Error message. If non-empty, code generation failed. The plugin process - // should exit with status code zero even if it reports an error in this way. - // - // This should be used to indicate errors in .proto files which prevent the - // code generator from generating correct code. Errors which indicate a - // problem in protoc itself -- such as the input CodeGeneratorRequest being - // unparseable -- should be reported by writing a message to stderr and - // exiting with a non-zero status code. - optional string error = 1; - - // A bitmask of supported features that the code generator supports. - // This is a bitwise "or" of values from the Feature enum. - optional uint64 supported_features = 2; - - // Sync with code_generator.h. - enum Feature { - FEATURE_NONE = 0; - FEATURE_PROTO3_OPTIONAL = 1; - } - - // Represents a single generated file. - message File { - // The file name, relative to the output directory. The name must not - // contain "." or ".." components and must be relative, not be absolute (so, - // the file cannot lie outside the output directory). "/" must be used as - // the path separator, not "\". - // - // If the name is omitted, the content will be appended to the previous - // file. This allows the generator to break large files into small chunks, - // and allows the generated text to be streamed back to protoc so that large - // files need not reside completely in memory at one time. Note that as of - // this writing protoc does not optimize for this -- it will read the entire - // CodeGeneratorResponse before writing files to disk. - optional string name = 1; - - // If non-empty, indicates that the named file should already exist, and the - // content here is to be inserted into that file at a defined insertion - // point. This feature allows a code generator to extend the output - // produced by another code generator. The original generator may provide - // insertion points by placing special annotations in the file that look - // like: - // @@protoc_insertion_point(NAME) - // The annotation can have arbitrary text before and after it on the line, - // which allows it to be placed in a comment. NAME should be replaced with - // an identifier naming the point -- this is what other generators will use - // as the insertion_point. Code inserted at this point will be placed - // immediately above the line containing the insertion point (thus multiple - // insertions to the same point will come out in the order they were added). - // The double-@ is intended to make it unlikely that the generated code - // could contain things that look like insertion points by accident. - // - // For example, the C++ code generator places the following line in the - // .pb.h files that it generates: - // // @@protoc_insertion_point(namespace_scope) - // This line appears within the scope of the file's package namespace, but - // outside of any particular class. Another plugin can then specify the - // insertion_point "namespace_scope" to generate additional classes or - // other declarations that should be placed in this scope. - // - // Note that if the line containing the insertion point begins with - // whitespace, the same whitespace will be added to every line of the - // inserted text. This is useful for languages like Python, where - // indentation matters. In these languages, the insertion point comment - // should be indented the same amount as any inserted code will need to be - // in order to work correctly in that context. - // - // The code generator that generates the initial file and the one which - // inserts into it must both run as part of a single invocation of protoc. - // Code generators are executed in the order in which they appear on the - // command line. - // - // If |insertion_point| is present, |name| must also be present. - optional string insertion_point = 2; - - // The file contents. - optional string content = 15; - } - repeated File file = 15; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/descriptor.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/descriptor.proto deleted file mode 100644 index d29fdec5e5..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/descriptor.proto +++ /dev/null @@ -1,909 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Author: kenton@google.com (Kenton Varda) -// Based on original Protocol Buffers design by -// Sanjay Ghemawat, Jeff Dean, and others. -// -// The messages in this file describe the definitions found in .proto files. -// A valid .proto file can be translated directly to a FileDescriptorProto -// without any other information (e.g. without reading its imports). - - -syntax = "proto2"; - -package google.protobuf; - -option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DescriptorProtos"; -option csharp_namespace = "Google.Protobuf.Reflection"; -option objc_class_prefix = "GPB"; -option cc_enable_arenas = true; - -// descriptor.proto must be optimized for speed because reflection-based -// algorithms don't work during bootstrapping. -option optimize_for = SPEED; - -// The protocol compiler can output a FileDescriptorSet containing the .proto -// files it parses. -message FileDescriptorSet { - repeated FileDescriptorProto file = 1; -} - -// Describes a complete .proto file. -message FileDescriptorProto { - optional string name = 1; // file name, relative to root of source tree - optional string package = 2; // e.g. "foo", "foo.bar", etc. - - // Names of files imported by this file. - repeated string dependency = 3; - // Indexes of the public imported files in the dependency list above. - repeated int32 public_dependency = 10; - // Indexes of the weak imported files in the dependency list. - // For Google-internal migration only. Do not use. - repeated int32 weak_dependency = 11; - - // All top-level definitions in this file. - repeated DescriptorProto message_type = 4; - repeated EnumDescriptorProto enum_type = 5; - repeated ServiceDescriptorProto service = 6; - repeated FieldDescriptorProto extension = 7; - - optional FileOptions options = 8; - - // This field contains optional information about the original source code. - // You may safely remove this entire field without harming runtime - // functionality of the descriptors -- the information is needed only by - // development tools. - optional SourceCodeInfo source_code_info = 9; - - // The syntax of the proto file. - // The supported values are "proto2" and "proto3". - optional string syntax = 12; -} - -// Describes a message type. -message DescriptorProto { - optional string name = 1; - - repeated FieldDescriptorProto field = 2; - repeated FieldDescriptorProto extension = 6; - - repeated DescriptorProto nested_type = 3; - repeated EnumDescriptorProto enum_type = 4; - - message ExtensionRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - - optional ExtensionRangeOptions options = 3; - } - repeated ExtensionRange extension_range = 5; - - repeated OneofDescriptorProto oneof_decl = 8; - - optional MessageOptions options = 7; - - // Range of reserved tag numbers. Reserved tag numbers may not be used by - // fields or extension ranges in the same message. Reserved ranges may - // not overlap. - message ReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Exclusive. - } - repeated ReservedRange reserved_range = 9; - // Reserved field names, which may not be used by fields in the same message. - // A given name may only be reserved once. - repeated string reserved_name = 10; -} - -message ExtensionRangeOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -// Describes a field within a message. -message FieldDescriptorProto { - enum Type { - // 0 is reserved for errors. - // Order is weird for historical reasons. - TYPE_DOUBLE = 1; - TYPE_FLOAT = 2; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - // negative values are likely. - TYPE_INT64 = 3; - TYPE_UINT64 = 4; - // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - // negative values are likely. - TYPE_INT32 = 5; - TYPE_FIXED64 = 6; - TYPE_FIXED32 = 7; - TYPE_BOOL = 8; - TYPE_STRING = 9; - // Tag-delimited aggregate. - // Group type is deprecated and not supported in proto3. However, Proto3 - // implementations should still be able to parse the group wire format and - // treat group fields as unknown fields. - TYPE_GROUP = 10; - TYPE_MESSAGE = 11; // Length-delimited aggregate. - - // New in version 2. - TYPE_BYTES = 12; - TYPE_UINT32 = 13; - TYPE_ENUM = 14; - TYPE_SFIXED32 = 15; - TYPE_SFIXED64 = 16; - TYPE_SINT32 = 17; // Uses ZigZag encoding. - TYPE_SINT64 = 18; // Uses ZigZag encoding. - } - - enum Label { - // 0 is reserved for errors - LABEL_OPTIONAL = 1; - LABEL_REQUIRED = 2; - LABEL_REPEATED = 3; - } - - optional string name = 1; - optional int32 number = 3; - optional Label label = 4; - - // If type_name is set, this need not be set. If both this and type_name - // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - optional Type type = 5; - - // For message and enum types, this is the name of the type. If the name - // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - // rules are used to find the type (i.e. first the nested types within this - // message are searched, then within the parent, on up to the root - // namespace). - optional string type_name = 6; - - // For extensions, this is the name of the type being extended. It is - // resolved in the same manner as type_name. - optional string extendee = 2; - - // For numeric types, contains the original text representation of the value. - // For booleans, "true" or "false". - // For strings, contains the default text contents (not escaped in any way). - // For bytes, contains the C escaped value. All bytes >= 128 are escaped. - // TODO(kenton): Base-64 encode? - optional string default_value = 7; - - // If set, gives the index of a oneof in the containing type's oneof_decl - // list. This field is a member of that oneof. - optional int32 oneof_index = 9; - - // JSON name of this field. The value is set by protocol compiler. If the - // user has set a "json_name" option on this field, that option's value - // will be used. Otherwise, it's deduced from the field's name by converting - // it to camelCase. - optional string json_name = 10; - - optional FieldOptions options = 8; - - // If true, this is a proto3 "optional". When a proto3 field is optional, it - // tracks presence regardless of field type. - // - // When proto3_optional is true, this field must be belong to a oneof to - // signal to old proto3 clients that presence is tracked for this field. This - // oneof is known as a "synthetic" oneof, and this field must be its sole - // member (each proto3 optional field gets its own synthetic oneof). Synthetic - // oneofs exist in the descriptor only, and do not generate any API. Synthetic - // oneofs must be ordered after all "real" oneofs. - // - // For message fields, proto3_optional doesn't create any semantic change, - // since non-repeated message fields always track presence. However it still - // indicates the semantic detail of whether the user wrote "optional" or not. - // This can be useful for round-tripping the .proto file. For consistency we - // give message fields a synthetic oneof also, even though it is not required - // to track presence. This is especially important because the parser can't - // tell if a field is a message or an enum, so it must always create a - // synthetic oneof. - // - // Proto2 optional fields do not set this flag, because they already indicate - // optional with `LABEL_OPTIONAL`. - optional bool proto3_optional = 17; -} - -// Describes a oneof. -message OneofDescriptorProto { - optional string name = 1; - optional OneofOptions options = 2; -} - -// Describes an enum type. -message EnumDescriptorProto { - optional string name = 1; - - repeated EnumValueDescriptorProto value = 2; - - optional EnumOptions options = 3; - - // Range of reserved numeric values. Reserved values may not be used by - // entries in the same enum. Reserved ranges may not overlap. - // - // Note that this is distinct from DescriptorProto.ReservedRange in that it - // is inclusive such that it can appropriately represent the entire int32 - // domain. - message EnumReservedRange { - optional int32 start = 1; // Inclusive. - optional int32 end = 2; // Inclusive. - } - - // Range of reserved numeric values. Reserved numeric values may not be used - // by enum values in the same enum declaration. Reserved ranges may not - // overlap. - repeated EnumReservedRange reserved_range = 4; - - // Reserved enum value names, which may not be reused. A given name may only - // be reserved once. - repeated string reserved_name = 5; -} - -// Describes a value within an enum. -message EnumValueDescriptorProto { - optional string name = 1; - optional int32 number = 2; - - optional EnumValueOptions options = 3; -} - -// Describes a service. -message ServiceDescriptorProto { - optional string name = 1; - repeated MethodDescriptorProto method = 2; - - optional ServiceOptions options = 3; -} - -// Describes a method of a service. -message MethodDescriptorProto { - optional string name = 1; - - // Input and output type names. These are resolved in the same way as - // FieldDescriptorProto.type_name, but must refer to a message type. - optional string input_type = 2; - optional string output_type = 3; - - optional MethodOptions options = 4; - - // Identifies if client streams multiple client messages - optional bool client_streaming = 5 [default = false]; - // Identifies if server streams multiple server messages - optional bool server_streaming = 6 [default = false]; -} - - -// =================================================================== -// Options - -// Each of the definitions above may have "options" attached. These are -// just annotations which may cause code to be generated slightly differently -// or may contain hints for code that manipulates protocol messages. -// -// Clients may define custom options as extensions of the *Options messages. -// These extensions may not yet be known at parsing time, so the parser cannot -// store the values in them. Instead it stores them in a field in the *Options -// message called uninterpreted_option. This field must have the same name -// across all *Options messages. We then use this field to populate the -// extensions when we build a descriptor, at which point all protos have been -// parsed and so all extensions are known. -// -// Extension numbers for custom options may be chosen as follows: -// * For options which will only be used within a single application or -// organization, or for experimental options, use field numbers 50000 -// through 99999. It is up to you to ensure that you do not use the -// same number for multiple options. -// * For options which will be published and used publicly by multiple -// independent entities, e-mail protobuf-global-extension-registry@google.com -// to reserve extension numbers. Simply provide your project name (e.g. -// Objective-C plugin) and your project website (if available) -- there's no -// need to explain how you intend to use them. Usually you only need one -// extension number. You can declare multiple options with only one extension -// number by putting them in a sub-message. See the Custom Options section of -// the docs for examples: -// https://developers.google.com/protocol-buffers/docs/proto#options -// If this turns out to be popular, a web service will be set up -// to automatically assign option numbers. - -message FileOptions { - - // Sets the Java package where classes generated from this .proto will be - // placed. By default, the proto package is used, but this is often - // inappropriate because proto packages do not normally start with backwards - // domain names. - optional string java_package = 1; - - - // If set, all the classes from the .proto file are wrapped in a single - // outer class with the given name. This applies to both Proto1 - // (equivalent to the old "--one_java_file" option) and Proto2 (where - // a .proto always translates to a single class, but you may want to - // explicitly choose the class name). - optional string java_outer_classname = 8; - - // If set true, then the Java code generator will generate a separate .java - // file for each top-level message, enum, and service defined in the .proto - // file. Thus, these types will *not* be nested inside the outer class - // named by java_outer_classname. However, the outer class will still be - // generated to contain the file's getDescriptor() method as well as any - // top-level extensions defined in the file. - optional bool java_multiple_files = 10 [default = false]; - - // This option does nothing. - optional bool java_generate_equals_and_hash = 20 [deprecated=true]; - - // If set true, then the Java2 code generator will generate code that - // throws an exception whenever an attempt is made to assign a non-UTF-8 - // byte sequence to a string field. - // Message reflection will do the same. - // However, an extension field still accepts non-UTF-8 byte sequences. - // This option has no effect on when used with the lite runtime. - optional bool java_string_check_utf8 = 27 [default = false]; - - - // Generated classes can be optimized for speed or code size. - enum OptimizeMode { - SPEED = 1; // Generate complete code for parsing, serialization, - // etc. - CODE_SIZE = 2; // Use ReflectionOps to implement these methods. - LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime. - } - optional OptimizeMode optimize_for = 9 [default = SPEED]; - - // Sets the Go package where structs generated from this .proto will be - // placed. If omitted, the Go package will be derived from the following: - // - The basename of the package import path, if provided. - // - Otherwise, the package statement in the .proto file, if present. - // - Otherwise, the basename of the .proto file, without extension. - optional string go_package = 11; - - - - - // Should generic services be generated in each language? "Generic" services - // are not specific to any particular RPC system. They are generated by the - // main code generators in each language (without additional plugins). - // Generic services were the only kind of service generation supported by - // early versions of google.protobuf. - // - // Generic services are now considered deprecated in favor of using plugins - // that generate code specific to your particular RPC system. Therefore, - // these default to false. Old code which depends on generic services should - // explicitly set them to true. - optional bool cc_generic_services = 16 [default = false]; - optional bool java_generic_services = 17 [default = false]; - optional bool py_generic_services = 18 [default = false]; - optional bool php_generic_services = 42 [default = false]; - - // Is this file deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for everything in the file, or it will be completely ignored; in the very - // least, this is a formalization for deprecating files. - optional bool deprecated = 23 [default = false]; - - // Enables the use of arenas for the proto messages in this file. This applies - // only to generated classes for C++. - optional bool cc_enable_arenas = 31 [default = true]; - - - // Sets the objective c class prefix which is prepended to all objective c - // generated classes from this .proto. There is no default. - optional string objc_class_prefix = 36; - - // Namespace for generated classes; defaults to the package. - optional string csharp_namespace = 37; - - // By default Swift generators will take the proto package and CamelCase it - // replacing '.' with underscore and use that to prefix the types/symbols - // defined. When this options is provided, they will use this value instead - // to prefix the types/symbols defined. - optional string swift_prefix = 39; - - // Sets the php class prefix which is prepended to all php generated classes - // from this .proto. Default is empty. - optional string php_class_prefix = 40; - - // Use this option to change the namespace of php generated classes. Default - // is empty. When this option is empty, the package name will be used for - // determining the namespace. - optional string php_namespace = 41; - - // Use this option to change the namespace of php generated metadata classes. - // Default is empty. When this option is empty, the proto file name will be - // used for determining the namespace. - optional string php_metadata_namespace = 44; - - // Use this option to change the package of ruby generated classes. Default - // is empty. When this option is not set, the package name will be used for - // determining the ruby package. - optional string ruby_package = 45; - - - // The parser stores options it doesn't recognize here. - // See the documentation for the "Options" section above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. - // See the documentation for the "Options" section above. - extensions 1000 to max; - - reserved 38; -} - -message MessageOptions { - // Set true to use the old proto1 MessageSet wire format for extensions. - // This is provided for backwards-compatibility with the MessageSet wire - // format. You should not use this for any other reason: It's less - // efficient, has fewer features, and is more complicated. - // - // The message must be defined exactly as follows: - // message Foo { - // option message_set_wire_format = true; - // extensions 4 to max; - // } - // Note that the message cannot have any defined fields; MessageSets only - // have extensions. - // - // All extensions of your type must be singular messages; e.g. they cannot - // be int32s, enums, or repeated messages. - // - // Because this is an option, the above two restrictions are not enforced by - // the protocol compiler. - optional bool message_set_wire_format = 1 [default = false]; - - // Disables the generation of the standard "descriptor()" accessor, which can - // conflict with a field of the same name. This is meant to make migration - // from proto1 easier; new code should avoid fields named "descriptor". - optional bool no_standard_descriptor_accessor = 2 [default = false]; - - // Is this message deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the message, or it will be completely ignored; in the very least, - // this is a formalization for deprecating messages. - optional bool deprecated = 3 [default = false]; - - // Whether the message is an automatically generated map entry type for the - // maps field. - // - // For maps fields: - // map map_field = 1; - // The parsed descriptor looks like: - // message MapFieldEntry { - // option map_entry = true; - // optional KeyType key = 1; - // optional ValueType value = 2; - // } - // repeated MapFieldEntry map_field = 1; - // - // Implementations may choose not to generate the map_entry=true message, but - // use a native map in the target language to hold the keys and values. - // The reflection APIs in such implementations still need to work as - // if the field is a repeated message field. - // - // NOTE: Do not set the option in .proto files. Always use the maps syntax - // instead. The option should only be implicitly set by the proto compiler - // parser. - optional bool map_entry = 7; - - reserved 8; // javalite_serializable - reserved 9; // javanano_as_lite - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message FieldOptions { - // The ctype option instructs the C++ code generator to use a different - // representation of the field than it normally would. See the specific - // options below. This option is not yet implemented in the open source - // release -- sorry, we'll try to include it in a future version! - optional CType ctype = 1 [default = STRING]; - enum CType { - // Default mode. - STRING = 0; - - CORD = 1; - - STRING_PIECE = 2; - } - // The packed option can be enabled for repeated primitive fields to enable - // a more efficient representation on the wire. Rather than repeatedly - // writing the tag and type for each element, the entire array is encoded as - // a single length-delimited blob. In proto3, only explicit setting it to - // false will avoid using packed encoding. - optional bool packed = 2; - - // The jstype option determines the JavaScript type used for values of the - // field. The option is permitted only for 64 bit integral and fixed types - // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - // is represented as JavaScript string, which avoids loss of precision that - // can happen when a large value is converted to a floating point JavaScript. - // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - // use the JavaScript "number" type. The behavior of the default option - // JS_NORMAL is implementation dependent. - // - // This option is an enum to permit additional types to be added, e.g. - // goog.math.Integer. - optional JSType jstype = 6 [default = JS_NORMAL]; - enum JSType { - // Use the default type. - JS_NORMAL = 0; - - // Use JavaScript strings. - JS_STRING = 1; - - // Use JavaScript numbers. - JS_NUMBER = 2; - } - - // Should this field be parsed lazily? Lazy applies only to message-type - // fields. It means that when the outer message is initially parsed, the - // inner message's contents will not be parsed but instead stored in encoded - // form. The inner message will actually be parsed when it is first accessed. - // - // This is only a hint. Implementations are free to choose whether to use - // eager or lazy parsing regardless of the value of this option. However, - // setting this option true suggests that the protocol author believes that - // using lazy parsing on this field is worth the additional bookkeeping - // overhead typically needed to implement it. - // - // This option does not affect the public interface of any generated code; - // all method signatures remain the same. Furthermore, thread-safety of the - // interface is not affected by this option; const methods remain safe to - // call from multiple threads concurrently, while non-const methods continue - // to require exclusive access. - // - // - // Note that implementations may choose not to check required fields within - // a lazy sub-message. That is, calling IsInitialized() on the outer message - // may return true even if the inner message has missing required fields. - // This is necessary because otherwise the inner message would have to be - // parsed in order to perform the check, defeating the purpose of lazy - // parsing. An implementation which chooses not to check required fields - // must be consistent about it. That is, for any particular sub-message, the - // implementation must either *always* check its required fields, or *never* - // check its required fields, regardless of whether or not the message has - // been parsed. - optional bool lazy = 5 [default = false]; - - // Is this field deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for accessors, or it will be completely ignored; in the very least, this - // is a formalization for deprecating fields. - optional bool deprecated = 3 [default = false]; - - // For Google-internal migration only. Do not use. - optional bool weak = 10 [default = false]; - - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; - - reserved 4; // removed jtype -} - -message OneofOptions { - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumOptions { - - // Set this option to true to allow mapping different tag names to the same - // value. - optional bool allow_alias = 2; - - // Is this enum deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum, or it will be completely ignored; in the very least, this - // is a formalization for deprecating enums. - optional bool deprecated = 3 [default = false]; - - reserved 5; // javanano_as_lite - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message EnumValueOptions { - // Is this enum value deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the enum value, or it will be completely ignored; in the very least, - // this is a formalization for deprecating enum values. - optional bool deprecated = 1 [default = false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message ServiceOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this service deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the service, or it will be completely ignored; in the very least, - // this is a formalization for deprecating services. - optional bool deprecated = 33 [default = false]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - -message MethodOptions { - - // Note: Field numbers 1 through 32 are reserved for Google's internal RPC - // framework. We apologize for hoarding these numbers to ourselves, but - // we were already using them long before we decided to release Protocol - // Buffers. - - // Is this method deprecated? - // Depending on the target platform, this can emit Deprecated annotations - // for the method, or it will be completely ignored; in the very least, - // this is a formalization for deprecating methods. - optional bool deprecated = 33 [default = false]; - - // Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - // or neither? HTTP based RPC implementation may choose GET verb for safe - // methods, and PUT verb for idempotent methods instead of the default POST. - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0; - NO_SIDE_EFFECTS = 1; // implies idempotent - IDEMPOTENT = 2; // idempotent, but may have side effects - } - optional IdempotencyLevel idempotency_level = 34 - [default = IDEMPOTENCY_UNKNOWN]; - - // The parser stores options it doesn't recognize here. See above. - repeated UninterpretedOption uninterpreted_option = 999; - - // Clients can define custom options in extensions of this message. See above. - extensions 1000 to max; -} - - -// A message representing a option the parser does not recognize. This only -// appears in options protos created by the compiler::Parser class. -// DescriptorPool resolves these when building Descriptor objects. Therefore, -// options protos in descriptor objects (e.g. returned by Descriptor::options(), -// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions -// in them. -message UninterpretedOption { - // The name of the uninterpreted option. Each string represents a segment in - // a dot-separated name. is_extension is true iff a segment represents an - // extension (denoted with parentheses in options specs in .proto files). - // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents - // "foo.(bar.baz).qux". - message NamePart { - required string name_part = 1; - required bool is_extension = 2; - } - repeated NamePart name = 2; - - // The value of the uninterpreted option, in whatever type the tokenizer - // identified it as during parsing. Exactly one of these should be set. - optional string identifier_value = 3; - optional uint64 positive_int_value = 4; - optional int64 negative_int_value = 5; - optional double double_value = 6; - optional bytes string_value = 7; - optional string aggregate_value = 8; -} - -// =================================================================== -// Optional source code info - -// Encapsulates information about the original source file from which a -// FileDescriptorProto was generated. -message SourceCodeInfo { - // A Location identifies a piece of source code in a .proto file which - // corresponds to a particular definition. This information is intended - // to be useful to IDEs, code indexers, documentation generators, and similar - // tools. - // - // For example, say we have a file like: - // message Foo { - // optional string foo = 1; - // } - // Let's look at just the field definition: - // optional string foo = 1; - // ^ ^^ ^^ ^ ^^^ - // a bc de f ghi - // We have the following locations: - // span path represents - // [a,i) [ 4, 0, 2, 0 ] The whole field definition. - // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - // [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - // [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - // - // Notes: - // - A location may refer to a repeated field itself (i.e. not to any - // particular index within it). This is used whenever a set of elements are - // logically enclosed in a single code segment. For example, an entire - // extend block (possibly containing multiple extension definitions) will - // have an outer location whose path refers to the "extensions" repeated - // field without an index. - // - Multiple locations may have the same path. This happens when a single - // logical declaration is spread out across multiple places. The most - // obvious example is the "extend" block again -- there may be multiple - // extend blocks in the same scope, each of which will have the same path. - // - A location's span is not always a subset of its parent's span. For - // example, the "extendee" of an extension declaration appears at the - // beginning of the "extend" block and is shared by all extensions within - // the block. - // - Just because a location's span is a subset of some other location's span - // does not mean that it is a descendant. For example, a "group" defines - // both a type and a field in a single declaration. Thus, the locations - // corresponding to the type and field and their components will overlap. - // - Code which tries to interpret locations should probably be designed to - // ignore those that it doesn't understand, as more types of locations could - // be recorded in the future. - repeated Location location = 1; - message Location { - // Identifies which part of the FileDescriptorProto was defined at this - // location. - // - // Each element is a field number or an index. They form a path from - // the root FileDescriptorProto to the place where the definition. For - // example, this path: - // [ 4, 3, 2, 7, 1 ] - // refers to: - // file.message_type(3) // 4, 3 - // .field(7) // 2, 7 - // .name() // 1 - // This is because FileDescriptorProto.message_type has field number 4: - // repeated DescriptorProto message_type = 4; - // and DescriptorProto.field has field number 2: - // repeated FieldDescriptorProto field = 2; - // and FieldDescriptorProto.name has field number 1: - // optional string name = 1; - // - // Thus, the above path gives the location of a field name. If we removed - // the last element: - // [ 4, 3, 2, 7 ] - // this path refers to the whole field declaration (from the beginning - // of the label to the terminating semicolon). - repeated int32 path = 1 [packed = true]; - - // Always has exactly three or four elements: start line, start column, - // end line (optional, otherwise assumed same as start line), end column. - // These are packed into a single field for efficiency. Note that line - // and column numbers are zero-based -- typically you will want to add - // 1 to each before displaying to a user. - repeated int32 span = 2 [packed = true]; - - // If this SourceCodeInfo represents a complete declaration, these are any - // comments appearing before and after the declaration which appear to be - // attached to the declaration. - // - // A series of line comments appearing on consecutive lines, with no other - // tokens appearing on those lines, will be treated as a single comment. - // - // leading_detached_comments will keep paragraphs of comments that appear - // before (but not connected to) the current element. Each paragraph, - // separated by empty lines, will be one comment element in the repeated - // field. - // - // Only the comment content is provided; comment markers (e.g. //) are - // stripped out. For block comments, leading whitespace and an asterisk - // will be stripped from the beginning of each line other than the first. - // Newlines are included in the output. - // - // Examples: - // - // optional int32 foo = 1; // Comment attached to foo. - // // Comment attached to bar. - // optional int32 bar = 2; - // - // optional string baz = 3; - // // Comment attached to baz. - // // Another line attached to baz. - // - // // Comment attached to qux. - // // - // // Another line attached to qux. - // optional double qux = 4; - // - // // Detached comment for corge. This is not leading or trailing comments - // // to qux or corge because there are blank lines separating it from - // // both. - // - // // Detached comment for corge paragraph 2. - // - // optional string corge = 5; - // /* Block comment attached - // * to corge. Leading asterisks - // * will be removed. */ - // /* Block comment attached to - // * grault. */ - // optional int32 grault = 6; - // - // // ignored detached comments. - optional string leading_comments = 3; - optional string trailing_comments = 4; - repeated string leading_detached_comments = 6; - } -} - -// Describes the relationship between generated code and its original source -// file. A GeneratedCodeInfo message is associated with only one generated -// source file, but may contain references to different source .proto files. -message GeneratedCodeInfo { - // An Annotation connects some span of text in generated code to an element - // of its generating .proto file. - repeated Annotation annotation = 1; - message Annotation { - // Identifies the element in the original source .proto file. This field - // is formatted the same as SourceCodeInfo.Location.path. - repeated int32 path = 1 [packed = true]; - - // Identifies the filesystem path to the original source .proto. - optional string source_file = 2; - - // Identifies the starting offset in bytes in the generated code - // that relates to the identified object. - optional int32 begin = 3; - - // Identifies the ending offset in bytes in the generated code that - // relates to the identified offset. The end offset should be one past - // the last relevant byte (so the length of the text = end - begin). - optional int32 end = 4; - } -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/duration.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/duration.proto deleted file mode 100644 index 99cb102c35..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/duration.proto +++ /dev/null @@ -1,116 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/duration"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "DurationProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Duration represents a signed, fixed-length span of time represented -// as a count of seconds and fractions of seconds at nanosecond -// resolution. It is independent of any calendar and concepts like "day" -// or "month". It is related to Timestamp in that the difference between -// two Timestamp values is a Duration and it can be added or subtracted -// from a Timestamp. Range is approximately +-10,000 years. -// -// # Examples -// -// Example 1: Compute Duration from two Timestamps in pseudo code. -// -// Timestamp start = ...; -// Timestamp end = ...; -// Duration duration = ...; -// -// duration.seconds = end.seconds - start.seconds; -// duration.nanos = end.nanos - start.nanos; -// -// if (duration.seconds < 0 && duration.nanos > 0) { -// duration.seconds += 1; -// duration.nanos -= 1000000000; -// } else if (duration.seconds > 0 && duration.nanos < 0) { -// duration.seconds -= 1; -// duration.nanos += 1000000000; -// } -// -// Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. -// -// Timestamp start = ...; -// Duration duration = ...; -// Timestamp end = ...; -// -// end.seconds = start.seconds + duration.seconds; -// end.nanos = start.nanos + duration.nanos; -// -// if (end.nanos < 0) { -// end.seconds -= 1; -// end.nanos += 1000000000; -// } else if (end.nanos >= 1000000000) { -// end.seconds += 1; -// end.nanos -= 1000000000; -// } -// -// Example 3: Compute Duration from datetime.timedelta in Python. -// -// td = datetime.timedelta(days=3, minutes=10) -// duration = Duration() -// duration.FromTimedelta(td) -// -// # JSON Mapping -// -// In JSON format, the Duration type is encoded as a string rather than an -// object, where the string ends in the suffix "s" (indicating seconds) and -// is preceded by the number of seconds, with nanoseconds expressed as -// fractional seconds. For example, 3 seconds with 0 nanoseconds should be -// encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should -// be expressed in JSON format as "3.000000001s", and 3 seconds and 1 -// microsecond should be expressed in JSON format as "3.000001s". -// -// -message Duration { - // Signed seconds of the span of time. Must be from -315,576,000,000 - // to +315,576,000,000 inclusive. Note: these bounds are computed from: - // 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - int64 seconds = 1; - - // Signed fractions of a second at nanosecond resolution of the span - // of time. Durations less than one second are represented with a 0 - // `seconds` field and a positive or negative `nanos` field. For durations - // of one second or more, a non-zero value for the `nanos` field must be - // of the same sign as the `seconds` field. Must be from -999,999,999 - // to +999,999,999 inclusive. - int32 nanos = 2; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/empty.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/empty.proto deleted file mode 100644 index 03cacd2330..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/empty.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option go_package = "github.com/golang/protobuf/ptypes/empty"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "EmptyProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option cc_enable_arenas = true; - -// A generic empty message that you can re-use to avoid defining duplicated -// empty messages in your APIs. A typical example is to use it as the request -// or the response type of an API method. For instance: -// -// service Foo { -// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); -// } -// -// The JSON representation for `Empty` is empty JSON object `{}`. -message Empty {} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/field_mask.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/field_mask.proto deleted file mode 100644 index baac8744cb..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/field_mask.proto +++ /dev/null @@ -1,245 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "FieldMaskProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/genproto/protobuf/field_mask;field_mask"; -option cc_enable_arenas = true; - -// `FieldMask` represents a set of symbolic field paths, for example: -// -// paths: "f.a" -// paths: "f.b.d" -// -// Here `f` represents a field in some root message, `a` and `b` -// fields in the message found in `f`, and `d` a field found in the -// message in `f.b`. -// -// Field masks are used to specify a subset of fields that should be -// returned by a get operation or modified by an update operation. -// Field masks also have a custom JSON encoding (see below). -// -// # Field Masks in Projections -// -// When used in the context of a projection, a response message or -// sub-message is filtered by the API to only contain those fields as -// specified in the mask. For example, if the mask in the previous -// example is applied to a response message as follows: -// -// f { -// a : 22 -// b { -// d : 1 -// x : 2 -// } -// y : 13 -// } -// z: 8 -// -// The result will not contain specific values for fields x,y and z -// (their value will be set to the default, and omitted in proto text -// output): -// -// -// f { -// a : 22 -// b { -// d : 1 -// } -// } -// -// A repeated field is not allowed except at the last position of a -// paths string. -// -// If a FieldMask object is not present in a get operation, the -// operation applies to all fields (as if a FieldMask of all fields -// had been specified). -// -// Note that a field mask does not necessarily apply to the -// top-level response message. In case of a REST get operation, the -// field mask applies directly to the response, but in case of a REST -// list operation, the mask instead applies to each individual message -// in the returned resource list. In case of a REST custom method, -// other definitions may be used. Where the mask applies will be -// clearly documented together with its declaration in the API. In -// any case, the effect on the returned resource/resources is required -// behavior for APIs. -// -// # Field Masks in Update Operations -// -// A field mask in update operations specifies which fields of the -// targeted resource are going to be updated. The API is required -// to only change the values of the fields as specified in the mask -// and leave the others untouched. If a resource is passed in to -// describe the updated values, the API ignores the values of all -// fields not covered by the mask. -// -// If a repeated field is specified for an update operation, new values will -// be appended to the existing repeated field in the target resource. Note that -// a repeated field is only allowed in the last position of a `paths` string. -// -// If a sub-message is specified in the last position of the field mask for an -// update operation, then new value will be merged into the existing sub-message -// in the target resource. -// -// For example, given the target message: -// -// f { -// b { -// d: 1 -// x: 2 -// } -// c: [1] -// } -// -// And an update message: -// -// f { -// b { -// d: 10 -// } -// c: [2] -// } -// -// then if the field mask is: -// -// paths: ["f.b", "f.c"] -// -// then the result will be: -// -// f { -// b { -// d: 10 -// x: 2 -// } -// c: [1, 2] -// } -// -// An implementation may provide options to override this default behavior for -// repeated and message fields. -// -// In order to reset a field's value to the default, the field must -// be in the mask and set to the default value in the provided resource. -// Hence, in order to reset all fields of a resource, provide a default -// instance of the resource and set all fields in the mask, or do -// not provide a mask as described below. -// -// If a field mask is not present on update, the operation applies to -// all fields (as if a field mask of all fields has been specified). -// Note that in the presence of schema evolution, this may mean that -// fields the client does not know and has therefore not filled into -// the request will be reset to their default. If this is unwanted -// behavior, a specific service may require a client to always specify -// a field mask, producing an error if not. -// -// As with get operations, the location of the resource which -// describes the updated values in the request message depends on the -// operation kind. In any case, the effect of the field mask is -// required to be honored by the API. -// -// ## Considerations for HTTP REST -// -// The HTTP kind of an update operation which uses a field mask must -// be set to PATCH instead of PUT in order to satisfy HTTP semantics -// (PUT must only be used for full updates). -// -// # JSON Encoding of Field Masks -// -// In JSON, a field mask is encoded as a single string where paths are -// separated by a comma. Fields name in each path are converted -// to/from lower-camel naming conventions. -// -// As an example, consider the following message declarations: -// -// message Profile { -// User user = 1; -// Photo photo = 2; -// } -// message User { -// string display_name = 1; -// string address = 2; -// } -// -// In proto a field mask for `Profile` may look as such: -// -// mask { -// paths: "user.display_name" -// paths: "photo" -// } -// -// In JSON, the same mask is represented as below: -// -// { -// mask: "user.displayName,photo" -// } -// -// # Field Masks and Oneof Fields -// -// Field masks treat fields in oneofs just as regular fields. Consider the -// following message: -// -// message SampleMessage { -// oneof test_oneof { -// string name = 4; -// SubMessage sub_message = 9; -// } -// } -// -// The field mask can be: -// -// mask { -// paths: "name" -// } -// -// Or: -// -// mask { -// paths: "sub_message" -// } -// -// Note that oneof type names ("test_oneof" in this case) cannot be used in -// paths. -// -// ## Field Mask Verification -// -// The implementation of any API method which has a FieldMask type field in the -// request should verify the included field paths, and return an -// `INVALID_ARGUMENT` error if any path is unmappable. -message FieldMask { - // The set of field mask paths. - repeated string paths = 1; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/source_context.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/source_context.proto deleted file mode 100644 index f3b2c96681..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/source_context.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "SourceContextProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/genproto/protobuf/source_context;source_context"; - -// `SourceContext` represents information about the source of a -// protobuf element, like the file in which it is defined. -message SourceContext { - // The path-qualified name of the .proto file that contained the associated - // protobuf element. For example: `"google/protobuf/source_context.proto"`. - string file_name = 1; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/struct.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/struct.proto deleted file mode 100644 index ed990e31d9..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/struct.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/struct;structpb"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "StructProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// `Struct` represents a structured data value, consisting of fields -// which map to dynamically typed values. In some languages, `Struct` -// might be supported by a native representation. For example, in -// scripting languages like JS a struct is represented as an -// object. The details of that representation are described together -// with the proto support for the language. -// -// The JSON representation for `Struct` is JSON object. -message Struct { - // Unordered map of dynamically typed values. - map fields = 1; -} - -// `Value` represents a dynamically typed value which can be either -// null, a number, a string, a boolean, a recursive struct value, or a -// list of values. A producer of value is expected to set one of that -// variants, absence of any variant indicates an error. -// -// The JSON representation for `Value` is JSON value. -message Value { - // The kind of value. - oneof kind { - // Represents a null value. - NullValue null_value = 1; - // Represents a double value. - double number_value = 2; - // Represents a string value. - string string_value = 3; - // Represents a boolean value. - bool bool_value = 4; - // Represents a structured value. - Struct struct_value = 5; - // Represents a repeated `Value`. - ListValue list_value = 6; - } -} - -// `NullValue` is a singleton enumeration to represent the null value for the -// `Value` type union. -// -// The JSON representation for `NullValue` is JSON `null`. -enum NullValue { - // Null value. - NULL_VALUE = 0; -} - -// `ListValue` is a wrapper around a repeated field of values. -// -// The JSON representation for `ListValue` is JSON array. -message ListValue { - // Repeated field of dynamically typed values. - repeated Value values = 1; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/timestamp.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/timestamp.proto deleted file mode 100644 index cd357864a9..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/timestamp.proto +++ /dev/null @@ -1,138 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/timestamp"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TimestampProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// A Timestamp represents a point in time independent of any time zone or local -// calendar, encoded as a count of seconds and fractions of seconds at -// nanosecond resolution. The count is relative to an epoch at UTC midnight on -// January 1, 1970, in the proleptic Gregorian calendar which extends the -// Gregorian calendar backwards to year one. -// -// All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap -// second table is needed for interpretation, using a [24-hour linear -// smear](https://developers.google.com/time/smear). -// -// The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By -// restricting to that range, we ensure that we can convert to and from [RFC -// 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. -// -// # Examples -// -// Example 1: Compute Timestamp from POSIX `time()`. -// -// Timestamp timestamp; -// timestamp.set_seconds(time(NULL)); -// timestamp.set_nanos(0); -// -// Example 2: Compute Timestamp from POSIX `gettimeofday()`. -// -// struct timeval tv; -// gettimeofday(&tv, NULL); -// -// Timestamp timestamp; -// timestamp.set_seconds(tv.tv_sec); -// timestamp.set_nanos(tv.tv_usec * 1000); -// -// Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. -// -// FILETIME ft; -// GetSystemTimeAsFileTime(&ft); -// UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; -// -// // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z -// // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. -// Timestamp timestamp; -// timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); -// timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); -// -// Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. -// -// long millis = System.currentTimeMillis(); -// -// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) -// .setNanos((int) ((millis % 1000) * 1000000)).build(); -// -// -// Example 5: Compute Timestamp from current time in Python. -// -// timestamp = Timestamp() -// timestamp.GetCurrentTime() -// -// # JSON Mapping -// -// In JSON format, the Timestamp type is encoded as a string in the -// [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the -// format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" -// where {year} is always expressed using four digits while {month}, {day}, -// {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional -// seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), -// are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone -// is required. A proto3 JSON serializer should always use UTC (as indicated by -// "Z") when printing the Timestamp type and a proto3 JSON parser should be -// able to accept both UTC and other timezones (as indicated by an offset). -// -// For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past -// 01:30 UTC on January 15, 2017. -// -// In JavaScript, one can convert a Date object to this format using the -// standard -// [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) -// method. In Python, a standard `datetime.datetime` object can be converted -// to this format using -// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with -// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use -// the Joda Time's [`ISODateTimeFormat.dateTime()`]( -// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D -// ) to obtain a formatter capable of generating timestamps in this format. -// -// -message Timestamp { - // Represents seconds of UTC time since Unix epoch - // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - // 9999-12-31T23:59:59Z inclusive. - int64 seconds = 1; - - // Non-negative fractions of a second at nanosecond resolution. Negative - // second values with fractions must still have non-negative nanos values - // that count forward in time. Must be from 0 to 999,999,999 - // inclusive. - int32 nanos = 2; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/type.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/type.proto deleted file mode 100644 index e4b1d3a4ab..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/type.proto +++ /dev/null @@ -1,187 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -syntax = "proto3"; - -package google.protobuf; - -import "google/protobuf/any.proto"; -import "google/protobuf/source_context.proto"; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option java_package = "com.google.protobuf"; -option java_outer_classname = "TypeProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; -option go_package = "google.golang.org/genproto/protobuf/ptype;ptype"; - -// A protocol buffer message type. -message Type { - // The fully qualified message name. - string name = 1; - // The list of fields. - repeated Field fields = 2; - // The list of types appearing in `oneof` definitions in this type. - repeated string oneofs = 3; - // The protocol buffer options. - repeated Option options = 4; - // The source context. - SourceContext source_context = 5; - // The source syntax. - Syntax syntax = 6; -} - -// A single field of a message type. -message Field { - // Basic field types. - enum Kind { - // Field type unknown. - TYPE_UNKNOWN = 0; - // Field type double. - TYPE_DOUBLE = 1; - // Field type float. - TYPE_FLOAT = 2; - // Field type int64. - TYPE_INT64 = 3; - // Field type uint64. - TYPE_UINT64 = 4; - // Field type int32. - TYPE_INT32 = 5; - // Field type fixed64. - TYPE_FIXED64 = 6; - // Field type fixed32. - TYPE_FIXED32 = 7; - // Field type bool. - TYPE_BOOL = 8; - // Field type string. - TYPE_STRING = 9; - // Field type group. Proto2 syntax only, and deprecated. - TYPE_GROUP = 10; - // Field type message. - TYPE_MESSAGE = 11; - // Field type bytes. - TYPE_BYTES = 12; - // Field type uint32. - TYPE_UINT32 = 13; - // Field type enum. - TYPE_ENUM = 14; - // Field type sfixed32. - TYPE_SFIXED32 = 15; - // Field type sfixed64. - TYPE_SFIXED64 = 16; - // Field type sint32. - TYPE_SINT32 = 17; - // Field type sint64. - TYPE_SINT64 = 18; - } - - // Whether a field is optional, required, or repeated. - enum Cardinality { - // For fields with unknown cardinality. - CARDINALITY_UNKNOWN = 0; - // For optional fields. - CARDINALITY_OPTIONAL = 1; - // For required fields. Proto2 syntax only. - CARDINALITY_REQUIRED = 2; - // For repeated fields. - CARDINALITY_REPEATED = 3; - }; - - // The field type. - Kind kind = 1; - // The field cardinality. - Cardinality cardinality = 2; - // The field number. - int32 number = 3; - // The field name. - string name = 4; - // The field type URL, without the scheme, for message or enumeration - // types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. - string type_url = 6; - // The index of the field type in `Type.oneofs`, for message or enumeration - // types. The first type has index 1; zero means the type is not in the list. - int32 oneof_index = 7; - // Whether to use alternative packed wire representation. - bool packed = 8; - // The protocol buffer options. - repeated Option options = 9; - // The field JSON name. - string json_name = 10; - // The string value of the default value of this field. Proto2 syntax only. - string default_value = 11; -} - -// Enum type definition. -message Enum { - // Enum type name. - string name = 1; - // Enum value definitions. - repeated EnumValue enumvalue = 2; - // Protocol buffer options. - repeated Option options = 3; - // The source context. - SourceContext source_context = 4; - // The source syntax. - Syntax syntax = 5; -} - -// Enum value definition. -message EnumValue { - // Enum value name. - string name = 1; - // Enum value number. - int32 number = 2; - // Protocol buffer options. - repeated Option options = 3; -} - -// A protocol buffer option, which can be attached to a message, field, -// enumeration, etc. -message Option { - // The option's name. For protobuf built-in options (options defined in - // descriptor.proto), this is the short name. For example, `"map_entry"`. - // For custom options, it should be the fully-qualified name. For example, - // `"google.api.http"`. - string name = 1; - // The option's value packed in an Any message. If the value is a primitive, - // the corresponding wrapper type defined in google/protobuf/wrappers.proto - // should be used. If the value is an enum, it should be stored as an int32 - // value using the google.protobuf.Int32Value type. - Any value = 2; -} - -// The syntax in which a protocol buffer element is defined. -enum Syntax { - // Syntax `proto2`. - SYNTAX_PROTO2 = 0; - // Syntax `proto3`. - SYNTAX_PROTO3 = 1; -} diff --git a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/wrappers.proto b/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/wrappers.proto deleted file mode 100644 index 9ee41e384a..0000000000 --- a/libraries/mogo-adas-data/build/extracted-include-protos/debug/google/protobuf/wrappers.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Protocol Buffers - Google's data interchange format -// Copyright 2008 Google Inc. All rights reserved. -// https://developers.google.com/protocol-buffers/ -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Wrappers for primitive (non-message) types. These types are useful -// for embedding primitives in the `google.protobuf.Any` type and for places -// where we need to distinguish between the absence of a primitive -// typed field and its default value. -// -// These wrappers have no meaningful use within repeated fields as they lack -// the ability to detect presence on individual elements. -// These wrappers have no meaningful use within a map or a oneof since -// individual entries of a map or fields of a oneof can already detect presence. - -syntax = "proto3"; - -package google.protobuf; - -option csharp_namespace = "Google.Protobuf.WellKnownTypes"; -option cc_enable_arenas = true; -option go_package = "github.com/golang/protobuf/ptypes/wrappers"; -option java_package = "com.google.protobuf"; -option java_outer_classname = "WrappersProto"; -option java_multiple_files = true; -option objc_class_prefix = "GPB"; - -// Wrapper message for `double`. -// -// The JSON representation for `DoubleValue` is JSON number. -message DoubleValue { - // The double value. - double value = 1; -} - -// Wrapper message for `float`. -// -// The JSON representation for `FloatValue` is JSON number. -message FloatValue { - // The float value. - float value = 1; -} - -// Wrapper message for `int64`. -// -// The JSON representation for `Int64Value` is JSON string. -message Int64Value { - // The int64 value. - int64 value = 1; -} - -// Wrapper message for `uint64`. -// -// The JSON representation for `UInt64Value` is JSON string. -message UInt64Value { - // The uint64 value. - uint64 value = 1; -} - -// Wrapper message for `int32`. -// -// The JSON representation for `Int32Value` is JSON number. -message Int32Value { - // The int32 value. - int32 value = 1; -} - -// Wrapper message for `uint32`. -// -// The JSON representation for `UInt32Value` is JSON number. -message UInt32Value { - // The uint32 value. - uint32 value = 1; -} - -// Wrapper message for `bool`. -// -// The JSON representation for `BoolValue` is JSON `true` and `false`. -message BoolValue { - // The bool value. - bool value = 1; -} - -// Wrapper message for `string`. -// -// The JSON representation for `StringValue` is JSON string. -message StringValue { - // The string value. - string value = 1; -} - -// Wrapper message for `bytes`. -// -// The JSON representation for `BytesValue` is JSON string. -message BytesValue { - // The bytes value. - bytes value = 1; -} diff --git a/libraries/mogo-adas-data/build/generated/source/buildConfig/debug/com/zhjt/mogo/adas/data/BuildConfig.java b/libraries/mogo-adas-data/build/generated/source/buildConfig/debug/com/zhjt/mogo/adas/data/BuildConfig.java deleted file mode 100644 index a75999a4d4..0000000000 --- a/libraries/mogo-adas-data/build/generated/source/buildConfig/debug/com/zhjt/mogo/adas/data/BuildConfig.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Automatically generated file. DO NOT MODIFY - */ -package com.zhjt.mogo.adas.data; - -public final class BuildConfig { - public static final boolean DEBUG = Boolean.parseBoolean("true"); - public static final String LIBRARY_PACKAGE_NAME = "com.zhjt.mogo.adas.data"; - /** - * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME - */ - @Deprecated - public static final String APPLICATION_ID = "com.zhjt.mogo.adas.data"; - public static final String BUILD_TYPE = "debug"; - public static final String FLAVOR = ""; - public static final int VERSION_CODE = 1; - public static final String VERSION_NAME = ""; -} diff --git a/libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/Chassis.java b/libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/Chassis.java deleted file mode 100644 index 03c3b2d830..0000000000 --- a/libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/Chassis.java +++ /dev/null @@ -1,654 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: chassis.proto - -package chassis; - -public final class Chassis { - private Chassis() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code chassis.GearPosition} - */ - public enum GearPosition - implements com.google.protobuf.ProtocolMessageEnum { - /** - * GEAR_NONE = 0; - */ - GEAR_NONE(0), - /** - * GEAR_N = 1; - */ - GEAR_N(1), - /** - * GEAR_R = 2; - */ - GEAR_R(2), - /** - * GEAR_P = 3; - */ - GEAR_P(3), - /** - * GEAR_D = 4; - */ - GEAR_D(4), - ; - - /** - * GEAR_NONE = 0; - */ - public static final int GEAR_NONE_VALUE = 0; - /** - * GEAR_N = 1; - */ - public static final int GEAR_N_VALUE = 1; - /** - * GEAR_R = 2; - */ - public static final int GEAR_R_VALUE = 2; - /** - * GEAR_P = 3; - */ - public static final int GEAR_P_VALUE = 3; - /** - * GEAR_D = 4; - */ - public static final int GEAR_D_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GearPosition valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static GearPosition forNumber(int value) { - switch (value) { - case 0: return GEAR_NONE; - case 1: return GEAR_N; - case 2: return GEAR_R; - case 3: return GEAR_P; - case 4: return GEAR_D; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - GearPosition> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GearPosition findValueByNumber(int number) { - return GearPosition.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return chassis.Chassis.getDescriptor().getEnumTypes().get(0); - } - - private static final GearPosition[] VALUES = values(); - - public static GearPosition valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private GearPosition(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:chassis.GearPosition) - } - - /** - * Protobuf enum {@code chassis.LightSwitch} - */ - public enum LightSwitch - implements com.google.protobuf.ProtocolMessageEnum { - /** - * LIGHT_NONE = 0; - */ - LIGHT_NONE(0), - /** - * LIGHT_LEFT = 1; - */ - LIGHT_LEFT(1), - /** - * LIGHT_RIGHT = 2; - */ - LIGHT_RIGHT(2), - /** - * LIGHT_FLASH = 3; - */ - LIGHT_FLASH(3), - /** - * LIGHT_MANUAL = 4; - */ - LIGHT_MANUAL(4), - /** - * LIGHT_AUTO = 5; - */ - LIGHT_AUTO(5), - ; - - /** - * LIGHT_NONE = 0; - */ - public static final int LIGHT_NONE_VALUE = 0; - /** - * LIGHT_LEFT = 1; - */ - public static final int LIGHT_LEFT_VALUE = 1; - /** - * LIGHT_RIGHT = 2; - */ - public static final int LIGHT_RIGHT_VALUE = 2; - /** - * LIGHT_FLASH = 3; - */ - public static final int LIGHT_FLASH_VALUE = 3; - /** - * LIGHT_MANUAL = 4; - */ - public static final int LIGHT_MANUAL_VALUE = 4; - /** - * LIGHT_AUTO = 5; - */ - public static final int LIGHT_AUTO_VALUE = 5; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LightSwitch valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static LightSwitch forNumber(int value) { - switch (value) { - case 0: return LIGHT_NONE; - case 1: return LIGHT_LEFT; - case 2: return LIGHT_RIGHT; - case 3: return LIGHT_FLASH; - case 4: return LIGHT_MANUAL; - case 5: return LIGHT_AUTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LightSwitch> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LightSwitch findValueByNumber(int number) { - return LightSwitch.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return chassis.Chassis.getDescriptor().getEnumTypes().get(1); - } - - private static final LightSwitch[] VALUES = values(); - - public static LightSwitch valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LightSwitch(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:chassis.LightSwitch) - } - - /** - * Protobuf enum {@code chassis.PilotMode} - */ - public enum PilotMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MODE_MANUAL = 0; - */ - MODE_MANUAL(0), - /** - * MODE_AUTO_DRIVE = 1; - */ - MODE_AUTO_DRIVE(1), - /** - * MODE_STEER_ONLY = 2; - */ - MODE_STEER_ONLY(2), - /** - * MODE_SPEED_ONLY = 3; - */ - MODE_SPEED_ONLY(3), - ; - - /** - * MODE_MANUAL = 0; - */ - public static final int MODE_MANUAL_VALUE = 0; - /** - * MODE_AUTO_DRIVE = 1; - */ - public static final int MODE_AUTO_DRIVE_VALUE = 1; - /** - * MODE_STEER_ONLY = 2; - */ - public static final int MODE_STEER_ONLY_VALUE = 2; - /** - * MODE_SPEED_ONLY = 3; - */ - public static final int MODE_SPEED_ONLY_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PilotMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PilotMode forNumber(int value) { - switch (value) { - case 0: return MODE_MANUAL; - case 1: return MODE_AUTO_DRIVE; - case 2: return MODE_STEER_ONLY; - case 3: return MODE_SPEED_ONLY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PilotMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PilotMode findValueByNumber(int number) { - return PilotMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return chassis.Chassis.getDescriptor().getEnumTypes().get(2); - } - - private static final PilotMode[] VALUES = values(); - - public static PilotMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PilotMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:chassis.PilotMode) - } - - /** - * Protobuf enum {@code chassis.LongitudeDrivingMode} - */ - public enum LongitudeDrivingMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ManualMode = 0; - */ - ManualMode(0), - /** - * AutomaticStandby = 1; - */ - AutomaticStandby(1), - /** - * AutomaticAcceleration = 2; - */ - AutomaticAcceleration(2), - /** - * AutomaticDeceleration = 3; - */ - AutomaticDeceleration(3), - ; - - /** - * ManualMode = 0; - */ - public static final int ManualMode_VALUE = 0; - /** - * AutomaticStandby = 1; - */ - public static final int AutomaticStandby_VALUE = 1; - /** - * AutomaticAcceleration = 2; - */ - public static final int AutomaticAcceleration_VALUE = 2; - /** - * AutomaticDeceleration = 3; - */ - public static final int AutomaticDeceleration_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LongitudeDrivingMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static LongitudeDrivingMode forNumber(int value) { - switch (value) { - case 0: return ManualMode; - case 1: return AutomaticStandby; - case 2: return AutomaticAcceleration; - case 3: return AutomaticDeceleration; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LongitudeDrivingMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LongitudeDrivingMode findValueByNumber(int number) { - return LongitudeDrivingMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return chassis.Chassis.getDescriptor().getEnumTypes().get(3); - } - - private static final LongitudeDrivingMode[] VALUES = values(); - - public static LongitudeDrivingMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LongitudeDrivingMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:chassis.LongitudeDrivingMode) - } - - /** - * Protobuf enum {@code chassis.EPSSteeringMode} - */ - public enum EPSSteeringMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - * Manual = 0; - */ - Manual(0), - /** - * Automatic = 1; - */ - Automatic(1), - /** - * ManualFromInterference = 2; - */ - ManualFromInterference(2), - /** - * ManualFromEPSFailure = 3; - */ - ManualFromEPSFailure(3), - /** - * TemporaryInhibited = 4; - */ - TemporaryInhibited(4), - ; - - /** - * Manual = 0; - */ - public static final int Manual_VALUE = 0; - /** - * Automatic = 1; - */ - public static final int Automatic_VALUE = 1; - /** - * ManualFromInterference = 2; - */ - public static final int ManualFromInterference_VALUE = 2; - /** - * ManualFromEPSFailure = 3; - */ - public static final int ManualFromEPSFailure_VALUE = 3; - /** - * TemporaryInhibited = 4; - */ - public static final int TemporaryInhibited_VALUE = 4; - - - public final int getNumber() { - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EPSSteeringMode valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static EPSSteeringMode forNumber(int value) { - switch (value) { - case 0: return Manual; - case 1: return Automatic; - case 2: return ManualFromInterference; - case 3: return ManualFromEPSFailure; - case 4: return TemporaryInhibited; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - EPSSteeringMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EPSSteeringMode findValueByNumber(int number) { - return EPSSteeringMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return chassis.Chassis.getDescriptor().getEnumTypes().get(4); - } - - private static final EPSSteeringMode[] VALUES = values(); - - public static EPSSteeringMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private EPSSteeringMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:chassis.EPSSteeringMode) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\rchassis.proto\022\007chassis*M\n\014GearPosition" + - "\022\r\n\tGEAR_NONE\020\000\022\n\n\006GEAR_N\020\001\022\n\n\006GEAR_R\020\002\022" + - "\n\n\006GEAR_P\020\003\022\n\n\006GEAR_D\020\004*q\n\013LightSwitch\022\016" + - "\n\nLIGHT_NONE\020\000\022\016\n\nLIGHT_LEFT\020\001\022\017\n\013LIGHT_" + - "RIGHT\020\002\022\017\n\013LIGHT_FLASH\020\003\022\020\n\014LIGHT_MANUAL" + - "\020\004\022\016\n\nLIGHT_AUTO\020\005*[\n\tPilotMode\022\017\n\013MODE_" + - "MANUAL\020\000\022\023\n\017MODE_AUTO_DRIVE\020\001\022\023\n\017MODE_ST" + - "EER_ONLY\020\002\022\023\n\017MODE_SPEED_ONLY\020\003*r\n\024Longi" + - "tudeDrivingMode\022\016\n\nManualMode\020\000\022\024\n\020Autom" + - "aticStandby\020\001\022\031\n\025AutomaticAcceleration\020\002" + - "\022\031\n\025AutomaticDeceleration\020\003*z\n\017EPSSteeri" + - "ngMode\022\n\n\006Manual\020\000\022\r\n\tAutomatic\020\001\022\032\n\026Man" + - "ualFromInterference\020\002\022\030\n\024ManualFromEPSFa" + - "ilure\020\003\022\026\n\022TemporaryInhibited\020\004" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/VehicleStateOuterClass.java b/libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/VehicleStateOuterClass.java deleted file mode 100644 index ff28fd80c2..0000000000 --- a/libraries/mogo-adas-data/build/generated/source/proto/debug/java/chassis/VehicleStateOuterClass.java +++ /dev/null @@ -1,4068 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: vehicle_state.proto - -package chassis; - -public final class VehicleStateOuterClass { - private VehicleStateOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface VehicleStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:chassis.VehicleState) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .common.Header header = 1; - * @return Whether the header field is set. - */ - boolean hasHeader(); - /** - * optional .common.Header header = 1; - * @return The header. - */ - common.HeaderOuterClass.Header getHeader(); - /** - * optional .common.Header header = 1; - */ - common.HeaderOuterClass.HeaderOrBuilder getHeaderOrBuilder(); - - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return Whether the pilotMode field is set. - */ - boolean hasPilotMode(); - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return The pilotMode. - */ - chassis.Chassis.PilotMode getPilotMode(); - - /** - *
-     * steering angle in degrees
-     * 
- * - * optional float steering = 3 [default = 0]; - * @return Whether the steering field is set. - */ - boolean hasSteering(); - /** - *
-     * steering angle in degrees
-     * 
- * - * optional float steering = 3 [default = 0]; - * @return The steering. - */ - float getSteering(); - - /** - *
-     * speed in m/s
-     * 
- * - * optional float speed = 4 [default = 0]; - * @return Whether the speed field is set. - */ - boolean hasSpeed(); - /** - *
-     * speed in m/s
-     * 
- * - * optional float speed = 4 [default = 0]; - * @return The speed. - */ - float getSpeed(); - - /** - *
-     * target acceleration in m/s^2
-     * 
- * - * optional float accel = 5 [default = 0]; - * @return Whether the accel field is set. - */ - boolean hasAccel(); - /** - *
-     * target acceleration in m/s^2
-     * 
- * - * optional float accel = 5 [default = 0]; - * @return The accel. - */ - float getAccel(); - - /** - *
-     * target throttle in percentage [0, 100]
-     * 
- * - * optional float throttle = 6 [default = 0]; - * @return Whether the throttle field is set. - */ - boolean hasThrottle(); - /** - *
-     * target throttle in percentage [0, 100]
-     * 
- * - * optional float throttle = 6 [default = 0]; - * @return The throttle. - */ - float getThrottle(); - - /** - *
-     * target brake in percentage [0, 100]
-     * 
- * - * optional float brake = 7 [default = 0]; - * @return Whether the brake field is set. - */ - boolean hasBrake(); - /** - *
-     * target brake in percentage [0, 100]
-     * 
- * - * optional float brake = 7 [default = 0]; - * @return The brake. - */ - float getBrake(); - - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return Whether the gear field is set. - */ - boolean hasGear(); - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return The gear. - */ - chassis.Chassis.GearPosition getGear(); - - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return Whether the light field is set. - */ - boolean hasLight(); - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return The light. - */ - chassis.Chassis.LightSwitch getLight(); - - /** - *
-     *TODO: move to chassis
-     * 
- * - * optional bool horn = 10 [default = false]; - * @return Whether the horn field is set. - */ - boolean hasHorn(); - /** - *
-     *TODO: move to chassis
-     * 
- * - * optional bool horn = 10 [default = false]; - * @return The horn. - */ - boolean getHorn(); - - /** - *
-     *远光灯
-     * 
- * - * optional bool highbeam = 11 [default = false]; - * @return Whether the highbeam field is set. - */ - boolean hasHighbeam(); - /** - *
-     *远光灯
-     * 
- * - * optional bool highbeam = 11 [default = false]; - * @return The highbeam. - */ - boolean getHighbeam(); - - /** - *
-     *近光灯
-     * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return Whether the lowbeam field is set. - */ - boolean hasLowbeam(); - /** - *
-     *近光灯
-     * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return The lowbeam. - */ - boolean getLowbeam(); - - /** - *
-     *雾灯
-     * 
- * - * optional bool foglight = 13 [default = false]; - * @return Whether the foglight field is set. - */ - boolean hasFoglight(); - /** - *
-     *雾灯
-     * 
- * - * optional bool foglight = 13 [default = false]; - * @return The foglight. - */ - boolean getFoglight(); - - /** - *
-     *示廓灯
-     * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return Whether the clearanceLamps field is set. - */ - boolean hasClearanceLamps(); - /** - *
-     *示廓灯
-     * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return The clearanceLamps. - */ - boolean getClearanceLamps(); - - /** - *
-     *报警灯
-     * 
- * - * optional bool warn_light = 15 [default = false]; - * @return Whether the warnLight field is set. - */ - boolean hasWarnLight(); - /** - *
-     *报警灯
-     * 
- * - * optional bool warn_light = 15 [default = false]; - * @return The warnLight. - */ - boolean getWarnLight(); - - /** - * optional bool parking_brake = 16 [default = false]; - * @return Whether the parkingBrake field is set. - */ - boolean hasParkingBrake(); - /** - * optional bool parking_brake = 16 [default = false]; - * @return The parkingBrake. - */ - boolean getParkingBrake(); - - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return Whether the longitudeDrivingMode field is set. - */ - boolean hasLongitudeDrivingMode(); - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return The longitudeDrivingMode. - */ - chassis.Chassis.LongitudeDrivingMode getLongitudeDrivingMode(); - - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return Whether the epsSteeringMode field is set. - */ - boolean hasEpsSteeringMode(); - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return The epsSteeringMode. - */ - chassis.Chassis.EPSSteeringMode getEpsSteeringMode(); - - /** - * optional uint32 steering_sign = 22; - * @return Whether the steeringSign field is set. - */ - boolean hasSteeringSign(); - /** - * optional uint32 steering_sign = 22; - * @return The steeringSign. - */ - int getSteeringSign(); - - /** - *
-     *方向盘干预
-     * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return Whether the steerInference field is set. - */ - boolean hasSteerInference(); - /** - *
-     *方向盘干预
-     * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return The steerInference. - */ - boolean getSteerInference(); - - /** - *
-     *制动踏板干预
-     * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return Whether the brakeInference field is set. - */ - boolean hasBrakeInference(); - /** - *
-     *制动踏板干预
-     * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return The brakeInference. - */ - boolean getBrakeInference(); - - /** - *
-     *加速踏板干预
-     * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return Whether the accelInference field is set. - */ - boolean hasAccelInference(); - /** - *
-     *加速踏板干预
-     * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return The accelInference. - */ - boolean getAccelInference(); - - /** - *
-     *档位切换干预 
-     * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return Whether the gearSwitchInference field is set. - */ - boolean hasGearSwitchInference(); - /** - *
-     *档位切换干预 
-     * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return The gearSwitchInference. - */ - boolean getGearSwitchInference(); - - /** - *
-     *未收到定位
-     * 
- * - * optional bool location_missing = 27 [default = false]; - * @return Whether the locationMissing field is set. - */ - boolean hasLocationMissing(); - /** - *
-     *未收到定位
-     * 
- * - * optional bool location_missing = 27 [default = false]; - * @return The locationMissing. - */ - boolean getLocationMissing(); - - /** - *
-     *未收到轨迹
-     * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return Whether the trajectoryMissing field is set. - */ - boolean hasTrajectoryMissing(); - /** - *
-     *未收到轨迹
-     * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return The trajectoryMissing. - */ - boolean getTrajectoryMissing(); - - /** - *
-     *未收到车辆底盘反馈信息
-     * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return Whether the chassisStatusMissing field is set. - */ - boolean hasChassisStatusMissing(); - /** - *
-     *未收到车辆底盘反馈信息
-     * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return The chassisStatusMissing. - */ - boolean getChassisStatusMissing(); - - /** - *
-     *自驾模式下制动灯状态
-     * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return Whether the brakeLightStatus field is set. - */ - boolean hasBrakeLightStatus(); - /** - *
-     *自驾模式下制动灯状态
-     * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return The brakeLightStatus. - */ - boolean getBrakeLightStatus(); - - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return Whether the pilotModeConditionMet field is set. - */ - boolean hasPilotModeConditionMet(); - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return The pilotModeConditionMet. - */ - boolean getPilotModeConditionMet(); - } - /** - * Protobuf type {@code chassis.VehicleState} - */ - public static final class VehicleState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:chassis.VehicleState) - VehicleStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use VehicleState.newBuilder() to construct. - private VehicleState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VehicleState() { - pilotMode_ = 0; - gear_ = 0; - light_ = 0; - longitudeDrivingMode_ = 0; - epsSteeringMode_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new VehicleState(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VehicleState( - 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) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - common.HeaderOuterClass.Header.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = header_.toBuilder(); - } - header_ = input.readMessage(common.HeaderOuterClass.Header.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(header_); - header_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - chassis.Chassis.PilotMode value = chassis.Chassis.PilotMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - pilotMode_ = rawValue; - } - break; - } - case 29: { - bitField0_ |= 0x00000004; - steering_ = input.readFloat(); - break; - } - case 37: { - bitField0_ |= 0x00000008; - speed_ = input.readFloat(); - break; - } - case 45: { - bitField0_ |= 0x00000010; - accel_ = input.readFloat(); - break; - } - case 53: { - bitField0_ |= 0x00000020; - throttle_ = input.readFloat(); - break; - } - case 61: { - bitField0_ |= 0x00000040; - brake_ = input.readFloat(); - break; - } - case 64: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - chassis.Chassis.GearPosition value = chassis.Chassis.GearPosition.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(8, rawValue); - } else { - bitField0_ |= 0x00000080; - gear_ = rawValue; - } - break; - } - case 72: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - chassis.Chassis.LightSwitch value = chassis.Chassis.LightSwitch.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(9, rawValue); - } else { - bitField0_ |= 0x00000100; - light_ = rawValue; - } - break; - } - case 80: { - bitField0_ |= 0x00000200; - horn_ = input.readBool(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - highbeam_ = input.readBool(); - break; - } - case 96: { - bitField0_ |= 0x00000800; - lowbeam_ = input.readBool(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - foglight_ = input.readBool(); - break; - } - case 112: { - bitField0_ |= 0x00002000; - clearanceLamps_ = input.readBool(); - break; - } - case 120: { - bitField0_ |= 0x00004000; - warnLight_ = input.readBool(); - break; - } - case 128: { - bitField0_ |= 0x00008000; - parkingBrake_ = input.readBool(); - break; - } - case 160: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - chassis.Chassis.LongitudeDrivingMode value = chassis.Chassis.LongitudeDrivingMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(20, rawValue); - } else { - bitField0_ |= 0x00010000; - longitudeDrivingMode_ = rawValue; - } - break; - } - case 168: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - chassis.Chassis.EPSSteeringMode value = chassis.Chassis.EPSSteeringMode.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(21, rawValue); - } else { - bitField0_ |= 0x00020000; - epsSteeringMode_ = rawValue; - } - break; - } - case 176: { - bitField0_ |= 0x00040000; - steeringSign_ = input.readUInt32(); - break; - } - case 184: { - bitField0_ |= 0x00080000; - steerInference_ = input.readBool(); - break; - } - case 192: { - bitField0_ |= 0x00100000; - brakeInference_ = input.readBool(); - break; - } - case 200: { - bitField0_ |= 0x00200000; - accelInference_ = input.readBool(); - break; - } - case 208: { - bitField0_ |= 0x00400000; - gearSwitchInference_ = input.readBool(); - break; - } - case 216: { - bitField0_ |= 0x00800000; - locationMissing_ = input.readBool(); - break; - } - case 224: { - bitField0_ |= 0x01000000; - trajectoryMissing_ = input.readBool(); - break; - } - case 232: { - bitField0_ |= 0x02000000; - chassisStatusMissing_ = input.readBool(); - break; - } - case 240: { - bitField0_ |= 0x04000000; - brakeLightStatus_ = input.readBool(); - break; - } - case 248: { - bitField0_ |= 0x08000000; - pilotModeConditionMet_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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 chassis.VehicleStateOuterClass.internal_static_chassis_VehicleState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return chassis.VehicleStateOuterClass.internal_static_chassis_VehicleState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - chassis.VehicleStateOuterClass.VehicleState.class, chassis.VehicleStateOuterClass.VehicleState.Builder.class); - } - - private int bitField0_; - public static final int HEADER_FIELD_NUMBER = 1; - private common.HeaderOuterClass.Header header_; - /** - * optional .common.Header header = 1; - * @return Whether the header field is set. - */ - @java.lang.Override - public boolean hasHeader() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .common.Header header = 1; - * @return The header. - */ - @java.lang.Override - public common.HeaderOuterClass.Header getHeader() { - return header_ == null ? common.HeaderOuterClass.Header.getDefaultInstance() : header_; - } - /** - * optional .common.Header header = 1; - */ - @java.lang.Override - public common.HeaderOuterClass.HeaderOrBuilder getHeaderOrBuilder() { - return header_ == null ? common.HeaderOuterClass.Header.getDefaultInstance() : header_; - } - - public static final int PILOT_MODE_FIELD_NUMBER = 2; - private int pilotMode_; - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return Whether the pilotMode field is set. - */ - @java.lang.Override public boolean hasPilotMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return The pilotMode. - */ - @java.lang.Override public chassis.Chassis.PilotMode getPilotMode() { - @SuppressWarnings("deprecation") - chassis.Chassis.PilotMode result = chassis.Chassis.PilotMode.valueOf(pilotMode_); - return result == null ? chassis.Chassis.PilotMode.MODE_MANUAL : result; - } - - public static final int STEERING_FIELD_NUMBER = 3; - private float steering_; - /** - *
-     * steering angle in degrees
-     * 
- * - * optional float steering = 3 [default = 0]; - * @return Whether the steering field is set. - */ - @java.lang.Override - public boolean hasSteering() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * steering angle in degrees
-     * 
- * - * optional float steering = 3 [default = 0]; - * @return The steering. - */ - @java.lang.Override - public float getSteering() { - return steering_; - } - - public static final int SPEED_FIELD_NUMBER = 4; - private float speed_; - /** - *
-     * speed in m/s
-     * 
- * - * optional float speed = 4 [default = 0]; - * @return Whether the speed field is set. - */ - @java.lang.Override - public boolean hasSpeed() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * speed in m/s
-     * 
- * - * optional float speed = 4 [default = 0]; - * @return The speed. - */ - @java.lang.Override - public float getSpeed() { - return speed_; - } - - public static final int ACCEL_FIELD_NUMBER = 5; - private float accel_; - /** - *
-     * target acceleration in m/s^2
-     * 
- * - * optional float accel = 5 [default = 0]; - * @return Whether the accel field is set. - */ - @java.lang.Override - public boolean hasAccel() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * target acceleration in m/s^2
-     * 
- * - * optional float accel = 5 [default = 0]; - * @return The accel. - */ - @java.lang.Override - public float getAccel() { - return accel_; - } - - public static final int THROTTLE_FIELD_NUMBER = 6; - private float throttle_; - /** - *
-     * target throttle in percentage [0, 100]
-     * 
- * - * optional float throttle = 6 [default = 0]; - * @return Whether the throttle field is set. - */ - @java.lang.Override - public boolean hasThrottle() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * target throttle in percentage [0, 100]
-     * 
- * - * optional float throttle = 6 [default = 0]; - * @return The throttle. - */ - @java.lang.Override - public float getThrottle() { - return throttle_; - } - - public static final int BRAKE_FIELD_NUMBER = 7; - private float brake_; - /** - *
-     * target brake in percentage [0, 100]
-     * 
- * - * optional float brake = 7 [default = 0]; - * @return Whether the brake field is set. - */ - @java.lang.Override - public boolean hasBrake() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * target brake in percentage [0, 100]
-     * 
- * - * optional float brake = 7 [default = 0]; - * @return The brake. - */ - @java.lang.Override - public float getBrake() { - return brake_; - } - - public static final int GEAR_FIELD_NUMBER = 8; - private int gear_; - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return Whether the gear field is set. - */ - @java.lang.Override public boolean hasGear() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return The gear. - */ - @java.lang.Override public chassis.Chassis.GearPosition getGear() { - @SuppressWarnings("deprecation") - chassis.Chassis.GearPosition result = chassis.Chassis.GearPosition.valueOf(gear_); - return result == null ? chassis.Chassis.GearPosition.GEAR_NONE : result; - } - - public static final int LIGHT_FIELD_NUMBER = 9; - private int light_; - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return Whether the light field is set. - */ - @java.lang.Override public boolean hasLight() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return The light. - */ - @java.lang.Override public chassis.Chassis.LightSwitch getLight() { - @SuppressWarnings("deprecation") - chassis.Chassis.LightSwitch result = chassis.Chassis.LightSwitch.valueOf(light_); - return result == null ? chassis.Chassis.LightSwitch.LIGHT_NONE : result; - } - - public static final int HORN_FIELD_NUMBER = 10; - private boolean horn_; - /** - *
-     *TODO: move to chassis
-     * 
- * - * optional bool horn = 10 [default = false]; - * @return Whether the horn field is set. - */ - @java.lang.Override - public boolean hasHorn() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-     *TODO: move to chassis
-     * 
- * - * optional bool horn = 10 [default = false]; - * @return The horn. - */ - @java.lang.Override - public boolean getHorn() { - return horn_; - } - - public static final int HIGHBEAM_FIELD_NUMBER = 11; - private boolean highbeam_; - /** - *
-     *远光灯
-     * 
- * - * optional bool highbeam = 11 [default = false]; - * @return Whether the highbeam field is set. - */ - @java.lang.Override - public boolean hasHighbeam() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-     *远光灯
-     * 
- * - * optional bool highbeam = 11 [default = false]; - * @return The highbeam. - */ - @java.lang.Override - public boolean getHighbeam() { - return highbeam_; - } - - public static final int LOWBEAM_FIELD_NUMBER = 12; - private boolean lowbeam_; - /** - *
-     *近光灯
-     * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return Whether the lowbeam field is set. - */ - @java.lang.Override - public boolean hasLowbeam() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-     *近光灯
-     * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return The lowbeam. - */ - @java.lang.Override - public boolean getLowbeam() { - return lowbeam_; - } - - public static final int FOGLIGHT_FIELD_NUMBER = 13; - private boolean foglight_; - /** - *
-     *雾灯
-     * 
- * - * optional bool foglight = 13 [default = false]; - * @return Whether the foglight field is set. - */ - @java.lang.Override - public boolean hasFoglight() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - *
-     *雾灯
-     * 
- * - * optional bool foglight = 13 [default = false]; - * @return The foglight. - */ - @java.lang.Override - public boolean getFoglight() { - return foglight_; - } - - public static final int CLEARANCE_LAMPS_FIELD_NUMBER = 14; - private boolean clearanceLamps_; - /** - *
-     *示廓灯
-     * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return Whether the clearanceLamps field is set. - */ - @java.lang.Override - public boolean hasClearanceLamps() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - *
-     *示廓灯
-     * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return The clearanceLamps. - */ - @java.lang.Override - public boolean getClearanceLamps() { - return clearanceLamps_; - } - - public static final int WARN_LIGHT_FIELD_NUMBER = 15; - private boolean warnLight_; - /** - *
-     *报警灯
-     * 
- * - * optional bool warn_light = 15 [default = false]; - * @return Whether the warnLight field is set. - */ - @java.lang.Override - public boolean hasWarnLight() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - *
-     *报警灯
-     * 
- * - * optional bool warn_light = 15 [default = false]; - * @return The warnLight. - */ - @java.lang.Override - public boolean getWarnLight() { - return warnLight_; - } - - public static final int PARKING_BRAKE_FIELD_NUMBER = 16; - private boolean parkingBrake_; - /** - * optional bool parking_brake = 16 [default = false]; - * @return Whether the parkingBrake field is set. - */ - @java.lang.Override - public boolean hasParkingBrake() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional bool parking_brake = 16 [default = false]; - * @return The parkingBrake. - */ - @java.lang.Override - public boolean getParkingBrake() { - return parkingBrake_; - } - - public static final int LONGITUDE_DRIVING_MODE_FIELD_NUMBER = 20; - private int longitudeDrivingMode_; - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return Whether the longitudeDrivingMode field is set. - */ - @java.lang.Override public boolean hasLongitudeDrivingMode() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return The longitudeDrivingMode. - */ - @java.lang.Override public chassis.Chassis.LongitudeDrivingMode getLongitudeDrivingMode() { - @SuppressWarnings("deprecation") - chassis.Chassis.LongitudeDrivingMode result = chassis.Chassis.LongitudeDrivingMode.valueOf(longitudeDrivingMode_); - return result == null ? chassis.Chassis.LongitudeDrivingMode.ManualMode : result; - } - - public static final int EPS_STEERING_MODE_FIELD_NUMBER = 21; - private int epsSteeringMode_; - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return Whether the epsSteeringMode field is set. - */ - @java.lang.Override public boolean hasEpsSteeringMode() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return The epsSteeringMode. - */ - @java.lang.Override public chassis.Chassis.EPSSteeringMode getEpsSteeringMode() { - @SuppressWarnings("deprecation") - chassis.Chassis.EPSSteeringMode result = chassis.Chassis.EPSSteeringMode.valueOf(epsSteeringMode_); - return result == null ? chassis.Chassis.EPSSteeringMode.Manual : result; - } - - public static final int STEERING_SIGN_FIELD_NUMBER = 22; - private int steeringSign_; - /** - * optional uint32 steering_sign = 22; - * @return Whether the steeringSign field is set. - */ - @java.lang.Override - public boolean hasSteeringSign() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * optional uint32 steering_sign = 22; - * @return The steeringSign. - */ - @java.lang.Override - public int getSteeringSign() { - return steeringSign_; - } - - public static final int STEER_INFERENCE_FIELD_NUMBER = 23; - private boolean steerInference_; - /** - *
-     *方向盘干预
-     * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return Whether the steerInference field is set. - */ - @java.lang.Override - public boolean hasSteerInference() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - *
-     *方向盘干预
-     * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return The steerInference. - */ - @java.lang.Override - public boolean getSteerInference() { - return steerInference_; - } - - public static final int BRAKE_INFERENCE_FIELD_NUMBER = 24; - private boolean brakeInference_; - /** - *
-     *制动踏板干预
-     * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return Whether the brakeInference field is set. - */ - @java.lang.Override - public boolean hasBrakeInference() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - *
-     *制动踏板干预
-     * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return The brakeInference. - */ - @java.lang.Override - public boolean getBrakeInference() { - return brakeInference_; - } - - public static final int ACCEL_INFERENCE_FIELD_NUMBER = 25; - private boolean accelInference_; - /** - *
-     *加速踏板干预
-     * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return Whether the accelInference field is set. - */ - @java.lang.Override - public boolean hasAccelInference() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - *
-     *加速踏板干预
-     * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return The accelInference. - */ - @java.lang.Override - public boolean getAccelInference() { - return accelInference_; - } - - public static final int GEAR_SWITCH_INFERENCE_FIELD_NUMBER = 26; - private boolean gearSwitchInference_; - /** - *
-     *档位切换干预 
-     * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return Whether the gearSwitchInference field is set. - */ - @java.lang.Override - public boolean hasGearSwitchInference() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - *
-     *档位切换干预 
-     * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return The gearSwitchInference. - */ - @java.lang.Override - public boolean getGearSwitchInference() { - return gearSwitchInference_; - } - - public static final int LOCATION_MISSING_FIELD_NUMBER = 27; - private boolean locationMissing_; - /** - *
-     *未收到定位
-     * 
- * - * optional bool location_missing = 27 [default = false]; - * @return Whether the locationMissing field is set. - */ - @java.lang.Override - public boolean hasLocationMissing() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - *
-     *未收到定位
-     * 
- * - * optional bool location_missing = 27 [default = false]; - * @return The locationMissing. - */ - @java.lang.Override - public boolean getLocationMissing() { - return locationMissing_; - } - - public static final int TRAJECTORY_MISSING_FIELD_NUMBER = 28; - private boolean trajectoryMissing_; - /** - *
-     *未收到轨迹
-     * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return Whether the trajectoryMissing field is set. - */ - @java.lang.Override - public boolean hasTrajectoryMissing() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - *
-     *未收到轨迹
-     * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return The trajectoryMissing. - */ - @java.lang.Override - public boolean getTrajectoryMissing() { - return trajectoryMissing_; - } - - public static final int CHASSIS_STATUS_MISSING_FIELD_NUMBER = 29; - private boolean chassisStatusMissing_; - /** - *
-     *未收到车辆底盘反馈信息
-     * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return Whether the chassisStatusMissing field is set. - */ - @java.lang.Override - public boolean hasChassisStatusMissing() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - *
-     *未收到车辆底盘反馈信息
-     * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return The chassisStatusMissing. - */ - @java.lang.Override - public boolean getChassisStatusMissing() { - return chassisStatusMissing_; - } - - public static final int BRAKE_LIGHT_STATUS_FIELD_NUMBER = 30; - private boolean brakeLightStatus_; - /** - *
-     *自驾模式下制动灯状态
-     * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return Whether the brakeLightStatus field is set. - */ - @java.lang.Override - public boolean hasBrakeLightStatus() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - *
-     *自驾模式下制动灯状态
-     * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return The brakeLightStatus. - */ - @java.lang.Override - public boolean getBrakeLightStatus() { - return brakeLightStatus_; - } - - public static final int PILOT_MODE_CONDITION_MET_FIELD_NUMBER = 31; - private boolean pilotModeConditionMet_; - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return Whether the pilotModeConditionMet field is set. - */ - @java.lang.Override - public boolean hasPilotModeConditionMet() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return The pilotModeConditionMet. - */ - @java.lang.Override - public boolean getPilotModeConditionMet() { - return pilotModeConditionMet_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getHeader()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeEnum(2, pilotMode_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeFloat(3, steering_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeFloat(4, speed_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeFloat(5, accel_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeFloat(6, throttle_); - } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeFloat(7, brake_); - } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeEnum(8, gear_); - } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeEnum(9, light_); - } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeBool(10, horn_); - } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeBool(11, highbeam_); - } - if (((bitField0_ & 0x00000800) != 0)) { - output.writeBool(12, lowbeam_); - } - if (((bitField0_ & 0x00001000) != 0)) { - output.writeBool(13, foglight_); - } - if (((bitField0_ & 0x00002000) != 0)) { - output.writeBool(14, clearanceLamps_); - } - if (((bitField0_ & 0x00004000) != 0)) { - output.writeBool(15, warnLight_); - } - if (((bitField0_ & 0x00008000) != 0)) { - output.writeBool(16, parkingBrake_); - } - if (((bitField0_ & 0x00010000) != 0)) { - output.writeEnum(20, longitudeDrivingMode_); - } - if (((bitField0_ & 0x00020000) != 0)) { - output.writeEnum(21, epsSteeringMode_); - } - if (((bitField0_ & 0x00040000) != 0)) { - output.writeUInt32(22, steeringSign_); - } - if (((bitField0_ & 0x00080000) != 0)) { - output.writeBool(23, steerInference_); - } - if (((bitField0_ & 0x00100000) != 0)) { - output.writeBool(24, brakeInference_); - } - if (((bitField0_ & 0x00200000) != 0)) { - output.writeBool(25, accelInference_); - } - if (((bitField0_ & 0x00400000) != 0)) { - output.writeBool(26, gearSwitchInference_); - } - if (((bitField0_ & 0x00800000) != 0)) { - output.writeBool(27, locationMissing_); - } - if (((bitField0_ & 0x01000000) != 0)) { - output.writeBool(28, trajectoryMissing_); - } - if (((bitField0_ & 0x02000000) != 0)) { - output.writeBool(29, chassisStatusMissing_); - } - if (((bitField0_ & 0x04000000) != 0)) { - output.writeBool(30, brakeLightStatus_); - } - if (((bitField0_ & 0x08000000) != 0)) { - output.writeBool(31, pilotModeConditionMet_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeader()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, pilotMode_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, steering_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, speed_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, accel_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, throttle_); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, brake_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, gear_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, light_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, horn_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, highbeam_); - } - if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, lowbeam_); - } - if (((bitField0_ & 0x00001000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, foglight_); - } - if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, clearanceLamps_); - } - if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, warnLight_); - } - if (((bitField0_ & 0x00008000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, parkingBrake_); - } - if (((bitField0_ & 0x00010000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(20, longitudeDrivingMode_); - } - if (((bitField0_ & 0x00020000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(21, epsSteeringMode_); - } - if (((bitField0_ & 0x00040000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(22, steeringSign_); - } - if (((bitField0_ & 0x00080000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, steerInference_); - } - if (((bitField0_ & 0x00100000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(24, brakeInference_); - } - if (((bitField0_ & 0x00200000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(25, accelInference_); - } - if (((bitField0_ & 0x00400000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(26, gearSwitchInference_); - } - if (((bitField0_ & 0x00800000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(27, locationMissing_); - } - if (((bitField0_ & 0x01000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(28, trajectoryMissing_); - } - if (((bitField0_ & 0x02000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(29, chassisStatusMissing_); - } - if (((bitField0_ & 0x04000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(30, brakeLightStatus_); - } - if (((bitField0_ & 0x08000000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(31, pilotModeConditionMet_); - } - 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 chassis.VehicleStateOuterClass.VehicleState)) { - return super.equals(obj); - } - chassis.VehicleStateOuterClass.VehicleState other = (chassis.VehicleStateOuterClass.VehicleState) obj; - - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader() - .equals(other.getHeader())) return false; - } - if (hasPilotMode() != other.hasPilotMode()) return false; - if (hasPilotMode()) { - if (pilotMode_ != other.pilotMode_) return false; - } - if (hasSteering() != other.hasSteering()) return false; - if (hasSteering()) { - if (java.lang.Float.floatToIntBits(getSteering()) - != java.lang.Float.floatToIntBits( - other.getSteering())) return false; - } - if (hasSpeed() != other.hasSpeed()) return false; - if (hasSpeed()) { - if (java.lang.Float.floatToIntBits(getSpeed()) - != java.lang.Float.floatToIntBits( - other.getSpeed())) return false; - } - if (hasAccel() != other.hasAccel()) return false; - if (hasAccel()) { - if (java.lang.Float.floatToIntBits(getAccel()) - != java.lang.Float.floatToIntBits( - other.getAccel())) return false; - } - if (hasThrottle() != other.hasThrottle()) return false; - if (hasThrottle()) { - if (java.lang.Float.floatToIntBits(getThrottle()) - != java.lang.Float.floatToIntBits( - other.getThrottle())) return false; - } - if (hasBrake() != other.hasBrake()) return false; - if (hasBrake()) { - if (java.lang.Float.floatToIntBits(getBrake()) - != java.lang.Float.floatToIntBits( - other.getBrake())) return false; - } - if (hasGear() != other.hasGear()) return false; - if (hasGear()) { - if (gear_ != other.gear_) return false; - } - if (hasLight() != other.hasLight()) return false; - if (hasLight()) { - if (light_ != other.light_) return false; - } - if (hasHorn() != other.hasHorn()) return false; - if (hasHorn()) { - if (getHorn() - != other.getHorn()) return false; - } - if (hasHighbeam() != other.hasHighbeam()) return false; - if (hasHighbeam()) { - if (getHighbeam() - != other.getHighbeam()) return false; - } - if (hasLowbeam() != other.hasLowbeam()) return false; - if (hasLowbeam()) { - if (getLowbeam() - != other.getLowbeam()) return false; - } - if (hasFoglight() != other.hasFoglight()) return false; - if (hasFoglight()) { - if (getFoglight() - != other.getFoglight()) return false; - } - if (hasClearanceLamps() != other.hasClearanceLamps()) return false; - if (hasClearanceLamps()) { - if (getClearanceLamps() - != other.getClearanceLamps()) return false; - } - if (hasWarnLight() != other.hasWarnLight()) return false; - if (hasWarnLight()) { - if (getWarnLight() - != other.getWarnLight()) return false; - } - if (hasParkingBrake() != other.hasParkingBrake()) return false; - if (hasParkingBrake()) { - if (getParkingBrake() - != other.getParkingBrake()) return false; - } - if (hasLongitudeDrivingMode() != other.hasLongitudeDrivingMode()) return false; - if (hasLongitudeDrivingMode()) { - if (longitudeDrivingMode_ != other.longitudeDrivingMode_) return false; - } - if (hasEpsSteeringMode() != other.hasEpsSteeringMode()) return false; - if (hasEpsSteeringMode()) { - if (epsSteeringMode_ != other.epsSteeringMode_) return false; - } - if (hasSteeringSign() != other.hasSteeringSign()) return false; - if (hasSteeringSign()) { - if (getSteeringSign() - != other.getSteeringSign()) return false; - } - if (hasSteerInference() != other.hasSteerInference()) return false; - if (hasSteerInference()) { - if (getSteerInference() - != other.getSteerInference()) return false; - } - if (hasBrakeInference() != other.hasBrakeInference()) return false; - if (hasBrakeInference()) { - if (getBrakeInference() - != other.getBrakeInference()) return false; - } - if (hasAccelInference() != other.hasAccelInference()) return false; - if (hasAccelInference()) { - if (getAccelInference() - != other.getAccelInference()) return false; - } - if (hasGearSwitchInference() != other.hasGearSwitchInference()) return false; - if (hasGearSwitchInference()) { - if (getGearSwitchInference() - != other.getGearSwitchInference()) return false; - } - if (hasLocationMissing() != other.hasLocationMissing()) return false; - if (hasLocationMissing()) { - if (getLocationMissing() - != other.getLocationMissing()) return false; - } - if (hasTrajectoryMissing() != other.hasTrajectoryMissing()) return false; - if (hasTrajectoryMissing()) { - if (getTrajectoryMissing() - != other.getTrajectoryMissing()) return false; - } - if (hasChassisStatusMissing() != other.hasChassisStatusMissing()) return false; - if (hasChassisStatusMissing()) { - if (getChassisStatusMissing() - != other.getChassisStatusMissing()) return false; - } - if (hasBrakeLightStatus() != other.hasBrakeLightStatus()) return false; - if (hasBrakeLightStatus()) { - if (getBrakeLightStatus() - != other.getBrakeLightStatus()) return false; - } - if (hasPilotModeConditionMet() != other.hasPilotModeConditionMet()) return false; - if (hasPilotModeConditionMet()) { - if (getPilotModeConditionMet() - != other.getPilotModeConditionMet()) 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(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - if (hasPilotMode()) { - hash = (37 * hash) + PILOT_MODE_FIELD_NUMBER; - hash = (53 * hash) + pilotMode_; - } - if (hasSteering()) { - hash = (37 * hash) + STEERING_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getSteering()); - } - if (hasSpeed()) { - hash = (37 * hash) + SPEED_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getSpeed()); - } - if (hasAccel()) { - hash = (37 * hash) + ACCEL_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAccel()); - } - if (hasThrottle()) { - hash = (37 * hash) + THROTTLE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getThrottle()); - } - if (hasBrake()) { - hash = (37 * hash) + BRAKE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBrake()); - } - if (hasGear()) { - hash = (37 * hash) + GEAR_FIELD_NUMBER; - hash = (53 * hash) + gear_; - } - if (hasLight()) { - hash = (37 * hash) + LIGHT_FIELD_NUMBER; - hash = (53 * hash) + light_; - } - if (hasHorn()) { - hash = (37 * hash) + HORN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHorn()); - } - if (hasHighbeam()) { - hash = (37 * hash) + HIGHBEAM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHighbeam()); - } - if (hasLowbeam()) { - hash = (37 * hash) + LOWBEAM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLowbeam()); - } - if (hasFoglight()) { - hash = (37 * hash) + FOGLIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFoglight()); - } - if (hasClearanceLamps()) { - hash = (37 * hash) + CLEARANCE_LAMPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClearanceLamps()); - } - if (hasWarnLight()) { - hash = (37 * hash) + WARN_LIGHT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getWarnLight()); - } - if (hasParkingBrake()) { - hash = (37 * hash) + PARKING_BRAKE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getParkingBrake()); - } - if (hasLongitudeDrivingMode()) { - hash = (37 * hash) + LONGITUDE_DRIVING_MODE_FIELD_NUMBER; - hash = (53 * hash) + longitudeDrivingMode_; - } - if (hasEpsSteeringMode()) { - hash = (37 * hash) + EPS_STEERING_MODE_FIELD_NUMBER; - hash = (53 * hash) + epsSteeringMode_; - } - if (hasSteeringSign()) { - hash = (37 * hash) + STEERING_SIGN_FIELD_NUMBER; - hash = (53 * hash) + getSteeringSign(); - } - if (hasSteerInference()) { - hash = (37 * hash) + STEER_INFERENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSteerInference()); - } - if (hasBrakeInference()) { - hash = (37 * hash) + BRAKE_INFERENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBrakeInference()); - } - if (hasAccelInference()) { - hash = (37 * hash) + ACCEL_INFERENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAccelInference()); - } - if (hasGearSwitchInference()) { - hash = (37 * hash) + GEAR_SWITCH_INFERENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getGearSwitchInference()); - } - if (hasLocationMissing()) { - hash = (37 * hash) + LOCATION_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLocationMissing()); - } - if (hasTrajectoryMissing()) { - hash = (37 * hash) + TRAJECTORY_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTrajectoryMissing()); - } - if (hasChassisStatusMissing()) { - hash = (37 * hash) + CHASSIS_STATUS_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getChassisStatusMissing()); - } - if (hasBrakeLightStatus()) { - hash = (37 * hash) + BRAKE_LIGHT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBrakeLightStatus()); - } - if (hasPilotModeConditionMet()) { - hash = (37 * hash) + PILOT_MODE_CONDITION_MET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPilotModeConditionMet()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static chassis.VehicleStateOuterClass.VehicleState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static chassis.VehicleStateOuterClass.VehicleState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static chassis.VehicleStateOuterClass.VehicleState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static chassis.VehicleStateOuterClass.VehicleState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static chassis.VehicleStateOuterClass.VehicleState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static chassis.VehicleStateOuterClass.VehicleState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static chassis.VehicleStateOuterClass.VehicleState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static chassis.VehicleStateOuterClass.VehicleState 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 chassis.VehicleStateOuterClass.VehicleState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static chassis.VehicleStateOuterClass.VehicleState 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 chassis.VehicleStateOuterClass.VehicleState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static chassis.VehicleStateOuterClass.VehicleState 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(chassis.VehicleStateOuterClass.VehicleState 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 chassis.VehicleState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:chassis.VehicleState) - chassis.VehicleStateOuterClass.VehicleStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return chassis.VehicleStateOuterClass.internal_static_chassis_VehicleState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return chassis.VehicleStateOuterClass.internal_static_chassis_VehicleState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - chassis.VehicleStateOuterClass.VehicleState.class, chassis.VehicleStateOuterClass.VehicleState.Builder.class); - } - - // Construct using chassis.VehicleStateOuterClass.VehicleState.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getHeaderFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headerBuilder_ == null) { - header_ = null; - } else { - headerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - pilotMode_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - steering_ = 0F; - bitField0_ = (bitField0_ & ~0x00000004); - speed_ = 0F; - bitField0_ = (bitField0_ & ~0x00000008); - accel_ = 0F; - bitField0_ = (bitField0_ & ~0x00000010); - throttle_ = 0F; - bitField0_ = (bitField0_ & ~0x00000020); - brake_ = 0F; - bitField0_ = (bitField0_ & ~0x00000040); - gear_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - light_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - horn_ = false; - bitField0_ = (bitField0_ & ~0x00000200); - highbeam_ = false; - bitField0_ = (bitField0_ & ~0x00000400); - lowbeam_ = false; - bitField0_ = (bitField0_ & ~0x00000800); - foglight_ = false; - bitField0_ = (bitField0_ & ~0x00001000); - clearanceLamps_ = false; - bitField0_ = (bitField0_ & ~0x00002000); - warnLight_ = false; - bitField0_ = (bitField0_ & ~0x00004000); - parkingBrake_ = false; - bitField0_ = (bitField0_ & ~0x00008000); - longitudeDrivingMode_ = 0; - bitField0_ = (bitField0_ & ~0x00010000); - epsSteeringMode_ = 0; - bitField0_ = (bitField0_ & ~0x00020000); - steeringSign_ = 0; - bitField0_ = (bitField0_ & ~0x00040000); - steerInference_ = false; - bitField0_ = (bitField0_ & ~0x00080000); - brakeInference_ = false; - bitField0_ = (bitField0_ & ~0x00100000); - accelInference_ = false; - bitField0_ = (bitField0_ & ~0x00200000); - gearSwitchInference_ = false; - bitField0_ = (bitField0_ & ~0x00400000); - locationMissing_ = false; - bitField0_ = (bitField0_ & ~0x00800000); - trajectoryMissing_ = false; - bitField0_ = (bitField0_ & ~0x01000000); - chassisStatusMissing_ = false; - bitField0_ = (bitField0_ & ~0x02000000); - brakeLightStatus_ = false; - bitField0_ = (bitField0_ & ~0x04000000); - pilotModeConditionMet_ = false; - bitField0_ = (bitField0_ & ~0x08000000); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return chassis.VehicleStateOuterClass.internal_static_chassis_VehicleState_descriptor; - } - - @java.lang.Override - public chassis.VehicleStateOuterClass.VehicleState getDefaultInstanceForType() { - return chassis.VehicleStateOuterClass.VehicleState.getDefaultInstance(); - } - - @java.lang.Override - public chassis.VehicleStateOuterClass.VehicleState build() { - chassis.VehicleStateOuterClass.VehicleState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public chassis.VehicleStateOuterClass.VehicleState buildPartial() { - chassis.VehicleStateOuterClass.VehicleState result = new chassis.VehicleStateOuterClass.VehicleState(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (headerBuilder_ == null) { - result.header_ = header_; - } else { - result.header_ = headerBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.pilotMode_ = pilotMode_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.steering_ = steering_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.speed_ = speed_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.accel_ = accel_; - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.throttle_ = throttle_; - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.brake_ = brake_; - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - to_bitField0_ |= 0x00000080; - } - result.gear_ = gear_; - if (((from_bitField0_ & 0x00000100) != 0)) { - to_bitField0_ |= 0x00000100; - } - result.light_ = light_; - if (((from_bitField0_ & 0x00000200) != 0)) { - result.horn_ = horn_; - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.highbeam_ = highbeam_; - to_bitField0_ |= 0x00000400; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.lowbeam_ = lowbeam_; - to_bitField0_ |= 0x00000800; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.foglight_ = foglight_; - to_bitField0_ |= 0x00001000; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.clearanceLamps_ = clearanceLamps_; - to_bitField0_ |= 0x00002000; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.warnLight_ = warnLight_; - to_bitField0_ |= 0x00004000; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.parkingBrake_ = parkingBrake_; - to_bitField0_ |= 0x00008000; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - to_bitField0_ |= 0x00010000; - } - result.longitudeDrivingMode_ = longitudeDrivingMode_; - if (((from_bitField0_ & 0x00020000) != 0)) { - to_bitField0_ |= 0x00020000; - } - result.epsSteeringMode_ = epsSteeringMode_; - if (((from_bitField0_ & 0x00040000) != 0)) { - result.steeringSign_ = steeringSign_; - to_bitField0_ |= 0x00040000; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.steerInference_ = steerInference_; - to_bitField0_ |= 0x00080000; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.brakeInference_ = brakeInference_; - to_bitField0_ |= 0x00100000; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.accelInference_ = accelInference_; - to_bitField0_ |= 0x00200000; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.gearSwitchInference_ = gearSwitchInference_; - to_bitField0_ |= 0x00400000; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.locationMissing_ = locationMissing_; - to_bitField0_ |= 0x00800000; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.trajectoryMissing_ = trajectoryMissing_; - to_bitField0_ |= 0x01000000; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.chassisStatusMissing_ = chassisStatusMissing_; - to_bitField0_ |= 0x02000000; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.brakeLightStatus_ = brakeLightStatus_; - to_bitField0_ |= 0x04000000; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.pilotModeConditionMet_ = pilotModeConditionMet_; - to_bitField0_ |= 0x08000000; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof chassis.VehicleStateOuterClass.VehicleState) { - return mergeFrom((chassis.VehicleStateOuterClass.VehicleState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(chassis.VehicleStateOuterClass.VehicleState other) { - if (other == chassis.VehicleStateOuterClass.VehicleState.getDefaultInstance()) return this; - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - if (other.hasPilotMode()) { - setPilotMode(other.getPilotMode()); - } - if (other.hasSteering()) { - setSteering(other.getSteering()); - } - if (other.hasSpeed()) { - setSpeed(other.getSpeed()); - } - if (other.hasAccel()) { - setAccel(other.getAccel()); - } - if (other.hasThrottle()) { - setThrottle(other.getThrottle()); - } - if (other.hasBrake()) { - setBrake(other.getBrake()); - } - if (other.hasGear()) { - setGear(other.getGear()); - } - if (other.hasLight()) { - setLight(other.getLight()); - } - if (other.hasHorn()) { - setHorn(other.getHorn()); - } - if (other.hasHighbeam()) { - setHighbeam(other.getHighbeam()); - } - if (other.hasLowbeam()) { - setLowbeam(other.getLowbeam()); - } - if (other.hasFoglight()) { - setFoglight(other.getFoglight()); - } - if (other.hasClearanceLamps()) { - setClearanceLamps(other.getClearanceLamps()); - } - if (other.hasWarnLight()) { - setWarnLight(other.getWarnLight()); - } - if (other.hasParkingBrake()) { - setParkingBrake(other.getParkingBrake()); - } - if (other.hasLongitudeDrivingMode()) { - setLongitudeDrivingMode(other.getLongitudeDrivingMode()); - } - if (other.hasEpsSteeringMode()) { - setEpsSteeringMode(other.getEpsSteeringMode()); - } - if (other.hasSteeringSign()) { - setSteeringSign(other.getSteeringSign()); - } - if (other.hasSteerInference()) { - setSteerInference(other.getSteerInference()); - } - if (other.hasBrakeInference()) { - setBrakeInference(other.getBrakeInference()); - } - if (other.hasAccelInference()) { - setAccelInference(other.getAccelInference()); - } - if (other.hasGearSwitchInference()) { - setGearSwitchInference(other.getGearSwitchInference()); - } - if (other.hasLocationMissing()) { - setLocationMissing(other.getLocationMissing()); - } - if (other.hasTrajectoryMissing()) { - setTrajectoryMissing(other.getTrajectoryMissing()); - } - if (other.hasChassisStatusMissing()) { - setChassisStatusMissing(other.getChassisStatusMissing()); - } - if (other.hasBrakeLightStatus()) { - setBrakeLightStatus(other.getBrakeLightStatus()); - } - if (other.hasPilotModeConditionMet()) { - setPilotModeConditionMet(other.getPilotModeConditionMet()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - chassis.VehicleStateOuterClass.VehicleState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (chassis.VehicleStateOuterClass.VehicleState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private common.HeaderOuterClass.Header header_; - private com.google.protobuf.SingleFieldBuilderV3< - common.HeaderOuterClass.Header, common.HeaderOuterClass.Header.Builder, common.HeaderOuterClass.HeaderOrBuilder> headerBuilder_; - /** - * optional .common.Header header = 1; - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .common.Header header = 1; - * @return The header. - */ - public common.HeaderOuterClass.Header getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? common.HeaderOuterClass.Header.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - /** - * optional .common.Header header = 1; - */ - public Builder setHeader(common.HeaderOuterClass.Header value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - onChanged(); - } else { - headerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .common.Header header = 1; - */ - public Builder setHeader( - common.HeaderOuterClass.Header.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - onChanged(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .common.Header header = 1; - */ - public Builder mergeHeader(common.HeaderOuterClass.Header value) { - if (headerBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - header_ != null && - header_ != common.HeaderOuterClass.Header.getDefaultInstance()) { - header_ = - common.HeaderOuterClass.Header.newBuilder(header_).mergeFrom(value).buildPartial(); - } else { - header_ = value; - } - onChanged(); - } else { - headerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .common.Header header = 1; - */ - public Builder clearHeader() { - if (headerBuilder_ == null) { - header_ = null; - onChanged(); - } else { - headerBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .common.Header header = 1; - */ - public common.HeaderOuterClass.Header.Builder getHeaderBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getHeaderFieldBuilder().getBuilder(); - } - /** - * optional .common.Header header = 1; - */ - public common.HeaderOuterClass.HeaderOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? - common.HeaderOuterClass.Header.getDefaultInstance() : header_; - } - } - /** - * optional .common.Header header = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - common.HeaderOuterClass.Header, common.HeaderOuterClass.Header.Builder, common.HeaderOuterClass.HeaderOrBuilder> - getHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - common.HeaderOuterClass.Header, common.HeaderOuterClass.Header.Builder, common.HeaderOuterClass.HeaderOrBuilder>( - getHeader(), - getParentForChildren(), - isClean()); - header_ = null; - } - return headerBuilder_; - } - - private int pilotMode_ = 0; - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return Whether the pilotMode field is set. - */ - @java.lang.Override public boolean hasPilotMode() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return The pilotMode. - */ - @java.lang.Override - public chassis.Chassis.PilotMode getPilotMode() { - @SuppressWarnings("deprecation") - chassis.Chassis.PilotMode result = chassis.Chassis.PilotMode.valueOf(pilotMode_); - return result == null ? chassis.Chassis.PilotMode.MODE_MANUAL : result; - } - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @param value The pilotMode to set. - * @return This builder for chaining. - */ - public Builder setPilotMode(chassis.Chassis.PilotMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - pilotMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .chassis.PilotMode pilot_mode = 2 [default = MODE_MANUAL]; - * @return This builder for chaining. - */ - public Builder clearPilotMode() { - bitField0_ = (bitField0_ & ~0x00000002); - pilotMode_ = 0; - onChanged(); - return this; - } - - private float steering_ ; - /** - *
-       * steering angle in degrees
-       * 
- * - * optional float steering = 3 [default = 0]; - * @return Whether the steering field is set. - */ - @java.lang.Override - public boolean hasSteering() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * steering angle in degrees
-       * 
- * - * optional float steering = 3 [default = 0]; - * @return The steering. - */ - @java.lang.Override - public float getSteering() { - return steering_; - } - /** - *
-       * steering angle in degrees
-       * 
- * - * optional float steering = 3 [default = 0]; - * @param value The steering to set. - * @return This builder for chaining. - */ - public Builder setSteering(float value) { - bitField0_ |= 0x00000004; - steering_ = value; - onChanged(); - return this; - } - /** - *
-       * steering angle in degrees
-       * 
- * - * optional float steering = 3 [default = 0]; - * @return This builder for chaining. - */ - public Builder clearSteering() { - bitField0_ = (bitField0_ & ~0x00000004); - steering_ = 0F; - onChanged(); - return this; - } - - private float speed_ ; - /** - *
-       * speed in m/s
-       * 
- * - * optional float speed = 4 [default = 0]; - * @return Whether the speed field is set. - */ - @java.lang.Override - public boolean hasSpeed() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * speed in m/s
-       * 
- * - * optional float speed = 4 [default = 0]; - * @return The speed. - */ - @java.lang.Override - public float getSpeed() { - return speed_; - } - /** - *
-       * speed in m/s
-       * 
- * - * optional float speed = 4 [default = 0]; - * @param value The speed to set. - * @return This builder for chaining. - */ - public Builder setSpeed(float value) { - bitField0_ |= 0x00000008; - speed_ = value; - onChanged(); - return this; - } - /** - *
-       * speed in m/s
-       * 
- * - * optional float speed = 4 [default = 0]; - * @return This builder for chaining. - */ - public Builder clearSpeed() { - bitField0_ = (bitField0_ & ~0x00000008); - speed_ = 0F; - onChanged(); - return this; - } - - private float accel_ ; - /** - *
-       * target acceleration in m/s^2
-       * 
- * - * optional float accel = 5 [default = 0]; - * @return Whether the accel field is set. - */ - @java.lang.Override - public boolean hasAccel() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-       * target acceleration in m/s^2
-       * 
- * - * optional float accel = 5 [default = 0]; - * @return The accel. - */ - @java.lang.Override - public float getAccel() { - return accel_; - } - /** - *
-       * target acceleration in m/s^2
-       * 
- * - * optional float accel = 5 [default = 0]; - * @param value The accel to set. - * @return This builder for chaining. - */ - public Builder setAccel(float value) { - bitField0_ |= 0x00000010; - accel_ = value; - onChanged(); - return this; - } - /** - *
-       * target acceleration in m/s^2
-       * 
- * - * optional float accel = 5 [default = 0]; - * @return This builder for chaining. - */ - public Builder clearAccel() { - bitField0_ = (bitField0_ & ~0x00000010); - accel_ = 0F; - onChanged(); - return this; - } - - private float throttle_ ; - /** - *
-       * target throttle in percentage [0, 100]
-       * 
- * - * optional float throttle = 6 [default = 0]; - * @return Whether the throttle field is set. - */ - @java.lang.Override - public boolean hasThrottle() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-       * target throttle in percentage [0, 100]
-       * 
- * - * optional float throttle = 6 [default = 0]; - * @return The throttle. - */ - @java.lang.Override - public float getThrottle() { - return throttle_; - } - /** - *
-       * target throttle in percentage [0, 100]
-       * 
- * - * optional float throttle = 6 [default = 0]; - * @param value The throttle to set. - * @return This builder for chaining. - */ - public Builder setThrottle(float value) { - bitField0_ |= 0x00000020; - throttle_ = value; - onChanged(); - return this; - } - /** - *
-       * target throttle in percentage [0, 100]
-       * 
- * - * optional float throttle = 6 [default = 0]; - * @return This builder for chaining. - */ - public Builder clearThrottle() { - bitField0_ = (bitField0_ & ~0x00000020); - throttle_ = 0F; - onChanged(); - return this; - } - - private float brake_ ; - /** - *
-       * target brake in percentage [0, 100]
-       * 
- * - * optional float brake = 7 [default = 0]; - * @return Whether the brake field is set. - */ - @java.lang.Override - public boolean hasBrake() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-       * target brake in percentage [0, 100]
-       * 
- * - * optional float brake = 7 [default = 0]; - * @return The brake. - */ - @java.lang.Override - public float getBrake() { - return brake_; - } - /** - *
-       * target brake in percentage [0, 100]
-       * 
- * - * optional float brake = 7 [default = 0]; - * @param value The brake to set. - * @return This builder for chaining. - */ - public Builder setBrake(float value) { - bitField0_ |= 0x00000040; - brake_ = value; - onChanged(); - return this; - } - /** - *
-       * target brake in percentage [0, 100]
-       * 
- * - * optional float brake = 7 [default = 0]; - * @return This builder for chaining. - */ - public Builder clearBrake() { - bitField0_ = (bitField0_ & ~0x00000040); - brake_ = 0F; - onChanged(); - return this; - } - - private int gear_ = 0; - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return Whether the gear field is set. - */ - @java.lang.Override public boolean hasGear() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return The gear. - */ - @java.lang.Override - public chassis.Chassis.GearPosition getGear() { - @SuppressWarnings("deprecation") - chassis.Chassis.GearPosition result = chassis.Chassis.GearPosition.valueOf(gear_); - return result == null ? chassis.Chassis.GearPosition.GEAR_NONE : result; - } - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @param value The gear to set. - * @return This builder for chaining. - */ - public Builder setGear(chassis.Chassis.GearPosition value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - gear_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .chassis.GearPosition gear = 8 [default = GEAR_NONE]; - * @return This builder for chaining. - */ - public Builder clearGear() { - bitField0_ = (bitField0_ & ~0x00000080); - gear_ = 0; - onChanged(); - return this; - } - - private int light_ = 0; - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return Whether the light field is set. - */ - @java.lang.Override public boolean hasLight() { - return ((bitField0_ & 0x00000100) != 0); - } - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return The light. - */ - @java.lang.Override - public chassis.Chassis.LightSwitch getLight() { - @SuppressWarnings("deprecation") - chassis.Chassis.LightSwitch result = chassis.Chassis.LightSwitch.valueOf(light_); - return result == null ? chassis.Chassis.LightSwitch.LIGHT_NONE : result; - } - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @param value The light to set. - * @return This builder for chaining. - */ - public Builder setLight(chassis.Chassis.LightSwitch value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - light_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .chassis.LightSwitch light = 9 [default = LIGHT_NONE]; - * @return This builder for chaining. - */ - public Builder clearLight() { - bitField0_ = (bitField0_ & ~0x00000100); - light_ = 0; - onChanged(); - return this; - } - - private boolean horn_ ; - /** - *
-       *TODO: move to chassis
-       * 
- * - * optional bool horn = 10 [default = false]; - * @return Whether the horn field is set. - */ - @java.lang.Override - public boolean hasHorn() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - *
-       *TODO: move to chassis
-       * 
- * - * optional bool horn = 10 [default = false]; - * @return The horn. - */ - @java.lang.Override - public boolean getHorn() { - return horn_; - } - /** - *
-       *TODO: move to chassis
-       * 
- * - * optional bool horn = 10 [default = false]; - * @param value The horn to set. - * @return This builder for chaining. - */ - public Builder setHorn(boolean value) { - bitField0_ |= 0x00000200; - horn_ = value; - onChanged(); - return this; - } - /** - *
-       *TODO: move to chassis
-       * 
- * - * optional bool horn = 10 [default = false]; - * @return This builder for chaining. - */ - public Builder clearHorn() { - bitField0_ = (bitField0_ & ~0x00000200); - horn_ = false; - onChanged(); - return this; - } - - private boolean highbeam_ ; - /** - *
-       *远光灯
-       * 
- * - * optional bool highbeam = 11 [default = false]; - * @return Whether the highbeam field is set. - */ - @java.lang.Override - public boolean hasHighbeam() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-       *远光灯
-       * 
- * - * optional bool highbeam = 11 [default = false]; - * @return The highbeam. - */ - @java.lang.Override - public boolean getHighbeam() { - return highbeam_; - } - /** - *
-       *远光灯
-       * 
- * - * optional bool highbeam = 11 [default = false]; - * @param value The highbeam to set. - * @return This builder for chaining. - */ - public Builder setHighbeam(boolean value) { - bitField0_ |= 0x00000400; - highbeam_ = value; - onChanged(); - return this; - } - /** - *
-       *远光灯
-       * 
- * - * optional bool highbeam = 11 [default = false]; - * @return This builder for chaining. - */ - public Builder clearHighbeam() { - bitField0_ = (bitField0_ & ~0x00000400); - highbeam_ = false; - onChanged(); - return this; - } - - private boolean lowbeam_ ; - /** - *
-       *近光灯
-       * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return Whether the lowbeam field is set. - */ - @java.lang.Override - public boolean hasLowbeam() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-       *近光灯
-       * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return The lowbeam. - */ - @java.lang.Override - public boolean getLowbeam() { - return lowbeam_; - } - /** - *
-       *近光灯
-       * 
- * - * optional bool lowbeam = 12 [default = false]; - * @param value The lowbeam to set. - * @return This builder for chaining. - */ - public Builder setLowbeam(boolean value) { - bitField0_ |= 0x00000800; - lowbeam_ = value; - onChanged(); - return this; - } - /** - *
-       *近光灯
-       * 
- * - * optional bool lowbeam = 12 [default = false]; - * @return This builder for chaining. - */ - public Builder clearLowbeam() { - bitField0_ = (bitField0_ & ~0x00000800); - lowbeam_ = false; - onChanged(); - return this; - } - - private boolean foglight_ ; - /** - *
-       *雾灯
-       * 
- * - * optional bool foglight = 13 [default = false]; - * @return Whether the foglight field is set. - */ - @java.lang.Override - public boolean hasFoglight() { - return ((bitField0_ & 0x00001000) != 0); - } - /** - *
-       *雾灯
-       * 
- * - * optional bool foglight = 13 [default = false]; - * @return The foglight. - */ - @java.lang.Override - public boolean getFoglight() { - return foglight_; - } - /** - *
-       *雾灯
-       * 
- * - * optional bool foglight = 13 [default = false]; - * @param value The foglight to set. - * @return This builder for chaining. - */ - public Builder setFoglight(boolean value) { - bitField0_ |= 0x00001000; - foglight_ = value; - onChanged(); - return this; - } - /** - *
-       *雾灯
-       * 
- * - * optional bool foglight = 13 [default = false]; - * @return This builder for chaining. - */ - public Builder clearFoglight() { - bitField0_ = (bitField0_ & ~0x00001000); - foglight_ = false; - onChanged(); - return this; - } - - private boolean clearanceLamps_ ; - /** - *
-       *示廓灯
-       * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return Whether the clearanceLamps field is set. - */ - @java.lang.Override - public boolean hasClearanceLamps() { - return ((bitField0_ & 0x00002000) != 0); - } - /** - *
-       *示廓灯
-       * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return The clearanceLamps. - */ - @java.lang.Override - public boolean getClearanceLamps() { - return clearanceLamps_; - } - /** - *
-       *示廓灯
-       * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @param value The clearanceLamps to set. - * @return This builder for chaining. - */ - public Builder setClearanceLamps(boolean value) { - bitField0_ |= 0x00002000; - clearanceLamps_ = value; - onChanged(); - return this; - } - /** - *
-       *示廓灯
-       * 
- * - * optional bool clearance_lamps = 14 [default = false]; - * @return This builder for chaining. - */ - public Builder clearClearanceLamps() { - bitField0_ = (bitField0_ & ~0x00002000); - clearanceLamps_ = false; - onChanged(); - return this; - } - - private boolean warnLight_ ; - /** - *
-       *报警灯
-       * 
- * - * optional bool warn_light = 15 [default = false]; - * @return Whether the warnLight field is set. - */ - @java.lang.Override - public boolean hasWarnLight() { - return ((bitField0_ & 0x00004000) != 0); - } - /** - *
-       *报警灯
-       * 
- * - * optional bool warn_light = 15 [default = false]; - * @return The warnLight. - */ - @java.lang.Override - public boolean getWarnLight() { - return warnLight_; - } - /** - *
-       *报警灯
-       * 
- * - * optional bool warn_light = 15 [default = false]; - * @param value The warnLight to set. - * @return This builder for chaining. - */ - public Builder setWarnLight(boolean value) { - bitField0_ |= 0x00004000; - warnLight_ = value; - onChanged(); - return this; - } - /** - *
-       *报警灯
-       * 
- * - * optional bool warn_light = 15 [default = false]; - * @return This builder for chaining. - */ - public Builder clearWarnLight() { - bitField0_ = (bitField0_ & ~0x00004000); - warnLight_ = false; - onChanged(); - return this; - } - - private boolean parkingBrake_ ; - /** - * optional bool parking_brake = 16 [default = false]; - * @return Whether the parkingBrake field is set. - */ - @java.lang.Override - public boolean hasParkingBrake() { - return ((bitField0_ & 0x00008000) != 0); - } - /** - * optional bool parking_brake = 16 [default = false]; - * @return The parkingBrake. - */ - @java.lang.Override - public boolean getParkingBrake() { - return parkingBrake_; - } - /** - * optional bool parking_brake = 16 [default = false]; - * @param value The parkingBrake to set. - * @return This builder for chaining. - */ - public Builder setParkingBrake(boolean value) { - bitField0_ |= 0x00008000; - parkingBrake_ = value; - onChanged(); - return this; - } - /** - * optional bool parking_brake = 16 [default = false]; - * @return This builder for chaining. - */ - public Builder clearParkingBrake() { - bitField0_ = (bitField0_ & ~0x00008000); - parkingBrake_ = false; - onChanged(); - return this; - } - - private int longitudeDrivingMode_ = 0; - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return Whether the longitudeDrivingMode field is set. - */ - @java.lang.Override public boolean hasLongitudeDrivingMode() { - return ((bitField0_ & 0x00010000) != 0); - } - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return The longitudeDrivingMode. - */ - @java.lang.Override - public chassis.Chassis.LongitudeDrivingMode getLongitudeDrivingMode() { - @SuppressWarnings("deprecation") - chassis.Chassis.LongitudeDrivingMode result = chassis.Chassis.LongitudeDrivingMode.valueOf(longitudeDrivingMode_); - return result == null ? chassis.Chassis.LongitudeDrivingMode.ManualMode : result; - } - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @param value The longitudeDrivingMode to set. - * @return This builder for chaining. - */ - public Builder setLongitudeDrivingMode(chassis.Chassis.LongitudeDrivingMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - longitudeDrivingMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .chassis.LongitudeDrivingMode longitude_driving_mode = 20; - * @return This builder for chaining. - */ - public Builder clearLongitudeDrivingMode() { - bitField0_ = (bitField0_ & ~0x00010000); - longitudeDrivingMode_ = 0; - onChanged(); - return this; - } - - private int epsSteeringMode_ = 0; - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return Whether the epsSteeringMode field is set. - */ - @java.lang.Override public boolean hasEpsSteeringMode() { - return ((bitField0_ & 0x00020000) != 0); - } - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return The epsSteeringMode. - */ - @java.lang.Override - public chassis.Chassis.EPSSteeringMode getEpsSteeringMode() { - @SuppressWarnings("deprecation") - chassis.Chassis.EPSSteeringMode result = chassis.Chassis.EPSSteeringMode.valueOf(epsSteeringMode_); - return result == null ? chassis.Chassis.EPSSteeringMode.Manual : result; - } - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @param value The epsSteeringMode to set. - * @return This builder for chaining. - */ - public Builder setEpsSteeringMode(chassis.Chassis.EPSSteeringMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - epsSteeringMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .chassis.EPSSteeringMode eps_steering_mode = 21; - * @return This builder for chaining. - */ - public Builder clearEpsSteeringMode() { - bitField0_ = (bitField0_ & ~0x00020000); - epsSteeringMode_ = 0; - onChanged(); - return this; - } - - private int steeringSign_ ; - /** - * optional uint32 steering_sign = 22; - * @return Whether the steeringSign field is set. - */ - @java.lang.Override - public boolean hasSteeringSign() { - return ((bitField0_ & 0x00040000) != 0); - } - /** - * optional uint32 steering_sign = 22; - * @return The steeringSign. - */ - @java.lang.Override - public int getSteeringSign() { - return steeringSign_; - } - /** - * optional uint32 steering_sign = 22; - * @param value The steeringSign to set. - * @return This builder for chaining. - */ - public Builder setSteeringSign(int value) { - bitField0_ |= 0x00040000; - steeringSign_ = value; - onChanged(); - return this; - } - /** - * optional uint32 steering_sign = 22; - * @return This builder for chaining. - */ - public Builder clearSteeringSign() { - bitField0_ = (bitField0_ & ~0x00040000); - steeringSign_ = 0; - onChanged(); - return this; - } - - private boolean steerInference_ ; - /** - *
-       *方向盘干预
-       * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return Whether the steerInference field is set. - */ - @java.lang.Override - public boolean hasSteerInference() { - return ((bitField0_ & 0x00080000) != 0); - } - /** - *
-       *方向盘干预
-       * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return The steerInference. - */ - @java.lang.Override - public boolean getSteerInference() { - return steerInference_; - } - /** - *
-       *方向盘干预
-       * 
- * - * optional bool steer_inference = 23 [default = false]; - * @param value The steerInference to set. - * @return This builder for chaining. - */ - public Builder setSteerInference(boolean value) { - bitField0_ |= 0x00080000; - steerInference_ = value; - onChanged(); - return this; - } - /** - *
-       *方向盘干预
-       * 
- * - * optional bool steer_inference = 23 [default = false]; - * @return This builder for chaining. - */ - public Builder clearSteerInference() { - bitField0_ = (bitField0_ & ~0x00080000); - steerInference_ = false; - onChanged(); - return this; - } - - private boolean brakeInference_ ; - /** - *
-       *制动踏板干预
-       * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return Whether the brakeInference field is set. - */ - @java.lang.Override - public boolean hasBrakeInference() { - return ((bitField0_ & 0x00100000) != 0); - } - /** - *
-       *制动踏板干预
-       * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return The brakeInference. - */ - @java.lang.Override - public boolean getBrakeInference() { - return brakeInference_; - } - /** - *
-       *制动踏板干预
-       * 
- * - * optional bool brake_inference = 24 [default = false]; - * @param value The brakeInference to set. - * @return This builder for chaining. - */ - public Builder setBrakeInference(boolean value) { - bitField0_ |= 0x00100000; - brakeInference_ = value; - onChanged(); - return this; - } - /** - *
-       *制动踏板干预
-       * 
- * - * optional bool brake_inference = 24 [default = false]; - * @return This builder for chaining. - */ - public Builder clearBrakeInference() { - bitField0_ = (bitField0_ & ~0x00100000); - brakeInference_ = false; - onChanged(); - return this; - } - - private boolean accelInference_ ; - /** - *
-       *加速踏板干预
-       * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return Whether the accelInference field is set. - */ - @java.lang.Override - public boolean hasAccelInference() { - return ((bitField0_ & 0x00200000) != 0); - } - /** - *
-       *加速踏板干预
-       * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return The accelInference. - */ - @java.lang.Override - public boolean getAccelInference() { - return accelInference_; - } - /** - *
-       *加速踏板干预
-       * 
- * - * optional bool accel_inference = 25 [default = false]; - * @param value The accelInference to set. - * @return This builder for chaining. - */ - public Builder setAccelInference(boolean value) { - bitField0_ |= 0x00200000; - accelInference_ = value; - onChanged(); - return this; - } - /** - *
-       *加速踏板干预
-       * 
- * - * optional bool accel_inference = 25 [default = false]; - * @return This builder for chaining. - */ - public Builder clearAccelInference() { - bitField0_ = (bitField0_ & ~0x00200000); - accelInference_ = false; - onChanged(); - return this; - } - - private boolean gearSwitchInference_ ; - /** - *
-       *档位切换干预 
-       * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return Whether the gearSwitchInference field is set. - */ - @java.lang.Override - public boolean hasGearSwitchInference() { - return ((bitField0_ & 0x00400000) != 0); - } - /** - *
-       *档位切换干预 
-       * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return The gearSwitchInference. - */ - @java.lang.Override - public boolean getGearSwitchInference() { - return gearSwitchInference_; - } - /** - *
-       *档位切换干预 
-       * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @param value The gearSwitchInference to set. - * @return This builder for chaining. - */ - public Builder setGearSwitchInference(boolean value) { - bitField0_ |= 0x00400000; - gearSwitchInference_ = value; - onChanged(); - return this; - } - /** - *
-       *档位切换干预 
-       * 
- * - * optional bool gear_switch_inference = 26 [default = false]; - * @return This builder for chaining. - */ - public Builder clearGearSwitchInference() { - bitField0_ = (bitField0_ & ~0x00400000); - gearSwitchInference_ = false; - onChanged(); - return this; - } - - private boolean locationMissing_ ; - /** - *
-       *未收到定位
-       * 
- * - * optional bool location_missing = 27 [default = false]; - * @return Whether the locationMissing field is set. - */ - @java.lang.Override - public boolean hasLocationMissing() { - return ((bitField0_ & 0x00800000) != 0); - } - /** - *
-       *未收到定位
-       * 
- * - * optional bool location_missing = 27 [default = false]; - * @return The locationMissing. - */ - @java.lang.Override - public boolean getLocationMissing() { - return locationMissing_; - } - /** - *
-       *未收到定位
-       * 
- * - * optional bool location_missing = 27 [default = false]; - * @param value The locationMissing to set. - * @return This builder for chaining. - */ - public Builder setLocationMissing(boolean value) { - bitField0_ |= 0x00800000; - locationMissing_ = value; - onChanged(); - return this; - } - /** - *
-       *未收到定位
-       * 
- * - * optional bool location_missing = 27 [default = false]; - * @return This builder for chaining. - */ - public Builder clearLocationMissing() { - bitField0_ = (bitField0_ & ~0x00800000); - locationMissing_ = false; - onChanged(); - return this; - } - - private boolean trajectoryMissing_ ; - /** - *
-       *未收到轨迹
-       * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return Whether the trajectoryMissing field is set. - */ - @java.lang.Override - public boolean hasTrajectoryMissing() { - return ((bitField0_ & 0x01000000) != 0); - } - /** - *
-       *未收到轨迹
-       * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return The trajectoryMissing. - */ - @java.lang.Override - public boolean getTrajectoryMissing() { - return trajectoryMissing_; - } - /** - *
-       *未收到轨迹
-       * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @param value The trajectoryMissing to set. - * @return This builder for chaining. - */ - public Builder setTrajectoryMissing(boolean value) { - bitField0_ |= 0x01000000; - trajectoryMissing_ = value; - onChanged(); - return this; - } - /** - *
-       *未收到轨迹
-       * 
- * - * optional bool trajectory_missing = 28 [default = false]; - * @return This builder for chaining. - */ - public Builder clearTrajectoryMissing() { - bitField0_ = (bitField0_ & ~0x01000000); - trajectoryMissing_ = false; - onChanged(); - return this; - } - - private boolean chassisStatusMissing_ ; - /** - *
-       *未收到车辆底盘反馈信息
-       * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return Whether the chassisStatusMissing field is set. - */ - @java.lang.Override - public boolean hasChassisStatusMissing() { - return ((bitField0_ & 0x02000000) != 0); - } - /** - *
-       *未收到车辆底盘反馈信息
-       * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return The chassisStatusMissing. - */ - @java.lang.Override - public boolean getChassisStatusMissing() { - return chassisStatusMissing_; - } - /** - *
-       *未收到车辆底盘反馈信息
-       * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @param value The chassisStatusMissing to set. - * @return This builder for chaining. - */ - public Builder setChassisStatusMissing(boolean value) { - bitField0_ |= 0x02000000; - chassisStatusMissing_ = value; - onChanged(); - return this; - } - /** - *
-       *未收到车辆底盘反馈信息
-       * 
- * - * optional bool chassis_status_missing = 29 [default = false]; - * @return This builder for chaining. - */ - public Builder clearChassisStatusMissing() { - bitField0_ = (bitField0_ & ~0x02000000); - chassisStatusMissing_ = false; - onChanged(); - return this; - } - - private boolean brakeLightStatus_ ; - /** - *
-       *自驾模式下制动灯状态
-       * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return Whether the brakeLightStatus field is set. - */ - @java.lang.Override - public boolean hasBrakeLightStatus() { - return ((bitField0_ & 0x04000000) != 0); - } - /** - *
-       *自驾模式下制动灯状态
-       * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return The brakeLightStatus. - */ - @java.lang.Override - public boolean getBrakeLightStatus() { - return brakeLightStatus_; - } - /** - *
-       *自驾模式下制动灯状态
-       * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @param value The brakeLightStatus to set. - * @return This builder for chaining. - */ - public Builder setBrakeLightStatus(boolean value) { - bitField0_ |= 0x04000000; - brakeLightStatus_ = value; - onChanged(); - return this; - } - /** - *
-       *自驾模式下制动灯状态
-       * 
- * - * optional bool brake_light_status = 30 [default = false]; - * @return This builder for chaining. - */ - public Builder clearBrakeLightStatus() { - bitField0_ = (bitField0_ & ~0x04000000); - brakeLightStatus_ = false; - onChanged(); - return this; - } - - private boolean pilotModeConditionMet_ ; - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return Whether the pilotModeConditionMet field is set. - */ - @java.lang.Override - public boolean hasPilotModeConditionMet() { - return ((bitField0_ & 0x08000000) != 0); - } - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return The pilotModeConditionMet. - */ - @java.lang.Override - public boolean getPilotModeConditionMet() { - return pilotModeConditionMet_; - } - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @param value The pilotModeConditionMet to set. - * @return This builder for chaining. - */ - public Builder setPilotModeConditionMet(boolean value) { - bitField0_ |= 0x08000000; - pilotModeConditionMet_ = value; - onChanged(); - return this; - } - /** - * optional bool pilot_mode_condition_met = 31 [default = false]; - * @return This builder for chaining. - */ - public Builder clearPilotModeConditionMet() { - bitField0_ = (bitField0_ & ~0x08000000); - pilotModeConditionMet_ = false; - 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:chassis.VehicleState) - } - - // @@protoc_insertion_point(class_scope:chassis.VehicleState) - private static final chassis.VehicleStateOuterClass.VehicleState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new chassis.VehicleStateOuterClass.VehicleState(); - } - - public static chassis.VehicleStateOuterClass.VehicleState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VehicleState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VehicleState(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public chassis.VehicleStateOuterClass.VehicleState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_chassis_VehicleState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_chassis_VehicleState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023vehicle_state.proto\022\007chassis\032\014header.p" + - "roto\032\rchassis.proto\"\244\007\n\014VehicleState\022\036\n\006" + - "header\030\001 \001(\0132\016.common.Header\0223\n\npilot_mo" + - "de\030\002 \001(\0162\022.chassis.PilotMode:\013MODE_MANUA" + - "L\022\023\n\010steering\030\003 \001(\002:\0010\022\020\n\005speed\030\004 \001(\002:\0010" + - "\022\020\n\005accel\030\005 \001(\002:\0010\022\023\n\010throttle\030\006 \001(\002:\0010\022" + - "\020\n\005brake\030\007 \001(\002:\0010\022.\n\004gear\030\010 \001(\0162\025.chassi" + - "s.GearPosition:\tGEAR_NONE\022/\n\005light\030\t \001(\016" + - "2\024.chassis.LightSwitch:\nLIGHT_NONE\022\023\n\004ho" + - "rn\030\n \001(\010:\005false\022\027\n\010highbeam\030\013 \001(\010:\005false" + - "\022\026\n\007lowbeam\030\014 \001(\010:\005false\022\027\n\010foglight\030\r \001" + - "(\010:\005false\022\036\n\017clearance_lamps\030\016 \001(\010:\005fals" + - "e\022\031\n\nwarn_light\030\017 \001(\010:\005false\022\034\n\rparking_" + - "brake\030\020 \001(\010:\005false\022=\n\026longitude_driving_" + - "mode\030\024 \001(\0162\035.chassis.LongitudeDrivingMod" + - "e\0223\n\021eps_steering_mode\030\025 \001(\0162\030.chassis.E" + - "PSSteeringMode\022\025\n\rsteering_sign\030\026 \001(\r\022\036\n" + - "\017steer_inference\030\027 \001(\010:\005false\022\036\n\017brake_i" + - "nference\030\030 \001(\010:\005false\022\036\n\017accel_inference" + - "\030\031 \001(\010:\005false\022$\n\025gear_switch_inference\030\032" + - " \001(\010:\005false\022\037\n\020location_missing\030\033 \001(\010:\005f" + - "alse\022!\n\022trajectory_missing\030\034 \001(\010:\005false\022" + - "%\n\026chassis_status_missing\030\035 \001(\010:\005false\022!" + - "\n\022brake_light_status\030\036 \001(\010:\005false\022\'\n\030pil" + - "ot_mode_condition_met\030\037 \001(\010:\005false" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - common.HeaderOuterClass.getDescriptor(), - chassis.Chassis.getDescriptor(), - }); - internal_static_chassis_VehicleState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_chassis_VehicleState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_chassis_VehicleState_descriptor, - new java.lang.String[] { "Header", "PilotMode", "Steering", "Speed", "Accel", "Throttle", "Brake", "Gear", "Light", "Horn", "Highbeam", "Lowbeam", "Foglight", "ClearanceLamps", "WarnLight", "ParkingBrake", "LongitudeDrivingMode", "EpsSteeringMode", "SteeringSign", "SteerInference", "BrakeInference", "AccelInference", "GearSwitchInference", "LocationMissing", "TrajectoryMissing", "ChassisStatusMissing", "BrakeLightStatus", "PilotModeConditionMet", }); - common.HeaderOuterClass.getDescriptor(); - chassis.Chassis.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/libraries/mogo-adas-data/build/generated/source/proto/debug/java/common/HeaderOuterClass.java b/libraries/mogo-adas-data/build/generated/source/proto/debug/java/common/HeaderOuterClass.java deleted file mode 100644 index 5dc6907cf5..0000000000 --- a/libraries/mogo-adas-data/build/generated/source/proto/debug/java/common/HeaderOuterClass.java +++ /dev/null @@ -1,1973 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: header.proto - -package common; - -public final class HeaderOuterClass { - private HeaderOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TimeOrBuilder extends - // @@protoc_insertion_point(interface_extends:common.Time) - com.google.protobuf.MessageOrBuilder { - - /** - * optional uint32 sec = 1; - * @return Whether the sec field is set. - */ - boolean hasSec(); - /** - * optional uint32 sec = 1; - * @return The sec. - */ - int getSec(); - - /** - * optional uint32 nsec = 2; - * @return Whether the nsec field is set. - */ - boolean hasNsec(); - /** - * optional uint32 nsec = 2; - * @return The nsec. - */ - int getNsec(); - } - /** - * Protobuf type {@code common.Time} - */ - public static final class Time extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:common.Time) - TimeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Time.newBuilder() to construct. - private Time(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Time() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Time(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Time( - 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) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - sec_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - nsec_ = input.readUInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.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 common.HeaderOuterClass.internal_static_common_Time_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return common.HeaderOuterClass.internal_static_common_Time_fieldAccessorTable - .ensureFieldAccessorsInitialized( - common.HeaderOuterClass.Time.class, common.HeaderOuterClass.Time.Builder.class); - } - - private int bitField0_; - public static final int SEC_FIELD_NUMBER = 1; - private int sec_; - /** - * optional uint32 sec = 1; - * @return Whether the sec field is set. - */ - @java.lang.Override - public boolean hasSec() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional uint32 sec = 1; - * @return The sec. - */ - @java.lang.Override - public int getSec() { - return sec_; - } - - public static final int NSEC_FIELD_NUMBER = 2; - private int nsec_; - /** - * optional uint32 nsec = 2; - * @return Whether the nsec field is set. - */ - @java.lang.Override - public boolean hasNsec() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional uint32 nsec = 2; - * @return The nsec. - */ - @java.lang.Override - public int getNsec() { - return nsec_; - } - - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeUInt32(1, sec_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeUInt32(2, nsec_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, sec_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, nsec_); - } - 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 common.HeaderOuterClass.Time)) { - return super.equals(obj); - } - common.HeaderOuterClass.Time other = (common.HeaderOuterClass.Time) obj; - - if (hasSec() != other.hasSec()) return false; - if (hasSec()) { - if (getSec() - != other.getSec()) return false; - } - if (hasNsec() != other.hasNsec()) return false; - if (hasNsec()) { - if (getNsec() - != other.getNsec()) 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(); - if (hasSec()) { - hash = (37 * hash) + SEC_FIELD_NUMBER; - hash = (53 * hash) + getSec(); - } - if (hasNsec()) { - hash = (37 * hash) + NSEC_FIELD_NUMBER; - hash = (53 * hash) + getNsec(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static common.HeaderOuterClass.Time parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static common.HeaderOuterClass.Time parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static common.HeaderOuterClass.Time parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static common.HeaderOuterClass.Time parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static common.HeaderOuterClass.Time parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static common.HeaderOuterClass.Time parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static common.HeaderOuterClass.Time parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static common.HeaderOuterClass.Time 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 common.HeaderOuterClass.Time parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static common.HeaderOuterClass.Time 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 common.HeaderOuterClass.Time parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static common.HeaderOuterClass.Time 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(common.HeaderOuterClass.Time 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 common.Time} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:common.Time) - common.HeaderOuterClass.TimeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return common.HeaderOuterClass.internal_static_common_Time_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return common.HeaderOuterClass.internal_static_common_Time_fieldAccessorTable - .ensureFieldAccessorsInitialized( - common.HeaderOuterClass.Time.class, common.HeaderOuterClass.Time.Builder.class); - } - - // Construct using common.HeaderOuterClass.Time.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - sec_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - nsec_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return common.HeaderOuterClass.internal_static_common_Time_descriptor; - } - - @java.lang.Override - public common.HeaderOuterClass.Time getDefaultInstanceForType() { - return common.HeaderOuterClass.Time.getDefaultInstance(); - } - - @java.lang.Override - public common.HeaderOuterClass.Time build() { - common.HeaderOuterClass.Time result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public common.HeaderOuterClass.Time buildPartial() { - common.HeaderOuterClass.Time result = new common.HeaderOuterClass.Time(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sec_ = sec_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nsec_ = nsec_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof common.HeaderOuterClass.Time) { - return mergeFrom((common.HeaderOuterClass.Time)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(common.HeaderOuterClass.Time other) { - if (other == common.HeaderOuterClass.Time.getDefaultInstance()) return this; - if (other.hasSec()) { - setSec(other.getSec()); - } - if (other.hasNsec()) { - setNsec(other.getNsec()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - common.HeaderOuterClass.Time parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (common.HeaderOuterClass.Time) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int sec_ ; - /** - * optional uint32 sec = 1; - * @return Whether the sec field is set. - */ - @java.lang.Override - public boolean hasSec() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional uint32 sec = 1; - * @return The sec. - */ - @java.lang.Override - public int getSec() { - return sec_; - } - /** - * optional uint32 sec = 1; - * @param value The sec to set. - * @return This builder for chaining. - */ - public Builder setSec(int value) { - bitField0_ |= 0x00000001; - sec_ = value; - onChanged(); - return this; - } - /** - * optional uint32 sec = 1; - * @return This builder for chaining. - */ - public Builder clearSec() { - bitField0_ = (bitField0_ & ~0x00000001); - sec_ = 0; - onChanged(); - return this; - } - - private int nsec_ ; - /** - * optional uint32 nsec = 2; - * @return Whether the nsec field is set. - */ - @java.lang.Override - public boolean hasNsec() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional uint32 nsec = 2; - * @return The nsec. - */ - @java.lang.Override - public int getNsec() { - return nsec_; - } - /** - * optional uint32 nsec = 2; - * @param value The nsec to set. - * @return This builder for chaining. - */ - public Builder setNsec(int value) { - bitField0_ |= 0x00000002; - nsec_ = value; - onChanged(); - return this; - } - /** - * optional uint32 nsec = 2; - * @return This builder for chaining. - */ - public Builder clearNsec() { - bitField0_ = (bitField0_ & ~0x00000002); - nsec_ = 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:common.Time) - } - - // @@protoc_insertion_point(class_scope:common.Time) - private static final common.HeaderOuterClass.Time DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new common.HeaderOuterClass.Time(); - } - - public static common.HeaderOuterClass.Time getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser