From 57384ac60df81300bedfdd0c9a1c972db04b81ed Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 18 Mar 2018 13:35:04 +0200 Subject: Managed to get java back working again. --- .../java/com/twine/tango/dal/dao/TangoDAO.java | 308 + .../com/twine/tango/dal/entities/BrushStop.java | 640 ++ .../java/com/twine/tango/dal/entities/Cat.java | 52 + .../com/twine/tango/dal/entities/ColorCatalog.java | 562 ++ .../com/twine/tango/dal/entities/ColorSpace.java | 94 + .../twine/tango/dal/entities/DispenserType.java | 312 + .../com/twine/tango/dal/entities/EventType.java | 52 + .../tango/dal/entities/EventTypesCategory.java | 94 + .../twine/tango/dal/entities/EventTypesGroup.java | 94 + .../twine/tango/dal/entities/HardwareDancer.java | 172 + .../tango/dal/entities/HardwareDancerType.java | 94 + .../twine/tango/dal/entities/HardwareMotor.java | 432 + .../tango/dal/entities/HardwareMotorType.java | 94 + .../tango/dal/entities/HardwarePidControl.java | 432 + .../tango/dal/entities/HardwarePidControlType.java | 94 + .../twine/tango/dal/entities/HardwareWinder.java | 94 + .../tango/dal/entities/HardwareWinderType.java | 94 + .../java/com/twine/tango/dal/entities/IdsPack.java | 26 + .../twine/tango/dal/entities/IdsPackFormula.java | 120 + .../java/com/twine/tango/dal/entities/Job.java | 458 + .../java/com/twine/tango/dal/entities/JobRun.java | 120 + .../java/com/twine/tango/dal/entities/Machine.java | 52 + .../tango/dal/entities/MachineStudioVersion.java | 120 + .../twine/tango/dal/entities/MachinesEvent.java | 26 + .../com/twine/tango/dal/entities/MediaColor.java | 98 +- .../tango/dal/entities/ProcessParametersTable.java | 484 + .../dal/entities/ProcessParametersTablesGroup.java | 120 + .../java/com/twine/tango/dal/entities/Rml.java | 26 + .../java/com/twine/tango/dal/entities/Segment.java | 120 + .../com/twine/tango/dal/entities/SpoolType.java | 224 + .../twine/tango/dal/entities/TechController.java | 172 + .../twine/tango/dal/entities/TechDispenser.java | 94 + .../java/com/twine/tango/dal/entities/TechIo.java | 198 + .../com/twine/tango/dal/entities/TechMonitor.java | 250 + .../com/twine/tango/dal/entities/TechMotor.java | 120 + .../com/twine/tango/dal/entities/TechValf.java | 94 + .../twine/tango/dal/entities/WindingMethod.java | 94 + .../twine/tango/dal/enumerations/ActionTypes.java | 17 +- .../twine/tango/dal/enumerations/ColorSpaces.java | 31 + .../tango/dal/enumerations/DispenserTypes.java | 4 +- .../twine/tango/dal/enumerations/EventTypes.java | 104 +- .../dal/enumerations/EventTypesCategories.java | 28 + .../tango/dal/enumerations/EventTypesGroups.java | 37 + .../dal/enumerations/HardwareDancerTypes.java | 25 + .../tango/dal/enumerations/HardwareMotorTypes.java | 103 + .../dal/enumerations/HardwarePidControlTypes.java | 58 + .../dal/enumerations/HardwareWinderTypes.java | 19 + .../tango/dal/enumerations/IdsPackFormulas.java | 25 + .../twine/tango/dal/enumerations/LiquidTypes.java | 8 +- .../twine/tango/dal/enumerations/Permissions.java | 18 + .../com/twine/tango/dal/enumerations/Rmls.java | 22 + .../com/twine/tango/dal/enumerations/Roles.java | 18 +- .../twine/tango/dal/enumerations/SpoolTypes.java | 19 + .../tango/dal/enumerations/TechControllers.java | 22 + .../tango/dal/enumerations/TechDispensers.java | 22 + .../com/twine/tango/dal/enumerations/TechIos.java | 25 + .../twine/tango/dal/enumerations/TechMonitors.java | 124 + .../twine/tango/dal/enumerations/TechMotors.java | 25 + .../twine/tango/dal/enumerations/TechValves.java | 15 + .../tango/dal/enumerations/WindingMethods.java | 22 + .../Tango.DAL/src/main/res/raw/tangodb | Bin 602112 -> 274432 bytes .../pmr/colorlab/CalibrationDataOuterClass.java | 913 ++ .../pmr/colorlab/CalibrationPointOuterClass.java | 574 ++ .../tango/pmr/colorlab/ColorSpaceOuterClass.java | 171 + .../pmr/colorlab/ConversionInputOuterClass.java | 1267 +++ .../pmr/colorlab/ConversionOutputOuterClass.java | 1446 +++ .../pmr/colorlab/InputCoordinatesOuterClass.java | 1601 ++++ .../tango/pmr/colorlab/InputLiquidOuterClass.java | 868 ++ .../tango/pmr/colorlab/LiquidTypeOuterClass.java | 190 + .../pmr/colorlab/OutputCoordinatesOuterClass.java | 1071 +++ .../tango/pmr/colorlab/OutputLiquidOuterClass.java | 603 ++ .../tango/pmr/common/ErrorCodeOuterClass.java | 24 +- .../pmr/common/KeepAliveRequestOuterClass.java | 36 +- .../pmr/common/KeepAliveResponseOuterClass.java | 36 +- .../pmr/common/MessageContainerOuterClass.java | 4 +- .../tango/pmr/common/MessageTypeOuterClass.java | 710 +- .../pmr/debugging/DebugLogCategoryOuterClass.java | 172 + .../pmr/debugging/DebugLogRequestOuterClass.java | 440 + .../pmr/debugging/DebugLogResponseOuterClass.java | 1002 +++ .../pmr/diagnostics/DataFileFrameOuterClass.java | 703 ++ .../diagnostics/DiagnosticsMonitorsOuterClass.java | 9435 ++++++++++++++++++++ .../pmr/diagnostics/DigitalPinOuterClass.java | 569 ++ .../DispenserAbortHomingRequestOuterClass.java | 505 ++ .../DispenserAbortHomingResponseOuterClass.java | 441 + .../DispenserAbortJoggingRequestOuterClass.java | 505 ++ .../DispenserAbortJoggingResponseOuterClass.java | 505 ++ .../DispenserHomingRequestOuterClass.java | 571 ++ .../DispenserHomingResponseOuterClass.java | 575 ++ .../DispenserJoggingRequestOuterClass.java | 667 ++ .../DispenserJoggingResponseOuterClass.java | 441 + .../pmr/diagnostics/DoubleArrayOuterClass.java | 612 ++ .../tango/pmr/diagnostics/EventOuterClass.java | 674 ++ .../tango/pmr/diagnostics/EventTypeOuterClass.java | 724 ++ .../MotorAbortHomingRequestOuterClass.java | 505 ++ .../MotorAbortHomingResponseOuterClass.java | 441 + .../MotorAbortJoggingRequestOuterClass.java | 505 ++ .../MotorAbortJoggingResponseOuterClass.java | 505 ++ .../pmr/diagnostics/MotorDirectionOuterClass.java | 144 + .../diagnostics/MotorHomingRequestOuterClass.java | 571 ++ .../diagnostics/MotorHomingResponseOuterClass.java | 574 ++ .../diagnostics/MotorJoggingRequestOuterClass.java | 667 ++ .../MotorJoggingResponseOuterClass.java | 440 + .../PushDiagnosticsRequestOuterClass.java | 441 + .../PushDiagnosticsResponseOuterClass.java | 2602 ++++++ .../SetComponentValueRequestOuterClass.java | 604 ++ .../SetComponentValueResponseOuterClass.java | 441 + .../SetDigitalOutRequestOuterClass.java | 569 ++ .../SetDigitalOutResponseOuterClass.java | 440 + .../ThreadAbortJoggingRequestOuterClass.java | 441 + .../ThreadAbortJoggingResponseOuterClass.java | 441 + .../ThreadJoggingRequestOuterClass.java | 604 ++ .../ThreadJoggingResponseOuterClass.java | 440 + .../pmr/diagnostics/ValueComponentOuterClass.java | 160 + .../diagnostics/ValueComponentStateOuterClass.java | 604 ++ .../pmr/embroidery/AnalyzeInputOuterClass.java | 578 ++ .../pmr/embroidery/AnalyzeOutputOuterClass.java | 639 ++ .../pmr/embroidery/ConvertFileInputOuterClass.java | 716 ++ .../embroidery/ConvertFileOutputOuterClass.java | 506 ++ .../pmr/embroidery/EmbroideryFileOuterClass.java | 1787 ++++ .../tango/pmr/embroidery/ExtentsOuterClass.java | 694 ++ .../pmr/embroidery/StitchColorOuterClass.java | 631 ++ .../tango/pmr/embroidery/StitchFlagOuterClass.java | 180 + .../tango/pmr/embroidery/StitchOuterClass.java | 1064 +++ .../hardware/HardwareConfigurationOuterClass.java | 2298 +++++ .../pmr/hardware/HardwareDancerOuterClass.java | 798 ++ .../pmr/hardware/HardwareDancerTypeOuterClass.java | 177 + .../pmr/hardware/HardwareDispenserOuterClass.java | 1454 +++ .../hardware/HardwareDispenserTypeOuterClass.java | 135 + .../pmr/hardware/HardwareMotorOuterClass.java | 1452 +++ .../pmr/hardware/HardwareMotorTypeOuterClass.java | 633 ++ .../pmr/hardware/HardwarePidControlOuterClass.java | 1431 +++ .../hardware/HardwarePidControlTypeOuterClass.java | 370 + .../pmr/hardware/HardwareWinderOuterClass.java | 601 ++ .../pmr/hardware/HardwareWinderTypeOuterClass.java | 143 + ...loadHardwareConfigurationRequestOuterClass.java | 641 ++ ...oadHardwareConfigurationResponseOuterClass.java | 441 + .../pmr/printing/AbortJobRequestOuterClass.java | 440 + .../pmr/printing/AbortJobResponseOuterClass.java | 440 + .../printing/DispenserLiquidTypeOuterClass.java | 190 + .../printing/DispenserStepDivisionOuterClass.java | 208 + .../tango/pmr/printing/JobBrushStopOuterClass.java | 1013 +++ .../tango/pmr/printing/JobDispenserOuterClass.java | 1098 +++ .../tango/pmr/printing/JobRequestOuterClass.java | 638 ++ .../tango/pmr/printing/JobResponseOuterClass.java | 703 ++ .../tango/pmr/printing/JobSegmentOuterClass.java | 1020 +++ .../tango/pmr/printing/JobSpoolOuterClass.java | 927 ++ .../tango/pmr/printing/JobSpoolTypeOuterClass.java | 134 + .../tango/pmr/printing/JobStatusOuterClass.java | 708 ++ .../tango/pmr/printing/JobTicketOuterClass.java | 1644 ++++ .../pmr/printing/JobWindingMethodOuterClass.java | 160 + .../pmr/printing/ProcessParametersOuterClass.java | 1503 ++++ .../UploadProcessParametersRequestOuterClass.java | 640 ++ .../UploadProcessParametersResponseOuterClass.java | 441 + .../stubs/StubF3Gpo01WriteRequestOuterClass.java | 1257 +++ .../stubs/StubF3Gpo01WriteResponseOuterClass.java | 698 ++ .../StubFPGAReadBackRegRequestOuterClass.java | 608 ++ .../StubFPGAReadBackRegResponseOuterClass.java | 865 ++ .../StubFPGAReadVersionRequestOuterClass.java | 525 ++ .../StubFPGAReadVersionResponseOuterClass.java | 1035 +++ .../pmr/stubs/StubHWVersionRequestOuterClass.java | 440 + .../pmr/stubs/StubHWVersionResponseOuterClass.java | 825 ++ .../stubs/StubL6470DriverRequestOuterClass.java | 1720 ++++ .../stubs/StubL6470DriverResponseOuterClass.java | 1529 ++++ .../pmr/stubs/StubMotorInitRequestOuterClass.java | 1036 +++ .../pmr/stubs/StubMotorInitResponseOuterClass.java | 568 ++ .../pmr/stubs/StubMotorMovRequestOuterClass.java | 632 ++ .../pmr/stubs/StubMotorMovResponseOuterClass.java | 929 ++ .../stubs/StubMotorPositionRequestOuterClass.java | 505 ++ .../stubs/StubMotorPositionResponseOuterClass.java | 568 ++ .../pmr/stubs/StubMotorRunRequestOuterClass.java | 635 ++ .../pmr/stubs/StubMotorRunResponseOuterClass.java | 996 +++ .../pmr/stubs/StubMotorSpeedRequestOuterClass.java | 505 ++ .../stubs/StubMotorSpeedResponseOuterClass.java | 571 ++ .../stubs/StubMotorStatusRequestOuterClass.java | 569 ++ .../stubs/StubMotorStatusResponseOuterClass.java | 1470 +++ .../pmr/stubs/StubMotorStopRequestOuterClass.java | 588 ++ .../pmr/stubs/StubMotorStopResponseOuterClass.java | 737 ++ .../Tango.PMR/src/main/res/raw/packages.txt | 6 +- .../com/twine/tango/transport/TransporterBase.java | 4 +- .../transport/adapters/TcpTransportAdapter.java | 2 - 180 files changed, 96671 insertions(+), 143 deletions(-) create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/BrushStop.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorCatalog.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorSpace.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesCategory.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesGroup.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancer.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancerType.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotor.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotorType.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControl.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControlType.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinder.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinderType.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPackFormula.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Job.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/JobRun.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachineStudioVersion.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTable.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTablesGroup.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Segment.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/SpoolType.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechController.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechDispenser.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechIo.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMonitor.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMotor.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechValf.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/WindingMethod.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ColorSpaces.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesCategories.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesGroups.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareDancerTypes.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareMotorTypes.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwarePidControlTypes.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareWinderTypes.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/IdsPackFormulas.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Rmls.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/SpoolTypes.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechControllers.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechDispensers.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechIos.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMonitors.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMotors.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechValves.java create mode 100644 Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/WindingMethods.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationDataOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationPointOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ColorSpaceOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionInputOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionOutputOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputCoordinatesOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputLiquidOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/LiquidTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputCoordinatesOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputLiquidOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogCategoryOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DataFileFrameOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DiagnosticsMonitorsOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DigitalPinOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DoubleArrayOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorDirectionOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentStateOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeInputOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeOutputOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileInputOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileOutputOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/EmbroideryFileOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ExtentsOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchColorOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchFlagOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareConfigurationOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserLiquidTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserStepDivisionOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobBrushStopOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobDispenserOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSegmentOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolTypeOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobStatusOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobTicketOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobWindingMethodOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/ProcessParametersOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusResponseOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopRequestOuterClass.java create mode 100644 Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopResponseOuterClass.java (limited to 'Software/Android_Studio') diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java index 6b0c83a16..427cb4d02 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/dao/TangoDAO.java @@ -7,9 +7,12 @@ import com.twine.tango.dal.entities.ApplicationDisplayPanelVersion; import com.twine.tango.dal.entities.ApplicationFirmwareVersion; import com.twine.tango.dal.entities.ApplicationOsVersion; import com.twine.tango.dal.entities.ApplicationVersion; +import com.twine.tango.dal.entities.BrushStop; import com.twine.tango.dal.entities.CartridgeType; import com.twine.tango.dal.entities.Cat; import com.twine.tango.dal.entities.Cct; +import com.twine.tango.dal.entities.ColorCatalog; +import com.twine.tango.dal.entities.ColorSpace; import com.twine.tango.dal.entities.Configuration; import com.twine.tango.dal.entities.Contact; import com.twine.tango.dal.entities.DispenserType; @@ -17,13 +20,27 @@ import com.twine.tango.dal.entities.EmbeddedFirmwareVersion; import com.twine.tango.dal.entities.EmbeddedSoftwareVersion; import com.twine.tango.dal.entities.EventType; import com.twine.tango.dal.entities.EventTypesAction; +import com.twine.tango.dal.entities.EventTypesCategory; +import com.twine.tango.dal.entities.EventTypesGroup; import com.twine.tango.dal.entities.FiberShape; import com.twine.tango.dal.entities.FiberSynth; +import com.twine.tango.dal.entities.HardwareDancerType; +import com.twine.tango.dal.entities.HardwareDancer; +import com.twine.tango.dal.entities.HardwareMotorType; +import com.twine.tango.dal.entities.HardwareMotor; +import com.twine.tango.dal.entities.HardwarePidControlType; +import com.twine.tango.dal.entities.HardwarePidControl; import com.twine.tango.dal.entities.HardwareVersion; +import com.twine.tango.dal.entities.HardwareWinderType; +import com.twine.tango.dal.entities.HardwareWinder; +import com.twine.tango.dal.entities.IdsPackFormula; import com.twine.tango.dal.entities.IdsPack; +import com.twine.tango.dal.entities.JobRun; +import com.twine.tango.dal.entities.Job; import com.twine.tango.dal.entities.LinearMassDensityUnit; import com.twine.tango.dal.entities.LiquidType; import com.twine.tango.dal.entities.LiquidTypesRml; +import com.twine.tango.dal.entities.MachineStudioVersion; import com.twine.tango.dal.entities.MachineVersion; import com.twine.tango.dal.entities.Machine; import com.twine.tango.dal.entities.MachinesConfiguration; @@ -35,12 +52,23 @@ import com.twine.tango.dal.entities.MediaPurpose; import com.twine.tango.dal.entities.MidTankType; import com.twine.tango.dal.entities.Organization; import com.twine.tango.dal.entities.Permission; +import com.twine.tango.dal.entities.ProcessParametersTable; +import com.twine.tango.dal.entities.ProcessParametersTablesGroup; import com.twine.tango.dal.entities.Rml; import com.twine.tango.dal.entities.Role; import com.twine.tango.dal.entities.RolesPermission; +import com.twine.tango.dal.entities.Segment; +import com.twine.tango.dal.entities.SpoolType; import com.twine.tango.dal.entities.SyncConfiguration; +import com.twine.tango.dal.entities.TechController; +import com.twine.tango.dal.entities.TechDispenser; +import com.twine.tango.dal.entities.TechIo; +import com.twine.tango.dal.entities.TechMonitor; +import com.twine.tango.dal.entities.TechMotor; +import com.twine.tango.dal.entities.TechValf; import com.twine.tango.dal.entities.User; import com.twine.tango.dal.entities.UsersRole; +import com.twine.tango.dal.entities.WindingMethod; import java.util.List; public class TangoDAO @@ -106,6 +134,16 @@ public class TangoDAO return SQLite.select().from(ApplicationVersion.class).queryList(); } + /** + * Gets all the BrushStops from database. + * + * @return all BrushStops + */ + public static List getAllBrushStops() + { + return SQLite.select().from(BrushStop.class).queryList(); + } + /** * Gets all the CartridgeTypes from database. * @@ -136,6 +174,26 @@ public class TangoDAO return SQLite.select().from(Cct.class).queryList(); } + /** + * Gets all the ColorCatalogs from database. + * + * @return all ColorCatalogs + */ + public static List getAllColorCatalogs() + { + return SQLite.select().from(ColorCatalog.class).queryList(); + } + + /** + * Gets all the ColorSpaces from database. + * + * @return all ColorSpaces + */ + public static List getAllColorSpaces() + { + return SQLite.select().from(ColorSpace.class).queryList(); + } + /** * Gets all the Configurations from database. * @@ -206,6 +264,26 @@ public class TangoDAO return SQLite.select().from(EventTypesAction.class).queryList(); } + /** + * Gets all the EventTypesCategories from database. + * + * @return all EventTypesCategories + */ + public static List getAllEventTypesCategories() + { + return SQLite.select().from(EventTypesCategory.class).queryList(); + } + + /** + * Gets all the EventTypesGroups from database. + * + * @return all EventTypesGroups + */ + public static List getAllEventTypesGroups() + { + return SQLite.select().from(EventTypesGroup.class).queryList(); + } + /** * Gets all the FiberShapes from database. * @@ -226,6 +304,66 @@ public class TangoDAO return SQLite.select().from(FiberSynth.class).queryList(); } + /** + * Gets all the HardwareDancerTypes from database. + * + * @return all HardwareDancerTypes + */ + public static List getAllHardwareDancerTypes() + { + return SQLite.select().from(HardwareDancerType.class).queryList(); + } + + /** + * Gets all the HardwareDancers from database. + * + * @return all HardwareDancers + */ + public static List getAllHardwareDancers() + { + return SQLite.select().from(HardwareDancer.class).queryList(); + } + + /** + * Gets all the HardwareMotorTypes from database. + * + * @return all HardwareMotorTypes + */ + public static List getAllHardwareMotorTypes() + { + return SQLite.select().from(HardwareMotorType.class).queryList(); + } + + /** + * Gets all the HardwareMotors from database. + * + * @return all HardwareMotors + */ + public static List getAllHardwareMotors() + { + return SQLite.select().from(HardwareMotor.class).queryList(); + } + + /** + * Gets all the HardwarePidControlTypes from database. + * + * @return all HardwarePidControlTypes + */ + public static List getAllHardwarePidControlTypes() + { + return SQLite.select().from(HardwarePidControlType.class).queryList(); + } + + /** + * Gets all the HardwarePidControls from database. + * + * @return all HardwarePidControls + */ + public static List getAllHardwarePidControls() + { + return SQLite.select().from(HardwarePidControl.class).queryList(); + } + /** * Gets all the HardwareVersions from database. * @@ -236,6 +374,36 @@ public class TangoDAO return SQLite.select().from(HardwareVersion.class).queryList(); } + /** + * Gets all the HardwareWinderTypes from database. + * + * @return all HardwareWinderTypes + */ + public static List getAllHardwareWinderTypes() + { + return SQLite.select().from(HardwareWinderType.class).queryList(); + } + + /** + * Gets all the HardwareWinders from database. + * + * @return all HardwareWinders + */ + public static List getAllHardwareWinders() + { + return SQLite.select().from(HardwareWinder.class).queryList(); + } + + /** + * Gets all the IdsPackFormulas from database. + * + * @return all IdsPackFormulas + */ + public static List getAllIdsPackFormulas() + { + return SQLite.select().from(IdsPackFormula.class).queryList(); + } + /** * Gets all the IdsPacks from database. * @@ -246,6 +414,26 @@ public class TangoDAO return SQLite.select().from(IdsPack.class).queryList(); } + /** + * Gets all the JobRuns from database. + * + * @return all JobRuns + */ + public static List getAllJobRuns() + { + return SQLite.select().from(JobRun.class).queryList(); + } + + /** + * Gets all the Jobs from database. + * + * @return all Jobs + */ + public static List getAllJobs() + { + return SQLite.select().from(Job.class).queryList(); + } + /** * Gets all the LinearMassDensityUnits from database. * @@ -276,6 +464,16 @@ public class TangoDAO return SQLite.select().from(LiquidTypesRml.class).queryList(); } + /** + * Gets all the MachineStudioVersions from database. + * + * @return all MachineStudioVersions + */ + public static List getAllMachineStudioVersions() + { + return SQLite.select().from(MachineStudioVersion.class).queryList(); + } + /** * Gets all the MachineVersions from database. * @@ -386,6 +584,26 @@ public class TangoDAO return SQLite.select().from(Permission.class).queryList(); } + /** + * Gets all the ProcessParametersTables from database. + * + * @return all ProcessParametersTables + */ + public static List getAllProcessParametersTables() + { + return SQLite.select().from(ProcessParametersTable.class).queryList(); + } + + /** + * Gets all the ProcessParametersTablesGroups from database. + * + * @return all ProcessParametersTablesGroups + */ + public static List getAllProcessParametersTablesGroups() + { + return SQLite.select().from(ProcessParametersTablesGroup.class).queryList(); + } + /** * Gets all the Rmls from database. * @@ -416,6 +634,26 @@ public class TangoDAO return SQLite.select().from(RolesPermission.class).queryList(); } + /** + * Gets all the Segments from database. + * + * @return all Segments + */ + public static List getAllSegments() + { + return SQLite.select().from(Segment.class).queryList(); + } + + /** + * Gets all the SpoolTypes from database. + * + * @return all SpoolTypes + */ + public static List getAllSpoolTypes() + { + return SQLite.select().from(SpoolType.class).queryList(); + } + /** * Gets all the SyncConfigurations from database. * @@ -426,6 +664,66 @@ public class TangoDAO return SQLite.select().from(SyncConfiguration.class).queryList(); } + /** + * Gets all the TechControllers from database. + * + * @return all TechControllers + */ + public static List getAllTechControllers() + { + return SQLite.select().from(TechController.class).queryList(); + } + + /** + * Gets all the TechDispensers from database. + * + * @return all TechDispensers + */ + public static List getAllTechDispensers() + { + return SQLite.select().from(TechDispenser.class).queryList(); + } + + /** + * Gets all the TechIos from database. + * + * @return all TechIos + */ + public static List getAllTechIos() + { + return SQLite.select().from(TechIo.class).queryList(); + } + + /** + * Gets all the TechMonitors from database. + * + * @return all TechMonitors + */ + public static List getAllTechMonitors() + { + return SQLite.select().from(TechMonitor.class).queryList(); + } + + /** + * Gets all the TechMotors from database. + * + * @return all TechMotors + */ + public static List getAllTechMotors() + { + return SQLite.select().from(TechMotor.class).queryList(); + } + + /** + * Gets all the TechValves from database. + * + * @return all TechValves + */ + public static List getAllTechValves() + { + return SQLite.select().from(TechValf.class).queryList(); + } + /** * Gets all the Users from database. * @@ -446,4 +744,14 @@ public class TangoDAO return SQLite.select().from(UsersRole.class).queryList(); } + /** + * Gets all the WindingMethods from database. + * + * @return all WindingMethods + */ + public static List getAllWindingMethods() + { + return SQLite.select().from(WindingMethod.class).queryList(); + } + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/BrushStop.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/BrushStop.java new file mode 100644 index 000000000..3801da548 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/BrushStop.java @@ -0,0 +1,640 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "BRUSH_STOPS", database = TangoDB.class) + public class BrushStop extends Entity + { + + @Column(name = "OFFSET_PERCENT") + private Double offsetPercent; + + + + @Column(name = "STOP_INDEX") + private int stopIndex; + + + + @Column(name = "CYAN") + private Double cyan; + + + + @Column(name = "MAGENTA") + private Double magenta; + + + + @Column(name = "YELLOW") + private Double yellow; + + + + @Column(name = "BLACK") + private Double black; + + + + @Column(name = "RED") + private int red; + + + + @Column(name = "GREEN") + private int green; + + + + @Column(name = "BLUE") + private int blue; + + + + @Column(name = "L") + private Double l; + + + + @Column(name = "A") + private Double a; + + + + @Column(name = "B") + private Double b; + + + + @Column(name = "V0") + private Double v0; + + + + @Column(name = "V1") + private Double v1; + + + + @Column(name = "V2") + private Double v2; + + + + @Column(name = "V3") + private Double v3; + + + + @Column(name = "V4") + private Double v4; + + + + @Column(name = "V5") + private Double v5; + + + + @Column(name = "V6") + private Double v6; + + + + @Column(name = "V7") + private Double v7; + + + + @Column(name = "COLOR_CATALOG_CODE") + private int colorCatalogCode; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "COLOR_CATALOGS_GUID", foreignKeyColumnName = "GUID")}) + private ColorCatalog colorCatalogs; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "COLOR_SPACES_GUID", foreignKeyColumnName = "GUID")}) + private ColorSpace colorSpaces; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "SEGMENT_GUID", foreignKeyColumnName = "GUID")}) + private Segment segment; + + + + + /** + * Gets the OffsetPercent. + * + * return the OffsetPercent + */ + public Double getOffsetPercent() + { + return offsetPercent; + } + + /** + * Sets the OffsetPercent. + * + * @param offsetPercent the OffsetPercent + */ + public void setOffsetPercent(Double offsetPercent) + { + this.offsetPercent = offsetPercent; + } + + + /** + * Gets the StopIndex. + * + * return the StopIndex + */ + public int getStopIndex() + { + return stopIndex; + } + + /** + * Sets the StopIndex. + * + * @param stopIndex the StopIndex + */ + public void setStopIndex(int stopIndex) + { + this.stopIndex = stopIndex; + } + + + /** + * Gets the Cyan. + * + * return the Cyan + */ + public Double getCyan() + { + return cyan; + } + + /** + * Sets the Cyan. + * + * @param cyan the Cyan + */ + public void setCyan(Double cyan) + { + this.cyan = cyan; + } + + + /** + * Gets the Magenta. + * + * return the Magenta + */ + public Double getMagenta() + { + return magenta; + } + + /** + * Sets the Magenta. + * + * @param magenta the Magenta + */ + public void setMagenta(Double magenta) + { + this.magenta = magenta; + } + + + /** + * Gets the Yellow. + * + * return the Yellow + */ + public Double getYellow() + { + return yellow; + } + + /** + * Sets the Yellow. + * + * @param yellow the Yellow + */ + public void setYellow(Double yellow) + { + this.yellow = yellow; + } + + + /** + * Gets the Black. + * + * return the Black + */ + public Double getBlack() + { + return black; + } + + /** + * Sets the Black. + * + * @param black the Black + */ + public void setBlack(Double black) + { + this.black = black; + } + + + /** + * Gets the Red. + * + * return the Red + */ + public int getRed() + { + return red; + } + + /** + * Sets the Red. + * + * @param red the Red + */ + public void setRed(int red) + { + this.red = red; + } + + + /** + * Gets the Green. + * + * return the Green + */ + public int getGreen() + { + return green; + } + + /** + * Sets the Green. + * + * @param green the Green + */ + public void setGreen(int green) + { + this.green = green; + } + + + /** + * Gets the Blue. + * + * return the Blue + */ + public int getBlue() + { + return blue; + } + + /** + * Sets the Blue. + * + * @param blue the Blue + */ + public void setBlue(int blue) + { + this.blue = blue; + } + + + /** + * Gets the L. + * + * return the L + */ + public Double getL() + { + return l; + } + + /** + * Sets the L. + * + * @param l the L + */ + public void setL(Double l) + { + this.l = l; + } + + + /** + * Gets the A. + * + * return the A + */ + public Double getA() + { + return a; + } + + /** + * Sets the A. + * + * @param a the A + */ + public void setA(Double a) + { + this.a = a; + } + + + /** + * Gets the B. + * + * return the B + */ + public Double getB() + { + return b; + } + + /** + * Sets the B. + * + * @param b the B + */ + public void setB(Double b) + { + this.b = b; + } + + + /** + * Gets the V0. + * + * return the V0 + */ + public Double getV0() + { + return v0; + } + + /** + * Sets the V0. + * + * @param v0 the V0 + */ + public void setV0(Double v0) + { + this.v0 = v0; + } + + + /** + * Gets the V1. + * + * return the V1 + */ + public Double getV1() + { + return v1; + } + + /** + * Sets the V1. + * + * @param v1 the V1 + */ + public void setV1(Double v1) + { + this.v1 = v1; + } + + + /** + * Gets the V2. + * + * return the V2 + */ + public Double getV2() + { + return v2; + } + + /** + * Sets the V2. + * + * @param v2 the V2 + */ + public void setV2(Double v2) + { + this.v2 = v2; + } + + + /** + * Gets the V3. + * + * return the V3 + */ + public Double getV3() + { + return v3; + } + + /** + * Sets the V3. + * + * @param v3 the V3 + */ + public void setV3(Double v3) + { + this.v3 = v3; + } + + + /** + * Gets the V4. + * + * return the V4 + */ + public Double getV4() + { + return v4; + } + + /** + * Sets the V4. + * + * @param v4 the V4 + */ + public void setV4(Double v4) + { + this.v4 = v4; + } + + + /** + * Gets the V5. + * + * return the V5 + */ + public Double getV5() + { + return v5; + } + + /** + * Sets the V5. + * + * @param v5 the V5 + */ + public void setV5(Double v5) + { + this.v5 = v5; + } + + + /** + * Gets the V6. + * + * return the V6 + */ + public Double getV6() + { + return v6; + } + + /** + * Sets the V6. + * + * @param v6 the V6 + */ + public void setV6(Double v6) + { + this.v6 = v6; + } + + + /** + * Gets the V7. + * + * return the V7 + */ + public Double getV7() + { + return v7; + } + + /** + * Sets the V7. + * + * @param v7 the V7 + */ + public void setV7(Double v7) + { + this.v7 = v7; + } + + + /** + * Gets the ColorCatalogCode. + * + * return the ColorCatalogCode + */ + public int getColorCatalogCode() + { + return colorCatalogCode; + } + + /** + * Sets the ColorCatalogCode. + * + * @param colorCatalogCode the ColorCatalogCode + */ + public void setColorCatalogCode(int colorCatalogCode) + { + this.colorCatalogCode = colorCatalogCode; + } + + + /** + * Gets the ColorCatalogs. + * + * return the ColorCatalogs + */ + public ColorCatalog getColorCatalogs() + { + return colorCatalogs; + } + + /** + * Sets the ColorCatalogs. + * + * @param colorCatalogs the ColorCatalogs + */ + public void setColorCatalogs(ColorCatalog colorCatalogs) + { + this.colorCatalogs = colorCatalogs; + } + + + /** + * Gets the ColorSpaces. + * + * return the ColorSpaces + */ + public ColorSpace getColorSpaces() + { + return colorSpaces; + } + + /** + * Sets the ColorSpaces. + * + * @param colorSpaces the ColorSpaces + */ + public void setColorSpaces(ColorSpace colorSpaces) + { + this.colorSpaces = colorSpaces; + } + + + /** + * Gets the Segment. + * + * return the Segment + */ + public Segment getSegment() + { + return segment; + } + + /** + * Sets the Segment. + * + * @param segment the Segment + */ + public void setSegment(Segment segment) + { + this.segment = segment; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java index 026927dd7..6f434a042 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Cat.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class Cat extends Entity { + @Column(name = "NAME") + private String name; + + + @Column(name = "DATA") private byte[] data; @@ -27,7 +32,33 @@ import com.twine.tango.dal.TangoDB; private Machine machine; + + @ForeignKey(references = { @ForeignKeyReference(columnName = "RML_GUID", foreignKeyColumnName = "GUID")}) + private Rml rml; + + + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + /** * Gets the Data. @@ -91,4 +122,25 @@ import com.twine.tango.dal.TangoDB; this.machine = machine; } + + /** + * Gets the Rml. + * + * return the Rml + */ + public Rml getRml() + { + return rml; + } + + /** + * Sets the Rml. + * + * @param rml the Rml + */ + public void setRml(Rml rml) + { + this.rml = rml; + } + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorCatalog.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorCatalog.java new file mode 100644 index 000000000..ea7bb425c --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorCatalog.java @@ -0,0 +1,562 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "COLOR_CATALOGS", database = TangoDB.class) + public class ColorCatalog extends Entity + { + + @Column(name = "COLOR_CODE") + private int colorCode; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "CYAN") + private Double cyan; + + + + @Column(name = "MAGENTA") + private Double magenta; + + + + @Column(name = "YELLOW") + private Double yellow; + + + + @Column(name = "BLACK") + private Double black; + + + + @Column(name = "RED") + private int red; + + + + @Column(name = "GREEN") + private int green; + + + + @Column(name = "BLUE") + private int blue; + + + + @Column(name = "L") + private Double l; + + + + @Column(name = "A") + private Double a; + + + + @Column(name = "B") + private Double b; + + + + @Column(name = "V0") + private Double v0; + + + + @Column(name = "V1") + private Double v1; + + + + @Column(name = "V2") + private Double v2; + + + + @Column(name = "V3") + private Double v3; + + + + @Column(name = "V4") + private Double v4; + + + + @Column(name = "V5") + private Double v5; + + + + @Column(name = "V6") + private Double v6; + + + + @Column(name = "V7") + private Double v7; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "COLOR_SPACES_GUID", foreignKeyColumnName = "GUID")}) + private ColorSpace colorSpaces; + + + + + /** + * Gets the ColorCode. + * + * return the ColorCode + */ + public int getColorCode() + { + return colorCode; + } + + /** + * Sets the ColorCode. + * + * @param colorCode the ColorCode + */ + public void setColorCode(int colorCode) + { + this.colorCode = colorCode; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Cyan. + * + * return the Cyan + */ + public Double getCyan() + { + return cyan; + } + + /** + * Sets the Cyan. + * + * @param cyan the Cyan + */ + public void setCyan(Double cyan) + { + this.cyan = cyan; + } + + + /** + * Gets the Magenta. + * + * return the Magenta + */ + public Double getMagenta() + { + return magenta; + } + + /** + * Sets the Magenta. + * + * @param magenta the Magenta + */ + public void setMagenta(Double magenta) + { + this.magenta = magenta; + } + + + /** + * Gets the Yellow. + * + * return the Yellow + */ + public Double getYellow() + { + return yellow; + } + + /** + * Sets the Yellow. + * + * @param yellow the Yellow + */ + public void setYellow(Double yellow) + { + this.yellow = yellow; + } + + + /** + * Gets the Black. + * + * return the Black + */ + public Double getBlack() + { + return black; + } + + /** + * Sets the Black. + * + * @param black the Black + */ + public void setBlack(Double black) + { + this.black = black; + } + + + /** + * Gets the Red. + * + * return the Red + */ + public int getRed() + { + return red; + } + + /** + * Sets the Red. + * + * @param red the Red + */ + public void setRed(int red) + { + this.red = red; + } + + + /** + * Gets the Green. + * + * return the Green + */ + public int getGreen() + { + return green; + } + + /** + * Sets the Green. + * + * @param green the Green + */ + public void setGreen(int green) + { + this.green = green; + } + + + /** + * Gets the Blue. + * + * return the Blue + */ + public int getBlue() + { + return blue; + } + + /** + * Sets the Blue. + * + * @param blue the Blue + */ + public void setBlue(int blue) + { + this.blue = blue; + } + + + /** + * Gets the L. + * + * return the L + */ + public Double getL() + { + return l; + } + + /** + * Sets the L. + * + * @param l the L + */ + public void setL(Double l) + { + this.l = l; + } + + + /** + * Gets the A. + * + * return the A + */ + public Double getA() + { + return a; + } + + /** + * Sets the A. + * + * @param a the A + */ + public void setA(Double a) + { + this.a = a; + } + + + /** + * Gets the B. + * + * return the B + */ + public Double getB() + { + return b; + } + + /** + * Sets the B. + * + * @param b the B + */ + public void setB(Double b) + { + this.b = b; + } + + + /** + * Gets the V0. + * + * return the V0 + */ + public Double getV0() + { + return v0; + } + + /** + * Sets the V0. + * + * @param v0 the V0 + */ + public void setV0(Double v0) + { + this.v0 = v0; + } + + + /** + * Gets the V1. + * + * return the V1 + */ + public Double getV1() + { + return v1; + } + + /** + * Sets the V1. + * + * @param v1 the V1 + */ + public void setV1(Double v1) + { + this.v1 = v1; + } + + + /** + * Gets the V2. + * + * return the V2 + */ + public Double getV2() + { + return v2; + } + + /** + * Sets the V2. + * + * @param v2 the V2 + */ + public void setV2(Double v2) + { + this.v2 = v2; + } + + + /** + * Gets the V3. + * + * return the V3 + */ + public Double getV3() + { + return v3; + } + + /** + * Sets the V3. + * + * @param v3 the V3 + */ + public void setV3(Double v3) + { + this.v3 = v3; + } + + + /** + * Gets the V4. + * + * return the V4 + */ + public Double getV4() + { + return v4; + } + + /** + * Sets the V4. + * + * @param v4 the V4 + */ + public void setV4(Double v4) + { + this.v4 = v4; + } + + + /** + * Gets the V5. + * + * return the V5 + */ + public Double getV5() + { + return v5; + } + + /** + * Sets the V5. + * + * @param v5 the V5 + */ + public void setV5(Double v5) + { + this.v5 = v5; + } + + + /** + * Gets the V6. + * + * return the V6 + */ + public Double getV6() + { + return v6; + } + + /** + * Sets the V6. + * + * @param v6 the V6 + */ + public void setV6(Double v6) + { + this.v6 = v6; + } + + + /** + * Gets the V7. + * + * return the V7 + */ + public Double getV7() + { + return v7; + } + + /** + * Sets the V7. + * + * @param v7 the V7 + */ + public void setV7(Double v7) + { + this.v7 = v7; + } + + + /** + * Gets the ColorSpaces. + * + * return the ColorSpaces + */ + public ColorSpace getColorSpaces() + { + return colorSpaces; + } + + /** + * Sets the ColorSpaces. + * + * @param colorSpaces the ColorSpaces + */ + public void setColorSpaces(ColorSpace colorSpaces) + { + this.colorSpaces = colorSpaces; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorSpace.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorSpace.java new file mode 100644 index 000000000..661fa477b --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ColorSpace.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "COLOR_SPACES", database = TangoDB.class) + public class ColorSpace extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java index 6739b3e89..ab36f1020 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/DispenserType.java @@ -32,6 +32,66 @@ import com.twine.tango.dal.TangoDB; private Double capacity; + + @Column(name = "MIN_FREQUENCY") + private int minFrequency; + + + + @Column(name = "MAX_FREQUENCY") + private int maxFrequency; + + + + @Column(name = "MIN_MICRO_STEP") + private int minMicroStep; + + + + @Column(name = "MAX_MICRO_STEP") + private int maxMicroStep; + + + + @Column(name = "CORRECTION_GAIN") + private Double correctionGain; + + + + @Column(name = "RATIO_TO_DRYER_SPEED") + private Double ratioToDryerSpeed; + + + + @Column(name = "KP") + private Double kp; + + + + @Column(name = "KI") + private Double ki; + + + + @Column(name = "KD") + private Double kd; + + + + @Column(name = "CHANGE_SLOPE") + private Double changeSlope; + + + + @Column(name = "HIGH_LENGTH_MICRO_SECOND") + private Double highLengthMicroSecond; + + + + @Column(name = "CONTROL_TIMING") + private int controlTiming; + + /** @@ -117,4 +177,256 @@ import com.twine.tango.dal.TangoDB; this.capacity = capacity; } + + /** + * Gets the MinFrequency. + * + * return the MinFrequency + */ + public int getMinFrequency() + { + return minFrequency; + } + + /** + * Sets the MinFrequency. + * + * @param minFrequency the MinFrequency + */ + public void setMinFrequency(int minFrequency) + { + this.minFrequency = minFrequency; + } + + + /** + * Gets the MaxFrequency. + * + * return the MaxFrequency + */ + public int getMaxFrequency() + { + return maxFrequency; + } + + /** + * Sets the MaxFrequency. + * + * @param maxFrequency the MaxFrequency + */ + public void setMaxFrequency(int maxFrequency) + { + this.maxFrequency = maxFrequency; + } + + + /** + * Gets the MinMicroStep. + * + * return the MinMicroStep + */ + public int getMinMicroStep() + { + return minMicroStep; + } + + /** + * Sets the MinMicroStep. + * + * @param minMicroStep the MinMicroStep + */ + public void setMinMicroStep(int minMicroStep) + { + this.minMicroStep = minMicroStep; + } + + + /** + * Gets the MaxMicroStep. + * + * return the MaxMicroStep + */ + public int getMaxMicroStep() + { + return maxMicroStep; + } + + /** + * Sets the MaxMicroStep. + * + * @param maxMicroStep the MaxMicroStep + */ + public void setMaxMicroStep(int maxMicroStep) + { + this.maxMicroStep = maxMicroStep; + } + + + /** + * Gets the CorrectionGain. + * + * return the CorrectionGain + */ + public Double getCorrectionGain() + { + return correctionGain; + } + + /** + * Sets the CorrectionGain. + * + * @param correctionGain the CorrectionGain + */ + public void setCorrectionGain(Double correctionGain) + { + this.correctionGain = correctionGain; + } + + + /** + * Gets the RatioToDryerSpeed. + * + * return the RatioToDryerSpeed + */ + public Double getRatioToDryerSpeed() + { + return ratioToDryerSpeed; + } + + /** + * Sets the RatioToDryerSpeed. + * + * @param ratioToDryerSpeed the RatioToDryerSpeed + */ + public void setRatioToDryerSpeed(Double ratioToDryerSpeed) + { + this.ratioToDryerSpeed = ratioToDryerSpeed; + } + + + /** + * Gets the Kp. + * + * return the Kp + */ + public Double getKp() + { + return kp; + } + + /** + * Sets the Kp. + * + * @param kp the Kp + */ + public void setKp(Double kp) + { + this.kp = kp; + } + + + /** + * Gets the Ki. + * + * return the Ki + */ + public Double getKi() + { + return ki; + } + + /** + * Sets the Ki. + * + * @param ki the Ki + */ + public void setKi(Double ki) + { + this.ki = ki; + } + + + /** + * Gets the Kd. + * + * return the Kd + */ + public Double getKd() + { + return kd; + } + + /** + * Sets the Kd. + * + * @param kd the Kd + */ + public void setKd(Double kd) + { + this.kd = kd; + } + + + /** + * Gets the ChangeSlope. + * + * return the ChangeSlope + */ + public Double getChangeSlope() + { + return changeSlope; + } + + /** + * Sets the ChangeSlope. + * + * @param changeSlope the ChangeSlope + */ + public void setChangeSlope(Double changeSlope) + { + this.changeSlope = changeSlope; + } + + + /** + * Gets the HighLengthMicroSecond. + * + * return the HighLengthMicroSecond + */ + public Double getHighLengthMicroSecond() + { + return highLengthMicroSecond; + } + + /** + * Sets the HighLengthMicroSecond. + * + * @param highLengthMicroSecond the HighLengthMicroSecond + */ + public void setHighLengthMicroSecond(Double highLengthMicroSecond) + { + this.highLengthMicroSecond = highLengthMicroSecond; + } + + + /** + * Gets the ControlTiming. + * + * return the ControlTiming + */ + public int getControlTiming() + { + return controlTiming; + } + + /** + * Sets the ControlTiming. + * + * @param controlTiming the ControlTiming + */ + public void setControlTiming(int controlTiming) + { + this.controlTiming = controlTiming; + } + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventType.java index 9340b78c3..a5d547538 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventType.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventType.java @@ -27,6 +27,16 @@ import com.twine.tango.dal.TangoDB; private String description; + + @ForeignKey(references = { @ForeignKeyReference(columnName = "EVENT_TYPES_GROUPS_GUID", foreignKeyColumnName = "GUID")}) + private EventTypesGroup eventTypesGroups; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "EVENT_TYPES_CATEGORIES_GUID", foreignKeyColumnName = "GUID")}) + private EventTypesCategory eventTypesCategories; + + /** @@ -91,4 +101,46 @@ import com.twine.tango.dal.TangoDB; this.description = description; } + + /** + * Gets the EventTypesGroups. + * + * return the EventTypesGroups + */ + public EventTypesGroup getEventTypesGroups() + { + return eventTypesGroups; + } + + /** + * Sets the EventTypesGroups. + * + * @param eventTypesGroups the EventTypesGroups + */ + public void setEventTypesGroups(EventTypesGroup eventTypesGroups) + { + this.eventTypesGroups = eventTypesGroups; + } + + + /** + * Gets the EventTypesCategories. + * + * return the EventTypesCategories + */ + public EventTypesCategory getEventTypesCategories() + { + return eventTypesCategories; + } + + /** + * Sets the EventTypesCategories. + * + * @param eventTypesCategories the EventTypesCategories + */ + public void setEventTypesCategories(EventTypesCategory eventTypesCategories) + { + this.eventTypesCategories = eventTypesCategories; + } + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesCategory.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesCategory.java new file mode 100644 index 000000000..754dd06ae --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesCategory.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "EVENT_TYPES_CATEGORIES", database = TangoDB.class) + public class EventTypesCategory extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesGroup.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesGroup.java new file mode 100644 index 000000000..113ffe55a --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/EventTypesGroup.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "EVENT_TYPES_GROUPS", database = TangoDB.class) + public class EventTypesGroup extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancer.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancer.java new file mode 100644 index 000000000..8f8e79caf --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancer.java @@ -0,0 +1,172 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_DANCERS", database = TangoDB.class) + public class HardwareDancer extends Entity + { + + @Column(name = "GRADUAL") + private Boolean gradual; + + + + @Column(name = "K") + private Double k; + + + + @Column(name = "X") + private Double x; + + + + @Column(name = "PULSE_PER_MM_SPRING") + private int pulsePerMmSpring; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_DANCER_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private HardwareDancerType hardwareDancerTypes; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private HardwareVersion hardwareVersions; + + + + + /** + * Gets the Gradual. + * + * return the Gradual + */ + public Boolean isGradual() + { + return gradual; + } + + /** + * Sets the Gradual. + * + * @param gradual the Gradual + */ + public void setGradual(Boolean gradual) + { + this.gradual = gradual; + } + + + /** + * Gets the K. + * + * return the K + */ + public Double getK() + { + return k; + } + + /** + * Sets the K. + * + * @param k the K + */ + public void setK(Double k) + { + this.k = k; + } + + + /** + * Gets the X. + * + * return the X + */ + public Double getX() + { + return x; + } + + /** + * Sets the X. + * + * @param x the X + */ + public void setX(Double x) + { + this.x = x; + } + + + /** + * Gets the PulsePerMmSpring. + * + * return the PulsePerMmSpring + */ + public int getPulsePerMmSpring() + { + return pulsePerMmSpring; + } + + /** + * Sets the PulsePerMmSpring. + * + * @param pulsePerMmSpring the PulsePerMmSpring + */ + public void setPulsePerMmSpring(int pulsePerMmSpring) + { + this.pulsePerMmSpring = pulsePerMmSpring; + } + + + /** + * Gets the HardwareDancerTypes. + * + * return the HardwareDancerTypes + */ + public HardwareDancerType getHardwareDancerTypes() + { + return hardwareDancerTypes; + } + + /** + * Sets the HardwareDancerTypes. + * + * @param hardwareDancerTypes the HardwareDancerTypes + */ + public void setHardwareDancerTypes(HardwareDancerType hardwareDancerTypes) + { + this.hardwareDancerTypes = hardwareDancerTypes; + } + + + /** + * Gets the HardwareVersions. + * + * return the HardwareVersions + */ + public HardwareVersion getHardwareVersions() + { + return hardwareVersions; + } + + /** + * Sets the HardwareVersions. + * + * @param hardwareVersions the HardwareVersions + */ + public void setHardwareVersions(HardwareVersion hardwareVersions) + { + this.hardwareVersions = hardwareVersions; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancerType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancerType.java new file mode 100644 index 000000000..d4206ac9e --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareDancerType.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_DANCER_TYPES", database = TangoDB.class) + public class HardwareDancerType extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotor.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotor.java new file mode 100644 index 000000000..6b1b8071d --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotor.java @@ -0,0 +1,432 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_MOTORS", database = TangoDB.class) + public class HardwareMotor extends Entity + { + + @Column(name = "MIN_FREQUENCY") + private int minFrequency; + + + + @Column(name = "MAX_FREQUENCY") + private int maxFrequency; + + + + @Column(name = "MIN_MICRO_STEP") + private int minMicroStep; + + + + @Column(name = "MAX_MICRO_STEP") + private int maxMicroStep; + + + + @Column(name = "LINEAR_RATIO") + private Double linearRatio; + + + + @Column(name = "MEDIAN_POSITION") + private int medianPosition; + + + + @Column(name = "CORRECTION_GAIN") + private Double correctionGain; + + + + @Column(name = "RATIO_TO_DRYER_SPEED") + private Double ratioToDryerSpeed; + + + + @Column(name = "KP") + private Double kp; + + + + @Column(name = "KI") + private Double ki; + + + + @Column(name = "KD") + private Double kd; + + + + @Column(name = "CHANGE_SLOPE") + private Double changeSlope; + + + + @Column(name = "HIGH_LENGTH_MICRO_SECOND") + private Double highLengthMicroSecond; + + + + @Column(name = "SPEED_MASTER") + private Boolean speedMaster; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_MOTOR_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private HardwareMotorType hardwareMotorTypes; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private HardwareVersion hardwareVersions; + + + + + /** + * Gets the MinFrequency. + * + * return the MinFrequency + */ + public int getMinFrequency() + { + return minFrequency; + } + + /** + * Sets the MinFrequency. + * + * @param minFrequency the MinFrequency + */ + public void setMinFrequency(int minFrequency) + { + this.minFrequency = minFrequency; + } + + + /** + * Gets the MaxFrequency. + * + * return the MaxFrequency + */ + public int getMaxFrequency() + { + return maxFrequency; + } + + /** + * Sets the MaxFrequency. + * + * @param maxFrequency the MaxFrequency + */ + public void setMaxFrequency(int maxFrequency) + { + this.maxFrequency = maxFrequency; + } + + + /** + * Gets the MinMicroStep. + * + * return the MinMicroStep + */ + public int getMinMicroStep() + { + return minMicroStep; + } + + /** + * Sets the MinMicroStep. + * + * @param minMicroStep the MinMicroStep + */ + public void setMinMicroStep(int minMicroStep) + { + this.minMicroStep = minMicroStep; + } + + + /** + * Gets the MaxMicroStep. + * + * return the MaxMicroStep + */ + public int getMaxMicroStep() + { + return maxMicroStep; + } + + /** + * Sets the MaxMicroStep. + * + * @param maxMicroStep the MaxMicroStep + */ + public void setMaxMicroStep(int maxMicroStep) + { + this.maxMicroStep = maxMicroStep; + } + + + /** + * Gets the LinearRatio. + * + * return the LinearRatio + */ + public Double getLinearRatio() + { + return linearRatio; + } + + /** + * Sets the LinearRatio. + * + * @param linearRatio the LinearRatio + */ + public void setLinearRatio(Double linearRatio) + { + this.linearRatio = linearRatio; + } + + + /** + * Gets the MedianPosition. + * + * return the MedianPosition + */ + public int getMedianPosition() + { + return medianPosition; + } + + /** + * Sets the MedianPosition. + * + * @param medianPosition the MedianPosition + */ + public void setMedianPosition(int medianPosition) + { + this.medianPosition = medianPosition; + } + + + /** + * Gets the CorrectionGain. + * + * return the CorrectionGain + */ + public Double getCorrectionGain() + { + return correctionGain; + } + + /** + * Sets the CorrectionGain. + * + * @param correctionGain the CorrectionGain + */ + public void setCorrectionGain(Double correctionGain) + { + this.correctionGain = correctionGain; + } + + + /** + * Gets the RatioToDryerSpeed. + * + * return the RatioToDryerSpeed + */ + public Double getRatioToDryerSpeed() + { + return ratioToDryerSpeed; + } + + /** + * Sets the RatioToDryerSpeed. + * + * @param ratioToDryerSpeed the RatioToDryerSpeed + */ + public void setRatioToDryerSpeed(Double ratioToDryerSpeed) + { + this.ratioToDryerSpeed = ratioToDryerSpeed; + } + + + /** + * Gets the Kp. + * + * return the Kp + */ + public Double getKp() + { + return kp; + } + + /** + * Sets the Kp. + * + * @param kp the Kp + */ + public void setKp(Double kp) + { + this.kp = kp; + } + + + /** + * Gets the Ki. + * + * return the Ki + */ + public Double getKi() + { + return ki; + } + + /** + * Sets the Ki. + * + * @param ki the Ki + */ + public void setKi(Double ki) + { + this.ki = ki; + } + + + /** + * Gets the Kd. + * + * return the Kd + */ + public Double getKd() + { + return kd; + } + + /** + * Sets the Kd. + * + * @param kd the Kd + */ + public void setKd(Double kd) + { + this.kd = kd; + } + + + /** + * Gets the ChangeSlope. + * + * return the ChangeSlope + */ + public Double getChangeSlope() + { + return changeSlope; + } + + /** + * Sets the ChangeSlope. + * + * @param changeSlope the ChangeSlope + */ + public void setChangeSlope(Double changeSlope) + { + this.changeSlope = changeSlope; + } + + + /** + * Gets the HighLengthMicroSecond. + * + * return the HighLengthMicroSecond + */ + public Double getHighLengthMicroSecond() + { + return highLengthMicroSecond; + } + + /** + * Sets the HighLengthMicroSecond. + * + * @param highLengthMicroSecond the HighLengthMicroSecond + */ + public void setHighLengthMicroSecond(Double highLengthMicroSecond) + { + this.highLengthMicroSecond = highLengthMicroSecond; + } + + + /** + * Gets the SpeedMaster. + * + * return the SpeedMaster + */ + public Boolean isSpeedMaster() + { + return speedMaster; + } + + /** + * Sets the SpeedMaster. + * + * @param speedMaster the SpeedMaster + */ + public void setSpeedMaster(Boolean speedMaster) + { + this.speedMaster = speedMaster; + } + + + /** + * Gets the HardwareMotorTypes. + * + * return the HardwareMotorTypes + */ + public HardwareMotorType getHardwareMotorTypes() + { + return hardwareMotorTypes; + } + + /** + * Sets the HardwareMotorTypes. + * + * @param hardwareMotorTypes the HardwareMotorTypes + */ + public void setHardwareMotorTypes(HardwareMotorType hardwareMotorTypes) + { + this.hardwareMotorTypes = hardwareMotorTypes; + } + + + /** + * Gets the HardwareVersions. + * + * return the HardwareVersions + */ + public HardwareVersion getHardwareVersions() + { + return hardwareVersions; + } + + /** + * Sets the HardwareVersions. + * + * @param hardwareVersions the HardwareVersions + */ + public void setHardwareVersions(HardwareVersion hardwareVersions) + { + this.hardwareVersions = hardwareVersions; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotorType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotorType.java new file mode 100644 index 000000000..849e43315 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareMotorType.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_MOTOR_TYPES", database = TangoDB.class) + public class HardwareMotorType extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControl.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControl.java new file mode 100644 index 000000000..b49a54ab8 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControl.java @@ -0,0 +1,432 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_PID_CONTROLS", database = TangoDB.class) + public class HardwarePidControl extends Entity + { + + @Column(name = "OUTPUT_PROPORTIONAL_POWER_LIMIT") + private int outputProportionalPowerLimit; + + + + @Column(name = "OUTPUT_PROPORTIONAL_BAND") + private int outputProportionalBand; + + + + @Column(name = "INTEGRAL_TIME") + private int integralTime; + + + + @Column(name = "DERIVATIVE_TIME") + private int derivativeTime; + + + + @Column(name = "SENSOR_CORRECTION_ADJUSTMENT") + private int sensorCorrectionAdjustment; + + + + @Column(name = "SENSOR_MIN_VALUE") + private int sensorMinValue; + + + + @Column(name = "SENSOR_MAX_VALUE") + private int sensorMaxValue; + + + + @Column(name = "SET_POINT_RAMP_RATEOR_SOFT_START_RAMP") + private int pointRampRateorSoftStartRamp; + + + + @Column(name = "SET_POINT_CONTROL_OUTPUT_RATE") + private int pointControlOutputRate; + + + + @Column(name = "CONTROL_OUTPUT_TYPE") + private int controlOutputType; + + + + @Column(name = "SSR_CONTROL_OUTPUT_TYPE") + private int ssrControlOutputType; + + + + @Column(name = "OUTPUT_ON_OFF_HYSTERESIS_VALUE") + private int outputOnOffHysteresisValue; + + + + @Column(name = "PROCESS_VARIABLE_SAMPLING_RATE") + private int processVariableSamplingRate; + + + + @Column(name = "PV_INPUT_FILTER_FACTOR_MODE") + private int pvInputFilterFactorMode; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_PID_CONTROL_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private HardwarePidControlType hardwarePidControlTypes; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private HardwareVersion hardwareVersions; + + + + + /** + * Gets the OutputProportionalPowerLimit. + * + * return the OutputProportionalPowerLimit + */ + public int getOutputProportionalPowerLimit() + { + return outputProportionalPowerLimit; + } + + /** + * Sets the OutputProportionalPowerLimit. + * + * @param outputProportionalPowerLimit the OutputProportionalPowerLimit + */ + public void setOutputProportionalPowerLimit(int outputProportionalPowerLimit) + { + this.outputProportionalPowerLimit = outputProportionalPowerLimit; + } + + + /** + * Gets the OutputProportionalBand. + * + * return the OutputProportionalBand + */ + public int getOutputProportionalBand() + { + return outputProportionalBand; + } + + /** + * Sets the OutputProportionalBand. + * + * @param outputProportionalBand the OutputProportionalBand + */ + public void setOutputProportionalBand(int outputProportionalBand) + { + this.outputProportionalBand = outputProportionalBand; + } + + + /** + * Gets the IntegralTime. + * + * return the IntegralTime + */ + public int getIntegralTime() + { + return integralTime; + } + + /** + * Sets the IntegralTime. + * + * @param integralTime the IntegralTime + */ + public void setIntegralTime(int integralTime) + { + this.integralTime = integralTime; + } + + + /** + * Gets the DerivativeTime. + * + * return the DerivativeTime + */ + public int getDerivativeTime() + { + return derivativeTime; + } + + /** + * Sets the DerivativeTime. + * + * @param derivativeTime the DerivativeTime + */ + public void setDerivativeTime(int derivativeTime) + { + this.derivativeTime = derivativeTime; + } + + + /** + * Gets the SensorCorrectionAdjustment. + * + * return the SensorCorrectionAdjustment + */ + public int getSensorCorrectionAdjustment() + { + return sensorCorrectionAdjustment; + } + + /** + * Sets the SensorCorrectionAdjustment. + * + * @param sensorCorrectionAdjustment the SensorCorrectionAdjustment + */ + public void setSensorCorrectionAdjustment(int sensorCorrectionAdjustment) + { + this.sensorCorrectionAdjustment = sensorCorrectionAdjustment; + } + + + /** + * Gets the SensorMinValue. + * + * return the SensorMinValue + */ + public int getSensorMinValue() + { + return sensorMinValue; + } + + /** + * Sets the SensorMinValue. + * + * @param sensorMinValue the SensorMinValue + */ + public void setSensorMinValue(int sensorMinValue) + { + this.sensorMinValue = sensorMinValue; + } + + + /** + * Gets the SensorMaxValue. + * + * return the SensorMaxValue + */ + public int getSensorMaxValue() + { + return sensorMaxValue; + } + + /** + * Sets the SensorMaxValue. + * + * @param sensorMaxValue the SensorMaxValue + */ + public void setSensorMaxValue(int sensorMaxValue) + { + this.sensorMaxValue = sensorMaxValue; + } + + + /** + * Gets the PointRampRateorSoftStartRamp. + * + * return the PointRampRateorSoftStartRamp + */ + public int getPointRampRateorSoftStartRamp() + { + return pointRampRateorSoftStartRamp; + } + + /** + * Sets the PointRampRateorSoftStartRamp. + * + * @param pointRampRateorSoftStartRamp the PointRampRateorSoftStartRamp + */ + public void setPointRampRateorSoftStartRamp(int pointRampRateorSoftStartRamp) + { + this.pointRampRateorSoftStartRamp = pointRampRateorSoftStartRamp; + } + + + /** + * Gets the PointControlOutputRate. + * + * return the PointControlOutputRate + */ + public int getPointControlOutputRate() + { + return pointControlOutputRate; + } + + /** + * Sets the PointControlOutputRate. + * + * @param pointControlOutputRate the PointControlOutputRate + */ + public void setPointControlOutputRate(int pointControlOutputRate) + { + this.pointControlOutputRate = pointControlOutputRate; + } + + + /** + * Gets the ControlOutputType. + * + * return the ControlOutputType + */ + public int getControlOutputType() + { + return controlOutputType; + } + + /** + * Sets the ControlOutputType. + * + * @param controlOutputType the ControlOutputType + */ + public void setControlOutputType(int controlOutputType) + { + this.controlOutputType = controlOutputType; + } + + + /** + * Gets the SsrControlOutputType. + * + * return the SsrControlOutputType + */ + public int getSsrControlOutputType() + { + return ssrControlOutputType; + } + + /** + * Sets the SsrControlOutputType. + * + * @param ssrControlOutputType the SsrControlOutputType + */ + public void setSsrControlOutputType(int ssrControlOutputType) + { + this.ssrControlOutputType = ssrControlOutputType; + } + + + /** + * Gets the OutputOnOffHysteresisValue. + * + * return the OutputOnOffHysteresisValue + */ + public int getOutputOnOffHysteresisValue() + { + return outputOnOffHysteresisValue; + } + + /** + * Sets the OutputOnOffHysteresisValue. + * + * @param outputOnOffHysteresisValue the OutputOnOffHysteresisValue + */ + public void setOutputOnOffHysteresisValue(int outputOnOffHysteresisValue) + { + this.outputOnOffHysteresisValue = outputOnOffHysteresisValue; + } + + + /** + * Gets the ProcessVariableSamplingRate. + * + * return the ProcessVariableSamplingRate + */ + public int getProcessVariableSamplingRate() + { + return processVariableSamplingRate; + } + + /** + * Sets the ProcessVariableSamplingRate. + * + * @param processVariableSamplingRate the ProcessVariableSamplingRate + */ + public void setProcessVariableSamplingRate(int processVariableSamplingRate) + { + this.processVariableSamplingRate = processVariableSamplingRate; + } + + + /** + * Gets the PvInputFilterFactorMode. + * + * return the PvInputFilterFactorMode + */ + public int getPvInputFilterFactorMode() + { + return pvInputFilterFactorMode; + } + + /** + * Sets the PvInputFilterFactorMode. + * + * @param pvInputFilterFactorMode the PvInputFilterFactorMode + */ + public void setPvInputFilterFactorMode(int pvInputFilterFactorMode) + { + this.pvInputFilterFactorMode = pvInputFilterFactorMode; + } + + + /** + * Gets the HardwarePidControlTypes. + * + * return the HardwarePidControlTypes + */ + public HardwarePidControlType getHardwarePidControlTypes() + { + return hardwarePidControlTypes; + } + + /** + * Sets the HardwarePidControlTypes. + * + * @param hardwarePidControlTypes the HardwarePidControlTypes + */ + public void setHardwarePidControlTypes(HardwarePidControlType hardwarePidControlTypes) + { + this.hardwarePidControlTypes = hardwarePidControlTypes; + } + + + /** + * Gets the HardwareVersions. + * + * return the HardwareVersions + */ + public HardwareVersion getHardwareVersions() + { + return hardwareVersions; + } + + /** + * Sets the HardwareVersions. + * + * @param hardwareVersions the HardwareVersions + */ + public void setHardwareVersions(HardwareVersion hardwareVersions) + { + this.hardwareVersions = hardwareVersions; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControlType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControlType.java new file mode 100644 index 000000000..b45220633 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwarePidControlType.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_PID_CONTROL_TYPES", database = TangoDB.class) + public class HardwarePidControlType extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinder.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinder.java new file mode 100644 index 000000000..5e48a6a12 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinder.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_WINDERS", database = TangoDB.class) + public class HardwareWinder extends Entity + { + + @Column(name = "MILLIMETER_PER_ROTATION") + private int millimeterPerRotation; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_VERSIONS_GUID", foreignKeyColumnName = "GUID")}) + private HardwareVersion hardwareVersions; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "HARDWARE_WINDER_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private HardwareWinderType hardwareWinderTypes; + + + + + /** + * Gets the MillimeterPerRotation. + * + * return the MillimeterPerRotation + */ + public int getMillimeterPerRotation() + { + return millimeterPerRotation; + } + + /** + * Sets the MillimeterPerRotation. + * + * @param millimeterPerRotation the MillimeterPerRotation + */ + public void setMillimeterPerRotation(int millimeterPerRotation) + { + this.millimeterPerRotation = millimeterPerRotation; + } + + + /** + * Gets the HardwareVersions. + * + * return the HardwareVersions + */ + public HardwareVersion getHardwareVersions() + { + return hardwareVersions; + } + + /** + * Sets the HardwareVersions. + * + * @param hardwareVersions the HardwareVersions + */ + public void setHardwareVersions(HardwareVersion hardwareVersions) + { + this.hardwareVersions = hardwareVersions; + } + + + /** + * Gets the HardwareWinderTypes. + * + * return the HardwareWinderTypes + */ + public HardwareWinderType getHardwareWinderTypes() + { + return hardwareWinderTypes; + } + + /** + * Sets the HardwareWinderTypes. + * + * @param hardwareWinderTypes the HardwareWinderTypes + */ + public void setHardwareWinderTypes(HardwareWinderType hardwareWinderTypes) + { + this.hardwareWinderTypes = hardwareWinderTypes; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinderType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinderType.java new file mode 100644 index 000000000..ba8413632 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/HardwareWinderType.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "HARDWARE_WINDER_TYPES", database = TangoDB.class) + public class HardwareWinderType extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java index 75699cfd7..b86fe96a0 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPack.java @@ -38,6 +38,11 @@ import com.twine.tango.dal.TangoDB; + @ForeignKey(references = { @ForeignKeyReference(columnName = "IDS_PACK_FORMULAS_GUID", foreignKeyColumnName = "GUID")}) + private IdsPackFormula idsPackFormulas; + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "LIQUID_TYPES_GUID", foreignKeyColumnName = "GUID")}) private LiquidType liquidTypes; @@ -154,6 +159,27 @@ import com.twine.tango.dal.TangoDB; } + /** + * Gets the IdsPackFormulas. + * + * return the IdsPackFormulas + */ + public IdsPackFormula getIdsPackFormulas() + { + return idsPackFormulas; + } + + /** + * Sets the IdsPackFormulas. + * + * @param idsPackFormulas the IdsPackFormulas + */ + public void setIdsPackFormulas(IdsPackFormula idsPackFormulas) + { + this.idsPackFormulas = idsPackFormulas; + } + + /** * Gets the LiquidTypes. * diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPackFormula.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPackFormula.java new file mode 100644 index 000000000..bd327c56b --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/IdsPackFormula.java @@ -0,0 +1,120 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "IDS_PACK_FORMULAS", database = TangoDB.class) + public class IdsPackFormula extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "AUTO_CALCULATED") + private Boolean autoCalculated; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the AutoCalculated. + * + * return the AutoCalculated + */ + public Boolean isAutoCalculated() + { + return autoCalculated; + } + + /** + * Sets the AutoCalculated. + * + * @param autoCalculated the AutoCalculated + */ + public void setAutoCalculated(Boolean autoCalculated) + { + this.autoCalculated = autoCalculated; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Job.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Job.java new file mode 100644 index 000000000..b8f776d4f --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Job.java @@ -0,0 +1,458 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "JOBS", database = TangoDB.class) + public class Job extends Entity + { + + @Column(name = "CREATION_DATE") + private DateTime creationDate; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "INTER_SEGMENT_LENGTH") + private Double interSegmentLength; + + + + @Column(name = "ENABLE_INTER_SEGMENT") + private Boolean enableInterSegment; + + + + @Column(name = "ENABLE_LUBRICATION") + private Boolean enableLubrication; + + + + @Column(name = "JOB_INDEX") + private int jobIndex; + + + + @Column(name = "ESTIMATED_DURATION_MILI") + private int estimatedDurationMili; + + + + @Column(name = "HAS_EMBROIDERY_FILE") + private Boolean hasEmbroideryFile; + + + + @Column(name = "EMBROIDERY_FILE_DATA") + private byte[] embroideryFileData; + + + + @Column(name = "EMBROIDERY_FILE_NAME") + private String embroideryFileName; + + + + @Column(name = "EMBROIDERY_JPEG") + private byte[] embroideryJpeg; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "MACHINE_GUID", foreignKeyColumnName = "GUID")}) + private Machine machine; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "RML_GUID", foreignKeyColumnName = "GUID")}) + private Rml rml; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "SPOOL_TYPES_GUID", foreignKeyColumnName = "GUID")}) + private SpoolType spoolTypes; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "USER_GUID", foreignKeyColumnName = "GUID")}) + private User user; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "WINDING_METHODS_GUID", foreignKeyColumnName = "GUID")}) + private WindingMethod windingMethods; + + + + + /** + * Gets the CreationDate. + * + * return the CreationDate + */ + public DateTime getCreationDate() + { + return creationDate; + } + + /** + * Sets the CreationDate. + * + * @param creationDate the CreationDate + */ + public void setCreationDate(DateTime creationDate) + { + this.creationDate = creationDate; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the InterSegmentLength. + * + * return the InterSegmentLength + */ + public Double getInterSegmentLength() + { + return interSegmentLength; + } + + /** + * Sets the InterSegmentLength. + * + * @param interSegmentLength the InterSegmentLength + */ + public void setInterSegmentLength(Double interSegmentLength) + { + this.interSegmentLength = interSegmentLength; + } + + + /** + * Gets the EnableInterSegment. + * + * return the EnableInterSegment + */ + public Boolean isEnableInterSegment() + { + return enableInterSegment; + } + + /** + * Sets the EnableInterSegment. + * + * @param enableInterSegment the EnableInterSegment + */ + public void setEnableInterSegment(Boolean enableInterSegment) + { + this.enableInterSegment = enableInterSegment; + } + + + /** + * Gets the EnableLubrication. + * + * return the EnableLubrication + */ + public Boolean isEnableLubrication() + { + return enableLubrication; + } + + /** + * Sets the EnableLubrication. + * + * @param enableLubrication the EnableLubrication + */ + public void setEnableLubrication(Boolean enableLubrication) + { + this.enableLubrication = enableLubrication; + } + + + /** + * Gets the JobIndex. + * + * return the JobIndex + */ + public int getJobIndex() + { + return jobIndex; + } + + /** + * Sets the JobIndex. + * + * @param jobIndex the JobIndex + */ + public void setJobIndex(int jobIndex) + { + this.jobIndex = jobIndex; + } + + + /** + * Gets the EstimatedDurationMili. + * + * return the EstimatedDurationMili + */ + public int getEstimatedDurationMili() + { + return estimatedDurationMili; + } + + /** + * Sets the EstimatedDurationMili. + * + * @param estimatedDurationMili the EstimatedDurationMili + */ + public void setEstimatedDurationMili(int estimatedDurationMili) + { + this.estimatedDurationMili = estimatedDurationMili; + } + + + /** + * Gets the HasEmbroideryFile. + * + * return the HasEmbroideryFile + */ + public Boolean isHasEmbroideryFile() + { + return hasEmbroideryFile; + } + + /** + * Sets the HasEmbroideryFile. + * + * @param hasEmbroideryFile the HasEmbroideryFile + */ + public void setHasEmbroideryFile(Boolean hasEmbroideryFile) + { + this.hasEmbroideryFile = hasEmbroideryFile; + } + + + /** + * Gets the EmbroideryFileData. + * + * return the EmbroideryFileData + */ + public byte[] getEmbroideryFileData() + { + return embroideryFileData; + } + + /** + * Sets the EmbroideryFileData. + * + * @param embroideryFileData the EmbroideryFileData + */ + public void setEmbroideryFileData(byte[] embroideryFileData) + { + this.embroideryFileData = embroideryFileData; + } + + + /** + * Gets the EmbroideryFileName. + * + * return the EmbroideryFileName + */ + public String getEmbroideryFileName() + { + return embroideryFileName; + } + + /** + * Sets the EmbroideryFileName. + * + * @param embroideryFileName the EmbroideryFileName + */ + public void setEmbroideryFileName(String embroideryFileName) + { + this.embroideryFileName = embroideryFileName; + } + + + /** + * Gets the EmbroideryJpeg. + * + * return the EmbroideryJpeg + */ + public byte[] getEmbroideryJpeg() + { + return embroideryJpeg; + } + + /** + * Sets the EmbroideryJpeg. + * + * @param embroideryJpeg the EmbroideryJpeg + */ + public void setEmbroideryJpeg(byte[] embroideryJpeg) + { + this.embroideryJpeg = embroideryJpeg; + } + + + /** + * Gets the Machine. + * + * return the Machine + */ + public Machine getMachine() + { + return machine; + } + + /** + * Sets the Machine. + * + * @param machine the Machine + */ + public void setMachine(Machine machine) + { + this.machine = machine; + } + + + /** + * Gets the Rml. + * + * return the Rml + */ + public Rml getRml() + { + return rml; + } + + /** + * Sets the Rml. + * + * @param rml the Rml + */ + public void setRml(Rml rml) + { + this.rml = rml; + } + + + /** + * Gets the SpoolTypes. + * + * return the SpoolTypes + */ + public SpoolType getSpoolTypes() + { + return spoolTypes; + } + + /** + * Sets the SpoolTypes. + * + * @param spoolTypes the SpoolTypes + */ + public void setSpoolTypes(SpoolType spoolTypes) + { + this.spoolTypes = spoolTypes; + } + + + /** + * Gets the User. + * + * return the User + */ + public User getUser() + { + return user; + } + + /** + * Sets the User. + * + * @param user the User + */ + public void setUser(User user) + { + this.user = user; + } + + + /** + * Gets the WindingMethods. + * + * return the WindingMethods + */ + public WindingMethod getWindingMethods() + { + return windingMethods; + } + + /** + * Sets the WindingMethods. + * + * @param windingMethods the WindingMethods + */ + public void setWindingMethods(WindingMethod windingMethods) + { + this.windingMethods = windingMethods; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/JobRun.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/JobRun.java new file mode 100644 index 000000000..a692ed642 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/JobRun.java @@ -0,0 +1,120 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "JOB_RUNS", database = TangoDB.class) + public class JobRun extends Entity + { + + @Column(name = "START_DATE") + private DateTime startDate; + + + + @Column(name = "END_DATE") + private DateTime endDate; + + + + @Column(name = "SUCCESSFUL") + private Boolean successful; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "JOB_GUID", foreignKeyColumnName = "GUID")}) + private Job job; + + + + + /** + * Gets the StartDate. + * + * return the StartDate + */ + public DateTime getStartDate() + { + return startDate; + } + + /** + * Sets the StartDate. + * + * @param startDate the StartDate + */ + public void setStartDate(DateTime startDate) + { + this.startDate = startDate; + } + + + /** + * Gets the EndDate. + * + * return the EndDate + */ + public DateTime getEndDate() + { + return endDate; + } + + /** + * Sets the EndDate. + * + * @param endDate the EndDate + */ + public void setEndDate(DateTime endDate) + { + this.endDate = endDate; + } + + + /** + * Gets the Successful. + * + * return the Successful + */ + public Boolean isSuccessful() + { + return successful; + } + + /** + * Sets the Successful. + * + * @param successful the Successful + */ + public void setSuccessful(Boolean successful) + { + this.successful = successful; + } + + + /** + * Gets the Job. + * + * return the Job + */ + public Job getJob() + { + return job; + } + + /** + * Sets the Job. + * + * @param job the Job + */ + public void setJob(Job job) + { + this.job = job; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java index 660e1e188..5f0273fc0 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Machine.java @@ -28,6 +28,16 @@ import com.twine.tango.dal.TangoDB; + @Column(name = "EXTERNAL_BRIDGE_PASSWORD") + private String externalBridgePassword; + + + + @Column(name = "SYNCHED") + private Boolean synched; + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "CONFIGURATION_GUID", foreignKeyColumnName = "GUID")}) private Configuration configuration; @@ -107,6 +117,48 @@ import com.twine.tango.dal.TangoDB; } + /** + * Gets the ExternalBridgePassword. + * + * return the ExternalBridgePassword + */ + public String getExternalBridgePassword() + { + return externalBridgePassword; + } + + /** + * Sets the ExternalBridgePassword. + * + * @param externalBridgePassword the ExternalBridgePassword + */ + public void setExternalBridgePassword(String externalBridgePassword) + { + this.externalBridgePassword = externalBridgePassword; + } + + + /** + * Gets the Synched. + * + * return the Synched + */ + public Boolean isSynched() + { + return synched; + } + + /** + * Sets the Synched. + * + * @param synched the Synched + */ + public void setSynched(Boolean synched) + { + this.synched = synched; + } + + /** * Gets the Configuration. * diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachineStudioVersion.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachineStudioVersion.java new file mode 100644 index 000000000..1eb254fa6 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachineStudioVersion.java @@ -0,0 +1,120 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "MACHINE_STUDIO_VERSIONS", database = TangoDB.class) + public class MachineStudioVersion extends Entity + { + + @Column(name = "VERSION") + private String version; + + + + @Column(name = "FTP_FILE_PATH") + private String ftpFilePath; + + + + @Column(name = "COMMENTS") + private String comments; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "USER_GUID", foreignKeyColumnName = "GUID")}) + private User user; + + + + + /** + * Gets the Version. + * + * return the Version + */ + public String getVersion() + { + return version; + } + + /** + * Sets the Version. + * + * @param version the Version + */ + public void setVersion(String version) + { + this.version = version; + } + + + /** + * Gets the FtpFilePath. + * + * return the FtpFilePath + */ + public String getFtpFilePath() + { + return ftpFilePath; + } + + /** + * Sets the FtpFilePath. + * + * @param ftpFilePath the FtpFilePath + */ + public void setFtpFilePath(String ftpFilePath) + { + this.ftpFilePath = ftpFilePath; + } + + + /** + * Gets the Comments. + * + * return the Comments + */ + public String getComments() + { + return comments; + } + + /** + * Sets the Comments. + * + * @param comments the Comments + */ + public void setComments(String comments) + { + this.comments = comments; + } + + + /** + * Gets the User. + * + * return the User + */ + public User getUser() + { + return user; + } + + /** + * Sets the User. + * + * @param user the User + */ + public void setUser(User user) + { + this.user = user; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java index c60a46ef2..006711a50 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MachinesEvent.java @@ -13,6 +13,11 @@ import com.twine.tango.dal.TangoDB; public class MachinesEvent extends Entity { + @Column(name = "HOST_NAME") + private String hostName; + + + @Column(name = "DATE_TIME") private DateTime dateTime; @@ -39,6 +44,27 @@ import com.twine.tango.dal.TangoDB; + /** + * Gets the HostName. + * + * return the HostName + */ + public String getHostName() + { + return hostName; + } + + /** + * Sets the HostName. + * + * @param hostName the HostName + */ + public void setHostName(String hostName) + { + this.hostName = hostName; + } + + /** * Gets the DateTime. * diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MediaColor.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MediaColor.java index 1410a87e5..26e1a8ccb 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MediaColor.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/MediaColor.java @@ -13,30 +13,108 @@ import com.twine.tango.dal.TangoDB; public class MediaColor extends Entity { - @Column(name = "COLOR") - private int color; + @Column(name = "NAME") + private String name; + + @Column(name = "L") + private Double l; + + + + @Column(name = "A") + private Double a; + + + + @Column(name = "B") + private Double b; + + + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the L. + * + * return the L + */ + public Double getL() + { + return l; + } + + /** + * Sets the L. + * + * @param l the L + */ + public void setL(Double l) + { + this.l = l; + } + + + /** + * Gets the A. + * + * return the A + */ + public Double getA() + { + return a; + } + /** + * Sets the A. + * + * @param a the A + */ + public void setA(Double a) + { + this.a = a; + } + /** - * Gets the Color. + * Gets the B. * - * return the Color + * return the B */ - public int getColor() + public Double getB() { - return color; + return b; } /** - * Sets the Color. + * Sets the B. * - * @param color the Color + * @param b the B */ - public void setColor(int color) + public void setB(Double b) { - this.color = color; + this.b = b; } } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTable.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTable.java new file mode 100644 index 000000000..2cf2b0bc0 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTable.java @@ -0,0 +1,484 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "PROCESS_PARAMETERS_TABLES", database = TangoDB.class) + public class ProcessParametersTable extends Entity + { + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DYEING_SPEED") + private Double dyeingSpeed; + + + + @Column(name = "MIXER_TEMP") + private Double mixerTemp; + + + + @Column(name = "DRYER_BUFFER_LENGTH") + private Double dryerBufferLength; + + + + @Column(name = "MIN_INK_UPTAKE") + private Double minInkUptake; + + + + @Column(name = "HEAD_ZONE1_TEMP") + private Double headZone1Temp; + + + + @Column(name = "DRYER_ZONE1_TEMP") + private Double dryerZone1Temp; + + + + @Column(name = "FEEDER_TENSION") + private Double feederTension; + + + + @Column(name = "DRYER_ZONE2_TEMP") + private Double dryerZone2Temp; + + + + @Column(name = "HEAD_ZONE2_TEMP") + private Double headZone2Temp; + + + + @Column(name = "PULLER_TENSION") + private Double pullerTension; + + + + @Column(name = "HEAD_ZONE3_TEMP") + private Double headZone3Temp; + + + + @Column(name = "DRYER_ZONE3_TEMP") + private Double dryerZone3Temp; + + + + @Column(name = "WINDER_TENSION") + private Double winderTension; + + + + @Column(name = "HEAD_AIR_FLOW") + private Double headAirFlow; + + + + @Column(name = "DRYER_AIR_FLOW") + private Double dryerAirFlow; + + + + @Column(name = "TABLE_INDEX") + private int tableIndex; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "PROCESS_PARAMETERS_TABLES_GROUPS_GUID", foreignKeyColumnName = "GUID")}) + private ProcessParametersTablesGroup processParametersTablesGroups; + + + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the DyeingSpeed. + * + * return the DyeingSpeed + */ + public Double getDyeingSpeed() + { + return dyeingSpeed; + } + + /** + * Sets the DyeingSpeed. + * + * @param dyeingSpeed the DyeingSpeed + */ + public void setDyeingSpeed(Double dyeingSpeed) + { + this.dyeingSpeed = dyeingSpeed; + } + + + /** + * Gets the MixerTemp. + * + * return the MixerTemp + */ + public Double getMixerTemp() + { + return mixerTemp; + } + + /** + * Sets the MixerTemp. + * + * @param mixerTemp the MixerTemp + */ + public void setMixerTemp(Double mixerTemp) + { + this.mixerTemp = mixerTemp; + } + + + /** + * Gets the DryerBufferLength. + * + * return the DryerBufferLength + */ + public Double getDryerBufferLength() + { + return dryerBufferLength; + } + + /** + * Sets the DryerBufferLength. + * + * @param dryerBufferLength the DryerBufferLength + */ + public void setDryerBufferLength(Double dryerBufferLength) + { + this.dryerBufferLength = dryerBufferLength; + } + + + /** + * Gets the MinInkUptake. + * + * return the MinInkUptake + */ + public Double getMinInkUptake() + { + return minInkUptake; + } + + /** + * Sets the MinInkUptake. + * + * @param minInkUptake the MinInkUptake + */ + public void setMinInkUptake(Double minInkUptake) + { + this.minInkUptake = minInkUptake; + } + + + /** + * Gets the HeadZone1Temp. + * + * return the HeadZone1Temp + */ + public Double getHeadZone1Temp() + { + return headZone1Temp; + } + + /** + * Sets the HeadZone1Temp. + * + * @param headZone1Temp the HeadZone1Temp + */ + public void setHeadZone1Temp(Double headZone1Temp) + { + this.headZone1Temp = headZone1Temp; + } + + + /** + * Gets the DryerZone1Temp. + * + * return the DryerZone1Temp + */ + public Double getDryerZone1Temp() + { + return dryerZone1Temp; + } + + /** + * Sets the DryerZone1Temp. + * + * @param dryerZone1Temp the DryerZone1Temp + */ + public void setDryerZone1Temp(Double dryerZone1Temp) + { + this.dryerZone1Temp = dryerZone1Temp; + } + + + /** + * Gets the FeederTension. + * + * return the FeederTension + */ + public Double getFeederTension() + { + return feederTension; + } + + /** + * Sets the FeederTension. + * + * @param feederTension the FeederTension + */ + public void setFeederTension(Double feederTension) + { + this.feederTension = feederTension; + } + + + /** + * Gets the DryerZone2Temp. + * + * return the DryerZone2Temp + */ + public Double getDryerZone2Temp() + { + return dryerZone2Temp; + } + + /** + * Sets the DryerZone2Temp. + * + * @param dryerZone2Temp the DryerZone2Temp + */ + public void setDryerZone2Temp(Double dryerZone2Temp) + { + this.dryerZone2Temp = dryerZone2Temp; + } + + + /** + * Gets the HeadZone2Temp. + * + * return the HeadZone2Temp + */ + public Double getHeadZone2Temp() + { + return headZone2Temp; + } + + /** + * Sets the HeadZone2Temp. + * + * @param headZone2Temp the HeadZone2Temp + */ + public void setHeadZone2Temp(Double headZone2Temp) + { + this.headZone2Temp = headZone2Temp; + } + + + /** + * Gets the PullerTension. + * + * return the PullerTension + */ + public Double getPullerTension() + { + return pullerTension; + } + + /** + * Sets the PullerTension. + * + * @param pullerTension the PullerTension + */ + public void setPullerTension(Double pullerTension) + { + this.pullerTension = pullerTension; + } + + + /** + * Gets the HeadZone3Temp. + * + * return the HeadZone3Temp + */ + public Double getHeadZone3Temp() + { + return headZone3Temp; + } + + /** + * Sets the HeadZone3Temp. + * + * @param headZone3Temp the HeadZone3Temp + */ + public void setHeadZone3Temp(Double headZone3Temp) + { + this.headZone3Temp = headZone3Temp; + } + + + /** + * Gets the DryerZone3Temp. + * + * return the DryerZone3Temp + */ + public Double getDryerZone3Temp() + { + return dryerZone3Temp; + } + + /** + * Sets the DryerZone3Temp. + * + * @param dryerZone3Temp the DryerZone3Temp + */ + public void setDryerZone3Temp(Double dryerZone3Temp) + { + this.dryerZone3Temp = dryerZone3Temp; + } + + + /** + * Gets the WinderTension. + * + * return the WinderTension + */ + public Double getWinderTension() + { + return winderTension; + } + + /** + * Sets the WinderTension. + * + * @param winderTension the WinderTension + */ + public void setWinderTension(Double winderTension) + { + this.winderTension = winderTension; + } + + + /** + * Gets the HeadAirFlow. + * + * return the HeadAirFlow + */ + public Double getHeadAirFlow() + { + return headAirFlow; + } + + /** + * Sets the HeadAirFlow. + * + * @param headAirFlow the HeadAirFlow + */ + public void setHeadAirFlow(Double headAirFlow) + { + this.headAirFlow = headAirFlow; + } + + + /** + * Gets the DryerAirFlow. + * + * return the DryerAirFlow + */ + public Double getDryerAirFlow() + { + return dryerAirFlow; + } + + /** + * Sets the DryerAirFlow. + * + * @param dryerAirFlow the DryerAirFlow + */ + public void setDryerAirFlow(Double dryerAirFlow) + { + this.dryerAirFlow = dryerAirFlow; + } + + + /** + * Gets the TableIndex. + * + * return the TableIndex + */ + public int getTableIndex() + { + return tableIndex; + } + + /** + * Sets the TableIndex. + * + * @param tableIndex the TableIndex + */ + public void setTableIndex(int tableIndex) + { + this.tableIndex = tableIndex; + } + + + /** + * Gets the ProcessParametersTablesGroups. + * + * return the ProcessParametersTablesGroups + */ + public ProcessParametersTablesGroup getProcessParametersTablesGroups() + { + return processParametersTablesGroups; + } + + /** + * Sets the ProcessParametersTablesGroups. + * + * @param processParametersTablesGroups the ProcessParametersTablesGroups + */ + public void setProcessParametersTablesGroups(ProcessParametersTablesGroup processParametersTablesGroups) + { + this.processParametersTablesGroups = processParametersTablesGroups; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTablesGroup.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTablesGroup.java new file mode 100644 index 000000000..734847f71 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/ProcessParametersTablesGroup.java @@ -0,0 +1,120 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "PROCESS_PARAMETERS_TABLES_GROUPS", database = TangoDB.class) + public class ProcessParametersTablesGroup extends Entity + { + + @Column(name = "NAME") + private String name; + + + + @Column(name = "ACTIVE") + private Boolean active; + + + + @Column(name = "SAVE_DATE") + private DateTime saveDate; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "RML_GUID", foreignKeyColumnName = "GUID")}) + private Rml rml; + + + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Active. + * + * return the Active + */ + public Boolean isActive() + { + return active; + } + + /** + * Sets the Active. + * + * @param active the Active + */ + public void setActive(Boolean active) + { + this.active = active; + } + + + /** + * Gets the SaveDate. + * + * return the SaveDate + */ + public DateTime getSaveDate() + { + return saveDate; + } + + /** + * Sets the SaveDate. + * + * @param saveDate the SaveDate + */ + public void setSaveDate(DateTime saveDate) + { + this.saveDate = saveDate; + } + + + /** + * Gets the Rml. + * + * return the Rml + */ + public Rml getRml() + { + return rml; + } + + /** + * Sets the Rml. + * + * @param rml the Rml + */ + public void setRml(Rml rml) + { + this.rml = rml; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java index d796ee690..afaf75389 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Rml.java @@ -23,6 +23,11 @@ import com.twine.tango.dal.TangoDB; + @Column(name = "CODE") + private int code; + + + @Column(name = "FIBER_SIZE") private Double fiberSize; @@ -151,6 +156,27 @@ import com.twine.tango.dal.TangoDB; } + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + /** * Gets the FiberSize. * diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Segment.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Segment.java new file mode 100644 index 000000000..516dbada9 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/Segment.java @@ -0,0 +1,120 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "SEGMENTS", database = TangoDB.class) + public class Segment extends Entity + { + + @Column(name = "NAME") + private String name; + + + + @Column(name = "LENGTH") + private Double length; + + + + @Column(name = "SEGMENT_INDEX") + private int segmentIndex; + + + + @ForeignKey(references = { @ForeignKeyReference(columnName = "JOB_GUID", foreignKeyColumnName = "GUID")}) + private Job job; + + + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Length. + * + * return the Length + */ + public Double getLength() + { + return length; + } + + /** + * Sets the Length. + * + * @param length the Length + */ + public void setLength(Double length) + { + this.length = length; + } + + + /** + * Gets the SegmentIndex. + * + * return the SegmentIndex + */ + public int getSegmentIndex() + { + return segmentIndex; + } + + /** + * Sets the SegmentIndex. + * + * @param segmentIndex the SegmentIndex + */ + public void setSegmentIndex(int segmentIndex) + { + this.segmentIndex = segmentIndex; + } + + + /** + * Gets the Job. + * + * return the Job + */ + public Job getJob() + { + return job; + } + + /** + * Sets the Job. + * + * @param job the Job + */ + public void setJob(Job job) + { + this.job = job; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/SpoolType.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/SpoolType.java new file mode 100644 index 000000000..983c25a25 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/SpoolType.java @@ -0,0 +1,224 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "SPOOL_TYPES", database = TangoDB.class) + public class SpoolType extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "LENGTH") + private Double length; + + + + @Column(name = "WEIGHT") + private Double weight; + + + + @Column(name = "DIAMETER") + private Double diameter; + + + + @Column(name = "START_OFFSET_PULSES") + private int startOffsetPulses; + + + + @Column(name = "BACKING_RATE") + private int backingRate; + + + + @Column(name = "SEGMENT_OFFSET_PULSES") + private int segmentOffsetPulses; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Length. + * + * return the Length + */ + public Double getLength() + { + return length; + } + + /** + * Sets the Length. + * + * @param length the Length + */ + public void setLength(Double length) + { + this.length = length; + } + + + /** + * Gets the Weight. + * + * return the Weight + */ + public Double getWeight() + { + return weight; + } + + /** + * Sets the Weight. + * + * @param weight the Weight + */ + public void setWeight(Double weight) + { + this.weight = weight; + } + + + /** + * Gets the Diameter. + * + * return the Diameter + */ + public Double getDiameter() + { + return diameter; + } + + /** + * Sets the Diameter. + * + * @param diameter the Diameter + */ + public void setDiameter(Double diameter) + { + this.diameter = diameter; + } + + + /** + * Gets the StartOffsetPulses. + * + * return the StartOffsetPulses + */ + public int getStartOffsetPulses() + { + return startOffsetPulses; + } + + /** + * Sets the StartOffsetPulses. + * + * @param startOffsetPulses the StartOffsetPulses + */ + public void setStartOffsetPulses(int startOffsetPulses) + { + this.startOffsetPulses = startOffsetPulses; + } + + + /** + * Gets the BackingRate. + * + * return the BackingRate + */ + public int getBackingRate() + { + return backingRate; + } + + /** + * Sets the BackingRate. + * + * @param backingRate the BackingRate + */ + public void setBackingRate(int backingRate) + { + this.backingRate = backingRate; + } + + + /** + * Gets the SegmentOffsetPulses. + * + * return the SegmentOffsetPulses + */ + public int getSegmentOffsetPulses() + { + return segmentOffsetPulses; + } + + /** + * Sets the SegmentOffsetPulses. + * + * @param segmentOffsetPulses the SegmentOffsetPulses + */ + public void setSegmentOffsetPulses(int segmentOffsetPulses) + { + this.segmentOffsetPulses = segmentOffsetPulses; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechController.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechController.java new file mode 100644 index 000000000..5fcc18b52 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechController.java @@ -0,0 +1,172 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "TECH_CONTROLLERS", database = TangoDB.class) + public class TechController extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "MIN") + private Double min; + + + + @Column(name = "MAX") + private Double max; + + + + @Column(name = "UNITS") + private String units; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the Min. + * + * return the Min + */ + public Double getMin() + { + return min; + } + + /** + * Sets the Min. + * + * @param min the Min + */ + public void setMin(Double min) + { + this.min = min; + } + + + /** + * Gets the Max. + * + * return the Max + */ + public Double getMax() + { + return max; + } + + /** + * Sets the Max. + * + * @param max the Max + */ + public void setMax(Double max) + { + this.max = max; + } + + + /** + * Gets the Units. + * + * return the Units + */ + public String getUnits() + { + return units; + } + + /** + * Sets the Units. + * + * @param units the Units + */ + public void setUnits(String units) + { + this.units = units; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechDispenser.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechDispenser.java new file mode 100644 index 000000000..72f540afa --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechDispenser.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "TECH_DISPENSERS", database = TangoDB.class) + public class TechDispenser extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechIo.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechIo.java new file mode 100644 index 000000000..a77e15a76 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechIo.java @@ -0,0 +1,198 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "TECH_IOS", database = TangoDB.class) + public class TechIo extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "PORT") + private int port; + + + + @Column(name = "TYPE") + private int type; + + + + @Column(name = "MIN") + private Double min; + + + + @Column(name = "MAX") + private Double max; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the Port. + * + * return the Port + */ + public int getPort() + { + return port; + } + + /** + * Sets the Port. + * + * @param port the Port + */ + public void setPort(int port) + { + this.port = port; + } + + + /** + * Gets the Type. + * + * return the Type + */ + public int getType() + { + return type; + } + + /** + * Sets the Type. + * + * @param type the Type + */ + public void setType(int type) + { + this.type = type; + } + + + /** + * Gets the Min. + * + * return the Min + */ + public Double getMin() + { + return min; + } + + /** + * Sets the Min. + * + * @param min the Min + */ + public void setMin(Double min) + { + this.min = min; + } + + + /** + * Gets the Max. + * + * return the Max + */ + public Double getMax() + { + return max; + } + + /** + * Sets the Max. + * + * @param max the Max + */ + public void setMax(Double max) + { + this.max = max; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMonitor.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMonitor.java new file mode 100644 index 000000000..123adb157 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMonitor.java @@ -0,0 +1,250 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "TECH_MONITORS", database = TangoDB.class) + public class TechMonitor extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "MIN") + private Double min; + + + + @Column(name = "MAX") + private Double max; + + + + @Column(name = "UNITS") + private String units; + + + + @Column(name = "POINTS_PER_FRAME") + private int pointsPerFrame; + + + + @Column(name = "MULTI_CHANNEL") + private Boolean multiChannel; + + + + @Column(name = "CHANNEL_COUNT") + private int channelCount; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the Min. + * + * return the Min + */ + public Double getMin() + { + return min; + } + + /** + * Sets the Min. + * + * @param min the Min + */ + public void setMin(Double min) + { + this.min = min; + } + + + /** + * Gets the Max. + * + * return the Max + */ + public Double getMax() + { + return max; + } + + /** + * Sets the Max. + * + * @param max the Max + */ + public void setMax(Double max) + { + this.max = max; + } + + + /** + * Gets the Units. + * + * return the Units + */ + public String getUnits() + { + return units; + } + + /** + * Sets the Units. + * + * @param units the Units + */ + public void setUnits(String units) + { + this.units = units; + } + + + /** + * Gets the PointsPerFrame. + * + * return the PointsPerFrame + */ + public int getPointsPerFrame() + { + return pointsPerFrame; + } + + /** + * Sets the PointsPerFrame. + * + * @param pointsPerFrame the PointsPerFrame + */ + public void setPointsPerFrame(int pointsPerFrame) + { + this.pointsPerFrame = pointsPerFrame; + } + + + /** + * Gets the MultiChannel. + * + * return the MultiChannel + */ + public Boolean isMultiChannel() + { + return multiChannel; + } + + /** + * Sets the MultiChannel. + * + * @param multiChannel the MultiChannel + */ + public void setMultiChannel(Boolean multiChannel) + { + this.multiChannel = multiChannel; + } + + + /** + * Gets the ChannelCount. + * + * return the ChannelCount + */ + public int getChannelCount() + { + return channelCount; + } + + /** + * Sets the ChannelCount. + * + * @param channelCount the ChannelCount + */ + public void setChannelCount(int channelCount) + { + this.channelCount = channelCount; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMotor.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMotor.java new file mode 100644 index 000000000..86da1ddfe --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechMotor.java @@ -0,0 +1,120 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "TECH_MOTORS", database = TangoDB.class) + public class TechMotor extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + @Column(name = "SUPPORTS_HOMING") + private Boolean supportsHoming; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + + /** + * Gets the SupportsHoming. + * + * return the SupportsHoming + */ + public Boolean isSupportsHoming() + { + return supportsHoming; + } + + /** + * Sets the SupportsHoming. + * + * @param supportsHoming the SupportsHoming + */ + public void setSupportsHoming(Boolean supportsHoming) + { + this.supportsHoming = supportsHoming; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechValf.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechValf.java new file mode 100644 index 000000000..c069ec3d2 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/TechValf.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "TECH_VALVES", database = TangoDB.class) + public class TechValf extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/WindingMethod.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/WindingMethod.java new file mode 100644 index 000000000..2ac62902f --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/entities/WindingMethod.java @@ -0,0 +1,94 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Column; +import com.raizlabs.android.dbflow.annotation.ForeignKey; +import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; +import com.raizlabs.android.dbflow.annotation.Table; +import org.joda.time.DateTime; +import com.twine.tango.dal.Entity; +import com.twine.tango.dal.TangoDB; + + + @Table(name = "WINDING_METHODS", database = TangoDB.class) + public class WindingMethod extends Entity + { + + @Column(name = "CODE") + private int code; + + + + @Column(name = "NAME") + private String name; + + + + @Column(name = "DESCRIPTION") + private String description; + + + + + /** + * Gets the Code. + * + * return the Code + */ + public int getCode() + { + return code; + } + + /** + * Sets the Code. + * + * @param code the Code + */ + public void setCode(int code) + { + this.code = code; + } + + + /** + * Gets the Name. + * + * return the Name + */ + public String getName() + { + return name; + } + + /** + * Sets the Name. + * + * @param name the Name + */ + public void setName(String name) + { + this.name = name; + } + + + /** + * Gets the Description. + * + * return the Description + */ + public String getDescription() + { + return description; + } + + /** + * Sets the Description. + * + * @param description the Description + */ + public void setDescription(String description) + { + this.description = description; + } + + } diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ActionTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ActionTypes.java index 8233a0b88..5677a84c7 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ActionTypes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ActionTypes.java @@ -5,11 +5,20 @@ import com.twine.tango.core.DescriptionAnnotation; public enum ActionTypes { - @DescriptionAnnotation(description = "Some description") - Action1(1), + @DescriptionAnnotation(description = "Prevents the user from executing jobs") + PreventJobExecution(0), - @DescriptionAnnotation(description = "Some action 2 description") - Action2(2), + @DescriptionAnnotation(description = "Abort a running job if is in progress") + AbortRunningJob(1), + + @DescriptionAnnotation(description = "Stops the heaters funcionality") + StopHeaters(2), + + @DescriptionAnnotation(description = "System Shutdown") + OverallPowerDown(3), + + @DescriptionAnnotation(description = "Displays a graceful notification to the user") + SoftVisualNotification(4), ; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ColorSpaces.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ColorSpaces.java new file mode 100644 index 000000000..75985ebd6 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/ColorSpaces.java @@ -0,0 +1,31 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum ColorSpaces +{ + + @DescriptionAnnotation(description = "Volume") + Volume(0), + + @DescriptionAnnotation(description = "RGB") + RGB(1), + + @DescriptionAnnotation(description = "CMYK") + CMYK(2), + + @DescriptionAnnotation(description = "LAB") + LAB(3), + + @DescriptionAnnotation(description = "PANTON") + PANTON(4), + + ; + + private int value; + + ColorSpaces(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/DispenserTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/DispenserTypes.java index dc6ccf001..0bca3db74 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/DispenserTypes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/DispenserTypes.java @@ -5,8 +5,8 @@ import com.twine.tango.core.DescriptionAnnotation; public enum DispenserTypes { - @DescriptionAnnotation(description = "Dispenser 1") - Dispenser1(1), + @DescriptionAnnotation(description = "Standard Dispenser") + StandardDispenser(0), ; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypes.java index 06ecf3f4f..f23db3fa1 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypes.java @@ -5,11 +5,107 @@ import com.twine.tango.core.DescriptionAnnotation; public enum EventTypes { - @DescriptionAnnotation(description = "Some event description") - Event1(1), + @DescriptionAnnotation(description = "Dancer overshot / Thread break sensor") + ThreadBreak(0), - @DescriptionAnnotation(description = "Some event 2 description") - Event2(2), + @DescriptionAnnotation(description = "Dancer not stable or got down") + ThreadTensionControlFailure(1), + + @DescriptionAnnotation(description = "Source thread counter (counter shall be reset upon loading a new cone)") + FeederConeInsufficiant(2), + + @DescriptionAnnotation(description = "Winder Controller") + WinderGeneralError(3), + + @DescriptionAnnotation(description = "SW_SPOOL_EXISTS='0' or Winder Controller") + WinderConeNotExists(4), + + @DescriptionAnnotation(description = "Motor Stall") + ThreadFeedingGeneralError(5), + + @DescriptionAnnotation(description = "Dyeing Head Thermometers") + DyeingHeadOverTemperature(6), + + @DescriptionAnnotation(description = "Current sense in all heaters is 0") + DHThermalCutoff(7), + + @DescriptionAnnotation(description = "Dryer Thermometers") + DryerOverTemperature(8), + + @DescriptionAnnotation(description = "Current sense in all heaters is 0") + DryerThermalCutoff(9), + + @DescriptionAnnotation(description = "Dyeing head Heaters failure (Under /Over current)") + DyeingHeadHeatersCurrentOutOfRange(10), + + @DescriptionAnnotation(description = "Dryer Heaters failure (Under /Over current)") + DryerHeatersCurrentOutOfRange(11), + + @DescriptionAnnotation(description = "Covers Tampers") + DryerDHeadCoverOpen(12), + + @DescriptionAnnotation(description = "Pressure sensor Purex or Air flow sensor (Flap)") + AirFilterClogged(13), + + @DescriptionAnnotation(description = "Micro-switch") + AirFilterNotInstalled(14), + + @DescriptionAnnotation(description = "blower techo. Feedback, air flap") + WHSFailure(15), + + @DescriptionAnnotation(description = "Check container float sensor") + WasteContainerIsAlmostFull(16), + + @DescriptionAnnotation(description = "Check container float sensor") + WasteContainerIsFull(17), + + @DescriptionAnnotation(description = "Dispenser position sensor/s") + DispenserEmpty(18), + + @DescriptionAnnotation(description = "Check if job can be executor refill needed") + DispenserLowLevel(19), + + @DescriptionAnnotation(description = "Cartridge float displacement") + DispenserRefillFailure(20), + + @DescriptionAnnotation(description = "Mid-Tank ") + MidTankEmpty(21), + + @DescriptionAnnotation(description = "Cartridge float sensor") + MidTankLowLevel(22), + + @DescriptionAnnotation(description = "Cartridge float sensor or Additional micro-switch") + MidTankNotInPlace(23), + + @DescriptionAnnotation(description = "System BIT Failure") + SystemBITFail(24), + + @DescriptionAnnotation(description = "Internal Thermostat") + GeneralInternalOverTemperature(25), + + @DescriptionAnnotation(description = "Covers Tampers") + MachineCoverOpen(26), + + @DescriptionAnnotation(description = "EPB") + EmergencyPushButtonPressed(27), + + @DescriptionAnnotation(description = "System General Error") + SystemGeneralError(28), + + @DescriptionAnnotation(description = "Occurs a request has been sent to the machine or external bridge service") + RequestSent(29), + + @DescriptionAnnotation(description = "Occures when a response has been received") + ResponseReceived(30), + + @DescriptionAnnotation(description = "Occures when a request to the machine has failed") + RequestFailed(31), + + @DescriptionAnnotation(description = "Occures when the application has encountered some error") + ApplicationException(32), + + @DescriptionAnnotation(description = "General application event logs") + ApplicationInformation(34), ; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesCategories.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesCategories.java new file mode 100644 index 000000000..4395e4ed6 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesCategories.java @@ -0,0 +1,28 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum EventTypesCategories +{ + + @DescriptionAnnotation(description = "General information") + Info(0), + + @DescriptionAnnotation(description = "Hardware or software warning") + Warning(1), + + @DescriptionAnnotation(description = "Hardware or software error") + Error(2), + + @DescriptionAnnotation(description = "Critical hardware or software error") + Critical(3), + + ; + + private int value; + + EventTypesCategories(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesGroups.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesGroups.java new file mode 100644 index 000000000..1fe1780d9 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/EventTypesGroups.java @@ -0,0 +1,37 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum EventTypesGroups +{ + + @DescriptionAnnotation(description = "Thread Feeding System") + ThreadFeedingSystem(0), + + @DescriptionAnnotation(description = "DH & Dryer") + DHDryer(1), + + @DescriptionAnnotation(description = "Waste Handling System (WHS)") + WasteHandlingSystem(2), + + @DescriptionAnnotation(description = "Ink Delivery System (IDS)") + InkDeliverySystem(3), + + @DescriptionAnnotation(description = "General Hardware") + GeneralHardware(4), + + @DescriptionAnnotation(description = "Messages exchange to and from the machine") + Transport(5), + + @DescriptionAnnotation(description = "Application related events") + Application(6), + + ; + + private int value; + + EventTypesGroups(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareDancerTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareDancerTypes.java new file mode 100644 index 000000000..8a5107a3a --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareDancerTypes.java @@ -0,0 +1,25 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum HardwareDancerTypes +{ + + @DescriptionAnnotation(description = "Middle Dancer") + MiddleDancer(1), + + @DescriptionAnnotation(description = "Left Dancer") + LeftDancer(0), + + @DescriptionAnnotation(description = "Right Dancer") + RightDancer(2), + + ; + + private int value; + + HardwareDancerTypes(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareMotorTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareMotorTypes.java new file mode 100644 index 000000000..76df00013 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareMotorTypes.java @@ -0,0 +1,103 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum HardwareMotorTypes +{ + + @DescriptionAnnotation(description = "Cleaning Head Motor") + MOTO_DH_CLEANHEAD(0), + + @DescriptionAnnotation(description = "Cleaning Mechanism Motor") + MOTO_DH_CLEANMECH(1), + + @DescriptionAnnotation(description = "Dyeing Head Lid Motor") + MOTO_DH_LID(2), + + @DescriptionAnnotation(description = "Dryer Main Motor") + MOTO_DRYER_DRIVING(3), + + @DescriptionAnnotation(description = "Drier Lid Motor") + MOTO_DRYER_LID(4), + + @DescriptionAnnotation(description = "Drier Thread Loading Arm Motor") + MOTO_DRYER_LOADARM(5), + + @DescriptionAnnotation(description = "Dispenser 1 Motor") + MOTO_DISPENSER_1(6), + + @DescriptionAnnotation(description = "Dispenser 2 Motor") + MOTO_DISPENSER_2(7), + + @DescriptionAnnotation(description = "Dispenser 3 Motor") + MOTO_DISPENSER_3(8), + + @DescriptionAnnotation(description = "Dispenser 4 Motor") + MOTO_DISPENSER_4(9), + + @DescriptionAnnotation(description = "Dispenser 5 Motor") + MOTO_DISPENSER_5(10), + + @DescriptionAnnotation(description = "Dispenser 6 Motor") + MOTO_DISPENSER_6(11), + + @DescriptionAnnotation(description = "Dispenser 7 Motor") + MOTO_DISPENSER_7(12), + + @DescriptionAnnotation(description = "Dispenser 8 Motor") + MOTO_DISPENSER_8(13), + + @DescriptionAnnotation(description = "Winder Screw Motor") + MOTO_SCREW(14), + + @DescriptionAnnotation(description = "Winder Motor") + MOTO_WINDER(15), + + @DescriptionAnnotation(description = "Pooler Dancer Adjustment") + MOTO_LDANCER1(16), + + @DescriptionAnnotation(description = "Winder Dancer Adjustment #1") + MOTO_LDANCER2(17), + + @DescriptionAnnotation(description = "Pooler Motor") + MOTO_LDRIVING(18), + + @DescriptionAnnotation(description = "Pooler Loading Motor") + MOTO_LLOADING(19), + + @DescriptionAnnotation(description = "Pooler Loading Pivot Arm Motor") + MOTO_LPIVOT1(20), + + @DescriptionAnnotation(description = "Feeder Dancer Adjustment Motor") + MOTO_RDANCER(21), + + @DescriptionAnnotation(description = "Feeder Motor") + MOTO_RDRIVING(22), + + @DescriptionAnnotation(description = "Right Loading Arm Motor") + MOTO_RLOADARM(23), + + @DescriptionAnnotation(description = "Right Loading Motor") + MOTO_RLOADING(24), + + @DescriptionAnnotation(description = "Spare 1 Motor") + MOTO_SPARE1_1(25), + + @DescriptionAnnotation(description = "Spare 2 Motor") + MOTO_SPARE1_2(26), + + @DescriptionAnnotation(description = "Spare 3 Motor") + MOTO_SPARE2_1(27), + + @DescriptionAnnotation(description = "Spare 4 Motor") + MOTO_SPARE2_2(28), + + ; + + private int value; + + HardwareMotorTypes(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwarePidControlTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwarePidControlTypes.java new file mode 100644 index 000000000..45a372f01 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwarePidControlTypes.java @@ -0,0 +1,58 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum HardwarePidControlTypes +{ + + @DescriptionAnnotation(description = "Mixer Heater") + MixerHeater(7), + + @DescriptionAnnotation(description = "Waste Control") + WasteControl(8), + + @DescriptionAnnotation(description = "Winder Motor") + MotorWinder(12), + + @DescriptionAnnotation(description = "Feeder Motor") + MotorFeeder(10), + + @DescriptionAnnotation(description = "Dryer Motor") + MotorDryer(9), + + @DescriptionAnnotation(description = "Dryer Heater 200w 1") + DryerHeater200w1(1), + + @DescriptionAnnotation(description = "Pooler Motor") + MotorPooler(11), + + @DescriptionAnnotation(description = "Head Heater Zone 4") + HeadHeaterZ4(6), + + @DescriptionAnnotation(description = "Dryer Heater 1000w") + DryerHeater1000w(0), + + @DescriptionAnnotation(description = "Head Heater Zone 3") + HeadHeaterZ3(5), + + @DescriptionAnnotation(description = "Head Heater Zone 1") + HeadHeaterZ1(3), + + @DescriptionAnnotation(description = "Head Heater Zone 2") + HeadHeaterZ2(4), + + @DescriptionAnnotation(description = "Dryer Heater 400") + DryerHeater400(13), + + @DescriptionAnnotation(description = "Dryer Heater 200w 2 ") + DryerHeater200w2(2), + + ; + + private int value; + + HardwarePidControlTypes(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareWinderTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareWinderTypes.java new file mode 100644 index 000000000..c8795ff0c --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/HardwareWinderTypes.java @@ -0,0 +1,19 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum HardwareWinderTypes +{ + + @DescriptionAnnotation(description = "Internal Winder") + InternalWinder(0), + + ; + + private int value; + + HardwareWinderTypes(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/IdsPackFormulas.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/IdsPackFormulas.java new file mode 100644 index 000000000..d38206396 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/IdsPackFormulas.java @@ -0,0 +1,25 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum IdsPackFormulas +{ + + @DescriptionAnnotation(description = "Lubricant Formula") + Lubricant(2), + + @DescriptionAnnotation(description = "Standard Color IDS Pack Formula") + StandardColor(0), + + @DescriptionAnnotation(description = "Diluter Formula") + TransparentLiquid(1), + + ; + + private int value; + + IdsPackFormulas(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java index 5b9d52450..7a6187d31 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/LiquidTypes.java @@ -6,16 +6,16 @@ public enum LiquidTypes { @DescriptionAnnotation(description = "Cyan") - Cyan(1), + Cyan(0), @DescriptionAnnotation(description = "Red") Red(7), @DescriptionAnnotation(description = "Transparent Ink") - TransparentInk(6), + TransparentInk(4), @DescriptionAnnotation(description = "Magenta") - Magenta(2), + Magenta(1), @DescriptionAnnotation(description = "Lubricant") Lubricant(5), @@ -24,7 +24,7 @@ public enum LiquidTypes Yellow(2), @DescriptionAnnotation(description = "Black") - Black(4), + Black(3), ; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java index b8c324466..5a5ef1f06 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Permissions.java @@ -20,6 +20,24 @@ public enum Permissions @DescriptionAnnotation(description = "Allows loading the machine designer module in Machine Studio") RunMachineDesignerModule(4), + @DescriptionAnnotation(description = "Allows loading the data capture module in Machine Studio") + RunDataCaptureModule(5), + + @DescriptionAnnotation(description = "Allows the execution of Machine Studio") + RunMachineStudio(6), + + @DescriptionAnnotation(description = "Allows publishing of new Machine Studio release version to the Machine Studio Service.") + PublishMachineStudioVersion(7), + + @DescriptionAnnotation(description = "Allows loading the stubs module in machine studio") + RunStubsModule(8), + + @DescriptionAnnotation(description = "Allows loading the ColorLab module in Machine Studio") + RunColorLabModule(9), + + @DescriptionAnnotation(description = "Allows loading the Users & Roles module in machine studio") + RunUsersAndRolesModule(10), + ; private int value; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Rmls.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Rmls.java new file mode 100644 index 000000000..ea256b2bd --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Rmls.java @@ -0,0 +1,22 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum Rmls +{ + + @DescriptionAnnotation(description = "RML 2") + RML2(0), + + @DescriptionAnnotation(description = "RML 1") + RML1(0), + + ; + + private int value; + + Rmls(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Roles.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Roles.java index 8be545370..3d0566347 100644 --- a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Roles.java +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/Roles.java @@ -15,10 +15,22 @@ public enum Roles Technician(2), @DescriptionAnnotation(description = "Twine Research and development") - Developer(3), + MachineDeveloper(3), - @DescriptionAnnotation(description = "Role Description") - SomeRole(4), + @DescriptionAnnotation(description = "Publish new Machine Studio Versions") + MachineStudioPublisher(4), + + @DescriptionAnnotation(description = "Machine Studio Software Developer") + MachineStudioDeveloper(5), + + @DescriptionAnnotation(description = "Twine Software Developer") + SoftwareDeveloper(6), + + @DescriptionAnnotation(description = "Manage organizations users and roles") + UsersAndRolesManager(7), + + @DescriptionAnnotation(description = "Color adjustment & calibration algorithms developer ") + ColorScientist(8), ; diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/SpoolTypes.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/SpoolTypes.java new file mode 100644 index 000000000..93711f341 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/SpoolTypes.java @@ -0,0 +1,19 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum SpoolTypes +{ + + @DescriptionAnnotation(description = "Standard Spool") + StandardSpool(0), + + ; + + private int value; + + SpoolTypes(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechControllers.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechControllers.java new file mode 100644 index 000000000..f7ebc29be --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechControllers.java @@ -0,0 +1,22 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum TechControllers +{ + + @DescriptionAnnotation(description = "Heater 2 Temperature") + Heater2Temp(1), + + @DescriptionAnnotation(description = "Heater 1 Temperature") + Heater1Temp(0), + + ; + + private int value; + + TechControllers(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechDispensers.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechDispensers.java new file mode 100644 index 000000000..14b6464d9 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechDispensers.java @@ -0,0 +1,22 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum TechDispensers +{ + + @DescriptionAnnotation(description = "Dispenser 1") + Dispenser1(0), + + @DescriptionAnnotation(description = "Dispenser 2") + Dispenser2(1), + + ; + + private int value; + + TechDispensers(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechIos.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechIos.java new file mode 100644 index 000000000..f228b1cbd --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechIos.java @@ -0,0 +1,25 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum TechIos +{ + + @DescriptionAnnotation(description = "Digital Out 1") + PIN0(0), + + @DescriptionAnnotation(description = "Digital Out 2") + PIN1(1), + + @DescriptionAnnotation(description = "Digital In 3") + PIN2(2), + + ; + + private int value; + + TechIos(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMonitors.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMonitors.java new file mode 100644 index 000000000..b5279426e --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMonitors.java @@ -0,0 +1,124 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum TechMonitors +{ + + @DescriptionAnnotation(description = "Chiller Temperature") + ChillerTemperature(27), + + @DescriptionAnnotation(description = "Head Zone 3") + HeadZone3Temperature(12), + + @DescriptionAnnotation(description = "Dispensers Motors") + DispensersMotorsFrequency(21), + + @DescriptionAnnotation(description = "Dancer 2") + Dancer2Angle(1), + + @DescriptionAnnotation(description = "Dispenser 2 Motor Frequency") + Dispenser2MotorFrequency(29), + + @DescriptionAnnotation(description = "Dispenser 7 Motor Frequency") + Dispenser7MotorFrequency(34), + + @DescriptionAnnotation(description = "Dispenser 8 Motor Frequency") + Dispenser8MotorFrequency(35), + + @DescriptionAnnotation(description = "Dispenser 6 Motor Frequency") + Dispenser6MotorFrequency(33), + + @DescriptionAnnotation(description = "Dispenser 5 Motor Frequency") + Dispenser5MotorFrequency(32), + + @DescriptionAnnotation(description = "Dryer Zone 3") + DryerZone3Temperature(18), + + @DescriptionAnnotation(description = "Winder Motor") + WinderMotor(6), + + @DescriptionAnnotation(description = "Dispensers Angular Encoders") + DispensersAngularEncoders(22), + + @DescriptionAnnotation(description = "Filter Delta Pressure") + FilterDeltaPressure(26), + + @DescriptionAnnotation(description = "Puller Tension") + PullerTension(15), + + @DescriptionAnnotation(description = "Dispenser 1 Motor Frequency") + Dispenser1MotorFrequency(28), + + @DescriptionAnnotation(description = "Feeder Tension") + FeederTension(14), + + @DescriptionAnnotation(description = "Dryer Motor") + DryerMotor(4), + + @DescriptionAnnotation(description = "Dryer Air Flow") + DryerAirFlow(19), + + @DescriptionAnnotation(description = "Feeder Motor") + FeederMotorFrequency(3), + + @DescriptionAnnotation(description = "Mixer") + MixerTemperature(9), + + @DescriptionAnnotation(description = "Screw Motor") + ScrewMotor(7), + + @DescriptionAnnotation(description = "Thread Speed") + ThreadSpeed(8), + + @DescriptionAnnotation(description = "Head Zone 1") + HeadZone1Temperature(10), + + @DescriptionAnnotation(description = "Dispenser 3 Motor Frequency") + Dispenser3MotorFrequency(30), + + @DescriptionAnnotation(description = "Dryer Zone 1") + DryerZone1Temperature(16), + + @DescriptionAnnotation(description = "Dancer 1") + Dancer1Angle(0), + + @DescriptionAnnotation(description = "Dryer Zone 2") + DryerZone2Temperature(17), + + @DescriptionAnnotation(description = "Dispensers Pressure") + DispensersPressure(24), + + @DescriptionAnnotation(description = "Dancer 3") + Dancer3Angle(2), + + @DescriptionAnnotation(description = "Head Zone 2") + HeadZone2Temperature(11), + + @DescriptionAnnotation(description = "Mid Tank Pressure") + MidTankPressure(25), + + @DescriptionAnnotation(description = "Dispenser 4 Motor Frequency") + Dispenser4MotorFrequency(31), + + @DescriptionAnnotation(description = "Winder Tension") + WinderTension(20), + + @DescriptionAnnotation(description = "Dispensers Linear Positions") + DispensersLinearPositions(23), + + @DescriptionAnnotation(description = "Poller Motor") + PollerMotor(5), + + @DescriptionAnnotation(description = "Head Air Flow") + HeadAirFlow(13), + + ; + + private int value; + + TechMonitors(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMotors.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMotors.java new file mode 100644 index 000000000..128561d53 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechMotors.java @@ -0,0 +1,25 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum TechMotors +{ + + @DescriptionAnnotation(description = "Dancer 2 Motor") + Dancer2Motor(2), + + @DescriptionAnnotation(description = "Dancer 1 Motor") + Dancer1Motor(1), + + @DescriptionAnnotation(description = "Dispenser 1 Motor") + Dispenser1Motor(0), + + ; + + private int value; + + TechMotors(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechValves.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechValves.java new file mode 100644 index 000000000..7ef2fe78f --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/TechValves.java @@ -0,0 +1,15 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum TechValves +{ + ; + + private int value; + + TechValves(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/WindingMethods.java b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/WindingMethods.java new file mode 100644 index 000000000..b6c322759 --- /dev/null +++ b/Software/Android_Studio/Tango.DAL/src/main/java/com/twine/tango/dal/enumerations/WindingMethods.java @@ -0,0 +1,22 @@ +package com.twine.tango.dal.enumerations; + +import com.twine.tango.core.DescriptionAnnotation; + +public enum WindingMethods +{ + + @DescriptionAnnotation(description = "Embroidery Winding") + Embroidery(0), + + @DescriptionAnnotation(description = "Calibration Winding") + Calibration(1), + + ; + + private int value; + + WindingMethods(int value) + { + this.value = value; + } +} diff --git a/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb b/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb index 147c930c6..82b936014 100644 Binary files a/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb and b/Software/Android_Studio/Tango.DAL/src/main/res/raw/tangodb differ diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationDataOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationDataOuterClass.java new file mode 100644 index 000000000..8a077419a --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationDataOuterClass.java @@ -0,0 +1,913 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CalibrationData.proto + +package com.twine.tango.pmr.colorlab; + +public final class CalibrationDataOuterClass { + private CalibrationDataOuterClass() {} + 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 CalibrationDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.CalibrationData) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + int getLiquidTypeValue(); + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType(); + + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + java.util.List + getCalibrationPointsList(); + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint getCalibrationPoints(int index); + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + int getCalibrationPointsCount(); + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + java.util.List + getCalibrationPointsOrBuilderList(); + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder getCalibrationPointsOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.CalibrationData} + */ + public static final class CalibrationData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.CalibrationData) + CalibrationDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CalibrationData.newBuilder() to construct. + private CalibrationData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CalibrationData() { + liquidType_ = 0; + calibrationPoints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CalibrationData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + liquidType_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + calibrationPoints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + calibrationPoints_.add( + input.readMessage(com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + calibrationPoints_ = java.util.Collections.unmodifiableList(calibrationPoints_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.class, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder.class); + } + + private int bitField0_; + public static final int LIQUIDTYPE_FIELD_NUMBER = 1; + private int liquidType_; + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public int getLiquidTypeValue() { + return liquidType_; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType() { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType result = com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.valueOf(liquidType_); + return result == null ? com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.UNRECOGNIZED : result; + } + + public static final int CALIBRATIONPOINTS_FIELD_NUMBER = 2; + private java.util.List calibrationPoints_; + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public java.util.List getCalibrationPointsList() { + return calibrationPoints_; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public java.util.List + getCalibrationPointsOrBuilderList() { + return calibrationPoints_; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public int getCalibrationPointsCount() { + return calibrationPoints_.size(); + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint getCalibrationPoints(int index) { + return calibrationPoints_.get(index); + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder getCalibrationPointsOrBuilder( + int index) { + return calibrationPoints_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (liquidType_ != com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.Cyan.getNumber()) { + output.writeEnum(1, liquidType_); + } + for (int i = 0; i < calibrationPoints_.size(); i++) { + output.writeMessage(2, calibrationPoints_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (liquidType_ != com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.Cyan.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, liquidType_); + } + for (int i = 0; i < calibrationPoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, calibrationPoints_.get(i)); + } + 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 com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData other = (com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData) obj; + + boolean result = true; + result = result && liquidType_ == other.liquidType_; + result = result && getCalibrationPointsList() + .equals(other.getCalibrationPointsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LIQUIDTYPE_FIELD_NUMBER; + hash = (53 * hash) + liquidType_; + if (getCalibrationPointsCount() > 0) { + hash = (37 * hash) + CALIBRATIONPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getCalibrationPointsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData 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 com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData 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 com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.CalibrationData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.CalibrationData) + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationData_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.class, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCalibrationPointsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + liquidType_ = 0; + + if (calibrationPointsBuilder_ == null) { + calibrationPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + calibrationPointsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationData_descriptor; + } + + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData build() { + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData buildPartial() { + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData result = new com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.liquidType_ = liquidType_; + if (calibrationPointsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + calibrationPoints_ = java.util.Collections.unmodifiableList(calibrationPoints_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.calibrationPoints_ = calibrationPoints_; + } else { + result.calibrationPoints_ = calibrationPointsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData) { + return mergeFrom((com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData other) { + if (other == com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.getDefaultInstance()) return this; + if (other.liquidType_ != 0) { + setLiquidTypeValue(other.getLiquidTypeValue()); + } + if (calibrationPointsBuilder_ == null) { + if (!other.calibrationPoints_.isEmpty()) { + if (calibrationPoints_.isEmpty()) { + calibrationPoints_ = other.calibrationPoints_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCalibrationPointsIsMutable(); + calibrationPoints_.addAll(other.calibrationPoints_); + } + onChanged(); + } + } else { + if (!other.calibrationPoints_.isEmpty()) { + if (calibrationPointsBuilder_.isEmpty()) { + calibrationPointsBuilder_.dispose(); + calibrationPointsBuilder_ = null; + calibrationPoints_ = other.calibrationPoints_; + bitField0_ = (bitField0_ & ~0x00000002); + calibrationPointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCalibrationPointsFieldBuilder() : null; + } else { + calibrationPointsBuilder_.addAllMessages(other.calibrationPoints_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int liquidType_ = 0; + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public int getLiquidTypeValue() { + return liquidType_; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder setLiquidTypeValue(int value) { + liquidType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType() { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType result = com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.valueOf(liquidType_); + return result == null ? com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder setLiquidType(com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType value) { + if (value == null) { + throw new NullPointerException(); + } + + liquidType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder clearLiquidType() { + + liquidType_ = 0; + onChanged(); + return this; + } + + private java.util.List calibrationPoints_ = + java.util.Collections.emptyList(); + private void ensureCalibrationPointsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + calibrationPoints_ = new java.util.ArrayList(calibrationPoints_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder> calibrationPointsBuilder_; + + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public java.util.List getCalibrationPointsList() { + if (calibrationPointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(calibrationPoints_); + } else { + return calibrationPointsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public int getCalibrationPointsCount() { + if (calibrationPointsBuilder_ == null) { + return calibrationPoints_.size(); + } else { + return calibrationPointsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint getCalibrationPoints(int index) { + if (calibrationPointsBuilder_ == null) { + return calibrationPoints_.get(index); + } else { + return calibrationPointsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder setCalibrationPoints( + int index, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint value) { + if (calibrationPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCalibrationPointsIsMutable(); + calibrationPoints_.set(index, value); + onChanged(); + } else { + calibrationPointsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder setCalibrationPoints( + int index, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder builderForValue) { + if (calibrationPointsBuilder_ == null) { + ensureCalibrationPointsIsMutable(); + calibrationPoints_.set(index, builderForValue.build()); + onChanged(); + } else { + calibrationPointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder addCalibrationPoints(com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint value) { + if (calibrationPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCalibrationPointsIsMutable(); + calibrationPoints_.add(value); + onChanged(); + } else { + calibrationPointsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder addCalibrationPoints( + int index, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint value) { + if (calibrationPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCalibrationPointsIsMutable(); + calibrationPoints_.add(index, value); + onChanged(); + } else { + calibrationPointsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder addCalibrationPoints( + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder builderForValue) { + if (calibrationPointsBuilder_ == null) { + ensureCalibrationPointsIsMutable(); + calibrationPoints_.add(builderForValue.build()); + onChanged(); + } else { + calibrationPointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder addCalibrationPoints( + int index, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder builderForValue) { + if (calibrationPointsBuilder_ == null) { + ensureCalibrationPointsIsMutable(); + calibrationPoints_.add(index, builderForValue.build()); + onChanged(); + } else { + calibrationPointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder addAllCalibrationPoints( + java.lang.Iterable values) { + if (calibrationPointsBuilder_ == null) { + ensureCalibrationPointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, calibrationPoints_); + onChanged(); + } else { + calibrationPointsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder clearCalibrationPoints() { + if (calibrationPointsBuilder_ == null) { + calibrationPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + calibrationPointsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public Builder removeCalibrationPoints(int index) { + if (calibrationPointsBuilder_ == null) { + ensureCalibrationPointsIsMutable(); + calibrationPoints_.remove(index); + onChanged(); + } else { + calibrationPointsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder getCalibrationPointsBuilder( + int index) { + return getCalibrationPointsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder getCalibrationPointsOrBuilder( + int index) { + if (calibrationPointsBuilder_ == null) { + return calibrationPoints_.get(index); } else { + return calibrationPointsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public java.util.List + getCalibrationPointsOrBuilderList() { + if (calibrationPointsBuilder_ != null) { + return calibrationPointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(calibrationPoints_); + } + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder addCalibrationPointsBuilder() { + return getCalibrationPointsFieldBuilder().addBuilder( + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder addCalibrationPointsBuilder( + int index) { + return getCalibrationPointsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.CalibrationPoint CalibrationPoints = 2; + */ + public java.util.List + getCalibrationPointsBuilderList() { + return getCalibrationPointsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder> + getCalibrationPointsFieldBuilder() { + if (calibrationPointsBuilder_ == null) { + calibrationPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder>( + calibrationPoints_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + calibrationPoints_ = null; + } + return calibrationPointsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.CalibrationData) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.CalibrationData) + private static final com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData(); + } + + public static com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CalibrationData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CalibrationData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_CalibrationData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_CalibrationData_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\025CalibrationData.proto\022\022Tango.PMR.Color" + + "Lab\032\026CalibrationPoint.proto\032\020LiquidType." + + "proto\"\206\001\n\017CalibrationData\0222\n\nLiquidType\030" + + "\001 \001(\0162\036.Tango.PMR.ColorLab.LiquidType\022?\n" + + "\021CalibrationPoints\030\002 \003(\0132$.Tango.PMR.Col" + + "orLab.CalibrationPointB\036\n\034com.twine.tang" + + "o.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.getDescriptor(), + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_CalibrationData_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_CalibrationData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_CalibrationData_descriptor, + new java.lang.String[] { "LiquidType", "CalibrationPoints", }); + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.getDescriptor(); + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationPointOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationPointOuterClass.java new file mode 100644 index 000000000..3417bb272 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/CalibrationPointOuterClass.java @@ -0,0 +1,574 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: CalibrationPoint.proto + +package com.twine.tango.pmr.colorlab; + +public final class CalibrationPointOuterClass { + private CalibrationPointOuterClass() {} + 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 CalibrationPointOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.CalibrationPoint) + com.google.protobuf.MessageOrBuilder { + + /** + * double X = 1; + */ + double getX(); + + /** + * double Y = 2; + */ + double getY(); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.CalibrationPoint} + */ + public static final class CalibrationPoint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.CalibrationPoint) + CalibrationPointOrBuilder { + private static final long serialVersionUID = 0L; + // Use CalibrationPoint.newBuilder() to construct. + private CalibrationPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CalibrationPoint() { + x_ = 0D; + y_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CalibrationPoint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + x_ = input.readDouble(); + break; + } + case 17: { + + y_ = input.readDouble(); + 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 com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationPoint_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.class, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder.class); + } + + public static final int X_FIELD_NUMBER = 1; + private double x_; + /** + * double X = 1; + */ + public double getX() { + return x_; + } + + public static final int Y_FIELD_NUMBER = 2; + private double y_; + /** + * double Y = 2; + */ + public double getY() { + return y_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (x_ != 0D) { + output.writeDouble(1, x_); + } + if (y_ != 0D) { + output.writeDouble(2, y_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (x_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, x_); + } + if (y_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, y_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint other = (com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getX()) + == java.lang.Double.doubleToLongBits( + other.getX())); + result = result && ( + java.lang.Double.doubleToLongBits(getY()) + == java.lang.Double.doubleToLongBits( + other.getY())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + hash = (37 * hash) + Y_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getY())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint 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 com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint 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 com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.CalibrationPoint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.CalibrationPoint) + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationPoint_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.class, com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + x_ = 0D; + + y_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.internal_static_Tango_PMR_ColorLab_CalibrationPoint_descriptor; + } + + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint build() { + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint buildPartial() { + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint result = new com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint(this); + result.x_ = x_; + result.y_ = y_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint) { + return mergeFrom((com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint other) { + if (other == com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint.getDefaultInstance()) return this; + if (other.getX() != 0D) { + setX(other.getX()); + } + if (other.getY() != 0D) { + setY(other.getY()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double x_ ; + /** + * double X = 1; + */ + public double getX() { + return x_; + } + /** + * double X = 1; + */ + public Builder setX(double value) { + + x_ = value; + onChanged(); + return this; + } + /** + * double X = 1; + */ + public Builder clearX() { + + x_ = 0D; + onChanged(); + return this; + } + + private double y_ ; + /** + * double Y = 2; + */ + public double getY() { + return y_; + } + /** + * double Y = 2; + */ + public Builder setY(double value) { + + y_ = value; + onChanged(); + return this; + } + /** + * double Y = 2; + */ + public Builder clearY() { + + y_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.CalibrationPoint) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.CalibrationPoint) + private static final com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint(); + } + + public static com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public CalibrationPoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CalibrationPoint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.CalibrationPointOuterClass.CalibrationPoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_CalibrationPoint_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_CalibrationPoint_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\026CalibrationPoint.proto\022\022Tango.PMR.Colo" + + "rLab\"(\n\020CalibrationPoint\022\t\n\001X\030\001 \001(\001\022\t\n\001Y" + + "\030\002 \001(\001B\036\n\034com.twine.tango.pmr.colorlabb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_ColorLab_CalibrationPoint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_CalibrationPoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_CalibrationPoint_descriptor, + new java.lang.String[] { "X", "Y", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ColorSpaceOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ColorSpaceOuterClass.java new file mode 100644 index 000000000..48256bbe0 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ColorSpaceOuterClass.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ColorSpace.proto + +package com.twine.tango.pmr.colorlab; + +public final class ColorSpaceOuterClass { + private ColorSpaceOuterClass() {} + 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 Tango.PMR.ColorLab.ColorSpace} + */ + public enum ColorSpace + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Volume = 0; + */ + Volume(0), + /** + * RGB = 1; + */ + RGB(1), + /** + * CMYK = 2; + */ + CMYK(2), + /** + * LAB = 3; + */ + LAB(3), + /** + * PANTON = 4; + */ + PANTON(4), + UNRECOGNIZED(-1), + ; + + /** + * Volume = 0; + */ + public static final int Volume_VALUE = 0; + /** + * RGB = 1; + */ + public static final int RGB_VALUE = 1; + /** + * CMYK = 2; + */ + public static final int CMYK_VALUE = 2; + /** + * LAB = 3; + */ + public static final int LAB_VALUE = 3; + /** + * PANTON = 4; + */ + public static final int PANTON_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ColorSpace valueOf(int value) { + return forNumber(value); + } + + public static ColorSpace forNumber(int value) { + switch (value) { + case 0: return Volume; + case 1: return RGB; + case 2: return CMYK; + case 3: return LAB; + case 4: return PANTON; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ColorSpace> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ColorSpace findValueByNumber(int number) { + return ColorSpace.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 com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ColorSpace[] VALUES = values(); + + public static ColorSpace valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ColorSpace(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.ColorLab.ColorSpace) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\020ColorSpace.proto\022\022Tango.PMR.ColorLab*@" + + "\n\nColorSpace\022\n\n\006Volume\020\000\022\007\n\003RGB\020\001\022\010\n\004CMY" + + "K\020\002\022\007\n\003LAB\020\003\022\n\n\006PANTON\020\004B\036\n\034com.twine.ta" + + "ngo.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionInputOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionInputOuterClass.java new file mode 100644 index 000000000..9d19e501c --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionInputOuterClass.java @@ -0,0 +1,1267 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConversionInput.proto + +package com.twine.tango.pmr.colorlab; + +public final class ConversionInputOuterClass { + private ConversionInputOuterClass() {} + 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 ConversionInputOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.ConversionInput) + com.google.protobuf.MessageOrBuilder { + + /** + * double ThreadL = 1; + */ + double getThreadL(); + + /** + * double ThreadA = 2; + */ + double getThreadA(); + + /** + * double ThreadB = 3; + */ + double getThreadB(); + + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + int getColorSpaceValue(); + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace getColorSpace(); + + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + boolean hasInputCoordinates(); + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates getInputCoordinates(); + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder getInputCoordinatesOrBuilder(); + + /** + * bytes ForwardData = 6; + */ + com.google.protobuf.ByteString getForwardData(); + + /** + * bytes InverseData = 7; + */ + com.google.protobuf.ByteString getInverseData(); + + /** + * double SegmentLength = 8; + */ + double getSegmentLength(); + + /** + * double DeltaChroma = 9; + */ + double getDeltaChroma(); + + /** + * double DeltaL = 10; + */ + double getDeltaL(); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.ConversionInput} + */ + public static final class ConversionInput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.ConversionInput) + ConversionInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionInput.newBuilder() to construct. + private ConversionInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConversionInput() { + threadL_ = 0D; + threadA_ = 0D; + threadB_ = 0D; + colorSpace_ = 0; + forwardData_ = com.google.protobuf.ByteString.EMPTY; + inverseData_ = com.google.protobuf.ByteString.EMPTY; + segmentLength_ = 0D; + deltaChroma_ = 0D; + deltaL_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConversionInput( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + threadL_ = input.readDouble(); + break; + } + case 17: { + + threadA_ = input.readDouble(); + break; + } + case 25: { + + threadB_ = input.readDouble(); + break; + } + case 32: { + int rawValue = input.readEnum(); + + colorSpace_ = rawValue; + break; + } + case 42: { + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder subBuilder = null; + if (inputCoordinates_ != null) { + subBuilder = inputCoordinates_.toBuilder(); + } + inputCoordinates_ = input.readMessage(com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputCoordinates_); + inputCoordinates_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + + forwardData_ = input.readBytes(); + break; + } + case 58: { + + inverseData_ = input.readBytes(); + break; + } + case 65: { + + segmentLength_ = input.readDouble(); + break; + } + case 73: { + + deltaChroma_ = input.readDouble(); + break; + } + case 81: { + + deltaL_ = input.readDouble(); + 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 com.twine.tango.pmr.colorlab.ConversionInputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionInput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.ConversionInputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.class, com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.Builder.class); + } + + public static final int THREADL_FIELD_NUMBER = 1; + private double threadL_; + /** + * double ThreadL = 1; + */ + public double getThreadL() { + return threadL_; + } + + public static final int THREADA_FIELD_NUMBER = 2; + private double threadA_; + /** + * double ThreadA = 2; + */ + public double getThreadA() { + return threadA_; + } + + public static final int THREADB_FIELD_NUMBER = 3; + private double threadB_; + /** + * double ThreadB = 3; + */ + public double getThreadB() { + return threadB_; + } + + public static final int COLORSPACE_FIELD_NUMBER = 4; + private int colorSpace_; + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public int getColorSpaceValue() { + return colorSpace_; + } + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace getColorSpace() { + com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace result = com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace.valueOf(colorSpace_); + return result == null ? com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace.UNRECOGNIZED : result; + } + + public static final int INPUTCOORDINATES_FIELD_NUMBER = 5; + private com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates inputCoordinates_; + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public boolean hasInputCoordinates() { + return inputCoordinates_ != null; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates getInputCoordinates() { + return inputCoordinates_ == null ? com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.getDefaultInstance() : inputCoordinates_; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder getInputCoordinatesOrBuilder() { + return getInputCoordinates(); + } + + public static final int FORWARDDATA_FIELD_NUMBER = 6; + private com.google.protobuf.ByteString forwardData_; + /** + * bytes ForwardData = 6; + */ + public com.google.protobuf.ByteString getForwardData() { + return forwardData_; + } + + public static final int INVERSEDATA_FIELD_NUMBER = 7; + private com.google.protobuf.ByteString inverseData_; + /** + * bytes InverseData = 7; + */ + public com.google.protobuf.ByteString getInverseData() { + return inverseData_; + } + + public static final int SEGMENTLENGTH_FIELD_NUMBER = 8; + private double segmentLength_; + /** + * double SegmentLength = 8; + */ + public double getSegmentLength() { + return segmentLength_; + } + + public static final int DELTACHROMA_FIELD_NUMBER = 9; + private double deltaChroma_; + /** + * double DeltaChroma = 9; + */ + public double getDeltaChroma() { + return deltaChroma_; + } + + public static final int DELTAL_FIELD_NUMBER = 10; + private double deltaL_; + /** + * double DeltaL = 10; + */ + public double getDeltaL() { + return deltaL_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (threadL_ != 0D) { + output.writeDouble(1, threadL_); + } + if (threadA_ != 0D) { + output.writeDouble(2, threadA_); + } + if (threadB_ != 0D) { + output.writeDouble(3, threadB_); + } + if (colorSpace_ != com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace.Volume.getNumber()) { + output.writeEnum(4, colorSpace_); + } + if (inputCoordinates_ != null) { + output.writeMessage(5, getInputCoordinates()); + } + if (!forwardData_.isEmpty()) { + output.writeBytes(6, forwardData_); + } + if (!inverseData_.isEmpty()) { + output.writeBytes(7, inverseData_); + } + if (segmentLength_ != 0D) { + output.writeDouble(8, segmentLength_); + } + if (deltaChroma_ != 0D) { + output.writeDouble(9, deltaChroma_); + } + if (deltaL_ != 0D) { + output.writeDouble(10, deltaL_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (threadL_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, threadL_); + } + if (threadA_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, threadA_); + } + if (threadB_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, threadB_); + } + if (colorSpace_ != com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace.Volume.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, colorSpace_); + } + if (inputCoordinates_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getInputCoordinates()); + } + if (!forwardData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, forwardData_); + } + if (!inverseData_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, inverseData_); + } + if (segmentLength_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, segmentLength_); + } + if (deltaChroma_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, deltaChroma_); + } + if (deltaL_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, deltaL_); + } + 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 com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput other = (com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getThreadL()) + == java.lang.Double.doubleToLongBits( + other.getThreadL())); + result = result && ( + java.lang.Double.doubleToLongBits(getThreadA()) + == java.lang.Double.doubleToLongBits( + other.getThreadA())); + result = result && ( + java.lang.Double.doubleToLongBits(getThreadB()) + == java.lang.Double.doubleToLongBits( + other.getThreadB())); + result = result && colorSpace_ == other.colorSpace_; + result = result && (hasInputCoordinates() == other.hasInputCoordinates()); + if (hasInputCoordinates()) { + result = result && getInputCoordinates() + .equals(other.getInputCoordinates()); + } + result = result && getForwardData() + .equals(other.getForwardData()); + result = result && getInverseData() + .equals(other.getInverseData()); + result = result && ( + java.lang.Double.doubleToLongBits(getSegmentLength()) + == java.lang.Double.doubleToLongBits( + other.getSegmentLength())); + result = result && ( + java.lang.Double.doubleToLongBits(getDeltaChroma()) + == java.lang.Double.doubleToLongBits( + other.getDeltaChroma())); + result = result && ( + java.lang.Double.doubleToLongBits(getDeltaL()) + == java.lang.Double.doubleToLongBits( + other.getDeltaL())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + THREADL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThreadL())); + hash = (37 * hash) + THREADA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThreadA())); + hash = (37 * hash) + THREADB_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getThreadB())); + hash = (37 * hash) + COLORSPACE_FIELD_NUMBER; + hash = (53 * hash) + colorSpace_; + if (hasInputCoordinates()) { + hash = (37 * hash) + INPUTCOORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getInputCoordinates().hashCode(); + } + hash = (37 * hash) + FORWARDDATA_FIELD_NUMBER; + hash = (53 * hash) + getForwardData().hashCode(); + hash = (37 * hash) + INVERSEDATA_FIELD_NUMBER; + hash = (53 * hash) + getInverseData().hashCode(); + hash = (37 * hash) + SEGMENTLENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSegmentLength())); + hash = (37 * hash) + DELTACHROMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDeltaChroma())); + hash = (37 * hash) + DELTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDeltaL())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput 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 com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput 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 com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.ConversionInput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.ConversionInput) + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.ConversionInputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionInput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.ConversionInputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.class, com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + threadL_ = 0D; + + threadA_ = 0D; + + threadB_ = 0D; + + colorSpace_ = 0; + + if (inputCoordinatesBuilder_ == null) { + inputCoordinates_ = null; + } else { + inputCoordinates_ = null; + inputCoordinatesBuilder_ = null; + } + forwardData_ = com.google.protobuf.ByteString.EMPTY; + + inverseData_ = com.google.protobuf.ByteString.EMPTY; + + segmentLength_ = 0D; + + deltaChroma_ = 0D; + + deltaL_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.ConversionInputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionInput_descriptor; + } + + public com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput build() { + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput buildPartial() { + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput result = new com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput(this); + result.threadL_ = threadL_; + result.threadA_ = threadA_; + result.threadB_ = threadB_; + result.colorSpace_ = colorSpace_; + if (inputCoordinatesBuilder_ == null) { + result.inputCoordinates_ = inputCoordinates_; + } else { + result.inputCoordinates_ = inputCoordinatesBuilder_.build(); + } + result.forwardData_ = forwardData_; + result.inverseData_ = inverseData_; + result.segmentLength_ = segmentLength_; + result.deltaChroma_ = deltaChroma_; + result.deltaL_ = deltaL_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput) { + return mergeFrom((com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput other) { + if (other == com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput.getDefaultInstance()) return this; + if (other.getThreadL() != 0D) { + setThreadL(other.getThreadL()); + } + if (other.getThreadA() != 0D) { + setThreadA(other.getThreadA()); + } + if (other.getThreadB() != 0D) { + setThreadB(other.getThreadB()); + } + if (other.colorSpace_ != 0) { + setColorSpaceValue(other.getColorSpaceValue()); + } + if (other.hasInputCoordinates()) { + mergeInputCoordinates(other.getInputCoordinates()); + } + if (other.getForwardData() != com.google.protobuf.ByteString.EMPTY) { + setForwardData(other.getForwardData()); + } + if (other.getInverseData() != com.google.protobuf.ByteString.EMPTY) { + setInverseData(other.getInverseData()); + } + if (other.getSegmentLength() != 0D) { + setSegmentLength(other.getSegmentLength()); + } + if (other.getDeltaChroma() != 0D) { + setDeltaChroma(other.getDeltaChroma()); + } + if (other.getDeltaL() != 0D) { + setDeltaL(other.getDeltaL()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double threadL_ ; + /** + * double ThreadL = 1; + */ + public double getThreadL() { + return threadL_; + } + /** + * double ThreadL = 1; + */ + public Builder setThreadL(double value) { + + threadL_ = value; + onChanged(); + return this; + } + /** + * double ThreadL = 1; + */ + public Builder clearThreadL() { + + threadL_ = 0D; + onChanged(); + return this; + } + + private double threadA_ ; + /** + * double ThreadA = 2; + */ + public double getThreadA() { + return threadA_; + } + /** + * double ThreadA = 2; + */ + public Builder setThreadA(double value) { + + threadA_ = value; + onChanged(); + return this; + } + /** + * double ThreadA = 2; + */ + public Builder clearThreadA() { + + threadA_ = 0D; + onChanged(); + return this; + } + + private double threadB_ ; + /** + * double ThreadB = 3; + */ + public double getThreadB() { + return threadB_; + } + /** + * double ThreadB = 3; + */ + public Builder setThreadB(double value) { + + threadB_ = value; + onChanged(); + return this; + } + /** + * double ThreadB = 3; + */ + public Builder clearThreadB() { + + threadB_ = 0D; + onChanged(); + return this; + } + + private int colorSpace_ = 0; + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public int getColorSpaceValue() { + return colorSpace_; + } + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public Builder setColorSpaceValue(int value) { + colorSpace_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace getColorSpace() { + com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace result = com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace.valueOf(colorSpace_); + return result == null ? com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public Builder setColorSpace(com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.ColorSpace value) { + if (value == null) { + throw new NullPointerException(); + } + + colorSpace_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.ColorSpace ColorSpace = 4; + */ + public Builder clearColorSpace() { + + colorSpace_ = 0; + onChanged(); + return this; + } + + private com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates inputCoordinates_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder> inputCoordinatesBuilder_; + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public boolean hasInputCoordinates() { + return inputCoordinatesBuilder_ != null || inputCoordinates_ != null; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates getInputCoordinates() { + if (inputCoordinatesBuilder_ == null) { + return inputCoordinates_ == null ? com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.getDefaultInstance() : inputCoordinates_; + } else { + return inputCoordinatesBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public Builder setInputCoordinates(com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates value) { + if (inputCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inputCoordinates_ = value; + onChanged(); + } else { + inputCoordinatesBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public Builder setInputCoordinates( + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder builderForValue) { + if (inputCoordinatesBuilder_ == null) { + inputCoordinates_ = builderForValue.build(); + onChanged(); + } else { + inputCoordinatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public Builder mergeInputCoordinates(com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates value) { + if (inputCoordinatesBuilder_ == null) { + if (inputCoordinates_ != null) { + inputCoordinates_ = + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.newBuilder(inputCoordinates_).mergeFrom(value).buildPartial(); + } else { + inputCoordinates_ = value; + } + onChanged(); + } else { + inputCoordinatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public Builder clearInputCoordinates() { + if (inputCoordinatesBuilder_ == null) { + inputCoordinates_ = null; + onChanged(); + } else { + inputCoordinates_ = null; + inputCoordinatesBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder getInputCoordinatesBuilder() { + + onChanged(); + return getInputCoordinatesFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder getInputCoordinatesOrBuilder() { + if (inputCoordinatesBuilder_ != null) { + return inputCoordinatesBuilder_.getMessageOrBuilder(); + } else { + return inputCoordinates_ == null ? + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.getDefaultInstance() : inputCoordinates_; + } + } + /** + * .Tango.PMR.ColorLab.InputCoordinates InputCoordinates = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder> + getInputCoordinatesFieldBuilder() { + if (inputCoordinatesBuilder_ == null) { + inputCoordinatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder>( + getInputCoordinates(), + getParentForChildren(), + isClean()); + inputCoordinates_ = null; + } + return inputCoordinatesBuilder_; + } + + private com.google.protobuf.ByteString forwardData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes ForwardData = 6; + */ + public com.google.protobuf.ByteString getForwardData() { + return forwardData_; + } + /** + * bytes ForwardData = 6; + */ + public Builder setForwardData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + forwardData_ = value; + onChanged(); + return this; + } + /** + * bytes ForwardData = 6; + */ + public Builder clearForwardData() { + + forwardData_ = getDefaultInstance().getForwardData(); + onChanged(); + return this; + } + + private com.google.protobuf.ByteString inverseData_ = com.google.protobuf.ByteString.EMPTY; + /** + * bytes InverseData = 7; + */ + public com.google.protobuf.ByteString getInverseData() { + return inverseData_; + } + /** + * bytes InverseData = 7; + */ + public Builder setInverseData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + + inverseData_ = value; + onChanged(); + return this; + } + /** + * bytes InverseData = 7; + */ + public Builder clearInverseData() { + + inverseData_ = getDefaultInstance().getInverseData(); + onChanged(); + return this; + } + + private double segmentLength_ ; + /** + * double SegmentLength = 8; + */ + public double getSegmentLength() { + return segmentLength_; + } + /** + * double SegmentLength = 8; + */ + public Builder setSegmentLength(double value) { + + segmentLength_ = value; + onChanged(); + return this; + } + /** + * double SegmentLength = 8; + */ + public Builder clearSegmentLength() { + + segmentLength_ = 0D; + onChanged(); + return this; + } + + private double deltaChroma_ ; + /** + * double DeltaChroma = 9; + */ + public double getDeltaChroma() { + return deltaChroma_; + } + /** + * double DeltaChroma = 9; + */ + public Builder setDeltaChroma(double value) { + + deltaChroma_ = value; + onChanged(); + return this; + } + /** + * double DeltaChroma = 9; + */ + public Builder clearDeltaChroma() { + + deltaChroma_ = 0D; + onChanged(); + return this; + } + + private double deltaL_ ; + /** + * double DeltaL = 10; + */ + public double getDeltaL() { + return deltaL_; + } + /** + * double DeltaL = 10; + */ + public Builder setDeltaL(double value) { + + deltaL_ = value; + onChanged(); + return this; + } + /** + * double DeltaL = 10; + */ + public Builder clearDeltaL() { + + deltaL_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.ConversionInput) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.ConversionInput) + private static final com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput(); + } + + public static com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ConversionInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversionInput(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.ConversionInputOuterClass.ConversionInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_ConversionInput_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_ConversionInput_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\025ConversionInput.proto\022\022Tango.PMR.Color" + + "Lab\032\026InputCoordinates.proto\032\020ColorSpace." + + "proto\"\236\002\n\017ConversionInput\022\017\n\007ThreadL\030\001 \001" + + "(\001\022\017\n\007ThreadA\030\002 \001(\001\022\017\n\007ThreadB\030\003 \001(\001\0222\n\n" + + "ColorSpace\030\004 \001(\0162\036.Tango.PMR.ColorLab.Co" + + "lorSpace\022>\n\020InputCoordinates\030\005 \001(\0132$.Tan" + + "go.PMR.ColorLab.InputCoordinates\022\023\n\013Forw" + + "ardData\030\006 \001(\014\022\023\n\013InverseData\030\007 \001(\014\022\025\n\rSe" + + "gmentLength\030\010 \001(\001\022\023\n\013DeltaChroma\030\t \001(\001\022\016" + + "\n\006DeltaL\030\n \001(\001B\036\n\034com.twine.tango.pmr.co", + "lorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.getDescriptor(), + com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_ConversionInput_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_ConversionInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_ConversionInput_descriptor, + new java.lang.String[] { "ThreadL", "ThreadA", "ThreadB", "ColorSpace", "InputCoordinates", "ForwardData", "InverseData", "SegmentLength", "DeltaChroma", "DeltaL", }); + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.getDescriptor(); + com.twine.tango.pmr.colorlab.ColorSpaceOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionOutputOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionOutputOuterClass.java new file mode 100644 index 000000000..dcd0a93c9 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/ConversionOutputOuterClass.java @@ -0,0 +1,1446 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConversionOutput.proto + +package com.twine.tango.pmr.colorlab; + +public final class ConversionOutputOuterClass { + private ConversionOutputOuterClass() {} + 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 ConversionOutputOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.ConversionOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + java.util.List + getHiveCoordinatesList(); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getHiveCoordinates(int index); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + int getHiveCoordinatesCount(); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + java.util.List + getHiveCoordinatesOrBuilderList(); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getHiveCoordinatesOrBuilder( + int index); + + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + java.util.List + getTripleCoordinatesList(); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getTripleCoordinates(int index); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + int getTripleCoordinatesCount(); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + java.util.List + getTripleCoordinatesOrBuilderList(); + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getTripleCoordinatesOrBuilder( + int index); + + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + boolean hasSingleCoordinates(); + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getSingleCoordinates(); + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getSingleCoordinatesOrBuilder(); + + /** + * bool OutOfGamut = 5; + */ + boolean getOutOfGamut(); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.ConversionOutput} + */ + public static final class ConversionOutput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.ConversionOutput) + ConversionOutputOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionOutput.newBuilder() to construct. + private ConversionOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConversionOutput() { + hiveCoordinates_ = java.util.Collections.emptyList(); + tripleCoordinates_ = java.util.Collections.emptyList(); + outOfGamut_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConversionOutput( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + hiveCoordinates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + hiveCoordinates_.add( + input.readMessage(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + tripleCoordinates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tripleCoordinates_.add( + input.readMessage(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.parser(), extensionRegistry)); + break; + } + case 26: { + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder subBuilder = null; + if (singleCoordinates_ != null) { + subBuilder = singleCoordinates_.toBuilder(); + } + singleCoordinates_ = input.readMessage(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(singleCoordinates_); + singleCoordinates_ = subBuilder.buildPartial(); + } + + break; + } + case 40: { + + outOfGamut_ = input.readBool(); + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + hiveCoordinates_ = java.util.Collections.unmodifiableList(hiveCoordinates_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + tripleCoordinates_ = java.util.Collections.unmodifiableList(tripleCoordinates_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionOutput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.class, com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.Builder.class); + } + + private int bitField0_; + public static final int HIVECOORDINATES_FIELD_NUMBER = 1; + private java.util.List hiveCoordinates_; + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public java.util.List getHiveCoordinatesList() { + return hiveCoordinates_; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public java.util.List + getHiveCoordinatesOrBuilderList() { + return hiveCoordinates_; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public int getHiveCoordinatesCount() { + return hiveCoordinates_.size(); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getHiveCoordinates(int index) { + return hiveCoordinates_.get(index); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getHiveCoordinatesOrBuilder( + int index) { + return hiveCoordinates_.get(index); + } + + public static final int TRIPLECOORDINATES_FIELD_NUMBER = 2; + private java.util.List tripleCoordinates_; + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public java.util.List getTripleCoordinatesList() { + return tripleCoordinates_; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public java.util.List + getTripleCoordinatesOrBuilderList() { + return tripleCoordinates_; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public int getTripleCoordinatesCount() { + return tripleCoordinates_.size(); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getTripleCoordinates(int index) { + return tripleCoordinates_.get(index); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getTripleCoordinatesOrBuilder( + int index) { + return tripleCoordinates_.get(index); + } + + public static final int SINGLECOORDINATES_FIELD_NUMBER = 3; + private com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates singleCoordinates_; + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public boolean hasSingleCoordinates() { + return singleCoordinates_ != null; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getSingleCoordinates() { + return singleCoordinates_ == null ? com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance() : singleCoordinates_; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getSingleCoordinatesOrBuilder() { + return getSingleCoordinates(); + } + + public static final int OUTOFGAMUT_FIELD_NUMBER = 5; + private boolean outOfGamut_; + /** + * bool OutOfGamut = 5; + */ + public boolean getOutOfGamut() { + return outOfGamut_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < hiveCoordinates_.size(); i++) { + output.writeMessage(1, hiveCoordinates_.get(i)); + } + for (int i = 0; i < tripleCoordinates_.size(); i++) { + output.writeMessage(2, tripleCoordinates_.get(i)); + } + if (singleCoordinates_ != null) { + output.writeMessage(3, getSingleCoordinates()); + } + if (outOfGamut_ != false) { + output.writeBool(5, outOfGamut_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < hiveCoordinates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hiveCoordinates_.get(i)); + } + for (int i = 0; i < tripleCoordinates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tripleCoordinates_.get(i)); + } + if (singleCoordinates_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSingleCoordinates()); + } + if (outOfGamut_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, outOfGamut_); + } + 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 com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput other = (com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput) obj; + + boolean result = true; + result = result && getHiveCoordinatesList() + .equals(other.getHiveCoordinatesList()); + result = result && getTripleCoordinatesList() + .equals(other.getTripleCoordinatesList()); + result = result && (hasSingleCoordinates() == other.hasSingleCoordinates()); + if (hasSingleCoordinates()) { + result = result && getSingleCoordinates() + .equals(other.getSingleCoordinates()); + } + result = result && (getOutOfGamut() + == other.getOutOfGamut()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getHiveCoordinatesCount() > 0) { + hash = (37 * hash) + HIVECOORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getHiveCoordinatesList().hashCode(); + } + if (getTripleCoordinatesCount() > 0) { + hash = (37 * hash) + TRIPLECOORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getTripleCoordinatesList().hashCode(); + } + if (hasSingleCoordinates()) { + hash = (37 * hash) + SINGLECOORDINATES_FIELD_NUMBER; + hash = (53 * hash) + getSingleCoordinates().hashCode(); + } + hash = (37 * hash) + OUTOFGAMUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOutOfGamut()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput 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 com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput 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 com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.ConversionOutput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.ConversionOutput) + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionOutput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.class, com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getHiveCoordinatesFieldBuilder(); + getTripleCoordinatesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (hiveCoordinatesBuilder_ == null) { + hiveCoordinates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + hiveCoordinatesBuilder_.clear(); + } + if (tripleCoordinatesBuilder_ == null) { + tripleCoordinates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + tripleCoordinatesBuilder_.clear(); + } + if (singleCoordinatesBuilder_ == null) { + singleCoordinates_ = null; + } else { + singleCoordinates_ = null; + singleCoordinatesBuilder_ = null; + } + outOfGamut_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.internal_static_Tango_PMR_ColorLab_ConversionOutput_descriptor; + } + + public com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput build() { + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput buildPartial() { + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput result = new com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (hiveCoordinatesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + hiveCoordinates_ = java.util.Collections.unmodifiableList(hiveCoordinates_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.hiveCoordinates_ = hiveCoordinates_; + } else { + result.hiveCoordinates_ = hiveCoordinatesBuilder_.build(); + } + if (tripleCoordinatesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + tripleCoordinates_ = java.util.Collections.unmodifiableList(tripleCoordinates_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tripleCoordinates_ = tripleCoordinates_; + } else { + result.tripleCoordinates_ = tripleCoordinatesBuilder_.build(); + } + if (singleCoordinatesBuilder_ == null) { + result.singleCoordinates_ = singleCoordinates_; + } else { + result.singleCoordinates_ = singleCoordinatesBuilder_.build(); + } + result.outOfGamut_ = outOfGamut_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput) { + return mergeFrom((com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput other) { + if (other == com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput.getDefaultInstance()) return this; + if (hiveCoordinatesBuilder_ == null) { + if (!other.hiveCoordinates_.isEmpty()) { + if (hiveCoordinates_.isEmpty()) { + hiveCoordinates_ = other.hiveCoordinates_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.addAll(other.hiveCoordinates_); + } + onChanged(); + } + } else { + if (!other.hiveCoordinates_.isEmpty()) { + if (hiveCoordinatesBuilder_.isEmpty()) { + hiveCoordinatesBuilder_.dispose(); + hiveCoordinatesBuilder_ = null; + hiveCoordinates_ = other.hiveCoordinates_; + bitField0_ = (bitField0_ & ~0x00000001); + hiveCoordinatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHiveCoordinatesFieldBuilder() : null; + } else { + hiveCoordinatesBuilder_.addAllMessages(other.hiveCoordinates_); + } + } + } + if (tripleCoordinatesBuilder_ == null) { + if (!other.tripleCoordinates_.isEmpty()) { + if (tripleCoordinates_.isEmpty()) { + tripleCoordinates_ = other.tripleCoordinates_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.addAll(other.tripleCoordinates_); + } + onChanged(); + } + } else { + if (!other.tripleCoordinates_.isEmpty()) { + if (tripleCoordinatesBuilder_.isEmpty()) { + tripleCoordinatesBuilder_.dispose(); + tripleCoordinatesBuilder_ = null; + tripleCoordinates_ = other.tripleCoordinates_; + bitField0_ = (bitField0_ & ~0x00000002); + tripleCoordinatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTripleCoordinatesFieldBuilder() : null; + } else { + tripleCoordinatesBuilder_.addAllMessages(other.tripleCoordinates_); + } + } + } + if (other.hasSingleCoordinates()) { + mergeSingleCoordinates(other.getSingleCoordinates()); + } + if (other.getOutOfGamut() != false) { + setOutOfGamut(other.getOutOfGamut()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List hiveCoordinates_ = + java.util.Collections.emptyList(); + private void ensureHiveCoordinatesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + hiveCoordinates_ = new java.util.ArrayList(hiveCoordinates_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder> hiveCoordinatesBuilder_; + + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public java.util.List getHiveCoordinatesList() { + if (hiveCoordinatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(hiveCoordinates_); + } else { + return hiveCoordinatesBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public int getHiveCoordinatesCount() { + if (hiveCoordinatesBuilder_ == null) { + return hiveCoordinates_.size(); + } else { + return hiveCoordinatesBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getHiveCoordinates(int index) { + if (hiveCoordinatesBuilder_ == null) { + return hiveCoordinates_.get(index); + } else { + return hiveCoordinatesBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder setHiveCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (hiveCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.set(index, value); + onChanged(); + } else { + hiveCoordinatesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder setHiveCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (hiveCoordinatesBuilder_ == null) { + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.set(index, builderForValue.build()); + onChanged(); + } else { + hiveCoordinatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder addHiveCoordinates(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (hiveCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.add(value); + onChanged(); + } else { + hiveCoordinatesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder addHiveCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (hiveCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.add(index, value); + onChanged(); + } else { + hiveCoordinatesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder addHiveCoordinates( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (hiveCoordinatesBuilder_ == null) { + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.add(builderForValue.build()); + onChanged(); + } else { + hiveCoordinatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder addHiveCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (hiveCoordinatesBuilder_ == null) { + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.add(index, builderForValue.build()); + onChanged(); + } else { + hiveCoordinatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder addAllHiveCoordinates( + java.lang.Iterable values) { + if (hiveCoordinatesBuilder_ == null) { + ensureHiveCoordinatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hiveCoordinates_); + onChanged(); + } else { + hiveCoordinatesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder clearHiveCoordinates() { + if (hiveCoordinatesBuilder_ == null) { + hiveCoordinates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + hiveCoordinatesBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public Builder removeHiveCoordinates(int index) { + if (hiveCoordinatesBuilder_ == null) { + ensureHiveCoordinatesIsMutable(); + hiveCoordinates_.remove(index); + onChanged(); + } else { + hiveCoordinatesBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder getHiveCoordinatesBuilder( + int index) { + return getHiveCoordinatesFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getHiveCoordinatesOrBuilder( + int index) { + if (hiveCoordinatesBuilder_ == null) { + return hiveCoordinates_.get(index); } else { + return hiveCoordinatesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public java.util.List + getHiveCoordinatesOrBuilderList() { + if (hiveCoordinatesBuilder_ != null) { + return hiveCoordinatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hiveCoordinates_); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder addHiveCoordinatesBuilder() { + return getHiveCoordinatesFieldBuilder().addBuilder( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder addHiveCoordinatesBuilder( + int index) { + return getHiveCoordinatesFieldBuilder().addBuilder( + index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates HiveCoordinates = 1; + */ + public java.util.List + getHiveCoordinatesBuilderList() { + return getHiveCoordinatesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder> + getHiveCoordinatesFieldBuilder() { + if (hiveCoordinatesBuilder_ == null) { + hiveCoordinatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder>( + hiveCoordinates_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + hiveCoordinates_ = null; + } + return hiveCoordinatesBuilder_; + } + + private java.util.List tripleCoordinates_ = + java.util.Collections.emptyList(); + private void ensureTripleCoordinatesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + tripleCoordinates_ = new java.util.ArrayList(tripleCoordinates_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder> tripleCoordinatesBuilder_; + + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public java.util.List getTripleCoordinatesList() { + if (tripleCoordinatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tripleCoordinates_); + } else { + return tripleCoordinatesBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public int getTripleCoordinatesCount() { + if (tripleCoordinatesBuilder_ == null) { + return tripleCoordinates_.size(); + } else { + return tripleCoordinatesBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getTripleCoordinates(int index) { + if (tripleCoordinatesBuilder_ == null) { + return tripleCoordinates_.get(index); + } else { + return tripleCoordinatesBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder setTripleCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (tripleCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.set(index, value); + onChanged(); + } else { + tripleCoordinatesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder setTripleCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (tripleCoordinatesBuilder_ == null) { + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.set(index, builderForValue.build()); + onChanged(); + } else { + tripleCoordinatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder addTripleCoordinates(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (tripleCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.add(value); + onChanged(); + } else { + tripleCoordinatesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder addTripleCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (tripleCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.add(index, value); + onChanged(); + } else { + tripleCoordinatesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder addTripleCoordinates( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (tripleCoordinatesBuilder_ == null) { + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.add(builderForValue.build()); + onChanged(); + } else { + tripleCoordinatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder addTripleCoordinates( + int index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (tripleCoordinatesBuilder_ == null) { + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.add(index, builderForValue.build()); + onChanged(); + } else { + tripleCoordinatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder addAllTripleCoordinates( + java.lang.Iterable values) { + if (tripleCoordinatesBuilder_ == null) { + ensureTripleCoordinatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tripleCoordinates_); + onChanged(); + } else { + tripleCoordinatesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder clearTripleCoordinates() { + if (tripleCoordinatesBuilder_ == null) { + tripleCoordinates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tripleCoordinatesBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public Builder removeTripleCoordinates(int index) { + if (tripleCoordinatesBuilder_ == null) { + ensureTripleCoordinatesIsMutable(); + tripleCoordinates_.remove(index); + onChanged(); + } else { + tripleCoordinatesBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder getTripleCoordinatesBuilder( + int index) { + return getTripleCoordinatesFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getTripleCoordinatesOrBuilder( + int index) { + if (tripleCoordinatesBuilder_ == null) { + return tripleCoordinates_.get(index); } else { + return tripleCoordinatesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public java.util.List + getTripleCoordinatesOrBuilderList() { + if (tripleCoordinatesBuilder_ != null) { + return tripleCoordinatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tripleCoordinates_); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder addTripleCoordinatesBuilder() { + return getTripleCoordinatesFieldBuilder().addBuilder( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder addTripleCoordinatesBuilder( + int index) { + return getTripleCoordinatesFieldBuilder().addBuilder( + index, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.OutputCoordinates TripleCoordinates = 2; + */ + public java.util.List + getTripleCoordinatesBuilderList() { + return getTripleCoordinatesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder> + getTripleCoordinatesFieldBuilder() { + if (tripleCoordinatesBuilder_ == null) { + tripleCoordinatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder>( + tripleCoordinates_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + tripleCoordinates_ = null; + } + return tripleCoordinatesBuilder_; + } + + private com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates singleCoordinates_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder> singleCoordinatesBuilder_; + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public boolean hasSingleCoordinates() { + return singleCoordinatesBuilder_ != null || singleCoordinates_ != null; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getSingleCoordinates() { + if (singleCoordinatesBuilder_ == null) { + return singleCoordinates_ == null ? com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance() : singleCoordinates_; + } else { + return singleCoordinatesBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public Builder setSingleCoordinates(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (singleCoordinatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + singleCoordinates_ = value; + onChanged(); + } else { + singleCoordinatesBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public Builder setSingleCoordinates( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder builderForValue) { + if (singleCoordinatesBuilder_ == null) { + singleCoordinates_ = builderForValue.build(); + onChanged(); + } else { + singleCoordinatesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public Builder mergeSingleCoordinates(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates value) { + if (singleCoordinatesBuilder_ == null) { + if (singleCoordinates_ != null) { + singleCoordinates_ = + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.newBuilder(singleCoordinates_).mergeFrom(value).buildPartial(); + } else { + singleCoordinates_ = value; + } + onChanged(); + } else { + singleCoordinatesBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public Builder clearSingleCoordinates() { + if (singleCoordinatesBuilder_ == null) { + singleCoordinates_ = null; + onChanged(); + } else { + singleCoordinates_ = null; + singleCoordinatesBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder getSingleCoordinatesBuilder() { + + onChanged(); + return getSingleCoordinatesFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder getSingleCoordinatesOrBuilder() { + if (singleCoordinatesBuilder_ != null) { + return singleCoordinatesBuilder_.getMessageOrBuilder(); + } else { + return singleCoordinates_ == null ? + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance() : singleCoordinates_; + } + } + /** + * .Tango.PMR.ColorLab.OutputCoordinates SingleCoordinates = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder> + getSingleCoordinatesFieldBuilder() { + if (singleCoordinatesBuilder_ == null) { + singleCoordinatesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder>( + getSingleCoordinates(), + getParentForChildren(), + isClean()); + singleCoordinates_ = null; + } + return singleCoordinatesBuilder_; + } + + private boolean outOfGamut_ ; + /** + * bool OutOfGamut = 5; + */ + public boolean getOutOfGamut() { + return outOfGamut_; + } + /** + * bool OutOfGamut = 5; + */ + public Builder setOutOfGamut(boolean value) { + + outOfGamut_ = value; + onChanged(); + return this; + } + /** + * bool OutOfGamut = 5; + */ + public Builder clearOutOfGamut() { + + outOfGamut_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.ConversionOutput) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.ConversionOutput) + private static final com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput(); + } + + public static com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ConversionOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversionOutput(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.ConversionOutputOuterClass.ConversionOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_ConversionOutput_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_ConversionOutput_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\026ConversionOutput.proto\022\022Tango.PMR.Colo" + + "rLab\032\027OutputCoordinates.proto\"\352\001\n\020Conver" + + "sionOutput\022>\n\017HiveCoordinates\030\001 \003(\0132%.Ta" + + "ngo.PMR.ColorLab.OutputCoordinates\022@\n\021Tr" + + "ipleCoordinates\030\002 \003(\0132%.Tango.PMR.ColorL" + + "ab.OutputCoordinates\022@\n\021SingleCoordinate" + + "s\030\003 \001(\0132%.Tango.PMR.ColorLab.OutputCoord" + + "inates\022\022\n\nOutOfGamut\030\005 \001(\010B\036\n\034com.twine." + + "tango.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_ConversionOutput_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_ConversionOutput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_ConversionOutput_descriptor, + new java.lang.String[] { "HiveCoordinates", "TripleCoordinates", "SingleCoordinates", "OutOfGamut", }); + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputCoordinatesOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputCoordinatesOuterClass.java new file mode 100644 index 000000000..e66dacc59 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputCoordinatesOuterClass.java @@ -0,0 +1,1601 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InputCoordinates.proto + +package com.twine.tango.pmr.colorlab; + +public final class InputCoordinatesOuterClass { + private InputCoordinatesOuterClass() {} + 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 InputCoordinatesOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.InputCoordinates) + com.google.protobuf.MessageOrBuilder { + + /** + * double Length = 1; + */ + double getLength(); + + /** + * int32 Red = 2; + */ + int getRed(); + + /** + * int32 Green = 3; + */ + int getGreen(); + + /** + * int32 Blue = 4; + */ + int getBlue(); + + /** + * double Cyan = 5; + */ + double getCyan(); + + /** + * double Magenta = 6; + */ + double getMagenta(); + + /** + * double Yellow = 7; + */ + double getYellow(); + + /** + * double Key = 8; + */ + double getKey(); + + /** + * double L = 9; + */ + double getL(); + + /** + * double A = 10; + */ + double getA(); + + /** + * double B = 11; + */ + double getB(); + + /** + * int32 PantonCode = 12; + */ + int getPantonCode(); + + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + java.util.List + getInputLiquidsList(); + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid getInputLiquids(int index); + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + int getInputLiquidsCount(); + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + java.util.List + getInputLiquidsOrBuilderList(); + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder getInputLiquidsOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.InputCoordinates} + */ + public static final class InputCoordinates extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.InputCoordinates) + InputCoordinatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputCoordinates.newBuilder() to construct. + private InputCoordinates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputCoordinates() { + length_ = 0D; + red_ = 0; + green_ = 0; + blue_ = 0; + cyan_ = 0D; + magenta_ = 0D; + yellow_ = 0D; + key_ = 0D; + l_ = 0D; + a_ = 0D; + b_ = 0D; + pantonCode_ = 0; + inputLiquids_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InputCoordinates( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + length_ = input.readDouble(); + break; + } + case 16: { + + red_ = input.readInt32(); + break; + } + case 24: { + + green_ = input.readInt32(); + break; + } + case 32: { + + blue_ = input.readInt32(); + break; + } + case 41: { + + cyan_ = input.readDouble(); + break; + } + case 49: { + + magenta_ = input.readDouble(); + break; + } + case 57: { + + yellow_ = input.readDouble(); + break; + } + case 65: { + + key_ = input.readDouble(); + break; + } + case 73: { + + l_ = input.readDouble(); + break; + } + case 81: { + + a_ = input.readDouble(); + break; + } + case 89: { + + b_ = input.readDouble(); + break; + } + case 96: { + + pantonCode_ = input.readInt32(); + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + inputLiquids_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + inputLiquids_.add( + input.readMessage(com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + inputLiquids_ = java.util.Collections.unmodifiableList(inputLiquids_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_InputCoordinates_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_InputCoordinates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.class, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder.class); + } + + private int bitField0_; + public static final int LENGTH_FIELD_NUMBER = 1; + private double length_; + /** + * double Length = 1; + */ + public double getLength() { + return length_; + } + + public static final int RED_FIELD_NUMBER = 2; + private int red_; + /** + * int32 Red = 2; + */ + public int getRed() { + return red_; + } + + public static final int GREEN_FIELD_NUMBER = 3; + private int green_; + /** + * int32 Green = 3; + */ + public int getGreen() { + return green_; + } + + public static final int BLUE_FIELD_NUMBER = 4; + private int blue_; + /** + * int32 Blue = 4; + */ + public int getBlue() { + return blue_; + } + + public static final int CYAN_FIELD_NUMBER = 5; + private double cyan_; + /** + * double Cyan = 5; + */ + public double getCyan() { + return cyan_; + } + + public static final int MAGENTA_FIELD_NUMBER = 6; + private double magenta_; + /** + * double Magenta = 6; + */ + public double getMagenta() { + return magenta_; + } + + public static final int YELLOW_FIELD_NUMBER = 7; + private double yellow_; + /** + * double Yellow = 7; + */ + public double getYellow() { + return yellow_; + } + + public static final int KEY_FIELD_NUMBER = 8; + private double key_; + /** + * double Key = 8; + */ + public double getKey() { + return key_; + } + + public static final int L_FIELD_NUMBER = 9; + private double l_; + /** + * double L = 9; + */ + public double getL() { + return l_; + } + + public static final int A_FIELD_NUMBER = 10; + private double a_; + /** + * double A = 10; + */ + public double getA() { + return a_; + } + + public static final int B_FIELD_NUMBER = 11; + private double b_; + /** + * double B = 11; + */ + public double getB() { + return b_; + } + + public static final int PANTONCODE_FIELD_NUMBER = 12; + private int pantonCode_; + /** + * int32 PantonCode = 12; + */ + public int getPantonCode() { + return pantonCode_; + } + + public static final int INPUTLIQUIDS_FIELD_NUMBER = 13; + private java.util.List inputLiquids_; + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public java.util.List getInputLiquidsList() { + return inputLiquids_; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public java.util.List + getInputLiquidsOrBuilderList() { + return inputLiquids_; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public int getInputLiquidsCount() { + return inputLiquids_.size(); + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid getInputLiquids(int index) { + return inputLiquids_.get(index); + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder getInputLiquidsOrBuilder( + int index) { + return inputLiquids_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (length_ != 0D) { + output.writeDouble(1, length_); + } + if (red_ != 0) { + output.writeInt32(2, red_); + } + if (green_ != 0) { + output.writeInt32(3, green_); + } + if (blue_ != 0) { + output.writeInt32(4, blue_); + } + if (cyan_ != 0D) { + output.writeDouble(5, cyan_); + } + if (magenta_ != 0D) { + output.writeDouble(6, magenta_); + } + if (yellow_ != 0D) { + output.writeDouble(7, yellow_); + } + if (key_ != 0D) { + output.writeDouble(8, key_); + } + if (l_ != 0D) { + output.writeDouble(9, l_); + } + if (a_ != 0D) { + output.writeDouble(10, a_); + } + if (b_ != 0D) { + output.writeDouble(11, b_); + } + if (pantonCode_ != 0) { + output.writeInt32(12, pantonCode_); + } + for (int i = 0; i < inputLiquids_.size(); i++) { + output.writeMessage(13, inputLiquids_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (length_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, length_); + } + if (red_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, red_); + } + if (green_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, green_); + } + if (blue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, blue_); + } + if (cyan_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, cyan_); + } + if (magenta_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, magenta_); + } + if (yellow_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, yellow_); + } + if (key_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, key_); + } + if (l_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, l_); + } + if (a_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, a_); + } + if (b_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, b_); + } + if (pantonCode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, pantonCode_); + } + for (int i = 0; i < inputLiquids_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, inputLiquids_.get(i)); + } + 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 com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates other = (com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getLength()) + == java.lang.Double.doubleToLongBits( + other.getLength())); + result = result && (getRed() + == other.getRed()); + result = result && (getGreen() + == other.getGreen()); + result = result && (getBlue() + == other.getBlue()); + result = result && ( + java.lang.Double.doubleToLongBits(getCyan()) + == java.lang.Double.doubleToLongBits( + other.getCyan())); + result = result && ( + java.lang.Double.doubleToLongBits(getMagenta()) + == java.lang.Double.doubleToLongBits( + other.getMagenta())); + result = result && ( + java.lang.Double.doubleToLongBits(getYellow()) + == java.lang.Double.doubleToLongBits( + other.getYellow())); + result = result && ( + java.lang.Double.doubleToLongBits(getKey()) + == java.lang.Double.doubleToLongBits( + other.getKey())); + result = result && ( + java.lang.Double.doubleToLongBits(getL()) + == java.lang.Double.doubleToLongBits( + other.getL())); + result = result && ( + java.lang.Double.doubleToLongBits(getA()) + == java.lang.Double.doubleToLongBits( + other.getA())); + result = result && ( + java.lang.Double.doubleToLongBits(getB()) + == java.lang.Double.doubleToLongBits( + other.getB())); + result = result && (getPantonCode() + == other.getPantonCode()); + result = result && getInputLiquidsList() + .equals(other.getInputLiquidsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLength())); + hash = (37 * hash) + RED_FIELD_NUMBER; + hash = (53 * hash) + getRed(); + hash = (37 * hash) + GREEN_FIELD_NUMBER; + hash = (53 * hash) + getGreen(); + hash = (37 * hash) + BLUE_FIELD_NUMBER; + hash = (53 * hash) + getBlue(); + hash = (37 * hash) + CYAN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCyan())); + hash = (37 * hash) + MAGENTA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMagenta())); + hash = (37 * hash) + YELLOW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getYellow())); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKey())); + hash = (37 * hash) + L_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getL())); + hash = (37 * hash) + A_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getA())); + hash = (37 * hash) + B_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getB())); + hash = (37 * hash) + PANTONCODE_FIELD_NUMBER; + hash = (53 * hash) + getPantonCode(); + if (getInputLiquidsCount() > 0) { + hash = (37 * hash) + INPUTLIQUIDS_FIELD_NUMBER; + hash = (53 * hash) + getInputLiquidsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates 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 com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates 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 com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.InputCoordinates} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.InputCoordinates) + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_InputCoordinates_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_InputCoordinates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.class, com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getInputLiquidsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + length_ = 0D; + + red_ = 0; + + green_ = 0; + + blue_ = 0; + + cyan_ = 0D; + + magenta_ = 0D; + + yellow_ = 0D; + + key_ = 0D; + + l_ = 0D; + + a_ = 0D; + + b_ = 0D; + + pantonCode_ = 0; + + if (inputLiquidsBuilder_ == null) { + inputLiquids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + } else { + inputLiquidsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_InputCoordinates_descriptor; + } + + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates build() { + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates buildPartial() { + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates result = new com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.length_ = length_; + result.red_ = red_; + result.green_ = green_; + result.blue_ = blue_; + result.cyan_ = cyan_; + result.magenta_ = magenta_; + result.yellow_ = yellow_; + result.key_ = key_; + result.l_ = l_; + result.a_ = a_; + result.b_ = b_; + result.pantonCode_ = pantonCode_; + if (inputLiquidsBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000)) { + inputLiquids_ = java.util.Collections.unmodifiableList(inputLiquids_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.inputLiquids_ = inputLiquids_; + } else { + result.inputLiquids_ = inputLiquidsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates) { + return mergeFrom((com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates other) { + if (other == com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates.getDefaultInstance()) return this; + if (other.getLength() != 0D) { + setLength(other.getLength()); + } + if (other.getRed() != 0) { + setRed(other.getRed()); + } + if (other.getGreen() != 0) { + setGreen(other.getGreen()); + } + if (other.getBlue() != 0) { + setBlue(other.getBlue()); + } + if (other.getCyan() != 0D) { + setCyan(other.getCyan()); + } + if (other.getMagenta() != 0D) { + setMagenta(other.getMagenta()); + } + if (other.getYellow() != 0D) { + setYellow(other.getYellow()); + } + if (other.getKey() != 0D) { + setKey(other.getKey()); + } + if (other.getL() != 0D) { + setL(other.getL()); + } + if (other.getA() != 0D) { + setA(other.getA()); + } + if (other.getB() != 0D) { + setB(other.getB()); + } + if (other.getPantonCode() != 0) { + setPantonCode(other.getPantonCode()); + } + if (inputLiquidsBuilder_ == null) { + if (!other.inputLiquids_.isEmpty()) { + if (inputLiquids_.isEmpty()) { + inputLiquids_ = other.inputLiquids_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureInputLiquidsIsMutable(); + inputLiquids_.addAll(other.inputLiquids_); + } + onChanged(); + } + } else { + if (!other.inputLiquids_.isEmpty()) { + if (inputLiquidsBuilder_.isEmpty()) { + inputLiquidsBuilder_.dispose(); + inputLiquidsBuilder_ = null; + inputLiquids_ = other.inputLiquids_; + bitField0_ = (bitField0_ & ~0x00001000); + inputLiquidsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInputLiquidsFieldBuilder() : null; + } else { + inputLiquidsBuilder_.addAllMessages(other.inputLiquids_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private double length_ ; + /** + * double Length = 1; + */ + public double getLength() { + return length_; + } + /** + * double Length = 1; + */ + public Builder setLength(double value) { + + length_ = value; + onChanged(); + return this; + } + /** + * double Length = 1; + */ + public Builder clearLength() { + + length_ = 0D; + onChanged(); + return this; + } + + private int red_ ; + /** + * int32 Red = 2; + */ + public int getRed() { + return red_; + } + /** + * int32 Red = 2; + */ + public Builder setRed(int value) { + + red_ = value; + onChanged(); + return this; + } + /** + * int32 Red = 2; + */ + public Builder clearRed() { + + red_ = 0; + onChanged(); + return this; + } + + private int green_ ; + /** + * int32 Green = 3; + */ + public int getGreen() { + return green_; + } + /** + * int32 Green = 3; + */ + public Builder setGreen(int value) { + + green_ = value; + onChanged(); + return this; + } + /** + * int32 Green = 3; + */ + public Builder clearGreen() { + + green_ = 0; + onChanged(); + return this; + } + + private int blue_ ; + /** + * int32 Blue = 4; + */ + public int getBlue() { + return blue_; + } + /** + * int32 Blue = 4; + */ + public Builder setBlue(int value) { + + blue_ = value; + onChanged(); + return this; + } + /** + * int32 Blue = 4; + */ + public Builder clearBlue() { + + blue_ = 0; + onChanged(); + return this; + } + + private double cyan_ ; + /** + * double Cyan = 5; + */ + public double getCyan() { + return cyan_; + } + /** + * double Cyan = 5; + */ + public Builder setCyan(double value) { + + cyan_ = value; + onChanged(); + return this; + } + /** + * double Cyan = 5; + */ + public Builder clearCyan() { + + cyan_ = 0D; + onChanged(); + return this; + } + + private double magenta_ ; + /** + * double Magenta = 6; + */ + public double getMagenta() { + return magenta_; + } + /** + * double Magenta = 6; + */ + public Builder setMagenta(double value) { + + magenta_ = value; + onChanged(); + return this; + } + /** + * double Magenta = 6; + */ + public Builder clearMagenta() { + + magenta_ = 0D; + onChanged(); + return this; + } + + private double yellow_ ; + /** + * double Yellow = 7; + */ + public double getYellow() { + return yellow_; + } + /** + * double Yellow = 7; + */ + public Builder setYellow(double value) { + + yellow_ = value; + onChanged(); + return this; + } + /** + * double Yellow = 7; + */ + public Builder clearYellow() { + + yellow_ = 0D; + onChanged(); + return this; + } + + private double key_ ; + /** + * double Key = 8; + */ + public double getKey() { + return key_; + } + /** + * double Key = 8; + */ + public Builder setKey(double value) { + + key_ = value; + onChanged(); + return this; + } + /** + * double Key = 8; + */ + public Builder clearKey() { + + key_ = 0D; + onChanged(); + return this; + } + + private double l_ ; + /** + * double L = 9; + */ + public double getL() { + return l_; + } + /** + * double L = 9; + */ + public Builder setL(double value) { + + l_ = value; + onChanged(); + return this; + } + /** + * double L = 9; + */ + public Builder clearL() { + + l_ = 0D; + onChanged(); + return this; + } + + private double a_ ; + /** + * double A = 10; + */ + public double getA() { + return a_; + } + /** + * double A = 10; + */ + public Builder setA(double value) { + + a_ = value; + onChanged(); + return this; + } + /** + * double A = 10; + */ + public Builder clearA() { + + a_ = 0D; + onChanged(); + return this; + } + + private double b_ ; + /** + * double B = 11; + */ + public double getB() { + return b_; + } + /** + * double B = 11; + */ + public Builder setB(double value) { + + b_ = value; + onChanged(); + return this; + } + /** + * double B = 11; + */ + public Builder clearB() { + + b_ = 0D; + onChanged(); + return this; + } + + private int pantonCode_ ; + /** + * int32 PantonCode = 12; + */ + public int getPantonCode() { + return pantonCode_; + } + /** + * int32 PantonCode = 12; + */ + public Builder setPantonCode(int value) { + + pantonCode_ = value; + onChanged(); + return this; + } + /** + * int32 PantonCode = 12; + */ + public Builder clearPantonCode() { + + pantonCode_ = 0; + onChanged(); + return this; + } + + private java.util.List inputLiquids_ = + java.util.Collections.emptyList(); + private void ensureInputLiquidsIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + inputLiquids_ = new java.util.ArrayList(inputLiquids_); + bitField0_ |= 0x00001000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder> inputLiquidsBuilder_; + + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public java.util.List getInputLiquidsList() { + if (inputLiquidsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputLiquids_); + } else { + return inputLiquidsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public int getInputLiquidsCount() { + if (inputLiquidsBuilder_ == null) { + return inputLiquids_.size(); + } else { + return inputLiquidsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid getInputLiquids(int index) { + if (inputLiquidsBuilder_ == null) { + return inputLiquids_.get(index); + } else { + return inputLiquidsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder setInputLiquids( + int index, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid value) { + if (inputLiquidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputLiquidsIsMutable(); + inputLiquids_.set(index, value); + onChanged(); + } else { + inputLiquidsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder setInputLiquids( + int index, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder builderForValue) { + if (inputLiquidsBuilder_ == null) { + ensureInputLiquidsIsMutable(); + inputLiquids_.set(index, builderForValue.build()); + onChanged(); + } else { + inputLiquidsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder addInputLiquids(com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid value) { + if (inputLiquidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputLiquidsIsMutable(); + inputLiquids_.add(value); + onChanged(); + } else { + inputLiquidsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder addInputLiquids( + int index, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid value) { + if (inputLiquidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputLiquidsIsMutable(); + inputLiquids_.add(index, value); + onChanged(); + } else { + inputLiquidsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder addInputLiquids( + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder builderForValue) { + if (inputLiquidsBuilder_ == null) { + ensureInputLiquidsIsMutable(); + inputLiquids_.add(builderForValue.build()); + onChanged(); + } else { + inputLiquidsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder addInputLiquids( + int index, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder builderForValue) { + if (inputLiquidsBuilder_ == null) { + ensureInputLiquidsIsMutable(); + inputLiquids_.add(index, builderForValue.build()); + onChanged(); + } else { + inputLiquidsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder addAllInputLiquids( + java.lang.Iterable values) { + if (inputLiquidsBuilder_ == null) { + ensureInputLiquidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, inputLiquids_); + onChanged(); + } else { + inputLiquidsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder clearInputLiquids() { + if (inputLiquidsBuilder_ == null) { + inputLiquids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + } else { + inputLiquidsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public Builder removeInputLiquids(int index) { + if (inputLiquidsBuilder_ == null) { + ensureInputLiquidsIsMutable(); + inputLiquids_.remove(index); + onChanged(); + } else { + inputLiquidsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder getInputLiquidsBuilder( + int index) { + return getInputLiquidsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder getInputLiquidsOrBuilder( + int index) { + if (inputLiquidsBuilder_ == null) { + return inputLiquids_.get(index); } else { + return inputLiquidsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public java.util.List + getInputLiquidsOrBuilderList() { + if (inputLiquidsBuilder_ != null) { + return inputLiquidsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputLiquids_); + } + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder addInputLiquidsBuilder() { + return getInputLiquidsFieldBuilder().addBuilder( + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder addInputLiquidsBuilder( + int index) { + return getInputLiquidsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.InputLiquid InputLiquids = 13; + */ + public java.util.List + getInputLiquidsBuilderList() { + return getInputLiquidsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder> + getInputLiquidsFieldBuilder() { + if (inputLiquidsBuilder_ == null) { + inputLiquidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder>( + inputLiquids_, + ((bitField0_ & 0x00001000) == 0x00001000), + getParentForChildren(), + isClean()); + inputLiquids_ = null; + } + return inputLiquidsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.InputCoordinates) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.InputCoordinates) + private static final com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates(); + } + + public static com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public InputCoordinates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputCoordinates(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.InputCoordinatesOuterClass.InputCoordinates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_InputCoordinates_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_InputCoordinates_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\026InputCoordinates.proto\022\022Tango.PMR.Colo" + + "rLab\032\021InputLiquid.proto\"\364\001\n\020InputCoordin" + + "ates\022\016\n\006Length\030\001 \001(\001\022\013\n\003Red\030\002 \001(\005\022\r\n\005Gre" + + "en\030\003 \001(\005\022\014\n\004Blue\030\004 \001(\005\022\014\n\004Cyan\030\005 \001(\001\022\017\n\007" + + "Magenta\030\006 \001(\001\022\016\n\006Yellow\030\007 \001(\001\022\013\n\003Key\030\010 \001" + + "(\001\022\t\n\001L\030\t \001(\001\022\t\n\001A\030\n \001(\001\022\t\n\001B\030\013 \001(\001\022\022\n\nP" + + "antonCode\030\014 \001(\005\0225\n\014InputLiquids\030\r \003(\0132\037." + + "Tango.PMR.ColorLab.InputLiquidB\036\n\034com.tw" + + "ine.tango.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_InputCoordinates_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_InputCoordinates_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_InputCoordinates_descriptor, + new java.lang.String[] { "Length", "Red", "Green", "Blue", "Cyan", "Magenta", "Yellow", "Key", "L", "A", "B", "PantonCode", "InputLiquids", }); + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputLiquidOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputLiquidOuterClass.java new file mode 100644 index 000000000..ac3f2b347 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/InputLiquidOuterClass.java @@ -0,0 +1,868 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InputLiquid.proto + +package com.twine.tango.pmr.colorlab; + +public final class InputLiquidOuterClass { + private InputLiquidOuterClass() {} + 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 InputLiquidOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.InputLiquid) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + int getLiquidTypeValue(); + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType(); + + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + boolean hasCalibrationData(); + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData getCalibrationData(); + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder getCalibrationDataOrBuilder(); + + /** + * double MaxNanoliterPerCentimeter = 3; + */ + double getMaxNanoliterPerCentimeter(); + + /** + * double Volume = 4; + */ + double getVolume(); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.InputLiquid} + */ + public static final class InputLiquid extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.InputLiquid) + InputLiquidOrBuilder { + private static final long serialVersionUID = 0L; + // Use InputLiquid.newBuilder() to construct. + private InputLiquid(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InputLiquid() { + liquidType_ = 0; + maxNanoliterPerCentimeter_ = 0D; + volume_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InputLiquid( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + liquidType_ = rawValue; + break; + } + case 18: { + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder subBuilder = null; + if (calibrationData_ != null) { + subBuilder = calibrationData_.toBuilder(); + } + calibrationData_ = input.readMessage(com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(calibrationData_); + calibrationData_ = subBuilder.buildPartial(); + } + + break; + } + case 25: { + + maxNanoliterPerCentimeter_ = input.readDouble(); + break; + } + case 33: { + + volume_ = input.readDouble(); + 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 com.twine.tango.pmr.colorlab.InputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_InputLiquid_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.InputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_InputLiquid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.class, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder.class); + } + + public static final int LIQUIDTYPE_FIELD_NUMBER = 1; + private int liquidType_; + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public int getLiquidTypeValue() { + return liquidType_; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType() { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType result = com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.valueOf(liquidType_); + return result == null ? com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.UNRECOGNIZED : result; + } + + public static final int CALIBRATIONDATA_FIELD_NUMBER = 2; + private com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData calibrationData_; + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public boolean hasCalibrationData() { + return calibrationData_ != null; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData getCalibrationData() { + return calibrationData_ == null ? com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.getDefaultInstance() : calibrationData_; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder getCalibrationDataOrBuilder() { + return getCalibrationData(); + } + + public static final int MAXNANOLITERPERCENTIMETER_FIELD_NUMBER = 3; + private double maxNanoliterPerCentimeter_; + /** + * double MaxNanoliterPerCentimeter = 3; + */ + public double getMaxNanoliterPerCentimeter() { + return maxNanoliterPerCentimeter_; + } + + public static final int VOLUME_FIELD_NUMBER = 4; + private double volume_; + /** + * double Volume = 4; + */ + public double getVolume() { + return volume_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (liquidType_ != com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.Cyan.getNumber()) { + output.writeEnum(1, liquidType_); + } + if (calibrationData_ != null) { + output.writeMessage(2, getCalibrationData()); + } + if (maxNanoliterPerCentimeter_ != 0D) { + output.writeDouble(3, maxNanoliterPerCentimeter_); + } + if (volume_ != 0D) { + output.writeDouble(4, volume_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (liquidType_ != com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.Cyan.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, liquidType_); + } + if (calibrationData_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCalibrationData()); + } + if (maxNanoliterPerCentimeter_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, maxNanoliterPerCentimeter_); + } + if (volume_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, volume_); + } + 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 com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid other = (com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid) obj; + + boolean result = true; + result = result && liquidType_ == other.liquidType_; + result = result && (hasCalibrationData() == other.hasCalibrationData()); + if (hasCalibrationData()) { + result = result && getCalibrationData() + .equals(other.getCalibrationData()); + } + result = result && ( + java.lang.Double.doubleToLongBits(getMaxNanoliterPerCentimeter()) + == java.lang.Double.doubleToLongBits( + other.getMaxNanoliterPerCentimeter())); + result = result && ( + java.lang.Double.doubleToLongBits(getVolume()) + == java.lang.Double.doubleToLongBits( + other.getVolume())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LIQUIDTYPE_FIELD_NUMBER; + hash = (53 * hash) + liquidType_; + if (hasCalibrationData()) { + hash = (37 * hash) + CALIBRATIONDATA_FIELD_NUMBER; + hash = (53 * hash) + getCalibrationData().hashCode(); + } + hash = (37 * hash) + MAXNANOLITERPERCENTIMETER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxNanoliterPerCentimeter())); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolume())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid 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 com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid 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 com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.InputLiquid} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.InputLiquid) + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.InputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_InputLiquid_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.InputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_InputLiquid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.class, com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + liquidType_ = 0; + + if (calibrationDataBuilder_ == null) { + calibrationData_ = null; + } else { + calibrationData_ = null; + calibrationDataBuilder_ = null; + } + maxNanoliterPerCentimeter_ = 0D; + + volume_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.InputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_InputLiquid_descriptor; + } + + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid build() { + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid buildPartial() { + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid result = new com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid(this); + result.liquidType_ = liquidType_; + if (calibrationDataBuilder_ == null) { + result.calibrationData_ = calibrationData_; + } else { + result.calibrationData_ = calibrationDataBuilder_.build(); + } + result.maxNanoliterPerCentimeter_ = maxNanoliterPerCentimeter_; + result.volume_ = volume_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid) { + return mergeFrom((com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid other) { + if (other == com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid.getDefaultInstance()) return this; + if (other.liquidType_ != 0) { + setLiquidTypeValue(other.getLiquidTypeValue()); + } + if (other.hasCalibrationData()) { + mergeCalibrationData(other.getCalibrationData()); + } + if (other.getMaxNanoliterPerCentimeter() != 0D) { + setMaxNanoliterPerCentimeter(other.getMaxNanoliterPerCentimeter()); + } + if (other.getVolume() != 0D) { + setVolume(other.getVolume()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int liquidType_ = 0; + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public int getLiquidTypeValue() { + return liquidType_; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder setLiquidTypeValue(int value) { + liquidType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType() { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType result = com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.valueOf(liquidType_); + return result == null ? com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder setLiquidType(com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType value) { + if (value == null) { + throw new NullPointerException(); + } + + liquidType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder clearLiquidType() { + + liquidType_ = 0; + onChanged(); + return this; + } + + private com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData calibrationData_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder> calibrationDataBuilder_; + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public boolean hasCalibrationData() { + return calibrationDataBuilder_ != null || calibrationData_ != null; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData getCalibrationData() { + if (calibrationDataBuilder_ == null) { + return calibrationData_ == null ? com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.getDefaultInstance() : calibrationData_; + } else { + return calibrationDataBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public Builder setCalibrationData(com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData value) { + if (calibrationDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + calibrationData_ = value; + onChanged(); + } else { + calibrationDataBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public Builder setCalibrationData( + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder builderForValue) { + if (calibrationDataBuilder_ == null) { + calibrationData_ = builderForValue.build(); + onChanged(); + } else { + calibrationDataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public Builder mergeCalibrationData(com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData value) { + if (calibrationDataBuilder_ == null) { + if (calibrationData_ != null) { + calibrationData_ = + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.newBuilder(calibrationData_).mergeFrom(value).buildPartial(); + } else { + calibrationData_ = value; + } + onChanged(); + } else { + calibrationDataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public Builder clearCalibrationData() { + if (calibrationDataBuilder_ == null) { + calibrationData_ = null; + onChanged(); + } else { + calibrationData_ = null; + calibrationDataBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder getCalibrationDataBuilder() { + + onChanged(); + return getCalibrationDataFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + public com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder getCalibrationDataOrBuilder() { + if (calibrationDataBuilder_ != null) { + return calibrationDataBuilder_.getMessageOrBuilder(); + } else { + return calibrationData_ == null ? + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.getDefaultInstance() : calibrationData_; + } + } + /** + * .Tango.PMR.ColorLab.CalibrationData CalibrationData = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder> + getCalibrationDataFieldBuilder() { + if (calibrationDataBuilder_ == null) { + calibrationDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationData.Builder, com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.CalibrationDataOrBuilder>( + getCalibrationData(), + getParentForChildren(), + isClean()); + calibrationData_ = null; + } + return calibrationDataBuilder_; + } + + private double maxNanoliterPerCentimeter_ ; + /** + * double MaxNanoliterPerCentimeter = 3; + */ + public double getMaxNanoliterPerCentimeter() { + return maxNanoliterPerCentimeter_; + } + /** + * double MaxNanoliterPerCentimeter = 3; + */ + public Builder setMaxNanoliterPerCentimeter(double value) { + + maxNanoliterPerCentimeter_ = value; + onChanged(); + return this; + } + /** + * double MaxNanoliterPerCentimeter = 3; + */ + public Builder clearMaxNanoliterPerCentimeter() { + + maxNanoliterPerCentimeter_ = 0D; + onChanged(); + return this; + } + + private double volume_ ; + /** + * double Volume = 4; + */ + public double getVolume() { + return volume_; + } + /** + * double Volume = 4; + */ + public Builder setVolume(double value) { + + volume_ = value; + onChanged(); + return this; + } + /** + * double Volume = 4; + */ + public Builder clearVolume() { + + volume_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.InputLiquid) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.InputLiquid) + private static final com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid(); + } + + public static com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public InputLiquid parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InputLiquid(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.InputLiquidOuterClass.InputLiquid getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_InputLiquid_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_InputLiquid_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\021InputLiquid.proto\022\022Tango.PMR.ColorLab\032" + + "\020LiquidType.proto\032\025CalibrationData.proto" + + "\"\262\001\n\013InputLiquid\0222\n\nLiquidType\030\001 \001(\0162\036.T" + + "ango.PMR.ColorLab.LiquidType\022<\n\017Calibrat" + + "ionData\030\002 \001(\0132#.Tango.PMR.ColorLab.Calib" + + "rationData\022!\n\031MaxNanoliterPerCentimeter\030" + + "\003 \001(\001\022\016\n\006Volume\030\004 \001(\001B\036\n\034com.twine.tango" + + ".pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor(), + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_InputLiquid_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_InputLiquid_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_InputLiquid_descriptor, + new java.lang.String[] { "LiquidType", "CalibrationData", "MaxNanoliterPerCentimeter", "Volume", }); + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor(); + com.twine.tango.pmr.colorlab.CalibrationDataOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/LiquidTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/LiquidTypeOuterClass.java new file mode 100644 index 000000000..e3667ed74 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/LiquidTypeOuterClass.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LiquidType.proto + +package com.twine.tango.pmr.colorlab; + +public final class LiquidTypeOuterClass { + private LiquidTypeOuterClass() {} + 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 Tango.PMR.ColorLab.LiquidType} + */ + public enum LiquidType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Cyan = 0; + */ + Cyan(0), + /** + * Magenta = 1; + */ + Magenta(1), + /** + * Yellow = 2; + */ + Yellow(2), + /** + * Black = 3; + */ + Black(3), + /** + * TransparentInk = 4; + */ + TransparentInk(4), + /** + * Lubricant = 5; + */ + Lubricant(5), + /** + * Red = 7; + */ + Red(7), + UNRECOGNIZED(-1), + ; + + /** + * Cyan = 0; + */ + public static final int Cyan_VALUE = 0; + /** + * Magenta = 1; + */ + public static final int Magenta_VALUE = 1; + /** + * Yellow = 2; + */ + public static final int Yellow_VALUE = 2; + /** + * Black = 3; + */ + public static final int Black_VALUE = 3; + /** + * TransparentInk = 4; + */ + public static final int TransparentInk_VALUE = 4; + /** + * Lubricant = 5; + */ + public static final int Lubricant_VALUE = 5; + /** + * Red = 7; + */ + public static final int Red_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LiquidType valueOf(int value) { + return forNumber(value); + } + + public static LiquidType forNumber(int value) { + switch (value) { + case 0: return Cyan; + case 1: return Magenta; + case 2: return Yellow; + case 3: return Black; + case 4: return TransparentInk; + case 5: return Lubricant; + case 7: return Red; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + LiquidType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LiquidType findValueByNumber(int number) { + return LiquidType.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 com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final LiquidType[] VALUES = values(); + + public static LiquidType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LiquidType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.ColorLab.LiquidType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\020LiquidType.proto\022\022Tango.PMR.ColorLab*f" + + "\n\nLiquidType\022\010\n\004Cyan\020\000\022\013\n\007Magenta\020\001\022\n\n\006Y" + + "ellow\020\002\022\t\n\005Black\020\003\022\022\n\016TransparentInk\020\004\022\r" + + "\n\tLubricant\020\005\022\007\n\003Red\020\007B\036\n\034com.twine.tang" + + "o.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputCoordinatesOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputCoordinatesOuterClass.java new file mode 100644 index 000000000..f7354549b --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputCoordinatesOuterClass.java @@ -0,0 +1,1071 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OutputCoordinates.proto + +package com.twine.tango.pmr.colorlab; + +public final class OutputCoordinatesOuterClass { + private OutputCoordinatesOuterClass() {} + 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 OutputCoordinatesOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.OutputCoordinates) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Red = 1; + */ + int getRed(); + + /** + * int32 Green = 2; + */ + int getGreen(); + + /** + * int32 Blue = 3; + */ + int getBlue(); + + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + java.util.List + getOutputLiquidsList(); + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid getOutputLiquids(int index); + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + int getOutputLiquidsCount(); + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + java.util.List + getOutputLiquidsOrBuilderList(); + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder getOutputLiquidsOrBuilder( + int index); + + /** + * int32 ProcessParametersTableIndex = 5; + */ + int getProcessParametersTableIndex(); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.OutputCoordinates} + */ + public static final class OutputCoordinates extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.OutputCoordinates) + OutputCoordinatesOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputCoordinates.newBuilder() to construct. + private OutputCoordinates(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputCoordinates() { + red_ = 0; + green_ = 0; + blue_ = 0; + outputLiquids_ = java.util.Collections.emptyList(); + processParametersTableIndex_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputCoordinates( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + red_ = input.readInt32(); + break; + } + case 16: { + + green_ = input.readInt32(); + break; + } + case 24: { + + blue_ = input.readInt32(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + outputLiquids_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + outputLiquids_.add( + input.readMessage(com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.parser(), extensionRegistry)); + break; + } + case 40: { + + processParametersTableIndex_ = input.readInt32(); + 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 { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + outputLiquids_ = java.util.Collections.unmodifiableList(outputLiquids_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_OutputCoordinates_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_OutputCoordinates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.class, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder.class); + } + + private int bitField0_; + public static final int RED_FIELD_NUMBER = 1; + private int red_; + /** + * int32 Red = 1; + */ + public int getRed() { + return red_; + } + + public static final int GREEN_FIELD_NUMBER = 2; + private int green_; + /** + * int32 Green = 2; + */ + public int getGreen() { + return green_; + } + + public static final int BLUE_FIELD_NUMBER = 3; + private int blue_; + /** + * int32 Blue = 3; + */ + public int getBlue() { + return blue_; + } + + public static final int OUTPUTLIQUIDS_FIELD_NUMBER = 4; + private java.util.List outputLiquids_; + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public java.util.List getOutputLiquidsList() { + return outputLiquids_; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public java.util.List + getOutputLiquidsOrBuilderList() { + return outputLiquids_; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public int getOutputLiquidsCount() { + return outputLiquids_.size(); + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid getOutputLiquids(int index) { + return outputLiquids_.get(index); + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder getOutputLiquidsOrBuilder( + int index) { + return outputLiquids_.get(index); + } + + public static final int PROCESSPARAMETERSTABLEINDEX_FIELD_NUMBER = 5; + private int processParametersTableIndex_; + /** + * int32 ProcessParametersTableIndex = 5; + */ + public int getProcessParametersTableIndex() { + return processParametersTableIndex_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (red_ != 0) { + output.writeInt32(1, red_); + } + if (green_ != 0) { + output.writeInt32(2, green_); + } + if (blue_ != 0) { + output.writeInt32(3, blue_); + } + for (int i = 0; i < outputLiquids_.size(); i++) { + output.writeMessage(4, outputLiquids_.get(i)); + } + if (processParametersTableIndex_ != 0) { + output.writeInt32(5, processParametersTableIndex_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (red_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, red_); + } + if (green_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, green_); + } + if (blue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, blue_); + } + for (int i = 0; i < outputLiquids_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, outputLiquids_.get(i)); + } + if (processParametersTableIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, processParametersTableIndex_); + } + 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 com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates other = (com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates) obj; + + boolean result = true; + result = result && (getRed() + == other.getRed()); + result = result && (getGreen() + == other.getGreen()); + result = result && (getBlue() + == other.getBlue()); + result = result && getOutputLiquidsList() + .equals(other.getOutputLiquidsList()); + result = result && (getProcessParametersTableIndex() + == other.getProcessParametersTableIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RED_FIELD_NUMBER; + hash = (53 * hash) + getRed(); + hash = (37 * hash) + GREEN_FIELD_NUMBER; + hash = (53 * hash) + getGreen(); + hash = (37 * hash) + BLUE_FIELD_NUMBER; + hash = (53 * hash) + getBlue(); + if (getOutputLiquidsCount() > 0) { + hash = (37 * hash) + OUTPUTLIQUIDS_FIELD_NUMBER; + hash = (53 * hash) + getOutputLiquidsList().hashCode(); + } + hash = (37 * hash) + PROCESSPARAMETERSTABLEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getProcessParametersTableIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates 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 com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates 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 com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.OutputCoordinates} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.OutputCoordinates) + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinatesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_OutputCoordinates_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_OutputCoordinates_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.class, com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOutputLiquidsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + red_ = 0; + + green_ = 0; + + blue_ = 0; + + if (outputLiquidsBuilder_ == null) { + outputLiquids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + outputLiquidsBuilder_.clear(); + } + processParametersTableIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.internal_static_Tango_PMR_ColorLab_OutputCoordinates_descriptor; + } + + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates build() { + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates buildPartial() { + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates result = new com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.red_ = red_; + result.green_ = green_; + result.blue_ = blue_; + if (outputLiquidsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + outputLiquids_ = java.util.Collections.unmodifiableList(outputLiquids_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.outputLiquids_ = outputLiquids_; + } else { + result.outputLiquids_ = outputLiquidsBuilder_.build(); + } + result.processParametersTableIndex_ = processParametersTableIndex_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates) { + return mergeFrom((com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates other) { + if (other == com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates.getDefaultInstance()) return this; + if (other.getRed() != 0) { + setRed(other.getRed()); + } + if (other.getGreen() != 0) { + setGreen(other.getGreen()); + } + if (other.getBlue() != 0) { + setBlue(other.getBlue()); + } + if (outputLiquidsBuilder_ == null) { + if (!other.outputLiquids_.isEmpty()) { + if (outputLiquids_.isEmpty()) { + outputLiquids_ = other.outputLiquids_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureOutputLiquidsIsMutable(); + outputLiquids_.addAll(other.outputLiquids_); + } + onChanged(); + } + } else { + if (!other.outputLiquids_.isEmpty()) { + if (outputLiquidsBuilder_.isEmpty()) { + outputLiquidsBuilder_.dispose(); + outputLiquidsBuilder_ = null; + outputLiquids_ = other.outputLiquids_; + bitField0_ = (bitField0_ & ~0x00000008); + outputLiquidsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOutputLiquidsFieldBuilder() : null; + } else { + outputLiquidsBuilder_.addAllMessages(other.outputLiquids_); + } + } + } + if (other.getProcessParametersTableIndex() != 0) { + setProcessParametersTableIndex(other.getProcessParametersTableIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int red_ ; + /** + * int32 Red = 1; + */ + public int getRed() { + return red_; + } + /** + * int32 Red = 1; + */ + public Builder setRed(int value) { + + red_ = value; + onChanged(); + return this; + } + /** + * int32 Red = 1; + */ + public Builder clearRed() { + + red_ = 0; + onChanged(); + return this; + } + + private int green_ ; + /** + * int32 Green = 2; + */ + public int getGreen() { + return green_; + } + /** + * int32 Green = 2; + */ + public Builder setGreen(int value) { + + green_ = value; + onChanged(); + return this; + } + /** + * int32 Green = 2; + */ + public Builder clearGreen() { + + green_ = 0; + onChanged(); + return this; + } + + private int blue_ ; + /** + * int32 Blue = 3; + */ + public int getBlue() { + return blue_; + } + /** + * int32 Blue = 3; + */ + public Builder setBlue(int value) { + + blue_ = value; + onChanged(); + return this; + } + /** + * int32 Blue = 3; + */ + public Builder clearBlue() { + + blue_ = 0; + onChanged(); + return this; + } + + private java.util.List outputLiquids_ = + java.util.Collections.emptyList(); + private void ensureOutputLiquidsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + outputLiquids_ = new java.util.ArrayList(outputLiquids_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder> outputLiquidsBuilder_; + + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public java.util.List getOutputLiquidsList() { + if (outputLiquidsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputLiquids_); + } else { + return outputLiquidsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public int getOutputLiquidsCount() { + if (outputLiquidsBuilder_ == null) { + return outputLiquids_.size(); + } else { + return outputLiquidsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid getOutputLiquids(int index) { + if (outputLiquidsBuilder_ == null) { + return outputLiquids_.get(index); + } else { + return outputLiquidsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder setOutputLiquids( + int index, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid value) { + if (outputLiquidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputLiquidsIsMutable(); + outputLiquids_.set(index, value); + onChanged(); + } else { + outputLiquidsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder setOutputLiquids( + int index, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder builderForValue) { + if (outputLiquidsBuilder_ == null) { + ensureOutputLiquidsIsMutable(); + outputLiquids_.set(index, builderForValue.build()); + onChanged(); + } else { + outputLiquidsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder addOutputLiquids(com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid value) { + if (outputLiquidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputLiquidsIsMutable(); + outputLiquids_.add(value); + onChanged(); + } else { + outputLiquidsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder addOutputLiquids( + int index, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid value) { + if (outputLiquidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputLiquidsIsMutable(); + outputLiquids_.add(index, value); + onChanged(); + } else { + outputLiquidsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder addOutputLiquids( + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder builderForValue) { + if (outputLiquidsBuilder_ == null) { + ensureOutputLiquidsIsMutable(); + outputLiquids_.add(builderForValue.build()); + onChanged(); + } else { + outputLiquidsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder addOutputLiquids( + int index, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder builderForValue) { + if (outputLiquidsBuilder_ == null) { + ensureOutputLiquidsIsMutable(); + outputLiquids_.add(index, builderForValue.build()); + onChanged(); + } else { + outputLiquidsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder addAllOutputLiquids( + java.lang.Iterable values) { + if (outputLiquidsBuilder_ == null) { + ensureOutputLiquidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, outputLiquids_); + onChanged(); + } else { + outputLiquidsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder clearOutputLiquids() { + if (outputLiquidsBuilder_ == null) { + outputLiquids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + outputLiquidsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public Builder removeOutputLiquids(int index) { + if (outputLiquidsBuilder_ == null) { + ensureOutputLiquidsIsMutable(); + outputLiquids_.remove(index); + onChanged(); + } else { + outputLiquidsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder getOutputLiquidsBuilder( + int index) { + return getOutputLiquidsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder getOutputLiquidsOrBuilder( + int index) { + if (outputLiquidsBuilder_ == null) { + return outputLiquids_.get(index); } else { + return outputLiquidsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public java.util.List + getOutputLiquidsOrBuilderList() { + if (outputLiquidsBuilder_ != null) { + return outputLiquidsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputLiquids_); + } + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder addOutputLiquidsBuilder() { + return getOutputLiquidsFieldBuilder().addBuilder( + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder addOutputLiquidsBuilder( + int index) { + return getOutputLiquidsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.ColorLab.OutputLiquid OutputLiquids = 4; + */ + public java.util.List + getOutputLiquidsBuilderList() { + return getOutputLiquidsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder> + getOutputLiquidsFieldBuilder() { + if (outputLiquidsBuilder_ == null) { + outputLiquidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder>( + outputLiquids_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + outputLiquids_ = null; + } + return outputLiquidsBuilder_; + } + + private int processParametersTableIndex_ ; + /** + * int32 ProcessParametersTableIndex = 5; + */ + public int getProcessParametersTableIndex() { + return processParametersTableIndex_; + } + /** + * int32 ProcessParametersTableIndex = 5; + */ + public Builder setProcessParametersTableIndex(int value) { + + processParametersTableIndex_ = value; + onChanged(); + return this; + } + /** + * int32 ProcessParametersTableIndex = 5; + */ + public Builder clearProcessParametersTableIndex() { + + processParametersTableIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.OutputCoordinates) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.OutputCoordinates) + private static final com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates(); + } + + public static com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public OutputCoordinates parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputCoordinates(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.OutputCoordinatesOuterClass.OutputCoordinates getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_OutputCoordinates_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_OutputCoordinates_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\027OutputCoordinates.proto\022\022Tango.PMR.Col" + + "orLab\032\022OutputLiquid.proto\"\233\001\n\021OutputCoor" + + "dinates\022\013\n\003Red\030\001 \001(\005\022\r\n\005Green\030\002 \001(\005\022\014\n\004B" + + "lue\030\003 \001(\005\0227\n\rOutputLiquids\030\004 \003(\0132 .Tango" + + ".PMR.ColorLab.OutputLiquid\022#\n\033ProcessPar" + + "ametersTableIndex\030\005 \001(\005B\036\n\034com.twine.tan" + + "go.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_OutputCoordinates_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_OutputCoordinates_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_OutputCoordinates_descriptor, + new java.lang.String[] { "Red", "Green", "Blue", "OutputLiquids", "ProcessParametersTableIndex", }); + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputLiquidOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputLiquidOuterClass.java new file mode 100644 index 000000000..319cbcfb7 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/colorlab/OutputLiquidOuterClass.java @@ -0,0 +1,603 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OutputLiquid.proto + +package com.twine.tango.pmr.colorlab; + +public final class OutputLiquidOuterClass { + private OutputLiquidOuterClass() {} + 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 OutputLiquidOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.ColorLab.OutputLiquid) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + int getLiquidTypeValue(); + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType(); + + /** + * double Volume = 4; + */ + double getVolume(); + } + /** + * Protobuf type {@code Tango.PMR.ColorLab.OutputLiquid} + */ + public static final class OutputLiquid extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.ColorLab.OutputLiquid) + OutputLiquidOrBuilder { + private static final long serialVersionUID = 0L; + // Use OutputLiquid.newBuilder() to construct. + private OutputLiquid(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OutputLiquid() { + liquidType_ = 0; + volume_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OutputLiquid( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + liquidType_ = rawValue; + break; + } + case 33: { + + volume_ = input.readDouble(); + 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 com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_OutputLiquid_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_OutputLiquid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.class, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder.class); + } + + public static final int LIQUIDTYPE_FIELD_NUMBER = 1; + private int liquidType_; + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public int getLiquidTypeValue() { + return liquidType_; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType() { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType result = com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.valueOf(liquidType_); + return result == null ? com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.UNRECOGNIZED : result; + } + + public static final int VOLUME_FIELD_NUMBER = 4; + private double volume_; + /** + * double Volume = 4; + */ + public double getVolume() { + return volume_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (liquidType_ != com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.Cyan.getNumber()) { + output.writeEnum(1, liquidType_); + } + if (volume_ != 0D) { + output.writeDouble(4, volume_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (liquidType_ != com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.Cyan.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, liquidType_); + } + if (volume_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, volume_); + } + 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 com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid)) { + return super.equals(obj); + } + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid other = (com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid) obj; + + boolean result = true; + result = result && liquidType_ == other.liquidType_; + result = result && ( + java.lang.Double.doubleToLongBits(getVolume()) + == java.lang.Double.doubleToLongBits( + other.getVolume())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LIQUIDTYPE_FIELD_NUMBER; + hash = (53 * hash) + liquidType_; + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolume())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid 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 com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid 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 com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.ColorLab.OutputLiquid} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.ColorLab.OutputLiquid) + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquidOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_OutputLiquid_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_OutputLiquid_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.class, com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.Builder.class); + } + + // Construct using com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + liquidType_ = 0; + + volume_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.internal_static_Tango_PMR_ColorLab_OutputLiquid_descriptor; + } + + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid getDefaultInstanceForType() { + return com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.getDefaultInstance(); + } + + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid build() { + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid buildPartial() { + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid result = new com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid(this); + result.liquidType_ = liquidType_; + result.volume_ = volume_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid) { + return mergeFrom((com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid other) { + if (other == com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid.getDefaultInstance()) return this; + if (other.liquidType_ != 0) { + setLiquidTypeValue(other.getLiquidTypeValue()); + } + if (other.getVolume() != 0D) { + setVolume(other.getVolume()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int liquidType_ = 0; + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public int getLiquidTypeValue() { + return liquidType_; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder setLiquidTypeValue(int value) { + liquidType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType getLiquidType() { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType result = com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.valueOf(liquidType_); + return result == null ? com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder setLiquidType(com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.LiquidType value) { + if (value == null) { + throw new NullPointerException(); + } + + liquidType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.ColorLab.LiquidType LiquidType = 1; + */ + public Builder clearLiquidType() { + + liquidType_ = 0; + onChanged(); + return this; + } + + private double volume_ ; + /** + * double Volume = 4; + */ + public double getVolume() { + return volume_; + } + /** + * double Volume = 4; + */ + public Builder setVolume(double value) { + + volume_ = value; + onChanged(); + return this; + } + /** + * double Volume = 4; + */ + public Builder clearVolume() { + + volume_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.ColorLab.OutputLiquid) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.ColorLab.OutputLiquid) + private static final com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid(); + } + + public static com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public OutputLiquid parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OutputLiquid(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.colorlab.OutputLiquidOuterClass.OutputLiquid getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_ColorLab_OutputLiquid_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_ColorLab_OutputLiquid_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\022OutputLiquid.proto\022\022Tango.PMR.ColorLab" + + "\032\020LiquidType.proto\"R\n\014OutputLiquid\0222\n\nLi" + + "quidType\030\001 \001(\0162\036.Tango.PMR.ColorLab.Liqu" + + "idType\022\016\n\006Volume\030\004 \001(\001B\036\n\034com.twine.tang" + + "o.pmr.colorlabb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_ColorLab_OutputLiquid_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_ColorLab_OutputLiquid_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_ColorLab_OutputLiquid_descriptor, + new java.lang.String[] { "LiquidType", "Volume", }); + com.twine.tango.pmr.colorlab.LiquidTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java index 935c1071f..938147ddf 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/ErrorCodeOuterClass.java @@ -27,6 +27,14 @@ public final class ErrorCodeOuterClass { * BAD_CRC = 1; */ BAD_CRC(1), + /** + *
+     *Can be returned by SetDigitalOutResponse.
+     * 
+ * + * INVALID_DIGITAL_PIN_NUMBER = 2; + */ + INVALID_DIGITAL_PIN_NUMBER(2), UNRECOGNIZED(-1), ; @@ -38,6 +46,14 @@ public final class ErrorCodeOuterClass { * BAD_CRC = 1; */ public static final int BAD_CRC_VALUE = 1; + /** + *
+     *Can be returned by SetDigitalOutResponse.
+     * 
+ * + * INVALID_DIGITAL_PIN_NUMBER = 2; + */ + public static final int INVALID_DIGITAL_PIN_NUMBER_VALUE = 2; public final int getNumber() { @@ -60,6 +76,7 @@ public final class ErrorCodeOuterClass { switch (value) { case 0: return NONE; case 1: return BAD_CRC; + case 2: return INVALID_DIGITAL_PIN_NUMBER; default: return null; } } @@ -121,9 +138,10 @@ public final class ErrorCodeOuterClass { descriptor; static { java.lang.String[] descriptorData = { - "\n\017ErrorCode.proto\022\020Tango.PMR.Common*\"\n\tE" + - "rrorCode\022\010\n\004NONE\020\000\022\013\n\007BAD_CRC\020\001B\034\n\032com.t" + - "wine.tango.pmr.commonb\006proto3" + "\n\017ErrorCode.proto\022\020Tango.PMR.Common*B\n\tE" + + "rrorCode\022\010\n\004NONE\020\000\022\013\n\007BAD_CRC\020\001\022\036\n\032INVAL" + + "ID_DIGITAL_PIN_NUMBER\020\002B\034\n\032com.twine.tan" + + "go.pmr.commonb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveRequestOuterClass.java index e228e91c0..b0bdd88bf 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveRequestOuterClass.java +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveRequestOuterClass.java @@ -15,15 +15,15 @@ public final class KeepAliveRequestOuterClass { (com.google.protobuf.ExtensionRegistryLite) registry); } public interface KeepAliveRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:Tango.PMR.common.KeepAliveRequest) + // @@protoc_insertion_point(interface_extends:Tango.PMR.Common.KeepAliveRequest) com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code Tango.PMR.common.KeepAliveRequest} + * Protobuf type {@code Tango.PMR.Common.KeepAliveRequest} */ public static final class KeepAliveRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Tango.PMR.common.KeepAliveRequest) + // @@protoc_insertion_point(message_implements:Tango.PMR.Common.KeepAliveRequest) KeepAliveRequestOrBuilder { private static final long serialVersionUID = 0L; // Use KeepAliveRequest.newBuilder() to construct. @@ -74,12 +74,12 @@ public final class KeepAliveRequestOuterClass { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_common_KeepAliveRequest_descriptor; + return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_Common_KeepAliveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_common_KeepAliveRequest_fieldAccessorTable + return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_Common_KeepAliveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest.class, com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest.Builder.class); } @@ -225,20 +225,20 @@ public final class KeepAliveRequestOuterClass { return builder; } /** - * Protobuf type {@code Tango.PMR.common.KeepAliveRequest} + * Protobuf type {@code Tango.PMR.Common.KeepAliveRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Tango.PMR.common.KeepAliveRequest) + // @@protoc_insertion_point(builder_implements:Tango.PMR.Common.KeepAliveRequest) com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_common_KeepAliveRequest_descriptor; + return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_Common_KeepAliveRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_common_KeepAliveRequest_fieldAccessorTable + return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_Common_KeepAliveRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest.class, com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest.Builder.class); } @@ -265,7 +265,7 @@ public final class KeepAliveRequestOuterClass { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_common_KeepAliveRequest_descriptor; + return com.twine.tango.pmr.common.KeepAliveRequestOuterClass.internal_static_Tango_PMR_Common_KeepAliveRequest_descriptor; } public com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest getDefaultInstanceForType() { @@ -360,10 +360,10 @@ public final class KeepAliveRequestOuterClass { } - // @@protoc_insertion_point(builder_scope:Tango.PMR.common.KeepAliveRequest) + // @@protoc_insertion_point(builder_scope:Tango.PMR.Common.KeepAliveRequest) } - // @@protoc_insertion_point(class_scope:Tango.PMR.common.KeepAliveRequest) + // @@protoc_insertion_point(class_scope:Tango.PMR.Common.KeepAliveRequest) private static final com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.twine.tango.pmr.common.KeepAliveRequestOuterClass.KeepAliveRequest(); @@ -399,10 +399,10 @@ public final class KeepAliveRequestOuterClass { } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Tango_PMR_common_KeepAliveRequest_descriptor; + internal_static_Tango_PMR_Common_KeepAliveRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Tango_PMR_common_KeepAliveRequest_fieldAccessorTable; + internal_static_Tango_PMR_Common_KeepAliveRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -412,7 +412,7 @@ public final class KeepAliveRequestOuterClass { descriptor; static { java.lang.String[] descriptorData = { - "\n\026KeepAliveRequest.proto\022\020Tango.PMR.comm" + + "\n\026KeepAliveRequest.proto\022\020Tango.PMR.Comm" + "on\"\022\n\020KeepAliveRequestB\034\n\032com.twine.tang" + "o.pmr.commonb\006proto3" }; @@ -428,11 +428,11 @@ public final class KeepAliveRequestOuterClass { .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_Tango_PMR_common_KeepAliveRequest_descriptor = + internal_static_Tango_PMR_Common_KeepAliveRequest_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_Tango_PMR_common_KeepAliveRequest_fieldAccessorTable = new + internal_static_Tango_PMR_Common_KeepAliveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Tango_PMR_common_KeepAliveRequest_descriptor, + internal_static_Tango_PMR_Common_KeepAliveRequest_descriptor, new java.lang.String[] { }); } diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveResponseOuterClass.java index d46b86204..2a0f6894e 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveResponseOuterClass.java +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/KeepAliveResponseOuterClass.java @@ -15,15 +15,15 @@ public final class KeepAliveResponseOuterClass { (com.google.protobuf.ExtensionRegistryLite) registry); } public interface KeepAliveResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:Tango.PMR.common.KeepAliveResponse) + // @@protoc_insertion_point(interface_extends:Tango.PMR.Common.KeepAliveResponse) com.google.protobuf.MessageOrBuilder { } /** - * Protobuf type {@code Tango.PMR.common.KeepAliveResponse} + * Protobuf type {@code Tango.PMR.Common.KeepAliveResponse} */ public static final class KeepAliveResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:Tango.PMR.common.KeepAliveResponse) + // @@protoc_insertion_point(message_implements:Tango.PMR.Common.KeepAliveResponse) KeepAliveResponseOrBuilder { private static final long serialVersionUID = 0L; // Use KeepAliveResponse.newBuilder() to construct. @@ -74,12 +74,12 @@ public final class KeepAliveResponseOuterClass { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_common_KeepAliveResponse_descriptor; + return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_Common_KeepAliveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_common_KeepAliveResponse_fieldAccessorTable + return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_Common_KeepAliveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse.class, com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse.Builder.class); } @@ -225,20 +225,20 @@ public final class KeepAliveResponseOuterClass { return builder; } /** - * Protobuf type {@code Tango.PMR.common.KeepAliveResponse} + * Protobuf type {@code Tango.PMR.Common.KeepAliveResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:Tango.PMR.common.KeepAliveResponse) + // @@protoc_insertion_point(builder_implements:Tango.PMR.Common.KeepAliveResponse) com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_common_KeepAliveResponse_descriptor; + return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_Common_KeepAliveResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_common_KeepAliveResponse_fieldAccessorTable + return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_Common_KeepAliveResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse.class, com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse.Builder.class); } @@ -265,7 +265,7 @@ public final class KeepAliveResponseOuterClass { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_common_KeepAliveResponse_descriptor; + return com.twine.tango.pmr.common.KeepAliveResponseOuterClass.internal_static_Tango_PMR_Common_KeepAliveResponse_descriptor; } public com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse getDefaultInstanceForType() { @@ -360,10 +360,10 @@ public final class KeepAliveResponseOuterClass { } - // @@protoc_insertion_point(builder_scope:Tango.PMR.common.KeepAliveResponse) + // @@protoc_insertion_point(builder_scope:Tango.PMR.Common.KeepAliveResponse) } - // @@protoc_insertion_point(class_scope:Tango.PMR.common.KeepAliveResponse) + // @@protoc_insertion_point(class_scope:Tango.PMR.Common.KeepAliveResponse) private static final com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.twine.tango.pmr.common.KeepAliveResponseOuterClass.KeepAliveResponse(); @@ -399,10 +399,10 @@ public final class KeepAliveResponseOuterClass { } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_Tango_PMR_common_KeepAliveResponse_descriptor; + internal_static_Tango_PMR_Common_KeepAliveResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_Tango_PMR_common_KeepAliveResponse_fieldAccessorTable; + internal_static_Tango_PMR_Common_KeepAliveResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -412,7 +412,7 @@ public final class KeepAliveResponseOuterClass { descriptor; static { java.lang.String[] descriptorData = { - "\n\027KeepAliveResponse.proto\022\020Tango.PMR.com" + + "\n\027KeepAliveResponse.proto\022\020Tango.PMR.Com" + "mon\"\023\n\021KeepAliveResponseB\034\n\032com.twine.ta" + "ngo.pmr.commonb\006proto3" }; @@ -428,11 +428,11 @@ public final class KeepAliveResponseOuterClass { .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_Tango_PMR_common_KeepAliveResponse_descriptor = + internal_static_Tango_PMR_Common_KeepAliveResponse_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_Tango_PMR_common_KeepAliveResponse_fieldAccessorTable = new + internal_static_Tango_PMR_Common_KeepAliveResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_Tango_PMR_common_KeepAliveResponse_descriptor, + internal_static_Tango_PMR_Common_KeepAliveResponse_descriptor, new java.lang.String[] { }); } diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java index fe9919195..4dc9d6f6f 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageContainerOuterClass.java @@ -292,7 +292,7 @@ public final class MessageContainerOuterClass { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ != com.twine.tango.pmr.common.MessageTypeOuterClass.MessageType.RGB.getNumber()) { + if (type_ != com.twine.tango.pmr.common.MessageTypeOuterClass.MessageType.None.getNumber()) { output.writeEnum(1, type_); } if (!getTokenBytes().isEmpty()) { @@ -321,7 +321,7 @@ public final class MessageContainerOuterClass { if (size != -1) return size; size = 0; - if (type_ != com.twine.tango.pmr.common.MessageTypeOuterClass.MessageType.RGB.getNumber()) { + if (type_ != com.twine.tango.pmr.common.MessageTypeOuterClass.MessageType.None.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java index 0b4c2fb97..3dcc1b236 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/common/MessageTypeOuterClass.java @@ -21,20 +21,12 @@ public final class MessageTypeOuterClass { implements com.google.protobuf.ProtocolMessageEnum { /** *
-     *Common
+     *The first enumeration value must be zero so..
      * 
* - * RGB = 0; + * None = 0; */ - RGB(0), - /** - * Job = 1; - */ - Job(1), - /** - * Segment = 2; - */ - Segment(2), + None(0), /** *
      *Stubs
@@ -175,6 +167,102 @@ public final class MessageTypeOuterClass {
      * StubExtFlashWriteResponse = 36;
      */
     StubExtFlashWriteResponse(36),
+    /**
+     * StubFPGAReadBackRegRequest = 37;
+     */
+    StubFPGAReadBackRegRequest(37),
+    /**
+     * StubFPGAReadBackRegResponse = 38;
+     */
+    StubFPGAReadBackRegResponse(38),
+    /**
+     * StubFPGAReadVersionRequest = 39;
+     */
+    StubFPGAReadVersionRequest(39),
+    /**
+     * StubFPGAReadVersionResponse = 40;
+     */
+    StubFPGAReadVersionResponse(40),
+    /**
+     * StubL6470DriverRequest = 41;
+     */
+    StubL6470DriverRequest(41),
+    /**
+     * StubL6470DriverResponse = 42;
+     */
+    StubL6470DriverResponse(42),
+    /**
+     * StubMotorInitRequest = 43;
+     */
+    StubMotorInitRequest(43),
+    /**
+     * StubMotorInitResponse = 44;
+     */
+    StubMotorInitResponse(44),
+    /**
+     * StubMotorRunRequest = 45;
+     */
+    StubMotorRunRequest(45),
+    /**
+     * StubMotorRunResponse = 46;
+     */
+    StubMotorRunResponse(46),
+    /**
+     * StubMotorStopRequest = 47;
+     */
+    StubMotorStopRequest(47),
+    /**
+     * StubMotorStopResponse = 48;
+     */
+    StubMotorStopResponse(48),
+    /**
+     * StubMotorStatusRequest = 49;
+     */
+    StubMotorStatusRequest(49),
+    /**
+     * StubMotorStatusResponse = 50;
+     */
+    StubMotorStatusResponse(50),
+    /**
+     * StubMotorMovRequest = 51;
+     */
+    StubMotorMovRequest(51),
+    /**
+     * StubMotorMovResponse = 52;
+     */
+    StubMotorMovResponse(52),
+    /**
+     * StubMotorSpeedRequest = 53;
+     */
+    StubMotorSpeedRequest(53),
+    /**
+     * StubMotorSpeedResponse = 54;
+     */
+    StubMotorSpeedResponse(54),
+    /**
+     * StubMotorPositionRequest = 55;
+     */
+    StubMotorPositionRequest(55),
+    /**
+     * StubMotorPositionResponse = 56;
+     */
+    StubMotorPositionResponse(56),
+    /**
+     * StubHWVersionRequest = 57;
+     */
+    StubHWVersionRequest(57),
+    /**
+     * StubHWVersionResponse = 58;
+     */
+    StubHWVersionResponse(58),
+    /**
+     * StubF3Gpo01WriteRequest = 59;
+     */
+    StubF3Gpo01WriteRequest(59),
+    /**
+     * StubF3Gpo01WriteResponse = 60;
+     */
+    StubF3Gpo01WriteResponse(60),
     /**
      * 
      *Integration
@@ -220,32 +308,172 @@ public final class MessageTypeOuterClass {
      *Diagnostics
      * 
* - * StartDiagnosticsRequest = 2000; + * PushDiagnosticsRequest = 2000; */ - StartDiagnosticsRequest(2000), + PushDiagnosticsRequest(2000), /** - * StartDiagnosticsResponse = 2001; + * PushDiagnosticsResponse = 2001; */ - StartDiagnosticsResponse(2001), - UNRECOGNIZED(-1), - ; - + PushDiagnosticsResponse(2001), + /** + * MotorAbortHomingRequest = 2002; + */ + MotorAbortHomingRequest(2002), + /** + * MotorAbortHomingResponse = 2003; + */ + MotorAbortHomingResponse(2003), + /** + * MotorHomingRequest = 2004; + */ + MotorHomingRequest(2004), + /** + * MotorHomingResponse = 2005; + */ + MotorHomingResponse(2005), + /** + * MotorJoggingRequest = 2006; + */ + MotorJoggingRequest(2006), + /** + * MotorJoggingResponse = 2007; + */ + MotorJoggingResponse(2007), + /** + * MotorAbortJoggingRequest = 2008; + */ + MotorAbortJoggingRequest(2008), + /** + * MotorAbortJoggingResponse = 2009; + */ + MotorAbortJoggingResponse(2009), + /** + * DispenserAbortHomingRequest = 2010; + */ + DispenserAbortHomingRequest(2010), + /** + * DispenserAbortHomingResponse = 2011; + */ + DispenserAbortHomingResponse(2011), + /** + * DispenserHomingRequest = 2012; + */ + DispenserHomingRequest(2012), + /** + * DispenserHomingResponse = 2013; + */ + DispenserHomingResponse(2013), + /** + * DispenserJoggingRequest = 2014; + */ + DispenserJoggingRequest(2014), + /** + * DispenserJoggingResponse = 2015; + */ + DispenserJoggingResponse(2015), + /** + * DispenserAbortJoggingRequest = 2016; + */ + DispenserAbortJoggingRequest(2016), + /** + * DispenserAbortJoggingResponse = 2017; + */ + DispenserAbortJoggingResponse(2017), + /** + * SetDigitalOutRequest = 2018; + */ + SetDigitalOutRequest(2018), + /** + * SetDigitalOutResponse = 2019; + */ + SetDigitalOutResponse(2019), + /** + * ThreadJoggingRequest = 2020; + */ + ThreadJoggingRequest(2020), + /** + * ThreadJoggingResponse = 2021; + */ + ThreadJoggingResponse(2021), + /** + * ThreadAbortJoggingRequest = 2022; + */ + ThreadAbortJoggingRequest(2022), + /** + * ThreadAbortJoggingResponse = 2023; + */ + ThreadAbortJoggingResponse(2023), + /** + * SetComponentValueRequest = 2024; + */ + SetComponentValueRequest(2024), + /** + * SetComponentValueResponse = 2025; + */ + SetComponentValueResponse(2025), + /** + *
+     *Printing
+     * 
+ * + * JobRequest = 3000; + */ + JobRequest(3000), + /** + * JobResponse = 3001; + */ + JobResponse(3001), + /** + * AbortJobRequest = 3002; + */ + AbortJobRequest(3002), + /** + * AbortJobResponse = 3003; + */ + AbortJobResponse(3003), + /** + * UploadProcessParametersRequest = 3004; + */ + UploadProcessParametersRequest(3004), + /** + * UploadProcessParametersResponse = 3005; + */ + UploadProcessParametersResponse(3005), + /** + *
+     *Debugging
+     * 
+ * + * DebugLogRequest = 4000; + */ + DebugLogRequest(4000), + /** + * DebugLogResponse = 4001; + */ + DebugLogResponse(4001), /** *
-     *Common
+     *Hardware
      * 
* - * RGB = 0; + * UploadHardwareConfigurationRequest = 5000; */ - public static final int RGB_VALUE = 0; + UploadHardwareConfigurationRequest(5000), /** - * Job = 1; + * UploadHardwareConfigurationResponse = 5001; */ - public static final int Job_VALUE = 1; + UploadHardwareConfigurationResponse(5001), + UNRECOGNIZED(-1), + ; + /** - * Segment = 2; + *
+     *The first enumeration value must be zero so..
+     * 
+ * + * None = 0; */ - public static final int Segment_VALUE = 2; + public static final int None_VALUE = 0; /** *
      *Stubs
@@ -386,6 +614,102 @@ public final class MessageTypeOuterClass {
      * StubExtFlashWriteResponse = 36;
      */
     public static final int StubExtFlashWriteResponse_VALUE = 36;
+    /**
+     * StubFPGAReadBackRegRequest = 37;
+     */
+    public static final int StubFPGAReadBackRegRequest_VALUE = 37;
+    /**
+     * StubFPGAReadBackRegResponse = 38;
+     */
+    public static final int StubFPGAReadBackRegResponse_VALUE = 38;
+    /**
+     * StubFPGAReadVersionRequest = 39;
+     */
+    public static final int StubFPGAReadVersionRequest_VALUE = 39;
+    /**
+     * StubFPGAReadVersionResponse = 40;
+     */
+    public static final int StubFPGAReadVersionResponse_VALUE = 40;
+    /**
+     * StubL6470DriverRequest = 41;
+     */
+    public static final int StubL6470DriverRequest_VALUE = 41;
+    /**
+     * StubL6470DriverResponse = 42;
+     */
+    public static final int StubL6470DriverResponse_VALUE = 42;
+    /**
+     * StubMotorInitRequest = 43;
+     */
+    public static final int StubMotorInitRequest_VALUE = 43;
+    /**
+     * StubMotorInitResponse = 44;
+     */
+    public static final int StubMotorInitResponse_VALUE = 44;
+    /**
+     * StubMotorRunRequest = 45;
+     */
+    public static final int StubMotorRunRequest_VALUE = 45;
+    /**
+     * StubMotorRunResponse = 46;
+     */
+    public static final int StubMotorRunResponse_VALUE = 46;
+    /**
+     * StubMotorStopRequest = 47;
+     */
+    public static final int StubMotorStopRequest_VALUE = 47;
+    /**
+     * StubMotorStopResponse = 48;
+     */
+    public static final int StubMotorStopResponse_VALUE = 48;
+    /**
+     * StubMotorStatusRequest = 49;
+     */
+    public static final int StubMotorStatusRequest_VALUE = 49;
+    /**
+     * StubMotorStatusResponse = 50;
+     */
+    public static final int StubMotorStatusResponse_VALUE = 50;
+    /**
+     * StubMotorMovRequest = 51;
+     */
+    public static final int StubMotorMovRequest_VALUE = 51;
+    /**
+     * StubMotorMovResponse = 52;
+     */
+    public static final int StubMotorMovResponse_VALUE = 52;
+    /**
+     * StubMotorSpeedRequest = 53;
+     */
+    public static final int StubMotorSpeedRequest_VALUE = 53;
+    /**
+     * StubMotorSpeedResponse = 54;
+     */
+    public static final int StubMotorSpeedResponse_VALUE = 54;
+    /**
+     * StubMotorPositionRequest = 55;
+     */
+    public static final int StubMotorPositionRequest_VALUE = 55;
+    /**
+     * StubMotorPositionResponse = 56;
+     */
+    public static final int StubMotorPositionResponse_VALUE = 56;
+    /**
+     * StubHWVersionRequest = 57;
+     */
+    public static final int StubHWVersionRequest_VALUE = 57;
+    /**
+     * StubHWVersionResponse = 58;
+     */
+    public static final int StubHWVersionResponse_VALUE = 58;
+    /**
+     * StubF3Gpo01WriteRequest = 59;
+     */
+    public static final int StubF3Gpo01WriteRequest_VALUE = 59;
+    /**
+     * StubF3Gpo01WriteResponse = 60;
+     */
+    public static final int StubF3Gpo01WriteResponse_VALUE = 60;
     /**
      * 
      *Integration
@@ -431,13 +755,161 @@ public final class MessageTypeOuterClass {
      *Diagnostics
      * 
* - * StartDiagnosticsRequest = 2000; + * PushDiagnosticsRequest = 2000; + */ + public static final int PushDiagnosticsRequest_VALUE = 2000; + /** + * PushDiagnosticsResponse = 2001; + */ + public static final int PushDiagnosticsResponse_VALUE = 2001; + /** + * MotorAbortHomingRequest = 2002; + */ + public static final int MotorAbortHomingRequest_VALUE = 2002; + /** + * MotorAbortHomingResponse = 2003; + */ + public static final int MotorAbortHomingResponse_VALUE = 2003; + /** + * MotorHomingRequest = 2004; + */ + public static final int MotorHomingRequest_VALUE = 2004; + /** + * MotorHomingResponse = 2005; + */ + public static final int MotorHomingResponse_VALUE = 2005; + /** + * MotorJoggingRequest = 2006; + */ + public static final int MotorJoggingRequest_VALUE = 2006; + /** + * MotorJoggingResponse = 2007; + */ + public static final int MotorJoggingResponse_VALUE = 2007; + /** + * MotorAbortJoggingRequest = 2008; + */ + public static final int MotorAbortJoggingRequest_VALUE = 2008; + /** + * MotorAbortJoggingResponse = 2009; + */ + public static final int MotorAbortJoggingResponse_VALUE = 2009; + /** + * DispenserAbortHomingRequest = 2010; + */ + public static final int DispenserAbortHomingRequest_VALUE = 2010; + /** + * DispenserAbortHomingResponse = 2011; + */ + public static final int DispenserAbortHomingResponse_VALUE = 2011; + /** + * DispenserHomingRequest = 2012; + */ + public static final int DispenserHomingRequest_VALUE = 2012; + /** + * DispenserHomingResponse = 2013; + */ + public static final int DispenserHomingResponse_VALUE = 2013; + /** + * DispenserJoggingRequest = 2014; + */ + public static final int DispenserJoggingRequest_VALUE = 2014; + /** + * DispenserJoggingResponse = 2015; + */ + public static final int DispenserJoggingResponse_VALUE = 2015; + /** + * DispenserAbortJoggingRequest = 2016; + */ + public static final int DispenserAbortJoggingRequest_VALUE = 2016; + /** + * DispenserAbortJoggingResponse = 2017; + */ + public static final int DispenserAbortJoggingResponse_VALUE = 2017; + /** + * SetDigitalOutRequest = 2018; + */ + public static final int SetDigitalOutRequest_VALUE = 2018; + /** + * SetDigitalOutResponse = 2019; + */ + public static final int SetDigitalOutResponse_VALUE = 2019; + /** + * ThreadJoggingRequest = 2020; + */ + public static final int ThreadJoggingRequest_VALUE = 2020; + /** + * ThreadJoggingResponse = 2021; + */ + public static final int ThreadJoggingResponse_VALUE = 2021; + /** + * ThreadAbortJoggingRequest = 2022; + */ + public static final int ThreadAbortJoggingRequest_VALUE = 2022; + /** + * ThreadAbortJoggingResponse = 2023; + */ + public static final int ThreadAbortJoggingResponse_VALUE = 2023; + /** + * SetComponentValueRequest = 2024; + */ + public static final int SetComponentValueRequest_VALUE = 2024; + /** + * SetComponentValueResponse = 2025; + */ + public static final int SetComponentValueResponse_VALUE = 2025; + /** + *
+     *Printing
+     * 
+ * + * JobRequest = 3000; + */ + public static final int JobRequest_VALUE = 3000; + /** + * JobResponse = 3001; + */ + public static final int JobResponse_VALUE = 3001; + /** + * AbortJobRequest = 3002; + */ + public static final int AbortJobRequest_VALUE = 3002; + /** + * AbortJobResponse = 3003; + */ + public static final int AbortJobResponse_VALUE = 3003; + /** + * UploadProcessParametersRequest = 3004; + */ + public static final int UploadProcessParametersRequest_VALUE = 3004; + /** + * UploadProcessParametersResponse = 3005; + */ + public static final int UploadProcessParametersResponse_VALUE = 3005; + /** + *
+     *Debugging
+     * 
+ * + * DebugLogRequest = 4000; + */ + public static final int DebugLogRequest_VALUE = 4000; + /** + * DebugLogResponse = 4001; + */ + public static final int DebugLogResponse_VALUE = 4001; + /** + *
+     *Hardware
+     * 
+ * + * UploadHardwareConfigurationRequest = 5000; */ - public static final int StartDiagnosticsRequest_VALUE = 2000; + public static final int UploadHardwareConfigurationRequest_VALUE = 5000; /** - * StartDiagnosticsResponse = 2001; + * UploadHardwareConfigurationResponse = 5001; */ - public static final int StartDiagnosticsResponse_VALUE = 2001; + public static final int UploadHardwareConfigurationResponse_VALUE = 5001; public final int getNumber() { @@ -458,9 +930,7 @@ public final class MessageTypeOuterClass { public static MessageType forNumber(int value) { switch (value) { - case 0: return RGB; - case 1: return Job; - case 2: return Segment; + case 0: return None; case 3: return CalculateRequest; case 4: return CalculateResponse; case 5: return ProgressRequest; @@ -495,6 +965,30 @@ public final class MessageTypeOuterClass { case 34: return StubExtFlashReadResponse; case 35: return StubExtFlashWriteRequest; case 36: return StubExtFlashWriteResponse; + case 37: return StubFPGAReadBackRegRequest; + case 38: return StubFPGAReadBackRegResponse; + case 39: return StubFPGAReadVersionRequest; + case 40: return StubFPGAReadVersionResponse; + case 41: return StubL6470DriverRequest; + case 42: return StubL6470DriverResponse; + case 43: return StubMotorInitRequest; + case 44: return StubMotorInitResponse; + case 45: return StubMotorRunRequest; + case 46: return StubMotorRunResponse; + case 47: return StubMotorStopRequest; + case 48: return StubMotorStopResponse; + case 49: return StubMotorStatusRequest; + case 50: return StubMotorStatusResponse; + case 51: return StubMotorMovRequest; + case 52: return StubMotorMovResponse; + case 53: return StubMotorSpeedRequest; + case 54: return StubMotorSpeedResponse; + case 55: return StubMotorPositionRequest; + case 56: return StubMotorPositionResponse; + case 57: return StubHWVersionRequest; + case 58: return StubHWVersionResponse; + case 59: return StubF3Gpo01WriteRequest; + case 60: return StubF3Gpo01WriteResponse; case 1000: return ExternalBridgeUdpDiscoveryPacket; case 1001: return ExternalClientLoginRequest; case 1002: return ExternalClientLoginResponse; @@ -504,8 +998,42 @@ public final class MessageTypeOuterClass { case 1006: return OverrideDataBaseResponse; case 1007: return KeepAliveRequest; case 1008: return KeepAliveResponse; - case 2000: return StartDiagnosticsRequest; - case 2001: return StartDiagnosticsResponse; + case 2000: return PushDiagnosticsRequest; + case 2001: return PushDiagnosticsResponse; + case 2002: return MotorAbortHomingRequest; + case 2003: return MotorAbortHomingResponse; + case 2004: return MotorHomingRequest; + case 2005: return MotorHomingResponse; + case 2006: return MotorJoggingRequest; + case 2007: return MotorJoggingResponse; + case 2008: return MotorAbortJoggingRequest; + case 2009: return MotorAbortJoggingResponse; + case 2010: return DispenserAbortHomingRequest; + case 2011: return DispenserAbortHomingResponse; + case 2012: return DispenserHomingRequest; + case 2013: return DispenserHomingResponse; + case 2014: return DispenserJoggingRequest; + case 2015: return DispenserJoggingResponse; + case 2016: return DispenserAbortJoggingRequest; + case 2017: return DispenserAbortJoggingResponse; + case 2018: return SetDigitalOutRequest; + case 2019: return SetDigitalOutResponse; + case 2020: return ThreadJoggingRequest; + case 2021: return ThreadJoggingResponse; + case 2022: return ThreadAbortJoggingRequest; + case 2023: return ThreadAbortJoggingResponse; + case 2024: return SetComponentValueRequest; + case 2025: return SetComponentValueResponse; + case 3000: return JobRequest; + case 3001: return JobResponse; + case 3002: return AbortJobRequest; + case 3003: return AbortJobResponse; + case 3004: return UploadProcessParametersRequest; + case 3005: return UploadProcessParametersResponse; + case 4000: return DebugLogRequest; + case 4001: return DebugLogResponse; + case 5000: return UploadHardwareConfigurationRequest; + case 5001: return UploadHardwareConfigurationResponse; default: return null; } } @@ -567,42 +1095,84 @@ public final class MessageTypeOuterClass { descriptor; static { java.lang.String[] descriptorData = { - "\n\021MessageType.proto\022\020Tango.PMR.Common*\301\n" + - "\n\013MessageType\022\007\n\003RGB\020\000\022\007\n\003Job\020\001\022\013\n\007Segme" + - "nt\020\002\022\024\n\020CalculateRequest\020\003\022\025\n\021CalculateR" + - "esponse\020\004\022\023\n\017ProgressRequest\020\005\022\024\n\020Progre" + - "ssResponse\020\006\022\034\n\030StubCartridgeReadRequest" + - "\020\007\022\035\n\031StubCartridgeReadResponse\020\010\022\035\n\031Stu" + - "bCartridgeWriteRequest\020\t\022\036\n\032StubCartridg" + - "eWriteResponse\020\n\022\030\n\024StubDispenserRequest" + - "\020\013\022\031\n\025StubDispenserResponse\020\014\022\035\n\031StubGPI" + - "OInputSetupRequest\020\r\022\036\n\032StubGPIOInputSet", - "upResponse\020\016\022\032\n\026StubGPIOReadBitRequest\020\017" + - "\022\033\n\027StubGPIOReadBitResponse\020\020\022\033\n\027StubGPI" + - "OReadByteRequest\020\021\022\034\n\030StubGPIOReadByteRe" + - "sponse\020\022\022\033\n\027StubGPIOWriteBitRequest\020\023\022\034\n" + - "\030StubGPIOWriteBitResponse\020\024\022\034\n\030StubGPIOW" + - "riteByteRequest\020\025\022\035\n\031StubGPIOWriteByteRe" + - "sponse\020\026\022\025\n\021StubHeaterRequest\020\027\022\026\n\022StubH" + - "eaterResponse\020\030\022\033\n\027StubMotorEncoderReque" + - "st\020\031\022\034\n\030StubMotorEncoderResponse\020\032\022\035\n\031St" + - "ubOptLimitSwitchRequest\020\033\022\036\n\032StubOptLimi", - "tSwitchResponse\020\034\022\032\n\026StubSteperMotorRequ" + - "est\020\035\022\033\n\027StubSteperMotorResponse\020\036\022\024\n\020St" + - "ubValveRequest\020\037\022\025\n\021StubValveResponse\020 \022" + - "\033\n\027StubExtFlashReadRequest\020!\022\034\n\030StubExtF" + - "lashReadResponse\020\"\022\034\n\030StubExtFlashWriteR" + - "equest\020#\022\035\n\031StubExtFlashWriteResponse\020$\022" + - "%\n ExternalBridgeUdpDiscoveryPacket\020\350\007\022\037" + - "\n\032ExternalClientLoginRequest\020\351\007\022 \n\033Exter" + - "nalClientLoginResponse\020\352\007\022!\n\034DirectSynch" + - "ronizationRequest\020\353\007\022\"\n\035DirectSynchroniz", - "ationResponse\020\354\007\022\034\n\027OverrideDataBaseRequ" + - "est\020\355\007\022\035\n\030OverrideDataBaseResponse\020\356\007\022\025\n" + - "\020KeepAliveRequest\020\357\007\022\026\n\021KeepAliveRespons" + - "e\020\360\007\022\034\n\027StartDiagnosticsRequest\020\320\017\022\035\n\030St" + - "artDiagnosticsResponse\020\321\017B\034\n\032com.twine.t" + - "ango.pmr.commonb\006proto3" + "\n\021MessageType.proto\022\020Tango.PMR.Common*\303\027" + + "\n\013MessageType\022\010\n\004None\020\000\022\024\n\020CalculateRequ" + + "est\020\003\022\025\n\021CalculateResponse\020\004\022\023\n\017Progress" + + "Request\020\005\022\024\n\020ProgressResponse\020\006\022\034\n\030StubC" + + "artridgeReadRequest\020\007\022\035\n\031StubCartridgeRe" + + "adResponse\020\010\022\035\n\031StubCartridgeWriteReques" + + "t\020\t\022\036\n\032StubCartridgeWriteResponse\020\n\022\030\n\024S" + + "tubDispenserRequest\020\013\022\031\n\025StubDispenserRe" + + "sponse\020\014\022\035\n\031StubGPIOInputSetupRequest\020\r\022" + + "\036\n\032StubGPIOInputSetupResponse\020\016\022\032\n\026StubG", + "PIOReadBitRequest\020\017\022\033\n\027StubGPIOReadBitRe" + + "sponse\020\020\022\033\n\027StubGPIOReadByteRequest\020\021\022\034\n" + + "\030StubGPIOReadByteResponse\020\022\022\033\n\027StubGPIOW" + + "riteBitRequest\020\023\022\034\n\030StubGPIOWriteBitResp" + + "onse\020\024\022\034\n\030StubGPIOWriteByteRequest\020\025\022\035\n\031" + + "StubGPIOWriteByteResponse\020\026\022\025\n\021StubHeate" + + "rRequest\020\027\022\026\n\022StubHeaterResponse\020\030\022\033\n\027St" + + "ubMotorEncoderRequest\020\031\022\034\n\030StubMotorEnco" + + "derResponse\020\032\022\035\n\031StubOptLimitSwitchReque" + + "st\020\033\022\036\n\032StubOptLimitSwitchResponse\020\034\022\032\n\026", + "StubSteperMotorRequest\020\035\022\033\n\027StubSteperMo" + + "torResponse\020\036\022\024\n\020StubValveRequest\020\037\022\025\n\021S" + + "tubValveResponse\020 \022\033\n\027StubExtFlashReadRe" + + "quest\020!\022\034\n\030StubExtFlashReadResponse\020\"\022\034\n" + + "\030StubExtFlashWriteRequest\020#\022\035\n\031StubExtFl" + + "ashWriteResponse\020$\022\036\n\032StubFPGAReadBackRe" + + "gRequest\020%\022\037\n\033StubFPGAReadBackRegRespons" + + "e\020&\022\036\n\032StubFPGAReadVersionRequest\020\'\022\037\n\033S" + + "tubFPGAReadVersionResponse\020(\022\032\n\026StubL647" + + "0DriverRequest\020)\022\033\n\027StubL6470DriverRespo", + "nse\020*\022\030\n\024StubMotorInitRequest\020+\022\031\n\025StubM" + + "otorInitResponse\020,\022\027\n\023StubMotorRunReques" + + "t\020-\022\030\n\024StubMotorRunResponse\020.\022\030\n\024StubMot" + + "orStopRequest\020/\022\031\n\025StubMotorStopResponse" + + "\0200\022\032\n\026StubMotorStatusRequest\0201\022\033\n\027StubMo" + + "torStatusResponse\0202\022\027\n\023StubMotorMovReque" + + "st\0203\022\030\n\024StubMotorMovResponse\0204\022\031\n\025StubMo" + + "torSpeedRequest\0205\022\032\n\026StubMotorSpeedRespo" + + "nse\0206\022\034\n\030StubMotorPositionRequest\0207\022\035\n\031S" + + "tubMotorPositionResponse\0208\022\030\n\024StubHWVers", + "ionRequest\0209\022\031\n\025StubHWVersionResponse\020:\022" + + "\033\n\027StubF3Gpo01WriteRequest\020;\022\034\n\030StubF3Gp" + + "o01WriteResponse\020<\022%\n ExternalBridgeUdpD" + + "iscoveryPacket\020\350\007\022\037\n\032ExternalClientLogin" + + "Request\020\351\007\022 \n\033ExternalClientLoginRespons" + + "e\020\352\007\022!\n\034DirectSynchronizationRequest\020\353\007\022" + + "\"\n\035DirectSynchronizationResponse\020\354\007\022\034\n\027O" + + "verrideDataBaseRequest\020\355\007\022\035\n\030OverrideDat" + + "aBaseResponse\020\356\007\022\025\n\020KeepAliveRequest\020\357\007\022" + + "\026\n\021KeepAliveResponse\020\360\007\022\033\n\026PushDiagnosti", + "csRequest\020\320\017\022\034\n\027PushDiagnosticsResponse\020" + + "\321\017\022\034\n\027MotorAbortHomingRequest\020\322\017\022\035\n\030Moto" + + "rAbortHomingResponse\020\323\017\022\027\n\022MotorHomingRe" + + "quest\020\324\017\022\030\n\023MotorHomingResponse\020\325\017\022\030\n\023Mo" + + "torJoggingRequest\020\326\017\022\031\n\024MotorJoggingResp" + + "onse\020\327\017\022\035\n\030MotorAbortJoggingRequest\020\330\017\022\036" + + "\n\031MotorAbortJoggingResponse\020\331\017\022 \n\033Dispen" + + "serAbortHomingRequest\020\332\017\022!\n\034DispenserAbo" + + "rtHomingResponse\020\333\017\022\033\n\026DispenserHomingRe" + + "quest\020\334\017\022\034\n\027DispenserHomingResponse\020\335\017\022\034", + "\n\027DispenserJoggingRequest\020\336\017\022\035\n\030Dispense" + + "rJoggingResponse\020\337\017\022!\n\034DispenserAbortJog" + + "gingRequest\020\340\017\022\"\n\035DispenserAbortJoggingR" + + "esponse\020\341\017\022\031\n\024SetDigitalOutRequest\020\342\017\022\032\n" + + "\025SetDigitalOutResponse\020\343\017\022\031\n\024ThreadJoggi" + + "ngRequest\020\344\017\022\032\n\025ThreadJoggingResponse\020\345\017" + + "\022\036\n\031ThreadAbortJoggingRequest\020\346\017\022\037\n\032Thre" + + "adAbortJoggingResponse\020\347\017\022\035\n\030SetComponen" + + "tValueRequest\020\350\017\022\036\n\031SetComponentValueRes" + + "ponse\020\351\017\022\017\n\nJobRequest\020\270\027\022\020\n\013JobResponse", + "\020\271\027\022\024\n\017AbortJobRequest\020\272\027\022\025\n\020AbortJobRes" + + "ponse\020\273\027\022#\n\036UploadProcessParametersReque" + + "st\020\274\027\022$\n\037UploadProcessParametersResponse" + + "\020\275\027\022\024\n\017DebugLogRequest\020\240\037\022\025\n\020DebugLogRes" + + "ponse\020\241\037\022\'\n\"UploadHardwareConfigurationR" + + "equest\020\210\'\022(\n#UploadHardwareConfiguration" + + "Response\020\211\'B\034\n\032com.twine.tango.pmr.commo" + + "nb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogCategoryOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogCategoryOuterClass.java new file mode 100644 index 000000000..24814d4b3 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogCategoryOuterClass.java @@ -0,0 +1,172 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DebugLogCategory.proto + +package com.twine.tango.pmr.debugging; + +public final class DebugLogCategoryOuterClass { + private DebugLogCategoryOuterClass() {} + 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 Tango.PMR.Debugging.DebugLogCategory} + */ + public enum DebugLogCategory + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Info = 0; + */ + Info(0), + /** + * Warning = 1; + */ + Warning(1), + /** + * Error = 2; + */ + Error(2), + /** + * Critical = 3; + */ + Critical(3), + /** + * Debug = 4; + */ + Debug(4), + UNRECOGNIZED(-1), + ; + + /** + * Info = 0; + */ + public static final int Info_VALUE = 0; + /** + * Warning = 1; + */ + public static final int Warning_VALUE = 1; + /** + * Error = 2; + */ + public static final int Error_VALUE = 2; + /** + * Critical = 3; + */ + public static final int Critical_VALUE = 3; + /** + * Debug = 4; + */ + public static final int Debug_VALUE = 4; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DebugLogCategory valueOf(int value) { + return forNumber(value); + } + + public static DebugLogCategory forNumber(int value) { + switch (value) { + case 0: return Info; + case 1: return Warning; + case 2: return Error; + case 3: return Critical; + case 4: return Debug; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DebugLogCategory> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DebugLogCategory findValueByNumber(int number) { + return DebugLogCategory.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 com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final DebugLogCategory[] VALUES = values(); + + public static DebugLogCategory valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DebugLogCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Debugging.DebugLogCategory) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\026DebugLogCategory.proto\022\023Tango.PMR.Debu" + + "gging*M\n\020DebugLogCategory\022\010\n\004Info\020\000\022\013\n\007W" + + "arning\020\001\022\t\n\005Error\020\002\022\014\n\010Critical\020\003\022\t\n\005Deb" + + "ug\020\004B\037\n\035com.twine.tango.pmr.debuggingb\006p" + + "roto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogRequestOuterClass.java new file mode 100644 index 000000000..4cfd5b2e6 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogRequestOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DebugLogRequest.proto + +package com.twine.tango.pmr.debugging; + +public final class DebugLogRequestOuterClass { + private DebugLogRequestOuterClass() {} + 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 DebugLogRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Debugging.DebugLogRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Debugging.DebugLogRequest} + */ + public static final class DebugLogRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Debugging.DebugLogRequest) + DebugLogRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DebugLogRequest.newBuilder() to construct. + private DebugLogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebugLogRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DebugLogRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.internal_static_Tango_PMR_Debugging_DebugLogRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.internal_static_Tango_PMR_Debugging_DebugLogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.class, com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest other = (com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest 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 com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest 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 com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Debugging.DebugLogRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Debugging.DebugLogRequest) + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.internal_static_Tango_PMR_Debugging_DebugLogRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.internal_static_Tango_PMR_Debugging_DebugLogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.class, com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.internal_static_Tango_PMR_Debugging_DebugLogRequest_descriptor; + } + + public com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest build() { + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest buildPartial() { + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest result = new com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest) { + return mergeFrom((com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest other) { + if (other == com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Debugging.DebugLogRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Debugging.DebugLogRequest) + private static final com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest(); + } + + public static com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DebugLogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DebugLogRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.debugging.DebugLogRequestOuterClass.DebugLogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Debugging_DebugLogRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Debugging_DebugLogRequest_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\025DebugLogRequest.proto\022\023Tango.PMR.Debug" + + "ging\"\021\n\017DebugLogRequestB\037\n\035com.twine.tan" + + "go.pmr.debuggingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Debugging_DebugLogRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Debugging_DebugLogRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Debugging_DebugLogRequest_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogResponseOuterClass.java new file mode 100644 index 000000000..3c56b4966 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/debugging/DebugLogResponseOuterClass.java @@ -0,0 +1,1002 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DebugLogResponse.proto + +package com.twine.tango.pmr.debugging; + +public final class DebugLogResponseOuterClass { + private DebugLogResponseOuterClass() {} + 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 DebugLogResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Debugging.DebugLogResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + int getCategoryValue(); + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory getCategory(); + + /** + * string FileName = 2; + */ + java.lang.String getFileName(); + /** + * string FileName = 2; + */ + com.google.protobuf.ByteString + getFileNameBytes(); + + /** + * uint32 LineNumber = 3; + */ + int getLineNumber(); + + /** + * uint32 Filter = 4; + */ + int getFilter(); + + /** + * string Message = 5; + */ + java.lang.String getMessage(); + /** + * string Message = 5; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * uint32 ModuleId = 6; + */ + int getModuleId(); + } + /** + * Protobuf type {@code Tango.PMR.Debugging.DebugLogResponse} + */ + public static final class DebugLogResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Debugging.DebugLogResponse) + DebugLogResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DebugLogResponse.newBuilder() to construct. + private DebugLogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DebugLogResponse() { + category_ = 0; + fileName_ = ""; + lineNumber_ = 0; + filter_ = 0; + message_ = ""; + moduleId_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DebugLogResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + category_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + fileName_ = s; + break; + } + case 24: { + + lineNumber_ = input.readUInt32(); + break; + } + case 32: { + + filter_ = input.readUInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 48: { + + moduleId_ = input.readUInt32(); + 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 com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.internal_static_Tango_PMR_Debugging_DebugLogResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.internal_static_Tango_PMR_Debugging_DebugLogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.class, com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.Builder.class); + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_; + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public int getCategoryValue() { + return category_; + } + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory getCategory() { + com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory result = com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory.valueOf(category_); + return result == null ? com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory.UNRECOGNIZED : result; + } + + public static final int FILENAME_FIELD_NUMBER = 2; + private volatile java.lang.Object fileName_; + /** + * string FileName = 2; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } + } + /** + * string FileName = 2; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINENUMBER_FIELD_NUMBER = 3; + private int lineNumber_; + /** + * uint32 LineNumber = 3; + */ + public int getLineNumber() { + return lineNumber_; + } + + public static final int FILTER_FIELD_NUMBER = 4; + private int filter_; + /** + * uint32 Filter = 4; + */ + public int getFilter() { + return filter_; + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object message_; + /** + * string Message = 5; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * string Message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODULEID_FIELD_NUMBER = 6; + private int moduleId_; + /** + * uint32 ModuleId = 6; + */ + public int getModuleId() { + return moduleId_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (category_ != com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory.Info.getNumber()) { + output.writeEnum(1, category_); + } + if (!getFileNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileName_); + } + if (lineNumber_ != 0) { + output.writeUInt32(3, lineNumber_); + } + if (filter_ != 0) { + output.writeUInt32(4, filter_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); + } + if (moduleId_ != 0) { + output.writeUInt32(6, moduleId_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ != com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory.Info.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, category_); + } + if (!getFileNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileName_); + } + if (lineNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, lineNumber_); + } + if (filter_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, filter_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); + } + if (moduleId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, moduleId_); + } + 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 com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse other = (com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse) obj; + + boolean result = true; + result = result && category_ == other.category_; + result = result && getFileName() + .equals(other.getFileName()); + result = result && (getLineNumber() + == other.getLineNumber()); + result = result && (getFilter() + == other.getFilter()); + result = result && getMessage() + .equals(other.getMessage()); + result = result && (getModuleId() + == other.getModuleId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + LINENUMBER_FIELD_NUMBER; + hash = (53 * hash) + getLineNumber(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + MODULEID_FIELD_NUMBER; + hash = (53 * hash) + getModuleId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse 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 com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse 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 com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Debugging.DebugLogResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Debugging.DebugLogResponse) + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.internal_static_Tango_PMR_Debugging_DebugLogResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.internal_static_Tango_PMR_Debugging_DebugLogResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.class, com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + category_ = 0; + + fileName_ = ""; + + lineNumber_ = 0; + + filter_ = 0; + + message_ = ""; + + moduleId_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.internal_static_Tango_PMR_Debugging_DebugLogResponse_descriptor; + } + + public com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse build() { + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse buildPartial() { + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse result = new com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse(this); + result.category_ = category_; + result.fileName_ = fileName_; + result.lineNumber_ = lineNumber_; + result.filter_ = filter_; + result.message_ = message_; + result.moduleId_ = moduleId_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse) { + return mergeFrom((com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse other) { + if (other == com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse.getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + onChanged(); + } + if (other.getLineNumber() != 0) { + setLineNumber(other.getLineNumber()); + } + if (other.getFilter() != 0) { + setFilter(other.getFilter()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getModuleId() != 0) { + setModuleId(other.getModuleId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int category_ = 0; + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public int getCategoryValue() { + return category_; + } + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public Builder setCategoryValue(int value) { + category_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory getCategory() { + com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory result = com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory.valueOf(category_); + return result == null ? com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public Builder setCategory(com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.DebugLogCategory value) { + if (value == null) { + throw new NullPointerException(); + } + + category_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Debugging.DebugLogCategory Category = 1; + */ + public Builder clearCategory() { + + category_ = 0; + onChanged(); + return this; + } + + private java.lang.Object fileName_ = ""; + /** + * string FileName = 2; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string FileName = 2; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string FileName = 2; + */ + public Builder setFileName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fileName_ = value; + onChanged(); + return this; + } + /** + * string FileName = 2; + */ + public Builder clearFileName() { + + fileName_ = getDefaultInstance().getFileName(); + onChanged(); + return this; + } + /** + * string FileName = 2; + */ + public Builder setFileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileName_ = value; + onChanged(); + return this; + } + + private int lineNumber_ ; + /** + * uint32 LineNumber = 3; + */ + public int getLineNumber() { + return lineNumber_; + } + /** + * uint32 LineNumber = 3; + */ + public Builder setLineNumber(int value) { + + lineNumber_ = value; + onChanged(); + return this; + } + /** + * uint32 LineNumber = 3; + */ + public Builder clearLineNumber() { + + lineNumber_ = 0; + onChanged(); + return this; + } + + private int filter_ ; + /** + * uint32 Filter = 4; + */ + public int getFilter() { + return filter_; + } + /** + * uint32 Filter = 4; + */ + public Builder setFilter(int value) { + + filter_ = value; + onChanged(); + return this; + } + /** + * uint32 Filter = 4; + */ + public Builder clearFilter() { + + filter_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * string Message = 5; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Message = 5; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * string Message = 5; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * string Message = 5; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private int moduleId_ ; + /** + * uint32 ModuleId = 6; + */ + public int getModuleId() { + return moduleId_; + } + /** + * uint32 ModuleId = 6; + */ + public Builder setModuleId(int value) { + + moduleId_ = value; + onChanged(); + return this; + } + /** + * uint32 ModuleId = 6; + */ + public Builder clearModuleId() { + + moduleId_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Debugging.DebugLogResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Debugging.DebugLogResponse) + private static final com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse(); + } + + public static com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DebugLogResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DebugLogResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.debugging.DebugLogResponseOuterClass.DebugLogResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Debugging_DebugLogResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Debugging_DebugLogResponse_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\026DebugLogResponse.proto\022\023Tango.PMR.Debu" + + "gging\032\026DebugLogCategory.proto\"\244\001\n\020DebugL" + + "ogResponse\0227\n\010Category\030\001 \001(\0162%.Tango.PMR" + + ".Debugging.DebugLogCategory\022\020\n\010FileName\030" + + "\002 \001(\t\022\022\n\nLineNumber\030\003 \001(\r\022\016\n\006Filter\030\004 \001(" + + "\r\022\017\n\007Message\030\005 \001(\t\022\020\n\010ModuleId\030\006 \001(\rB\037\n\035" + + "com.twine.tango.pmr.debuggingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Debugging_DebugLogResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Debugging_DebugLogResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Debugging_DebugLogResponse_descriptor, + new java.lang.String[] { "Category", "FileName", "LineNumber", "Filter", "Message", "ModuleId", }); + com.twine.tango.pmr.debugging.DebugLogCategoryOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DataFileFrameOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DataFileFrameOuterClass.java new file mode 100644 index 000000000..dc624902e --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DataFileFrameOuterClass.java @@ -0,0 +1,703 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DataFileFrame.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DataFileFrameOuterClass { + private DataFileFrameOuterClass() {} + 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 DataFileFrameOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DataFileFrame) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Milliseconds = 1; + */ + int getMilliseconds(); + + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + boolean hasPushDiagnosticsResponse(); + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse getPushDiagnosticsResponse(); + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder getPushDiagnosticsResponseOrBuilder(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DataFileFrame} + */ + public static final class DataFileFrame extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DataFileFrame) + DataFileFrameOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataFileFrame.newBuilder() to construct. + private DataFileFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DataFileFrame() { + milliseconds_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DataFileFrame( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + milliseconds_ = input.readInt32(); + break; + } + case 18: { + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder subBuilder = null; + if (pushDiagnosticsResponse_ != null) { + subBuilder = pushDiagnosticsResponse_.toBuilder(); + } + pushDiagnosticsResponse_ = input.readMessage(com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pushDiagnosticsResponse_); + pushDiagnosticsResponse_ = subBuilder.buildPartial(); + } + + 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 com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.internal_static_Tango_PMR_Diagnostics_DataFileFrame_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.internal_static_Tango_PMR_Diagnostics_DataFileFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.class, com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.Builder.class); + } + + public static final int MILLISECONDS_FIELD_NUMBER = 1; + private int milliseconds_; + /** + * int32 Milliseconds = 1; + */ + public int getMilliseconds() { + return milliseconds_; + } + + public static final int PUSHDIAGNOSTICSRESPONSE_FIELD_NUMBER = 2; + private com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse pushDiagnosticsResponse_; + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public boolean hasPushDiagnosticsResponse() { + return pushDiagnosticsResponse_ != null; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse getPushDiagnosticsResponse() { + return pushDiagnosticsResponse_ == null ? com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.getDefaultInstance() : pushDiagnosticsResponse_; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder getPushDiagnosticsResponseOrBuilder() { + return getPushDiagnosticsResponse(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (milliseconds_ != 0) { + output.writeInt32(1, milliseconds_); + } + if (pushDiagnosticsResponse_ != null) { + output.writeMessage(2, getPushDiagnosticsResponse()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (milliseconds_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, milliseconds_); + } + if (pushDiagnosticsResponse_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPushDiagnosticsResponse()); + } + 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 com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame other = (com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame) obj; + + boolean result = true; + result = result && (getMilliseconds() + == other.getMilliseconds()); + result = result && (hasPushDiagnosticsResponse() == other.hasPushDiagnosticsResponse()); + if (hasPushDiagnosticsResponse()) { + result = result && getPushDiagnosticsResponse() + .equals(other.getPushDiagnosticsResponse()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MILLISECONDS_FIELD_NUMBER; + hash = (53 * hash) + getMilliseconds(); + if (hasPushDiagnosticsResponse()) { + hash = (37 * hash) + PUSHDIAGNOSTICSRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getPushDiagnosticsResponse().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame 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 com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame 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 com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DataFileFrame} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DataFileFrame) + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.internal_static_Tango_PMR_Diagnostics_DataFileFrame_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.internal_static_Tango_PMR_Diagnostics_DataFileFrame_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.class, com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + milliseconds_ = 0; + + if (pushDiagnosticsResponseBuilder_ == null) { + pushDiagnosticsResponse_ = null; + } else { + pushDiagnosticsResponse_ = null; + pushDiagnosticsResponseBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.internal_static_Tango_PMR_Diagnostics_DataFileFrame_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame build() { + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame buildPartial() { + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame result = new com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame(this); + result.milliseconds_ = milliseconds_; + if (pushDiagnosticsResponseBuilder_ == null) { + result.pushDiagnosticsResponse_ = pushDiagnosticsResponse_; + } else { + result.pushDiagnosticsResponse_ = pushDiagnosticsResponseBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame other) { + if (other == com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame.getDefaultInstance()) return this; + if (other.getMilliseconds() != 0) { + setMilliseconds(other.getMilliseconds()); + } + if (other.hasPushDiagnosticsResponse()) { + mergePushDiagnosticsResponse(other.getPushDiagnosticsResponse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int milliseconds_ ; + /** + * int32 Milliseconds = 1; + */ + public int getMilliseconds() { + return milliseconds_; + } + /** + * int32 Milliseconds = 1; + */ + public Builder setMilliseconds(int value) { + + milliseconds_ = value; + onChanged(); + return this; + } + /** + * int32 Milliseconds = 1; + */ + public Builder clearMilliseconds() { + + milliseconds_ = 0; + onChanged(); + return this; + } + + private com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse pushDiagnosticsResponse_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder> pushDiagnosticsResponseBuilder_; + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public boolean hasPushDiagnosticsResponse() { + return pushDiagnosticsResponseBuilder_ != null || pushDiagnosticsResponse_ != null; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse getPushDiagnosticsResponse() { + if (pushDiagnosticsResponseBuilder_ == null) { + return pushDiagnosticsResponse_ == null ? com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.getDefaultInstance() : pushDiagnosticsResponse_; + } else { + return pushDiagnosticsResponseBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public Builder setPushDiagnosticsResponse(com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse value) { + if (pushDiagnosticsResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pushDiagnosticsResponse_ = value; + onChanged(); + } else { + pushDiagnosticsResponseBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public Builder setPushDiagnosticsResponse( + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder builderForValue) { + if (pushDiagnosticsResponseBuilder_ == null) { + pushDiagnosticsResponse_ = builderForValue.build(); + onChanged(); + } else { + pushDiagnosticsResponseBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public Builder mergePushDiagnosticsResponse(com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse value) { + if (pushDiagnosticsResponseBuilder_ == null) { + if (pushDiagnosticsResponse_ != null) { + pushDiagnosticsResponse_ = + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.newBuilder(pushDiagnosticsResponse_).mergeFrom(value).buildPartial(); + } else { + pushDiagnosticsResponse_ = value; + } + onChanged(); + } else { + pushDiagnosticsResponseBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public Builder clearPushDiagnosticsResponse() { + if (pushDiagnosticsResponseBuilder_ == null) { + pushDiagnosticsResponse_ = null; + onChanged(); + } else { + pushDiagnosticsResponse_ = null; + pushDiagnosticsResponseBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder getPushDiagnosticsResponseBuilder() { + + onChanged(); + return getPushDiagnosticsResponseFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder getPushDiagnosticsResponseOrBuilder() { + if (pushDiagnosticsResponseBuilder_ != null) { + return pushDiagnosticsResponseBuilder_.getMessageOrBuilder(); + } else { + return pushDiagnosticsResponse_ == null ? + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.getDefaultInstance() : pushDiagnosticsResponse_; + } + } + /** + * .Tango.PMR.Diagnostics.PushDiagnosticsResponse PushDiagnosticsResponse = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder> + getPushDiagnosticsResponseFieldBuilder() { + if (pushDiagnosticsResponseBuilder_ == null) { + pushDiagnosticsResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder>( + getPushDiagnosticsResponse(), + getParentForChildren(), + isClean()); + pushDiagnosticsResponse_ = null; + } + return pushDiagnosticsResponseBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DataFileFrame) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DataFileFrame) + private static final com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame(); + } + + public static com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DataFileFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataFileFrame(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DataFileFrameOuterClass.DataFileFrame getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DataFileFrame_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DataFileFrame_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\023DataFileFrame.proto\022\025Tango.PMR.Diagnos" + + "tics\032\035PushDiagnosticsResponse.proto\"v\n\rD" + + "ataFileFrame\022\024\n\014Milliseconds\030\001 \001(\005\022O\n\027Pu" + + "shDiagnosticsResponse\030\002 \001(\0132..Tango.PMR." + + "Diagnostics.PushDiagnosticsResponseB!\n\037c" + + "om.twine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_DataFileFrame_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DataFileFrame_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DataFileFrame_descriptor, + new java.lang.String[] { "Milliseconds", "PushDiagnosticsResponse", }); + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DiagnosticsMonitorsOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DiagnosticsMonitorsOuterClass.java new file mode 100644 index 000000000..0d3e3d4e4 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DiagnosticsMonitorsOuterClass.java @@ -0,0 +1,9435 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DiagnosticsMonitors.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DiagnosticsMonitorsOuterClass { + private DiagnosticsMonitorsOuterClass() {} + 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 DiagnosticsMonitorsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DiagnosticsMonitors) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+     * 
+ * + * repeated double Dancer1Angle = 1; + */ + java.util.List getDancer1AngleList(); + /** + *
+     *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+     * 
+ * + * repeated double Dancer1Angle = 1; + */ + int getDancer1AngleCount(); + /** + *
+     *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+     * 
+ * + * repeated double Dancer1Angle = 1; + */ + double getDancer1Angle(int index); + + /** + *
+     *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer2Angle = 2; + */ + java.util.List getDancer2AngleList(); + /** + *
+     *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer2Angle = 2; + */ + int getDancer2AngleCount(); + /** + *
+     *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer2Angle = 2; + */ + double getDancer2Angle(int index); + + /** + *
+     *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer3Angle = 3; + */ + java.util.List getDancer3AngleList(); + /** + *
+     *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer3Angle = 3; + */ + int getDancer3AngleCount(); + /** + *
+     *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer3Angle = 3; + */ + double getDancer3Angle(int index); + + /** + *
+     *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + java.util.List getFeederMotorFrequencyList(); + /** + *
+     *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + int getFeederMotorFrequencyCount(); + /** + *
+     *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + double getFeederMotorFrequency(int index); + + /** + *
+     *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerMotor = 5; + */ + java.util.List getDryerMotorList(); + /** + *
+     *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerMotor = 5; + */ + int getDryerMotorCount(); + /** + *
+     *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerMotor = 5; + */ + double getDryerMotor(int index); + + /** + *
+     *Poller Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PollerMotor = 6; + */ + java.util.List getPollerMotorList(); + /** + *
+     *Poller Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PollerMotor = 6; + */ + int getPollerMotorCount(); + /** + *
+     *Poller Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PollerMotor = 6; + */ + double getPollerMotor(int index); + + /** + *
+     *Winder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderMotor = 7; + */ + java.util.List getWinderMotorList(); + /** + *
+     *Winder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderMotor = 7; + */ + int getWinderMotorCount(); + /** + *
+     *Winder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderMotor = 7; + */ + double getWinderMotor(int index); + + /** + *
+     *Screw Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ScrewMotor = 8; + */ + java.util.List getScrewMotorList(); + /** + *
+     *Screw Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ScrewMotor = 8; + */ + int getScrewMotorCount(); + /** + *
+     *Screw Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ScrewMotor = 8; + */ + double getScrewMotor(int index); + + /** + *
+     *Thread Speed (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ThreadSpeed = 9; + */ + java.util.List getThreadSpeedList(); + /** + *
+     *Thread Speed (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ThreadSpeed = 9; + */ + int getThreadSpeedCount(); + /** + *
+     *Thread Speed (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ThreadSpeed = 9; + */ + double getThreadSpeed(int index); + + /** + *
+     *Mixer (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MixerTemperature = 10; + */ + java.util.List getMixerTemperatureList(); + /** + *
+     *Mixer (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MixerTemperature = 10; + */ + int getMixerTemperatureCount(); + /** + *
+     *Mixer (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MixerTemperature = 10; + */ + double getMixerTemperature(int index); + + /** + *
+     *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + java.util.List getHeadZone1TemperatureList(); + /** + *
+     *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + int getHeadZone1TemperatureCount(); + /** + *
+     *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + double getHeadZone1Temperature(int index); + + /** + *
+     *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + java.util.List getHeadZone2TemperatureList(); + /** + *
+     *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + int getHeadZone2TemperatureCount(); + /** + *
+     *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + double getHeadZone2Temperature(int index); + + /** + *
+     *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + java.util.List getHeadZone3TemperatureList(); + /** + *
+     *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + int getHeadZone3TemperatureCount(); + /** + *
+     *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + double getHeadZone3Temperature(int index); + + /** + *
+     *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadAirFlow = 14; + */ + java.util.List getHeadAirFlowList(); + /** + *
+     *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadAirFlow = 14; + */ + int getHeadAirFlowCount(); + /** + *
+     *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadAirFlow = 14; + */ + double getHeadAirFlow(int index); + + /** + *
+     *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederTension = 15; + */ + java.util.List getFeederTensionList(); + /** + *
+     *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederTension = 15; + */ + int getFeederTensionCount(); + /** + *
+     *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederTension = 15; + */ + double getFeederTension(int index); + + /** + *
+     *Puller Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PullerTension = 16; + */ + java.util.List getPullerTensionList(); + /** + *
+     *Puller Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PullerTension = 16; + */ + int getPullerTensionCount(); + /** + *
+     *Puller Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PullerTension = 16; + */ + double getPullerTension(int index); + + /** + *
+     *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + java.util.List getDryerZone1TemperatureList(); + /** + *
+     *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + int getDryerZone1TemperatureCount(); + /** + *
+     *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + double getDryerZone1Temperature(int index); + + /** + *
+     *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + java.util.List getDryerZone2TemperatureList(); + /** + *
+     *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + int getDryerZone2TemperatureCount(); + /** + *
+     *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + double getDryerZone2Temperature(int index); + + /** + *
+     *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + java.util.List getDryerZone3TemperatureList(); + /** + *
+     *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + int getDryerZone3TemperatureCount(); + /** + *
+     *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + double getDryerZone3Temperature(int index); + + /** + *
+     *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerAirFlow = 20; + */ + java.util.List getDryerAirFlowList(); + /** + *
+     *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerAirFlow = 20; + */ + int getDryerAirFlowCount(); + /** + *
+     *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerAirFlow = 20; + */ + double getDryerAirFlow(int index); + + /** + *
+     *Winder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderTension = 21; + */ + java.util.List getWinderTensionList(); + /** + *
+     *Winder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderTension = 21; + */ + int getWinderTensionCount(); + /** + *
+     *Winder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderTension = 21; + */ + double getWinderTension(int index); + + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + java.util.List + getDispensersMotorsFrequencyList(); + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersMotorsFrequency(int index); + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + int getDispensersMotorsFrequencyCount(); + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + java.util.List + getDispensersMotorsFrequencyOrBuilderList(); + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersMotorsFrequencyOrBuilder( + int index); + + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + java.util.List + getDispensersAngularEncodersList(); + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersAngularEncoders(int index); + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + int getDispensersAngularEncodersCount(); + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + java.util.List + getDispensersAngularEncodersOrBuilderList(); + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersAngularEncodersOrBuilder( + int index); + + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + java.util.List + getDispensersLinearPositionsList(); + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersLinearPositions(int index); + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + int getDispensersLinearPositionsCount(); + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + java.util.List + getDispensersLinearPositionsOrBuilderList(); + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersLinearPositionsOrBuilder( + int index); + + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + java.util.List + getDispensersPressureList(); + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersPressure(int index); + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + int getDispensersPressureCount(); + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + java.util.List + getDispensersPressureOrBuilderList(); + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersPressureOrBuilder( + int index); + + /** + *
+     *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MidTankPressure = 26; + */ + java.util.List getMidTankPressureList(); + /** + *
+     *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MidTankPressure = 26; + */ + int getMidTankPressureCount(); + /** + *
+     *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MidTankPressure = 26; + */ + double getMidTankPressure(int index); + + /** + *
+     *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + java.util.List getFilterDeltaPressureList(); + /** + *
+     *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + int getFilterDeltaPressureCount(); + /** + *
+     *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + double getFilterDeltaPressure(int index); + + /** + *
+     *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ChillerTemperature = 28; + */ + java.util.List getChillerTemperatureList(); + /** + *
+     *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ChillerTemperature = 28; + */ + int getChillerTemperatureCount(); + /** + *
+     *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ChillerTemperature = 28; + */ + double getChillerTemperature(int index); + + /** + *
+     *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + java.util.List getDispenser1MotorFrequencyList(); + /** + *
+     *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + int getDispenser1MotorFrequencyCount(); + /** + *
+     *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + double getDispenser1MotorFrequency(int index); + + /** + *
+     *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + java.util.List getDispenser2MotorFrequencyList(); + /** + *
+     *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + int getDispenser2MotorFrequencyCount(); + /** + *
+     *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + double getDispenser2MotorFrequency(int index); + + /** + *
+     *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + java.util.List getDispenser3MotorFrequencyList(); + /** + *
+     *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + int getDispenser3MotorFrequencyCount(); + /** + *
+     *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + double getDispenser3MotorFrequency(int index); + + /** + *
+     *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + java.util.List getDispenser4MotorFrequencyList(); + /** + *
+     *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + int getDispenser4MotorFrequencyCount(); + /** + *
+     *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + double getDispenser4MotorFrequency(int index); + + /** + *
+     *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + java.util.List getDispenser5MotorFrequencyList(); + /** + *
+     *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + int getDispenser5MotorFrequencyCount(); + /** + *
+     *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + double getDispenser5MotorFrequency(int index); + + /** + *
+     *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + java.util.List getDispenser6MotorFrequencyList(); + /** + *
+     *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + int getDispenser6MotorFrequencyCount(); + /** + *
+     *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + double getDispenser6MotorFrequency(int index); + + /** + *
+     *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + java.util.List getDispenser7MotorFrequencyList(); + /** + *
+     *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + int getDispenser7MotorFrequencyCount(); + /** + *
+     *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + double getDispenser7MotorFrequency(int index); + + /** + *
+     *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + java.util.List getDispenser8MotorFrequencyList(); + /** + *
+     *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + int getDispenser8MotorFrequencyCount(); + /** + *
+     *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + double getDispenser8MotorFrequency(int index); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DiagnosticsMonitors} + */ + public static final class DiagnosticsMonitors extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DiagnosticsMonitors) + DiagnosticsMonitorsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DiagnosticsMonitors.newBuilder() to construct. + private DiagnosticsMonitors(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DiagnosticsMonitors() { + dancer1Angle_ = java.util.Collections.emptyList(); + dancer2Angle_ = java.util.Collections.emptyList(); + dancer3Angle_ = java.util.Collections.emptyList(); + feederMotorFrequency_ = java.util.Collections.emptyList(); + dryerMotor_ = java.util.Collections.emptyList(); + pollerMotor_ = java.util.Collections.emptyList(); + winderMotor_ = java.util.Collections.emptyList(); + screwMotor_ = java.util.Collections.emptyList(); + threadSpeed_ = java.util.Collections.emptyList(); + mixerTemperature_ = java.util.Collections.emptyList(); + headZone1Temperature_ = java.util.Collections.emptyList(); + headZone2Temperature_ = java.util.Collections.emptyList(); + headZone3Temperature_ = java.util.Collections.emptyList(); + headAirFlow_ = java.util.Collections.emptyList(); + feederTension_ = java.util.Collections.emptyList(); + pullerTension_ = java.util.Collections.emptyList(); + dryerZone1Temperature_ = java.util.Collections.emptyList(); + dryerZone2Temperature_ = java.util.Collections.emptyList(); + dryerZone3Temperature_ = java.util.Collections.emptyList(); + dryerAirFlow_ = java.util.Collections.emptyList(); + winderTension_ = java.util.Collections.emptyList(); + dispensersMotorsFrequency_ = java.util.Collections.emptyList(); + dispensersAngularEncoders_ = java.util.Collections.emptyList(); + dispensersLinearPositions_ = java.util.Collections.emptyList(); + dispensersPressure_ = java.util.Collections.emptyList(); + midTankPressure_ = java.util.Collections.emptyList(); + filterDeltaPressure_ = java.util.Collections.emptyList(); + chillerTemperature_ = java.util.Collections.emptyList(); + dispenser1MotorFrequency_ = java.util.Collections.emptyList(); + dispenser2MotorFrequency_ = java.util.Collections.emptyList(); + dispenser3MotorFrequency_ = java.util.Collections.emptyList(); + dispenser4MotorFrequency_ = java.util.Collections.emptyList(); + dispenser5MotorFrequency_ = java.util.Collections.emptyList(); + dispenser6MotorFrequency_ = java.util.Collections.emptyList(); + dispenser7MotorFrequency_ = java.util.Collections.emptyList(); + dispenser8MotorFrequency_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DiagnosticsMonitors( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + int mutable_bitField0_ = 0; + int mutable_bitField1_ = 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + dancer1Angle_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dancer1Angle_.add(input.readDouble()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + dancer1Angle_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + dancer1Angle_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 17: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + dancer2Angle_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + dancer2Angle_.add(input.readDouble()); + break; + } + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + dancer2Angle_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + dancer2Angle_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 25: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + dancer3Angle_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + dancer3Angle_.add(input.readDouble()); + break; + } + case 26: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { + dancer3Angle_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + dancer3Angle_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 33: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + feederMotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + feederMotorFrequency_.add(input.readDouble()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { + feederMotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + while (input.getBytesUntilLimit() > 0) { + feederMotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 41: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + dryerMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + dryerMotor_.add(input.readDouble()); + break; + } + case 42: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { + dryerMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + while (input.getBytesUntilLimit() > 0) { + dryerMotor_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 49: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + pollerMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + pollerMotor_.add(input.readDouble()); + break; + } + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { + pollerMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + while (input.getBytesUntilLimit() > 0) { + pollerMotor_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 57: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + winderMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + winderMotor_.add(input.readDouble()); + break; + } + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { + winderMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + while (input.getBytesUntilLimit() > 0) { + winderMotor_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 65: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + screwMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + screwMotor_.add(input.readDouble()); + break; + } + case 66: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080) && input.getBytesUntilLimit() > 0) { + screwMotor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + while (input.getBytesUntilLimit() > 0) { + screwMotor_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 73: { + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + threadSpeed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + threadSpeed_.add(input.readDouble()); + break; + } + case 74: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { + threadSpeed_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000100; + } + while (input.getBytesUntilLimit() > 0) { + threadSpeed_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 81: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + mixerTemperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + mixerTemperature_.add(input.readDouble()); + break; + } + case 82: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200) && input.getBytesUntilLimit() > 0) { + mixerTemperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000200; + } + while (input.getBytesUntilLimit() > 0) { + mixerTemperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 89: { + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + headZone1Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + headZone1Temperature_.add(input.readDouble()); + break; + } + case 90: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400) && input.getBytesUntilLimit() > 0) { + headZone1Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000400; + } + while (input.getBytesUntilLimit() > 0) { + headZone1Temperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 97: { + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + headZone2Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + headZone2Temperature_.add(input.readDouble()); + break; + } + case 98: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { + headZone2Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000800; + } + while (input.getBytesUntilLimit() > 0) { + headZone2Temperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 105: { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + headZone3Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + headZone3Temperature_.add(input.readDouble()); + break; + } + case 106: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000) && input.getBytesUntilLimit() > 0) { + headZone3Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00001000; + } + while (input.getBytesUntilLimit() > 0) { + headZone3Temperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 113: { + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + headAirFlow_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + headAirFlow_.add(input.readDouble()); + break; + } + case 114: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00002000) == 0x00002000) && input.getBytesUntilLimit() > 0) { + headAirFlow_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00002000; + } + while (input.getBytesUntilLimit() > 0) { + headAirFlow_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 121: { + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + feederTension_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00004000; + } + feederTension_.add(input.readDouble()); + break; + } + case 122: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00004000) == 0x00004000) && input.getBytesUntilLimit() > 0) { + feederTension_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00004000; + } + while (input.getBytesUntilLimit() > 0) { + feederTension_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 129: { + if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + pullerTension_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00008000; + } + pullerTension_.add(input.readDouble()); + break; + } + case 130: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00008000) == 0x00008000) && input.getBytesUntilLimit() > 0) { + pullerTension_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00008000; + } + while (input.getBytesUntilLimit() > 0) { + pullerTension_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 137: { + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + dryerZone1Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00010000; + } + dryerZone1Temperature_.add(input.readDouble()); + break; + } + case 138: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) { + dryerZone1Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00010000; + } + while (input.getBytesUntilLimit() > 0) { + dryerZone1Temperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 145: { + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + dryerZone2Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + dryerZone2Temperature_.add(input.readDouble()); + break; + } + case 146: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00020000) == 0x00020000) && input.getBytesUntilLimit() > 0) { + dryerZone2Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00020000; + } + while (input.getBytesUntilLimit() > 0) { + dryerZone2Temperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 153: { + if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + dryerZone3Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00040000; + } + dryerZone3Temperature_.add(input.readDouble()); + break; + } + case 154: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00040000) == 0x00040000) && input.getBytesUntilLimit() > 0) { + dryerZone3Temperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00040000; + } + while (input.getBytesUntilLimit() > 0) { + dryerZone3Temperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 161: { + if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + dryerAirFlow_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00080000; + } + dryerAirFlow_.add(input.readDouble()); + break; + } + case 162: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00080000) == 0x00080000) && input.getBytesUntilLimit() > 0) { + dryerAirFlow_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00080000; + } + while (input.getBytesUntilLimit() > 0) { + dryerAirFlow_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 169: { + if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + winderTension_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00100000; + } + winderTension_.add(input.readDouble()); + break; + } + case 170: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00100000) == 0x00100000) && input.getBytesUntilLimit() > 0) { + winderTension_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00100000; + } + while (input.getBytesUntilLimit() > 0) { + winderTension_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 178: { + if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + dispensersMotorsFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00200000; + } + dispensersMotorsFrequency_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.parser(), extensionRegistry)); + break; + } + case 186: { + if (!((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + dispensersAngularEncoders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00400000; + } + dispensersAngularEncoders_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.parser(), extensionRegistry)); + break; + } + case 194: { + if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + dispensersLinearPositions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00800000; + } + dispensersLinearPositions_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.parser(), extensionRegistry)); + break; + } + case 202: { + if (!((mutable_bitField0_ & 0x01000000) == 0x01000000)) { + dispensersPressure_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x01000000; + } + dispensersPressure_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.parser(), extensionRegistry)); + break; + } + case 209: { + if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) { + midTankPressure_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x02000000; + } + midTankPressure_.add(input.readDouble()); + break; + } + case 210: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x02000000) == 0x02000000) && input.getBytesUntilLimit() > 0) { + midTankPressure_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x02000000; + } + while (input.getBytesUntilLimit() > 0) { + midTankPressure_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 217: { + if (!((mutable_bitField0_ & 0x04000000) == 0x04000000)) { + filterDeltaPressure_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x04000000; + } + filterDeltaPressure_.add(input.readDouble()); + break; + } + case 218: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x04000000) == 0x04000000) && input.getBytesUntilLimit() > 0) { + filterDeltaPressure_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x04000000; + } + while (input.getBytesUntilLimit() > 0) { + filterDeltaPressure_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 225: { + if (!((mutable_bitField0_ & 0x08000000) == 0x08000000)) { + chillerTemperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x08000000; + } + chillerTemperature_.add(input.readDouble()); + break; + } + case 226: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x08000000) == 0x08000000) && input.getBytesUntilLimit() > 0) { + chillerTemperature_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x08000000; + } + while (input.getBytesUntilLimit() > 0) { + chillerTemperature_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 233: { + if (!((mutable_bitField0_ & 0x10000000) == 0x10000000)) { + dispenser1MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x10000000; + } + dispenser1MotorFrequency_.add(input.readDouble()); + break; + } + case 234: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x10000000) == 0x10000000) && input.getBytesUntilLimit() > 0) { + dispenser1MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x10000000; + } + while (input.getBytesUntilLimit() > 0) { + dispenser1MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 241: { + if (!((mutable_bitField0_ & 0x20000000) == 0x20000000)) { + dispenser2MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x20000000; + } + dispenser2MotorFrequency_.add(input.readDouble()); + break; + } + case 242: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x20000000) == 0x20000000) && input.getBytesUntilLimit() > 0) { + dispenser2MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x20000000; + } + while (input.getBytesUntilLimit() > 0) { + dispenser2MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 249: { + if (!((mutable_bitField0_ & 0x40000000) == 0x40000000)) { + dispenser3MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x40000000; + } + dispenser3MotorFrequency_.add(input.readDouble()); + break; + } + case 250: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x40000000) == 0x40000000) && input.getBytesUntilLimit() > 0) { + dispenser3MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x40000000; + } + while (input.getBytesUntilLimit() > 0) { + dispenser3MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 257: { + if (!((mutable_bitField0_ & 0x80000000) == 0x80000000)) { + dispenser4MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x80000000; + } + dispenser4MotorFrequency_.add(input.readDouble()); + break; + } + case 258: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x80000000) == 0x80000000) && input.getBytesUntilLimit() > 0) { + dispenser4MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x80000000; + } + while (input.getBytesUntilLimit() > 0) { + dispenser4MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 265: { + if (!((mutable_bitField1_ & 0x00000001) == 0x00000001)) { + dispenser5MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000001; + } + dispenser5MotorFrequency_.add(input.readDouble()); + break; + } + case 266: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField1_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + dispenser5MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + dispenser5MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 273: { + if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) { + dispenser6MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000002; + } + dispenser6MotorFrequency_.add(input.readDouble()); + break; + } + case 274: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField1_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { + dispenser6MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000002; + } + while (input.getBytesUntilLimit() > 0) { + dispenser6MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 281: { + if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) { + dispenser7MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000004; + } + dispenser7MotorFrequency_.add(input.readDouble()); + break; + } + case 282: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField1_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { + dispenser7MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000004; + } + while (input.getBytesUntilLimit() > 0) { + dispenser7MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + break; + } + case 289: { + if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) { + dispenser8MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000008; + } + dispenser8MotorFrequency_.add(input.readDouble()); + break; + } + case 290: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField1_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { + dispenser8MotorFrequency_ = new java.util.ArrayList(); + mutable_bitField1_ |= 0x00000008; + } + while (input.getBytesUntilLimit() > 0) { + dispenser8MotorFrequency_.add(input.readDouble()); + } + input.popLimit(limit); + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + dancer1Angle_ = java.util.Collections.unmodifiableList(dancer1Angle_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + dancer2Angle_ = java.util.Collections.unmodifiableList(dancer2Angle_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + dancer3Angle_ = java.util.Collections.unmodifiableList(dancer3Angle_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + feederMotorFrequency_ = java.util.Collections.unmodifiableList(feederMotorFrequency_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + dryerMotor_ = java.util.Collections.unmodifiableList(dryerMotor_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + pollerMotor_ = java.util.Collections.unmodifiableList(pollerMotor_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + winderMotor_ = java.util.Collections.unmodifiableList(winderMotor_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + screwMotor_ = java.util.Collections.unmodifiableList(screwMotor_); + } + if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { + threadSpeed_ = java.util.Collections.unmodifiableList(threadSpeed_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + mixerTemperature_ = java.util.Collections.unmodifiableList(mixerTemperature_); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + headZone1Temperature_ = java.util.Collections.unmodifiableList(headZone1Temperature_); + } + if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { + headZone2Temperature_ = java.util.Collections.unmodifiableList(headZone2Temperature_); + } + if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + headZone3Temperature_ = java.util.Collections.unmodifiableList(headZone3Temperature_); + } + if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { + headAirFlow_ = java.util.Collections.unmodifiableList(headAirFlow_); + } + if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { + feederTension_ = java.util.Collections.unmodifiableList(feederTension_); + } + if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { + pullerTension_ = java.util.Collections.unmodifiableList(pullerTension_); + } + if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { + dryerZone1Temperature_ = java.util.Collections.unmodifiableList(dryerZone1Temperature_); + } + if (((mutable_bitField0_ & 0x00020000) == 0x00020000)) { + dryerZone2Temperature_ = java.util.Collections.unmodifiableList(dryerZone2Temperature_); + } + if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { + dryerZone3Temperature_ = java.util.Collections.unmodifiableList(dryerZone3Temperature_); + } + if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) { + dryerAirFlow_ = java.util.Collections.unmodifiableList(dryerAirFlow_); + } + if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) { + winderTension_ = java.util.Collections.unmodifiableList(winderTension_); + } + if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) { + dispensersMotorsFrequency_ = java.util.Collections.unmodifiableList(dispensersMotorsFrequency_); + } + if (((mutable_bitField0_ & 0x00400000) == 0x00400000)) { + dispensersAngularEncoders_ = java.util.Collections.unmodifiableList(dispensersAngularEncoders_); + } + if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) { + dispensersLinearPositions_ = java.util.Collections.unmodifiableList(dispensersLinearPositions_); + } + if (((mutable_bitField0_ & 0x01000000) == 0x01000000)) { + dispensersPressure_ = java.util.Collections.unmodifiableList(dispensersPressure_); + } + if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) { + midTankPressure_ = java.util.Collections.unmodifiableList(midTankPressure_); + } + if (((mutable_bitField0_ & 0x04000000) == 0x04000000)) { + filterDeltaPressure_ = java.util.Collections.unmodifiableList(filterDeltaPressure_); + } + if (((mutable_bitField0_ & 0x08000000) == 0x08000000)) { + chillerTemperature_ = java.util.Collections.unmodifiableList(chillerTemperature_); + } + if (((mutable_bitField0_ & 0x10000000) == 0x10000000)) { + dispenser1MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser1MotorFrequency_); + } + if (((mutable_bitField0_ & 0x20000000) == 0x20000000)) { + dispenser2MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser2MotorFrequency_); + } + if (((mutable_bitField0_ & 0x40000000) == 0x40000000)) { + dispenser3MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser3MotorFrequency_); + } + if (((mutable_bitField0_ & 0x80000000) == 0x80000000)) { + dispenser4MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser4MotorFrequency_); + } + if (((mutable_bitField1_ & 0x00000001) == 0x00000001)) { + dispenser5MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser5MotorFrequency_); + } + if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) { + dispenser6MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser6MotorFrequency_); + } + if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) { + dispenser7MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser7MotorFrequency_); + } + if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) { + dispenser8MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser8MotorFrequency_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.class, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder.class); + } + + public static final int DANCER1ANGLE_FIELD_NUMBER = 1; + private java.util.List dancer1Angle_; + /** + *
+     *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+     * 
+ * + * repeated double Dancer1Angle = 1; + */ + public java.util.List + getDancer1AngleList() { + return dancer1Angle_; + } + /** + *
+     *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+     * 
+ * + * repeated double Dancer1Angle = 1; + */ + public int getDancer1AngleCount() { + return dancer1Angle_.size(); + } + /** + *
+     *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+     * 
+ * + * repeated double Dancer1Angle = 1; + */ + public double getDancer1Angle(int index) { + return dancer1Angle_.get(index); + } + private int dancer1AngleMemoizedSerializedSize = -1; + + public static final int DANCER2ANGLE_FIELD_NUMBER = 2; + private java.util.List dancer2Angle_; + /** + *
+     *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer2Angle = 2; + */ + public java.util.List + getDancer2AngleList() { + return dancer2Angle_; + } + /** + *
+     *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer2Angle = 2; + */ + public int getDancer2AngleCount() { + return dancer2Angle_.size(); + } + /** + *
+     *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer2Angle = 2; + */ + public double getDancer2Angle(int index) { + return dancer2Angle_.get(index); + } + private int dancer2AngleMemoizedSerializedSize = -1; + + public static final int DANCER3ANGLE_FIELD_NUMBER = 3; + private java.util.List dancer3Angle_; + /** + *
+     *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer3Angle = 3; + */ + public java.util.List + getDancer3AngleList() { + return dancer3Angle_; + } + /** + *
+     *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer3Angle = 3; + */ + public int getDancer3AngleCount() { + return dancer3Angle_.size(); + } + /** + *
+     *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+     * 
+ * + * repeated double Dancer3Angle = 3; + */ + public double getDancer3Angle(int index) { + return dancer3Angle_.get(index); + } + private int dancer3AngleMemoizedSerializedSize = -1; + + public static final int FEEDERMOTORFREQUENCY_FIELD_NUMBER = 4; + private java.util.List feederMotorFrequency_; + /** + *
+     *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public java.util.List + getFeederMotorFrequencyList() { + return feederMotorFrequency_; + } + /** + *
+     *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public int getFeederMotorFrequencyCount() { + return feederMotorFrequency_.size(); + } + /** + *
+     *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public double getFeederMotorFrequency(int index) { + return feederMotorFrequency_.get(index); + } + private int feederMotorFrequencyMemoizedSerializedSize = -1; + + public static final int DRYERMOTOR_FIELD_NUMBER = 5; + private java.util.List dryerMotor_; + /** + *
+     *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerMotor = 5; + */ + public java.util.List + getDryerMotorList() { + return dryerMotor_; + } + /** + *
+     *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerMotor = 5; + */ + public int getDryerMotorCount() { + return dryerMotor_.size(); + } + /** + *
+     *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerMotor = 5; + */ + public double getDryerMotor(int index) { + return dryerMotor_.get(index); + } + private int dryerMotorMemoizedSerializedSize = -1; + + public static final int POLLERMOTOR_FIELD_NUMBER = 6; + private java.util.List pollerMotor_; + /** + *
+     *Poller Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PollerMotor = 6; + */ + public java.util.List + getPollerMotorList() { + return pollerMotor_; + } + /** + *
+     *Poller Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PollerMotor = 6; + */ + public int getPollerMotorCount() { + return pollerMotor_.size(); + } + /** + *
+     *Poller Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PollerMotor = 6; + */ + public double getPollerMotor(int index) { + return pollerMotor_.get(index); + } + private int pollerMotorMemoizedSerializedSize = -1; + + public static final int WINDERMOTOR_FIELD_NUMBER = 7; + private java.util.List winderMotor_; + /** + *
+     *Winder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderMotor = 7; + */ + public java.util.List + getWinderMotorList() { + return winderMotor_; + } + /** + *
+     *Winder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderMotor = 7; + */ + public int getWinderMotorCount() { + return winderMotor_.size(); + } + /** + *
+     *Winder Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderMotor = 7; + */ + public double getWinderMotor(int index) { + return winderMotor_.get(index); + } + private int winderMotorMemoizedSerializedSize = -1; + + public static final int SCREWMOTOR_FIELD_NUMBER = 8; + private java.util.List screwMotor_; + /** + *
+     *Screw Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ScrewMotor = 8; + */ + public java.util.List + getScrewMotorList() { + return screwMotor_; + } + /** + *
+     *Screw Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ScrewMotor = 8; + */ + public int getScrewMotorCount() { + return screwMotor_.size(); + } + /** + *
+     *Screw Motor (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ScrewMotor = 8; + */ + public double getScrewMotor(int index) { + return screwMotor_.get(index); + } + private int screwMotorMemoizedSerializedSize = -1; + + public static final int THREADSPEED_FIELD_NUMBER = 9; + private java.util.List threadSpeed_; + /** + *
+     *Thread Speed (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ThreadSpeed = 9; + */ + public java.util.List + getThreadSpeedList() { + return threadSpeed_; + } + /** + *
+     *Thread Speed (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ThreadSpeed = 9; + */ + public int getThreadSpeedCount() { + return threadSpeed_.size(); + } + /** + *
+     *Thread Speed (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ThreadSpeed = 9; + */ + public double getThreadSpeed(int index) { + return threadSpeed_.get(index); + } + private int threadSpeedMemoizedSerializedSize = -1; + + public static final int MIXERTEMPERATURE_FIELD_NUMBER = 10; + private java.util.List mixerTemperature_; + /** + *
+     *Mixer (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MixerTemperature = 10; + */ + public java.util.List + getMixerTemperatureList() { + return mixerTemperature_; + } + /** + *
+     *Mixer (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MixerTemperature = 10; + */ + public int getMixerTemperatureCount() { + return mixerTemperature_.size(); + } + /** + *
+     *Mixer (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MixerTemperature = 10; + */ + public double getMixerTemperature(int index) { + return mixerTemperature_.get(index); + } + private int mixerTemperatureMemoizedSerializedSize = -1; + + public static final int HEADZONE1TEMPERATURE_FIELD_NUMBER = 11; + private java.util.List headZone1Temperature_; + /** + *
+     *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public java.util.List + getHeadZone1TemperatureList() { + return headZone1Temperature_; + } + /** + *
+     *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public int getHeadZone1TemperatureCount() { + return headZone1Temperature_.size(); + } + /** + *
+     *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public double getHeadZone1Temperature(int index) { + return headZone1Temperature_.get(index); + } + private int headZone1TemperatureMemoizedSerializedSize = -1; + + public static final int HEADZONE2TEMPERATURE_FIELD_NUMBER = 12; + private java.util.List headZone2Temperature_; + /** + *
+     *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public java.util.List + getHeadZone2TemperatureList() { + return headZone2Temperature_; + } + /** + *
+     *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public int getHeadZone2TemperatureCount() { + return headZone2Temperature_.size(); + } + /** + *
+     *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public double getHeadZone2Temperature(int index) { + return headZone2Temperature_.get(index); + } + private int headZone2TemperatureMemoizedSerializedSize = -1; + + public static final int HEADZONE3TEMPERATURE_FIELD_NUMBER = 13; + private java.util.List headZone3Temperature_; + /** + *
+     *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public java.util.List + getHeadZone3TemperatureList() { + return headZone3Temperature_; + } + /** + *
+     *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public int getHeadZone3TemperatureCount() { + return headZone3Temperature_.size(); + } + /** + *
+     *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public double getHeadZone3Temperature(int index) { + return headZone3Temperature_.get(index); + } + private int headZone3TemperatureMemoizedSerializedSize = -1; + + public static final int HEADAIRFLOW_FIELD_NUMBER = 14; + private java.util.List headAirFlow_; + /** + *
+     *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadAirFlow = 14; + */ + public java.util.List + getHeadAirFlowList() { + return headAirFlow_; + } + /** + *
+     *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadAirFlow = 14; + */ + public int getHeadAirFlowCount() { + return headAirFlow_.size(); + } + /** + *
+     *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double HeadAirFlow = 14; + */ + public double getHeadAirFlow(int index) { + return headAirFlow_.get(index); + } + private int headAirFlowMemoizedSerializedSize = -1; + + public static final int FEEDERTENSION_FIELD_NUMBER = 15; + private java.util.List feederTension_; + /** + *
+     *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederTension = 15; + */ + public java.util.List + getFeederTensionList() { + return feederTension_; + } + /** + *
+     *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederTension = 15; + */ + public int getFeederTensionCount() { + return feederTension_.size(); + } + /** + *
+     *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FeederTension = 15; + */ + public double getFeederTension(int index) { + return feederTension_.get(index); + } + private int feederTensionMemoizedSerializedSize = -1; + + public static final int PULLERTENSION_FIELD_NUMBER = 16; + private java.util.List pullerTension_; + /** + *
+     *Puller Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PullerTension = 16; + */ + public java.util.List + getPullerTensionList() { + return pullerTension_; + } + /** + *
+     *Puller Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PullerTension = 16; + */ + public int getPullerTensionCount() { + return pullerTension_.size(); + } + /** + *
+     *Puller Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double PullerTension = 16; + */ + public double getPullerTension(int index) { + return pullerTension_.get(index); + } + private int pullerTensionMemoizedSerializedSize = -1; + + public static final int DRYERZONE1TEMPERATURE_FIELD_NUMBER = 17; + private java.util.List dryerZone1Temperature_; + /** + *
+     *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public java.util.List + getDryerZone1TemperatureList() { + return dryerZone1Temperature_; + } + /** + *
+     *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public int getDryerZone1TemperatureCount() { + return dryerZone1Temperature_.size(); + } + /** + *
+     *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public double getDryerZone1Temperature(int index) { + return dryerZone1Temperature_.get(index); + } + private int dryerZone1TemperatureMemoizedSerializedSize = -1; + + public static final int DRYERZONE2TEMPERATURE_FIELD_NUMBER = 18; + private java.util.List dryerZone2Temperature_; + /** + *
+     *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public java.util.List + getDryerZone2TemperatureList() { + return dryerZone2Temperature_; + } + /** + *
+     *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public int getDryerZone2TemperatureCount() { + return dryerZone2Temperature_.size(); + } + /** + *
+     *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public double getDryerZone2Temperature(int index) { + return dryerZone2Temperature_.get(index); + } + private int dryerZone2TemperatureMemoizedSerializedSize = -1; + + public static final int DRYERZONE3TEMPERATURE_FIELD_NUMBER = 19; + private java.util.List dryerZone3Temperature_; + /** + *
+     *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public java.util.List + getDryerZone3TemperatureList() { + return dryerZone3Temperature_; + } + /** + *
+     *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public int getDryerZone3TemperatureCount() { + return dryerZone3Temperature_.size(); + } + /** + *
+     *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public double getDryerZone3Temperature(int index) { + return dryerZone3Temperature_.get(index); + } + private int dryerZone3TemperatureMemoizedSerializedSize = -1; + + public static final int DRYERAIRFLOW_FIELD_NUMBER = 20; + private java.util.List dryerAirFlow_; + /** + *
+     *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerAirFlow = 20; + */ + public java.util.List + getDryerAirFlowList() { + return dryerAirFlow_; + } + /** + *
+     *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerAirFlow = 20; + */ + public int getDryerAirFlowCount() { + return dryerAirFlow_.size(); + } + /** + *
+     *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double DryerAirFlow = 20; + */ + public double getDryerAirFlow(int index) { + return dryerAirFlow_.get(index); + } + private int dryerAirFlowMemoizedSerializedSize = -1; + + public static final int WINDERTENSION_FIELD_NUMBER = 21; + private java.util.List winderTension_; + /** + *
+     *Winder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderTension = 21; + */ + public java.util.List + getWinderTensionList() { + return winderTension_; + } + /** + *
+     *Winder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderTension = 21; + */ + public int getWinderTensionCount() { + return winderTension_.size(); + } + /** + *
+     *Winder Tension (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double WinderTension = 21; + */ + public double getWinderTension(int index) { + return winderTension_.get(index); + } + private int winderTensionMemoizedSerializedSize = -1; + + public static final int DISPENSERSMOTORSFREQUENCY_FIELD_NUMBER = 22; + private java.util.List dispensersMotorsFrequency_; + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public java.util.List getDispensersMotorsFrequencyList() { + return dispensersMotorsFrequency_; + } + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public java.util.List + getDispensersMotorsFrequencyOrBuilderList() { + return dispensersMotorsFrequency_; + } + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public int getDispensersMotorsFrequencyCount() { + return dispensersMotorsFrequency_.size(); + } + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersMotorsFrequency(int index) { + return dispensersMotorsFrequency_.get(index); + } + /** + *
+     *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersMotorsFrequencyOrBuilder( + int index) { + return dispensersMotorsFrequency_.get(index); + } + + public static final int DISPENSERSANGULARENCODERS_FIELD_NUMBER = 23; + private java.util.List dispensersAngularEncoders_; + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public java.util.List getDispensersAngularEncodersList() { + return dispensersAngularEncoders_; + } + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public java.util.List + getDispensersAngularEncodersOrBuilderList() { + return dispensersAngularEncoders_; + } + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public int getDispensersAngularEncodersCount() { + return dispensersAngularEncoders_.size(); + } + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersAngularEncoders(int index) { + return dispensersAngularEncoders_.get(index); + } + /** + *
+     *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersAngularEncodersOrBuilder( + int index) { + return dispensersAngularEncoders_.get(index); + } + + public static final int DISPENSERSLINEARPOSITIONS_FIELD_NUMBER = 24; + private java.util.List dispensersLinearPositions_; + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public java.util.List getDispensersLinearPositionsList() { + return dispensersLinearPositions_; + } + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public java.util.List + getDispensersLinearPositionsOrBuilderList() { + return dispensersLinearPositions_; + } + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public int getDispensersLinearPositionsCount() { + return dispensersLinearPositions_.size(); + } + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersLinearPositions(int index) { + return dispensersLinearPositions_.get(index); + } + /** + *
+     *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersLinearPositionsOrBuilder( + int index) { + return dispensersLinearPositions_.get(index); + } + + public static final int DISPENSERSPRESSURE_FIELD_NUMBER = 25; + private java.util.List dispensersPressure_; + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public java.util.List getDispensersPressureList() { + return dispensersPressure_; + } + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public java.util.List + getDispensersPressureOrBuilderList() { + return dispensersPressure_; + } + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public int getDispensersPressureCount() { + return dispensersPressure_.size(); + } + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersPressure(int index) { + return dispensersPressure_.get(index); + } + /** + *
+     *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersPressureOrBuilder( + int index) { + return dispensersPressure_.get(index); + } + + public static final int MIDTANKPRESSURE_FIELD_NUMBER = 26; + private java.util.List midTankPressure_; + /** + *
+     *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MidTankPressure = 26; + */ + public java.util.List + getMidTankPressureList() { + return midTankPressure_; + } + /** + *
+     *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MidTankPressure = 26; + */ + public int getMidTankPressureCount() { + return midTankPressure_.size(); + } + /** + *
+     *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double MidTankPressure = 26; + */ + public double getMidTankPressure(int index) { + return midTankPressure_.get(index); + } + private int midTankPressureMemoizedSerializedSize = -1; + + public static final int FILTERDELTAPRESSURE_FIELD_NUMBER = 27; + private java.util.List filterDeltaPressure_; + /** + *
+     *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public java.util.List + getFilterDeltaPressureList() { + return filterDeltaPressure_; + } + /** + *
+     *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public int getFilterDeltaPressureCount() { + return filterDeltaPressure_.size(); + } + /** + *
+     *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public double getFilterDeltaPressure(int index) { + return filterDeltaPressure_.get(index); + } + private int filterDeltaPressureMemoizedSerializedSize = -1; + + public static final int CHILLERTEMPERATURE_FIELD_NUMBER = 28; + private java.util.List chillerTemperature_; + /** + *
+     *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ChillerTemperature = 28; + */ + public java.util.List + getChillerTemperatureList() { + return chillerTemperature_; + } + /** + *
+     *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ChillerTemperature = 28; + */ + public int getChillerTemperatureCount() { + return chillerTemperature_.size(); + } + /** + *
+     *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+     * 
+ * + * repeated double ChillerTemperature = 28; + */ + public double getChillerTemperature(int index) { + return chillerTemperature_.get(index); + } + private int chillerTemperatureMemoizedSerializedSize = -1; + + public static final int DISPENSER1MOTORFREQUENCY_FIELD_NUMBER = 29; + private java.util.List dispenser1MotorFrequency_; + /** + *
+     *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public java.util.List + getDispenser1MotorFrequencyList() { + return dispenser1MotorFrequency_; + } + /** + *
+     *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public int getDispenser1MotorFrequencyCount() { + return dispenser1MotorFrequency_.size(); + } + /** + *
+     *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public double getDispenser1MotorFrequency(int index) { + return dispenser1MotorFrequency_.get(index); + } + private int dispenser1MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER2MOTORFREQUENCY_FIELD_NUMBER = 30; + private java.util.List dispenser2MotorFrequency_; + /** + *
+     *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public java.util.List + getDispenser2MotorFrequencyList() { + return dispenser2MotorFrequency_; + } + /** + *
+     *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public int getDispenser2MotorFrequencyCount() { + return dispenser2MotorFrequency_.size(); + } + /** + *
+     *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public double getDispenser2MotorFrequency(int index) { + return dispenser2MotorFrequency_.get(index); + } + private int dispenser2MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER3MOTORFREQUENCY_FIELD_NUMBER = 31; + private java.util.List dispenser3MotorFrequency_; + /** + *
+     *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public java.util.List + getDispenser3MotorFrequencyList() { + return dispenser3MotorFrequency_; + } + /** + *
+     *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public int getDispenser3MotorFrequencyCount() { + return dispenser3MotorFrequency_.size(); + } + /** + *
+     *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public double getDispenser3MotorFrequency(int index) { + return dispenser3MotorFrequency_.get(index); + } + private int dispenser3MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER4MOTORFREQUENCY_FIELD_NUMBER = 32; + private java.util.List dispenser4MotorFrequency_; + /** + *
+     *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public java.util.List + getDispenser4MotorFrequencyList() { + return dispenser4MotorFrequency_; + } + /** + *
+     *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public int getDispenser4MotorFrequencyCount() { + return dispenser4MotorFrequency_.size(); + } + /** + *
+     *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public double getDispenser4MotorFrequency(int index) { + return dispenser4MotorFrequency_.get(index); + } + private int dispenser4MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER5MOTORFREQUENCY_FIELD_NUMBER = 33; + private java.util.List dispenser5MotorFrequency_; + /** + *
+     *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public java.util.List + getDispenser5MotorFrequencyList() { + return dispenser5MotorFrequency_; + } + /** + *
+     *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public int getDispenser5MotorFrequencyCount() { + return dispenser5MotorFrequency_.size(); + } + /** + *
+     *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public double getDispenser5MotorFrequency(int index) { + return dispenser5MotorFrequency_.get(index); + } + private int dispenser5MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER6MOTORFREQUENCY_FIELD_NUMBER = 34; + private java.util.List dispenser6MotorFrequency_; + /** + *
+     *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public java.util.List + getDispenser6MotorFrequencyList() { + return dispenser6MotorFrequency_; + } + /** + *
+     *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public int getDispenser6MotorFrequencyCount() { + return dispenser6MotorFrequency_.size(); + } + /** + *
+     *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public double getDispenser6MotorFrequency(int index) { + return dispenser6MotorFrequency_.get(index); + } + private int dispenser6MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER7MOTORFREQUENCY_FIELD_NUMBER = 35; + private java.util.List dispenser7MotorFrequency_; + /** + *
+     *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public java.util.List + getDispenser7MotorFrequencyList() { + return dispenser7MotorFrequency_; + } + /** + *
+     *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public int getDispenser7MotorFrequencyCount() { + return dispenser7MotorFrequency_.size(); + } + /** + *
+     *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public double getDispenser7MotorFrequency(int index) { + return dispenser7MotorFrequency_.get(index); + } + private int dispenser7MotorFrequencyMemoizedSerializedSize = -1; + + public static final int DISPENSER8MOTORFREQUENCY_FIELD_NUMBER = 36; + private java.util.List dispenser8MotorFrequency_; + /** + *
+     *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public java.util.List + getDispenser8MotorFrequencyList() { + return dispenser8MotorFrequency_; + } + /** + *
+     *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public int getDispenser8MotorFrequencyCount() { + return dispenser8MotorFrequency_.size(); + } + /** + *
+     *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+     * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public double getDispenser8MotorFrequency(int index) { + return dispenser8MotorFrequency_.get(index); + } + private int dispenser8MotorFrequencyMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getDancer1AngleList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(dancer1AngleMemoizedSerializedSize); + } + for (int i = 0; i < dancer1Angle_.size(); i++) { + output.writeDoubleNoTag(dancer1Angle_.get(i)); + } + if (getDancer2AngleList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(dancer2AngleMemoizedSerializedSize); + } + for (int i = 0; i < dancer2Angle_.size(); i++) { + output.writeDoubleNoTag(dancer2Angle_.get(i)); + } + if (getDancer3AngleList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(dancer3AngleMemoizedSerializedSize); + } + for (int i = 0; i < dancer3Angle_.size(); i++) { + output.writeDoubleNoTag(dancer3Angle_.get(i)); + } + if (getFeederMotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(feederMotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < feederMotorFrequency_.size(); i++) { + output.writeDoubleNoTag(feederMotorFrequency_.get(i)); + } + if (getDryerMotorList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(dryerMotorMemoizedSerializedSize); + } + for (int i = 0; i < dryerMotor_.size(); i++) { + output.writeDoubleNoTag(dryerMotor_.get(i)); + } + if (getPollerMotorList().size() > 0) { + output.writeUInt32NoTag(50); + output.writeUInt32NoTag(pollerMotorMemoizedSerializedSize); + } + for (int i = 0; i < pollerMotor_.size(); i++) { + output.writeDoubleNoTag(pollerMotor_.get(i)); + } + if (getWinderMotorList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(winderMotorMemoizedSerializedSize); + } + for (int i = 0; i < winderMotor_.size(); i++) { + output.writeDoubleNoTag(winderMotor_.get(i)); + } + if (getScrewMotorList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(screwMotorMemoizedSerializedSize); + } + for (int i = 0; i < screwMotor_.size(); i++) { + output.writeDoubleNoTag(screwMotor_.get(i)); + } + if (getThreadSpeedList().size() > 0) { + output.writeUInt32NoTag(74); + output.writeUInt32NoTag(threadSpeedMemoizedSerializedSize); + } + for (int i = 0; i < threadSpeed_.size(); i++) { + output.writeDoubleNoTag(threadSpeed_.get(i)); + } + if (getMixerTemperatureList().size() > 0) { + output.writeUInt32NoTag(82); + output.writeUInt32NoTag(mixerTemperatureMemoizedSerializedSize); + } + for (int i = 0; i < mixerTemperature_.size(); i++) { + output.writeDoubleNoTag(mixerTemperature_.get(i)); + } + if (getHeadZone1TemperatureList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(headZone1TemperatureMemoizedSerializedSize); + } + for (int i = 0; i < headZone1Temperature_.size(); i++) { + output.writeDoubleNoTag(headZone1Temperature_.get(i)); + } + if (getHeadZone2TemperatureList().size() > 0) { + output.writeUInt32NoTag(98); + output.writeUInt32NoTag(headZone2TemperatureMemoizedSerializedSize); + } + for (int i = 0; i < headZone2Temperature_.size(); i++) { + output.writeDoubleNoTag(headZone2Temperature_.get(i)); + } + if (getHeadZone3TemperatureList().size() > 0) { + output.writeUInt32NoTag(106); + output.writeUInt32NoTag(headZone3TemperatureMemoizedSerializedSize); + } + for (int i = 0; i < headZone3Temperature_.size(); i++) { + output.writeDoubleNoTag(headZone3Temperature_.get(i)); + } + if (getHeadAirFlowList().size() > 0) { + output.writeUInt32NoTag(114); + output.writeUInt32NoTag(headAirFlowMemoizedSerializedSize); + } + for (int i = 0; i < headAirFlow_.size(); i++) { + output.writeDoubleNoTag(headAirFlow_.get(i)); + } + if (getFeederTensionList().size() > 0) { + output.writeUInt32NoTag(122); + output.writeUInt32NoTag(feederTensionMemoizedSerializedSize); + } + for (int i = 0; i < feederTension_.size(); i++) { + output.writeDoubleNoTag(feederTension_.get(i)); + } + if (getPullerTensionList().size() > 0) { + output.writeUInt32NoTag(130); + output.writeUInt32NoTag(pullerTensionMemoizedSerializedSize); + } + for (int i = 0; i < pullerTension_.size(); i++) { + output.writeDoubleNoTag(pullerTension_.get(i)); + } + if (getDryerZone1TemperatureList().size() > 0) { + output.writeUInt32NoTag(138); + output.writeUInt32NoTag(dryerZone1TemperatureMemoizedSerializedSize); + } + for (int i = 0; i < dryerZone1Temperature_.size(); i++) { + output.writeDoubleNoTag(dryerZone1Temperature_.get(i)); + } + if (getDryerZone2TemperatureList().size() > 0) { + output.writeUInt32NoTag(146); + output.writeUInt32NoTag(dryerZone2TemperatureMemoizedSerializedSize); + } + for (int i = 0; i < dryerZone2Temperature_.size(); i++) { + output.writeDoubleNoTag(dryerZone2Temperature_.get(i)); + } + if (getDryerZone3TemperatureList().size() > 0) { + output.writeUInt32NoTag(154); + output.writeUInt32NoTag(dryerZone3TemperatureMemoizedSerializedSize); + } + for (int i = 0; i < dryerZone3Temperature_.size(); i++) { + output.writeDoubleNoTag(dryerZone3Temperature_.get(i)); + } + if (getDryerAirFlowList().size() > 0) { + output.writeUInt32NoTag(162); + output.writeUInt32NoTag(dryerAirFlowMemoizedSerializedSize); + } + for (int i = 0; i < dryerAirFlow_.size(); i++) { + output.writeDoubleNoTag(dryerAirFlow_.get(i)); + } + if (getWinderTensionList().size() > 0) { + output.writeUInt32NoTag(170); + output.writeUInt32NoTag(winderTensionMemoizedSerializedSize); + } + for (int i = 0; i < winderTension_.size(); i++) { + output.writeDoubleNoTag(winderTension_.get(i)); + } + for (int i = 0; i < dispensersMotorsFrequency_.size(); i++) { + output.writeMessage(22, dispensersMotorsFrequency_.get(i)); + } + for (int i = 0; i < dispensersAngularEncoders_.size(); i++) { + output.writeMessage(23, dispensersAngularEncoders_.get(i)); + } + for (int i = 0; i < dispensersLinearPositions_.size(); i++) { + output.writeMessage(24, dispensersLinearPositions_.get(i)); + } + for (int i = 0; i < dispensersPressure_.size(); i++) { + output.writeMessage(25, dispensersPressure_.get(i)); + } + if (getMidTankPressureList().size() > 0) { + output.writeUInt32NoTag(210); + output.writeUInt32NoTag(midTankPressureMemoizedSerializedSize); + } + for (int i = 0; i < midTankPressure_.size(); i++) { + output.writeDoubleNoTag(midTankPressure_.get(i)); + } + if (getFilterDeltaPressureList().size() > 0) { + output.writeUInt32NoTag(218); + output.writeUInt32NoTag(filterDeltaPressureMemoizedSerializedSize); + } + for (int i = 0; i < filterDeltaPressure_.size(); i++) { + output.writeDoubleNoTag(filterDeltaPressure_.get(i)); + } + if (getChillerTemperatureList().size() > 0) { + output.writeUInt32NoTag(226); + output.writeUInt32NoTag(chillerTemperatureMemoizedSerializedSize); + } + for (int i = 0; i < chillerTemperature_.size(); i++) { + output.writeDoubleNoTag(chillerTemperature_.get(i)); + } + if (getDispenser1MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(234); + output.writeUInt32NoTag(dispenser1MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser1MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser1MotorFrequency_.get(i)); + } + if (getDispenser2MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(242); + output.writeUInt32NoTag(dispenser2MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser2MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser2MotorFrequency_.get(i)); + } + if (getDispenser3MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(250); + output.writeUInt32NoTag(dispenser3MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser3MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser3MotorFrequency_.get(i)); + } + if (getDispenser4MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(258); + output.writeUInt32NoTag(dispenser4MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser4MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser4MotorFrequency_.get(i)); + } + if (getDispenser5MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(266); + output.writeUInt32NoTag(dispenser5MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser5MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser5MotorFrequency_.get(i)); + } + if (getDispenser6MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(274); + output.writeUInt32NoTag(dispenser6MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser6MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser6MotorFrequency_.get(i)); + } + if (getDispenser7MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(282); + output.writeUInt32NoTag(dispenser7MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser7MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser7MotorFrequency_.get(i)); + } + if (getDispenser8MotorFrequencyList().size() > 0) { + output.writeUInt32NoTag(290); + output.writeUInt32NoTag(dispenser8MotorFrequencyMemoizedSerializedSize); + } + for (int i = 0; i < dispenser8MotorFrequency_.size(); i++) { + output.writeDoubleNoTag(dispenser8MotorFrequency_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getDancer1AngleList().size(); + size += dataSize; + if (!getDancer1AngleList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dancer1AngleMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDancer2AngleList().size(); + size += dataSize; + if (!getDancer2AngleList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dancer2AngleMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDancer3AngleList().size(); + size += dataSize; + if (!getDancer3AngleList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dancer3AngleMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getFeederMotorFrequencyList().size(); + size += dataSize; + if (!getFeederMotorFrequencyList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + feederMotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDryerMotorList().size(); + size += dataSize; + if (!getDryerMotorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dryerMotorMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getPollerMotorList().size(); + size += dataSize; + if (!getPollerMotorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + pollerMotorMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getWinderMotorList().size(); + size += dataSize; + if (!getWinderMotorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + winderMotorMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getScrewMotorList().size(); + size += dataSize; + if (!getScrewMotorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + screwMotorMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getThreadSpeedList().size(); + size += dataSize; + if (!getThreadSpeedList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + threadSpeedMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getMixerTemperatureList().size(); + size += dataSize; + if (!getMixerTemperatureList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + mixerTemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getHeadZone1TemperatureList().size(); + size += dataSize; + if (!getHeadZone1TemperatureList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + headZone1TemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getHeadZone2TemperatureList().size(); + size += dataSize; + if (!getHeadZone2TemperatureList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + headZone2TemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getHeadZone3TemperatureList().size(); + size += dataSize; + if (!getHeadZone3TemperatureList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + headZone3TemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getHeadAirFlowList().size(); + size += dataSize; + if (!getHeadAirFlowList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + headAirFlowMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getFeederTensionList().size(); + size += dataSize; + if (!getFeederTensionList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + feederTensionMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getPullerTensionList().size(); + size += dataSize; + if (!getPullerTensionList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + pullerTensionMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDryerZone1TemperatureList().size(); + size += dataSize; + if (!getDryerZone1TemperatureList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dryerZone1TemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDryerZone2TemperatureList().size(); + size += dataSize; + if (!getDryerZone2TemperatureList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dryerZone2TemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDryerZone3TemperatureList().size(); + size += dataSize; + if (!getDryerZone3TemperatureList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dryerZone3TemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDryerAirFlowList().size(); + size += dataSize; + if (!getDryerAirFlowList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dryerAirFlowMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getWinderTensionList().size(); + size += dataSize; + if (!getWinderTensionList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + winderTensionMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < dispensersMotorsFrequency_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, dispensersMotorsFrequency_.get(i)); + } + for (int i = 0; i < dispensersAngularEncoders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, dispensersAngularEncoders_.get(i)); + } + for (int i = 0; i < dispensersLinearPositions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, dispensersLinearPositions_.get(i)); + } + for (int i = 0; i < dispensersPressure_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, dispensersPressure_.get(i)); + } + { + int dataSize = 0; + dataSize = 8 * getMidTankPressureList().size(); + size += dataSize; + if (!getMidTankPressureList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + midTankPressureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getFilterDeltaPressureList().size(); + size += dataSize; + if (!getFilterDeltaPressureList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + filterDeltaPressureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getChillerTemperatureList().size(); + size += dataSize; + if (!getChillerTemperatureList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + chillerTemperatureMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser1MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser1MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser1MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser2MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser2MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser2MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser3MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser3MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser3MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser4MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser4MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser4MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser5MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser5MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser5MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser6MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser6MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser6MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser7MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser7MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser7MotorFrequencyMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + dataSize = 8 * getDispenser8MotorFrequencyList().size(); + size += dataSize; + if (!getDispenser8MotorFrequencyList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dispenser8MotorFrequencyMemoizedSerializedSize = dataSize; + } + 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 com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors other = (com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors) obj; + + boolean result = true; + result = result && getDancer1AngleList() + .equals(other.getDancer1AngleList()); + result = result && getDancer2AngleList() + .equals(other.getDancer2AngleList()); + result = result && getDancer3AngleList() + .equals(other.getDancer3AngleList()); + result = result && getFeederMotorFrequencyList() + .equals(other.getFeederMotorFrequencyList()); + result = result && getDryerMotorList() + .equals(other.getDryerMotorList()); + result = result && getPollerMotorList() + .equals(other.getPollerMotorList()); + result = result && getWinderMotorList() + .equals(other.getWinderMotorList()); + result = result && getScrewMotorList() + .equals(other.getScrewMotorList()); + result = result && getThreadSpeedList() + .equals(other.getThreadSpeedList()); + result = result && getMixerTemperatureList() + .equals(other.getMixerTemperatureList()); + result = result && getHeadZone1TemperatureList() + .equals(other.getHeadZone1TemperatureList()); + result = result && getHeadZone2TemperatureList() + .equals(other.getHeadZone2TemperatureList()); + result = result && getHeadZone3TemperatureList() + .equals(other.getHeadZone3TemperatureList()); + result = result && getHeadAirFlowList() + .equals(other.getHeadAirFlowList()); + result = result && getFeederTensionList() + .equals(other.getFeederTensionList()); + result = result && getPullerTensionList() + .equals(other.getPullerTensionList()); + result = result && getDryerZone1TemperatureList() + .equals(other.getDryerZone1TemperatureList()); + result = result && getDryerZone2TemperatureList() + .equals(other.getDryerZone2TemperatureList()); + result = result && getDryerZone3TemperatureList() + .equals(other.getDryerZone3TemperatureList()); + result = result && getDryerAirFlowList() + .equals(other.getDryerAirFlowList()); + result = result && getWinderTensionList() + .equals(other.getWinderTensionList()); + result = result && getDispensersMotorsFrequencyList() + .equals(other.getDispensersMotorsFrequencyList()); + result = result && getDispensersAngularEncodersList() + .equals(other.getDispensersAngularEncodersList()); + result = result && getDispensersLinearPositionsList() + .equals(other.getDispensersLinearPositionsList()); + result = result && getDispensersPressureList() + .equals(other.getDispensersPressureList()); + result = result && getMidTankPressureList() + .equals(other.getMidTankPressureList()); + result = result && getFilterDeltaPressureList() + .equals(other.getFilterDeltaPressureList()); + result = result && getChillerTemperatureList() + .equals(other.getChillerTemperatureList()); + result = result && getDispenser1MotorFrequencyList() + .equals(other.getDispenser1MotorFrequencyList()); + result = result && getDispenser2MotorFrequencyList() + .equals(other.getDispenser2MotorFrequencyList()); + result = result && getDispenser3MotorFrequencyList() + .equals(other.getDispenser3MotorFrequencyList()); + result = result && getDispenser4MotorFrequencyList() + .equals(other.getDispenser4MotorFrequencyList()); + result = result && getDispenser5MotorFrequencyList() + .equals(other.getDispenser5MotorFrequencyList()); + result = result && getDispenser6MotorFrequencyList() + .equals(other.getDispenser6MotorFrequencyList()); + result = result && getDispenser7MotorFrequencyList() + .equals(other.getDispenser7MotorFrequencyList()); + result = result && getDispenser8MotorFrequencyList() + .equals(other.getDispenser8MotorFrequencyList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDancer1AngleCount() > 0) { + hash = (37 * hash) + DANCER1ANGLE_FIELD_NUMBER; + hash = (53 * hash) + getDancer1AngleList().hashCode(); + } + if (getDancer2AngleCount() > 0) { + hash = (37 * hash) + DANCER2ANGLE_FIELD_NUMBER; + hash = (53 * hash) + getDancer2AngleList().hashCode(); + } + if (getDancer3AngleCount() > 0) { + hash = (37 * hash) + DANCER3ANGLE_FIELD_NUMBER; + hash = (53 * hash) + getDancer3AngleList().hashCode(); + } + if (getFeederMotorFrequencyCount() > 0) { + hash = (37 * hash) + FEEDERMOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getFeederMotorFrequencyList().hashCode(); + } + if (getDryerMotorCount() > 0) { + hash = (37 * hash) + DRYERMOTOR_FIELD_NUMBER; + hash = (53 * hash) + getDryerMotorList().hashCode(); + } + if (getPollerMotorCount() > 0) { + hash = (37 * hash) + POLLERMOTOR_FIELD_NUMBER; + hash = (53 * hash) + getPollerMotorList().hashCode(); + } + if (getWinderMotorCount() > 0) { + hash = (37 * hash) + WINDERMOTOR_FIELD_NUMBER; + hash = (53 * hash) + getWinderMotorList().hashCode(); + } + if (getScrewMotorCount() > 0) { + hash = (37 * hash) + SCREWMOTOR_FIELD_NUMBER; + hash = (53 * hash) + getScrewMotorList().hashCode(); + } + if (getThreadSpeedCount() > 0) { + hash = (37 * hash) + THREADSPEED_FIELD_NUMBER; + hash = (53 * hash) + getThreadSpeedList().hashCode(); + } + if (getMixerTemperatureCount() > 0) { + hash = (37 * hash) + MIXERTEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getMixerTemperatureList().hashCode(); + } + if (getHeadZone1TemperatureCount() > 0) { + hash = (37 * hash) + HEADZONE1TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getHeadZone1TemperatureList().hashCode(); + } + if (getHeadZone2TemperatureCount() > 0) { + hash = (37 * hash) + HEADZONE2TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getHeadZone2TemperatureList().hashCode(); + } + if (getHeadZone3TemperatureCount() > 0) { + hash = (37 * hash) + HEADZONE3TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getHeadZone3TemperatureList().hashCode(); + } + if (getHeadAirFlowCount() > 0) { + hash = (37 * hash) + HEADAIRFLOW_FIELD_NUMBER; + hash = (53 * hash) + getHeadAirFlowList().hashCode(); + } + if (getFeederTensionCount() > 0) { + hash = (37 * hash) + FEEDERTENSION_FIELD_NUMBER; + hash = (53 * hash) + getFeederTensionList().hashCode(); + } + if (getPullerTensionCount() > 0) { + hash = (37 * hash) + PULLERTENSION_FIELD_NUMBER; + hash = (53 * hash) + getPullerTensionList().hashCode(); + } + if (getDryerZone1TemperatureCount() > 0) { + hash = (37 * hash) + DRYERZONE1TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getDryerZone1TemperatureList().hashCode(); + } + if (getDryerZone2TemperatureCount() > 0) { + hash = (37 * hash) + DRYERZONE2TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getDryerZone2TemperatureList().hashCode(); + } + if (getDryerZone3TemperatureCount() > 0) { + hash = (37 * hash) + DRYERZONE3TEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getDryerZone3TemperatureList().hashCode(); + } + if (getDryerAirFlowCount() > 0) { + hash = (37 * hash) + DRYERAIRFLOW_FIELD_NUMBER; + hash = (53 * hash) + getDryerAirFlowList().hashCode(); + } + if (getWinderTensionCount() > 0) { + hash = (37 * hash) + WINDERTENSION_FIELD_NUMBER; + hash = (53 * hash) + getWinderTensionList().hashCode(); + } + if (getDispensersMotorsFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSERSMOTORSFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispensersMotorsFrequencyList().hashCode(); + } + if (getDispensersAngularEncodersCount() > 0) { + hash = (37 * hash) + DISPENSERSANGULARENCODERS_FIELD_NUMBER; + hash = (53 * hash) + getDispensersAngularEncodersList().hashCode(); + } + if (getDispensersLinearPositionsCount() > 0) { + hash = (37 * hash) + DISPENSERSLINEARPOSITIONS_FIELD_NUMBER; + hash = (53 * hash) + getDispensersLinearPositionsList().hashCode(); + } + if (getDispensersPressureCount() > 0) { + hash = (37 * hash) + DISPENSERSPRESSURE_FIELD_NUMBER; + hash = (53 * hash) + getDispensersPressureList().hashCode(); + } + if (getMidTankPressureCount() > 0) { + hash = (37 * hash) + MIDTANKPRESSURE_FIELD_NUMBER; + hash = (53 * hash) + getMidTankPressureList().hashCode(); + } + if (getFilterDeltaPressureCount() > 0) { + hash = (37 * hash) + FILTERDELTAPRESSURE_FIELD_NUMBER; + hash = (53 * hash) + getFilterDeltaPressureList().hashCode(); + } + if (getChillerTemperatureCount() > 0) { + hash = (37 * hash) + CHILLERTEMPERATURE_FIELD_NUMBER; + hash = (53 * hash) + getChillerTemperatureList().hashCode(); + } + if (getDispenser1MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER1MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser1MotorFrequencyList().hashCode(); + } + if (getDispenser2MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER2MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser2MotorFrequencyList().hashCode(); + } + if (getDispenser3MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER3MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser3MotorFrequencyList().hashCode(); + } + if (getDispenser4MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER4MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser4MotorFrequencyList().hashCode(); + } + if (getDispenser5MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER5MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser5MotorFrequencyList().hashCode(); + } + if (getDispenser6MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER6MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser6MotorFrequencyList().hashCode(); + } + if (getDispenser7MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER7MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser7MotorFrequencyList().hashCode(); + } + if (getDispenser8MotorFrequencyCount() > 0) { + hash = (37 * hash) + DISPENSER8MOTORFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getDispenser8MotorFrequencyList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors 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 com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors 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 com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DiagnosticsMonitors} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DiagnosticsMonitors) + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.class, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDispensersMotorsFrequencyFieldBuilder(); + getDispensersAngularEncodersFieldBuilder(); + getDispensersLinearPositionsFieldBuilder(); + getDispensersPressureFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + dancer1Angle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + dancer2Angle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + dancer3Angle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + feederMotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + dryerMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + pollerMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + winderMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + screwMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + threadSpeed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + mixerTemperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + headZone1Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + headZone2Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + headZone3Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + headAirFlow_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + feederTension_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + pullerTension_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + dryerZone1Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + dryerZone2Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + dryerZone3Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + dryerAirFlow_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + winderTension_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + if (dispensersMotorsFrequencyBuilder_ == null) { + dispensersMotorsFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + } else { + dispensersMotorsFrequencyBuilder_.clear(); + } + if (dispensersAngularEncodersBuilder_ == null) { + dispensersAngularEncoders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + } else { + dispensersAngularEncodersBuilder_.clear(); + } + if (dispensersLinearPositionsBuilder_ == null) { + dispensersLinearPositions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + } else { + dispensersLinearPositionsBuilder_.clear(); + } + if (dispensersPressureBuilder_ == null) { + dispensersPressure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + } else { + dispensersPressureBuilder_.clear(); + } + midTankPressure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x02000000); + filterDeltaPressure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x04000000); + chillerTemperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + dispenser1MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x10000000); + dispenser2MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x20000000); + dispenser3MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x40000000); + dispenser4MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x80000000); + dispenser5MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000001); + dispenser6MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000002); + dispenser7MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000004); + dispenser8MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000008); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors build() { + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors buildPartial() { + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors result = new com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors(this); + int from_bitField0_ = bitField0_; + int from_bitField1_ = bitField1_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + dancer1Angle_ = java.util.Collections.unmodifiableList(dancer1Angle_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dancer1Angle_ = dancer1Angle_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + dancer2Angle_ = java.util.Collections.unmodifiableList(dancer2Angle_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dancer2Angle_ = dancer2Angle_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + dancer3Angle_ = java.util.Collections.unmodifiableList(dancer3Angle_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.dancer3Angle_ = dancer3Angle_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + feederMotorFrequency_ = java.util.Collections.unmodifiableList(feederMotorFrequency_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.feederMotorFrequency_ = feederMotorFrequency_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + dryerMotor_ = java.util.Collections.unmodifiableList(dryerMotor_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.dryerMotor_ = dryerMotor_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + pollerMotor_ = java.util.Collections.unmodifiableList(pollerMotor_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.pollerMotor_ = pollerMotor_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + winderMotor_ = java.util.Collections.unmodifiableList(winderMotor_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.winderMotor_ = winderMotor_; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + screwMotor_ = java.util.Collections.unmodifiableList(screwMotor_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.screwMotor_ = screwMotor_; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + threadSpeed_ = java.util.Collections.unmodifiableList(threadSpeed_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.threadSpeed_ = threadSpeed_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + mixerTemperature_ = java.util.Collections.unmodifiableList(mixerTemperature_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.mixerTemperature_ = mixerTemperature_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + headZone1Temperature_ = java.util.Collections.unmodifiableList(headZone1Temperature_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.headZone1Temperature_ = headZone1Temperature_; + if (((bitField0_ & 0x00000800) == 0x00000800)) { + headZone2Temperature_ = java.util.Collections.unmodifiableList(headZone2Temperature_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.headZone2Temperature_ = headZone2Temperature_; + if (((bitField0_ & 0x00001000) == 0x00001000)) { + headZone3Temperature_ = java.util.Collections.unmodifiableList(headZone3Temperature_); + bitField0_ = (bitField0_ & ~0x00001000); + } + result.headZone3Temperature_ = headZone3Temperature_; + if (((bitField0_ & 0x00002000) == 0x00002000)) { + headAirFlow_ = java.util.Collections.unmodifiableList(headAirFlow_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.headAirFlow_ = headAirFlow_; + if (((bitField0_ & 0x00004000) == 0x00004000)) { + feederTension_ = java.util.Collections.unmodifiableList(feederTension_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.feederTension_ = feederTension_; + if (((bitField0_ & 0x00008000) == 0x00008000)) { + pullerTension_ = java.util.Collections.unmodifiableList(pullerTension_); + bitField0_ = (bitField0_ & ~0x00008000); + } + result.pullerTension_ = pullerTension_; + if (((bitField0_ & 0x00010000) == 0x00010000)) { + dryerZone1Temperature_ = java.util.Collections.unmodifiableList(dryerZone1Temperature_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.dryerZone1Temperature_ = dryerZone1Temperature_; + if (((bitField0_ & 0x00020000) == 0x00020000)) { + dryerZone2Temperature_ = java.util.Collections.unmodifiableList(dryerZone2Temperature_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.dryerZone2Temperature_ = dryerZone2Temperature_; + if (((bitField0_ & 0x00040000) == 0x00040000)) { + dryerZone3Temperature_ = java.util.Collections.unmodifiableList(dryerZone3Temperature_); + bitField0_ = (bitField0_ & ~0x00040000); + } + result.dryerZone3Temperature_ = dryerZone3Temperature_; + if (((bitField0_ & 0x00080000) == 0x00080000)) { + dryerAirFlow_ = java.util.Collections.unmodifiableList(dryerAirFlow_); + bitField0_ = (bitField0_ & ~0x00080000); + } + result.dryerAirFlow_ = dryerAirFlow_; + if (((bitField0_ & 0x00100000) == 0x00100000)) { + winderTension_ = java.util.Collections.unmodifiableList(winderTension_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.winderTension_ = winderTension_; + if (dispensersMotorsFrequencyBuilder_ == null) { + if (((bitField0_ & 0x00200000) == 0x00200000)) { + dispensersMotorsFrequency_ = java.util.Collections.unmodifiableList(dispensersMotorsFrequency_); + bitField0_ = (bitField0_ & ~0x00200000); + } + result.dispensersMotorsFrequency_ = dispensersMotorsFrequency_; + } else { + result.dispensersMotorsFrequency_ = dispensersMotorsFrequencyBuilder_.build(); + } + if (dispensersAngularEncodersBuilder_ == null) { + if (((bitField0_ & 0x00400000) == 0x00400000)) { + dispensersAngularEncoders_ = java.util.Collections.unmodifiableList(dispensersAngularEncoders_); + bitField0_ = (bitField0_ & ~0x00400000); + } + result.dispensersAngularEncoders_ = dispensersAngularEncoders_; + } else { + result.dispensersAngularEncoders_ = dispensersAngularEncodersBuilder_.build(); + } + if (dispensersLinearPositionsBuilder_ == null) { + if (((bitField0_ & 0x00800000) == 0x00800000)) { + dispensersLinearPositions_ = java.util.Collections.unmodifiableList(dispensersLinearPositions_); + bitField0_ = (bitField0_ & ~0x00800000); + } + result.dispensersLinearPositions_ = dispensersLinearPositions_; + } else { + result.dispensersLinearPositions_ = dispensersLinearPositionsBuilder_.build(); + } + if (dispensersPressureBuilder_ == null) { + if (((bitField0_ & 0x01000000) == 0x01000000)) { + dispensersPressure_ = java.util.Collections.unmodifiableList(dispensersPressure_); + bitField0_ = (bitField0_ & ~0x01000000); + } + result.dispensersPressure_ = dispensersPressure_; + } else { + result.dispensersPressure_ = dispensersPressureBuilder_.build(); + } + if (((bitField0_ & 0x02000000) == 0x02000000)) { + midTankPressure_ = java.util.Collections.unmodifiableList(midTankPressure_); + bitField0_ = (bitField0_ & ~0x02000000); + } + result.midTankPressure_ = midTankPressure_; + if (((bitField0_ & 0x04000000) == 0x04000000)) { + filterDeltaPressure_ = java.util.Collections.unmodifiableList(filterDeltaPressure_); + bitField0_ = (bitField0_ & ~0x04000000); + } + result.filterDeltaPressure_ = filterDeltaPressure_; + if (((bitField0_ & 0x08000000) == 0x08000000)) { + chillerTemperature_ = java.util.Collections.unmodifiableList(chillerTemperature_); + bitField0_ = (bitField0_ & ~0x08000000); + } + result.chillerTemperature_ = chillerTemperature_; + if (((bitField0_ & 0x10000000) == 0x10000000)) { + dispenser1MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser1MotorFrequency_); + bitField0_ = (bitField0_ & ~0x10000000); + } + result.dispenser1MotorFrequency_ = dispenser1MotorFrequency_; + if (((bitField0_ & 0x20000000) == 0x20000000)) { + dispenser2MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser2MotorFrequency_); + bitField0_ = (bitField0_ & ~0x20000000); + } + result.dispenser2MotorFrequency_ = dispenser2MotorFrequency_; + if (((bitField0_ & 0x40000000) == 0x40000000)) { + dispenser3MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser3MotorFrequency_); + bitField0_ = (bitField0_ & ~0x40000000); + } + result.dispenser3MotorFrequency_ = dispenser3MotorFrequency_; + if (((bitField0_ & 0x80000000) == 0x80000000)) { + dispenser4MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser4MotorFrequency_); + bitField0_ = (bitField0_ & ~0x80000000); + } + result.dispenser4MotorFrequency_ = dispenser4MotorFrequency_; + if (((bitField1_ & 0x00000001) == 0x00000001)) { + dispenser5MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser5MotorFrequency_); + bitField1_ = (bitField1_ & ~0x00000001); + } + result.dispenser5MotorFrequency_ = dispenser5MotorFrequency_; + if (((bitField1_ & 0x00000002) == 0x00000002)) { + dispenser6MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser6MotorFrequency_); + bitField1_ = (bitField1_ & ~0x00000002); + } + result.dispenser6MotorFrequency_ = dispenser6MotorFrequency_; + if (((bitField1_ & 0x00000004) == 0x00000004)) { + dispenser7MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser7MotorFrequency_); + bitField1_ = (bitField1_ & ~0x00000004); + } + result.dispenser7MotorFrequency_ = dispenser7MotorFrequency_; + if (((bitField1_ & 0x00000008) == 0x00000008)) { + dispenser8MotorFrequency_ = java.util.Collections.unmodifiableList(dispenser8MotorFrequency_); + bitField1_ = (bitField1_ & ~0x00000008); + } + result.dispenser8MotorFrequency_ = dispenser8MotorFrequency_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors other) { + if (other == com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.getDefaultInstance()) return this; + if (!other.dancer1Angle_.isEmpty()) { + if (dancer1Angle_.isEmpty()) { + dancer1Angle_ = other.dancer1Angle_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDancer1AngleIsMutable(); + dancer1Angle_.addAll(other.dancer1Angle_); + } + onChanged(); + } + if (!other.dancer2Angle_.isEmpty()) { + if (dancer2Angle_.isEmpty()) { + dancer2Angle_ = other.dancer2Angle_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDancer2AngleIsMutable(); + dancer2Angle_.addAll(other.dancer2Angle_); + } + onChanged(); + } + if (!other.dancer3Angle_.isEmpty()) { + if (dancer3Angle_.isEmpty()) { + dancer3Angle_ = other.dancer3Angle_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDancer3AngleIsMutable(); + dancer3Angle_.addAll(other.dancer3Angle_); + } + onChanged(); + } + if (!other.feederMotorFrequency_.isEmpty()) { + if (feederMotorFrequency_.isEmpty()) { + feederMotorFrequency_ = other.feederMotorFrequency_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFeederMotorFrequencyIsMutable(); + feederMotorFrequency_.addAll(other.feederMotorFrequency_); + } + onChanged(); + } + if (!other.dryerMotor_.isEmpty()) { + if (dryerMotor_.isEmpty()) { + dryerMotor_ = other.dryerMotor_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureDryerMotorIsMutable(); + dryerMotor_.addAll(other.dryerMotor_); + } + onChanged(); + } + if (!other.pollerMotor_.isEmpty()) { + if (pollerMotor_.isEmpty()) { + pollerMotor_ = other.pollerMotor_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensurePollerMotorIsMutable(); + pollerMotor_.addAll(other.pollerMotor_); + } + onChanged(); + } + if (!other.winderMotor_.isEmpty()) { + if (winderMotor_.isEmpty()) { + winderMotor_ = other.winderMotor_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureWinderMotorIsMutable(); + winderMotor_.addAll(other.winderMotor_); + } + onChanged(); + } + if (!other.screwMotor_.isEmpty()) { + if (screwMotor_.isEmpty()) { + screwMotor_ = other.screwMotor_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureScrewMotorIsMutable(); + screwMotor_.addAll(other.screwMotor_); + } + onChanged(); + } + if (!other.threadSpeed_.isEmpty()) { + if (threadSpeed_.isEmpty()) { + threadSpeed_ = other.threadSpeed_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureThreadSpeedIsMutable(); + threadSpeed_.addAll(other.threadSpeed_); + } + onChanged(); + } + if (!other.mixerTemperature_.isEmpty()) { + if (mixerTemperature_.isEmpty()) { + mixerTemperature_ = other.mixerTemperature_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureMixerTemperatureIsMutable(); + mixerTemperature_.addAll(other.mixerTemperature_); + } + onChanged(); + } + if (!other.headZone1Temperature_.isEmpty()) { + if (headZone1Temperature_.isEmpty()) { + headZone1Temperature_ = other.headZone1Temperature_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureHeadZone1TemperatureIsMutable(); + headZone1Temperature_.addAll(other.headZone1Temperature_); + } + onChanged(); + } + if (!other.headZone2Temperature_.isEmpty()) { + if (headZone2Temperature_.isEmpty()) { + headZone2Temperature_ = other.headZone2Temperature_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureHeadZone2TemperatureIsMutable(); + headZone2Temperature_.addAll(other.headZone2Temperature_); + } + onChanged(); + } + if (!other.headZone3Temperature_.isEmpty()) { + if (headZone3Temperature_.isEmpty()) { + headZone3Temperature_ = other.headZone3Temperature_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureHeadZone3TemperatureIsMutable(); + headZone3Temperature_.addAll(other.headZone3Temperature_); + } + onChanged(); + } + if (!other.headAirFlow_.isEmpty()) { + if (headAirFlow_.isEmpty()) { + headAirFlow_ = other.headAirFlow_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureHeadAirFlowIsMutable(); + headAirFlow_.addAll(other.headAirFlow_); + } + onChanged(); + } + if (!other.feederTension_.isEmpty()) { + if (feederTension_.isEmpty()) { + feederTension_ = other.feederTension_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureFeederTensionIsMutable(); + feederTension_.addAll(other.feederTension_); + } + onChanged(); + } + if (!other.pullerTension_.isEmpty()) { + if (pullerTension_.isEmpty()) { + pullerTension_ = other.pullerTension_; + bitField0_ = (bitField0_ & ~0x00008000); + } else { + ensurePullerTensionIsMutable(); + pullerTension_.addAll(other.pullerTension_); + } + onChanged(); + } + if (!other.dryerZone1Temperature_.isEmpty()) { + if (dryerZone1Temperature_.isEmpty()) { + dryerZone1Temperature_ = other.dryerZone1Temperature_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureDryerZone1TemperatureIsMutable(); + dryerZone1Temperature_.addAll(other.dryerZone1Temperature_); + } + onChanged(); + } + if (!other.dryerZone2Temperature_.isEmpty()) { + if (dryerZone2Temperature_.isEmpty()) { + dryerZone2Temperature_ = other.dryerZone2Temperature_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureDryerZone2TemperatureIsMutable(); + dryerZone2Temperature_.addAll(other.dryerZone2Temperature_); + } + onChanged(); + } + if (!other.dryerZone3Temperature_.isEmpty()) { + if (dryerZone3Temperature_.isEmpty()) { + dryerZone3Temperature_ = other.dryerZone3Temperature_; + bitField0_ = (bitField0_ & ~0x00040000); + } else { + ensureDryerZone3TemperatureIsMutable(); + dryerZone3Temperature_.addAll(other.dryerZone3Temperature_); + } + onChanged(); + } + if (!other.dryerAirFlow_.isEmpty()) { + if (dryerAirFlow_.isEmpty()) { + dryerAirFlow_ = other.dryerAirFlow_; + bitField0_ = (bitField0_ & ~0x00080000); + } else { + ensureDryerAirFlowIsMutable(); + dryerAirFlow_.addAll(other.dryerAirFlow_); + } + onChanged(); + } + if (!other.winderTension_.isEmpty()) { + if (winderTension_.isEmpty()) { + winderTension_ = other.winderTension_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureWinderTensionIsMutable(); + winderTension_.addAll(other.winderTension_); + } + onChanged(); + } + if (dispensersMotorsFrequencyBuilder_ == null) { + if (!other.dispensersMotorsFrequency_.isEmpty()) { + if (dispensersMotorsFrequency_.isEmpty()) { + dispensersMotorsFrequency_ = other.dispensersMotorsFrequency_; + bitField0_ = (bitField0_ & ~0x00200000); + } else { + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.addAll(other.dispensersMotorsFrequency_); + } + onChanged(); + } + } else { + if (!other.dispensersMotorsFrequency_.isEmpty()) { + if (dispensersMotorsFrequencyBuilder_.isEmpty()) { + dispensersMotorsFrequencyBuilder_.dispose(); + dispensersMotorsFrequencyBuilder_ = null; + dispensersMotorsFrequency_ = other.dispensersMotorsFrequency_; + bitField0_ = (bitField0_ & ~0x00200000); + dispensersMotorsFrequencyBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDispensersMotorsFrequencyFieldBuilder() : null; + } else { + dispensersMotorsFrequencyBuilder_.addAllMessages(other.dispensersMotorsFrequency_); + } + } + } + if (dispensersAngularEncodersBuilder_ == null) { + if (!other.dispensersAngularEncoders_.isEmpty()) { + if (dispensersAngularEncoders_.isEmpty()) { + dispensersAngularEncoders_ = other.dispensersAngularEncoders_; + bitField0_ = (bitField0_ & ~0x00400000); + } else { + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.addAll(other.dispensersAngularEncoders_); + } + onChanged(); + } + } else { + if (!other.dispensersAngularEncoders_.isEmpty()) { + if (dispensersAngularEncodersBuilder_.isEmpty()) { + dispensersAngularEncodersBuilder_.dispose(); + dispensersAngularEncodersBuilder_ = null; + dispensersAngularEncoders_ = other.dispensersAngularEncoders_; + bitField0_ = (bitField0_ & ~0x00400000); + dispensersAngularEncodersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDispensersAngularEncodersFieldBuilder() : null; + } else { + dispensersAngularEncodersBuilder_.addAllMessages(other.dispensersAngularEncoders_); + } + } + } + if (dispensersLinearPositionsBuilder_ == null) { + if (!other.dispensersLinearPositions_.isEmpty()) { + if (dispensersLinearPositions_.isEmpty()) { + dispensersLinearPositions_ = other.dispensersLinearPositions_; + bitField0_ = (bitField0_ & ~0x00800000); + } else { + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.addAll(other.dispensersLinearPositions_); + } + onChanged(); + } + } else { + if (!other.dispensersLinearPositions_.isEmpty()) { + if (dispensersLinearPositionsBuilder_.isEmpty()) { + dispensersLinearPositionsBuilder_.dispose(); + dispensersLinearPositionsBuilder_ = null; + dispensersLinearPositions_ = other.dispensersLinearPositions_; + bitField0_ = (bitField0_ & ~0x00800000); + dispensersLinearPositionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDispensersLinearPositionsFieldBuilder() : null; + } else { + dispensersLinearPositionsBuilder_.addAllMessages(other.dispensersLinearPositions_); + } + } + } + if (dispensersPressureBuilder_ == null) { + if (!other.dispensersPressure_.isEmpty()) { + if (dispensersPressure_.isEmpty()) { + dispensersPressure_ = other.dispensersPressure_; + bitField0_ = (bitField0_ & ~0x01000000); + } else { + ensureDispensersPressureIsMutable(); + dispensersPressure_.addAll(other.dispensersPressure_); + } + onChanged(); + } + } else { + if (!other.dispensersPressure_.isEmpty()) { + if (dispensersPressureBuilder_.isEmpty()) { + dispensersPressureBuilder_.dispose(); + dispensersPressureBuilder_ = null; + dispensersPressure_ = other.dispensersPressure_; + bitField0_ = (bitField0_ & ~0x01000000); + dispensersPressureBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDispensersPressureFieldBuilder() : null; + } else { + dispensersPressureBuilder_.addAllMessages(other.dispensersPressure_); + } + } + } + if (!other.midTankPressure_.isEmpty()) { + if (midTankPressure_.isEmpty()) { + midTankPressure_ = other.midTankPressure_; + bitField0_ = (bitField0_ & ~0x02000000); + } else { + ensureMidTankPressureIsMutable(); + midTankPressure_.addAll(other.midTankPressure_); + } + onChanged(); + } + if (!other.filterDeltaPressure_.isEmpty()) { + if (filterDeltaPressure_.isEmpty()) { + filterDeltaPressure_ = other.filterDeltaPressure_; + bitField0_ = (bitField0_ & ~0x04000000); + } else { + ensureFilterDeltaPressureIsMutable(); + filterDeltaPressure_.addAll(other.filterDeltaPressure_); + } + onChanged(); + } + if (!other.chillerTemperature_.isEmpty()) { + if (chillerTemperature_.isEmpty()) { + chillerTemperature_ = other.chillerTemperature_; + bitField0_ = (bitField0_ & ~0x08000000); + } else { + ensureChillerTemperatureIsMutable(); + chillerTemperature_.addAll(other.chillerTemperature_); + } + onChanged(); + } + if (!other.dispenser1MotorFrequency_.isEmpty()) { + if (dispenser1MotorFrequency_.isEmpty()) { + dispenser1MotorFrequency_ = other.dispenser1MotorFrequency_; + bitField0_ = (bitField0_ & ~0x10000000); + } else { + ensureDispenser1MotorFrequencyIsMutable(); + dispenser1MotorFrequency_.addAll(other.dispenser1MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser2MotorFrequency_.isEmpty()) { + if (dispenser2MotorFrequency_.isEmpty()) { + dispenser2MotorFrequency_ = other.dispenser2MotorFrequency_; + bitField0_ = (bitField0_ & ~0x20000000); + } else { + ensureDispenser2MotorFrequencyIsMutable(); + dispenser2MotorFrequency_.addAll(other.dispenser2MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser3MotorFrequency_.isEmpty()) { + if (dispenser3MotorFrequency_.isEmpty()) { + dispenser3MotorFrequency_ = other.dispenser3MotorFrequency_; + bitField0_ = (bitField0_ & ~0x40000000); + } else { + ensureDispenser3MotorFrequencyIsMutable(); + dispenser3MotorFrequency_.addAll(other.dispenser3MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser4MotorFrequency_.isEmpty()) { + if (dispenser4MotorFrequency_.isEmpty()) { + dispenser4MotorFrequency_ = other.dispenser4MotorFrequency_; + bitField0_ = (bitField0_ & ~0x80000000); + } else { + ensureDispenser4MotorFrequencyIsMutable(); + dispenser4MotorFrequency_.addAll(other.dispenser4MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser5MotorFrequency_.isEmpty()) { + if (dispenser5MotorFrequency_.isEmpty()) { + dispenser5MotorFrequency_ = other.dispenser5MotorFrequency_; + bitField1_ = (bitField1_ & ~0x00000001); + } else { + ensureDispenser5MotorFrequencyIsMutable(); + dispenser5MotorFrequency_.addAll(other.dispenser5MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser6MotorFrequency_.isEmpty()) { + if (dispenser6MotorFrequency_.isEmpty()) { + dispenser6MotorFrequency_ = other.dispenser6MotorFrequency_; + bitField1_ = (bitField1_ & ~0x00000002); + } else { + ensureDispenser6MotorFrequencyIsMutable(); + dispenser6MotorFrequency_.addAll(other.dispenser6MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser7MotorFrequency_.isEmpty()) { + if (dispenser7MotorFrequency_.isEmpty()) { + dispenser7MotorFrequency_ = other.dispenser7MotorFrequency_; + bitField1_ = (bitField1_ & ~0x00000004); + } else { + ensureDispenser7MotorFrequencyIsMutable(); + dispenser7MotorFrequency_.addAll(other.dispenser7MotorFrequency_); + } + onChanged(); + } + if (!other.dispenser8MotorFrequency_.isEmpty()) { + if (dispenser8MotorFrequency_.isEmpty()) { + dispenser8MotorFrequency_ = other.dispenser8MotorFrequency_; + bitField1_ = (bitField1_ & ~0x00000008); + } else { + ensureDispenser8MotorFrequencyIsMutable(); + dispenser8MotorFrequency_.addAll(other.dispenser8MotorFrequency_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + private int bitField1_; + + private java.util.List dancer1Angle_ = java.util.Collections.emptyList(); + private void ensureDancer1AngleIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + dancer1Angle_ = new java.util.ArrayList(dancer1Angle_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public java.util.List + getDancer1AngleList() { + return java.util.Collections.unmodifiableList(dancer1Angle_); + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public int getDancer1AngleCount() { + return dancer1Angle_.size(); + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public double getDancer1Angle(int index) { + return dancer1Angle_.get(index); + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public Builder setDancer1Angle( + int index, double value) { + ensureDancer1AngleIsMutable(); + dancer1Angle_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public Builder addDancer1Angle(double value) { + ensureDancer1AngleIsMutable(); + dancer1Angle_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public Builder addAllDancer1Angle( + java.lang.Iterable values) { + ensureDancer1AngleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dancer1Angle_); + onChanged(); + return this; + } + /** + *
+       *Dancer 1 (Min = 0, Max = 255, PPF = 10)
+       * 
+ * + * repeated double Dancer1Angle = 1; + */ + public Builder clearDancer1Angle() { + dancer1Angle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List dancer2Angle_ = java.util.Collections.emptyList(); + private void ensureDancer2AngleIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + dancer2Angle_ = new java.util.ArrayList(dancer2Angle_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public java.util.List + getDancer2AngleList() { + return java.util.Collections.unmodifiableList(dancer2Angle_); + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public int getDancer2AngleCount() { + return dancer2Angle_.size(); + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public double getDancer2Angle(int index) { + return dancer2Angle_.get(index); + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public Builder setDancer2Angle( + int index, double value) { + ensureDancer2AngleIsMutable(); + dancer2Angle_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public Builder addDancer2Angle(double value) { + ensureDancer2AngleIsMutable(); + dancer2Angle_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public Builder addAllDancer2Angle( + java.lang.Iterable values) { + ensureDancer2AngleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dancer2Angle_); + onChanged(); + return this; + } + /** + *
+       *Dancer 2 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer2Angle = 2; + */ + public Builder clearDancer2Angle() { + dancer2Angle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + private java.util.List dancer3Angle_ = java.util.Collections.emptyList(); + private void ensureDancer3AngleIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + dancer3Angle_ = new java.util.ArrayList(dancer3Angle_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public java.util.List + getDancer3AngleList() { + return java.util.Collections.unmodifiableList(dancer3Angle_); + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public int getDancer3AngleCount() { + return dancer3Angle_.size(); + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public double getDancer3Angle(int index) { + return dancer3Angle_.get(index); + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public Builder setDancer3Angle( + int index, double value) { + ensureDancer3AngleIsMutable(); + dancer3Angle_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public Builder addDancer3Angle(double value) { + ensureDancer3AngleIsMutable(); + dancer3Angle_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public Builder addAllDancer3Angle( + java.lang.Iterable values) { + ensureDancer3AngleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dancer3Angle_); + onChanged(); + return this; + } + /** + *
+       *Dancer 3 (Min = 0, Max = 1200, PPF = 1)
+       * 
+ * + * repeated double Dancer3Angle = 3; + */ + public Builder clearDancer3Angle() { + dancer3Angle_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private java.util.List feederMotorFrequency_ = java.util.Collections.emptyList(); + private void ensureFeederMotorFrequencyIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + feederMotorFrequency_ = new java.util.ArrayList(feederMotorFrequency_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public java.util.List + getFeederMotorFrequencyList() { + return java.util.Collections.unmodifiableList(feederMotorFrequency_); + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public int getFeederMotorFrequencyCount() { + return feederMotorFrequency_.size(); + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public double getFeederMotorFrequency(int index) { + return feederMotorFrequency_.get(index); + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public Builder setFeederMotorFrequency( + int index, double value) { + ensureFeederMotorFrequencyIsMutable(); + feederMotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public Builder addFeederMotorFrequency(double value) { + ensureFeederMotorFrequencyIsMutable(); + feederMotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public Builder addAllFeederMotorFrequency( + java.lang.Iterable values) { + ensureFeederMotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, feederMotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Feeder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederMotorFrequency = 4; + */ + public Builder clearFeederMotorFrequency() { + feederMotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + private java.util.List dryerMotor_ = java.util.Collections.emptyList(); + private void ensureDryerMotorIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + dryerMotor_ = new java.util.ArrayList(dryerMotor_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public java.util.List + getDryerMotorList() { + return java.util.Collections.unmodifiableList(dryerMotor_); + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public int getDryerMotorCount() { + return dryerMotor_.size(); + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public double getDryerMotor(int index) { + return dryerMotor_.get(index); + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public Builder setDryerMotor( + int index, double value) { + ensureDryerMotorIsMutable(); + dryerMotor_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public Builder addDryerMotor(double value) { + ensureDryerMotorIsMutable(); + dryerMotor_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public Builder addAllDryerMotor( + java.lang.Iterable values) { + ensureDryerMotorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dryerMotor_); + onChanged(); + return this; + } + /** + *
+       *Dryer Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerMotor = 5; + */ + public Builder clearDryerMotor() { + dryerMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + private java.util.List pollerMotor_ = java.util.Collections.emptyList(); + private void ensurePollerMotorIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + pollerMotor_ = new java.util.ArrayList(pollerMotor_); + bitField0_ |= 0x00000020; + } + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public java.util.List + getPollerMotorList() { + return java.util.Collections.unmodifiableList(pollerMotor_); + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public int getPollerMotorCount() { + return pollerMotor_.size(); + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public double getPollerMotor(int index) { + return pollerMotor_.get(index); + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public Builder setPollerMotor( + int index, double value) { + ensurePollerMotorIsMutable(); + pollerMotor_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public Builder addPollerMotor(double value) { + ensurePollerMotorIsMutable(); + pollerMotor_.add(value); + onChanged(); + return this; + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public Builder addAllPollerMotor( + java.lang.Iterable values) { + ensurePollerMotorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pollerMotor_); + onChanged(); + return this; + } + /** + *
+       *Poller Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PollerMotor = 6; + */ + public Builder clearPollerMotor() { + pollerMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + private java.util.List winderMotor_ = java.util.Collections.emptyList(); + private void ensureWinderMotorIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + winderMotor_ = new java.util.ArrayList(winderMotor_); + bitField0_ |= 0x00000040; + } + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public java.util.List + getWinderMotorList() { + return java.util.Collections.unmodifiableList(winderMotor_); + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public int getWinderMotorCount() { + return winderMotor_.size(); + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public double getWinderMotor(int index) { + return winderMotor_.get(index); + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public Builder setWinderMotor( + int index, double value) { + ensureWinderMotorIsMutable(); + winderMotor_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public Builder addWinderMotor(double value) { + ensureWinderMotorIsMutable(); + winderMotor_.add(value); + onChanged(); + return this; + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public Builder addAllWinderMotor( + java.lang.Iterable values) { + ensureWinderMotorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, winderMotor_); + onChanged(); + return this; + } + /** + *
+       *Winder Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderMotor = 7; + */ + public Builder clearWinderMotor() { + winderMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + private java.util.List screwMotor_ = java.util.Collections.emptyList(); + private void ensureScrewMotorIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + screwMotor_ = new java.util.ArrayList(screwMotor_); + bitField0_ |= 0x00000080; + } + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public java.util.List + getScrewMotorList() { + return java.util.Collections.unmodifiableList(screwMotor_); + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public int getScrewMotorCount() { + return screwMotor_.size(); + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public double getScrewMotor(int index) { + return screwMotor_.get(index); + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public Builder setScrewMotor( + int index, double value) { + ensureScrewMotorIsMutable(); + screwMotor_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public Builder addScrewMotor(double value) { + ensureScrewMotorIsMutable(); + screwMotor_.add(value); + onChanged(); + return this; + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public Builder addAllScrewMotor( + java.lang.Iterable values) { + ensureScrewMotorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, screwMotor_); + onChanged(); + return this; + } + /** + *
+       *Screw Motor (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ScrewMotor = 8; + */ + public Builder clearScrewMotor() { + screwMotor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + private java.util.List threadSpeed_ = java.util.Collections.emptyList(); + private void ensureThreadSpeedIsMutable() { + if (!((bitField0_ & 0x00000100) == 0x00000100)) { + threadSpeed_ = new java.util.ArrayList(threadSpeed_); + bitField0_ |= 0x00000100; + } + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public java.util.List + getThreadSpeedList() { + return java.util.Collections.unmodifiableList(threadSpeed_); + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public int getThreadSpeedCount() { + return threadSpeed_.size(); + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public double getThreadSpeed(int index) { + return threadSpeed_.get(index); + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public Builder setThreadSpeed( + int index, double value) { + ensureThreadSpeedIsMutable(); + threadSpeed_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public Builder addThreadSpeed(double value) { + ensureThreadSpeedIsMutable(); + threadSpeed_.add(value); + onChanged(); + return this; + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public Builder addAllThreadSpeed( + java.lang.Iterable values) { + ensureThreadSpeedIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, threadSpeed_); + onChanged(); + return this; + } + /** + *
+       *Thread Speed (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ThreadSpeed = 9; + */ + public Builder clearThreadSpeed() { + threadSpeed_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + private java.util.List mixerTemperature_ = java.util.Collections.emptyList(); + private void ensureMixerTemperatureIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + mixerTemperature_ = new java.util.ArrayList(mixerTemperature_); + bitField0_ |= 0x00000200; + } + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public java.util.List + getMixerTemperatureList() { + return java.util.Collections.unmodifiableList(mixerTemperature_); + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public int getMixerTemperatureCount() { + return mixerTemperature_.size(); + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public double getMixerTemperature(int index) { + return mixerTemperature_.get(index); + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public Builder setMixerTemperature( + int index, double value) { + ensureMixerTemperatureIsMutable(); + mixerTemperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public Builder addMixerTemperature(double value) { + ensureMixerTemperatureIsMutable(); + mixerTemperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public Builder addAllMixerTemperature( + java.lang.Iterable values) { + ensureMixerTemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mixerTemperature_); + onChanged(); + return this; + } + /** + *
+       *Mixer (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MixerTemperature = 10; + */ + public Builder clearMixerTemperature() { + mixerTemperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + private java.util.List headZone1Temperature_ = java.util.Collections.emptyList(); + private void ensureHeadZone1TemperatureIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + headZone1Temperature_ = new java.util.ArrayList(headZone1Temperature_); + bitField0_ |= 0x00000400; + } + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public java.util.List + getHeadZone1TemperatureList() { + return java.util.Collections.unmodifiableList(headZone1Temperature_); + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public int getHeadZone1TemperatureCount() { + return headZone1Temperature_.size(); + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public double getHeadZone1Temperature(int index) { + return headZone1Temperature_.get(index); + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public Builder setHeadZone1Temperature( + int index, double value) { + ensureHeadZone1TemperatureIsMutable(); + headZone1Temperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public Builder addHeadZone1Temperature(double value) { + ensureHeadZone1TemperatureIsMutable(); + headZone1Temperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public Builder addAllHeadZone1Temperature( + java.lang.Iterable values) { + ensureHeadZone1TemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headZone1Temperature_); + onChanged(); + return this; + } + /** + *
+       *Head Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone1Temperature = 11; + */ + public Builder clearHeadZone1Temperature() { + headZone1Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + private java.util.List headZone2Temperature_ = java.util.Collections.emptyList(); + private void ensureHeadZone2TemperatureIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + headZone2Temperature_ = new java.util.ArrayList(headZone2Temperature_); + bitField0_ |= 0x00000800; + } + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public java.util.List + getHeadZone2TemperatureList() { + return java.util.Collections.unmodifiableList(headZone2Temperature_); + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public int getHeadZone2TemperatureCount() { + return headZone2Temperature_.size(); + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public double getHeadZone2Temperature(int index) { + return headZone2Temperature_.get(index); + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public Builder setHeadZone2Temperature( + int index, double value) { + ensureHeadZone2TemperatureIsMutable(); + headZone2Temperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public Builder addHeadZone2Temperature(double value) { + ensureHeadZone2TemperatureIsMutable(); + headZone2Temperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public Builder addAllHeadZone2Temperature( + java.lang.Iterable values) { + ensureHeadZone2TemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headZone2Temperature_); + onChanged(); + return this; + } + /** + *
+       *Head Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone2Temperature = 12; + */ + public Builder clearHeadZone2Temperature() { + headZone2Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + private java.util.List headZone3Temperature_ = java.util.Collections.emptyList(); + private void ensureHeadZone3TemperatureIsMutable() { + if (!((bitField0_ & 0x00001000) == 0x00001000)) { + headZone3Temperature_ = new java.util.ArrayList(headZone3Temperature_); + bitField0_ |= 0x00001000; + } + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public java.util.List + getHeadZone3TemperatureList() { + return java.util.Collections.unmodifiableList(headZone3Temperature_); + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public int getHeadZone3TemperatureCount() { + return headZone3Temperature_.size(); + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public double getHeadZone3Temperature(int index) { + return headZone3Temperature_.get(index); + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public Builder setHeadZone3Temperature( + int index, double value) { + ensureHeadZone3TemperatureIsMutable(); + headZone3Temperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public Builder addHeadZone3Temperature(double value) { + ensureHeadZone3TemperatureIsMutable(); + headZone3Temperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public Builder addAllHeadZone3Temperature( + java.lang.Iterable values) { + ensureHeadZone3TemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headZone3Temperature_); + onChanged(); + return this; + } + /** + *
+       *Head Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadZone3Temperature = 13; + */ + public Builder clearHeadZone3Temperature() { + headZone3Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + private java.util.List headAirFlow_ = java.util.Collections.emptyList(); + private void ensureHeadAirFlowIsMutable() { + if (!((bitField0_ & 0x00002000) == 0x00002000)) { + headAirFlow_ = new java.util.ArrayList(headAirFlow_); + bitField0_ |= 0x00002000; + } + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public java.util.List + getHeadAirFlowList() { + return java.util.Collections.unmodifiableList(headAirFlow_); + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public int getHeadAirFlowCount() { + return headAirFlow_.size(); + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public double getHeadAirFlow(int index) { + return headAirFlow_.get(index); + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public Builder setHeadAirFlow( + int index, double value) { + ensureHeadAirFlowIsMutable(); + headAirFlow_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public Builder addHeadAirFlow(double value) { + ensureHeadAirFlowIsMutable(); + headAirFlow_.add(value); + onChanged(); + return this; + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public Builder addAllHeadAirFlow( + java.lang.Iterable values) { + ensureHeadAirFlowIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headAirFlow_); + onChanged(); + return this; + } + /** + *
+       *Head Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double HeadAirFlow = 14; + */ + public Builder clearHeadAirFlow() { + headAirFlow_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + private java.util.List feederTension_ = java.util.Collections.emptyList(); + private void ensureFeederTensionIsMutable() { + if (!((bitField0_ & 0x00004000) == 0x00004000)) { + feederTension_ = new java.util.ArrayList(feederTension_); + bitField0_ |= 0x00004000; + } + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public java.util.List + getFeederTensionList() { + return java.util.Collections.unmodifiableList(feederTension_); + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public int getFeederTensionCount() { + return feederTension_.size(); + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public double getFeederTension(int index) { + return feederTension_.get(index); + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public Builder setFeederTension( + int index, double value) { + ensureFeederTensionIsMutable(); + feederTension_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public Builder addFeederTension(double value) { + ensureFeederTensionIsMutable(); + feederTension_.add(value); + onChanged(); + return this; + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public Builder addAllFeederTension( + java.lang.Iterable values) { + ensureFeederTensionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, feederTension_); + onChanged(); + return this; + } + /** + *
+       *Feeder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FeederTension = 15; + */ + public Builder clearFeederTension() { + feederTension_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + + private java.util.List pullerTension_ = java.util.Collections.emptyList(); + private void ensurePullerTensionIsMutable() { + if (!((bitField0_ & 0x00008000) == 0x00008000)) { + pullerTension_ = new java.util.ArrayList(pullerTension_); + bitField0_ |= 0x00008000; + } + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public java.util.List + getPullerTensionList() { + return java.util.Collections.unmodifiableList(pullerTension_); + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public int getPullerTensionCount() { + return pullerTension_.size(); + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public double getPullerTension(int index) { + return pullerTension_.get(index); + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public Builder setPullerTension( + int index, double value) { + ensurePullerTensionIsMutable(); + pullerTension_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public Builder addPullerTension(double value) { + ensurePullerTensionIsMutable(); + pullerTension_.add(value); + onChanged(); + return this; + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public Builder addAllPullerTension( + java.lang.Iterable values) { + ensurePullerTensionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pullerTension_); + onChanged(); + return this; + } + /** + *
+       *Puller Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double PullerTension = 16; + */ + public Builder clearPullerTension() { + pullerTension_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + private java.util.List dryerZone1Temperature_ = java.util.Collections.emptyList(); + private void ensureDryerZone1TemperatureIsMutable() { + if (!((bitField0_ & 0x00010000) == 0x00010000)) { + dryerZone1Temperature_ = new java.util.ArrayList(dryerZone1Temperature_); + bitField0_ |= 0x00010000; + } + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public java.util.List + getDryerZone1TemperatureList() { + return java.util.Collections.unmodifiableList(dryerZone1Temperature_); + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public int getDryerZone1TemperatureCount() { + return dryerZone1Temperature_.size(); + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public double getDryerZone1Temperature(int index) { + return dryerZone1Temperature_.get(index); + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public Builder setDryerZone1Temperature( + int index, double value) { + ensureDryerZone1TemperatureIsMutable(); + dryerZone1Temperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public Builder addDryerZone1Temperature(double value) { + ensureDryerZone1TemperatureIsMutable(); + dryerZone1Temperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public Builder addAllDryerZone1Temperature( + java.lang.Iterable values) { + ensureDryerZone1TemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dryerZone1Temperature_); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 1 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone1Temperature = 17; + */ + public Builder clearDryerZone1Temperature() { + dryerZone1Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + private java.util.List dryerZone2Temperature_ = java.util.Collections.emptyList(); + private void ensureDryerZone2TemperatureIsMutable() { + if (!((bitField0_ & 0x00020000) == 0x00020000)) { + dryerZone2Temperature_ = new java.util.ArrayList(dryerZone2Temperature_); + bitField0_ |= 0x00020000; + } + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public java.util.List + getDryerZone2TemperatureList() { + return java.util.Collections.unmodifiableList(dryerZone2Temperature_); + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public int getDryerZone2TemperatureCount() { + return dryerZone2Temperature_.size(); + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public double getDryerZone2Temperature(int index) { + return dryerZone2Temperature_.get(index); + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public Builder setDryerZone2Temperature( + int index, double value) { + ensureDryerZone2TemperatureIsMutable(); + dryerZone2Temperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public Builder addDryerZone2Temperature(double value) { + ensureDryerZone2TemperatureIsMutable(); + dryerZone2Temperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public Builder addAllDryerZone2Temperature( + java.lang.Iterable values) { + ensureDryerZone2TemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dryerZone2Temperature_); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 2 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone2Temperature = 18; + */ + public Builder clearDryerZone2Temperature() { + dryerZone2Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + private java.util.List dryerZone3Temperature_ = java.util.Collections.emptyList(); + private void ensureDryerZone3TemperatureIsMutable() { + if (!((bitField0_ & 0x00040000) == 0x00040000)) { + dryerZone3Temperature_ = new java.util.ArrayList(dryerZone3Temperature_); + bitField0_ |= 0x00040000; + } + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public java.util.List + getDryerZone3TemperatureList() { + return java.util.Collections.unmodifiableList(dryerZone3Temperature_); + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public int getDryerZone3TemperatureCount() { + return dryerZone3Temperature_.size(); + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public double getDryerZone3Temperature(int index) { + return dryerZone3Temperature_.get(index); + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public Builder setDryerZone3Temperature( + int index, double value) { + ensureDryerZone3TemperatureIsMutable(); + dryerZone3Temperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public Builder addDryerZone3Temperature(double value) { + ensureDryerZone3TemperatureIsMutable(); + dryerZone3Temperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public Builder addAllDryerZone3Temperature( + java.lang.Iterable values) { + ensureDryerZone3TemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dryerZone3Temperature_); + onChanged(); + return this; + } + /** + *
+       *Dryer Zone 3 (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerZone3Temperature = 19; + */ + public Builder clearDryerZone3Temperature() { + dryerZone3Temperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + + private java.util.List dryerAirFlow_ = java.util.Collections.emptyList(); + private void ensureDryerAirFlowIsMutable() { + if (!((bitField0_ & 0x00080000) == 0x00080000)) { + dryerAirFlow_ = new java.util.ArrayList(dryerAirFlow_); + bitField0_ |= 0x00080000; + } + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public java.util.List + getDryerAirFlowList() { + return java.util.Collections.unmodifiableList(dryerAirFlow_); + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public int getDryerAirFlowCount() { + return dryerAirFlow_.size(); + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public double getDryerAirFlow(int index) { + return dryerAirFlow_.get(index); + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public Builder setDryerAirFlow( + int index, double value) { + ensureDryerAirFlowIsMutable(); + dryerAirFlow_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public Builder addDryerAirFlow(double value) { + ensureDryerAirFlowIsMutable(); + dryerAirFlow_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public Builder addAllDryerAirFlow( + java.lang.Iterable values) { + ensureDryerAirFlowIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dryerAirFlow_); + onChanged(); + return this; + } + /** + *
+       *Dryer Air Flow (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double DryerAirFlow = 20; + */ + public Builder clearDryerAirFlow() { + dryerAirFlow_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + + private java.util.List winderTension_ = java.util.Collections.emptyList(); + private void ensureWinderTensionIsMutable() { + if (!((bitField0_ & 0x00100000) == 0x00100000)) { + winderTension_ = new java.util.ArrayList(winderTension_); + bitField0_ |= 0x00100000; + } + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public java.util.List + getWinderTensionList() { + return java.util.Collections.unmodifiableList(winderTension_); + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public int getWinderTensionCount() { + return winderTension_.size(); + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public double getWinderTension(int index) { + return winderTension_.get(index); + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public Builder setWinderTension( + int index, double value) { + ensureWinderTensionIsMutable(); + winderTension_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public Builder addWinderTension(double value) { + ensureWinderTensionIsMutable(); + winderTension_.add(value); + onChanged(); + return this; + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public Builder addAllWinderTension( + java.lang.Iterable values) { + ensureWinderTensionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, winderTension_); + onChanged(); + return this; + } + /** + *
+       *Winder Tension (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double WinderTension = 21; + */ + public Builder clearWinderTension() { + winderTension_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + private java.util.List dispensersMotorsFrequency_ = + java.util.Collections.emptyList(); + private void ensureDispensersMotorsFrequencyIsMutable() { + if (!((bitField0_ & 0x00200000) == 0x00200000)) { + dispensersMotorsFrequency_ = new java.util.ArrayList(dispensersMotorsFrequency_); + bitField0_ |= 0x00200000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> dispensersMotorsFrequencyBuilder_; + + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public java.util.List getDispensersMotorsFrequencyList() { + if (dispensersMotorsFrequencyBuilder_ == null) { + return java.util.Collections.unmodifiableList(dispensersMotorsFrequency_); + } else { + return dispensersMotorsFrequencyBuilder_.getMessageList(); + } + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public int getDispensersMotorsFrequencyCount() { + if (dispensersMotorsFrequencyBuilder_ == null) { + return dispensersMotorsFrequency_.size(); + } else { + return dispensersMotorsFrequencyBuilder_.getCount(); + } + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersMotorsFrequency(int index) { + if (dispensersMotorsFrequencyBuilder_ == null) { + return dispensersMotorsFrequency_.get(index); + } else { + return dispensersMotorsFrequencyBuilder_.getMessage(index); + } + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder setDispensersMotorsFrequency( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersMotorsFrequencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.set(index, value); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder setDispensersMotorsFrequency( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersMotorsFrequencyBuilder_ == null) { + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.set(index, builderForValue.build()); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder addDispensersMotorsFrequency(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersMotorsFrequencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.add(value); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder addDispensersMotorsFrequency( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersMotorsFrequencyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.add(index, value); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder addDispensersMotorsFrequency( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersMotorsFrequencyBuilder_ == null) { + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.add(builderForValue.build()); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder addDispensersMotorsFrequency( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersMotorsFrequencyBuilder_ == null) { + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.add(index, builderForValue.build()); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder addAllDispensersMotorsFrequency( + java.lang.Iterable values) { + if (dispensersMotorsFrequencyBuilder_ == null) { + ensureDispensersMotorsFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispensersMotorsFrequency_); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder clearDispensersMotorsFrequency() { + if (dispensersMotorsFrequencyBuilder_ == null) { + dispensersMotorsFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.clear(); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public Builder removeDispensersMotorsFrequency(int index) { + if (dispensersMotorsFrequencyBuilder_ == null) { + ensureDispensersMotorsFrequencyIsMutable(); + dispensersMotorsFrequency_.remove(index); + onChanged(); + } else { + dispensersMotorsFrequencyBuilder_.remove(index); + } + return this; + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder getDispensersMotorsFrequencyBuilder( + int index) { + return getDispensersMotorsFrequencyFieldBuilder().getBuilder(index); + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersMotorsFrequencyOrBuilder( + int index) { + if (dispensersMotorsFrequencyBuilder_ == null) { + return dispensersMotorsFrequency_.get(index); } else { + return dispensersMotorsFrequencyBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public java.util.List + getDispensersMotorsFrequencyOrBuilderList() { + if (dispensersMotorsFrequencyBuilder_ != null) { + return dispensersMotorsFrequencyBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dispensersMotorsFrequency_); + } + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersMotorsFrequencyBuilder() { + return getDispensersMotorsFrequencyFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersMotorsFrequencyBuilder( + int index) { + return getDispensersMotorsFrequencyFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Motors (Min = 0, Max = 1080, PPF = 10) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersMotorsFrequency = 22; + */ + public java.util.List + getDispensersMotorsFrequencyBuilderList() { + return getDispensersMotorsFrequencyFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> + getDispensersMotorsFrequencyFieldBuilder() { + if (dispensersMotorsFrequencyBuilder_ == null) { + dispensersMotorsFrequencyBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder>( + dispensersMotorsFrequency_, + ((bitField0_ & 0x00200000) == 0x00200000), + getParentForChildren(), + isClean()); + dispensersMotorsFrequency_ = null; + } + return dispensersMotorsFrequencyBuilder_; + } + + private java.util.List dispensersAngularEncoders_ = + java.util.Collections.emptyList(); + private void ensureDispensersAngularEncodersIsMutable() { + if (!((bitField0_ & 0x00400000) == 0x00400000)) { + dispensersAngularEncoders_ = new java.util.ArrayList(dispensersAngularEncoders_); + bitField0_ |= 0x00400000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> dispensersAngularEncodersBuilder_; + + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public java.util.List getDispensersAngularEncodersList() { + if (dispensersAngularEncodersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dispensersAngularEncoders_); + } else { + return dispensersAngularEncodersBuilder_.getMessageList(); + } + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public int getDispensersAngularEncodersCount() { + if (dispensersAngularEncodersBuilder_ == null) { + return dispensersAngularEncoders_.size(); + } else { + return dispensersAngularEncodersBuilder_.getCount(); + } + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersAngularEncoders(int index) { + if (dispensersAngularEncodersBuilder_ == null) { + return dispensersAngularEncoders_.get(index); + } else { + return dispensersAngularEncodersBuilder_.getMessage(index); + } + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder setDispensersAngularEncoders( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersAngularEncodersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.set(index, value); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder setDispensersAngularEncoders( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersAngularEncodersBuilder_ == null) { + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.set(index, builderForValue.build()); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder addDispensersAngularEncoders(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersAngularEncodersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.add(value); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder addDispensersAngularEncoders( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersAngularEncodersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.add(index, value); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder addDispensersAngularEncoders( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersAngularEncodersBuilder_ == null) { + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.add(builderForValue.build()); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder addDispensersAngularEncoders( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersAngularEncodersBuilder_ == null) { + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.add(index, builderForValue.build()); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder addAllDispensersAngularEncoders( + java.lang.Iterable values) { + if (dispensersAngularEncodersBuilder_ == null) { + ensureDispensersAngularEncodersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispensersAngularEncoders_); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder clearDispensersAngularEncoders() { + if (dispensersAngularEncodersBuilder_ == null) { + dispensersAngularEncoders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.clear(); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public Builder removeDispensersAngularEncoders(int index) { + if (dispensersAngularEncodersBuilder_ == null) { + ensureDispensersAngularEncodersIsMutable(); + dispensersAngularEncoders_.remove(index); + onChanged(); + } else { + dispensersAngularEncodersBuilder_.remove(index); + } + return this; + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder getDispensersAngularEncodersBuilder( + int index) { + return getDispensersAngularEncodersFieldBuilder().getBuilder(index); + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersAngularEncodersOrBuilder( + int index) { + if (dispensersAngularEncodersBuilder_ == null) { + return dispensersAngularEncoders_.get(index); } else { + return dispensersAngularEncodersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public java.util.List + getDispensersAngularEncodersOrBuilderList() { + if (dispensersAngularEncodersBuilder_ != null) { + return dispensersAngularEncodersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dispensersAngularEncoders_); + } + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersAngularEncodersBuilder() { + return getDispensersAngularEncodersFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersAngularEncodersBuilder( + int index) { + return getDispensersAngularEncodersFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Angular Encoders (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersAngularEncoders = 23; + */ + public java.util.List + getDispensersAngularEncodersBuilderList() { + return getDispensersAngularEncodersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> + getDispensersAngularEncodersFieldBuilder() { + if (dispensersAngularEncodersBuilder_ == null) { + dispensersAngularEncodersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder>( + dispensersAngularEncoders_, + ((bitField0_ & 0x00400000) == 0x00400000), + getParentForChildren(), + isClean()); + dispensersAngularEncoders_ = null; + } + return dispensersAngularEncodersBuilder_; + } + + private java.util.List dispensersLinearPositions_ = + java.util.Collections.emptyList(); + private void ensureDispensersLinearPositionsIsMutable() { + if (!((bitField0_ & 0x00800000) == 0x00800000)) { + dispensersLinearPositions_ = new java.util.ArrayList(dispensersLinearPositions_); + bitField0_ |= 0x00800000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> dispensersLinearPositionsBuilder_; + + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public java.util.List getDispensersLinearPositionsList() { + if (dispensersLinearPositionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dispensersLinearPositions_); + } else { + return dispensersLinearPositionsBuilder_.getMessageList(); + } + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public int getDispensersLinearPositionsCount() { + if (dispensersLinearPositionsBuilder_ == null) { + return dispensersLinearPositions_.size(); + } else { + return dispensersLinearPositionsBuilder_.getCount(); + } + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersLinearPositions(int index) { + if (dispensersLinearPositionsBuilder_ == null) { + return dispensersLinearPositions_.get(index); + } else { + return dispensersLinearPositionsBuilder_.getMessage(index); + } + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder setDispensersLinearPositions( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersLinearPositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.set(index, value); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder setDispensersLinearPositions( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersLinearPositionsBuilder_ == null) { + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.set(index, builderForValue.build()); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder addDispensersLinearPositions(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersLinearPositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.add(value); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder addDispensersLinearPositions( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersLinearPositionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.add(index, value); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder addDispensersLinearPositions( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersLinearPositionsBuilder_ == null) { + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.add(builderForValue.build()); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder addDispensersLinearPositions( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersLinearPositionsBuilder_ == null) { + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.add(index, builderForValue.build()); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder addAllDispensersLinearPositions( + java.lang.Iterable values) { + if (dispensersLinearPositionsBuilder_ == null) { + ensureDispensersLinearPositionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispensersLinearPositions_); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder clearDispensersLinearPositions() { + if (dispensersLinearPositionsBuilder_ == null) { + dispensersLinearPositions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.clear(); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public Builder removeDispensersLinearPositions(int index) { + if (dispensersLinearPositionsBuilder_ == null) { + ensureDispensersLinearPositionsIsMutable(); + dispensersLinearPositions_.remove(index); + onChanged(); + } else { + dispensersLinearPositionsBuilder_.remove(index); + } + return this; + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder getDispensersLinearPositionsBuilder( + int index) { + return getDispensersLinearPositionsFieldBuilder().getBuilder(index); + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersLinearPositionsOrBuilder( + int index) { + if (dispensersLinearPositionsBuilder_ == null) { + return dispensersLinearPositions_.get(index); } else { + return dispensersLinearPositionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public java.util.List + getDispensersLinearPositionsOrBuilderList() { + if (dispensersLinearPositionsBuilder_ != null) { + return dispensersLinearPositionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dispensersLinearPositions_); + } + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersLinearPositionsBuilder() { + return getDispensersLinearPositionsFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersLinearPositionsBuilder( + int index) { + return getDispensersLinearPositionsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Linear Positions (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersLinearPositions = 24; + */ + public java.util.List + getDispensersLinearPositionsBuilderList() { + return getDispensersLinearPositionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> + getDispensersLinearPositionsFieldBuilder() { + if (dispensersLinearPositionsBuilder_ == null) { + dispensersLinearPositionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder>( + dispensersLinearPositions_, + ((bitField0_ & 0x00800000) == 0x00800000), + getParentForChildren(), + isClean()); + dispensersLinearPositions_ = null; + } + return dispensersLinearPositionsBuilder_; + } + + private java.util.List dispensersPressure_ = + java.util.Collections.emptyList(); + private void ensureDispensersPressureIsMutable() { + if (!((bitField0_ & 0x01000000) == 0x01000000)) { + dispensersPressure_ = new java.util.ArrayList(dispensersPressure_); + bitField0_ |= 0x01000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> dispensersPressureBuilder_; + + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public java.util.List getDispensersPressureList() { + if (dispensersPressureBuilder_ == null) { + return java.util.Collections.unmodifiableList(dispensersPressure_); + } else { + return dispensersPressureBuilder_.getMessageList(); + } + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public int getDispensersPressureCount() { + if (dispensersPressureBuilder_ == null) { + return dispensersPressure_.size(); + } else { + return dispensersPressureBuilder_.getCount(); + } + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDispensersPressure(int index) { + if (dispensersPressureBuilder_ == null) { + return dispensersPressure_.get(index); + } else { + return dispensersPressureBuilder_.getMessage(index); + } + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder setDispensersPressure( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersPressureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersPressureIsMutable(); + dispensersPressure_.set(index, value); + onChanged(); + } else { + dispensersPressureBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder setDispensersPressure( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersPressureBuilder_ == null) { + ensureDispensersPressureIsMutable(); + dispensersPressure_.set(index, builderForValue.build()); + onChanged(); + } else { + dispensersPressureBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder addDispensersPressure(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersPressureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersPressureIsMutable(); + dispensersPressure_.add(value); + onChanged(); + } else { + dispensersPressureBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder addDispensersPressure( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray value) { + if (dispensersPressureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersPressureIsMutable(); + dispensersPressure_.add(index, value); + onChanged(); + } else { + dispensersPressureBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder addDispensersPressure( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersPressureBuilder_ == null) { + ensureDispensersPressureIsMutable(); + dispensersPressure_.add(builderForValue.build()); + onChanged(); + } else { + dispensersPressureBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder addDispensersPressure( + int index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder builderForValue) { + if (dispensersPressureBuilder_ == null) { + ensureDispensersPressureIsMutable(); + dispensersPressure_.add(index, builderForValue.build()); + onChanged(); + } else { + dispensersPressureBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder addAllDispensersPressure( + java.lang.Iterable values) { + if (dispensersPressureBuilder_ == null) { + ensureDispensersPressureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispensersPressure_); + onChanged(); + } else { + dispensersPressureBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder clearDispensersPressure() { + if (dispensersPressureBuilder_ == null) { + dispensersPressure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + } else { + dispensersPressureBuilder_.clear(); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public Builder removeDispensersPressure(int index) { + if (dispensersPressureBuilder_ == null) { + ensureDispensersPressureIsMutable(); + dispensersPressure_.remove(index); + onChanged(); + } else { + dispensersPressureBuilder_.remove(index); + } + return this; + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder getDispensersPressureBuilder( + int index) { + return getDispensersPressureFieldBuilder().getBuilder(index); + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder getDispensersPressureOrBuilder( + int index) { + if (dispensersPressureBuilder_ == null) { + return dispensersPressure_.get(index); } else { + return dispensersPressureBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public java.util.List + getDispensersPressureOrBuilderList() { + if (dispensersPressureBuilder_ != null) { + return dispensersPressureBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dispensersPressure_); + } + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersPressureBuilder() { + return getDispensersPressureFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder addDispensersPressureBuilder( + int index) { + return getDispensersPressureFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()); + } + /** + *
+       *Dispensers Pressure (Min = 0, Max = 100, PPF = 1) Channel Count = 8
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DoubleArray DispensersPressure = 25; + */ + public java.util.List + getDispensersPressureBuilderList() { + return getDispensersPressureFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder> + getDispensersPressureFieldBuilder() { + if (dispensersPressureBuilder_ == null) { + dispensersPressureBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder>( + dispensersPressure_, + ((bitField0_ & 0x01000000) == 0x01000000), + getParentForChildren(), + isClean()); + dispensersPressure_ = null; + } + return dispensersPressureBuilder_; + } + + private java.util.List midTankPressure_ = java.util.Collections.emptyList(); + private void ensureMidTankPressureIsMutable() { + if (!((bitField0_ & 0x02000000) == 0x02000000)) { + midTankPressure_ = new java.util.ArrayList(midTankPressure_); + bitField0_ |= 0x02000000; + } + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public java.util.List + getMidTankPressureList() { + return java.util.Collections.unmodifiableList(midTankPressure_); + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public int getMidTankPressureCount() { + return midTankPressure_.size(); + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public double getMidTankPressure(int index) { + return midTankPressure_.get(index); + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public Builder setMidTankPressure( + int index, double value) { + ensureMidTankPressureIsMutable(); + midTankPressure_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public Builder addMidTankPressure(double value) { + ensureMidTankPressureIsMutable(); + midTankPressure_.add(value); + onChanged(); + return this; + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public Builder addAllMidTankPressure( + java.lang.Iterable values) { + ensureMidTankPressureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, midTankPressure_); + onChanged(); + return this; + } + /** + *
+       *Mid Tank Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double MidTankPressure = 26; + */ + public Builder clearMidTankPressure() { + midTankPressure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + + private java.util.List filterDeltaPressure_ = java.util.Collections.emptyList(); + private void ensureFilterDeltaPressureIsMutable() { + if (!((bitField0_ & 0x04000000) == 0x04000000)) { + filterDeltaPressure_ = new java.util.ArrayList(filterDeltaPressure_); + bitField0_ |= 0x04000000; + } + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public java.util.List + getFilterDeltaPressureList() { + return java.util.Collections.unmodifiableList(filterDeltaPressure_); + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public int getFilterDeltaPressureCount() { + return filterDeltaPressure_.size(); + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public double getFilterDeltaPressure(int index) { + return filterDeltaPressure_.get(index); + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public Builder setFilterDeltaPressure( + int index, double value) { + ensureFilterDeltaPressureIsMutable(); + filterDeltaPressure_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public Builder addFilterDeltaPressure(double value) { + ensureFilterDeltaPressureIsMutable(); + filterDeltaPressure_.add(value); + onChanged(); + return this; + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public Builder addAllFilterDeltaPressure( + java.lang.Iterable values) { + ensureFilterDeltaPressureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, filterDeltaPressure_); + onChanged(); + return this; + } + /** + *
+       *Filter Delta Pressure (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double FilterDeltaPressure = 27; + */ + public Builder clearFilterDeltaPressure() { + filterDeltaPressure_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x04000000); + onChanged(); + return this; + } + + private java.util.List chillerTemperature_ = java.util.Collections.emptyList(); + private void ensureChillerTemperatureIsMutable() { + if (!((bitField0_ & 0x08000000) == 0x08000000)) { + chillerTemperature_ = new java.util.ArrayList(chillerTemperature_); + bitField0_ |= 0x08000000; + } + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public java.util.List + getChillerTemperatureList() { + return java.util.Collections.unmodifiableList(chillerTemperature_); + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public int getChillerTemperatureCount() { + return chillerTemperature_.size(); + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public double getChillerTemperature(int index) { + return chillerTemperature_.get(index); + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public Builder setChillerTemperature( + int index, double value) { + ensureChillerTemperatureIsMutable(); + chillerTemperature_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public Builder addChillerTemperature(double value) { + ensureChillerTemperatureIsMutable(); + chillerTemperature_.add(value); + onChanged(); + return this; + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public Builder addAllChillerTemperature( + java.lang.Iterable values) { + ensureChillerTemperatureIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, chillerTemperature_); + onChanged(); + return this; + } + /** + *
+       *Chiller Temperature (Min = 0, Max = 100, PPF = 1)
+       * 
+ * + * repeated double ChillerTemperature = 28; + */ + public Builder clearChillerTemperature() { + chillerTemperature_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + return this; + } + + private java.util.List dispenser1MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser1MotorFrequencyIsMutable() { + if (!((bitField0_ & 0x10000000) == 0x10000000)) { + dispenser1MotorFrequency_ = new java.util.ArrayList(dispenser1MotorFrequency_); + bitField0_ |= 0x10000000; + } + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public java.util.List + getDispenser1MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser1MotorFrequency_); + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public int getDispenser1MotorFrequencyCount() { + return dispenser1MotorFrequency_.size(); + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public double getDispenser1MotorFrequency(int index) { + return dispenser1MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public Builder setDispenser1MotorFrequency( + int index, double value) { + ensureDispenser1MotorFrequencyIsMutable(); + dispenser1MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public Builder addDispenser1MotorFrequency(double value) { + ensureDispenser1MotorFrequencyIsMutable(); + dispenser1MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public Builder addAllDispenser1MotorFrequency( + java.lang.Iterable values) { + ensureDispenser1MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser1MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 1 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser1MotorFrequency = 29; + */ + public Builder clearDispenser1MotorFrequency() { + dispenser1MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x10000000); + onChanged(); + return this; + } + + private java.util.List dispenser2MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser2MotorFrequencyIsMutable() { + if (!((bitField0_ & 0x20000000) == 0x20000000)) { + dispenser2MotorFrequency_ = new java.util.ArrayList(dispenser2MotorFrequency_); + bitField0_ |= 0x20000000; + } + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public java.util.List + getDispenser2MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser2MotorFrequency_); + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public int getDispenser2MotorFrequencyCount() { + return dispenser2MotorFrequency_.size(); + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public double getDispenser2MotorFrequency(int index) { + return dispenser2MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public Builder setDispenser2MotorFrequency( + int index, double value) { + ensureDispenser2MotorFrequencyIsMutable(); + dispenser2MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public Builder addDispenser2MotorFrequency(double value) { + ensureDispenser2MotorFrequencyIsMutable(); + dispenser2MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public Builder addAllDispenser2MotorFrequency( + java.lang.Iterable values) { + ensureDispenser2MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser2MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 2 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser2MotorFrequency = 30; + */ + public Builder clearDispenser2MotorFrequency() { + dispenser2MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x20000000); + onChanged(); + return this; + } + + private java.util.List dispenser3MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser3MotorFrequencyIsMutable() { + if (!((bitField0_ & 0x40000000) == 0x40000000)) { + dispenser3MotorFrequency_ = new java.util.ArrayList(dispenser3MotorFrequency_); + bitField0_ |= 0x40000000; + } + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public java.util.List + getDispenser3MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser3MotorFrequency_); + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public int getDispenser3MotorFrequencyCount() { + return dispenser3MotorFrequency_.size(); + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public double getDispenser3MotorFrequency(int index) { + return dispenser3MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public Builder setDispenser3MotorFrequency( + int index, double value) { + ensureDispenser3MotorFrequencyIsMutable(); + dispenser3MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public Builder addDispenser3MotorFrequency(double value) { + ensureDispenser3MotorFrequencyIsMutable(); + dispenser3MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public Builder addAllDispenser3MotorFrequency( + java.lang.Iterable values) { + ensureDispenser3MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser3MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 3 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser3MotorFrequency = 31; + */ + public Builder clearDispenser3MotorFrequency() { + dispenser3MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x40000000); + onChanged(); + return this; + } + + private java.util.List dispenser4MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser4MotorFrequencyIsMutable() { + if (!((bitField0_ & 0x80000000) == 0x80000000)) { + dispenser4MotorFrequency_ = new java.util.ArrayList(dispenser4MotorFrequency_); + bitField0_ |= 0x80000000; + } + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public java.util.List + getDispenser4MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser4MotorFrequency_); + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public int getDispenser4MotorFrequencyCount() { + return dispenser4MotorFrequency_.size(); + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public double getDispenser4MotorFrequency(int index) { + return dispenser4MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public Builder setDispenser4MotorFrequency( + int index, double value) { + ensureDispenser4MotorFrequencyIsMutable(); + dispenser4MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public Builder addDispenser4MotorFrequency(double value) { + ensureDispenser4MotorFrequencyIsMutable(); + dispenser4MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public Builder addAllDispenser4MotorFrequency( + java.lang.Iterable values) { + ensureDispenser4MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser4MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 4 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser4MotorFrequency = 32; + */ + public Builder clearDispenser4MotorFrequency() { + dispenser4MotorFrequency_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x80000000); + onChanged(); + return this; + } + + private java.util.List dispenser5MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser5MotorFrequencyIsMutable() { + if (!((bitField1_ & 0x00000001) == 0x00000001)) { + dispenser5MotorFrequency_ = new java.util.ArrayList(dispenser5MotorFrequency_); + bitField1_ |= 0x00000001; + } + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public java.util.List + getDispenser5MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser5MotorFrequency_); + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public int getDispenser5MotorFrequencyCount() { + return dispenser5MotorFrequency_.size(); + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public double getDispenser5MotorFrequency(int index) { + return dispenser5MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public Builder setDispenser5MotorFrequency( + int index, double value) { + ensureDispenser5MotorFrequencyIsMutable(); + dispenser5MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public Builder addDispenser5MotorFrequency(double value) { + ensureDispenser5MotorFrequencyIsMutable(); + dispenser5MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public Builder addAllDispenser5MotorFrequency( + java.lang.Iterable values) { + ensureDispenser5MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser5MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 5 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser5MotorFrequency = 33; + */ + public Builder clearDispenser5MotorFrequency() { + dispenser5MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000001); + onChanged(); + return this; + } + + private java.util.List dispenser6MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser6MotorFrequencyIsMutable() { + if (!((bitField1_ & 0x00000002) == 0x00000002)) { + dispenser6MotorFrequency_ = new java.util.ArrayList(dispenser6MotorFrequency_); + bitField1_ |= 0x00000002; + } + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public java.util.List + getDispenser6MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser6MotorFrequency_); + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public int getDispenser6MotorFrequencyCount() { + return dispenser6MotorFrequency_.size(); + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public double getDispenser6MotorFrequency(int index) { + return dispenser6MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public Builder setDispenser6MotorFrequency( + int index, double value) { + ensureDispenser6MotorFrequencyIsMutable(); + dispenser6MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public Builder addDispenser6MotorFrequency(double value) { + ensureDispenser6MotorFrequencyIsMutable(); + dispenser6MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public Builder addAllDispenser6MotorFrequency( + java.lang.Iterable values) { + ensureDispenser6MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser6MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 6 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser6MotorFrequency = 34; + */ + public Builder clearDispenser6MotorFrequency() { + dispenser6MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000002); + onChanged(); + return this; + } + + private java.util.List dispenser7MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser7MotorFrequencyIsMutable() { + if (!((bitField1_ & 0x00000004) == 0x00000004)) { + dispenser7MotorFrequency_ = new java.util.ArrayList(dispenser7MotorFrequency_); + bitField1_ |= 0x00000004; + } + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public java.util.List + getDispenser7MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser7MotorFrequency_); + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public int getDispenser7MotorFrequencyCount() { + return dispenser7MotorFrequency_.size(); + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public double getDispenser7MotorFrequency(int index) { + return dispenser7MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public Builder setDispenser7MotorFrequency( + int index, double value) { + ensureDispenser7MotorFrequencyIsMutable(); + dispenser7MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public Builder addDispenser7MotorFrequency(double value) { + ensureDispenser7MotorFrequencyIsMutable(); + dispenser7MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public Builder addAllDispenser7MotorFrequency( + java.lang.Iterable values) { + ensureDispenser7MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser7MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 7 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser7MotorFrequency = 35; + */ + public Builder clearDispenser7MotorFrequency() { + dispenser7MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000004); + onChanged(); + return this; + } + + private java.util.List dispenser8MotorFrequency_ = java.util.Collections.emptyList(); + private void ensureDispenser8MotorFrequencyIsMutable() { + if (!((bitField1_ & 0x00000008) == 0x00000008)) { + dispenser8MotorFrequency_ = new java.util.ArrayList(dispenser8MotorFrequency_); + bitField1_ |= 0x00000008; + } + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public java.util.List + getDispenser8MotorFrequencyList() { + return java.util.Collections.unmodifiableList(dispenser8MotorFrequency_); + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public int getDispenser8MotorFrequencyCount() { + return dispenser8MotorFrequency_.size(); + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public double getDispenser8MotorFrequency(int index) { + return dispenser8MotorFrequency_.get(index); + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public Builder setDispenser8MotorFrequency( + int index, double value) { + ensureDispenser8MotorFrequencyIsMutable(); + dispenser8MotorFrequency_.set(index, value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public Builder addDispenser8MotorFrequency(double value) { + ensureDispenser8MotorFrequencyIsMutable(); + dispenser8MotorFrequency_.add(value); + onChanged(); + return this; + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public Builder addAllDispenser8MotorFrequency( + java.lang.Iterable values) { + ensureDispenser8MotorFrequencyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispenser8MotorFrequency_); + onChanged(); + return this; + } + /** + *
+       *Dispenser 8 Motor Frequency (Min = 0, Max = 1080, PPF = 10)
+       * 
+ * + * repeated double Dispenser8MotorFrequency = 36; + */ + public Builder clearDispenser8MotorFrequency() { + dispenser8MotorFrequency_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000008); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DiagnosticsMonitors) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DiagnosticsMonitors) + private static final com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors(); + } + + public static com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DiagnosticsMonitors parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DiagnosticsMonitors(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_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\031DiagnosticsMonitors.proto\022\025Tango.PMR.D" + + "iagnostics\032\021DoubleArray.proto\"\224\t\n\023Diagno" + + "sticsMonitors\022\024\n\014Dancer1Angle\030\001 \003(\001\022\024\n\014D" + + "ancer2Angle\030\002 \003(\001\022\024\n\014Dancer3Angle\030\003 \003(\001\022" + + "\034\n\024FeederMotorFrequency\030\004 \003(\001\022\022\n\nDryerMo" + + "tor\030\005 \003(\001\022\023\n\013PollerMotor\030\006 \003(\001\022\023\n\013Winder" + + "Motor\030\007 \003(\001\022\022\n\nScrewMotor\030\010 \003(\001\022\023\n\013Threa" + + "dSpeed\030\t \003(\001\022\030\n\020MixerTemperature\030\n \003(\001\022\034" + + "\n\024HeadZone1Temperature\030\013 \003(\001\022\034\n\024HeadZone" + + "2Temperature\030\014 \003(\001\022\034\n\024HeadZone3Temperatu", + "re\030\r \003(\001\022\023\n\013HeadAirFlow\030\016 \003(\001\022\025\n\rFeederT" + + "ension\030\017 \003(\001\022\025\n\rPullerTension\030\020 \003(\001\022\035\n\025D" + + "ryerZone1Temperature\030\021 \003(\001\022\035\n\025DryerZone2" + + "Temperature\030\022 \003(\001\022\035\n\025DryerZone3Temperatu" + + "re\030\023 \003(\001\022\024\n\014DryerAirFlow\030\024 \003(\001\022\025\n\rWinder" + + "Tension\030\025 \003(\001\022E\n\031DispensersMotorsFrequen" + + "cy\030\026 \003(\0132\".Tango.PMR.Diagnostics.DoubleA" + + "rray\022E\n\031DispensersAngularEncoders\030\027 \003(\0132" + + "\".Tango.PMR.Diagnostics.DoubleArray\022E\n\031D" + + "ispensersLinearPositions\030\030 \003(\0132\".Tango.P", + "MR.Diagnostics.DoubleArray\022>\n\022Dispensers" + + "Pressure\030\031 \003(\0132\".Tango.PMR.Diagnostics.D" + + "oubleArray\022\027\n\017MidTankPressure\030\032 \003(\001\022\033\n\023F" + + "ilterDeltaPressure\030\033 \003(\001\022\032\n\022ChillerTempe" + + "rature\030\034 \003(\001\022 \n\030Dispenser1MotorFrequency" + + "\030\035 \003(\001\022 \n\030Dispenser2MotorFrequency\030\036 \003(\001" + + "\022 \n\030Dispenser3MotorFrequency\030\037 \003(\001\022 \n\030Di" + + "spenser4MotorFrequency\030 \003(\001\022 \n\030Dispense" + + "r5MotorFrequency\030! \003(\001\022 \n\030Dispenser6Moto" + + "rFrequency\030\" \003(\001\022 \n\030Dispenser7MotorFrequ", + "ency\030# \003(\001\022 \n\030Dispenser8MotorFrequency\030$" + + " \003(\001B!\n\037com.twine.tango.pmr.diagnosticsb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DiagnosticsMonitors_descriptor, + new java.lang.String[] { "Dancer1Angle", "Dancer2Angle", "Dancer3Angle", "FeederMotorFrequency", "DryerMotor", "PollerMotor", "WinderMotor", "ScrewMotor", "ThreadSpeed", "MixerTemperature", "HeadZone1Temperature", "HeadZone2Temperature", "HeadZone3Temperature", "HeadAirFlow", "FeederTension", "PullerTension", "DryerZone1Temperature", "DryerZone2Temperature", "DryerZone3Temperature", "DryerAirFlow", "WinderTension", "DispensersMotorsFrequency", "DispensersAngularEncoders", "DispensersLinearPositions", "DispensersPressure", "MidTankPressure", "FilterDeltaPressure", "ChillerTemperature", "Dispenser1MotorFrequency", "Dispenser2MotorFrequency", "Dispenser3MotorFrequency", "Dispenser4MotorFrequency", "Dispenser5MotorFrequency", "Dispenser6MotorFrequency", "Dispenser7MotorFrequency", "Dispenser8MotorFrequency", }); + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DigitalPinOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DigitalPinOuterClass.java new file mode 100644 index 000000000..1b8f966c7 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DigitalPinOuterClass.java @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DigitalPin.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DigitalPinOuterClass { + private DigitalPinOuterClass() {} + 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 DigitalPinOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DigitalPin) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Port = 1; + */ + int getPort(); + + /** + * bool Value = 2; + */ + boolean getValue(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DigitalPin} + */ + public static final class DigitalPin extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DigitalPin) + DigitalPinOrBuilder { + private static final long serialVersionUID = 0L; + // Use DigitalPin.newBuilder() to construct. + private DigitalPin(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DigitalPin() { + port_ = 0; + value_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DigitalPin( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + port_ = input.readInt32(); + break; + } + case 16: { + + value_ = input.readBool(); + 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 com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.internal_static_Tango_PMR_Diagnostics_DigitalPin_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.internal_static_Tango_PMR_Diagnostics_DigitalPin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.class, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder.class); + } + + public static final int PORT_FIELD_NUMBER = 1; + private int port_; + /** + * int32 Port = 1; + */ + public int getPort() { + return port_; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private boolean value_; + /** + * bool Value = 2; + */ + public boolean getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (port_ != 0) { + output.writeInt32(1, port_); + } + if (value_ != false) { + output.writeBool(2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, port_); + } + if (value_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, value_); + } + 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 com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin other = (com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin) obj; + + boolean result = true; + result = result && (getPort() + == other.getPort()); + result = result && (getValue() + == other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValue()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin 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 com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin 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 com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DigitalPin} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DigitalPin) + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.internal_static_Tango_PMR_Diagnostics_DigitalPin_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.internal_static_Tango_PMR_Diagnostics_DigitalPin_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.class, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + port_ = 0; + + value_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.internal_static_Tango_PMR_Diagnostics_DigitalPin_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin build() { + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin buildPartial() { + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin result = new com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin(this); + result.port_ = port_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin other) { + if (other == com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.getDefaultInstance()) return this; + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.getValue() != false) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int port_ ; + /** + * int32 Port = 1; + */ + public int getPort() { + return port_; + } + /** + * int32 Port = 1; + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * int32 Port = 1; + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private boolean value_ ; + /** + * bool Value = 2; + */ + public boolean getValue() { + return value_; + } + /** + * bool Value = 2; + */ + public Builder setValue(boolean value) { + + value_ = value; + onChanged(); + return this; + } + /** + * bool Value = 2; + */ + public Builder clearValue() { + + value_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DigitalPin) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DigitalPin) + private static final com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin(); + } + + public static com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DigitalPin parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DigitalPin(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DigitalPin_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DigitalPin_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\020DigitalPin.proto\022\025Tango.PMR.Diagnostic" + + "s\")\n\nDigitalPin\022\014\n\004Port\030\001 \001(\005\022\r\n\005Value\030\002" + + " \001(\010B!\n\037com.twine.tango.pmr.diagnosticsb" + + "\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DigitalPin_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DigitalPin_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DigitalPin_descriptor, + new java.lang.String[] { "Port", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingRequestOuterClass.java new file mode 100644 index 000000000..76115e396 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingRequestOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserAbortHomingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserAbortHomingRequestOuterClass { + private DispenserAbortHomingRequestOuterClass() {} + 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 DispenserAbortHomingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserAbortHomingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 1; + */ + int getCode(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserAbortHomingRequest} + */ + public static final class DispenserAbortHomingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserAbortHomingRequest) + DispenserAbortHomingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserAbortHomingRequest.newBuilder() to construct. + private DispenserAbortHomingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserAbortHomingRequest() { + code_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserAbortHomingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + code_ = input.readInt32(); + 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.class, com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest other = (com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserAbortHomingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserAbortHomingRequest) + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.class, com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest build() { + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest result = new com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 1; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserAbortHomingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserAbortHomingRequest) + private static final com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserAbortHomingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserAbortHomingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingRequestOuterClass.DispenserAbortHomingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_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!DispenserAbortHomingRequest.proto\022\025Tan" + + "go.PMR.Diagnostics\"+\n\033DispenserAbortHomi" + + "ngRequest\022\014\n\004Code\030\001 \001(\005B!\n\037com.twine.tan" + + "go.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingRequest_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingResponseOuterClass.java new file mode 100644 index 000000000..33244621a --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortHomingResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserAbortHomingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserAbortHomingResponseOuterClass { + private DispenserAbortHomingResponseOuterClass() {} + 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 DispenserAbortHomingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserAbortHomingResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserAbortHomingResponse} + */ + public static final class DispenserAbortHomingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserAbortHomingResponse) + DispenserAbortHomingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserAbortHomingResponse.newBuilder() to construct. + private DispenserAbortHomingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserAbortHomingResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserAbortHomingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.class, com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse other = (com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse 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 com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserAbortHomingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserAbortHomingResponse) + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.class, com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse build() { + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse result = new com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserAbortHomingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserAbortHomingResponse) + private static final com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserAbortHomingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserAbortHomingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortHomingResponseOuterClass.DispenserAbortHomingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_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\"DispenserAbortHomingResponse.proto\022\025Ta" + + "ngo.PMR.Diagnostics\"\036\n\034DispenserAbortHom" + + "ingResponseB!\n\037com.twine.tango.pmr.diagn" + + "osticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserAbortHomingResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingRequestOuterClass.java new file mode 100644 index 000000000..d9b6e838d --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingRequestOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserAbortJoggingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserAbortJoggingRequestOuterClass { + private DispenserAbortJoggingRequestOuterClass() {} + 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 DispenserAbortJoggingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserAbortJoggingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 2; + */ + int getCode(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserAbortJoggingRequest} + */ + public static final class DispenserAbortJoggingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserAbortJoggingRequest) + DispenserAbortJoggingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserAbortJoggingRequest.newBuilder() to construct. + private DispenserAbortJoggingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserAbortJoggingRequest() { + code_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserAbortJoggingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 16: { + + code_ = input.readInt32(); + 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.class, com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(2, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, code_); + } + 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest other = (com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserAbortJoggingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserAbortJoggingRequest) + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.class, com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest build() { + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest result = new com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 2; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 2; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserAbortJoggingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserAbortJoggingRequest) + private static final com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserAbortJoggingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserAbortJoggingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingRequestOuterClass.DispenserAbortJoggingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_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\"DispenserAbortJoggingRequest.proto\022\025Ta" + + "ngo.PMR.Diagnostics\",\n\034DispenserAbortJog" + + "gingRequest\022\014\n\004Code\030\002 \001(\005B!\n\037com.twine.t" + + "ango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingRequest_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingResponseOuterClass.java new file mode 100644 index 000000000..1e1276da4 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserAbortJoggingResponseOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserAbortJoggingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserAbortJoggingResponseOuterClass { + private DispenserAbortJoggingResponseOuterClass() {} + 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 DispenserAbortJoggingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserAbortJoggingResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 2; + */ + int getCode(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserAbortJoggingResponse} + */ + public static final class DispenserAbortJoggingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserAbortJoggingResponse) + DispenserAbortJoggingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserAbortJoggingResponse.newBuilder() to construct. + private DispenserAbortJoggingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserAbortJoggingResponse() { + code_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserAbortJoggingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 16: { + + code_ = input.readInt32(); + 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.class, com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(2, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, code_); + } + 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse other = (com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse 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 com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserAbortJoggingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserAbortJoggingResponse) + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.class, com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse build() { + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse result = new com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 2; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 2; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserAbortJoggingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserAbortJoggingResponse) + private static final com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserAbortJoggingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserAbortJoggingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserAbortJoggingResponseOuterClass.DispenserAbortJoggingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_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#DispenserAbortJoggingResponse.proto\022\025T" + + "ango.PMR.Diagnostics\"-\n\035DispenserAbortJo" + + "ggingResponse\022\014\n\004Code\030\002 \001(\005B!\n\037com.twine" + + ".tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserAbortJoggingResponse_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingRequestOuterClass.java new file mode 100644 index 000000000..8c1c69986 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingRequestOuterClass.java @@ -0,0 +1,571 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserHomingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserHomingRequestOuterClass { + private DispenserHomingRequestOuterClass() {} + 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 DispenserHomingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserHomingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 1; + */ + int getCode(); + + /** + * double Speed = 2; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserHomingRequest} + */ + public static final class DispenserHomingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserHomingRequest) + DispenserHomingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserHomingRequest.newBuilder() to construct. + private DispenserHomingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserHomingRequest() { + code_ = 0; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserHomingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + code_ = input.readInt32(); + break; + } + case 17: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.class, com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + + public static final int SPEED_FIELD_NUMBER = 2; + private double speed_; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + if (speed_ != 0D) { + output.writeDouble(2, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, speed_); + } + 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 com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest other = (com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest 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 com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest 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 com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserHomingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserHomingRequest) + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.class, com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest build() { + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest result = new com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest(this); + result.code_ = code_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 1; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 2; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 2; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserHomingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserHomingRequest) + private static final com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserHomingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserHomingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingRequestOuterClass.DispenserHomingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_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\034DispenserHomingRequest.proto\022\025Tango.PM" + + "R.Diagnostics\"5\n\026DispenserHomingRequest\022" + + "\014\n\004Code\030\001 \001(\005\022\r\n\005Speed\030\002 \001(\001B!\n\037com.twin" + + "e.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserHomingRequest_descriptor, + new java.lang.String[] { "Code", "Speed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingResponseOuterClass.java new file mode 100644 index 000000000..044efe996 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserHomingResponseOuterClass.java @@ -0,0 +1,575 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserHomingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserHomingResponseOuterClass { + private DispenserHomingResponseOuterClass() {} + 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 DispenserHomingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserHomingResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * double Progress = 1; + */ + double getProgress(); + + /** + * double MaxProgress = 2; + */ + double getMaxProgress(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserHomingResponse} + */ + public static final class DispenserHomingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserHomingResponse) + DispenserHomingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserHomingResponse.newBuilder() to construct. + private DispenserHomingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserHomingResponse() { + progress_ = 0D; + maxProgress_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserHomingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + progress_ = input.readDouble(); + break; + } + case 17: { + + maxProgress_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.class, com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.Builder.class); + } + + public static final int PROGRESS_FIELD_NUMBER = 1; + private double progress_; + /** + * double Progress = 1; + */ + public double getProgress() { + return progress_; + } + + public static final int MAXPROGRESS_FIELD_NUMBER = 2; + private double maxProgress_; + /** + * double MaxProgress = 2; + */ + public double getMaxProgress() { + return maxProgress_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (progress_ != 0D) { + output.writeDouble(1, progress_); + } + if (maxProgress_ != 0D) { + output.writeDouble(2, maxProgress_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (progress_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, progress_); + } + if (maxProgress_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, maxProgress_); + } + 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 com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse other = (com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getProgress()) + == java.lang.Double.doubleToLongBits( + other.getProgress())); + result = result && ( + java.lang.Double.doubleToLongBits(getMaxProgress()) + == java.lang.Double.doubleToLongBits( + other.getMaxProgress())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getProgress())); + hash = (37 * hash) + MAXPROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxProgress())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse 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 com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse 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 com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserHomingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserHomingResponse) + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.class, com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + progress_ = 0D; + + maxProgress_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse build() { + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse result = new com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse(this); + result.progress_ = progress_; + result.maxProgress_ = maxProgress_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse.getDefaultInstance()) return this; + if (other.getProgress() != 0D) { + setProgress(other.getProgress()); + } + if (other.getMaxProgress() != 0D) { + setMaxProgress(other.getMaxProgress()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double progress_ ; + /** + * double Progress = 1; + */ + public double getProgress() { + return progress_; + } + /** + * double Progress = 1; + */ + public Builder setProgress(double value) { + + progress_ = value; + onChanged(); + return this; + } + /** + * double Progress = 1; + */ + public Builder clearProgress() { + + progress_ = 0D; + onChanged(); + return this; + } + + private double maxProgress_ ; + /** + * double MaxProgress = 2; + */ + public double getMaxProgress() { + return maxProgress_; + } + /** + * double MaxProgress = 2; + */ + public Builder setMaxProgress(double value) { + + maxProgress_ = value; + onChanged(); + return this; + } + /** + * double MaxProgress = 2; + */ + public Builder clearMaxProgress() { + + maxProgress_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserHomingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserHomingResponse) + private static final com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserHomingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserHomingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserHomingResponseOuterClass.DispenserHomingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_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\035DispenserHomingResponse.proto\022\025Tango.P" + + "MR.Diagnostics\"@\n\027DispenserHomingRespons" + + "e\022\020\n\010Progress\030\001 \001(\001\022\023\n\013MaxProgress\030\002 \001(\001" + + "B!\n\037com.twine.tango.pmr.diagnosticsb\006pro" + + "to3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserHomingResponse_descriptor, + new java.lang.String[] { "Progress", "MaxProgress", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingRequestOuterClass.java new file mode 100644 index 000000000..c12b8c6b4 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingRequestOuterClass.java @@ -0,0 +1,667 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserJoggingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserJoggingRequestOuterClass { + private DispenserJoggingRequestOuterClass() {} + 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 DispenserJoggingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserJoggingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + int getDirectionValue(); + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection(); + + /** + * int32 Code = 2; + */ + int getCode(); + + /** + * double Speed = 3; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserJoggingRequest} + */ + public static final class DispenserJoggingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserJoggingRequest) + DispenserJoggingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserJoggingRequest.newBuilder() to construct. + private DispenserJoggingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserJoggingRequest() { + direction_ = 0; + code_ = 0; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserJoggingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + case 16: { + + code_ = input.readInt32(); + break; + } + case 25: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.class, com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.Builder.class); + } + + public static final int DIRECTION_FIELD_NUMBER = 1; + private int direction_; + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public int getDirectionValue() { + return direction_; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection() { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection result = com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.valueOf(direction_); + return result == null ? com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.UNRECOGNIZED : result; + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + + public static final int SPEED_FIELD_NUMBER = 3; + private double speed_; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (direction_ != com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.Forward.getNumber()) { + output.writeEnum(1, direction_); + } + if (code_ != 0) { + output.writeInt32(2, code_); + } + if (speed_ != 0D) { + output.writeDouble(3, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (direction_ != com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.Forward.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, direction_); + } + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, code_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, speed_); + } + 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 com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest other = (com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest) obj; + + boolean result = true; + result = result && direction_ == other.direction_; + result = result && (getCode() + == other.getCode()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest 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 com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest 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 com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserJoggingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserJoggingRequest) + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.class, com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + direction_ = 0; + + code_ = 0; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest build() { + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest result = new com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest(this); + result.direction_ = direction_; + result.code_ = code_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest.getDefaultInstance()) return this; + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int direction_ = 0; + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public int getDirectionValue() { + return direction_; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection() { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection result = com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.valueOf(direction_); + return result == null ? com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder setDirection(com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + private int code_ ; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 2; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 2; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 3; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 3; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserJoggingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserJoggingRequest) + private static final com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserJoggingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserJoggingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingRequestOuterClass.DispenserJoggingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_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\035DispenserJoggingRequest.proto\022\025Tango.P" + + "MR.Diagnostics\032\024MotorDirection.proto\"p\n\027" + + "DispenserJoggingRequest\0228\n\tDirection\030\001 \001" + + "(\0162%.Tango.PMR.Diagnostics.MotorDirectio" + + "n\022\014\n\004Code\030\002 \001(\005\022\r\n\005Speed\030\003 \001(\001B!\n\037com.tw" + + "ine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserJoggingRequest_descriptor, + new java.lang.String[] { "Direction", "Code", "Speed", }); + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingResponseOuterClass.java new file mode 100644 index 000000000..239796c0b --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DispenserJoggingResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserJoggingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DispenserJoggingResponseOuterClass { + private DispenserJoggingResponseOuterClass() {} + 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 DispenserJoggingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DispenserJoggingResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DispenserJoggingResponse} + */ + public static final class DispenserJoggingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DispenserJoggingResponse) + DispenserJoggingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use DispenserJoggingResponse.newBuilder() to construct. + private DispenserJoggingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DispenserJoggingResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DispenserJoggingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.class, com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse other = (com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse 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 com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse 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 com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DispenserJoggingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DispenserJoggingResponse) + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.class, com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse build() { + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse result = new com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DispenserJoggingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DispenserJoggingResponse) + private static final com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DispenserJoggingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DispenserJoggingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DispenserJoggingResponseOuterClass.DispenserJoggingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_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\036DispenserJoggingResponse.proto\022\025Tango." + + "PMR.Diagnostics\"\032\n\030DispenserJoggingRespo" + + "nseB!\n\037com.twine.tango.pmr.diagnosticsb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DispenserJoggingResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DoubleArrayOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DoubleArrayOuterClass.java new file mode 100644 index 000000000..491db60b0 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/DoubleArrayOuterClass.java @@ -0,0 +1,612 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DoubleArray.proto + +package com.twine.tango.pmr.diagnostics; + +public final class DoubleArrayOuterClass { + private DoubleArrayOuterClass() {} + 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 DoubleArrayOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.DoubleArray) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated double Data = 1; + */ + java.util.List getDataList(); + /** + * repeated double Data = 1; + */ + int getDataCount(); + /** + * repeated double Data = 1; + */ + double getData(int index); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.DoubleArray} + */ + public static final class DoubleArray extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.DoubleArray) + DoubleArrayOrBuilder { + private static final long serialVersionUID = 0L; + // Use DoubleArray.newBuilder() to construct. + private DoubleArray(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DoubleArray() { + data_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DoubleArray( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + data_.add(input.readDouble()); + break; + } + case 10: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { + data_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + while (input.getBytesUntilLimit() > 0) { + data_.add(input.readDouble()); + } + input.popLimit(limit); + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + data_ = java.util.Collections.unmodifiableList(data_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.internal_static_Tango_PMR_Diagnostics_DoubleArray_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.internal_static_Tango_PMR_Diagnostics_DoubleArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.class, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private java.util.List data_; + /** + * repeated double Data = 1; + */ + public java.util.List + getDataList() { + return data_; + } + /** + * repeated double Data = 1; + */ + public int getDataCount() { + return data_.size(); + } + /** + * repeated double Data = 1; + */ + public double getData(int index) { + return data_.get(index); + } + private int dataMemoizedSerializedSize = -1; + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (getDataList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(dataMemoizedSerializedSize); + } + for (int i = 0; i < data_.size(); i++) { + output.writeDoubleNoTag(data_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + dataSize = 8 * getDataList().size(); + size += dataSize; + if (!getDataList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + dataMemoizedSerializedSize = dataSize; + } + 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 com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray other = (com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray) obj; + + boolean result = true; + result = result && getDataList() + .equals(other.getDataList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray 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 com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray 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 com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.DoubleArray} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.DoubleArray) + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArrayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.internal_static_Tango_PMR_Diagnostics_DoubleArray_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.internal_static_Tango_PMR_Diagnostics_DoubleArray_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.class, com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.internal_static_Tango_PMR_Diagnostics_DoubleArray_descriptor; + } + + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray build() { + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray buildPartial() { + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray result = new com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.data_ = data_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray) { + return mergeFrom((com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray other) { + if (other == com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray.getDefaultInstance()) return this; + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List data_ = java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated double Data = 1; + */ + public java.util.List + getDataList() { + return java.util.Collections.unmodifiableList(data_); + } + /** + * repeated double Data = 1; + */ + public int getDataCount() { + return data_.size(); + } + /** + * repeated double Data = 1; + */ + public double getData(int index) { + return data_.get(index); + } + /** + * repeated double Data = 1; + */ + public Builder setData( + int index, double value) { + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + return this; + } + /** + * repeated double Data = 1; + */ + public Builder addData(double value) { + ensureDataIsMutable(); + data_.add(value); + onChanged(); + return this; + } + /** + * repeated double Data = 1; + */ + public Builder addAllData( + java.lang.Iterable values) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + return this; + } + /** + * repeated double Data = 1; + */ + public Builder clearData() { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.DoubleArray) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.DoubleArray) + private static final com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray(); + } + + public static com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public DoubleArray parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DoubleArray(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.DoubleArrayOuterClass.DoubleArray getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_DoubleArray_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_DoubleArray_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\021DoubleArray.proto\022\025Tango.PMR.Diagnosti" + + "cs\"\033\n\013DoubleArray\022\014\n\004Data\030\001 \003(\001B!\n\037com.t" + + "wine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_DoubleArray_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_DoubleArray_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_DoubleArray_descriptor, + new java.lang.String[] { "Data", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventOuterClass.java new file mode 100644 index 000000000..d1753f626 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventOuterClass.java @@ -0,0 +1,674 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Event.proto + +package com.twine.tango.pmr.diagnostics; + +public final class EventOuterClass { + private EventOuterClass() {} + 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 EventOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.Event) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + int getTypeValue(); + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType getType(); + + /** + * string Message = 2; + */ + java.lang.String getMessage(); + /** + * string Message = 2; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.Event} + */ + public static final class Event extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.Event) + EventOrBuilder { + private static final long serialVersionUID = 0L; + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Event() { + type_ = 0; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Event( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + 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 com.twine.tango.pmr.diagnostics.EventOuterClass.internal_static_Tango_PMR_Diagnostics_Event_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.EventOuterClass.internal_static_Tango_PMR_Diagnostics_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.EventOuterClass.Event.class, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder.class); + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_; + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType getType() { + com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType result = com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType.valueOf(type_); + return result == null ? com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType.UNRECOGNIZED : result; + } + + public static final int MESSAGE_FIELD_NUMBER = 2; + private volatile java.lang.Object message_; + /** + * string Message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * string Message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (type_ != com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType.ThreadBreak.getNumber()) { + output.writeEnum(1, type_); + } + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType.ThreadBreak.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, type_); + } + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + 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 com.twine.tango.pmr.diagnostics.EventOuterClass.Event)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.EventOuterClass.Event other = (com.twine.tango.pmr.diagnostics.EventOuterClass.Event) obj; + + boolean result = true; + result = result && type_ == other.type_; + result = result && getMessage() + .equals(other.getMessage()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event 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 com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event 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 com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.EventOuterClass.Event prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.Event} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.Event) + com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.EventOuterClass.internal_static_Tango_PMR_Diagnostics_Event_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.EventOuterClass.internal_static_Tango_PMR_Diagnostics_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.EventOuterClass.Event.class, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.EventOuterClass.Event.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + type_ = 0; + + message_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.EventOuterClass.internal_static_Tango_PMR_Diagnostics_Event_descriptor; + } + + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.EventOuterClass.Event.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event build() { + com.twine.tango.pmr.diagnostics.EventOuterClass.Event result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event buildPartial() { + com.twine.tango.pmr.diagnostics.EventOuterClass.Event result = new com.twine.tango.pmr.diagnostics.EventOuterClass.Event(this); + result.type_ = type_; + result.message_ = message_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.EventOuterClass.Event) { + return mergeFrom((com.twine.tango.pmr.diagnostics.EventOuterClass.Event)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.EventOuterClass.Event other) { + if (other == com.twine.tango.pmr.diagnostics.EventOuterClass.Event.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.EventOuterClass.Event parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.EventOuterClass.Event) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int type_ = 0; + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public int getTypeValue() { + return type_; + } + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public Builder setTypeValue(int value) { + type_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType getType() { + com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType result = com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType.valueOf(type_); + return result == null ? com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public Builder setType(com.twine.tango.pmr.diagnostics.EventTypeOuterClass.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.EventType Type = 1; + */ + public Builder clearType() { + + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + * string Message = 2; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Message = 2; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Message = 2; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * string Message = 2; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * string Message = 2; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.Event) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.Event) + private static final com.twine.tango.pmr.diagnostics.EventOuterClass.Event DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.EventOuterClass.Event(); + } + + public static com.twine.tango.pmr.diagnostics.EventOuterClass.Event getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Event(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_Event_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_Event_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\013Event.proto\022\025Tango.PMR.Diagnostics\032\017Ev" + + "entType.proto\"H\n\005Event\022.\n\004Type\030\001 \001(\0162 .T" + + "ango.PMR.Diagnostics.EventType\022\017\n\007Messag" + + "e\030\002 \001(\tB!\n\037com.twine.tango.pmr.diagnosti" + + "csb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.EventTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_Event_descriptor, + new java.lang.String[] { "Type", "Message", }); + com.twine.tango.pmr.diagnostics.EventTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventTypeOuterClass.java new file mode 100644 index 000000000..be799e217 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/EventTypeOuterClass.java @@ -0,0 +1,724 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EventType.proto + +package com.twine.tango.pmr.diagnostics; + +public final class EventTypeOuterClass { + private EventTypeOuterClass() {} + 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 Tango.PMR.Diagnostics.EventType} + */ + public enum EventType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Dancer overshot / Thread break sensor (Group = Thread Feeding System, Category = Error, Actions = Soft Visual Notification, Abort Running Job, Prevent Job Execution)
+     * 
+ * + * ThreadBreak = 0; + */ + ThreadBreak(0), + /** + *
+     *Dancer not stable or got down (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * ThreadTensionControlFailure = 1; + */ + ThreadTensionControlFailure(1), + /** + *
+     *Source thread counter (counter shall be reset upon loading a new cone) (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * FeederConeInsufficiant = 2; + */ + FeederConeInsufficiant(2), + /** + *
+     *Winder Controller (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * WinderGeneralError = 3; + */ + WinderGeneralError(3), + /** + *
+     *SW_SPOOL_EXISTS='0' or Winder Controller (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * WinderConeNotExists = 4; + */ + WinderConeNotExists(4), + /** + *
+     *Motor Stall (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * ThreadFeedingGeneralError = 5; + */ + ThreadFeedingGeneralError(5), + /** + *
+     *Dyeing Head Thermometers (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DyeingHeadOverTemperature = 6; + */ + DyeingHeadOverTemperature(6), + /** + *
+     *Current sense in all heaters is 0 (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DHThermalCutoff = 7; + */ + DHThermalCutoff(7), + /** + *
+     *Dryer Thermometers (Group = DH Dryer, Category = Error, Actions = Prevent Job Execution, Abort Running Job, Soft Visual Notification)
+     * 
+ * + * DryerOverTemperature = 8; + */ + DryerOverTemperature(8), + /** + *
+     *Current sense in all heaters is 0 (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DryerThermalCutoff = 9; + */ + DryerThermalCutoff(9), + /** + *
+     *Dyeing head Heaters failure (Under /Over current) (Group = DH Dryer, Category = Error, Actions = Soft Visual Notification, Prevent Job Execution, Abort Running Job)
+     * 
+ * + * DyeingHeadHeatersCurrentOutOfRange = 10; + */ + DyeingHeadHeatersCurrentOutOfRange(10), + /** + *
+     *Dryer Heaters failure (Under /Over current) (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DryerHeatersCurrentOutOfRange = 11; + */ + DryerHeatersCurrentOutOfRange(11), + /** + *
+     *Covers Tampers (Group = DH Dryer, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * DryerDHeadCoverOpen = 12; + */ + DryerDHeadCoverOpen(12), + /** + *
+     *Pressure sensor Purex or Air flow sensor (Flap) (Group = Waste Handling System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * AirFilterClogged = 13; + */ + AirFilterClogged(13), + /** + *
+     *Micro-switch (Group = Waste Handling System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * AirFilterNotInstalled = 14; + */ + AirFilterNotInstalled(14), + /** + *
+     *blower techo. Feedback, air flap (Group = Waste Handling System, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification, Abort Running Job)
+     * 
+ * + * WHSFailure = 15; + */ + WHSFailure(15), + /** + *
+     *Check container float sensor (Group = Waste Handling System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * WasteContainerIsAlmostFull = 16; + */ + WasteContainerIsAlmostFull(16), + /** + *
+     *Check container float sensor (Group = Waste Handling System, Category = Error, Actions = Soft Visual Notification)
+     * 
+ * + * WasteContainerIsFull = 17; + */ + WasteContainerIsFull(17), + /** + *
+     *Dispenser position sensor/s (Group = Ink Delivery System, Category = Error, Actions = Prevent Job Execution, Abort Running Job, Soft Visual Notification)
+     * 
+ * + * DispenserEmpty = 18; + */ + DispenserEmpty(18), + /** + *
+     *Check if job can be executor refill needed (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * DispenserLowLevel = 19; + */ + DispenserLowLevel(19), + /** + *
+     *Cartridge float displacement (Group = Ink Delivery System, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * DispenserRefillFailure = 20; + */ + DispenserRefillFailure(20), + /** + *
+     *Mid-Tank  (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MidTankEmpty = 21; + */ + MidTankEmpty(21), + /** + *
+     *Cartridge float sensor (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MidTankLowLevel = 22; + */ + MidTankLowLevel(22), + /** + *
+     *Cartridge float sensor or Additional micro-switch (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MidTankNotInPlace = 23; + */ + MidTankNotInPlace(23), + /** + *
+     *System BIT Failure (Group = General Hardware, Category = Error, Actions = Soft Visual Notification)
+     * 
+ * + * SystemBITFail = 24; + */ + SystemBITFail(24), + /** + *
+     *Internal Thermostat (Group = General Hardware, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification, Abort Running Job, Stop Heaters)
+     * 
+ * + * GeneralInternalOverTemperature = 25; + */ + GeneralInternalOverTemperature(25), + /** + *
+     *Covers Tampers (Group = General Hardware, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MachineCoverOpen = 26; + */ + MachineCoverOpen(26), + /** + *
+     *EPB (Group = General Hardware, Category = Critical, Actions = Overall Power Down, Soft Visual Notification)
+     * 
+ * + * EmergencyPushButtonPressed = 27; + */ + EmergencyPushButtonPressed(27), + /** + *
+     *System General Error (Group = General Hardware, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * SystemGeneralError = 28; + */ + SystemGeneralError(28), + /** + *
+     *Occurs a request has been sent to the machine or external bridge service (Group = Transport, Category = Info, Actions = )
+     * 
+ * + * RequestSent = 29; + */ + RequestSent(29), + /** + *
+     *Occures when a response has been received (Group = Transport, Category = Info, Actions = )
+     * 
+ * + * ResponseReceived = 30; + */ + ResponseReceived(30), + /** + *
+     *Occures when a request to the machine has failed (Group = Transport, Category = Error, Actions = )
+     * 
+ * + * RequestFailed = 31; + */ + RequestFailed(31), + /** + *
+     *Occures when the application has encountered some error (Group = Application, Category = Error, Actions = )
+     * 
+ * + * ApplicationException = 32; + */ + ApplicationException(32), + /** + *
+     *General application event logs (Group = Application, Category = Info, Actions = )
+     * 
+ * + * ApplicationInformation = 34; + */ + ApplicationInformation(34), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Dancer overshot / Thread break sensor (Group = Thread Feeding System, Category = Error, Actions = Soft Visual Notification, Abort Running Job, Prevent Job Execution)
+     * 
+ * + * ThreadBreak = 0; + */ + public static final int ThreadBreak_VALUE = 0; + /** + *
+     *Dancer not stable or got down (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * ThreadTensionControlFailure = 1; + */ + public static final int ThreadTensionControlFailure_VALUE = 1; + /** + *
+     *Source thread counter (counter shall be reset upon loading a new cone) (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * FeederConeInsufficiant = 2; + */ + public static final int FeederConeInsufficiant_VALUE = 2; + /** + *
+     *Winder Controller (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * WinderGeneralError = 3; + */ + public static final int WinderGeneralError_VALUE = 3; + /** + *
+     *SW_SPOOL_EXISTS='0' or Winder Controller (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * WinderConeNotExists = 4; + */ + public static final int WinderConeNotExists_VALUE = 4; + /** + *
+     *Motor Stall (Group = Thread Feeding System, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * ThreadFeedingGeneralError = 5; + */ + public static final int ThreadFeedingGeneralError_VALUE = 5; + /** + *
+     *Dyeing Head Thermometers (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DyeingHeadOverTemperature = 6; + */ + public static final int DyeingHeadOverTemperature_VALUE = 6; + /** + *
+     *Current sense in all heaters is 0 (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DHThermalCutoff = 7; + */ + public static final int DHThermalCutoff_VALUE = 7; + /** + *
+     *Dryer Thermometers (Group = DH Dryer, Category = Error, Actions = Prevent Job Execution, Abort Running Job, Soft Visual Notification)
+     * 
+ * + * DryerOverTemperature = 8; + */ + public static final int DryerOverTemperature_VALUE = 8; + /** + *
+     *Current sense in all heaters is 0 (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DryerThermalCutoff = 9; + */ + public static final int DryerThermalCutoff_VALUE = 9; + /** + *
+     *Dyeing head Heaters failure (Under /Over current) (Group = DH Dryer, Category = Error, Actions = Soft Visual Notification, Prevent Job Execution, Abort Running Job)
+     * 
+ * + * DyeingHeadHeatersCurrentOutOfRange = 10; + */ + public static final int DyeingHeadHeatersCurrentOutOfRange_VALUE = 10; + /** + *
+     *Dryer Heaters failure (Under /Over current) (Group = DH Dryer, Category = Error, Actions = Abort Running Job, Soft Visual Notification, Prevent Job Execution)
+     * 
+ * + * DryerHeatersCurrentOutOfRange = 11; + */ + public static final int DryerHeatersCurrentOutOfRange_VALUE = 11; + /** + *
+     *Covers Tampers (Group = DH Dryer, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * DryerDHeadCoverOpen = 12; + */ + public static final int DryerDHeadCoverOpen_VALUE = 12; + /** + *
+     *Pressure sensor Purex or Air flow sensor (Flap) (Group = Waste Handling System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * AirFilterClogged = 13; + */ + public static final int AirFilterClogged_VALUE = 13; + /** + *
+     *Micro-switch (Group = Waste Handling System, Category = Error, Actions = Abort Running Job, Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * AirFilterNotInstalled = 14; + */ + public static final int AirFilterNotInstalled_VALUE = 14; + /** + *
+     *blower techo. Feedback, air flap (Group = Waste Handling System, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification, Abort Running Job)
+     * 
+ * + * WHSFailure = 15; + */ + public static final int WHSFailure_VALUE = 15; + /** + *
+     *Check container float sensor (Group = Waste Handling System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * WasteContainerIsAlmostFull = 16; + */ + public static final int WasteContainerIsAlmostFull_VALUE = 16; + /** + *
+     *Check container float sensor (Group = Waste Handling System, Category = Error, Actions = Soft Visual Notification)
+     * 
+ * + * WasteContainerIsFull = 17; + */ + public static final int WasteContainerIsFull_VALUE = 17; + /** + *
+     *Dispenser position sensor/s (Group = Ink Delivery System, Category = Error, Actions = Prevent Job Execution, Abort Running Job, Soft Visual Notification)
+     * 
+ * + * DispenserEmpty = 18; + */ + public static final int DispenserEmpty_VALUE = 18; + /** + *
+     *Check if job can be executor refill needed (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * DispenserLowLevel = 19; + */ + public static final int DispenserLowLevel_VALUE = 19; + /** + *
+     *Cartridge float displacement (Group = Ink Delivery System, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification)
+     * 
+ * + * DispenserRefillFailure = 20; + */ + public static final int DispenserRefillFailure_VALUE = 20; + /** + *
+     *Mid-Tank  (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MidTankEmpty = 21; + */ + public static final int MidTankEmpty_VALUE = 21; + /** + *
+     *Cartridge float sensor (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MidTankLowLevel = 22; + */ + public static final int MidTankLowLevel_VALUE = 22; + /** + *
+     *Cartridge float sensor or Additional micro-switch (Group = Ink Delivery System, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MidTankNotInPlace = 23; + */ + public static final int MidTankNotInPlace_VALUE = 23; + /** + *
+     *System BIT Failure (Group = General Hardware, Category = Error, Actions = Soft Visual Notification)
+     * 
+ * + * SystemBITFail = 24; + */ + public static final int SystemBITFail_VALUE = 24; + /** + *
+     *Internal Thermostat (Group = General Hardware, Category = Error, Actions = Prevent Job Execution, Soft Visual Notification, Abort Running Job, Stop Heaters)
+     * 
+ * + * GeneralInternalOverTemperature = 25; + */ + public static final int GeneralInternalOverTemperature_VALUE = 25; + /** + *
+     *Covers Tampers (Group = General Hardware, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * MachineCoverOpen = 26; + */ + public static final int MachineCoverOpen_VALUE = 26; + /** + *
+     *EPB (Group = General Hardware, Category = Critical, Actions = Overall Power Down, Soft Visual Notification)
+     * 
+ * + * EmergencyPushButtonPressed = 27; + */ + public static final int EmergencyPushButtonPressed_VALUE = 27; + /** + *
+     *System General Error (Group = General Hardware, Category = Warning, Actions = Soft Visual Notification)
+     * 
+ * + * SystemGeneralError = 28; + */ + public static final int SystemGeneralError_VALUE = 28; + /** + *
+     *Occurs a request has been sent to the machine or external bridge service (Group = Transport, Category = Info, Actions = )
+     * 
+ * + * RequestSent = 29; + */ + public static final int RequestSent_VALUE = 29; + /** + *
+     *Occures when a response has been received (Group = Transport, Category = Info, Actions = )
+     * 
+ * + * ResponseReceived = 30; + */ + public static final int ResponseReceived_VALUE = 30; + /** + *
+     *Occures when a request to the machine has failed (Group = Transport, Category = Error, Actions = )
+     * 
+ * + * RequestFailed = 31; + */ + public static final int RequestFailed_VALUE = 31; + /** + *
+     *Occures when the application has encountered some error (Group = Application, Category = Error, Actions = )
+     * 
+ * + * ApplicationException = 32; + */ + public static final int ApplicationException_VALUE = 32; + /** + *
+     *General application event logs (Group = Application, Category = Info, Actions = )
+     * 
+ * + * ApplicationInformation = 34; + */ + public static final int ApplicationInformation_VALUE = 34; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventType valueOf(int value) { + return forNumber(value); + } + + public static EventType forNumber(int value) { + switch (value) { + case 0: return ThreadBreak; + case 1: return ThreadTensionControlFailure; + case 2: return FeederConeInsufficiant; + case 3: return WinderGeneralError; + case 4: return WinderConeNotExists; + case 5: return ThreadFeedingGeneralError; + case 6: return DyeingHeadOverTemperature; + case 7: return DHThermalCutoff; + case 8: return DryerOverTemperature; + case 9: return DryerThermalCutoff; + case 10: return DyeingHeadHeatersCurrentOutOfRange; + case 11: return DryerHeatersCurrentOutOfRange; + case 12: return DryerDHeadCoverOpen; + case 13: return AirFilterClogged; + case 14: return AirFilterNotInstalled; + case 15: return WHSFailure; + case 16: return WasteContainerIsAlmostFull; + case 17: return WasteContainerIsFull; + case 18: return DispenserEmpty; + case 19: return DispenserLowLevel; + case 20: return DispenserRefillFailure; + case 21: return MidTankEmpty; + case 22: return MidTankLowLevel; + case 23: return MidTankNotInPlace; + case 24: return SystemBITFail; + case 25: return GeneralInternalOverTemperature; + case 26: return MachineCoverOpen; + case 27: return EmergencyPushButtonPressed; + case 28: return SystemGeneralError; + case 29: return RequestSent; + case 30: return ResponseReceived; + case 31: return RequestFailed; + case 32: return ApplicationException; + case 34: return ApplicationInformation; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + EventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.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 com.twine.tango.pmr.diagnostics.EventTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Diagnostics.EventType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\017EventType.proto\022\025Tango.PMR.Diagnostics" + + "*\350\006\n\tEventType\022\017\n\013ThreadBreak\020\000\022\037\n\033Threa" + + "dTensionControlFailure\020\001\022\032\n\026FeederConeIn" + + "sufficiant\020\002\022\026\n\022WinderGeneralError\020\003\022\027\n\023" + + "WinderConeNotExists\020\004\022\035\n\031ThreadFeedingGe" + + "neralError\020\005\022\035\n\031DyeingHeadOverTemperatur" + + "e\020\006\022\023\n\017DHThermalCutoff\020\007\022\030\n\024DryerOverTem" + + "perature\020\010\022\026\n\022DryerThermalCutoff\020\t\022&\n\"Dy" + + "eingHeadHeatersCurrentOutOfRange\020\n\022!\n\035Dr" + + "yerHeatersCurrentOutOfRange\020\013\022\027\n\023DryerDH", + "eadCoverOpen\020\014\022\024\n\020AirFilterClogged\020\r\022\031\n\025" + + "AirFilterNotInstalled\020\016\022\016\n\nWHSFailure\020\017\022" + + "\036\n\032WasteContainerIsAlmostFull\020\020\022\030\n\024Waste" + + "ContainerIsFull\020\021\022\022\n\016DispenserEmpty\020\022\022\025\n" + + "\021DispenserLowLevel\020\023\022\032\n\026DispenserRefillF" + + "ailure\020\024\022\020\n\014MidTankEmpty\020\025\022\023\n\017MidTankLow" + + "Level\020\026\022\025\n\021MidTankNotInPlace\020\027\022\021\n\rSystem" + + "BITFail\020\030\022\"\n\036GeneralInternalOverTemperat" + + "ure\020\031\022\024\n\020MachineCoverOpen\020\032\022\036\n\032Emergency" + + "PushButtonPressed\020\033\022\026\n\022SystemGeneralErro", + "r\020\034\022\017\n\013RequestSent\020\035\022\024\n\020ResponseReceived" + + "\020\036\022\021\n\rRequestFailed\020\037\022\030\n\024ApplicationExce" + + "ption\020 \022\032\n\026ApplicationInformation\020\"B!\n\037c" + + "om.twine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingRequestOuterClass.java new file mode 100644 index 000000000..2268095b5 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingRequestOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorAbortHomingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorAbortHomingRequestOuterClass { + private MotorAbortHomingRequestOuterClass() {} + 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 MotorAbortHomingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorAbortHomingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 1; + */ + int getCode(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorAbortHomingRequest} + */ + public static final class MotorAbortHomingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorAbortHomingRequest) + MotorAbortHomingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorAbortHomingRequest.newBuilder() to construct. + private MotorAbortHomingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorAbortHomingRequest() { + code_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorAbortHomingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + code_ = input.readInt32(); + 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.class, com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest other = (com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorAbortHomingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorAbortHomingRequest) + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.class, com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest build() { + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest result = new com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 1; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorAbortHomingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorAbortHomingRequest) + private static final com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorAbortHomingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorAbortHomingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingRequestOuterClass.MotorAbortHomingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_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\035MotorAbortHomingRequest.proto\022\025Tango.P" + + "MR.Diagnostics\"\'\n\027MotorAbortHomingReques" + + "t\022\014\n\004Code\030\001 \001(\005B!\n\037com.twine.tango.pmr.d" + + "iagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingRequest_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingResponseOuterClass.java new file mode 100644 index 000000000..8cce2a586 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortHomingResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorAbortHomingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorAbortHomingResponseOuterClass { + private MotorAbortHomingResponseOuterClass() {} + 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 MotorAbortHomingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorAbortHomingResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorAbortHomingResponse} + */ + public static final class MotorAbortHomingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorAbortHomingResponse) + MotorAbortHomingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorAbortHomingResponse.newBuilder() to construct. + private MotorAbortHomingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorAbortHomingResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorAbortHomingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.class, com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse other = (com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse 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 com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorAbortHomingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorAbortHomingResponse) + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.class, com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse build() { + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse result = new com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorAbortHomingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorAbortHomingResponse) + private static final com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorAbortHomingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorAbortHomingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortHomingResponseOuterClass.MotorAbortHomingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_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\036MotorAbortHomingResponse.proto\022\025Tango." + + "PMR.Diagnostics\"\032\n\030MotorAbortHomingRespo" + + "nseB!\n\037com.twine.tango.pmr.diagnosticsb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorAbortHomingResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingRequestOuterClass.java new file mode 100644 index 000000000..11a24c3aa --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingRequestOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorAbortJoggingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorAbortJoggingRequestOuterClass { + private MotorAbortJoggingRequestOuterClass() {} + 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 MotorAbortJoggingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorAbortJoggingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 2; + */ + int getCode(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorAbortJoggingRequest} + */ + public static final class MotorAbortJoggingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorAbortJoggingRequest) + MotorAbortJoggingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorAbortJoggingRequest.newBuilder() to construct. + private MotorAbortJoggingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorAbortJoggingRequest() { + code_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorAbortJoggingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 16: { + + code_ = input.readInt32(); + 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.class, com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(2, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, code_); + } + 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest other = (com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorAbortJoggingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorAbortJoggingRequest) + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.class, com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest build() { + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest result = new com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 2; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 2; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorAbortJoggingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorAbortJoggingRequest) + private static final com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorAbortJoggingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorAbortJoggingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingRequestOuterClass.MotorAbortJoggingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_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\036MotorAbortJoggingRequest.proto\022\025Tango." + + "PMR.Diagnostics\"(\n\030MotorAbortJoggingRequ" + + "est\022\014\n\004Code\030\002 \001(\005B!\n\037com.twine.tango.pmr" + + ".diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingRequest_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingResponseOuterClass.java new file mode 100644 index 000000000..8e89e6fbe --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorAbortJoggingResponseOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorAbortJoggingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorAbortJoggingResponseOuterClass { + private MotorAbortJoggingResponseOuterClass() {} + 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 MotorAbortJoggingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorAbortJoggingResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 2; + */ + int getCode(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorAbortJoggingResponse} + */ + public static final class MotorAbortJoggingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorAbortJoggingResponse) + MotorAbortJoggingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorAbortJoggingResponse.newBuilder() to construct. + private MotorAbortJoggingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorAbortJoggingResponse() { + code_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorAbortJoggingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 16: { + + code_ = input.readInt32(); + 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.class, com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(2, code_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, code_); + } + 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse other = (com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse 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 com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorAbortJoggingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorAbortJoggingResponse) + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.class, com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse build() { + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse result = new com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse(this); + result.code_ = code_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 2; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 2; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorAbortJoggingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorAbortJoggingResponse) + private static final com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorAbortJoggingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorAbortJoggingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorAbortJoggingResponseOuterClass.MotorAbortJoggingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_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\037MotorAbortJoggingResponse.proto\022\025Tango" + + ".PMR.Diagnostics\")\n\031MotorAbortJoggingRes" + + "ponse\022\014\n\004Code\030\002 \001(\005B!\n\037com.twine.tango.p" + + "mr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorAbortJoggingResponse_descriptor, + new java.lang.String[] { "Code", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorDirectionOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorDirectionOuterClass.java new file mode 100644 index 000000000..c11600f28 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorDirectionOuterClass.java @@ -0,0 +1,144 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorDirection.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorDirectionOuterClass { + private MotorDirectionOuterClass() {} + 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 Tango.PMR.Diagnostics.MotorDirection} + */ + public enum MotorDirection + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Forward = 0; + */ + Forward(0), + /** + * Backward = 1; + */ + Backward(1), + UNRECOGNIZED(-1), + ; + + /** + * Forward = 0; + */ + public static final int Forward_VALUE = 0; + /** + * Backward = 1; + */ + public static final int Backward_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MotorDirection valueOf(int value) { + return forNumber(value); + } + + public static MotorDirection forNumber(int value) { + switch (value) { + case 0: return Forward; + case 1: return Backward; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + MotorDirection> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MotorDirection findValueByNumber(int number) { + return MotorDirection.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 com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final MotorDirection[] VALUES = values(); + + public static MotorDirection valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MotorDirection(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Diagnostics.MotorDirection) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\024MotorDirection.proto\022\025Tango.PMR.Diagno" + + "stics*+\n\016MotorDirection\022\013\n\007Forward\020\000\022\014\n\010" + + "Backward\020\001B!\n\037com.twine.tango.pmr.diagno" + + "sticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingRequestOuterClass.java new file mode 100644 index 000000000..930f2f694 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingRequestOuterClass.java @@ -0,0 +1,571 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorHomingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorHomingRequestOuterClass { + private MotorHomingRequestOuterClass() {} + 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 MotorHomingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorHomingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Code = 1; + */ + int getCode(); + + /** + * double Speed = 2; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorHomingRequest} + */ + public static final class MotorHomingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorHomingRequest) + MotorHomingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorHomingRequest.newBuilder() to construct. + private MotorHomingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorHomingRequest() { + code_ = 0; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorHomingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + code_ = input.readInt32(); + break; + } + case 17: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.class, com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.Builder.class); + } + + public static final int CODE_FIELD_NUMBER = 1; + private int code_; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + + public static final int SPEED_FIELD_NUMBER = 2; + private double speed_; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != 0) { + output.writeInt32(1, code_); + } + if (speed_ != 0D) { + output.writeDouble(2, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, code_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, speed_); + } + 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 com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest other = (com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest) obj; + + boolean result = true; + result = result && (getCode() + == other.getCode()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest 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 com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest 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 com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorHomingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorHomingRequest) + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.class, com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + code_ = 0; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest build() { + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest result = new com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest(this); + result.code_ = code_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest.getDefaultInstance()) return this; + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ ; + /** + * int32 Code = 1; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 1; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 1; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 2; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 2; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorHomingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorHomingRequest) + private static final com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorHomingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorHomingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorHomingRequestOuterClass.MotorHomingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_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\030MotorHomingRequest.proto\022\025Tango.PMR.Di" + + "agnostics\"1\n\022MotorHomingRequest\022\014\n\004Code\030" + + "\001 \001(\005\022\r\n\005Speed\030\002 \001(\001B!\n\037com.twine.tango." + + "pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorHomingRequest_descriptor, + new java.lang.String[] { "Code", "Speed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingResponseOuterClass.java new file mode 100644 index 000000000..cb36100e2 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorHomingResponseOuterClass.java @@ -0,0 +1,574 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorHomingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorHomingResponseOuterClass { + private MotorHomingResponseOuterClass() {} + 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 MotorHomingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorHomingResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * double Progress = 1; + */ + double getProgress(); + + /** + * double MaxProgress = 2; + */ + double getMaxProgress(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorHomingResponse} + */ + public static final class MotorHomingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorHomingResponse) + MotorHomingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorHomingResponse.newBuilder() to construct. + private MotorHomingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorHomingResponse() { + progress_ = 0D; + maxProgress_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorHomingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + progress_ = input.readDouble(); + break; + } + case 17: { + + maxProgress_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.class, com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.Builder.class); + } + + public static final int PROGRESS_FIELD_NUMBER = 1; + private double progress_; + /** + * double Progress = 1; + */ + public double getProgress() { + return progress_; + } + + public static final int MAXPROGRESS_FIELD_NUMBER = 2; + private double maxProgress_; + /** + * double MaxProgress = 2; + */ + public double getMaxProgress() { + return maxProgress_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (progress_ != 0D) { + output.writeDouble(1, progress_); + } + if (maxProgress_ != 0D) { + output.writeDouble(2, maxProgress_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (progress_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, progress_); + } + if (maxProgress_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, maxProgress_); + } + 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 com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse other = (com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getProgress()) + == java.lang.Double.doubleToLongBits( + other.getProgress())); + result = result && ( + java.lang.Double.doubleToLongBits(getMaxProgress()) + == java.lang.Double.doubleToLongBits( + other.getMaxProgress())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getProgress())); + hash = (37 * hash) + MAXPROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxProgress())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse 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 com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse 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 com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorHomingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorHomingResponse) + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.class, com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + progress_ = 0D; + + maxProgress_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse build() { + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse result = new com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse(this); + result.progress_ = progress_; + result.maxProgress_ = maxProgress_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse.getDefaultInstance()) return this; + if (other.getProgress() != 0D) { + setProgress(other.getProgress()); + } + if (other.getMaxProgress() != 0D) { + setMaxProgress(other.getMaxProgress()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double progress_ ; + /** + * double Progress = 1; + */ + public double getProgress() { + return progress_; + } + /** + * double Progress = 1; + */ + public Builder setProgress(double value) { + + progress_ = value; + onChanged(); + return this; + } + /** + * double Progress = 1; + */ + public Builder clearProgress() { + + progress_ = 0D; + onChanged(); + return this; + } + + private double maxProgress_ ; + /** + * double MaxProgress = 2; + */ + public double getMaxProgress() { + return maxProgress_; + } + /** + * double MaxProgress = 2; + */ + public Builder setMaxProgress(double value) { + + maxProgress_ = value; + onChanged(); + return this; + } + /** + * double MaxProgress = 2; + */ + public Builder clearMaxProgress() { + + maxProgress_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorHomingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorHomingResponse) + private static final com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorHomingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorHomingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorHomingResponseOuterClass.MotorHomingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_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\031MotorHomingResponse.proto\022\025Tango.PMR.D" + + "iagnostics\"<\n\023MotorHomingResponse\022\020\n\010Pro" + + "gress\030\001 \001(\001\022\023\n\013MaxProgress\030\002 \001(\001B!\n\037com." + + "twine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorHomingResponse_descriptor, + new java.lang.String[] { "Progress", "MaxProgress", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingRequestOuterClass.java new file mode 100644 index 000000000..539aa27e4 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingRequestOuterClass.java @@ -0,0 +1,667 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorJoggingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorJoggingRequestOuterClass { + private MotorJoggingRequestOuterClass() {} + 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 MotorJoggingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorJoggingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + int getDirectionValue(); + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection(); + + /** + * int32 Code = 2; + */ + int getCode(); + + /** + * double Speed = 3; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorJoggingRequest} + */ + public static final class MotorJoggingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorJoggingRequest) + MotorJoggingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorJoggingRequest.newBuilder() to construct. + private MotorJoggingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorJoggingRequest() { + direction_ = 0; + code_ = 0; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorJoggingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + case 16: { + + code_ = input.readInt32(); + break; + } + case 25: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.class, com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.Builder.class); + } + + public static final int DIRECTION_FIELD_NUMBER = 1; + private int direction_; + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public int getDirectionValue() { + return direction_; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection() { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection result = com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.valueOf(direction_); + return result == null ? com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.UNRECOGNIZED : result; + } + + public static final int CODE_FIELD_NUMBER = 2; + private int code_; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + + public static final int SPEED_FIELD_NUMBER = 3; + private double speed_; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (direction_ != com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.Forward.getNumber()) { + output.writeEnum(1, direction_); + } + if (code_ != 0) { + output.writeInt32(2, code_); + } + if (speed_ != 0D) { + output.writeDouble(3, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (direction_ != com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.Forward.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, direction_); + } + if (code_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, code_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, speed_); + } + 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 com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest other = (com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest) obj; + + boolean result = true; + result = result && direction_ == other.direction_; + result = result && (getCode() + == other.getCode()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode(); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest 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 com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest 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 com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorJoggingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorJoggingRequest) + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.class, com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + direction_ = 0; + + code_ = 0; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest build() { + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest result = new com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest(this); + result.direction_ = direction_; + result.code_ = code_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest.getDefaultInstance()) return this; + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.getCode() != 0) { + setCode(other.getCode()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int direction_ = 0; + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public int getDirectionValue() { + return direction_; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection() { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection result = com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.valueOf(direction_); + return result == null ? com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder setDirection(com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + private int code_ ; + /** + * int32 Code = 2; + */ + public int getCode() { + return code_; + } + /** + * int32 Code = 2; + */ + public Builder setCode(int value) { + + code_ = value; + onChanged(); + return this; + } + /** + * int32 Code = 2; + */ + public Builder clearCode() { + + code_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 3; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 3; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorJoggingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorJoggingRequest) + private static final com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorJoggingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorJoggingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingRequestOuterClass.MotorJoggingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_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\031MotorJoggingRequest.proto\022\025Tango.PMR.D" + + "iagnostics\032\024MotorDirection.proto\"l\n\023Moto" + + "rJoggingRequest\0228\n\tDirection\030\001 \001(\0162%.Tan" + + "go.PMR.Diagnostics.MotorDirection\022\014\n\004Cod" + + "e\030\002 \001(\005\022\r\n\005Speed\030\003 \001(\001B!\n\037com.twine.tang" + + "o.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorJoggingRequest_descriptor, + new java.lang.String[] { "Direction", "Code", "Speed", }); + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingResponseOuterClass.java new file mode 100644 index 000000000..c85a24181 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/MotorJoggingResponseOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MotorJoggingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class MotorJoggingResponseOuterClass { + private MotorJoggingResponseOuterClass() {} + 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 MotorJoggingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.MotorJoggingResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.MotorJoggingResponse} + */ + public static final class MotorJoggingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.MotorJoggingResponse) + MotorJoggingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use MotorJoggingResponse.newBuilder() to construct. + private MotorJoggingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MotorJoggingResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MotorJoggingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.class, com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse other = (com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse 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 com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse 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 com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.MotorJoggingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.MotorJoggingResponse) + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.class, com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse build() { + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse result = new com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.MotorJoggingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.MotorJoggingResponse) + private static final com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MotorJoggingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MotorJoggingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.MotorJoggingResponseOuterClass.MotorJoggingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_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\032MotorJoggingResponse.proto\022\025Tango.PMR." + + "Diagnostics\"\026\n\024MotorJoggingResponseB!\n\037c" + + "om.twine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_MotorJoggingResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsRequestOuterClass.java new file mode 100644 index 000000000..3642252d2 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsRequestOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PushDiagnosticsRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class PushDiagnosticsRequestOuterClass { + private PushDiagnosticsRequestOuterClass() {} + 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 PushDiagnosticsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.PushDiagnosticsRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.PushDiagnosticsRequest} + */ + public static final class PushDiagnosticsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.PushDiagnosticsRequest) + PushDiagnosticsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushDiagnosticsRequest.newBuilder() to construct. + private PushDiagnosticsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PushDiagnosticsRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushDiagnosticsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.class, com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest other = (com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.PushDiagnosticsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.PushDiagnosticsRequest) + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.class, com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest build() { + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest buildPartial() { + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest result = new com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest other) { + if (other == com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.PushDiagnosticsRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.PushDiagnosticsRequest) + private static final com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest(); + } + + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PushDiagnosticsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushDiagnosticsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsRequestOuterClass.PushDiagnosticsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_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\034PushDiagnosticsRequest.proto\022\025Tango.PM" + + "R.Diagnostics\"\030\n\026PushDiagnosticsRequestB" + + "!\n\037com.twine.tango.pmr.diagnosticsb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsRequest_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsResponseOuterClass.java new file mode 100644 index 000000000..5ff61a9e2 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/PushDiagnosticsResponseOuterClass.java @@ -0,0 +1,2602 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: PushDiagnosticsResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class PushDiagnosticsResponseOuterClass { + private PushDiagnosticsResponseOuterClass() {} + 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 PushDiagnosticsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.PushDiagnosticsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *Monitors
+     * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + boolean hasMonitors(); + /** + *
+     *Monitors
+     * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors getMonitors(); + /** + *
+     *Monitors
+     * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder getMonitorsOrBuilder(); + + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + java.util.List + getDigitalPinsList(); + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin getDigitalPins(int index); + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + int getDigitalPinsCount(); + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + java.util.List + getDigitalPinsOrBuilderList(); + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder getDigitalPinsOrBuilder( + int index); + + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + java.util.List + getComponentsStatesList(); + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState getComponentsStates(int index); + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + int getComponentsStatesCount(); + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + java.util.List + getComponentsStatesOrBuilderList(); + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder getComponentsStatesOrBuilder( + int index); + + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + java.util.List + getEventsList(); + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + com.twine.tango.pmr.diagnostics.EventOuterClass.Event getEvents(int index); + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + int getEventsCount(); + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + java.util.List + getEventsOrBuilderList(); + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder getEventsOrBuilder( + int index); + + /** + *
+     *Software Information
+     * 
+ * + * string Version = 5; + */ + java.lang.String getVersion(); + /** + *
+     *Software Information
+     * 
+ * + * string Version = 5; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + * string VersionName = 6; + */ + java.lang.String getVersionName(); + /** + * string VersionName = 6; + */ + com.google.protobuf.ByteString + getVersionNameBytes(); + + /** + * string VersionBuildDate = 7; + */ + java.lang.String getVersionBuildDate(); + /** + * string VersionBuildDate = 7; + */ + com.google.protobuf.ByteString + getVersionBuildDateBytes(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.PushDiagnosticsResponse} + */ + public static final class PushDiagnosticsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.PushDiagnosticsResponse) + PushDiagnosticsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PushDiagnosticsResponse.newBuilder() to construct. + private PushDiagnosticsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PushDiagnosticsResponse() { + digitalPins_ = java.util.Collections.emptyList(); + componentsStates_ = java.util.Collections.emptyList(); + events_ = java.util.Collections.emptyList(); + version_ = ""; + versionName_ = ""; + versionBuildDate_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PushDiagnosticsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder subBuilder = null; + if (monitors_ != null) { + subBuilder = monitors_.toBuilder(); + } + monitors_ = input.readMessage(com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(monitors_); + monitors_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + digitalPins_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + digitalPins_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + componentsStates_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + componentsStates_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + events_.add( + input.readMessage(com.twine.tango.pmr.diagnostics.EventOuterClass.Event.parser(), extensionRegistry)); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + version_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + versionName_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + versionBuildDate_ = s; + 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 { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + digitalPins_ = java.util.Collections.unmodifiableList(digitalPins_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + componentsStates_ = java.util.Collections.unmodifiableList(componentsStates_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + events_ = java.util.Collections.unmodifiableList(events_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.class, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder.class); + } + + private int bitField0_; + public static final int MONITORS_FIELD_NUMBER = 1; + private com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors monitors_; + /** + *
+     *Monitors
+     * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public boolean hasMonitors() { + return monitors_ != null; + } + /** + *
+     *Monitors
+     * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors getMonitors() { + return monitors_ == null ? com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.getDefaultInstance() : monitors_; + } + /** + *
+     *Monitors
+     * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder getMonitorsOrBuilder() { + return getMonitors(); + } + + public static final int DIGITALPINS_FIELD_NUMBER = 2; + private java.util.List digitalPins_; + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public java.util.List getDigitalPinsList() { + return digitalPins_; + } + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public java.util.List + getDigitalPinsOrBuilderList() { + return digitalPins_; + } + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public int getDigitalPinsCount() { + return digitalPins_.size(); + } + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin getDigitalPins(int index) { + return digitalPins_.get(index); + } + /** + *
+     *Digital Pins States
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder getDigitalPinsOrBuilder( + int index) { + return digitalPins_.get(index); + } + + public static final int COMPONENTSSTATES_FIELD_NUMBER = 3; + private java.util.List componentsStates_; + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public java.util.List getComponentsStatesList() { + return componentsStates_; + } + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public java.util.List + getComponentsStatesOrBuilderList() { + return componentsStates_; + } + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public int getComponentsStatesCount() { + return componentsStates_.size(); + } + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState getComponentsStates(int index) { + return componentsStates_.get(index); + } + /** + *
+     *Value Components Effective Values
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder getComponentsStatesOrBuilder( + int index) { + return componentsStates_.get(index); + } + + public static final int EVENTS_FIELD_NUMBER = 4; + private java.util.List events_; + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public java.util.List getEventsList() { + return events_; + } + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public java.util.List + getEventsOrBuilderList() { + return events_; + } + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public int getEventsCount() { + return events_.size(); + } + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event getEvents(int index) { + return events_.get(index); + } + /** + *
+     *Hardware Errors & Warnings
+     * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder getEventsOrBuilder( + int index) { + return events_.get(index); + } + + public static final int VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + *
+     *Software Information
+     * 
+ * + * string Version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + *
+     *Software Information
+     * 
+ * + * string Version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSIONNAME_FIELD_NUMBER = 6; + private volatile java.lang.Object versionName_; + /** + * string VersionName = 6; + */ + public java.lang.String getVersionName() { + java.lang.Object ref = versionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionName_ = s; + return s; + } + } + /** + * string VersionName = 6; + */ + public com.google.protobuf.ByteString + getVersionNameBytes() { + java.lang.Object ref = versionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + versionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSIONBUILDDATE_FIELD_NUMBER = 7; + private volatile java.lang.Object versionBuildDate_; + /** + * string VersionBuildDate = 7; + */ + public java.lang.String getVersionBuildDate() { + java.lang.Object ref = versionBuildDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionBuildDate_ = s; + return s; + } + } + /** + * string VersionBuildDate = 7; + */ + public com.google.protobuf.ByteString + getVersionBuildDateBytes() { + java.lang.Object ref = versionBuildDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + versionBuildDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (monitors_ != null) { + output.writeMessage(1, getMonitors()); + } + for (int i = 0; i < digitalPins_.size(); i++) { + output.writeMessage(2, digitalPins_.get(i)); + } + for (int i = 0; i < componentsStates_.size(); i++) { + output.writeMessage(3, componentsStates_.get(i)); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(4, events_.get(i)); + } + if (!getVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + if (!getVersionNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, versionName_); + } + if (!getVersionBuildDateBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, versionBuildDate_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (monitors_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMonitors()); + } + for (int i = 0; i < digitalPins_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, digitalPins_.get(i)); + } + for (int i = 0; i < componentsStates_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, componentsStates_.get(i)); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, events_.get(i)); + } + if (!getVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + if (!getVersionNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, versionName_); + } + if (!getVersionBuildDateBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, versionBuildDate_); + } + 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse other = (com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse) obj; + + boolean result = true; + result = result && (hasMonitors() == other.hasMonitors()); + if (hasMonitors()) { + result = result && getMonitors() + .equals(other.getMonitors()); + } + result = result && getDigitalPinsList() + .equals(other.getDigitalPinsList()); + result = result && getComponentsStatesList() + .equals(other.getComponentsStatesList()); + result = result && getEventsList() + .equals(other.getEventsList()); + result = result && getVersion() + .equals(other.getVersion()); + result = result && getVersionName() + .equals(other.getVersionName()); + result = result && getVersionBuildDate() + .equals(other.getVersionBuildDate()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMonitors()) { + hash = (37 * hash) + MONITORS_FIELD_NUMBER; + hash = (53 * hash) + getMonitors().hashCode(); + } + if (getDigitalPinsCount() > 0) { + hash = (37 * hash) + DIGITALPINS_FIELD_NUMBER; + hash = (53 * hash) + getDigitalPinsList().hashCode(); + } + if (getComponentsStatesCount() > 0) { + hash = (37 * hash) + COMPONENTSSTATES_FIELD_NUMBER; + hash = (53 * hash) + getComponentsStatesList().hashCode(); + } + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + VERSIONNAME_FIELD_NUMBER; + hash = (53 * hash) + getVersionName().hashCode(); + hash = (37 * hash) + VERSIONBUILDDATE_FIELD_NUMBER; + hash = (53 * hash) + getVersionBuildDate().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse 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 com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.PushDiagnosticsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.PushDiagnosticsResponse) + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.class, com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDigitalPinsFieldBuilder(); + getComponentsStatesFieldBuilder(); + getEventsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (monitorsBuilder_ == null) { + monitors_ = null; + } else { + monitors_ = null; + monitorsBuilder_ = null; + } + if (digitalPinsBuilder_ == null) { + digitalPins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + digitalPinsBuilder_.clear(); + } + if (componentsStatesBuilder_ == null) { + componentsStates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + componentsStatesBuilder_.clear(); + } + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + eventsBuilder_.clear(); + } + version_ = ""; + + versionName_ = ""; + + versionBuildDate_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse build() { + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse buildPartial() { + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse result = new com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (monitorsBuilder_ == null) { + result.monitors_ = monitors_; + } else { + result.monitors_ = monitorsBuilder_.build(); + } + if (digitalPinsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + digitalPins_ = java.util.Collections.unmodifiableList(digitalPins_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.digitalPins_ = digitalPins_; + } else { + result.digitalPins_ = digitalPinsBuilder_.build(); + } + if (componentsStatesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + componentsStates_ = java.util.Collections.unmodifiableList(componentsStates_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.componentsStates_ = componentsStates_; + } else { + result.componentsStates_ = componentsStatesBuilder_.build(); + } + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.build(); + } + result.version_ = version_; + result.versionName_ = versionName_; + result.versionBuildDate_ = versionBuildDate_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse other) { + if (other == com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse.getDefaultInstance()) return this; + if (other.hasMonitors()) { + mergeMonitors(other.getMonitors()); + } + if (digitalPinsBuilder_ == null) { + if (!other.digitalPins_.isEmpty()) { + if (digitalPins_.isEmpty()) { + digitalPins_ = other.digitalPins_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDigitalPinsIsMutable(); + digitalPins_.addAll(other.digitalPins_); + } + onChanged(); + } + } else { + if (!other.digitalPins_.isEmpty()) { + if (digitalPinsBuilder_.isEmpty()) { + digitalPinsBuilder_.dispose(); + digitalPinsBuilder_ = null; + digitalPins_ = other.digitalPins_; + bitField0_ = (bitField0_ & ~0x00000002); + digitalPinsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDigitalPinsFieldBuilder() : null; + } else { + digitalPinsBuilder_.addAllMessages(other.digitalPins_); + } + } + } + if (componentsStatesBuilder_ == null) { + if (!other.componentsStates_.isEmpty()) { + if (componentsStates_.isEmpty()) { + componentsStates_ = other.componentsStates_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureComponentsStatesIsMutable(); + componentsStates_.addAll(other.componentsStates_); + } + onChanged(); + } + } else { + if (!other.componentsStates_.isEmpty()) { + if (componentsStatesBuilder_.isEmpty()) { + componentsStatesBuilder_.dispose(); + componentsStatesBuilder_ = null; + componentsStates_ = other.componentsStates_; + bitField0_ = (bitField0_ & ~0x00000004); + componentsStatesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getComponentsStatesFieldBuilder() : null; + } else { + componentsStatesBuilder_.addAllMessages(other.componentsStates_); + } + } + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000008); + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + onChanged(); + } + if (!other.getVersionName().isEmpty()) { + versionName_ = other.versionName_; + onChanged(); + } + if (!other.getVersionBuildDate().isEmpty()) { + versionBuildDate_ = other.versionBuildDate_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors monitors_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder> monitorsBuilder_; + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public boolean hasMonitors() { + return monitorsBuilder_ != null || monitors_ != null; + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors getMonitors() { + if (monitorsBuilder_ == null) { + return monitors_ == null ? com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.getDefaultInstance() : monitors_; + } else { + return monitorsBuilder_.getMessage(); + } + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public Builder setMonitors(com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors value) { + if (monitorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + monitors_ = value; + onChanged(); + } else { + monitorsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public Builder setMonitors( + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder builderForValue) { + if (monitorsBuilder_ == null) { + monitors_ = builderForValue.build(); + onChanged(); + } else { + monitorsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public Builder mergeMonitors(com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors value) { + if (monitorsBuilder_ == null) { + if (monitors_ != null) { + monitors_ = + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.newBuilder(monitors_).mergeFrom(value).buildPartial(); + } else { + monitors_ = value; + } + onChanged(); + } else { + monitorsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public Builder clearMonitors() { + if (monitorsBuilder_ == null) { + monitors_ = null; + onChanged(); + } else { + monitors_ = null; + monitorsBuilder_ = null; + } + + return this; + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder getMonitorsBuilder() { + + onChanged(); + return getMonitorsFieldBuilder().getBuilder(); + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + public com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder getMonitorsOrBuilder() { + if (monitorsBuilder_ != null) { + return monitorsBuilder_.getMessageOrBuilder(); + } else { + return monitors_ == null ? + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.getDefaultInstance() : monitors_; + } + } + /** + *
+       *Monitors
+       * 
+ * + * .Tango.PMR.Diagnostics.DiagnosticsMonitors Monitors = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder> + getMonitorsFieldBuilder() { + if (monitorsBuilder_ == null) { + monitorsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitors.Builder, com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.DiagnosticsMonitorsOrBuilder>( + getMonitors(), + getParentForChildren(), + isClean()); + monitors_ = null; + } + return monitorsBuilder_; + } + + private java.util.List digitalPins_ = + java.util.Collections.emptyList(); + private void ensureDigitalPinsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + digitalPins_ = new java.util.ArrayList(digitalPins_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder> digitalPinsBuilder_; + + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public java.util.List getDigitalPinsList() { + if (digitalPinsBuilder_ == null) { + return java.util.Collections.unmodifiableList(digitalPins_); + } else { + return digitalPinsBuilder_.getMessageList(); + } + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public int getDigitalPinsCount() { + if (digitalPinsBuilder_ == null) { + return digitalPins_.size(); + } else { + return digitalPinsBuilder_.getCount(); + } + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin getDigitalPins(int index) { + if (digitalPinsBuilder_ == null) { + return digitalPins_.get(index); + } else { + return digitalPinsBuilder_.getMessage(index); + } + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder setDigitalPins( + int index, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin value) { + if (digitalPinsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalPinsIsMutable(); + digitalPins_.set(index, value); + onChanged(); + } else { + digitalPinsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder setDigitalPins( + int index, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder builderForValue) { + if (digitalPinsBuilder_ == null) { + ensureDigitalPinsIsMutable(); + digitalPins_.set(index, builderForValue.build()); + onChanged(); + } else { + digitalPinsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder addDigitalPins(com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin value) { + if (digitalPinsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalPinsIsMutable(); + digitalPins_.add(value); + onChanged(); + } else { + digitalPinsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder addDigitalPins( + int index, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin value) { + if (digitalPinsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDigitalPinsIsMutable(); + digitalPins_.add(index, value); + onChanged(); + } else { + digitalPinsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder addDigitalPins( + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder builderForValue) { + if (digitalPinsBuilder_ == null) { + ensureDigitalPinsIsMutable(); + digitalPins_.add(builderForValue.build()); + onChanged(); + } else { + digitalPinsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder addDigitalPins( + int index, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder builderForValue) { + if (digitalPinsBuilder_ == null) { + ensureDigitalPinsIsMutable(); + digitalPins_.add(index, builderForValue.build()); + onChanged(); + } else { + digitalPinsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder addAllDigitalPins( + java.lang.Iterable values) { + if (digitalPinsBuilder_ == null) { + ensureDigitalPinsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, digitalPins_); + onChanged(); + } else { + digitalPinsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder clearDigitalPins() { + if (digitalPinsBuilder_ == null) { + digitalPins_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + digitalPinsBuilder_.clear(); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public Builder removeDigitalPins(int index) { + if (digitalPinsBuilder_ == null) { + ensureDigitalPinsIsMutable(); + digitalPins_.remove(index); + onChanged(); + } else { + digitalPinsBuilder_.remove(index); + } + return this; + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder getDigitalPinsBuilder( + int index) { + return getDigitalPinsFieldBuilder().getBuilder(index); + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder getDigitalPinsOrBuilder( + int index) { + if (digitalPinsBuilder_ == null) { + return digitalPins_.get(index); } else { + return digitalPinsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public java.util.List + getDigitalPinsOrBuilderList() { + if (digitalPinsBuilder_ != null) { + return digitalPinsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(digitalPins_); + } + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder addDigitalPinsBuilder() { + return getDigitalPinsFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.getDefaultInstance()); + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder addDigitalPinsBuilder( + int index) { + return getDigitalPinsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.getDefaultInstance()); + } + /** + *
+       *Digital Pins States
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.DigitalPin DigitalPins = 2; + */ + public java.util.List + getDigitalPinsBuilderList() { + return getDigitalPinsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder> + getDigitalPinsFieldBuilder() { + if (digitalPinsBuilder_ == null) { + digitalPinsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPin.Builder, com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.DigitalPinOrBuilder>( + digitalPins_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + digitalPins_ = null; + } + return digitalPinsBuilder_; + } + + private java.util.List componentsStates_ = + java.util.Collections.emptyList(); + private void ensureComponentsStatesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + componentsStates_ = new java.util.ArrayList(componentsStates_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder> componentsStatesBuilder_; + + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public java.util.List getComponentsStatesList() { + if (componentsStatesBuilder_ == null) { + return java.util.Collections.unmodifiableList(componentsStates_); + } else { + return componentsStatesBuilder_.getMessageList(); + } + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public int getComponentsStatesCount() { + if (componentsStatesBuilder_ == null) { + return componentsStates_.size(); + } else { + return componentsStatesBuilder_.getCount(); + } + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState getComponentsStates(int index) { + if (componentsStatesBuilder_ == null) { + return componentsStates_.get(index); + } else { + return componentsStatesBuilder_.getMessage(index); + } + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder setComponentsStates( + int index, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState value) { + if (componentsStatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsStatesIsMutable(); + componentsStates_.set(index, value); + onChanged(); + } else { + componentsStatesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder setComponentsStates( + int index, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder builderForValue) { + if (componentsStatesBuilder_ == null) { + ensureComponentsStatesIsMutable(); + componentsStates_.set(index, builderForValue.build()); + onChanged(); + } else { + componentsStatesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder addComponentsStates(com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState value) { + if (componentsStatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsStatesIsMutable(); + componentsStates_.add(value); + onChanged(); + } else { + componentsStatesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder addComponentsStates( + int index, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState value) { + if (componentsStatesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureComponentsStatesIsMutable(); + componentsStates_.add(index, value); + onChanged(); + } else { + componentsStatesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder addComponentsStates( + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder builderForValue) { + if (componentsStatesBuilder_ == null) { + ensureComponentsStatesIsMutable(); + componentsStates_.add(builderForValue.build()); + onChanged(); + } else { + componentsStatesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder addComponentsStates( + int index, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder builderForValue) { + if (componentsStatesBuilder_ == null) { + ensureComponentsStatesIsMutable(); + componentsStates_.add(index, builderForValue.build()); + onChanged(); + } else { + componentsStatesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder addAllComponentsStates( + java.lang.Iterable values) { + if (componentsStatesBuilder_ == null) { + ensureComponentsStatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, componentsStates_); + onChanged(); + } else { + componentsStatesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder clearComponentsStates() { + if (componentsStatesBuilder_ == null) { + componentsStates_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + componentsStatesBuilder_.clear(); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public Builder removeComponentsStates(int index) { + if (componentsStatesBuilder_ == null) { + ensureComponentsStatesIsMutable(); + componentsStates_.remove(index); + onChanged(); + } else { + componentsStatesBuilder_.remove(index); + } + return this; + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder getComponentsStatesBuilder( + int index) { + return getComponentsStatesFieldBuilder().getBuilder(index); + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder getComponentsStatesOrBuilder( + int index) { + if (componentsStatesBuilder_ == null) { + return componentsStates_.get(index); } else { + return componentsStatesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public java.util.List + getComponentsStatesOrBuilderList() { + if (componentsStatesBuilder_ != null) { + return componentsStatesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(componentsStates_); + } + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder addComponentsStatesBuilder() { + return getComponentsStatesFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.getDefaultInstance()); + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder addComponentsStatesBuilder( + int index) { + return getComponentsStatesFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.getDefaultInstance()); + } + /** + *
+       *Value Components Effective Values
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.ValueComponentState ComponentsStates = 3; + */ + public java.util.List + getComponentsStatesBuilderList() { + return getComponentsStatesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder> + getComponentsStatesFieldBuilder() { + if (componentsStatesBuilder_ == null) { + componentsStatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder>( + componentsStates_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + componentsStates_ = null; + } + return componentsStatesBuilder_; + } + + private java.util.List events_ = + java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.EventOuterClass.Event, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder, com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder> eventsBuilder_; + + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder setEvents( + int index, com.twine.tango.pmr.diagnostics.EventOuterClass.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder setEvents( + int index, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder addEvents(com.twine.tango.pmr.diagnostics.EventOuterClass.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder addEvents( + int index, com.twine.tango.pmr.diagnostics.EventOuterClass.Event value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder addEvents( + com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder addEvents( + int index, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder getEventsBuilder( + int index) { + return getEventsFieldBuilder().getBuilder(index); + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder getEventsOrBuilder( + int index) { + if (eventsBuilder_ == null) { + return events_.get(index); } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder addEventsBuilder() { + return getEventsFieldBuilder().addBuilder( + com.twine.tango.pmr.diagnostics.EventOuterClass.Event.getDefaultInstance()); + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.getDefaultInstance()); + } + /** + *
+       *Hardware Errors & Warnings
+       * 
+ * + * repeated .Tango.PMR.Diagnostics.Event Events = 4; + */ + public java.util.List + getEventsBuilderList() { + return getEventsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.EventOuterClass.Event, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder, com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder> + getEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.diagnostics.EventOuterClass.Event, com.twine.tango.pmr.diagnostics.EventOuterClass.Event.Builder, com.twine.tango.pmr.diagnostics.EventOuterClass.EventOrBuilder>( + events_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + events_ = null; + } + return eventsBuilder_; + } + + private java.lang.Object version_ = ""; + /** + *
+       *Software Information
+       * 
+ * + * string Version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       *Software Information
+       * 
+ * + * string Version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       *Software Information
+       * 
+ * + * string Version = 5; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + version_ = value; + onChanged(); + return this; + } + /** + *
+       *Software Information
+       * 
+ * + * string Version = 5; + */ + public Builder clearVersion() { + + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       *Software Information
+       * 
+ * + * string Version = 5; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + version_ = value; + onChanged(); + return this; + } + + private java.lang.Object versionName_ = ""; + /** + * string VersionName = 6; + */ + public java.lang.String getVersionName() { + java.lang.Object ref = versionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string VersionName = 6; + */ + public com.google.protobuf.ByteString + getVersionNameBytes() { + java.lang.Object ref = versionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + versionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string VersionName = 6; + */ + public Builder setVersionName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + versionName_ = value; + onChanged(); + return this; + } + /** + * string VersionName = 6; + */ + public Builder clearVersionName() { + + versionName_ = getDefaultInstance().getVersionName(); + onChanged(); + return this; + } + /** + * string VersionName = 6; + */ + public Builder setVersionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + versionName_ = value; + onChanged(); + return this; + } + + private java.lang.Object versionBuildDate_ = ""; + /** + * string VersionBuildDate = 7; + */ + public java.lang.String getVersionBuildDate() { + java.lang.Object ref = versionBuildDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + versionBuildDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string VersionBuildDate = 7; + */ + public com.google.protobuf.ByteString + getVersionBuildDateBytes() { + java.lang.Object ref = versionBuildDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + versionBuildDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string VersionBuildDate = 7; + */ + public Builder setVersionBuildDate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + versionBuildDate_ = value; + onChanged(); + return this; + } + /** + * string VersionBuildDate = 7; + */ + public Builder clearVersionBuildDate() { + + versionBuildDate_ = getDefaultInstance().getVersionBuildDate(); + onChanged(); + return this; + } + /** + * string VersionBuildDate = 7; + */ + public Builder setVersionBuildDateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + versionBuildDate_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.PushDiagnosticsResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.PushDiagnosticsResponse) + private static final com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse(); + } + + public static com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public PushDiagnosticsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PushDiagnosticsResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.PushDiagnosticsResponseOuterClass.PushDiagnosticsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_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\035PushDiagnosticsResponse.proto\022\025Tango.P" + + "MR.Diagnostics\032\020DigitalPin.proto\032\031ValueC" + + "omponentState.proto\032\031DiagnosticsMonitors" + + ".proto\032\013Event.proto\"\303\002\n\027PushDiagnosticsR" + + "esponse\022<\n\010Monitors\030\001 \001(\0132*.Tango.PMR.Di" + + "agnostics.DiagnosticsMonitors\0226\n\013Digital" + + "Pins\030\002 \003(\0132!.Tango.PMR.Diagnostics.Digit" + + "alPin\022D\n\020ComponentsStates\030\003 \003(\0132*.Tango." + + "PMR.Diagnostics.ValueComponentState\022,\n\006E" + + "vents\030\004 \003(\0132\034.Tango.PMR.Diagnostics.Even", + "t\022\017\n\007Version\030\005 \001(\t\022\023\n\013VersionName\030\006 \001(\t\022" + + "\030\n\020VersionBuildDate\030\007 \001(\tB!\n\037com.twine.t" + + "ango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.getDescriptor(), + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.getDescriptor(), + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.getDescriptor(), + com.twine.tango.pmr.diagnostics.EventOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_PushDiagnosticsResponse_descriptor, + new java.lang.String[] { "Monitors", "DigitalPins", "ComponentsStates", "Events", "Version", "VersionName", "VersionBuildDate", }); + com.twine.tango.pmr.diagnostics.DigitalPinOuterClass.getDescriptor(); + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.getDescriptor(); + com.twine.tango.pmr.diagnostics.DiagnosticsMonitorsOuterClass.getDescriptor(); + com.twine.tango.pmr.diagnostics.EventOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueRequestOuterClass.java new file mode 100644 index 000000000..38b45f468 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueRequestOuterClass.java @@ -0,0 +1,604 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetComponentValueRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class SetComponentValueRequestOuterClass { + private SetComponentValueRequestOuterClass() {} + 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 SetComponentValueRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.SetComponentValueRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + int getComponentValue(); + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent getComponent(); + + /** + * double Value = 2; + */ + double getValue(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.SetComponentValueRequest} + */ + public static final class SetComponentValueRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.SetComponentValueRequest) + SetComponentValueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetComponentValueRequest.newBuilder() to construct. + private SetComponentValueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetComponentValueRequest() { + component_ = 0; + value_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetComponentValueRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + component_ = rawValue; + break; + } + case 17: { + + value_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.class, com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.Builder.class); + } + + public static final int COMPONENT_FIELD_NUMBER = 1; + private int component_; + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public int getComponentValue() { + return component_; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent getComponent() { + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent result = com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.valueOf(component_); + return result == null ? com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private double value_; + /** + * double Value = 2; + */ + public double getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (component_ != com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.Heater1Temp.getNumber()) { + output.writeEnum(1, component_); + } + if (value_ != 0D) { + output.writeDouble(2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (component_ != com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.Heater1Temp.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, component_); + } + if (value_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); + } + 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 com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest other = (com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest) obj; + + boolean result = true; + result = result && component_ == other.component_; + result = result && ( + java.lang.Double.doubleToLongBits(getValue()) + == java.lang.Double.doubleToLongBits( + other.getValue())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMPONENT_FIELD_NUMBER; + hash = (53 * hash) + component_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest 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 com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest 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 com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.SetComponentValueRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.SetComponentValueRequest) + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.class, com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + component_ = 0; + + value_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest build() { + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest buildPartial() { + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest result = new com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest(this); + result.component_ = component_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest other) { + if (other == com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest.getDefaultInstance()) return this; + if (other.component_ != 0) { + setComponentValue(other.getComponentValue()); + } + if (other.getValue() != 0D) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int component_ = 0; + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public int getComponentValue() { + return component_; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public Builder setComponentValue(int value) { + component_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent getComponent() { + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent result = com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.valueOf(component_); + return result == null ? com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public Builder setComponent(com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent value) { + if (value == null) { + throw new NullPointerException(); + } + + component_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public Builder clearComponent() { + + component_ = 0; + onChanged(); + return this; + } + + private double value_ ; + /** + * double Value = 2; + */ + public double getValue() { + return value_; + } + /** + * double Value = 2; + */ + public Builder setValue(double value) { + + value_ = value; + onChanged(); + return this; + } + /** + * double Value = 2; + */ + public Builder clearValue() { + + value_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.SetComponentValueRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.SetComponentValueRequest) + private static final com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest(); + } + + public static com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SetComponentValueRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetComponentValueRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueRequestOuterClass.SetComponentValueRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_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\036SetComponentValueRequest.proto\022\025Tango." + + "PMR.Diagnostics\032\024ValueComponent.proto\"c\n" + + "\030SetComponentValueRequest\0228\n\tComponent\030\001" + + " \001(\0162%.Tango.PMR.Diagnostics.ValueCompon" + + "ent\022\r\n\005Value\030\002 \001(\001B!\n\037com.twine.tango.pm" + + "r.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_SetComponentValueRequest_descriptor, + new java.lang.String[] { "Component", "Value", }); + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueResponseOuterClass.java new file mode 100644 index 000000000..a2d5e81d4 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetComponentValueResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetComponentValueResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class SetComponentValueResponseOuterClass { + private SetComponentValueResponseOuterClass() {} + 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 SetComponentValueResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.SetComponentValueResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.SetComponentValueResponse} + */ + public static final class SetComponentValueResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.SetComponentValueResponse) + SetComponentValueResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetComponentValueResponse.newBuilder() to construct. + private SetComponentValueResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetComponentValueResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetComponentValueResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.class, com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse other = (com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse 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 com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse 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 com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.SetComponentValueResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.SetComponentValueResponse) + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.class, com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse build() { + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse buildPartial() { + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse result = new com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse other) { + if (other == com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.SetComponentValueResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.SetComponentValueResponse) + private static final com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse(); + } + + public static com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SetComponentValueResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetComponentValueResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.SetComponentValueResponseOuterClass.SetComponentValueResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_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\037SetComponentValueResponse.proto\022\025Tango" + + ".PMR.Diagnostics\"\033\n\031SetComponentValueRes" + + "ponseB!\n\037com.twine.tango.pmr.diagnostics" + + "b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_SetComponentValueResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutRequestOuterClass.java new file mode 100644 index 000000000..512a76a72 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutRequestOuterClass.java @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetDigitalOutRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class SetDigitalOutRequestOuterClass { + private SetDigitalOutRequestOuterClass() {} + 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 SetDigitalOutRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.SetDigitalOutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Port = 1; + */ + int getPort(); + + /** + * bool Value = 2; + */ + boolean getValue(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.SetDigitalOutRequest} + */ + public static final class SetDigitalOutRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.SetDigitalOutRequest) + SetDigitalOutRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetDigitalOutRequest.newBuilder() to construct. + private SetDigitalOutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetDigitalOutRequest() { + port_ = 0; + value_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetDigitalOutRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + port_ = input.readInt32(); + break; + } + case 16: { + + value_ = input.readBool(); + 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 com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.class, com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.Builder.class); + } + + public static final int PORT_FIELD_NUMBER = 1; + private int port_; + /** + * int32 Port = 1; + */ + public int getPort() { + return port_; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private boolean value_; + /** + * bool Value = 2; + */ + public boolean getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (port_ != 0) { + output.writeInt32(1, port_); + } + if (value_ != false) { + output.writeBool(2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, port_); + } + if (value_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, value_); + } + 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 com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest other = (com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest) obj; + + boolean result = true; + result = result && (getPort() + == other.getPort()); + result = result && (getValue() + == other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValue()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest 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 com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest 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 com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.SetDigitalOutRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.SetDigitalOutRequest) + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.class, com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + port_ = 0; + + value_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest build() { + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest buildPartial() { + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest result = new com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest(this); + result.port_ = port_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest other) { + if (other == com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest.getDefaultInstance()) return this; + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (other.getValue() != false) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int port_ ; + /** + * int32 Port = 1; + */ + public int getPort() { + return port_; + } + /** + * int32 Port = 1; + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * int32 Port = 1; + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private boolean value_ ; + /** + * bool Value = 2; + */ + public boolean getValue() { + return value_; + } + /** + * bool Value = 2; + */ + public Builder setValue(boolean value) { + + value_ = value; + onChanged(); + return this; + } + /** + * bool Value = 2; + */ + public Builder clearValue() { + + value_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.SetDigitalOutRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.SetDigitalOutRequest) + private static final com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest(); + } + + public static com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SetDigitalOutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetDigitalOutRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutRequestOuterClass.SetDigitalOutRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_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\032SetDigitalOutRequest.proto\022\025Tango.PMR." + + "Diagnostics\"3\n\024SetDigitalOutRequest\022\014\n\004P" + + "ort\030\001 \001(\005\022\r\n\005Value\030\002 \001(\010B!\n\037com.twine.ta" + + "ngo.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_SetDigitalOutRequest_descriptor, + new java.lang.String[] { "Port", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutResponseOuterClass.java new file mode 100644 index 000000000..a9c7145f0 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/SetDigitalOutResponseOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetDigitalOutResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class SetDigitalOutResponseOuterClass { + private SetDigitalOutResponseOuterClass() {} + 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 SetDigitalOutResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.SetDigitalOutResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.SetDigitalOutResponse} + */ + public static final class SetDigitalOutResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.SetDigitalOutResponse) + SetDigitalOutResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetDigitalOutResponse.newBuilder() to construct. + private SetDigitalOutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetDigitalOutResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetDigitalOutResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.class, com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse other = (com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse 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 com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse 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 com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.SetDigitalOutResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.SetDigitalOutResponse) + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.class, com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse build() { + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse buildPartial() { + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse result = new com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse other) { + if (other == com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.SetDigitalOutResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.SetDigitalOutResponse) + private static final com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse(); + } + + public static com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public SetDigitalOutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetDigitalOutResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.SetDigitalOutResponseOuterClass.SetDigitalOutResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_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\033SetDigitalOutResponse.proto\022\025Tango.PMR" + + ".Diagnostics\"\027\n\025SetDigitalOutResponseB!\n" + + "\037com.twine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_SetDigitalOutResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingRequestOuterClass.java new file mode 100644 index 000000000..d77fe299a --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingRequestOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ThreadAbortJoggingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class ThreadAbortJoggingRequestOuterClass { + private ThreadAbortJoggingRequestOuterClass() {} + 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 ThreadAbortJoggingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.ThreadAbortJoggingRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.ThreadAbortJoggingRequest} + */ + public static final class ThreadAbortJoggingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.ThreadAbortJoggingRequest) + ThreadAbortJoggingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThreadAbortJoggingRequest.newBuilder() to construct. + private ThreadAbortJoggingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ThreadAbortJoggingRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ThreadAbortJoggingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.class, com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest other = (com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.ThreadAbortJoggingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.ThreadAbortJoggingRequest) + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.class, com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest build() { + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest result = new com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.ThreadAbortJoggingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.ThreadAbortJoggingRequest) + private static final com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ThreadAbortJoggingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThreadAbortJoggingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingRequestOuterClass.ThreadAbortJoggingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_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\037ThreadAbortJoggingRequest.proto\022\025Tango" + + ".PMR.Diagnostics\"\033\n\031ThreadAbortJoggingRe" + + "questB!\n\037com.twine.tango.pmr.diagnostics" + + "b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingRequest_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingResponseOuterClass.java new file mode 100644 index 000000000..70edde1cc --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadAbortJoggingResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ThreadAbortJoggingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class ThreadAbortJoggingResponseOuterClass { + private ThreadAbortJoggingResponseOuterClass() {} + 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 ThreadAbortJoggingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.ThreadAbortJoggingResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.ThreadAbortJoggingResponse} + */ + public static final class ThreadAbortJoggingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.ThreadAbortJoggingResponse) + ThreadAbortJoggingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThreadAbortJoggingResponse.newBuilder() to construct. + private ThreadAbortJoggingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ThreadAbortJoggingResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ThreadAbortJoggingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.class, com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse other = (com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse 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 com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.ThreadAbortJoggingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.ThreadAbortJoggingResponse) + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.class, com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse build() { + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse result = new com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.ThreadAbortJoggingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.ThreadAbortJoggingResponse) + private static final com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ThreadAbortJoggingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThreadAbortJoggingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.ThreadAbortJoggingResponseOuterClass.ThreadAbortJoggingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_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 ThreadAbortJoggingResponse.proto\022\025Tang" + + "o.PMR.Diagnostics\"\034\n\032ThreadAbortJoggingR" + + "esponseB!\n\037com.twine.tango.pmr.diagnosti" + + "csb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_ThreadAbortJoggingResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingRequestOuterClass.java new file mode 100644 index 000000000..1b6711b8d --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingRequestOuterClass.java @@ -0,0 +1,604 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ThreadJoggingRequest.proto + +package com.twine.tango.pmr.diagnostics; + +public final class ThreadJoggingRequestOuterClass { + private ThreadJoggingRequestOuterClass() {} + 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 ThreadJoggingRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.ThreadJoggingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + int getDirectionValue(); + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection(); + + /** + * double Speed = 3; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.ThreadJoggingRequest} + */ + public static final class ThreadJoggingRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.ThreadJoggingRequest) + ThreadJoggingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThreadJoggingRequest.newBuilder() to construct. + private ThreadJoggingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ThreadJoggingRequest() { + direction_ = 0; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ThreadJoggingRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + direction_ = rawValue; + break; + } + case 25: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.class, com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.Builder.class); + } + + public static final int DIRECTION_FIELD_NUMBER = 1; + private int direction_; + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public int getDirectionValue() { + return direction_; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection() { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection result = com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.valueOf(direction_); + return result == null ? com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.UNRECOGNIZED : result; + } + + public static final int SPEED_FIELD_NUMBER = 3; + private double speed_; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (direction_ != com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.Forward.getNumber()) { + output.writeEnum(1, direction_); + } + if (speed_ != 0D) { + output.writeDouble(3, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (direction_ != com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.Forward.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, direction_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, speed_); + } + 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 com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest other = (com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest) obj; + + boolean result = true; + result = result && direction_ == other.direction_; + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + direction_; + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest 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 com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest 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 com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.ThreadJoggingRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.ThreadJoggingRequest) + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.class, com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + direction_ = 0; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_descriptor; + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest build() { + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest buildPartial() { + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest result = new com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest(this); + result.direction_ = direction_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest) { + return mergeFrom((com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest other) { + if (other == com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest.getDefaultInstance()) return this; + if (other.direction_ != 0) { + setDirectionValue(other.getDirectionValue()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int direction_ = 0; + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public int getDirectionValue() { + return direction_; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder setDirectionValue(int value) { + direction_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection getDirection() { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection result = com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.valueOf(direction_); + return result == null ? com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder setDirection(com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.MotorDirection value) { + if (value == null) { + throw new NullPointerException(); + } + + direction_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.MotorDirection Direction = 1; + */ + public Builder clearDirection() { + + direction_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 3; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 3; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.ThreadJoggingRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.ThreadJoggingRequest) + private static final com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest(); + } + + public static com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ThreadJoggingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThreadJoggingRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingRequestOuterClass.ThreadJoggingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_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\032ThreadJoggingRequest.proto\022\025Tango.PMR." + + "Diagnostics\032\024MotorDirection.proto\"_\n\024Thr" + + "eadJoggingRequest\0228\n\tDirection\030\001 \001(\0162%.T" + + "ango.PMR.Diagnostics.MotorDirection\022\r\n\005S" + + "peed\030\003 \001(\001B!\n\037com.twine.tango.pmr.diagno" + + "sticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_ThreadJoggingRequest_descriptor, + new java.lang.String[] { "Direction", "Speed", }); + com.twine.tango.pmr.diagnostics.MotorDirectionOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingResponseOuterClass.java new file mode 100644 index 000000000..94a7ccde6 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ThreadJoggingResponseOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ThreadJoggingResponse.proto + +package com.twine.tango.pmr.diagnostics; + +public final class ThreadJoggingResponseOuterClass { + private ThreadJoggingResponseOuterClass() {} + 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 ThreadJoggingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.ThreadJoggingResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.ThreadJoggingResponse} + */ + public static final class ThreadJoggingResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.ThreadJoggingResponse) + ThreadJoggingResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ThreadJoggingResponse.newBuilder() to construct. + private ThreadJoggingResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ThreadJoggingResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ThreadJoggingResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.class, com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse other = (com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse 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 com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse 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 com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.ThreadJoggingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.ThreadJoggingResponse) + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.class, com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_descriptor; + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse build() { + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse buildPartial() { + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse result = new com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse) { + return mergeFrom((com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse other) { + if (other == com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.ThreadJoggingResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.ThreadJoggingResponse) + private static final com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse(); + } + + public static com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ThreadJoggingResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ThreadJoggingResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.ThreadJoggingResponseOuterClass.ThreadJoggingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_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\033ThreadJoggingResponse.proto\022\025Tango.PMR" + + ".Diagnostics\"\027\n\025ThreadJoggingResponseB!\n" + + "\037com.twine.tango.pmr.diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_ThreadJoggingResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentOuterClass.java new file mode 100644 index 000000000..18a157859 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentOuterClass.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ValueComponent.proto + +package com.twine.tango.pmr.diagnostics; + +public final class ValueComponentOuterClass { + private ValueComponentOuterClass() {} + 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 Tango.PMR.Diagnostics.ValueComponent} + */ + public enum ValueComponent + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Heater 1 Temperature (Min = 0, Max = 100)
+     * 
+ * + * Heater1Temp = 0; + */ + Heater1Temp(0), + /** + *
+     *Heater 2 Temperature (Min = 0, Max = 100)
+     * 
+ * + * Heater2Temp = 1; + */ + Heater2Temp(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Heater 1 Temperature (Min = 0, Max = 100)
+     * 
+ * + * Heater1Temp = 0; + */ + public static final int Heater1Temp_VALUE = 0; + /** + *
+     *Heater 2 Temperature (Min = 0, Max = 100)
+     * 
+ * + * Heater2Temp = 1; + */ + public static final int Heater2Temp_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ValueComponent valueOf(int value) { + return forNumber(value); + } + + public static ValueComponent forNumber(int value) { + switch (value) { + case 0: return Heater1Temp; + case 1: return Heater2Temp; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ValueComponent> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ValueComponent findValueByNumber(int number) { + return ValueComponent.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 com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final ValueComponent[] VALUES = values(); + + public static ValueComponent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ValueComponent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Diagnostics.ValueComponent) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\024ValueComponent.proto\022\025Tango.PMR.Diagno" + + "stics*2\n\016ValueComponent\022\017\n\013Heater1Temp\020\000" + + "\022\017\n\013Heater2Temp\020\001B!\n\037com.twine.tango.pmr" + + ".diagnosticsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentStateOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentStateOuterClass.java new file mode 100644 index 000000000..b85bddbb3 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/diagnostics/ValueComponentStateOuterClass.java @@ -0,0 +1,604 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ValueComponentState.proto + +package com.twine.tango.pmr.diagnostics; + +public final class ValueComponentStateOuterClass { + private ValueComponentStateOuterClass() {} + 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 ValueComponentStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Diagnostics.ValueComponentState) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + int getComponentValue(); + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent getComponent(); + + /** + * double Value = 2; + */ + double getValue(); + } + /** + * Protobuf type {@code Tango.PMR.Diagnostics.ValueComponentState} + */ + public static final class ValueComponentState extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Diagnostics.ValueComponentState) + ValueComponentStateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ValueComponentState.newBuilder() to construct. + private ValueComponentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ValueComponentState() { + component_ = 0; + value_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ValueComponentState( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + component_ = rawValue; + break; + } + case 17: { + + value_ = input.readDouble(); + 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 com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.internal_static_Tango_PMR_Diagnostics_ValueComponentState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.internal_static_Tango_PMR_Diagnostics_ValueComponentState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.class, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder.class); + } + + public static final int COMPONENT_FIELD_NUMBER = 1; + private int component_; + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public int getComponentValue() { + return component_; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent getComponent() { + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent result = com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.valueOf(component_); + return result == null ? com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.UNRECOGNIZED : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private double value_; + /** + * double Value = 2; + */ + public double getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (component_ != com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.Heater1Temp.getNumber()) { + output.writeEnum(1, component_); + } + if (value_ != 0D) { + output.writeDouble(2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (component_ != com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.Heater1Temp.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, component_); + } + if (value_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, value_); + } + 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 com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState)) { + return super.equals(obj); + } + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState other = (com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState) obj; + + boolean result = true; + result = result && component_ == other.component_; + result = result && ( + java.lang.Double.doubleToLongBits(getValue()) + == java.lang.Double.doubleToLongBits( + other.getValue())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COMPONENT_FIELD_NUMBER; + hash = (53 * hash) + component_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState 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 com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState 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 com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Diagnostics.ValueComponentState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Diagnostics.ValueComponentState) + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.internal_static_Tango_PMR_Diagnostics_ValueComponentState_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.internal_static_Tango_PMR_Diagnostics_ValueComponentState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.class, com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.Builder.class); + } + + // Construct using com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + component_ = 0; + + value_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.internal_static_Tango_PMR_Diagnostics_ValueComponentState_descriptor; + } + + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState getDefaultInstanceForType() { + return com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.getDefaultInstance(); + } + + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState build() { + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState buildPartial() { + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState result = new com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState(this); + result.component_ = component_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState) { + return mergeFrom((com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState other) { + if (other == com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState.getDefaultInstance()) return this; + if (other.component_ != 0) { + setComponentValue(other.getComponentValue()); + } + if (other.getValue() != 0D) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int component_ = 0; + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public int getComponentValue() { + return component_; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public Builder setComponentValue(int value) { + component_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent getComponent() { + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent result = com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.valueOf(component_); + return result == null ? com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public Builder setComponent(com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.ValueComponent value) { + if (value == null) { + throw new NullPointerException(); + } + + component_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Diagnostics.ValueComponent Component = 1; + */ + public Builder clearComponent() { + + component_ = 0; + onChanged(); + return this; + } + + private double value_ ; + /** + * double Value = 2; + */ + public double getValue() { + return value_; + } + /** + * double Value = 2; + */ + public Builder setValue(double value) { + + value_ = value; + onChanged(); + return this; + } + /** + * double Value = 2; + */ + public Builder clearValue() { + + value_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Diagnostics.ValueComponentState) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Diagnostics.ValueComponentState) + private static final com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState(); + } + + public static com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ValueComponentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValueComponentState(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.diagnostics.ValueComponentStateOuterClass.ValueComponentState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Diagnostics_ValueComponentState_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Diagnostics_ValueComponentState_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\031ValueComponentState.proto\022\025Tango.PMR.D" + + "iagnostics\032\024ValueComponent.proto\"^\n\023Valu" + + "eComponentState\0228\n\tComponent\030\001 \001(\0162%.Tan" + + "go.PMR.Diagnostics.ValueComponent\022\r\n\005Val" + + "ue\030\002 \001(\001B!\n\037com.twine.tango.pmr.diagnost" + + "icsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Diagnostics_ValueComponentState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Diagnostics_ValueComponentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Diagnostics_ValueComponentState_descriptor, + new java.lang.String[] { "Component", "Value", }); + com.twine.tango.pmr.diagnostics.ValueComponentOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeInputOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeInputOuterClass.java new file mode 100644 index 000000000..c06cdea31 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeInputOuterClass.java @@ -0,0 +1,578 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AnalyzeInput.proto + +package com.twine.tango.pmr.embroidery; + +public final class AnalyzeInputOuterClass { + private AnalyzeInputOuterClass() {} + 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 AnalyzeInputOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.AnalyzeInput) + com.google.protobuf.MessageOrBuilder { + + /** + * string FilePath = 1; + */ + java.lang.String getFilePath(); + /** + * string FilePath = 1; + */ + com.google.protobuf.ByteString + getFilePathBytes(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.AnalyzeInput} + */ + public static final class AnalyzeInput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.AnalyzeInput) + AnalyzeInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnalyzeInput.newBuilder() to construct. + private AnalyzeInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnalyzeInput() { + filePath_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnalyzeInput( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + filePath_ = s; + 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 com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeInput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.class, com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.Builder.class); + } + + public static final int FILEPATH_FIELD_NUMBER = 1; + private volatile java.lang.Object filePath_; + /** + * string FilePath = 1; + */ + public java.lang.String getFilePath() { + java.lang.Object ref = filePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filePath_ = s; + return s; + } + } + /** + * string FilePath = 1; + */ + public com.google.protobuf.ByteString + getFilePathBytes() { + java.lang.Object ref = filePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getFilePathBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filePath_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getFilePathBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filePath_); + } + 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 com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput other = (com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput) obj; + + boolean result = true; + result = result && getFilePath() + .equals(other.getFilePath()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILEPATH_FIELD_NUMBER; + hash = (53 * hash) + getFilePath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput 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 com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput 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 com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.AnalyzeInput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.AnalyzeInput) + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeInput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.class, com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + filePath_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeInput_descriptor; + } + + public com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput build() { + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput buildPartial() { + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput result = new com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput(this); + result.filePath_ = filePath_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput) { + return mergeFrom((com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput other) { + if (other == com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput.getDefaultInstance()) return this; + if (!other.getFilePath().isEmpty()) { + filePath_ = other.filePath_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object filePath_ = ""; + /** + * string FilePath = 1; + */ + public java.lang.String getFilePath() { + java.lang.Object ref = filePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string FilePath = 1; + */ + public com.google.protobuf.ByteString + getFilePathBytes() { + java.lang.Object ref = filePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string FilePath = 1; + */ + public Builder setFilePath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filePath_ = value; + onChanged(); + return this; + } + /** + * string FilePath = 1; + */ + public Builder clearFilePath() { + + filePath_ = getDefaultInstance().getFilePath(); + onChanged(); + return this; + } + /** + * string FilePath = 1; + */ + public Builder setFilePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filePath_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.AnalyzeInput) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.AnalyzeInput) + private static final com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput(); + } + + public static com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public AnalyzeInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalyzeInput(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.AnalyzeInputOuterClass.AnalyzeInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_AnalyzeInput_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_AnalyzeInput_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\022AnalyzeInput.proto\022\024Tango.PMR.Embroide" + + "ry\" \n\014AnalyzeInput\022\020\n\010FilePath\030\001 \001(\tB \n\036" + + "com.twine.tango.pmr.embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Embroidery_AnalyzeInput_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_AnalyzeInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_AnalyzeInput_descriptor, + new java.lang.String[] { "FilePath", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeOutputOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeOutputOuterClass.java new file mode 100644 index 000000000..ded14ad0e --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/AnalyzeOutputOuterClass.java @@ -0,0 +1,639 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AnalyzeOutput.proto + +package com.twine.tango.pmr.embroidery; + +public final class AnalyzeOutputOuterClass { + private AnalyzeOutputOuterClass() {} + 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 AnalyzeOutputOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.AnalyzeOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + boolean hasEmbroideryFile(); + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile getEmbroideryFile(); + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder getEmbroideryFileOrBuilder(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.AnalyzeOutput} + */ + public static final class AnalyzeOutput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.AnalyzeOutput) + AnalyzeOutputOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnalyzeOutput.newBuilder() to construct. + private AnalyzeOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AnalyzeOutput() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnalyzeOutput( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder subBuilder = null; + if (embroideryFile_ != null) { + subBuilder = embroideryFile_.toBuilder(); + } + embroideryFile_ = input.readMessage(com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(embroideryFile_); + embroideryFile_ = subBuilder.buildPartial(); + } + + 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 com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeOutput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.class, com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.Builder.class); + } + + public static final int EMBROIDERYFILE_FIELD_NUMBER = 1; + private com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile embroideryFile_; + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public boolean hasEmbroideryFile() { + return embroideryFile_ != null; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile getEmbroideryFile() { + return embroideryFile_ == null ? com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.getDefaultInstance() : embroideryFile_; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder getEmbroideryFileOrBuilder() { + return getEmbroideryFile(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (embroideryFile_ != null) { + output.writeMessage(1, getEmbroideryFile()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (embroideryFile_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEmbroideryFile()); + } + 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 com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput other = (com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput) obj; + + boolean result = true; + result = result && (hasEmbroideryFile() == other.hasEmbroideryFile()); + if (hasEmbroideryFile()) { + result = result && getEmbroideryFile() + .equals(other.getEmbroideryFile()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasEmbroideryFile()) { + hash = (37 * hash) + EMBROIDERYFILE_FIELD_NUMBER; + hash = (53 * hash) + getEmbroideryFile().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput 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 com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput 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 com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.AnalyzeOutput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.AnalyzeOutput) + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeOutput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.class, com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (embroideryFileBuilder_ == null) { + embroideryFile_ = null; + } else { + embroideryFile_ = null; + embroideryFileBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.internal_static_Tango_PMR_Embroidery_AnalyzeOutput_descriptor; + } + + public com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput build() { + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput buildPartial() { + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput result = new com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput(this); + if (embroideryFileBuilder_ == null) { + result.embroideryFile_ = embroideryFile_; + } else { + result.embroideryFile_ = embroideryFileBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput) { + return mergeFrom((com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput other) { + if (other == com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput.getDefaultInstance()) return this; + if (other.hasEmbroideryFile()) { + mergeEmbroideryFile(other.getEmbroideryFile()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile embroideryFile_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder> embroideryFileBuilder_; + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public boolean hasEmbroideryFile() { + return embroideryFileBuilder_ != null || embroideryFile_ != null; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile getEmbroideryFile() { + if (embroideryFileBuilder_ == null) { + return embroideryFile_ == null ? com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.getDefaultInstance() : embroideryFile_; + } else { + return embroideryFileBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public Builder setEmbroideryFile(com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile value) { + if (embroideryFileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + embroideryFile_ = value; + onChanged(); + } else { + embroideryFileBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public Builder setEmbroideryFile( + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder builderForValue) { + if (embroideryFileBuilder_ == null) { + embroideryFile_ = builderForValue.build(); + onChanged(); + } else { + embroideryFileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public Builder mergeEmbroideryFile(com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile value) { + if (embroideryFileBuilder_ == null) { + if (embroideryFile_ != null) { + embroideryFile_ = + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.newBuilder(embroideryFile_).mergeFrom(value).buildPartial(); + } else { + embroideryFile_ = value; + } + onChanged(); + } else { + embroideryFileBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public Builder clearEmbroideryFile() { + if (embroideryFileBuilder_ == null) { + embroideryFile_ = null; + onChanged(); + } else { + embroideryFile_ = null; + embroideryFileBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder getEmbroideryFileBuilder() { + + onChanged(); + return getEmbroideryFileFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder getEmbroideryFileOrBuilder() { + if (embroideryFileBuilder_ != null) { + return embroideryFileBuilder_.getMessageOrBuilder(); + } else { + return embroideryFile_ == null ? + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.getDefaultInstance() : embroideryFile_; + } + } + /** + * .Tango.PMR.Embroidery.EmbroideryFile EmbroideryFile = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder> + getEmbroideryFileFieldBuilder() { + if (embroideryFileBuilder_ == null) { + embroideryFileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder>( + getEmbroideryFile(), + getParentForChildren(), + isClean()); + embroideryFile_ = null; + } + return embroideryFileBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.AnalyzeOutput) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.AnalyzeOutput) + private static final com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput(); + } + + public static com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public AnalyzeOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalyzeOutput(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.AnalyzeOutputOuterClass.AnalyzeOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_AnalyzeOutput_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_AnalyzeOutput_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\023AnalyzeOutput.proto\022\024Tango.PMR.Embroid" + + "ery\032\024EmbroideryFile.proto\"M\n\rAnalyzeOutp" + + "ut\022<\n\016EmbroideryFile\030\001 \001(\0132$.Tango.PMR.E" + + "mbroidery.EmbroideryFileB \n\036com.twine.ta" + + "ngo.pmr.embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Embroidery_AnalyzeOutput_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_AnalyzeOutput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_AnalyzeOutput_descriptor, + new java.lang.String[] { "EmbroideryFile", }); + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileInputOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileInputOuterClass.java new file mode 100644 index 000000000..daf4a8b10 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileInputOuterClass.java @@ -0,0 +1,716 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConvertFileInput.proto + +package com.twine.tango.pmr.embroidery; + +public final class ConvertFileInputOuterClass { + private ConvertFileInputOuterClass() {} + 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 ConvertFileInputOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.ConvertFileInput) + com.google.protobuf.MessageOrBuilder { + + /** + * string SourceFile = 1; + */ + java.lang.String getSourceFile(); + /** + * string SourceFile = 1; + */ + com.google.protobuf.ByteString + getSourceFileBytes(); + + /** + * string TargetFile = 2; + */ + java.lang.String getTargetFile(); + /** + * string TargetFile = 2; + */ + com.google.protobuf.ByteString + getTargetFileBytes(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.ConvertFileInput} + */ + public static final class ConvertFileInput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.ConvertFileInput) + ConvertFileInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvertFileInput.newBuilder() to construct. + private ConvertFileInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConvertFileInput() { + sourceFile_ = ""; + targetFile_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConvertFileInput( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceFile_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + targetFile_ = s; + 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 com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileInput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.class, com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.Builder.class); + } + + public static final int SOURCEFILE_FIELD_NUMBER = 1; + private volatile java.lang.Object sourceFile_; + /** + * string SourceFile = 1; + */ + public java.lang.String getSourceFile() { + java.lang.Object ref = sourceFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceFile_ = s; + return s; + } + } + /** + * string SourceFile = 1; + */ + public com.google.protobuf.ByteString + getSourceFileBytes() { + java.lang.Object ref = sourceFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETFILE_FIELD_NUMBER = 2; + private volatile java.lang.Object targetFile_; + /** + * string TargetFile = 2; + */ + public java.lang.String getTargetFile() { + java.lang.Object ref = targetFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetFile_ = s; + return s; + } + } + /** + * string TargetFile = 2; + */ + public com.google.protobuf.ByteString + getTargetFileBytes() { + java.lang.Object ref = targetFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getSourceFileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceFile_); + } + if (!getTargetFileBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetFile_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSourceFileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceFile_); + } + if (!getTargetFileBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetFile_); + } + 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 com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput other = (com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput) obj; + + boolean result = true; + result = result && getSourceFile() + .equals(other.getSourceFile()); + result = result && getTargetFile() + .equals(other.getTargetFile()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCEFILE_FIELD_NUMBER; + hash = (53 * hash) + getSourceFile().hashCode(); + hash = (37 * hash) + TARGETFILE_FIELD_NUMBER; + hash = (53 * hash) + getTargetFile().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput 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 com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput 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 com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.ConvertFileInput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.ConvertFileInput) + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileInput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.class, com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + sourceFile_ = ""; + + targetFile_ = ""; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileInput_descriptor; + } + + public com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput build() { + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput buildPartial() { + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput result = new com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput(this); + result.sourceFile_ = sourceFile_; + result.targetFile_ = targetFile_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput) { + return mergeFrom((com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput other) { + if (other == com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput.getDefaultInstance()) return this; + if (!other.getSourceFile().isEmpty()) { + sourceFile_ = other.sourceFile_; + onChanged(); + } + if (!other.getTargetFile().isEmpty()) { + targetFile_ = other.targetFile_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object sourceFile_ = ""; + /** + * string SourceFile = 1; + */ + public java.lang.String getSourceFile() { + java.lang.Object ref = sourceFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string SourceFile = 1; + */ + public com.google.protobuf.ByteString + getSourceFileBytes() { + java.lang.Object ref = sourceFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sourceFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string SourceFile = 1; + */ + public Builder setSourceFile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + sourceFile_ = value; + onChanged(); + return this; + } + /** + * string SourceFile = 1; + */ + public Builder clearSourceFile() { + + sourceFile_ = getDefaultInstance().getSourceFile(); + onChanged(); + return this; + } + /** + * string SourceFile = 1; + */ + public Builder setSourceFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + sourceFile_ = value; + onChanged(); + return this; + } + + private java.lang.Object targetFile_ = ""; + /** + * string TargetFile = 2; + */ + public java.lang.String getTargetFile() { + java.lang.Object ref = targetFile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetFile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string TargetFile = 2; + */ + public com.google.protobuf.ByteString + getTargetFileBytes() { + java.lang.Object ref = targetFile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + targetFile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string TargetFile = 2; + */ + public Builder setTargetFile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + targetFile_ = value; + onChanged(); + return this; + } + /** + * string TargetFile = 2; + */ + public Builder clearTargetFile() { + + targetFile_ = getDefaultInstance().getTargetFile(); + onChanged(); + return this; + } + /** + * string TargetFile = 2; + */ + public Builder setTargetFileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + targetFile_ = value; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.ConvertFileInput) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.ConvertFileInput) + private static final com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput(); + } + + public static com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ConvertFileInput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConvertFileInput(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.ConvertFileInputOuterClass.ConvertFileInput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_ConvertFileInput_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_ConvertFileInput_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\026ConvertFileInput.proto\022\024Tango.PMR.Embr" + + "oidery\":\n\020ConvertFileInput\022\022\n\nSourceFile" + + "\030\001 \001(\t\022\022\n\nTargetFile\030\002 \001(\tB \n\036com.twine." + + "tango.pmr.embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Embroidery_ConvertFileInput_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_ConvertFileInput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_ConvertFileInput_descriptor, + new java.lang.String[] { "SourceFile", "TargetFile", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileOutputOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileOutputOuterClass.java new file mode 100644 index 000000000..6d4e99f46 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ConvertFileOutputOuterClass.java @@ -0,0 +1,506 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ConvertFileOutput.proto + +package com.twine.tango.pmr.embroidery; + +public final class ConvertFileOutputOuterClass { + private ConvertFileOutputOuterClass() {} + 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 ConvertFileOutputOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.ConvertFileOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * bool Successful = 1; + */ + boolean getSuccessful(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.ConvertFileOutput} + */ + public static final class ConvertFileOutput extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.ConvertFileOutput) + ConvertFileOutputOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConvertFileOutput.newBuilder() to construct. + private ConvertFileOutput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConvertFileOutput() { + successful_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConvertFileOutput( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + successful_ = input.readBool(); + 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 com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileOutput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.class, com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.Builder.class); + } + + public static final int SUCCESSFUL_FIELD_NUMBER = 1; + private boolean successful_; + /** + * bool Successful = 1; + */ + public boolean getSuccessful() { + return successful_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (successful_ != false) { + output.writeBool(1, successful_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (successful_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, successful_); + } + 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 com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput other = (com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput) obj; + + boolean result = true; + result = result && (getSuccessful() + == other.getSuccessful()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUCCESSFUL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccessful()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput 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 com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput 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 com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.ConvertFileOutput} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.ConvertFileOutput) + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileOutput_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.class, com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + successful_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.internal_static_Tango_PMR_Embroidery_ConvertFileOutput_descriptor; + } + + public com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput build() { + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput buildPartial() { + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput result = new com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput(this); + result.successful_ = successful_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput) { + return mergeFrom((com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput other) { + if (other == com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput.getDefaultInstance()) return this; + if (other.getSuccessful() != false) { + setSuccessful(other.getSuccessful()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean successful_ ; + /** + * bool Successful = 1; + */ + public boolean getSuccessful() { + return successful_; + } + /** + * bool Successful = 1; + */ + public Builder setSuccessful(boolean value) { + + successful_ = value; + onChanged(); + return this; + } + /** + * bool Successful = 1; + */ + public Builder clearSuccessful() { + + successful_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.ConvertFileOutput) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.ConvertFileOutput) + private static final com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput(); + } + + public static com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ConvertFileOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConvertFileOutput(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.ConvertFileOutputOuterClass.ConvertFileOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_ConvertFileOutput_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_ConvertFileOutput_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\027ConvertFileOutput.proto\022\024Tango.PMR.Emb" + + "roidery\"\'\n\021ConvertFileOutput\022\022\n\nSuccessf" + + "ul\030\001 \001(\010B \n\036com.twine.tango.pmr.embroide" + + "ryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Embroidery_ConvertFileOutput_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_ConvertFileOutput_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_ConvertFileOutput_descriptor, + new java.lang.String[] { "Successful", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/EmbroideryFileOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/EmbroideryFileOuterClass.java new file mode 100644 index 000000000..560fcad36 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/EmbroideryFileOuterClass.java @@ -0,0 +1,1787 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: EmbroideryFile.proto + +package com.twine.tango.pmr.embroidery; + +public final class EmbroideryFileOuterClass { + private EmbroideryFileOuterClass() {} + 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 EmbroideryFileOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.EmbroideryFile) + com.google.protobuf.MessageOrBuilder { + + /** + * string DesignName = 1; + */ + java.lang.String getDesignName(); + /** + * string DesignName = 1; + */ + com.google.protobuf.ByteString + getDesignNameBytes(); + + /** + * string FileName = 2; + */ + java.lang.String getFileName(); + /** + * string FileName = 2; + */ + com.google.protobuf.ByteString + getFileNameBytes(); + + /** + * int32 StitchCount = 3; + */ + int getStitchCount(); + + /** + * int32 ColorCount = 4; + */ + int getColorCount(); + + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + boolean hasExtents(); + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents getExtents(); + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder getExtentsOrBuilder(); + + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + java.util.List + getColorsList(); + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor getColors(int index); + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + int getColorsCount(); + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + java.util.List + getColorsOrBuilderList(); + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder getColorsOrBuilder( + int index); + + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + java.util.List + getStitchesList(); + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch getStitches(int index); + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + int getStitchesCount(); + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + java.util.List + getStitchesOrBuilderList(); + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder getStitchesOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.EmbroideryFile} + */ + public static final class EmbroideryFile extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.EmbroideryFile) + EmbroideryFileOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmbroideryFile.newBuilder() to construct. + private EmbroideryFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EmbroideryFile() { + designName_ = ""; + fileName_ = ""; + stitchCount_ = 0; + colorCount_ = 0; + colors_ = java.util.Collections.emptyList(); + stitches_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EmbroideryFile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + designName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + fileName_ = s; + break; + } + case 24: { + + stitchCount_ = input.readInt32(); + break; + } + case 32: { + + colorCount_ = input.readInt32(); + break; + } + case 42: { + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder subBuilder = null; + if (extents_ != null) { + subBuilder = extents_.toBuilder(); + } + extents_ = input.readMessage(com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(extents_); + extents_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + colors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + colors_.add( + input.readMessage(com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.parser(), extensionRegistry)); + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + stitches_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + stitches_.add( + input.readMessage(com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + colors_ = java.util.Collections.unmodifiableList(colors_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + stitches_ = java.util.Collections.unmodifiableList(stitches_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.internal_static_Tango_PMR_Embroidery_EmbroideryFile_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.internal_static_Tango_PMR_Embroidery_EmbroideryFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.class, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder.class); + } + + private int bitField0_; + public static final int DESIGNNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object designName_; + /** + * string DesignName = 1; + */ + public java.lang.String getDesignName() { + java.lang.Object ref = designName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + designName_ = s; + return s; + } + } + /** + * string DesignName = 1; + */ + public com.google.protobuf.ByteString + getDesignNameBytes() { + java.lang.Object ref = designName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + designName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILENAME_FIELD_NUMBER = 2; + private volatile java.lang.Object fileName_; + /** + * string FileName = 2; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } + } + /** + * string FileName = 2; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STITCHCOUNT_FIELD_NUMBER = 3; + private int stitchCount_; + /** + * int32 StitchCount = 3; + */ + public int getStitchCount() { + return stitchCount_; + } + + public static final int COLORCOUNT_FIELD_NUMBER = 4; + private int colorCount_; + /** + * int32 ColorCount = 4; + */ + public int getColorCount() { + return colorCount_; + } + + public static final int EXTENTS_FIELD_NUMBER = 5; + private com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents extents_; + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public boolean hasExtents() { + return extents_ != null; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents getExtents() { + return extents_ == null ? com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.getDefaultInstance() : extents_; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder getExtentsOrBuilder() { + return getExtents(); + } + + public static final int COLORS_FIELD_NUMBER = 6; + private java.util.List colors_; + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public java.util.List getColorsList() { + return colors_; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public java.util.List + getColorsOrBuilderList() { + return colors_; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public int getColorsCount() { + return colors_.size(); + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor getColors(int index) { + return colors_.get(index); + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder getColorsOrBuilder( + int index) { + return colors_.get(index); + } + + public static final int STITCHES_FIELD_NUMBER = 7; + private java.util.List stitches_; + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public java.util.List getStitchesList() { + return stitches_; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public java.util.List + getStitchesOrBuilderList() { + return stitches_; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public int getStitchesCount() { + return stitches_.size(); + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch getStitches(int index) { + return stitches_.get(index); + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder getStitchesOrBuilder( + int index) { + return stitches_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getDesignNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, designName_); + } + if (!getFileNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileName_); + } + if (stitchCount_ != 0) { + output.writeInt32(3, stitchCount_); + } + if (colorCount_ != 0) { + output.writeInt32(4, colorCount_); + } + if (extents_ != null) { + output.writeMessage(5, getExtents()); + } + for (int i = 0; i < colors_.size(); i++) { + output.writeMessage(6, colors_.get(i)); + } + for (int i = 0; i < stitches_.size(); i++) { + output.writeMessage(7, stitches_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDesignNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, designName_); + } + if (!getFileNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileName_); + } + if (stitchCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, stitchCount_); + } + if (colorCount_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, colorCount_); + } + if (extents_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getExtents()); + } + for (int i = 0; i < colors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, colors_.get(i)); + } + for (int i = 0; i < stitches_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, stitches_.get(i)); + } + 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 com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile other = (com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile) obj; + + boolean result = true; + result = result && getDesignName() + .equals(other.getDesignName()); + result = result && getFileName() + .equals(other.getFileName()); + result = result && (getStitchCount() + == other.getStitchCount()); + result = result && (getColorCount() + == other.getColorCount()); + result = result && (hasExtents() == other.hasExtents()); + if (hasExtents()) { + result = result && getExtents() + .equals(other.getExtents()); + } + result = result && getColorsList() + .equals(other.getColorsList()); + result = result && getStitchesList() + .equals(other.getStitchesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESIGNNAME_FIELD_NUMBER; + hash = (53 * hash) + getDesignName().hashCode(); + hash = (37 * hash) + FILENAME_FIELD_NUMBER; + hash = (53 * hash) + getFileName().hashCode(); + hash = (37 * hash) + STITCHCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getStitchCount(); + hash = (37 * hash) + COLORCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getColorCount(); + if (hasExtents()) { + hash = (37 * hash) + EXTENTS_FIELD_NUMBER; + hash = (53 * hash) + getExtents().hashCode(); + } + if (getColorsCount() > 0) { + hash = (37 * hash) + COLORS_FIELD_NUMBER; + hash = (53 * hash) + getColorsList().hashCode(); + } + if (getStitchesCount() > 0) { + hash = (37 * hash) + STITCHES_FIELD_NUMBER; + hash = (53 * hash) + getStitchesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile 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 com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile 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 com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.EmbroideryFile} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.EmbroideryFile) + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.internal_static_Tango_PMR_Embroidery_EmbroideryFile_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.internal_static_Tango_PMR_Embroidery_EmbroideryFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.class, com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getColorsFieldBuilder(); + getStitchesFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + designName_ = ""; + + fileName_ = ""; + + stitchCount_ = 0; + + colorCount_ = 0; + + if (extentsBuilder_ == null) { + extents_ = null; + } else { + extents_ = null; + extentsBuilder_ = null; + } + if (colorsBuilder_ == null) { + colors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + colorsBuilder_.clear(); + } + if (stitchesBuilder_ == null) { + stitches_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + } else { + stitchesBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.internal_static_Tango_PMR_Embroidery_EmbroideryFile_descriptor; + } + + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile build() { + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile buildPartial() { + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile result = new com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.designName_ = designName_; + result.fileName_ = fileName_; + result.stitchCount_ = stitchCount_; + result.colorCount_ = colorCount_; + if (extentsBuilder_ == null) { + result.extents_ = extents_; + } else { + result.extents_ = extentsBuilder_.build(); + } + if (colorsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + colors_ = java.util.Collections.unmodifiableList(colors_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.colors_ = colors_; + } else { + result.colors_ = colorsBuilder_.build(); + } + if (stitchesBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040)) { + stitches_ = java.util.Collections.unmodifiableList(stitches_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.stitches_ = stitches_; + } else { + result.stitches_ = stitchesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile) { + return mergeFrom((com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile other) { + if (other == com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile.getDefaultInstance()) return this; + if (!other.getDesignName().isEmpty()) { + designName_ = other.designName_; + onChanged(); + } + if (!other.getFileName().isEmpty()) { + fileName_ = other.fileName_; + onChanged(); + } + if (other.getStitchCount() != 0) { + setStitchCount(other.getStitchCount()); + } + if (other.getColorCount() != 0) { + setColorCount(other.getColorCount()); + } + if (other.hasExtents()) { + mergeExtents(other.getExtents()); + } + if (colorsBuilder_ == null) { + if (!other.colors_.isEmpty()) { + if (colors_.isEmpty()) { + colors_ = other.colors_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureColorsIsMutable(); + colors_.addAll(other.colors_); + } + onChanged(); + } + } else { + if (!other.colors_.isEmpty()) { + if (colorsBuilder_.isEmpty()) { + colorsBuilder_.dispose(); + colorsBuilder_ = null; + colors_ = other.colors_; + bitField0_ = (bitField0_ & ~0x00000020); + colorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getColorsFieldBuilder() : null; + } else { + colorsBuilder_.addAllMessages(other.colors_); + } + } + } + if (stitchesBuilder_ == null) { + if (!other.stitches_.isEmpty()) { + if (stitches_.isEmpty()) { + stitches_ = other.stitches_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureStitchesIsMutable(); + stitches_.addAll(other.stitches_); + } + onChanged(); + } + } else { + if (!other.stitches_.isEmpty()) { + if (stitchesBuilder_.isEmpty()) { + stitchesBuilder_.dispose(); + stitchesBuilder_ = null; + stitches_ = other.stitches_; + bitField0_ = (bitField0_ & ~0x00000040); + stitchesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStitchesFieldBuilder() : null; + } else { + stitchesBuilder_.addAllMessages(other.stitches_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object designName_ = ""; + /** + * string DesignName = 1; + */ + public java.lang.String getDesignName() { + java.lang.Object ref = designName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + designName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string DesignName = 1; + */ + public com.google.protobuf.ByteString + getDesignNameBytes() { + java.lang.Object ref = designName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + designName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string DesignName = 1; + */ + public Builder setDesignName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + designName_ = value; + onChanged(); + return this; + } + /** + * string DesignName = 1; + */ + public Builder clearDesignName() { + + designName_ = getDefaultInstance().getDesignName(); + onChanged(); + return this; + } + /** + * string DesignName = 1; + */ + public Builder setDesignNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + designName_ = value; + onChanged(); + return this; + } + + private java.lang.Object fileName_ = ""; + /** + * string FileName = 2; + */ + public java.lang.String getFileName() { + java.lang.Object ref = fileName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string FileName = 2; + */ + public com.google.protobuf.ByteString + getFileNameBytes() { + java.lang.Object ref = fileName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string FileName = 2; + */ + public Builder setFileName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + fileName_ = value; + onChanged(); + return this; + } + /** + * string FileName = 2; + */ + public Builder clearFileName() { + + fileName_ = getDefaultInstance().getFileName(); + onChanged(); + return this; + } + /** + * string FileName = 2; + */ + public Builder setFileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + fileName_ = value; + onChanged(); + return this; + } + + private int stitchCount_ ; + /** + * int32 StitchCount = 3; + */ + public int getStitchCount() { + return stitchCount_; + } + /** + * int32 StitchCount = 3; + */ + public Builder setStitchCount(int value) { + + stitchCount_ = value; + onChanged(); + return this; + } + /** + * int32 StitchCount = 3; + */ + public Builder clearStitchCount() { + + stitchCount_ = 0; + onChanged(); + return this; + } + + private int colorCount_ ; + /** + * int32 ColorCount = 4; + */ + public int getColorCount() { + return colorCount_; + } + /** + * int32 ColorCount = 4; + */ + public Builder setColorCount(int value) { + + colorCount_ = value; + onChanged(); + return this; + } + /** + * int32 ColorCount = 4; + */ + public Builder clearColorCount() { + + colorCount_ = 0; + onChanged(); + return this; + } + + private com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents extents_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents, com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder, com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder> extentsBuilder_; + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public boolean hasExtents() { + return extentsBuilder_ != null || extents_ != null; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents getExtents() { + if (extentsBuilder_ == null) { + return extents_ == null ? com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.getDefaultInstance() : extents_; + } else { + return extentsBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public Builder setExtents(com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents value) { + if (extentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + extents_ = value; + onChanged(); + } else { + extentsBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public Builder setExtents( + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder builderForValue) { + if (extentsBuilder_ == null) { + extents_ = builderForValue.build(); + onChanged(); + } else { + extentsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public Builder mergeExtents(com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents value) { + if (extentsBuilder_ == null) { + if (extents_ != null) { + extents_ = + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.newBuilder(extents_).mergeFrom(value).buildPartial(); + } else { + extents_ = value; + } + onChanged(); + } else { + extentsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public Builder clearExtents() { + if (extentsBuilder_ == null) { + extents_ = null; + onChanged(); + } else { + extents_ = null; + extentsBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder getExtentsBuilder() { + + onChanged(); + return getExtentsFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder getExtentsOrBuilder() { + if (extentsBuilder_ != null) { + return extentsBuilder_.getMessageOrBuilder(); + } else { + return extents_ == null ? + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.getDefaultInstance() : extents_; + } + } + /** + * .Tango.PMR.Embroidery.Extents Extents = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents, com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder, com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder> + getExtentsFieldBuilder() { + if (extentsBuilder_ == null) { + extentsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents, com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder, com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder>( + getExtents(), + getParentForChildren(), + isClean()); + extents_ = null; + } + return extentsBuilder_; + } + + private java.util.List colors_ = + java.util.Collections.emptyList(); + private void ensureColorsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + colors_ = new java.util.ArrayList(colors_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder> colorsBuilder_; + + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public java.util.List getColorsList() { + if (colorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(colors_); + } else { + return colorsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public int getColorsCount() { + if (colorsBuilder_ == null) { + return colors_.size(); + } else { + return colorsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor getColors(int index) { + if (colorsBuilder_ == null) { + return colors_.get(index); + } else { + return colorsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder setColors( + int index, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor value) { + if (colorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColorsIsMutable(); + colors_.set(index, value); + onChanged(); + } else { + colorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder setColors( + int index, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder builderForValue) { + if (colorsBuilder_ == null) { + ensureColorsIsMutable(); + colors_.set(index, builderForValue.build()); + onChanged(); + } else { + colorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder addColors(com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor value) { + if (colorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColorsIsMutable(); + colors_.add(value); + onChanged(); + } else { + colorsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder addColors( + int index, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor value) { + if (colorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColorsIsMutable(); + colors_.add(index, value); + onChanged(); + } else { + colorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder addColors( + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder builderForValue) { + if (colorsBuilder_ == null) { + ensureColorsIsMutable(); + colors_.add(builderForValue.build()); + onChanged(); + } else { + colorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder addColors( + int index, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder builderForValue) { + if (colorsBuilder_ == null) { + ensureColorsIsMutable(); + colors_.add(index, builderForValue.build()); + onChanged(); + } else { + colorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder addAllColors( + java.lang.Iterable values) { + if (colorsBuilder_ == null) { + ensureColorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, colors_); + onChanged(); + } else { + colorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder clearColors() { + if (colorsBuilder_ == null) { + colors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + colorsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public Builder removeColors(int index) { + if (colorsBuilder_ == null) { + ensureColorsIsMutable(); + colors_.remove(index); + onChanged(); + } else { + colorsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder getColorsBuilder( + int index) { + return getColorsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder getColorsOrBuilder( + int index) { + if (colorsBuilder_ == null) { + return colors_.get(index); } else { + return colorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public java.util.List + getColorsOrBuilderList() { + if (colorsBuilder_ != null) { + return colorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(colors_); + } + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder addColorsBuilder() { + return getColorsFieldBuilder().addBuilder( + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder addColorsBuilder( + int index) { + return getColorsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Embroidery.StitchColor Colors = 6; + */ + public java.util.List + getColorsBuilderList() { + return getColorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder> + getColorsFieldBuilder() { + if (colorsBuilder_ == null) { + colorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder>( + colors_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + colors_ = null; + } + return colorsBuilder_; + } + + private java.util.List stitches_ = + java.util.Collections.emptyList(); + private void ensureStitchesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + stitches_ = new java.util.ArrayList(stitches_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder, com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder> stitchesBuilder_; + + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public java.util.List getStitchesList() { + if (stitchesBuilder_ == null) { + return java.util.Collections.unmodifiableList(stitches_); + } else { + return stitchesBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public int getStitchesCount() { + if (stitchesBuilder_ == null) { + return stitches_.size(); + } else { + return stitchesBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch getStitches(int index) { + if (stitchesBuilder_ == null) { + return stitches_.get(index); + } else { + return stitchesBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder setStitches( + int index, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch value) { + if (stitchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStitchesIsMutable(); + stitches_.set(index, value); + onChanged(); + } else { + stitchesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder setStitches( + int index, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder builderForValue) { + if (stitchesBuilder_ == null) { + ensureStitchesIsMutable(); + stitches_.set(index, builderForValue.build()); + onChanged(); + } else { + stitchesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder addStitches(com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch value) { + if (stitchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStitchesIsMutable(); + stitches_.add(value); + onChanged(); + } else { + stitchesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder addStitches( + int index, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch value) { + if (stitchesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStitchesIsMutable(); + stitches_.add(index, value); + onChanged(); + } else { + stitchesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder addStitches( + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder builderForValue) { + if (stitchesBuilder_ == null) { + ensureStitchesIsMutable(); + stitches_.add(builderForValue.build()); + onChanged(); + } else { + stitchesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder addStitches( + int index, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder builderForValue) { + if (stitchesBuilder_ == null) { + ensureStitchesIsMutable(); + stitches_.add(index, builderForValue.build()); + onChanged(); + } else { + stitchesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder addAllStitches( + java.lang.Iterable values) { + if (stitchesBuilder_ == null) { + ensureStitchesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, stitches_); + onChanged(); + } else { + stitchesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder clearStitches() { + if (stitchesBuilder_ == null) { + stitches_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + stitchesBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public Builder removeStitches(int index) { + if (stitchesBuilder_ == null) { + ensureStitchesIsMutable(); + stitches_.remove(index); + onChanged(); + } else { + stitchesBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder getStitchesBuilder( + int index) { + return getStitchesFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder getStitchesOrBuilder( + int index) { + if (stitchesBuilder_ == null) { + return stitches_.get(index); } else { + return stitchesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public java.util.List + getStitchesOrBuilderList() { + if (stitchesBuilder_ != null) { + return stitchesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stitches_); + } + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder addStitchesBuilder() { + return getStitchesFieldBuilder().addBuilder( + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder addStitchesBuilder( + int index) { + return getStitchesFieldBuilder().addBuilder( + index, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Embroidery.Stitch Stitches = 7; + */ + public java.util.List + getStitchesBuilderList() { + return getStitchesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder, com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder> + getStitchesFieldBuilder() { + if (stitchesBuilder_ == null) { + stitchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder, com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder>( + stitches_, + ((bitField0_ & 0x00000040) == 0x00000040), + getParentForChildren(), + isClean()); + stitches_ = null; + } + return stitchesBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.EmbroideryFile) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.EmbroideryFile) + private static final com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile(); + } + + public static com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public EmbroideryFile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EmbroideryFile(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.EmbroideryFileOuterClass.EmbroideryFile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_EmbroideryFile_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_EmbroideryFile_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\024EmbroideryFile.proto\022\024Tango.PMR.Embroi" + + "dery\032\rExtents.proto\032\014Stitch.proto\032\021Stitc" + + "hColor.proto\"\362\001\n\016EmbroideryFile\022\022\n\nDesig" + + "nName\030\001 \001(\t\022\020\n\010FileName\030\002 \001(\t\022\023\n\013StitchC" + + "ount\030\003 \001(\005\022\022\n\nColorCount\030\004 \001(\005\022.\n\007Extent" + + "s\030\005 \001(\0132\035.Tango.PMR.Embroidery.Extents\0221" + + "\n\006Colors\030\006 \003(\0132!.Tango.PMR.Embroidery.St" + + "itchColor\022.\n\010Stitches\030\007 \003(\0132\034.Tango.PMR." + + "Embroidery.StitchB \n\036com.twine.tango.pmr" + + ".embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.embroidery.ExtentsOuterClass.getDescriptor(), + com.twine.tango.pmr.embroidery.StitchOuterClass.getDescriptor(), + com.twine.tango.pmr.embroidery.StitchColorOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Embroidery_EmbroideryFile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_EmbroideryFile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_EmbroideryFile_descriptor, + new java.lang.String[] { "DesignName", "FileName", "StitchCount", "ColorCount", "Extents", "Colors", "Stitches", }); + com.twine.tango.pmr.embroidery.ExtentsOuterClass.getDescriptor(); + com.twine.tango.pmr.embroidery.StitchOuterClass.getDescriptor(); + com.twine.tango.pmr.embroidery.StitchColorOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ExtentsOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ExtentsOuterClass.java new file mode 100644 index 000000000..d85c998f2 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/ExtentsOuterClass.java @@ -0,0 +1,694 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Extents.proto + +package com.twine.tango.pmr.embroidery; + +public final class ExtentsOuterClass { + private ExtentsOuterClass() {} + 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 ExtentsOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.Extents) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 X1 = 1; + */ + int getX1(); + + /** + * int32 Y1 = 2; + */ + int getY1(); + + /** + * int32 X2 = 3; + */ + int getX2(); + + /** + * int32 Y2 = 4; + */ + int getY2(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.Extents} + */ + public static final class Extents extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.Extents) + ExtentsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Extents.newBuilder() to construct. + private Extents(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Extents() { + x1_ = 0; + y1_ = 0; + x2_ = 0; + y2_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Extents( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + x1_ = input.readInt32(); + break; + } + case 16: { + + y1_ = input.readInt32(); + break; + } + case 24: { + + x2_ = input.readInt32(); + break; + } + case 32: { + + y2_ = input.readInt32(); + 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 com.twine.tango.pmr.embroidery.ExtentsOuterClass.internal_static_Tango_PMR_Embroidery_Extents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.ExtentsOuterClass.internal_static_Tango_PMR_Embroidery_Extents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.class, com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder.class); + } + + public static final int X1_FIELD_NUMBER = 1; + private int x1_; + /** + * int32 X1 = 1; + */ + public int getX1() { + return x1_; + } + + public static final int Y1_FIELD_NUMBER = 2; + private int y1_; + /** + * int32 Y1 = 2; + */ + public int getY1() { + return y1_; + } + + public static final int X2_FIELD_NUMBER = 3; + private int x2_; + /** + * int32 X2 = 3; + */ + public int getX2() { + return x2_; + } + + public static final int Y2_FIELD_NUMBER = 4; + private int y2_; + /** + * int32 Y2 = 4; + */ + public int getY2() { + return y2_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (x1_ != 0) { + output.writeInt32(1, x1_); + } + if (y1_ != 0) { + output.writeInt32(2, y1_); + } + if (x2_ != 0) { + output.writeInt32(3, x2_); + } + if (y2_ != 0) { + output.writeInt32(4, y2_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (x1_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x1_); + } + if (y1_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y1_); + } + if (x2_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, x2_); + } + if (y2_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, y2_); + } + 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 com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents other = (com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents) obj; + + boolean result = true; + result = result && (getX1() + == other.getX1()); + result = result && (getY1() + == other.getY1()); + result = result && (getX2() + == other.getX2()); + result = result && (getY2() + == other.getY2()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + X1_FIELD_NUMBER; + hash = (53 * hash) + getX1(); + hash = (37 * hash) + Y1_FIELD_NUMBER; + hash = (53 * hash) + getY1(); + hash = (37 * hash) + X2_FIELD_NUMBER; + hash = (53 * hash) + getX2(); + hash = (37 * hash) + Y2_FIELD_NUMBER; + hash = (53 * hash) + getY2(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents 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 com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents 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 com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.Extents} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.Extents) + com.twine.tango.pmr.embroidery.ExtentsOuterClass.ExtentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.ExtentsOuterClass.internal_static_Tango_PMR_Embroidery_Extents_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.ExtentsOuterClass.internal_static_Tango_PMR_Embroidery_Extents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.class, com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + x1_ = 0; + + y1_ = 0; + + x2_ = 0; + + y2_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.ExtentsOuterClass.internal_static_Tango_PMR_Embroidery_Extents_descriptor; + } + + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents build() { + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents buildPartial() { + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents result = new com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents(this); + result.x1_ = x1_; + result.y1_ = y1_; + result.x2_ = x2_; + result.y2_ = y2_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents) { + return mergeFrom((com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents other) { + if (other == com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents.getDefaultInstance()) return this; + if (other.getX1() != 0) { + setX1(other.getX1()); + } + if (other.getY1() != 0) { + setY1(other.getY1()); + } + if (other.getX2() != 0) { + setX2(other.getX2()); + } + if (other.getY2() != 0) { + setY2(other.getY2()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int x1_ ; + /** + * int32 X1 = 1; + */ + public int getX1() { + return x1_; + } + /** + * int32 X1 = 1; + */ + public Builder setX1(int value) { + + x1_ = value; + onChanged(); + return this; + } + /** + * int32 X1 = 1; + */ + public Builder clearX1() { + + x1_ = 0; + onChanged(); + return this; + } + + private int y1_ ; + /** + * int32 Y1 = 2; + */ + public int getY1() { + return y1_; + } + /** + * int32 Y1 = 2; + */ + public Builder setY1(int value) { + + y1_ = value; + onChanged(); + return this; + } + /** + * int32 Y1 = 2; + */ + public Builder clearY1() { + + y1_ = 0; + onChanged(); + return this; + } + + private int x2_ ; + /** + * int32 X2 = 3; + */ + public int getX2() { + return x2_; + } + /** + * int32 X2 = 3; + */ + public Builder setX2(int value) { + + x2_ = value; + onChanged(); + return this; + } + /** + * int32 X2 = 3; + */ + public Builder clearX2() { + + x2_ = 0; + onChanged(); + return this; + } + + private int y2_ ; + /** + * int32 Y2 = 4; + */ + public int getY2() { + return y2_; + } + /** + * int32 Y2 = 4; + */ + public Builder setY2(int value) { + + y2_ = value; + onChanged(); + return this; + } + /** + * int32 Y2 = 4; + */ + public Builder clearY2() { + + y2_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.Extents) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.Extents) + private static final com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents(); + } + + public static com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Extents parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Extents(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.ExtentsOuterClass.Extents getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_Extents_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_Extents_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\rExtents.proto\022\024Tango.PMR.Embroidery\"9\n" + + "\007Extents\022\n\n\002X1\030\001 \001(\005\022\n\n\002Y1\030\002 \001(\005\022\n\n\002X2\030\003" + + " \001(\005\022\n\n\002Y2\030\004 \001(\005B \n\036com.twine.tango.pmr." + + "embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Embroidery_Extents_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_Extents_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_Extents_descriptor, + new java.lang.String[] { "X1", "Y1", "X2", "Y2", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchColorOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchColorOuterClass.java new file mode 100644 index 000000000..23b03dd27 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchColorOuterClass.java @@ -0,0 +1,631 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StitchColor.proto + +package com.twine.tango.pmr.embroidery; + +public final class StitchColorOuterClass { + private StitchColorOuterClass() {} + 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 StitchColorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.StitchColor) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Red = 1; + */ + int getRed(); + + /** + * int32 Green = 2; + */ + int getGreen(); + + /** + * int32 Blue = 3; + */ + int getBlue(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.StitchColor} + */ + public static final class StitchColor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.StitchColor) + StitchColorOrBuilder { + private static final long serialVersionUID = 0L; + // Use StitchColor.newBuilder() to construct. + private StitchColor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StitchColor() { + red_ = 0; + green_ = 0; + blue_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StitchColor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + red_ = input.readInt32(); + break; + } + case 16: { + + green_ = input.readInt32(); + break; + } + case 24: { + + blue_ = input.readInt32(); + 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 com.twine.tango.pmr.embroidery.StitchColorOuterClass.internal_static_Tango_PMR_Embroidery_StitchColor_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.StitchColorOuterClass.internal_static_Tango_PMR_Embroidery_StitchColor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.class, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder.class); + } + + public static final int RED_FIELD_NUMBER = 1; + private int red_; + /** + * int32 Red = 1; + */ + public int getRed() { + return red_; + } + + public static final int GREEN_FIELD_NUMBER = 2; + private int green_; + /** + * int32 Green = 2; + */ + public int getGreen() { + return green_; + } + + public static final int BLUE_FIELD_NUMBER = 3; + private int blue_; + /** + * int32 Blue = 3; + */ + public int getBlue() { + return blue_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (red_ != 0) { + output.writeInt32(1, red_); + } + if (green_ != 0) { + output.writeInt32(2, green_); + } + if (blue_ != 0) { + output.writeInt32(3, blue_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (red_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, red_); + } + if (green_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, green_); + } + if (blue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, blue_); + } + 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 com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor other = (com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor) obj; + + boolean result = true; + result = result && (getRed() + == other.getRed()); + result = result && (getGreen() + == other.getGreen()); + result = result && (getBlue() + == other.getBlue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RED_FIELD_NUMBER; + hash = (53 * hash) + getRed(); + hash = (37 * hash) + GREEN_FIELD_NUMBER; + hash = (53 * hash) + getGreen(); + hash = (37 * hash) + BLUE_FIELD_NUMBER; + hash = (53 * hash) + getBlue(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor 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 com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor 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 com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.StitchColor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.StitchColor) + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.StitchColorOuterClass.internal_static_Tango_PMR_Embroidery_StitchColor_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.StitchColorOuterClass.internal_static_Tango_PMR_Embroidery_StitchColor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.class, com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + red_ = 0; + + green_ = 0; + + blue_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.StitchColorOuterClass.internal_static_Tango_PMR_Embroidery_StitchColor_descriptor; + } + + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor build() { + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor buildPartial() { + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor result = new com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor(this); + result.red_ = red_; + result.green_ = green_; + result.blue_ = blue_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor) { + return mergeFrom((com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor other) { + if (other == com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor.getDefaultInstance()) return this; + if (other.getRed() != 0) { + setRed(other.getRed()); + } + if (other.getGreen() != 0) { + setGreen(other.getGreen()); + } + if (other.getBlue() != 0) { + setBlue(other.getBlue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int red_ ; + /** + * int32 Red = 1; + */ + public int getRed() { + return red_; + } + /** + * int32 Red = 1; + */ + public Builder setRed(int value) { + + red_ = value; + onChanged(); + return this; + } + /** + * int32 Red = 1; + */ + public Builder clearRed() { + + red_ = 0; + onChanged(); + return this; + } + + private int green_ ; + /** + * int32 Green = 2; + */ + public int getGreen() { + return green_; + } + /** + * int32 Green = 2; + */ + public Builder setGreen(int value) { + + green_ = value; + onChanged(); + return this; + } + /** + * int32 Green = 2; + */ + public Builder clearGreen() { + + green_ = 0; + onChanged(); + return this; + } + + private int blue_ ; + /** + * int32 Blue = 3; + */ + public int getBlue() { + return blue_; + } + /** + * int32 Blue = 3; + */ + public Builder setBlue(int value) { + + blue_ = value; + onChanged(); + return this; + } + /** + * int32 Blue = 3; + */ + public Builder clearBlue() { + + blue_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.StitchColor) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.StitchColor) + private static final com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor(); + } + + public static com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StitchColor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StitchColor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.StitchColorOuterClass.StitchColor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_StitchColor_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_StitchColor_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\021StitchColor.proto\022\024Tango.PMR.Embroider" + + "y\"7\n\013StitchColor\022\013\n\003Red\030\001 \001(\005\022\r\n\005Green\030\002" + + " \001(\005\022\014\n\004Blue\030\003 \001(\005B \n\036com.twine.tango.pm" + + "r.embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Embroidery_StitchColor_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_StitchColor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_StitchColor_descriptor, + new java.lang.String[] { "Red", "Green", "Blue", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchFlagOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchFlagOuterClass.java new file mode 100644 index 000000000..c9f1bc741 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchFlagOuterClass.java @@ -0,0 +1,180 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StitchFlag.proto + +package com.twine.tango.pmr.embroidery; + +public final class StitchFlagOuterClass { + private StitchFlagOuterClass() {} + 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 Tango.PMR.Embroidery.StitchFlag} + */ + public enum StitchFlag + implements com.google.protobuf.ProtocolMessageEnum { + /** + * NORMAL = 0; + */ + NORMAL(0), + /** + * JUMP = 1; + */ + JUMP(1), + /** + * TRIM = 2; + */ + TRIM(2), + /** + * STOP = 4; + */ + STOP(4), + /** + * SEQUIN = 8; + */ + SEQUIN(8), + /** + * END = 16; + */ + END(16), + UNRECOGNIZED(-1), + ; + + /** + * NORMAL = 0; + */ + public static final int NORMAL_VALUE = 0; + /** + * JUMP = 1; + */ + public static final int JUMP_VALUE = 1; + /** + * TRIM = 2; + */ + public static final int TRIM_VALUE = 2; + /** + * STOP = 4; + */ + public static final int STOP_VALUE = 4; + /** + * SEQUIN = 8; + */ + public static final int SEQUIN_VALUE = 8; + /** + * END = 16; + */ + public static final int END_VALUE = 16; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StitchFlag valueOf(int value) { + return forNumber(value); + } + + public static StitchFlag forNumber(int value) { + switch (value) { + case 0: return NORMAL; + case 1: return JUMP; + case 2: return TRIM; + case 4: return STOP; + case 8: return SEQUIN; + case 16: return END; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + StitchFlag> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StitchFlag findValueByNumber(int number) { + return StitchFlag.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 com.twine.tango.pmr.embroidery.StitchFlagOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final StitchFlag[] VALUES = values(); + + public static StitchFlag valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StitchFlag(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Embroidery.StitchFlag) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\020StitchFlag.proto\022\024Tango.PMR.Embroidery" + + "*K\n\nStitchFlag\022\n\n\006NORMAL\020\000\022\010\n\004JUMP\020\001\022\010\n\004" + + "TRIM\020\002\022\010\n\004STOP\020\004\022\n\n\006SEQUIN\020\010\022\007\n\003END\020\020B \n" + + "\036com.twine.tango.pmr.embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchOuterClass.java new file mode 100644 index 000000000..b995009c3 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/embroidery/StitchOuterClass.java @@ -0,0 +1,1064 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Stitch.proto + +package com.twine.tango.pmr.embroidery; + +public final class StitchOuterClass { + private StitchOuterClass() {} + 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 StitchOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Embroidery.Stitch) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + int getFlagValue(); + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag getFlag(); + + /** + * double XX = 2; + */ + double getXX(); + + /** + * double YY = 3; + */ + double getYY(); + + /** + * double DX = 4; + */ + double getDX(); + + /** + * double DY = 5; + */ + double getDY(); + + /** + * double Length = 6; + */ + double getLength(); + + /** + * double Angle = 7; + */ + double getAngle(); + + /** + * double DAngle = 8; + */ + double getDAngle(); + + /** + * int32 ColorIndex = 9; + */ + int getColorIndex(); + } + /** + * Protobuf type {@code Tango.PMR.Embroidery.Stitch} + */ + public static final class Stitch extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Embroidery.Stitch) + StitchOrBuilder { + private static final long serialVersionUID = 0L; + // Use Stitch.newBuilder() to construct. + private Stitch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Stitch() { + flag_ = 0; + xX_ = 0D; + yY_ = 0D; + dX_ = 0D; + dY_ = 0D; + length_ = 0D; + angle_ = 0D; + dAngle_ = 0D; + colorIndex_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Stitch( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + flag_ = rawValue; + break; + } + case 17: { + + xX_ = input.readDouble(); + break; + } + case 25: { + + yY_ = input.readDouble(); + break; + } + case 33: { + + dX_ = input.readDouble(); + break; + } + case 41: { + + dY_ = input.readDouble(); + break; + } + case 49: { + + length_ = input.readDouble(); + break; + } + case 57: { + + angle_ = input.readDouble(); + break; + } + case 65: { + + dAngle_ = input.readDouble(); + break; + } + case 72: { + + colorIndex_ = input.readInt32(); + 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 com.twine.tango.pmr.embroidery.StitchOuterClass.internal_static_Tango_PMR_Embroidery_Stitch_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.StitchOuterClass.internal_static_Tango_PMR_Embroidery_Stitch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.class, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder.class); + } + + public static final int FLAG_FIELD_NUMBER = 1; + private int flag_; + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public int getFlagValue() { + return flag_; + } + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag getFlag() { + com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag result = com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag.valueOf(flag_); + return result == null ? com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag.UNRECOGNIZED : result; + } + + public static final int XX_FIELD_NUMBER = 2; + private double xX_; + /** + * double XX = 2; + */ + public double getXX() { + return xX_; + } + + public static final int YY_FIELD_NUMBER = 3; + private double yY_; + /** + * double YY = 3; + */ + public double getYY() { + return yY_; + } + + public static final int DX_FIELD_NUMBER = 4; + private double dX_; + /** + * double DX = 4; + */ + public double getDX() { + return dX_; + } + + public static final int DY_FIELD_NUMBER = 5; + private double dY_; + /** + * double DY = 5; + */ + public double getDY() { + return dY_; + } + + public static final int LENGTH_FIELD_NUMBER = 6; + private double length_; + /** + * double Length = 6; + */ + public double getLength() { + return length_; + } + + public static final int ANGLE_FIELD_NUMBER = 7; + private double angle_; + /** + * double Angle = 7; + */ + public double getAngle() { + return angle_; + } + + public static final int DANGLE_FIELD_NUMBER = 8; + private double dAngle_; + /** + * double DAngle = 8; + */ + public double getDAngle() { + return dAngle_; + } + + public static final int COLORINDEX_FIELD_NUMBER = 9; + private int colorIndex_; + /** + * int32 ColorIndex = 9; + */ + public int getColorIndex() { + return colorIndex_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (flag_ != com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag.NORMAL.getNumber()) { + output.writeEnum(1, flag_); + } + if (xX_ != 0D) { + output.writeDouble(2, xX_); + } + if (yY_ != 0D) { + output.writeDouble(3, yY_); + } + if (dX_ != 0D) { + output.writeDouble(4, dX_); + } + if (dY_ != 0D) { + output.writeDouble(5, dY_); + } + if (length_ != 0D) { + output.writeDouble(6, length_); + } + if (angle_ != 0D) { + output.writeDouble(7, angle_); + } + if (dAngle_ != 0D) { + output.writeDouble(8, dAngle_); + } + if (colorIndex_ != 0) { + output.writeInt32(9, colorIndex_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (flag_ != com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag.NORMAL.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, flag_); + } + if (xX_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, xX_); + } + if (yY_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, yY_); + } + if (dX_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, dX_); + } + if (dY_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, dY_); + } + if (length_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, length_); + } + if (angle_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, angle_); + } + if (dAngle_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, dAngle_); + } + if (colorIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, colorIndex_); + } + 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 com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch)) { + return super.equals(obj); + } + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch other = (com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch) obj; + + boolean result = true; + result = result && flag_ == other.flag_; + result = result && ( + java.lang.Double.doubleToLongBits(getXX()) + == java.lang.Double.doubleToLongBits( + other.getXX())); + result = result && ( + java.lang.Double.doubleToLongBits(getYY()) + == java.lang.Double.doubleToLongBits( + other.getYY())); + result = result && ( + java.lang.Double.doubleToLongBits(getDX()) + == java.lang.Double.doubleToLongBits( + other.getDX())); + result = result && ( + java.lang.Double.doubleToLongBits(getDY()) + == java.lang.Double.doubleToLongBits( + other.getDY())); + result = result && ( + java.lang.Double.doubleToLongBits(getLength()) + == java.lang.Double.doubleToLongBits( + other.getLength())); + result = result && ( + java.lang.Double.doubleToLongBits(getAngle()) + == java.lang.Double.doubleToLongBits( + other.getAngle())); + result = result && ( + java.lang.Double.doubleToLongBits(getDAngle()) + == java.lang.Double.doubleToLongBits( + other.getDAngle())); + result = result && (getColorIndex() + == other.getColorIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FLAG_FIELD_NUMBER; + hash = (53 * hash) + flag_; + hash = (37 * hash) + XX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getXX())); + hash = (37 * hash) + YY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getYY())); + hash = (37 * hash) + DX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDX())); + hash = (37 * hash) + DY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDY())); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLength())); + hash = (37 * hash) + ANGLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAngle())); + hash = (37 * hash) + DANGLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDAngle())); + hash = (37 * hash) + COLORINDEX_FIELD_NUMBER; + hash = (53 * hash) + getColorIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch 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 com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch 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 com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Embroidery.Stitch} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Embroidery.Stitch) + com.twine.tango.pmr.embroidery.StitchOuterClass.StitchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.embroidery.StitchOuterClass.internal_static_Tango_PMR_Embroidery_Stitch_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.embroidery.StitchOuterClass.internal_static_Tango_PMR_Embroidery_Stitch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.class, com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.Builder.class); + } + + // Construct using com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + flag_ = 0; + + xX_ = 0D; + + yY_ = 0D; + + dX_ = 0D; + + dY_ = 0D; + + length_ = 0D; + + angle_ = 0D; + + dAngle_ = 0D; + + colorIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.embroidery.StitchOuterClass.internal_static_Tango_PMR_Embroidery_Stitch_descriptor; + } + + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch getDefaultInstanceForType() { + return com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.getDefaultInstance(); + } + + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch build() { + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch buildPartial() { + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch result = new com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch(this); + result.flag_ = flag_; + result.xX_ = xX_; + result.yY_ = yY_; + result.dX_ = dX_; + result.dY_ = dY_; + result.length_ = length_; + result.angle_ = angle_; + result.dAngle_ = dAngle_; + result.colorIndex_ = colorIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch) { + return mergeFrom((com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch other) { + if (other == com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch.getDefaultInstance()) return this; + if (other.flag_ != 0) { + setFlagValue(other.getFlagValue()); + } + if (other.getXX() != 0D) { + setXX(other.getXX()); + } + if (other.getYY() != 0D) { + setYY(other.getYY()); + } + if (other.getDX() != 0D) { + setDX(other.getDX()); + } + if (other.getDY() != 0D) { + setDY(other.getDY()); + } + if (other.getLength() != 0D) { + setLength(other.getLength()); + } + if (other.getAngle() != 0D) { + setAngle(other.getAngle()); + } + if (other.getDAngle() != 0D) { + setDAngle(other.getDAngle()); + } + if (other.getColorIndex() != 0) { + setColorIndex(other.getColorIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int flag_ = 0; + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public int getFlagValue() { + return flag_; + } + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public Builder setFlagValue(int value) { + flag_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag getFlag() { + com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag result = com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag.valueOf(flag_); + return result == null ? com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public Builder setFlag(com.twine.tango.pmr.embroidery.StitchFlagOuterClass.StitchFlag value) { + if (value == null) { + throw new NullPointerException(); + } + + flag_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Embroidery.StitchFlag Flag = 1; + */ + public Builder clearFlag() { + + flag_ = 0; + onChanged(); + return this; + } + + private double xX_ ; + /** + * double XX = 2; + */ + public double getXX() { + return xX_; + } + /** + * double XX = 2; + */ + public Builder setXX(double value) { + + xX_ = value; + onChanged(); + return this; + } + /** + * double XX = 2; + */ + public Builder clearXX() { + + xX_ = 0D; + onChanged(); + return this; + } + + private double yY_ ; + /** + * double YY = 3; + */ + public double getYY() { + return yY_; + } + /** + * double YY = 3; + */ + public Builder setYY(double value) { + + yY_ = value; + onChanged(); + return this; + } + /** + * double YY = 3; + */ + public Builder clearYY() { + + yY_ = 0D; + onChanged(); + return this; + } + + private double dX_ ; + /** + * double DX = 4; + */ + public double getDX() { + return dX_; + } + /** + * double DX = 4; + */ + public Builder setDX(double value) { + + dX_ = value; + onChanged(); + return this; + } + /** + * double DX = 4; + */ + public Builder clearDX() { + + dX_ = 0D; + onChanged(); + return this; + } + + private double dY_ ; + /** + * double DY = 5; + */ + public double getDY() { + return dY_; + } + /** + * double DY = 5; + */ + public Builder setDY(double value) { + + dY_ = value; + onChanged(); + return this; + } + /** + * double DY = 5; + */ + public Builder clearDY() { + + dY_ = 0D; + onChanged(); + return this; + } + + private double length_ ; + /** + * double Length = 6; + */ + public double getLength() { + return length_; + } + /** + * double Length = 6; + */ + public Builder setLength(double value) { + + length_ = value; + onChanged(); + return this; + } + /** + * double Length = 6; + */ + public Builder clearLength() { + + length_ = 0D; + onChanged(); + return this; + } + + private double angle_ ; + /** + * double Angle = 7; + */ + public double getAngle() { + return angle_; + } + /** + * double Angle = 7; + */ + public Builder setAngle(double value) { + + angle_ = value; + onChanged(); + return this; + } + /** + * double Angle = 7; + */ + public Builder clearAngle() { + + angle_ = 0D; + onChanged(); + return this; + } + + private double dAngle_ ; + /** + * double DAngle = 8; + */ + public double getDAngle() { + return dAngle_; + } + /** + * double DAngle = 8; + */ + public Builder setDAngle(double value) { + + dAngle_ = value; + onChanged(); + return this; + } + /** + * double DAngle = 8; + */ + public Builder clearDAngle() { + + dAngle_ = 0D; + onChanged(); + return this; + } + + private int colorIndex_ ; + /** + * int32 ColorIndex = 9; + */ + public int getColorIndex() { + return colorIndex_; + } + /** + * int32 ColorIndex = 9; + */ + public Builder setColorIndex(int value) { + + colorIndex_ = value; + onChanged(); + return this; + } + /** + * int32 ColorIndex = 9; + */ + public Builder clearColorIndex() { + + colorIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Embroidery.Stitch) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Embroidery.Stitch) + private static final com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch(); + } + + public static com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public Stitch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Stitch(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.embroidery.StitchOuterClass.Stitch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Embroidery_Stitch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Embroidery_Stitch_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\014Stitch.proto\022\024Tango.PMR.Embroidery\032\020St" + + "itchFlag.proto\"\253\001\n\006Stitch\022.\n\004Flag\030\001 \001(\0162" + + " .Tango.PMR.Embroidery.StitchFlag\022\n\n\002XX\030" + + "\002 \001(\001\022\n\n\002YY\030\003 \001(\001\022\n\n\002DX\030\004 \001(\001\022\n\n\002DY\030\005 \001(" + + "\001\022\016\n\006Length\030\006 \001(\001\022\r\n\005Angle\030\007 \001(\001\022\016\n\006DAng" + + "le\030\010 \001(\001\022\022\n\nColorIndex\030\t \001(\005B \n\036com.twin" + + "e.tango.pmr.embroideryb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.embroidery.StitchFlagOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Embroidery_Stitch_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Embroidery_Stitch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Embroidery_Stitch_descriptor, + new java.lang.String[] { "Flag", "XX", "YY", "DX", "DY", "Length", "Angle", "DAngle", "ColorIndex", }); + com.twine.tango.pmr.embroidery.StitchFlagOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareConfigurationOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareConfigurationOuterClass.java new file mode 100644 index 000000000..66659f82e --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareConfigurationOuterClass.java @@ -0,0 +1,2298 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareConfiguration.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareConfigurationOuterClass { + private HardwareConfigurationOuterClass() {} + 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 HardwareConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.HardwareConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + java.util.List + getDancersList(); + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer getDancers(int index); + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + int getDancersCount(); + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + java.util.List + getDancersOrBuilderList(); + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder getDancersOrBuilder( + int index); + + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + java.util.List + getDispensersList(); + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser getDispensers(int index); + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + int getDispensersCount(); + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + java.util.List + getDispensersOrBuilderList(); + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder getDispensersOrBuilder( + int index); + + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + java.util.List + getMotorsList(); + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor getMotors(int index); + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + int getMotorsCount(); + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + java.util.List + getMotorsOrBuilderList(); + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder getMotorsOrBuilder( + int index); + + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + java.util.List + getPidControlsList(); + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl getPidControls(int index); + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + int getPidControlsCount(); + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + java.util.List + getPidControlsOrBuilderList(); + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder getPidControlsOrBuilder( + int index); + + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + java.util.List + getWindersList(); + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder getWinders(int index); + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + int getWindersCount(); + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + java.util.List + getWindersOrBuilderList(); + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder getWindersOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.HardwareConfiguration} + */ + public static final class HardwareConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.HardwareConfiguration) + HardwareConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareConfiguration.newBuilder() to construct. + private HardwareConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HardwareConfiguration() { + dancers_ = java.util.Collections.emptyList(); + dispensers_ = java.util.Collections.emptyList(); + motors_ = java.util.Collections.emptyList(); + pidControls_ = java.util.Collections.emptyList(); + winders_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HardwareConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + dancers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dancers_.add( + input.readMessage(com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + dispensers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + dispensers_.add( + input.readMessage(com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + motors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + motors_.add( + input.readMessage(com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.parser(), extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + pidControls_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + pidControls_.add( + input.readMessage(com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.parser(), extensionRegistry)); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + winders_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + winders_.add( + input.readMessage(com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + dancers_ = java.util.Collections.unmodifiableList(dancers_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + dispensers_ = java.util.Collections.unmodifiableList(dispensers_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + motors_ = java.util.Collections.unmodifiableList(motors_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + pidControls_ = java.util.Collections.unmodifiableList(pidControls_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + winders_ = java.util.Collections.unmodifiableList(winders_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.internal_static_Tango_PMR_Hardware_HardwareConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.internal_static_Tango_PMR_Hardware_HardwareConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.class, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder.class); + } + + public static final int DANCERS_FIELD_NUMBER = 1; + private java.util.List dancers_; + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public java.util.List getDancersList() { + return dancers_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public java.util.List + getDancersOrBuilderList() { + return dancers_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public int getDancersCount() { + return dancers_.size(); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer getDancers(int index) { + return dancers_.get(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder getDancersOrBuilder( + int index) { + return dancers_.get(index); + } + + public static final int DISPENSERS_FIELD_NUMBER = 2; + private java.util.List dispensers_; + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public java.util.List getDispensersList() { + return dispensers_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public java.util.List + getDispensersOrBuilderList() { + return dispensers_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public int getDispensersCount() { + return dispensers_.size(); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser getDispensers(int index) { + return dispensers_.get(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder getDispensersOrBuilder( + int index) { + return dispensers_.get(index); + } + + public static final int MOTORS_FIELD_NUMBER = 3; + private java.util.List motors_; + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public java.util.List getMotorsList() { + return motors_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public java.util.List + getMotorsOrBuilderList() { + return motors_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public int getMotorsCount() { + return motors_.size(); + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor getMotors(int index) { + return motors_.get(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder getMotorsOrBuilder( + int index) { + return motors_.get(index); + } + + public static final int PIDCONTROLS_FIELD_NUMBER = 4; + private java.util.List pidControls_; + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public java.util.List getPidControlsList() { + return pidControls_; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public java.util.List + getPidControlsOrBuilderList() { + return pidControls_; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public int getPidControlsCount() { + return pidControls_.size(); + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl getPidControls(int index) { + return pidControls_.get(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder getPidControlsOrBuilder( + int index) { + return pidControls_.get(index); + } + + public static final int WINDERS_FIELD_NUMBER = 5; + private java.util.List winders_; + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public java.util.List getWindersList() { + return winders_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public java.util.List + getWindersOrBuilderList() { + return winders_; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public int getWindersCount() { + return winders_.size(); + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder getWinders(int index) { + return winders_.get(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder getWindersOrBuilder( + int index) { + return winders_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < dancers_.size(); i++) { + output.writeMessage(1, dancers_.get(i)); + } + for (int i = 0; i < dispensers_.size(); i++) { + output.writeMessage(2, dispensers_.get(i)); + } + for (int i = 0; i < motors_.size(); i++) { + output.writeMessage(3, motors_.get(i)); + } + for (int i = 0; i < pidControls_.size(); i++) { + output.writeMessage(4, pidControls_.get(i)); + } + for (int i = 0; i < winders_.size(); i++) { + output.writeMessage(5, winders_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dancers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dancers_.get(i)); + } + for (int i = 0; i < dispensers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, dispensers_.get(i)); + } + for (int i = 0; i < motors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, motors_.get(i)); + } + for (int i = 0; i < pidControls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, pidControls_.get(i)); + } + for (int i = 0; i < winders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, winders_.get(i)); + } + 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 com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration other = (com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration) obj; + + boolean result = true; + result = result && getDancersList() + .equals(other.getDancersList()); + result = result && getDispensersList() + .equals(other.getDispensersList()); + result = result && getMotorsList() + .equals(other.getMotorsList()); + result = result && getPidControlsList() + .equals(other.getPidControlsList()); + result = result && getWindersList() + .equals(other.getWindersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDancersCount() > 0) { + hash = (37 * hash) + DANCERS_FIELD_NUMBER; + hash = (53 * hash) + getDancersList().hashCode(); + } + if (getDispensersCount() > 0) { + hash = (37 * hash) + DISPENSERS_FIELD_NUMBER; + hash = (53 * hash) + getDispensersList().hashCode(); + } + if (getMotorsCount() > 0) { + hash = (37 * hash) + MOTORS_FIELD_NUMBER; + hash = (53 * hash) + getMotorsList().hashCode(); + } + if (getPidControlsCount() > 0) { + hash = (37 * hash) + PIDCONTROLS_FIELD_NUMBER; + hash = (53 * hash) + getPidControlsList().hashCode(); + } + if (getWindersCount() > 0) { + hash = (37 * hash) + WINDERS_FIELD_NUMBER; + hash = (53 * hash) + getWindersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration 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 com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration 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 com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.HardwareConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.HardwareConfiguration) + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.internal_static_Tango_PMR_Hardware_HardwareConfiguration_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.internal_static_Tango_PMR_Hardware_HardwareConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.class, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDancersFieldBuilder(); + getDispensersFieldBuilder(); + getMotorsFieldBuilder(); + getPidControlsFieldBuilder(); + getWindersFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + if (dancersBuilder_ == null) { + dancers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dancersBuilder_.clear(); + } + if (dispensersBuilder_ == null) { + dispensers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + dispensersBuilder_.clear(); + } + if (motorsBuilder_ == null) { + motors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + motorsBuilder_.clear(); + } + if (pidControlsBuilder_ == null) { + pidControls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + pidControlsBuilder_.clear(); + } + if (windersBuilder_ == null) { + winders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + windersBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.internal_static_Tango_PMR_Hardware_HardwareConfiguration_descriptor; + } + + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration build() { + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration buildPartial() { + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration result = new com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration(this); + int from_bitField0_ = bitField0_; + if (dancersBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + dancers_ = java.util.Collections.unmodifiableList(dancers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dancers_ = dancers_; + } else { + result.dancers_ = dancersBuilder_.build(); + } + if (dispensersBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + dispensers_ = java.util.Collections.unmodifiableList(dispensers_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dispensers_ = dispensers_; + } else { + result.dispensers_ = dispensersBuilder_.build(); + } + if (motorsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + motors_ = java.util.Collections.unmodifiableList(motors_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.motors_ = motors_; + } else { + result.motors_ = motorsBuilder_.build(); + } + if (pidControlsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + pidControls_ = java.util.Collections.unmodifiableList(pidControls_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.pidControls_ = pidControls_; + } else { + result.pidControls_ = pidControlsBuilder_.build(); + } + if (windersBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + winders_ = java.util.Collections.unmodifiableList(winders_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.winders_ = winders_; + } else { + result.winders_ = windersBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration) { + return mergeFrom((com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration other) { + if (other == com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.getDefaultInstance()) return this; + if (dancersBuilder_ == null) { + if (!other.dancers_.isEmpty()) { + if (dancers_.isEmpty()) { + dancers_ = other.dancers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDancersIsMutable(); + dancers_.addAll(other.dancers_); + } + onChanged(); + } + } else { + if (!other.dancers_.isEmpty()) { + if (dancersBuilder_.isEmpty()) { + dancersBuilder_.dispose(); + dancersBuilder_ = null; + dancers_ = other.dancers_; + bitField0_ = (bitField0_ & ~0x00000001); + dancersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDancersFieldBuilder() : null; + } else { + dancersBuilder_.addAllMessages(other.dancers_); + } + } + } + if (dispensersBuilder_ == null) { + if (!other.dispensers_.isEmpty()) { + if (dispensers_.isEmpty()) { + dispensers_ = other.dispensers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDispensersIsMutable(); + dispensers_.addAll(other.dispensers_); + } + onChanged(); + } + } else { + if (!other.dispensers_.isEmpty()) { + if (dispensersBuilder_.isEmpty()) { + dispensersBuilder_.dispose(); + dispensersBuilder_ = null; + dispensers_ = other.dispensers_; + bitField0_ = (bitField0_ & ~0x00000002); + dispensersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDispensersFieldBuilder() : null; + } else { + dispensersBuilder_.addAllMessages(other.dispensers_); + } + } + } + if (motorsBuilder_ == null) { + if (!other.motors_.isEmpty()) { + if (motors_.isEmpty()) { + motors_ = other.motors_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMotorsIsMutable(); + motors_.addAll(other.motors_); + } + onChanged(); + } + } else { + if (!other.motors_.isEmpty()) { + if (motorsBuilder_.isEmpty()) { + motorsBuilder_.dispose(); + motorsBuilder_ = null; + motors_ = other.motors_; + bitField0_ = (bitField0_ & ~0x00000004); + motorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMotorsFieldBuilder() : null; + } else { + motorsBuilder_.addAllMessages(other.motors_); + } + } + } + if (pidControlsBuilder_ == null) { + if (!other.pidControls_.isEmpty()) { + if (pidControls_.isEmpty()) { + pidControls_ = other.pidControls_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePidControlsIsMutable(); + pidControls_.addAll(other.pidControls_); + } + onChanged(); + } + } else { + if (!other.pidControls_.isEmpty()) { + if (pidControlsBuilder_.isEmpty()) { + pidControlsBuilder_.dispose(); + pidControlsBuilder_ = null; + pidControls_ = other.pidControls_; + bitField0_ = (bitField0_ & ~0x00000008); + pidControlsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPidControlsFieldBuilder() : null; + } else { + pidControlsBuilder_.addAllMessages(other.pidControls_); + } + } + } + if (windersBuilder_ == null) { + if (!other.winders_.isEmpty()) { + if (winders_.isEmpty()) { + winders_ = other.winders_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureWindersIsMutable(); + winders_.addAll(other.winders_); + } + onChanged(); + } + } else { + if (!other.winders_.isEmpty()) { + if (windersBuilder_.isEmpty()) { + windersBuilder_.dispose(); + windersBuilder_ = null; + winders_ = other.winders_; + bitField0_ = (bitField0_ & ~0x00000010); + windersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWindersFieldBuilder() : null; + } else { + windersBuilder_.addAllMessages(other.winders_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List dancers_ = + java.util.Collections.emptyList(); + private void ensureDancersIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + dancers_ = new java.util.ArrayList(dancers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder> dancersBuilder_; + + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public java.util.List getDancersList() { + if (dancersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dancers_); + } else { + return dancersBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public int getDancersCount() { + if (dancersBuilder_ == null) { + return dancers_.size(); + } else { + return dancersBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer getDancers(int index) { + if (dancersBuilder_ == null) { + return dancers_.get(index); + } else { + return dancersBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder setDancers( + int index, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer value) { + if (dancersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDancersIsMutable(); + dancers_.set(index, value); + onChanged(); + } else { + dancersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder setDancers( + int index, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder builderForValue) { + if (dancersBuilder_ == null) { + ensureDancersIsMutable(); + dancers_.set(index, builderForValue.build()); + onChanged(); + } else { + dancersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder addDancers(com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer value) { + if (dancersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDancersIsMutable(); + dancers_.add(value); + onChanged(); + } else { + dancersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder addDancers( + int index, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer value) { + if (dancersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDancersIsMutable(); + dancers_.add(index, value); + onChanged(); + } else { + dancersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder addDancers( + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder builderForValue) { + if (dancersBuilder_ == null) { + ensureDancersIsMutable(); + dancers_.add(builderForValue.build()); + onChanged(); + } else { + dancersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder addDancers( + int index, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder builderForValue) { + if (dancersBuilder_ == null) { + ensureDancersIsMutable(); + dancers_.add(index, builderForValue.build()); + onChanged(); + } else { + dancersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder addAllDancers( + java.lang.Iterable values) { + if (dancersBuilder_ == null) { + ensureDancersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dancers_); + onChanged(); + } else { + dancersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder clearDancers() { + if (dancersBuilder_ == null) { + dancers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dancersBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public Builder removeDancers(int index) { + if (dancersBuilder_ == null) { + ensureDancersIsMutable(); + dancers_.remove(index); + onChanged(); + } else { + dancersBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder getDancersBuilder( + int index) { + return getDancersFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder getDancersOrBuilder( + int index) { + if (dancersBuilder_ == null) { + return dancers_.get(index); } else { + return dancersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public java.util.List + getDancersOrBuilderList() { + if (dancersBuilder_ != null) { + return dancersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dancers_); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder addDancersBuilder() { + return getDancersFieldBuilder().addBuilder( + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder addDancersBuilder( + int index) { + return getDancersFieldBuilder().addBuilder( + index, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDancer Dancers = 1; + */ + public java.util.List + getDancersBuilderList() { + return getDancersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder> + getDancersFieldBuilder() { + if (dancersBuilder_ == null) { + dancersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder>( + dancers_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + dancers_ = null; + } + return dancersBuilder_; + } + + private java.util.List dispensers_ = + java.util.Collections.emptyList(); + private void ensureDispensersIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + dispensers_ = new java.util.ArrayList(dispensers_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder> dispensersBuilder_; + + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public java.util.List getDispensersList() { + if (dispensersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dispensers_); + } else { + return dispensersBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public int getDispensersCount() { + if (dispensersBuilder_ == null) { + return dispensers_.size(); + } else { + return dispensersBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser getDispensers(int index) { + if (dispensersBuilder_ == null) { + return dispensers_.get(index); + } else { + return dispensersBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder setDispensers( + int index, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser value) { + if (dispensersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersIsMutable(); + dispensers_.set(index, value); + onChanged(); + } else { + dispensersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder setDispensers( + int index, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder builderForValue) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.set(index, builderForValue.build()); + onChanged(); + } else { + dispensersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder addDispensers(com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser value) { + if (dispensersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersIsMutable(); + dispensers_.add(value); + onChanged(); + } else { + dispensersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder addDispensers( + int index, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser value) { + if (dispensersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersIsMutable(); + dispensers_.add(index, value); + onChanged(); + } else { + dispensersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder addDispensers( + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder builderForValue) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.add(builderForValue.build()); + onChanged(); + } else { + dispensersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder addDispensers( + int index, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder builderForValue) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.add(index, builderForValue.build()); + onChanged(); + } else { + dispensersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder addAllDispensers( + java.lang.Iterable values) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispensers_); + onChanged(); + } else { + dispensersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder clearDispensers() { + if (dispensersBuilder_ == null) { + dispensers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dispensersBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public Builder removeDispensers(int index) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.remove(index); + onChanged(); + } else { + dispensersBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder getDispensersBuilder( + int index) { + return getDispensersFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder getDispensersOrBuilder( + int index) { + if (dispensersBuilder_ == null) { + return dispensers_.get(index); } else { + return dispensersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public java.util.List + getDispensersOrBuilderList() { + if (dispensersBuilder_ != null) { + return dispensersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dispensers_); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder addDispensersBuilder() { + return getDispensersFieldBuilder().addBuilder( + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder addDispensersBuilder( + int index) { + return getDispensersFieldBuilder().addBuilder( + index, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareDispenser Dispensers = 2; + */ + public java.util.List + getDispensersBuilderList() { + return getDispensersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder> + getDispensersFieldBuilder() { + if (dispensersBuilder_ == null) { + dispensersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder>( + dispensers_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + dispensers_ = null; + } + return dispensersBuilder_; + } + + private java.util.List motors_ = + java.util.Collections.emptyList(); + private void ensureMotorsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + motors_ = new java.util.ArrayList(motors_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder> motorsBuilder_; + + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public java.util.List getMotorsList() { + if (motorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(motors_); + } else { + return motorsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public int getMotorsCount() { + if (motorsBuilder_ == null) { + return motors_.size(); + } else { + return motorsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor getMotors(int index) { + if (motorsBuilder_ == null) { + return motors_.get(index); + } else { + return motorsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder setMotors( + int index, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor value) { + if (motorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMotorsIsMutable(); + motors_.set(index, value); + onChanged(); + } else { + motorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder setMotors( + int index, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder builderForValue) { + if (motorsBuilder_ == null) { + ensureMotorsIsMutable(); + motors_.set(index, builderForValue.build()); + onChanged(); + } else { + motorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder addMotors(com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor value) { + if (motorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMotorsIsMutable(); + motors_.add(value); + onChanged(); + } else { + motorsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder addMotors( + int index, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor value) { + if (motorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMotorsIsMutable(); + motors_.add(index, value); + onChanged(); + } else { + motorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder addMotors( + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder builderForValue) { + if (motorsBuilder_ == null) { + ensureMotorsIsMutable(); + motors_.add(builderForValue.build()); + onChanged(); + } else { + motorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder addMotors( + int index, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder builderForValue) { + if (motorsBuilder_ == null) { + ensureMotorsIsMutable(); + motors_.add(index, builderForValue.build()); + onChanged(); + } else { + motorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder addAllMotors( + java.lang.Iterable values) { + if (motorsBuilder_ == null) { + ensureMotorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, motors_); + onChanged(); + } else { + motorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder clearMotors() { + if (motorsBuilder_ == null) { + motors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + motorsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public Builder removeMotors(int index) { + if (motorsBuilder_ == null) { + ensureMotorsIsMutable(); + motors_.remove(index); + onChanged(); + } else { + motorsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder getMotorsBuilder( + int index) { + return getMotorsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder getMotorsOrBuilder( + int index) { + if (motorsBuilder_ == null) { + return motors_.get(index); } else { + return motorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public java.util.List + getMotorsOrBuilderList() { + if (motorsBuilder_ != null) { + return motorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(motors_); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder addMotorsBuilder() { + return getMotorsFieldBuilder().addBuilder( + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder addMotorsBuilder( + int index) { + return getMotorsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareMotor Motors = 3; + */ + public java.util.List + getMotorsBuilderList() { + return getMotorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder> + getMotorsFieldBuilder() { + if (motorsBuilder_ == null) { + motorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder>( + motors_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + motors_ = null; + } + return motorsBuilder_; + } + + private java.util.List pidControls_ = + java.util.Collections.emptyList(); + private void ensurePidControlsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + pidControls_ = new java.util.ArrayList(pidControls_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder> pidControlsBuilder_; + + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public java.util.List getPidControlsList() { + if (pidControlsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pidControls_); + } else { + return pidControlsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public int getPidControlsCount() { + if (pidControlsBuilder_ == null) { + return pidControls_.size(); + } else { + return pidControlsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl getPidControls(int index) { + if (pidControlsBuilder_ == null) { + return pidControls_.get(index); + } else { + return pidControlsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder setPidControls( + int index, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl value) { + if (pidControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidControlsIsMutable(); + pidControls_.set(index, value); + onChanged(); + } else { + pidControlsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder setPidControls( + int index, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder builderForValue) { + if (pidControlsBuilder_ == null) { + ensurePidControlsIsMutable(); + pidControls_.set(index, builderForValue.build()); + onChanged(); + } else { + pidControlsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder addPidControls(com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl value) { + if (pidControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidControlsIsMutable(); + pidControls_.add(value); + onChanged(); + } else { + pidControlsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder addPidControls( + int index, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl value) { + if (pidControlsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePidControlsIsMutable(); + pidControls_.add(index, value); + onChanged(); + } else { + pidControlsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder addPidControls( + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder builderForValue) { + if (pidControlsBuilder_ == null) { + ensurePidControlsIsMutable(); + pidControls_.add(builderForValue.build()); + onChanged(); + } else { + pidControlsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder addPidControls( + int index, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder builderForValue) { + if (pidControlsBuilder_ == null) { + ensurePidControlsIsMutable(); + pidControls_.add(index, builderForValue.build()); + onChanged(); + } else { + pidControlsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder addAllPidControls( + java.lang.Iterable values) { + if (pidControlsBuilder_ == null) { + ensurePidControlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, pidControls_); + onChanged(); + } else { + pidControlsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder clearPidControls() { + if (pidControlsBuilder_ == null) { + pidControls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + pidControlsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public Builder removePidControls(int index) { + if (pidControlsBuilder_ == null) { + ensurePidControlsIsMutable(); + pidControls_.remove(index); + onChanged(); + } else { + pidControlsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder getPidControlsBuilder( + int index) { + return getPidControlsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder getPidControlsOrBuilder( + int index) { + if (pidControlsBuilder_ == null) { + return pidControls_.get(index); } else { + return pidControlsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public java.util.List + getPidControlsOrBuilderList() { + if (pidControlsBuilder_ != null) { + return pidControlsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(pidControls_); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder addPidControlsBuilder() { + return getPidControlsFieldBuilder().addBuilder( + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder addPidControlsBuilder( + int index) { + return getPidControlsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwarePidControl PidControls = 4; + */ + public java.util.List + getPidControlsBuilderList() { + return getPidControlsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder> + getPidControlsFieldBuilder() { + if (pidControlsBuilder_ == null) { + pidControlsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder>( + pidControls_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + pidControls_ = null; + } + return pidControlsBuilder_; + } + + private java.util.List winders_ = + java.util.Collections.emptyList(); + private void ensureWindersIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + winders_ = new java.util.ArrayList(winders_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder> windersBuilder_; + + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public java.util.List getWindersList() { + if (windersBuilder_ == null) { + return java.util.Collections.unmodifiableList(winders_); + } else { + return windersBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public int getWindersCount() { + if (windersBuilder_ == null) { + return winders_.size(); + } else { + return windersBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder getWinders(int index) { + if (windersBuilder_ == null) { + return winders_.get(index); + } else { + return windersBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder setWinders( + int index, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder value) { + if (windersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWindersIsMutable(); + winders_.set(index, value); + onChanged(); + } else { + windersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder setWinders( + int index, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder builderForValue) { + if (windersBuilder_ == null) { + ensureWindersIsMutable(); + winders_.set(index, builderForValue.build()); + onChanged(); + } else { + windersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder addWinders(com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder value) { + if (windersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWindersIsMutable(); + winders_.add(value); + onChanged(); + } else { + windersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder addWinders( + int index, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder value) { + if (windersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWindersIsMutable(); + winders_.add(index, value); + onChanged(); + } else { + windersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder addWinders( + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder builderForValue) { + if (windersBuilder_ == null) { + ensureWindersIsMutable(); + winders_.add(builderForValue.build()); + onChanged(); + } else { + windersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder addWinders( + int index, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder builderForValue) { + if (windersBuilder_ == null) { + ensureWindersIsMutable(); + winders_.add(index, builderForValue.build()); + onChanged(); + } else { + windersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder addAllWinders( + java.lang.Iterable values) { + if (windersBuilder_ == null) { + ensureWindersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, winders_); + onChanged(); + } else { + windersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder clearWinders() { + if (windersBuilder_ == null) { + winders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + windersBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public Builder removeWinders(int index) { + if (windersBuilder_ == null) { + ensureWindersIsMutable(); + winders_.remove(index); + onChanged(); + } else { + windersBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder getWindersBuilder( + int index) { + return getWindersFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder getWindersOrBuilder( + int index) { + if (windersBuilder_ == null) { + return winders_.get(index); } else { + return windersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public java.util.List + getWindersOrBuilderList() { + if (windersBuilder_ != null) { + return windersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(winders_); + } + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder addWindersBuilder() { + return getWindersFieldBuilder().addBuilder( + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder addWindersBuilder( + int index) { + return getWindersFieldBuilder().addBuilder( + index, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Hardware.HardwareWinder Winders = 5; + */ + public java.util.List + getWindersBuilderList() { + return getWindersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder> + getWindersFieldBuilder() { + if (windersBuilder_ == null) { + windersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder>( + winders_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + winders_ = null; + } + return windersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.HardwareConfiguration) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwareConfiguration) + private static final com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration(); + } + + public static com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HardwareConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HardwareConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_HardwareConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_HardwareConfiguration_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\033HardwareConfiguration.proto\022\022Tango.PMR" + + ".Hardware\032\024HardwareDancer.proto\032\027Hardwar" + + "eDispenser.proto\032\023HardwareMotor.proto\032\030H" + + "ardwarePidControl.proto\032\024HardwareWinder." + + "proto\"\254\002\n\025HardwareConfiguration\0223\n\007Dance" + + "rs\030\001 \003(\0132\".Tango.PMR.Hardware.HardwareDa" + + "ncer\0229\n\nDispensers\030\002 \003(\0132%.Tango.PMR.Har" + + "dware.HardwareDispenser\0221\n\006Motors\030\003 \003(\0132" + + "!.Tango.PMR.Hardware.HardwareMotor\022;\n\013Pi" + + "dControls\030\004 \003(\0132&.Tango.PMR.Hardware.Har", + "dwarePidControl\0223\n\007Winders\030\005 \003(\0132\".Tango" + + ".PMR.Hardware.HardwareWinderB\036\n\034com.twin" + + "e.tango.pmr.hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.getDescriptor(), + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.getDescriptor(), + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.getDescriptor(), + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.getDescriptor(), + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_HardwareConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_HardwareConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_HardwareConfiguration_descriptor, + new java.lang.String[] { "Dancers", "Dispensers", "Motors", "PidControls", "Winders", }); + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.getDescriptor(); + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.getDescriptor(); + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.getDescriptor(); + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.getDescriptor(); + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerOuterClass.java new file mode 100644 index 000000000..b99046cb9 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerOuterClass.java @@ -0,0 +1,798 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareDancer.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareDancerOuterClass { + private HardwareDancerOuterClass() {} + 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 HardwareDancerOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.HardwareDancer) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + int getHardwareDancerTypeValue(); + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType getHardwareDancerType(); + + /** + * bool Gradual = 2; + */ + boolean getGradual(); + + /** + * double K = 3; + */ + double getK(); + + /** + * double X = 4; + */ + double getX(); + + /** + * int32 PulsePerMmSpring = 5; + */ + int getPulsePerMmSpring(); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.HardwareDancer} + */ + public static final class HardwareDancer extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.HardwareDancer) + HardwareDancerOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareDancer.newBuilder() to construct. + private HardwareDancer(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HardwareDancer() { + hardwareDancerType_ = 0; + gradual_ = false; + k_ = 0D; + x_ = 0D; + pulsePerMmSpring_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HardwareDancer( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + hardwareDancerType_ = rawValue; + break; + } + case 16: { + + gradual_ = input.readBool(); + break; + } + case 25: { + + k_ = input.readDouble(); + break; + } + case 33: { + + x_ = input.readDouble(); + break; + } + case 40: { + + pulsePerMmSpring_ = input.readInt32(); + 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 com.twine.tango.pmr.hardware.HardwareDancerOuterClass.internal_static_Tango_PMR_Hardware_HardwareDancer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareDancerOuterClass.internal_static_Tango_PMR_Hardware_HardwareDancer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.class, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder.class); + } + + public static final int HARDWAREDANCERTYPE_FIELD_NUMBER = 1; + private int hardwareDancerType_; + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public int getHardwareDancerTypeValue() { + return hardwareDancerType_; + } + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType getHardwareDancerType() { + com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType result = com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType.valueOf(hardwareDancerType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType.UNRECOGNIZED : result; + } + + public static final int GRADUAL_FIELD_NUMBER = 2; + private boolean gradual_; + /** + * bool Gradual = 2; + */ + public boolean getGradual() { + return gradual_; + } + + public static final int K_FIELD_NUMBER = 3; + private double k_; + /** + * double K = 3; + */ + public double getK() { + return k_; + } + + public static final int X_FIELD_NUMBER = 4; + private double x_; + /** + * double X = 4; + */ + public double getX() { + return x_; + } + + public static final int PULSEPERMMSPRING_FIELD_NUMBER = 5; + private int pulsePerMmSpring_; + /** + * int32 PulsePerMmSpring = 5; + */ + public int getPulsePerMmSpring() { + return pulsePerMmSpring_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardwareDancerType_ != com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType.LeftDancer.getNumber()) { + output.writeEnum(1, hardwareDancerType_); + } + if (gradual_ != false) { + output.writeBool(2, gradual_); + } + if (k_ != 0D) { + output.writeDouble(3, k_); + } + if (x_ != 0D) { + output.writeDouble(4, x_); + } + if (pulsePerMmSpring_ != 0) { + output.writeInt32(5, pulsePerMmSpring_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hardwareDancerType_ != com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType.LeftDancer.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hardwareDancerType_); + } + if (gradual_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, gradual_); + } + if (k_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, k_); + } + if (x_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, x_); + } + if (pulsePerMmSpring_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, pulsePerMmSpring_); + } + 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 com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer other = (com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer) obj; + + boolean result = true; + result = result && hardwareDancerType_ == other.hardwareDancerType_; + result = result && (getGradual() + == other.getGradual()); + result = result && ( + java.lang.Double.doubleToLongBits(getK()) + == java.lang.Double.doubleToLongBits( + other.getK())); + result = result && ( + java.lang.Double.doubleToLongBits(getX()) + == java.lang.Double.doubleToLongBits( + other.getX())); + result = result && (getPulsePerMmSpring() + == other.getPulsePerMmSpring()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HARDWAREDANCERTYPE_FIELD_NUMBER; + hash = (53 * hash) + hardwareDancerType_; + hash = (37 * hash) + GRADUAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getGradual()); + hash = (37 * hash) + K_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getK())); + hash = (37 * hash) + X_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getX())); + hash = (37 * hash) + PULSEPERMMSPRING_FIELD_NUMBER; + hash = (53 * hash) + getPulsePerMmSpring(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer 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 com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer 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 com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.HardwareDancer} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.HardwareDancer) + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwareDancerOuterClass.internal_static_Tango_PMR_Hardware_HardwareDancer_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareDancerOuterClass.internal_static_Tango_PMR_Hardware_HardwareDancer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.class, com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + hardwareDancerType_ = 0; + + gradual_ = false; + + k_ = 0D; + + x_ = 0D; + + pulsePerMmSpring_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.HardwareDancerOuterClass.internal_static_Tango_PMR_Hardware_HardwareDancer_descriptor; + } + + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer build() { + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer buildPartial() { + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer result = new com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer(this); + result.hardwareDancerType_ = hardwareDancerType_; + result.gradual_ = gradual_; + result.k_ = k_; + result.x_ = x_; + result.pulsePerMmSpring_ = pulsePerMmSpring_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer) { + return mergeFrom((com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer other) { + if (other == com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer.getDefaultInstance()) return this; + if (other.hardwareDancerType_ != 0) { + setHardwareDancerTypeValue(other.getHardwareDancerTypeValue()); + } + if (other.getGradual() != false) { + setGradual(other.getGradual()); + } + if (other.getK() != 0D) { + setK(other.getK()); + } + if (other.getX() != 0D) { + setX(other.getX()); + } + if (other.getPulsePerMmSpring() != 0) { + setPulsePerMmSpring(other.getPulsePerMmSpring()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int hardwareDancerType_ = 0; + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public int getHardwareDancerTypeValue() { + return hardwareDancerType_; + } + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public Builder setHardwareDancerTypeValue(int value) { + hardwareDancerType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType getHardwareDancerType() { + com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType result = com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType.valueOf(hardwareDancerType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public Builder setHardwareDancerType(com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.HardwareDancerType value) { + if (value == null) { + throw new NullPointerException(); + } + + hardwareDancerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareDancerType HardwareDancerType = 1; + */ + public Builder clearHardwareDancerType() { + + hardwareDancerType_ = 0; + onChanged(); + return this; + } + + private boolean gradual_ ; + /** + * bool Gradual = 2; + */ + public boolean getGradual() { + return gradual_; + } + /** + * bool Gradual = 2; + */ + public Builder setGradual(boolean value) { + + gradual_ = value; + onChanged(); + return this; + } + /** + * bool Gradual = 2; + */ + public Builder clearGradual() { + + gradual_ = false; + onChanged(); + return this; + } + + private double k_ ; + /** + * double K = 3; + */ + public double getK() { + return k_; + } + /** + * double K = 3; + */ + public Builder setK(double value) { + + k_ = value; + onChanged(); + return this; + } + /** + * double K = 3; + */ + public Builder clearK() { + + k_ = 0D; + onChanged(); + return this; + } + + private double x_ ; + /** + * double X = 4; + */ + public double getX() { + return x_; + } + /** + * double X = 4; + */ + public Builder setX(double value) { + + x_ = value; + onChanged(); + return this; + } + /** + * double X = 4; + */ + public Builder clearX() { + + x_ = 0D; + onChanged(); + return this; + } + + private int pulsePerMmSpring_ ; + /** + * int32 PulsePerMmSpring = 5; + */ + public int getPulsePerMmSpring() { + return pulsePerMmSpring_; + } + /** + * int32 PulsePerMmSpring = 5; + */ + public Builder setPulsePerMmSpring(int value) { + + pulsePerMmSpring_ = value; + onChanged(); + return this; + } + /** + * int32 PulsePerMmSpring = 5; + */ + public Builder clearPulsePerMmSpring() { + + pulsePerMmSpring_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.HardwareDancer) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwareDancer) + private static final com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer(); + } + + public static com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HardwareDancer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HardwareDancer(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.HardwareDancerOuterClass.HardwareDancer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_HardwareDancer_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_HardwareDancer_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\024HardwareDancer.proto\022\022Tango.PMR.Hardwa" + + "re\032\030HardwareDancerType.proto\"\225\001\n\016Hardwar" + + "eDancer\022B\n\022HardwareDancerType\030\001 \001(\0162&.Ta" + + "ngo.PMR.Hardware.HardwareDancerType\022\017\n\007G" + + "radual\030\002 \001(\010\022\t\n\001K\030\003 \001(\001\022\t\n\001X\030\004 \001(\001\022\030\n\020Pu" + + "lsePerMmSpring\030\005 \001(\005B\036\n\034com.twine.tango." + + "pmr.hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_HardwareDancer_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_HardwareDancer_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_HardwareDancer_descriptor, + new java.lang.String[] { "HardwareDancerType", "Gradual", "K", "X", "PulsePerMmSpring", }); + com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerTypeOuterClass.java new file mode 100644 index 000000000..ea91e4b2f --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDancerTypeOuterClass.java @@ -0,0 +1,177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareDancerType.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareDancerTypeOuterClass { + private HardwareDancerTypeOuterClass() {} + 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 Tango.PMR.Hardware.HardwareDancerType} + */ + public enum HardwareDancerType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Left Dancer
+     * 
+ * + * LeftDancer = 0; + */ + LeftDancer(0), + /** + *
+     *Middle Dancer
+     * 
+ * + * MiddleDancer = 1; + */ + MiddleDancer(1), + /** + *
+     *Right Dancer
+     * 
+ * + * RightDancer = 2; + */ + RightDancer(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Left Dancer
+     * 
+ * + * LeftDancer = 0; + */ + public static final int LeftDancer_VALUE = 0; + /** + *
+     *Middle Dancer
+     * 
+ * + * MiddleDancer = 1; + */ + public static final int MiddleDancer_VALUE = 1; + /** + *
+     *Right Dancer
+     * 
+ * + * RightDancer = 2; + */ + public static final int RightDancer_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwareDancerType valueOf(int value) { + return forNumber(value); + } + + public static HardwareDancerType forNumber(int value) { + switch (value) { + case 0: return LeftDancer; + case 1: return MiddleDancer; + case 2: return RightDancer; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HardwareDancerType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HardwareDancerType findValueByNumber(int number) { + return HardwareDancerType.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 com.twine.tango.pmr.hardware.HardwareDancerTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HardwareDancerType[] VALUES = values(); + + public static HardwareDancerType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwareDancerType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Hardware.HardwareDancerType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\030HardwareDancerType.proto\022\022Tango.PMR.Ha" + + "rdware*G\n\022HardwareDancerType\022\016\n\nLeftDanc" + + "er\020\000\022\020\n\014MiddleDancer\020\001\022\017\n\013RightDancer\020\002B" + + "\036\n\034com.twine.tango.pmr.hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserOuterClass.java new file mode 100644 index 000000000..3af00225f --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserOuterClass.java @@ -0,0 +1,1454 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareDispenser.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareDispenserOuterClass { + private HardwareDispenserOuterClass() {} + 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 HardwareDispenserOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.HardwareDispenser) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + int getHardwareDispenserTypeValue(); + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType getHardwareDispenserType(); + + /** + * double NlPerPulse = 2; + */ + double getNlPerPulse(); + + /** + * double Capacity = 3; + */ + double getCapacity(); + + /** + * int32 MinFrequency = 4; + */ + int getMinFrequency(); + + /** + * int32 MaxFrequency = 5; + */ + int getMaxFrequency(); + + /** + * int32 MinMicroStep = 6; + */ + int getMinMicroStep(); + + /** + * int32 MaxMicroStep = 7; + */ + int getMaxMicroStep(); + + /** + * double CorrectionGain = 8; + */ + double getCorrectionGain(); + + /** + * double RatioToDryerSpeed = 9; + */ + double getRatioToDryerSpeed(); + + /** + * double Kp = 10; + */ + double getKp(); + + /** + * double Ki = 11; + */ + double getKi(); + + /** + * double Kd = 12; + */ + double getKd(); + + /** + * double ChangeSlope = 13; + */ + double getChangeSlope(); + + /** + * double HighLengthMicroSecond = 14; + */ + double getHighLengthMicroSecond(); + + /** + * int32 ControlTiming = 15; + */ + int getControlTiming(); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.HardwareDispenser} + */ + public static final class HardwareDispenser extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.HardwareDispenser) + HardwareDispenserOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareDispenser.newBuilder() to construct. + private HardwareDispenser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HardwareDispenser() { + hardwareDispenserType_ = 0; + nlPerPulse_ = 0D; + capacity_ = 0D; + minFrequency_ = 0; + maxFrequency_ = 0; + minMicroStep_ = 0; + maxMicroStep_ = 0; + correctionGain_ = 0D; + ratioToDryerSpeed_ = 0D; + kp_ = 0D; + ki_ = 0D; + kd_ = 0D; + changeSlope_ = 0D; + highLengthMicroSecond_ = 0D; + controlTiming_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HardwareDispenser( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + hardwareDispenserType_ = rawValue; + break; + } + case 17: { + + nlPerPulse_ = input.readDouble(); + break; + } + case 25: { + + capacity_ = input.readDouble(); + break; + } + case 32: { + + minFrequency_ = input.readInt32(); + break; + } + case 40: { + + maxFrequency_ = input.readInt32(); + break; + } + case 48: { + + minMicroStep_ = input.readInt32(); + break; + } + case 56: { + + maxMicroStep_ = input.readInt32(); + break; + } + case 65: { + + correctionGain_ = input.readDouble(); + break; + } + case 73: { + + ratioToDryerSpeed_ = input.readDouble(); + break; + } + case 81: { + + kp_ = input.readDouble(); + break; + } + case 89: { + + ki_ = input.readDouble(); + break; + } + case 97: { + + kd_ = input.readDouble(); + break; + } + case 105: { + + changeSlope_ = input.readDouble(); + break; + } + case 113: { + + highLengthMicroSecond_ = input.readDouble(); + break; + } + case 120: { + + controlTiming_ = input.readInt32(); + 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 com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.internal_static_Tango_PMR_Hardware_HardwareDispenser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.internal_static_Tango_PMR_Hardware_HardwareDispenser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.class, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder.class); + } + + public static final int HARDWAREDISPENSERTYPE_FIELD_NUMBER = 1; + private int hardwareDispenserType_; + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public int getHardwareDispenserTypeValue() { + return hardwareDispenserType_; + } + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType getHardwareDispenserType() { + com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType result = com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType.valueOf(hardwareDispenserType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType.UNRECOGNIZED : result; + } + + public static final int NLPERPULSE_FIELD_NUMBER = 2; + private double nlPerPulse_; + /** + * double NlPerPulse = 2; + */ + public double getNlPerPulse() { + return nlPerPulse_; + } + + public static final int CAPACITY_FIELD_NUMBER = 3; + private double capacity_; + /** + * double Capacity = 3; + */ + public double getCapacity() { + return capacity_; + } + + public static final int MINFREQUENCY_FIELD_NUMBER = 4; + private int minFrequency_; + /** + * int32 MinFrequency = 4; + */ + public int getMinFrequency() { + return minFrequency_; + } + + public static final int MAXFREQUENCY_FIELD_NUMBER = 5; + private int maxFrequency_; + /** + * int32 MaxFrequency = 5; + */ + public int getMaxFrequency() { + return maxFrequency_; + } + + public static final int MINMICROSTEP_FIELD_NUMBER = 6; + private int minMicroStep_; + /** + * int32 MinMicroStep = 6; + */ + public int getMinMicroStep() { + return minMicroStep_; + } + + public static final int MAXMICROSTEP_FIELD_NUMBER = 7; + private int maxMicroStep_; + /** + * int32 MaxMicroStep = 7; + */ + public int getMaxMicroStep() { + return maxMicroStep_; + } + + public static final int CORRECTIONGAIN_FIELD_NUMBER = 8; + private double correctionGain_; + /** + * double CorrectionGain = 8; + */ + public double getCorrectionGain() { + return correctionGain_; + } + + public static final int RATIOTODRYERSPEED_FIELD_NUMBER = 9; + private double ratioToDryerSpeed_; + /** + * double RatioToDryerSpeed = 9; + */ + public double getRatioToDryerSpeed() { + return ratioToDryerSpeed_; + } + + public static final int KP_FIELD_NUMBER = 10; + private double kp_; + /** + * double Kp = 10; + */ + public double getKp() { + return kp_; + } + + public static final int KI_FIELD_NUMBER = 11; + private double ki_; + /** + * double Ki = 11; + */ + public double getKi() { + return ki_; + } + + public static final int KD_FIELD_NUMBER = 12; + private double kd_; + /** + * double Kd = 12; + */ + public double getKd() { + return kd_; + } + + public static final int CHANGESLOPE_FIELD_NUMBER = 13; + private double changeSlope_; + /** + * double ChangeSlope = 13; + */ + public double getChangeSlope() { + return changeSlope_; + } + + public static final int HIGHLENGTHMICROSECOND_FIELD_NUMBER = 14; + private double highLengthMicroSecond_; + /** + * double HighLengthMicroSecond = 14; + */ + public double getHighLengthMicroSecond() { + return highLengthMicroSecond_; + } + + public static final int CONTROLTIMING_FIELD_NUMBER = 15; + private int controlTiming_; + /** + * int32 ControlTiming = 15; + */ + public int getControlTiming() { + return controlTiming_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardwareDispenserType_ != com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType.StandardDispenser.getNumber()) { + output.writeEnum(1, hardwareDispenserType_); + } + if (nlPerPulse_ != 0D) { + output.writeDouble(2, nlPerPulse_); + } + if (capacity_ != 0D) { + output.writeDouble(3, capacity_); + } + if (minFrequency_ != 0) { + output.writeInt32(4, minFrequency_); + } + if (maxFrequency_ != 0) { + output.writeInt32(5, maxFrequency_); + } + if (minMicroStep_ != 0) { + output.writeInt32(6, minMicroStep_); + } + if (maxMicroStep_ != 0) { + output.writeInt32(7, maxMicroStep_); + } + if (correctionGain_ != 0D) { + output.writeDouble(8, correctionGain_); + } + if (ratioToDryerSpeed_ != 0D) { + output.writeDouble(9, ratioToDryerSpeed_); + } + if (kp_ != 0D) { + output.writeDouble(10, kp_); + } + if (ki_ != 0D) { + output.writeDouble(11, ki_); + } + if (kd_ != 0D) { + output.writeDouble(12, kd_); + } + if (changeSlope_ != 0D) { + output.writeDouble(13, changeSlope_); + } + if (highLengthMicroSecond_ != 0D) { + output.writeDouble(14, highLengthMicroSecond_); + } + if (controlTiming_ != 0) { + output.writeInt32(15, controlTiming_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hardwareDispenserType_ != com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType.StandardDispenser.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hardwareDispenserType_); + } + if (nlPerPulse_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, nlPerPulse_); + } + if (capacity_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, capacity_); + } + if (minFrequency_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, minFrequency_); + } + if (maxFrequency_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxFrequency_); + } + if (minMicroStep_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, minMicroStep_); + } + if (maxMicroStep_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, maxMicroStep_); + } + if (correctionGain_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, correctionGain_); + } + if (ratioToDryerSpeed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, ratioToDryerSpeed_); + } + if (kp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, kp_); + } + if (ki_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, ki_); + } + if (kd_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, kd_); + } + if (changeSlope_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(13, changeSlope_); + } + if (highLengthMicroSecond_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(14, highLengthMicroSecond_); + } + if (controlTiming_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, controlTiming_); + } + 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 com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser other = (com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser) obj; + + boolean result = true; + result = result && hardwareDispenserType_ == other.hardwareDispenserType_; + result = result && ( + java.lang.Double.doubleToLongBits(getNlPerPulse()) + == java.lang.Double.doubleToLongBits( + other.getNlPerPulse())); + result = result && ( + java.lang.Double.doubleToLongBits(getCapacity()) + == java.lang.Double.doubleToLongBits( + other.getCapacity())); + result = result && (getMinFrequency() + == other.getMinFrequency()); + result = result && (getMaxFrequency() + == other.getMaxFrequency()); + result = result && (getMinMicroStep() + == other.getMinMicroStep()); + result = result && (getMaxMicroStep() + == other.getMaxMicroStep()); + result = result && ( + java.lang.Double.doubleToLongBits(getCorrectionGain()) + == java.lang.Double.doubleToLongBits( + other.getCorrectionGain())); + result = result && ( + java.lang.Double.doubleToLongBits(getRatioToDryerSpeed()) + == java.lang.Double.doubleToLongBits( + other.getRatioToDryerSpeed())); + result = result && ( + java.lang.Double.doubleToLongBits(getKp()) + == java.lang.Double.doubleToLongBits( + other.getKp())); + result = result && ( + java.lang.Double.doubleToLongBits(getKi()) + == java.lang.Double.doubleToLongBits( + other.getKi())); + result = result && ( + java.lang.Double.doubleToLongBits(getKd()) + == java.lang.Double.doubleToLongBits( + other.getKd())); + result = result && ( + java.lang.Double.doubleToLongBits(getChangeSlope()) + == java.lang.Double.doubleToLongBits( + other.getChangeSlope())); + result = result && ( + java.lang.Double.doubleToLongBits(getHighLengthMicroSecond()) + == java.lang.Double.doubleToLongBits( + other.getHighLengthMicroSecond())); + result = result && (getControlTiming() + == other.getControlTiming()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HARDWAREDISPENSERTYPE_FIELD_NUMBER; + hash = (53 * hash) + hardwareDispenserType_; + hash = (37 * hash) + NLPERPULSE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNlPerPulse())); + hash = (37 * hash) + CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCapacity())); + hash = (37 * hash) + MINFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getMinFrequency(); + hash = (37 * hash) + MAXFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getMaxFrequency(); + hash = (37 * hash) + MINMICROSTEP_FIELD_NUMBER; + hash = (53 * hash) + getMinMicroStep(); + hash = (37 * hash) + MAXMICROSTEP_FIELD_NUMBER; + hash = (53 * hash) + getMaxMicroStep(); + hash = (37 * hash) + CORRECTIONGAIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCorrectionGain())); + hash = (37 * hash) + RATIOTODRYERSPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRatioToDryerSpeed())); + hash = (37 * hash) + KP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKp())); + hash = (37 * hash) + KI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKi())); + hash = (37 * hash) + KD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKd())); + hash = (37 * hash) + CHANGESLOPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getChangeSlope())); + hash = (37 * hash) + HIGHLENGTHMICROSECOND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHighLengthMicroSecond())); + hash = (37 * hash) + CONTROLTIMING_FIELD_NUMBER; + hash = (53 * hash) + getControlTiming(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser 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 com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser 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 com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.HardwareDispenser} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.HardwareDispenser) + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.internal_static_Tango_PMR_Hardware_HardwareDispenser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.internal_static_Tango_PMR_Hardware_HardwareDispenser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.class, com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + hardwareDispenserType_ = 0; + + nlPerPulse_ = 0D; + + capacity_ = 0D; + + minFrequency_ = 0; + + maxFrequency_ = 0; + + minMicroStep_ = 0; + + maxMicroStep_ = 0; + + correctionGain_ = 0D; + + ratioToDryerSpeed_ = 0D; + + kp_ = 0D; + + ki_ = 0D; + + kd_ = 0D; + + changeSlope_ = 0D; + + highLengthMicroSecond_ = 0D; + + controlTiming_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.internal_static_Tango_PMR_Hardware_HardwareDispenser_descriptor; + } + + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser build() { + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser buildPartial() { + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser result = new com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser(this); + result.hardwareDispenserType_ = hardwareDispenserType_; + result.nlPerPulse_ = nlPerPulse_; + result.capacity_ = capacity_; + result.minFrequency_ = minFrequency_; + result.maxFrequency_ = maxFrequency_; + result.minMicroStep_ = minMicroStep_; + result.maxMicroStep_ = maxMicroStep_; + result.correctionGain_ = correctionGain_; + result.ratioToDryerSpeed_ = ratioToDryerSpeed_; + result.kp_ = kp_; + result.ki_ = ki_; + result.kd_ = kd_; + result.changeSlope_ = changeSlope_; + result.highLengthMicroSecond_ = highLengthMicroSecond_; + result.controlTiming_ = controlTiming_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser) { + return mergeFrom((com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser other) { + if (other == com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser.getDefaultInstance()) return this; + if (other.hardwareDispenserType_ != 0) { + setHardwareDispenserTypeValue(other.getHardwareDispenserTypeValue()); + } + if (other.getNlPerPulse() != 0D) { + setNlPerPulse(other.getNlPerPulse()); + } + if (other.getCapacity() != 0D) { + setCapacity(other.getCapacity()); + } + if (other.getMinFrequency() != 0) { + setMinFrequency(other.getMinFrequency()); + } + if (other.getMaxFrequency() != 0) { + setMaxFrequency(other.getMaxFrequency()); + } + if (other.getMinMicroStep() != 0) { + setMinMicroStep(other.getMinMicroStep()); + } + if (other.getMaxMicroStep() != 0) { + setMaxMicroStep(other.getMaxMicroStep()); + } + if (other.getCorrectionGain() != 0D) { + setCorrectionGain(other.getCorrectionGain()); + } + if (other.getRatioToDryerSpeed() != 0D) { + setRatioToDryerSpeed(other.getRatioToDryerSpeed()); + } + if (other.getKp() != 0D) { + setKp(other.getKp()); + } + if (other.getKi() != 0D) { + setKi(other.getKi()); + } + if (other.getKd() != 0D) { + setKd(other.getKd()); + } + if (other.getChangeSlope() != 0D) { + setChangeSlope(other.getChangeSlope()); + } + if (other.getHighLengthMicroSecond() != 0D) { + setHighLengthMicroSecond(other.getHighLengthMicroSecond()); + } + if (other.getControlTiming() != 0) { + setControlTiming(other.getControlTiming()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int hardwareDispenserType_ = 0; + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public int getHardwareDispenserTypeValue() { + return hardwareDispenserType_; + } + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public Builder setHardwareDispenserTypeValue(int value) { + hardwareDispenserType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType getHardwareDispenserType() { + com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType result = com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType.valueOf(hardwareDispenserType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public Builder setHardwareDispenserType(com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.HardwareDispenserType value) { + if (value == null) { + throw new NullPointerException(); + } + + hardwareDispenserType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareDispenserType HardwareDispenserType = 1; + */ + public Builder clearHardwareDispenserType() { + + hardwareDispenserType_ = 0; + onChanged(); + return this; + } + + private double nlPerPulse_ ; + /** + * double NlPerPulse = 2; + */ + public double getNlPerPulse() { + return nlPerPulse_; + } + /** + * double NlPerPulse = 2; + */ + public Builder setNlPerPulse(double value) { + + nlPerPulse_ = value; + onChanged(); + return this; + } + /** + * double NlPerPulse = 2; + */ + public Builder clearNlPerPulse() { + + nlPerPulse_ = 0D; + onChanged(); + return this; + } + + private double capacity_ ; + /** + * double Capacity = 3; + */ + public double getCapacity() { + return capacity_; + } + /** + * double Capacity = 3; + */ + public Builder setCapacity(double value) { + + capacity_ = value; + onChanged(); + return this; + } + /** + * double Capacity = 3; + */ + public Builder clearCapacity() { + + capacity_ = 0D; + onChanged(); + return this; + } + + private int minFrequency_ ; + /** + * int32 MinFrequency = 4; + */ + public int getMinFrequency() { + return minFrequency_; + } + /** + * int32 MinFrequency = 4; + */ + public Builder setMinFrequency(int value) { + + minFrequency_ = value; + onChanged(); + return this; + } + /** + * int32 MinFrequency = 4; + */ + public Builder clearMinFrequency() { + + minFrequency_ = 0; + onChanged(); + return this; + } + + private int maxFrequency_ ; + /** + * int32 MaxFrequency = 5; + */ + public int getMaxFrequency() { + return maxFrequency_; + } + /** + * int32 MaxFrequency = 5; + */ + public Builder setMaxFrequency(int value) { + + maxFrequency_ = value; + onChanged(); + return this; + } + /** + * int32 MaxFrequency = 5; + */ + public Builder clearMaxFrequency() { + + maxFrequency_ = 0; + onChanged(); + return this; + } + + private int minMicroStep_ ; + /** + * int32 MinMicroStep = 6; + */ + public int getMinMicroStep() { + return minMicroStep_; + } + /** + * int32 MinMicroStep = 6; + */ + public Builder setMinMicroStep(int value) { + + minMicroStep_ = value; + onChanged(); + return this; + } + /** + * int32 MinMicroStep = 6; + */ + public Builder clearMinMicroStep() { + + minMicroStep_ = 0; + onChanged(); + return this; + } + + private int maxMicroStep_ ; + /** + * int32 MaxMicroStep = 7; + */ + public int getMaxMicroStep() { + return maxMicroStep_; + } + /** + * int32 MaxMicroStep = 7; + */ + public Builder setMaxMicroStep(int value) { + + maxMicroStep_ = value; + onChanged(); + return this; + } + /** + * int32 MaxMicroStep = 7; + */ + public Builder clearMaxMicroStep() { + + maxMicroStep_ = 0; + onChanged(); + return this; + } + + private double correctionGain_ ; + /** + * double CorrectionGain = 8; + */ + public double getCorrectionGain() { + return correctionGain_; + } + /** + * double CorrectionGain = 8; + */ + public Builder setCorrectionGain(double value) { + + correctionGain_ = value; + onChanged(); + return this; + } + /** + * double CorrectionGain = 8; + */ + public Builder clearCorrectionGain() { + + correctionGain_ = 0D; + onChanged(); + return this; + } + + private double ratioToDryerSpeed_ ; + /** + * double RatioToDryerSpeed = 9; + */ + public double getRatioToDryerSpeed() { + return ratioToDryerSpeed_; + } + /** + * double RatioToDryerSpeed = 9; + */ + public Builder setRatioToDryerSpeed(double value) { + + ratioToDryerSpeed_ = value; + onChanged(); + return this; + } + /** + * double RatioToDryerSpeed = 9; + */ + public Builder clearRatioToDryerSpeed() { + + ratioToDryerSpeed_ = 0D; + onChanged(); + return this; + } + + private double kp_ ; + /** + * double Kp = 10; + */ + public double getKp() { + return kp_; + } + /** + * double Kp = 10; + */ + public Builder setKp(double value) { + + kp_ = value; + onChanged(); + return this; + } + /** + * double Kp = 10; + */ + public Builder clearKp() { + + kp_ = 0D; + onChanged(); + return this; + } + + private double ki_ ; + /** + * double Ki = 11; + */ + public double getKi() { + return ki_; + } + /** + * double Ki = 11; + */ + public Builder setKi(double value) { + + ki_ = value; + onChanged(); + return this; + } + /** + * double Ki = 11; + */ + public Builder clearKi() { + + ki_ = 0D; + onChanged(); + return this; + } + + private double kd_ ; + /** + * double Kd = 12; + */ + public double getKd() { + return kd_; + } + /** + * double Kd = 12; + */ + public Builder setKd(double value) { + + kd_ = value; + onChanged(); + return this; + } + /** + * double Kd = 12; + */ + public Builder clearKd() { + + kd_ = 0D; + onChanged(); + return this; + } + + private double changeSlope_ ; + /** + * double ChangeSlope = 13; + */ + public double getChangeSlope() { + return changeSlope_; + } + /** + * double ChangeSlope = 13; + */ + public Builder setChangeSlope(double value) { + + changeSlope_ = value; + onChanged(); + return this; + } + /** + * double ChangeSlope = 13; + */ + public Builder clearChangeSlope() { + + changeSlope_ = 0D; + onChanged(); + return this; + } + + private double highLengthMicroSecond_ ; + /** + * double HighLengthMicroSecond = 14; + */ + public double getHighLengthMicroSecond() { + return highLengthMicroSecond_; + } + /** + * double HighLengthMicroSecond = 14; + */ + public Builder setHighLengthMicroSecond(double value) { + + highLengthMicroSecond_ = value; + onChanged(); + return this; + } + /** + * double HighLengthMicroSecond = 14; + */ + public Builder clearHighLengthMicroSecond() { + + highLengthMicroSecond_ = 0D; + onChanged(); + return this; + } + + private int controlTiming_ ; + /** + * int32 ControlTiming = 15; + */ + public int getControlTiming() { + return controlTiming_; + } + /** + * int32 ControlTiming = 15; + */ + public Builder setControlTiming(int value) { + + controlTiming_ = value; + onChanged(); + return this; + } + /** + * int32 ControlTiming = 15; + */ + public Builder clearControlTiming() { + + controlTiming_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.HardwareDispenser) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwareDispenser) + private static final com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser(); + } + + public static com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HardwareDispenser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HardwareDispenser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.HardwareDispenserOuterClass.HardwareDispenser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_HardwareDispenser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_HardwareDispenser_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\027HardwareDispenser.proto\022\022Tango.PMR.Har" + + "dware\032\033HardwareDispenserType.proto\"\375\002\n\021H" + + "ardwareDispenser\022H\n\025HardwareDispenserTyp" + + "e\030\001 \001(\0162).Tango.PMR.Hardware.HardwareDis" + + "penserType\022\022\n\nNlPerPulse\030\002 \001(\001\022\020\n\010Capaci" + + "ty\030\003 \001(\001\022\024\n\014MinFrequency\030\004 \001(\005\022\024\n\014MaxFre" + + "quency\030\005 \001(\005\022\024\n\014MinMicroStep\030\006 \001(\005\022\024\n\014Ma" + + "xMicroStep\030\007 \001(\005\022\026\n\016CorrectionGain\030\010 \001(\001" + + "\022\031\n\021RatioToDryerSpeed\030\t \001(\001\022\n\n\002Kp\030\n \001(\001\022" + + "\n\n\002Ki\030\013 \001(\001\022\n\n\002Kd\030\014 \001(\001\022\023\n\013ChangeSlope\030\r", + " \001(\001\022\035\n\025HighLengthMicroSecond\030\016 \001(\001\022\025\n\rC" + + "ontrolTiming\030\017 \001(\005B\036\n\034com.twine.tango.pm" + + "r.hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_HardwareDispenser_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_HardwareDispenser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_HardwareDispenser_descriptor, + new java.lang.String[] { "HardwareDispenserType", "NlPerPulse", "Capacity", "MinFrequency", "MaxFrequency", "MinMicroStep", "MaxMicroStep", "CorrectionGain", "RatioToDryerSpeed", "Kp", "Ki", "Kd", "ChangeSlope", "HighLengthMicroSecond", "ControlTiming", }); + com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserTypeOuterClass.java new file mode 100644 index 000000000..793445eb9 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareDispenserTypeOuterClass.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareDispenserType.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareDispenserTypeOuterClass { + private HardwareDispenserTypeOuterClass() {} + 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 Tango.PMR.Hardware.HardwareDispenserType} + */ + public enum HardwareDispenserType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * StandardDispenser = 0; + */ + StandardDispenser(0), + UNRECOGNIZED(-1), + ; + + /** + * StandardDispenser = 0; + */ + public static final int StandardDispenser_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwareDispenserType valueOf(int value) { + return forNumber(value); + } + + public static HardwareDispenserType forNumber(int value) { + switch (value) { + case 0: return StandardDispenser; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HardwareDispenserType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HardwareDispenserType findValueByNumber(int number) { + return HardwareDispenserType.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 com.twine.tango.pmr.hardware.HardwareDispenserTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HardwareDispenserType[] VALUES = values(); + + public static HardwareDispenserType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwareDispenserType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Hardware.HardwareDispenserType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033HardwareDispenserType.proto\022\022Tango.PMR" + + ".Hardware*.\n\025HardwareDispenserType\022\025\n\021St" + + "andardDispenser\020\000B\036\n\034com.twine.tango.pmr" + + ".hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorOuterClass.java new file mode 100644 index 000000000..114e66428 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorOuterClass.java @@ -0,0 +1,1452 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareMotor.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareMotorOuterClass { + private HardwareMotorOuterClass() {} + 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 HardwareMotorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.HardwareMotor) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + int getHardwareMotorTypeValue(); + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType getHardwareMotorType(); + + /** + * int32 MinFrequency = 2; + */ + int getMinFrequency(); + + /** + * int32 MaxFrequency = 3; + */ + int getMaxFrequency(); + + /** + * int32 MinMicroStep = 4; + */ + int getMinMicroStep(); + + /** + * int32 MaxMicroStep = 5; + */ + int getMaxMicroStep(); + + /** + * double LinearRatio = 6; + */ + double getLinearRatio(); + + /** + * int32 MedianPosition = 7; + */ + int getMedianPosition(); + + /** + * double CorrectionGain = 8; + */ + double getCorrectionGain(); + + /** + * double RatioToDryerSpeed = 9; + */ + double getRatioToDryerSpeed(); + + /** + * double Kp = 10; + */ + double getKp(); + + /** + * double Ki = 11; + */ + double getKi(); + + /** + * double Kd = 12; + */ + double getKd(); + + /** + * double ChangeSlope = 13; + */ + double getChangeSlope(); + + /** + * double HighLengthMicroSecond = 14; + */ + double getHighLengthMicroSecond(); + + /** + * bool SpeedMaster = 15; + */ + boolean getSpeedMaster(); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.HardwareMotor} + */ + public static final class HardwareMotor extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.HardwareMotor) + HardwareMotorOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareMotor.newBuilder() to construct. + private HardwareMotor(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HardwareMotor() { + hardwareMotorType_ = 0; + minFrequency_ = 0; + maxFrequency_ = 0; + minMicroStep_ = 0; + maxMicroStep_ = 0; + linearRatio_ = 0D; + medianPosition_ = 0; + correctionGain_ = 0D; + ratioToDryerSpeed_ = 0D; + kp_ = 0D; + ki_ = 0D; + kd_ = 0D; + changeSlope_ = 0D; + highLengthMicroSecond_ = 0D; + speedMaster_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HardwareMotor( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + hardwareMotorType_ = rawValue; + break; + } + case 16: { + + minFrequency_ = input.readInt32(); + break; + } + case 24: { + + maxFrequency_ = input.readInt32(); + break; + } + case 32: { + + minMicroStep_ = input.readInt32(); + break; + } + case 40: { + + maxMicroStep_ = input.readInt32(); + break; + } + case 49: { + + linearRatio_ = input.readDouble(); + break; + } + case 56: { + + medianPosition_ = input.readInt32(); + break; + } + case 65: { + + correctionGain_ = input.readDouble(); + break; + } + case 73: { + + ratioToDryerSpeed_ = input.readDouble(); + break; + } + case 81: { + + kp_ = input.readDouble(); + break; + } + case 89: { + + ki_ = input.readDouble(); + break; + } + case 97: { + + kd_ = input.readDouble(); + break; + } + case 105: { + + changeSlope_ = input.readDouble(); + break; + } + case 113: { + + highLengthMicroSecond_ = input.readDouble(); + break; + } + case 120: { + + speedMaster_ = input.readBool(); + 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 com.twine.tango.pmr.hardware.HardwareMotorOuterClass.internal_static_Tango_PMR_Hardware_HardwareMotor_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareMotorOuterClass.internal_static_Tango_PMR_Hardware_HardwareMotor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.class, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder.class); + } + + public static final int HARDWAREMOTORTYPE_FIELD_NUMBER = 1; + private int hardwareMotorType_; + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public int getHardwareMotorTypeValue() { + return hardwareMotorType_; + } + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType getHardwareMotorType() { + com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType result = com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType.valueOf(hardwareMotorType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType.UNRECOGNIZED : result; + } + + public static final int MINFREQUENCY_FIELD_NUMBER = 2; + private int minFrequency_; + /** + * int32 MinFrequency = 2; + */ + public int getMinFrequency() { + return minFrequency_; + } + + public static final int MAXFREQUENCY_FIELD_NUMBER = 3; + private int maxFrequency_; + /** + * int32 MaxFrequency = 3; + */ + public int getMaxFrequency() { + return maxFrequency_; + } + + public static final int MINMICROSTEP_FIELD_NUMBER = 4; + private int minMicroStep_; + /** + * int32 MinMicroStep = 4; + */ + public int getMinMicroStep() { + return minMicroStep_; + } + + public static final int MAXMICROSTEP_FIELD_NUMBER = 5; + private int maxMicroStep_; + /** + * int32 MaxMicroStep = 5; + */ + public int getMaxMicroStep() { + return maxMicroStep_; + } + + public static final int LINEARRATIO_FIELD_NUMBER = 6; + private double linearRatio_; + /** + * double LinearRatio = 6; + */ + public double getLinearRatio() { + return linearRatio_; + } + + public static final int MEDIANPOSITION_FIELD_NUMBER = 7; + private int medianPosition_; + /** + * int32 MedianPosition = 7; + */ + public int getMedianPosition() { + return medianPosition_; + } + + public static final int CORRECTIONGAIN_FIELD_NUMBER = 8; + private double correctionGain_; + /** + * double CorrectionGain = 8; + */ + public double getCorrectionGain() { + return correctionGain_; + } + + public static final int RATIOTODRYERSPEED_FIELD_NUMBER = 9; + private double ratioToDryerSpeed_; + /** + * double RatioToDryerSpeed = 9; + */ + public double getRatioToDryerSpeed() { + return ratioToDryerSpeed_; + } + + public static final int KP_FIELD_NUMBER = 10; + private double kp_; + /** + * double Kp = 10; + */ + public double getKp() { + return kp_; + } + + public static final int KI_FIELD_NUMBER = 11; + private double ki_; + /** + * double Ki = 11; + */ + public double getKi() { + return ki_; + } + + public static final int KD_FIELD_NUMBER = 12; + private double kd_; + /** + * double Kd = 12; + */ + public double getKd() { + return kd_; + } + + public static final int CHANGESLOPE_FIELD_NUMBER = 13; + private double changeSlope_; + /** + * double ChangeSlope = 13; + */ + public double getChangeSlope() { + return changeSlope_; + } + + public static final int HIGHLENGTHMICROSECOND_FIELD_NUMBER = 14; + private double highLengthMicroSecond_; + /** + * double HighLengthMicroSecond = 14; + */ + public double getHighLengthMicroSecond() { + return highLengthMicroSecond_; + } + + public static final int SPEEDMASTER_FIELD_NUMBER = 15; + private boolean speedMaster_; + /** + * bool SpeedMaster = 15; + */ + public boolean getSpeedMaster() { + return speedMaster_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardwareMotorType_ != com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType.MOTO_DH_CLEANHEAD.getNumber()) { + output.writeEnum(1, hardwareMotorType_); + } + if (minFrequency_ != 0) { + output.writeInt32(2, minFrequency_); + } + if (maxFrequency_ != 0) { + output.writeInt32(3, maxFrequency_); + } + if (minMicroStep_ != 0) { + output.writeInt32(4, minMicroStep_); + } + if (maxMicroStep_ != 0) { + output.writeInt32(5, maxMicroStep_); + } + if (linearRatio_ != 0D) { + output.writeDouble(6, linearRatio_); + } + if (medianPosition_ != 0) { + output.writeInt32(7, medianPosition_); + } + if (correctionGain_ != 0D) { + output.writeDouble(8, correctionGain_); + } + if (ratioToDryerSpeed_ != 0D) { + output.writeDouble(9, ratioToDryerSpeed_); + } + if (kp_ != 0D) { + output.writeDouble(10, kp_); + } + if (ki_ != 0D) { + output.writeDouble(11, ki_); + } + if (kd_ != 0D) { + output.writeDouble(12, kd_); + } + if (changeSlope_ != 0D) { + output.writeDouble(13, changeSlope_); + } + if (highLengthMicroSecond_ != 0D) { + output.writeDouble(14, highLengthMicroSecond_); + } + if (speedMaster_ != false) { + output.writeBool(15, speedMaster_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hardwareMotorType_ != com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType.MOTO_DH_CLEANHEAD.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hardwareMotorType_); + } + if (minFrequency_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minFrequency_); + } + if (maxFrequency_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxFrequency_); + } + if (minMicroStep_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, minMicroStep_); + } + if (maxMicroStep_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxMicroStep_); + } + if (linearRatio_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, linearRatio_); + } + if (medianPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, medianPosition_); + } + if (correctionGain_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, correctionGain_); + } + if (ratioToDryerSpeed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, ratioToDryerSpeed_); + } + if (kp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, kp_); + } + if (ki_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, ki_); + } + if (kd_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, kd_); + } + if (changeSlope_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(13, changeSlope_); + } + if (highLengthMicroSecond_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(14, highLengthMicroSecond_); + } + if (speedMaster_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, speedMaster_); + } + 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 com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor other = (com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor) obj; + + boolean result = true; + result = result && hardwareMotorType_ == other.hardwareMotorType_; + result = result && (getMinFrequency() + == other.getMinFrequency()); + result = result && (getMaxFrequency() + == other.getMaxFrequency()); + result = result && (getMinMicroStep() + == other.getMinMicroStep()); + result = result && (getMaxMicroStep() + == other.getMaxMicroStep()); + result = result && ( + java.lang.Double.doubleToLongBits(getLinearRatio()) + == java.lang.Double.doubleToLongBits( + other.getLinearRatio())); + result = result && (getMedianPosition() + == other.getMedianPosition()); + result = result && ( + java.lang.Double.doubleToLongBits(getCorrectionGain()) + == java.lang.Double.doubleToLongBits( + other.getCorrectionGain())); + result = result && ( + java.lang.Double.doubleToLongBits(getRatioToDryerSpeed()) + == java.lang.Double.doubleToLongBits( + other.getRatioToDryerSpeed())); + result = result && ( + java.lang.Double.doubleToLongBits(getKp()) + == java.lang.Double.doubleToLongBits( + other.getKp())); + result = result && ( + java.lang.Double.doubleToLongBits(getKi()) + == java.lang.Double.doubleToLongBits( + other.getKi())); + result = result && ( + java.lang.Double.doubleToLongBits(getKd()) + == java.lang.Double.doubleToLongBits( + other.getKd())); + result = result && ( + java.lang.Double.doubleToLongBits(getChangeSlope()) + == java.lang.Double.doubleToLongBits( + other.getChangeSlope())); + result = result && ( + java.lang.Double.doubleToLongBits(getHighLengthMicroSecond()) + == java.lang.Double.doubleToLongBits( + other.getHighLengthMicroSecond())); + result = result && (getSpeedMaster() + == other.getSpeedMaster()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HARDWAREMOTORTYPE_FIELD_NUMBER; + hash = (53 * hash) + hardwareMotorType_; + hash = (37 * hash) + MINFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getMinFrequency(); + hash = (37 * hash) + MAXFREQUENCY_FIELD_NUMBER; + hash = (53 * hash) + getMaxFrequency(); + hash = (37 * hash) + MINMICROSTEP_FIELD_NUMBER; + hash = (53 * hash) + getMinMicroStep(); + hash = (37 * hash) + MAXMICROSTEP_FIELD_NUMBER; + hash = (53 * hash) + getMaxMicroStep(); + hash = (37 * hash) + LINEARRATIO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLinearRatio())); + hash = (37 * hash) + MEDIANPOSITION_FIELD_NUMBER; + hash = (53 * hash) + getMedianPosition(); + hash = (37 * hash) + CORRECTIONGAIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getCorrectionGain())); + hash = (37 * hash) + RATIOTODRYERSPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRatioToDryerSpeed())); + hash = (37 * hash) + KP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKp())); + hash = (37 * hash) + KI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKi())); + hash = (37 * hash) + KD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getKd())); + hash = (37 * hash) + CHANGESLOPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getChangeSlope())); + hash = (37 * hash) + HIGHLENGTHMICROSECOND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHighLengthMicroSecond())); + hash = (37 * hash) + SPEEDMASTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSpeedMaster()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor 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 com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor 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 com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.HardwareMotor} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.HardwareMotor) + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwareMotorOuterClass.internal_static_Tango_PMR_Hardware_HardwareMotor_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareMotorOuterClass.internal_static_Tango_PMR_Hardware_HardwareMotor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.class, com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + hardwareMotorType_ = 0; + + minFrequency_ = 0; + + maxFrequency_ = 0; + + minMicroStep_ = 0; + + maxMicroStep_ = 0; + + linearRatio_ = 0D; + + medianPosition_ = 0; + + correctionGain_ = 0D; + + ratioToDryerSpeed_ = 0D; + + kp_ = 0D; + + ki_ = 0D; + + kd_ = 0D; + + changeSlope_ = 0D; + + highLengthMicroSecond_ = 0D; + + speedMaster_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.HardwareMotorOuterClass.internal_static_Tango_PMR_Hardware_HardwareMotor_descriptor; + } + + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor build() { + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor buildPartial() { + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor result = new com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor(this); + result.hardwareMotorType_ = hardwareMotorType_; + result.minFrequency_ = minFrequency_; + result.maxFrequency_ = maxFrequency_; + result.minMicroStep_ = minMicroStep_; + result.maxMicroStep_ = maxMicroStep_; + result.linearRatio_ = linearRatio_; + result.medianPosition_ = medianPosition_; + result.correctionGain_ = correctionGain_; + result.ratioToDryerSpeed_ = ratioToDryerSpeed_; + result.kp_ = kp_; + result.ki_ = ki_; + result.kd_ = kd_; + result.changeSlope_ = changeSlope_; + result.highLengthMicroSecond_ = highLengthMicroSecond_; + result.speedMaster_ = speedMaster_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor) { + return mergeFrom((com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor other) { + if (other == com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor.getDefaultInstance()) return this; + if (other.hardwareMotorType_ != 0) { + setHardwareMotorTypeValue(other.getHardwareMotorTypeValue()); + } + if (other.getMinFrequency() != 0) { + setMinFrequency(other.getMinFrequency()); + } + if (other.getMaxFrequency() != 0) { + setMaxFrequency(other.getMaxFrequency()); + } + if (other.getMinMicroStep() != 0) { + setMinMicroStep(other.getMinMicroStep()); + } + if (other.getMaxMicroStep() != 0) { + setMaxMicroStep(other.getMaxMicroStep()); + } + if (other.getLinearRatio() != 0D) { + setLinearRatio(other.getLinearRatio()); + } + if (other.getMedianPosition() != 0) { + setMedianPosition(other.getMedianPosition()); + } + if (other.getCorrectionGain() != 0D) { + setCorrectionGain(other.getCorrectionGain()); + } + if (other.getRatioToDryerSpeed() != 0D) { + setRatioToDryerSpeed(other.getRatioToDryerSpeed()); + } + if (other.getKp() != 0D) { + setKp(other.getKp()); + } + if (other.getKi() != 0D) { + setKi(other.getKi()); + } + if (other.getKd() != 0D) { + setKd(other.getKd()); + } + if (other.getChangeSlope() != 0D) { + setChangeSlope(other.getChangeSlope()); + } + if (other.getHighLengthMicroSecond() != 0D) { + setHighLengthMicroSecond(other.getHighLengthMicroSecond()); + } + if (other.getSpeedMaster() != false) { + setSpeedMaster(other.getSpeedMaster()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int hardwareMotorType_ = 0; + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public int getHardwareMotorTypeValue() { + return hardwareMotorType_; + } + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public Builder setHardwareMotorTypeValue(int value) { + hardwareMotorType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType getHardwareMotorType() { + com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType result = com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType.valueOf(hardwareMotorType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public Builder setHardwareMotorType(com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.HardwareMotorType value) { + if (value == null) { + throw new NullPointerException(); + } + + hardwareMotorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareMotorType HardwareMotorType = 1; + */ + public Builder clearHardwareMotorType() { + + hardwareMotorType_ = 0; + onChanged(); + return this; + } + + private int minFrequency_ ; + /** + * int32 MinFrequency = 2; + */ + public int getMinFrequency() { + return minFrequency_; + } + /** + * int32 MinFrequency = 2; + */ + public Builder setMinFrequency(int value) { + + minFrequency_ = value; + onChanged(); + return this; + } + /** + * int32 MinFrequency = 2; + */ + public Builder clearMinFrequency() { + + minFrequency_ = 0; + onChanged(); + return this; + } + + private int maxFrequency_ ; + /** + * int32 MaxFrequency = 3; + */ + public int getMaxFrequency() { + return maxFrequency_; + } + /** + * int32 MaxFrequency = 3; + */ + public Builder setMaxFrequency(int value) { + + maxFrequency_ = value; + onChanged(); + return this; + } + /** + * int32 MaxFrequency = 3; + */ + public Builder clearMaxFrequency() { + + maxFrequency_ = 0; + onChanged(); + return this; + } + + private int minMicroStep_ ; + /** + * int32 MinMicroStep = 4; + */ + public int getMinMicroStep() { + return minMicroStep_; + } + /** + * int32 MinMicroStep = 4; + */ + public Builder setMinMicroStep(int value) { + + minMicroStep_ = value; + onChanged(); + return this; + } + /** + * int32 MinMicroStep = 4; + */ + public Builder clearMinMicroStep() { + + minMicroStep_ = 0; + onChanged(); + return this; + } + + private int maxMicroStep_ ; + /** + * int32 MaxMicroStep = 5; + */ + public int getMaxMicroStep() { + return maxMicroStep_; + } + /** + * int32 MaxMicroStep = 5; + */ + public Builder setMaxMicroStep(int value) { + + maxMicroStep_ = value; + onChanged(); + return this; + } + /** + * int32 MaxMicroStep = 5; + */ + public Builder clearMaxMicroStep() { + + maxMicroStep_ = 0; + onChanged(); + return this; + } + + private double linearRatio_ ; + /** + * double LinearRatio = 6; + */ + public double getLinearRatio() { + return linearRatio_; + } + /** + * double LinearRatio = 6; + */ + public Builder setLinearRatio(double value) { + + linearRatio_ = value; + onChanged(); + return this; + } + /** + * double LinearRatio = 6; + */ + public Builder clearLinearRatio() { + + linearRatio_ = 0D; + onChanged(); + return this; + } + + private int medianPosition_ ; + /** + * int32 MedianPosition = 7; + */ + public int getMedianPosition() { + return medianPosition_; + } + /** + * int32 MedianPosition = 7; + */ + public Builder setMedianPosition(int value) { + + medianPosition_ = value; + onChanged(); + return this; + } + /** + * int32 MedianPosition = 7; + */ + public Builder clearMedianPosition() { + + medianPosition_ = 0; + onChanged(); + return this; + } + + private double correctionGain_ ; + /** + * double CorrectionGain = 8; + */ + public double getCorrectionGain() { + return correctionGain_; + } + /** + * double CorrectionGain = 8; + */ + public Builder setCorrectionGain(double value) { + + correctionGain_ = value; + onChanged(); + return this; + } + /** + * double CorrectionGain = 8; + */ + public Builder clearCorrectionGain() { + + correctionGain_ = 0D; + onChanged(); + return this; + } + + private double ratioToDryerSpeed_ ; + /** + * double RatioToDryerSpeed = 9; + */ + public double getRatioToDryerSpeed() { + return ratioToDryerSpeed_; + } + /** + * double RatioToDryerSpeed = 9; + */ + public Builder setRatioToDryerSpeed(double value) { + + ratioToDryerSpeed_ = value; + onChanged(); + return this; + } + /** + * double RatioToDryerSpeed = 9; + */ + public Builder clearRatioToDryerSpeed() { + + ratioToDryerSpeed_ = 0D; + onChanged(); + return this; + } + + private double kp_ ; + /** + * double Kp = 10; + */ + public double getKp() { + return kp_; + } + /** + * double Kp = 10; + */ + public Builder setKp(double value) { + + kp_ = value; + onChanged(); + return this; + } + /** + * double Kp = 10; + */ + public Builder clearKp() { + + kp_ = 0D; + onChanged(); + return this; + } + + private double ki_ ; + /** + * double Ki = 11; + */ + public double getKi() { + return ki_; + } + /** + * double Ki = 11; + */ + public Builder setKi(double value) { + + ki_ = value; + onChanged(); + return this; + } + /** + * double Ki = 11; + */ + public Builder clearKi() { + + ki_ = 0D; + onChanged(); + return this; + } + + private double kd_ ; + /** + * double Kd = 12; + */ + public double getKd() { + return kd_; + } + /** + * double Kd = 12; + */ + public Builder setKd(double value) { + + kd_ = value; + onChanged(); + return this; + } + /** + * double Kd = 12; + */ + public Builder clearKd() { + + kd_ = 0D; + onChanged(); + return this; + } + + private double changeSlope_ ; + /** + * double ChangeSlope = 13; + */ + public double getChangeSlope() { + return changeSlope_; + } + /** + * double ChangeSlope = 13; + */ + public Builder setChangeSlope(double value) { + + changeSlope_ = value; + onChanged(); + return this; + } + /** + * double ChangeSlope = 13; + */ + public Builder clearChangeSlope() { + + changeSlope_ = 0D; + onChanged(); + return this; + } + + private double highLengthMicroSecond_ ; + /** + * double HighLengthMicroSecond = 14; + */ + public double getHighLengthMicroSecond() { + return highLengthMicroSecond_; + } + /** + * double HighLengthMicroSecond = 14; + */ + public Builder setHighLengthMicroSecond(double value) { + + highLengthMicroSecond_ = value; + onChanged(); + return this; + } + /** + * double HighLengthMicroSecond = 14; + */ + public Builder clearHighLengthMicroSecond() { + + highLengthMicroSecond_ = 0D; + onChanged(); + return this; + } + + private boolean speedMaster_ ; + /** + * bool SpeedMaster = 15; + */ + public boolean getSpeedMaster() { + return speedMaster_; + } + /** + * bool SpeedMaster = 15; + */ + public Builder setSpeedMaster(boolean value) { + + speedMaster_ = value; + onChanged(); + return this; + } + /** + * bool SpeedMaster = 15; + */ + public Builder clearSpeedMaster() { + + speedMaster_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.HardwareMotor) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwareMotor) + private static final com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor(); + } + + public static com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HardwareMotor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HardwareMotor(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.HardwareMotorOuterClass.HardwareMotor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_HardwareMotor_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_HardwareMotor_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\023HardwareMotor.proto\022\022Tango.PMR.Hardwar" + + "e\032\027HardwareMotorType.proto\"\366\002\n\rHardwareM" + + "otor\022@\n\021HardwareMotorType\030\001 \001(\0162%.Tango." + + "PMR.Hardware.HardwareMotorType\022\024\n\014MinFre" + + "quency\030\002 \001(\005\022\024\n\014MaxFrequency\030\003 \001(\005\022\024\n\014Mi" + + "nMicroStep\030\004 \001(\005\022\024\n\014MaxMicroStep\030\005 \001(\005\022\023" + + "\n\013LinearRatio\030\006 \001(\001\022\026\n\016MedianPosition\030\007 " + + "\001(\005\022\026\n\016CorrectionGain\030\010 \001(\001\022\031\n\021RatioToDr" + + "yerSpeed\030\t \001(\001\022\n\n\002Kp\030\n \001(\001\022\n\n\002Ki\030\013 \001(\001\022\n" + + "\n\002Kd\030\014 \001(\001\022\023\n\013ChangeSlope\030\r \001(\001\022\035\n\025HighL", + "engthMicroSecond\030\016 \001(\001\022\023\n\013SpeedMaster\030\017 " + + "\001(\010B\036\n\034com.twine.tango.pmr.hardwareb\006pro" + + "to3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_HardwareMotor_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_HardwareMotor_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_HardwareMotor_descriptor, + new java.lang.String[] { "HardwareMotorType", "MinFrequency", "MaxFrequency", "MinMicroStep", "MaxMicroStep", "LinearRatio", "MedianPosition", "CorrectionGain", "RatioToDryerSpeed", "Kp", "Ki", "Kd", "ChangeSlope", "HighLengthMicroSecond", "SpeedMaster", }); + com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorTypeOuterClass.java new file mode 100644 index 000000000..3f7c551ac --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareMotorTypeOuterClass.java @@ -0,0 +1,633 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareMotorType.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareMotorTypeOuterClass { + private HardwareMotorTypeOuterClass() {} + 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 Tango.PMR.Hardware.HardwareMotorType} + */ + public enum HardwareMotorType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Cleaning Head Motor
+     * 
+ * + * MOTO_DH_CLEANHEAD = 0; + */ + MOTO_DH_CLEANHEAD(0), + /** + *
+     *Cleaning Mechanism Motor
+     * 
+ * + * MOTO_DH_CLEANMECH = 1; + */ + MOTO_DH_CLEANMECH(1), + /** + *
+     *Dyeing Head Lid Motor
+     * 
+ * + * MOTO_DH_LID = 2; + */ + MOTO_DH_LID(2), + /** + *
+     *Dryer Main Motor
+     * 
+ * + * MOTO_DRYER_DRIVING = 3; + */ + MOTO_DRYER_DRIVING(3), + /** + *
+     *Drier Lid Motor
+     * 
+ * + * MOTO_DRYER_LID = 4; + */ + MOTO_DRYER_LID(4), + /** + *
+     *Drier Thread Loading Arm Motor
+     * 
+ * + * MOTO_DRYER_LOADARM = 5; + */ + MOTO_DRYER_LOADARM(5), + /** + *
+     *Dispenser 1 Motor
+     * 
+ * + * MOTO_DISPENSER_1 = 6; + */ + MOTO_DISPENSER_1(6), + /** + *
+     *Dispenser 2 Motor
+     * 
+ * + * MOTO_DISPENSER_2 = 7; + */ + MOTO_DISPENSER_2(7), + /** + *
+     *Dispenser 3 Motor
+     * 
+ * + * MOTO_DISPENSER_3 = 8; + */ + MOTO_DISPENSER_3(8), + /** + *
+     *Dispenser 4 Motor
+     * 
+ * + * MOTO_DISPENSER_4 = 9; + */ + MOTO_DISPENSER_4(9), + /** + *
+     *Dispenser 5 Motor
+     * 
+ * + * MOTO_DISPENSER_5 = 10; + */ + MOTO_DISPENSER_5(10), + /** + *
+     *Dispenser 6 Motor
+     * 
+ * + * MOTO_DISPENSER_6 = 11; + */ + MOTO_DISPENSER_6(11), + /** + *
+     *Dispenser 7 Motor
+     * 
+ * + * MOTO_DISPENSER_7 = 12; + */ + MOTO_DISPENSER_7(12), + /** + *
+     *Dispenser 8 Motor
+     * 
+ * + * MOTO_DISPENSER_8 = 13; + */ + MOTO_DISPENSER_8(13), + /** + *
+     *Winder Screw Motor
+     * 
+ * + * MOTO_SCREW = 14; + */ + MOTO_SCREW(14), + /** + *
+     *Winder Motor
+     * 
+ * + * MOTO_WINDER = 15; + */ + MOTO_WINDER(15), + /** + *
+     *Pooler Dancer Adjustment
+     * 
+ * + * MOTO_LDANCER1 = 16; + */ + MOTO_LDANCER1(16), + /** + *
+     *Winder Dancer Adjustment #1
+     * 
+ * + * MOTO_LDANCER2 = 17; + */ + MOTO_LDANCER2(17), + /** + *
+     *Pooler Motor
+     * 
+ * + * MOTO_LDRIVING = 18; + */ + MOTO_LDRIVING(18), + /** + *
+     *Pooler Loading Motor
+     * 
+ * + * MOTO_LLOADING = 19; + */ + MOTO_LLOADING(19), + /** + *
+     *Pooler Loading Pivot Arm Motor
+     * 
+ * + * MOTO_LPIVOT1 = 20; + */ + MOTO_LPIVOT1(20), + /** + *
+     *Feeder Dancer Adjustment Motor
+     * 
+ * + * MOTO_RDANCER = 21; + */ + MOTO_RDANCER(21), + /** + *
+     *Feeder Motor
+     * 
+ * + * MOTO_RDRIVING = 22; + */ + MOTO_RDRIVING(22), + /** + *
+     *Right Loading Arm Motor
+     * 
+ * + * MOTO_RLOADARM = 23; + */ + MOTO_RLOADARM(23), + /** + *
+     *Right Loading Motor
+     * 
+ * + * MOTO_RLOADING = 24; + */ + MOTO_RLOADING(24), + /** + *
+     *Spare 1 Motor
+     * 
+ * + * MOTO_SPARE1_1 = 25; + */ + MOTO_SPARE1_1(25), + /** + *
+     *Spare 2 Motor
+     * 
+ * + * MOTO_SPARE1_2 = 26; + */ + MOTO_SPARE1_2(26), + /** + *
+     *Spare 3 Motor
+     * 
+ * + * MOTO_SPARE2_1 = 27; + */ + MOTO_SPARE2_1(27), + /** + *
+     *Spare 4 Motor
+     * 
+ * + * MOTO_SPARE2_2 = 28; + */ + MOTO_SPARE2_2(28), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Cleaning Head Motor
+     * 
+ * + * MOTO_DH_CLEANHEAD = 0; + */ + public static final int MOTO_DH_CLEANHEAD_VALUE = 0; + /** + *
+     *Cleaning Mechanism Motor
+     * 
+ * + * MOTO_DH_CLEANMECH = 1; + */ + public static final int MOTO_DH_CLEANMECH_VALUE = 1; + /** + *
+     *Dyeing Head Lid Motor
+     * 
+ * + * MOTO_DH_LID = 2; + */ + public static final int MOTO_DH_LID_VALUE = 2; + /** + *
+     *Dryer Main Motor
+     * 
+ * + * MOTO_DRYER_DRIVING = 3; + */ + public static final int MOTO_DRYER_DRIVING_VALUE = 3; + /** + *
+     *Drier Lid Motor
+     * 
+ * + * MOTO_DRYER_LID = 4; + */ + public static final int MOTO_DRYER_LID_VALUE = 4; + /** + *
+     *Drier Thread Loading Arm Motor
+     * 
+ * + * MOTO_DRYER_LOADARM = 5; + */ + public static final int MOTO_DRYER_LOADARM_VALUE = 5; + /** + *
+     *Dispenser 1 Motor
+     * 
+ * + * MOTO_DISPENSER_1 = 6; + */ + public static final int MOTO_DISPENSER_1_VALUE = 6; + /** + *
+     *Dispenser 2 Motor
+     * 
+ * + * MOTO_DISPENSER_2 = 7; + */ + public static final int MOTO_DISPENSER_2_VALUE = 7; + /** + *
+     *Dispenser 3 Motor
+     * 
+ * + * MOTO_DISPENSER_3 = 8; + */ + public static final int MOTO_DISPENSER_3_VALUE = 8; + /** + *
+     *Dispenser 4 Motor
+     * 
+ * + * MOTO_DISPENSER_4 = 9; + */ + public static final int MOTO_DISPENSER_4_VALUE = 9; + /** + *
+     *Dispenser 5 Motor
+     * 
+ * + * MOTO_DISPENSER_5 = 10; + */ + public static final int MOTO_DISPENSER_5_VALUE = 10; + /** + *
+     *Dispenser 6 Motor
+     * 
+ * + * MOTO_DISPENSER_6 = 11; + */ + public static final int MOTO_DISPENSER_6_VALUE = 11; + /** + *
+     *Dispenser 7 Motor
+     * 
+ * + * MOTO_DISPENSER_7 = 12; + */ + public static final int MOTO_DISPENSER_7_VALUE = 12; + /** + *
+     *Dispenser 8 Motor
+     * 
+ * + * MOTO_DISPENSER_8 = 13; + */ + public static final int MOTO_DISPENSER_8_VALUE = 13; + /** + *
+     *Winder Screw Motor
+     * 
+ * + * MOTO_SCREW = 14; + */ + public static final int MOTO_SCREW_VALUE = 14; + /** + *
+     *Winder Motor
+     * 
+ * + * MOTO_WINDER = 15; + */ + public static final int MOTO_WINDER_VALUE = 15; + /** + *
+     *Pooler Dancer Adjustment
+     * 
+ * + * MOTO_LDANCER1 = 16; + */ + public static final int MOTO_LDANCER1_VALUE = 16; + /** + *
+     *Winder Dancer Adjustment #1
+     * 
+ * + * MOTO_LDANCER2 = 17; + */ + public static final int MOTO_LDANCER2_VALUE = 17; + /** + *
+     *Pooler Motor
+     * 
+ * + * MOTO_LDRIVING = 18; + */ + public static final int MOTO_LDRIVING_VALUE = 18; + /** + *
+     *Pooler Loading Motor
+     * 
+ * + * MOTO_LLOADING = 19; + */ + public static final int MOTO_LLOADING_VALUE = 19; + /** + *
+     *Pooler Loading Pivot Arm Motor
+     * 
+ * + * MOTO_LPIVOT1 = 20; + */ + public static final int MOTO_LPIVOT1_VALUE = 20; + /** + *
+     *Feeder Dancer Adjustment Motor
+     * 
+ * + * MOTO_RDANCER = 21; + */ + public static final int MOTO_RDANCER_VALUE = 21; + /** + *
+     *Feeder Motor
+     * 
+ * + * MOTO_RDRIVING = 22; + */ + public static final int MOTO_RDRIVING_VALUE = 22; + /** + *
+     *Right Loading Arm Motor
+     * 
+ * + * MOTO_RLOADARM = 23; + */ + public static final int MOTO_RLOADARM_VALUE = 23; + /** + *
+     *Right Loading Motor
+     * 
+ * + * MOTO_RLOADING = 24; + */ + public static final int MOTO_RLOADING_VALUE = 24; + /** + *
+     *Spare 1 Motor
+     * 
+ * + * MOTO_SPARE1_1 = 25; + */ + public static final int MOTO_SPARE1_1_VALUE = 25; + /** + *
+     *Spare 2 Motor
+     * 
+ * + * MOTO_SPARE1_2 = 26; + */ + public static final int MOTO_SPARE1_2_VALUE = 26; + /** + *
+     *Spare 3 Motor
+     * 
+ * + * MOTO_SPARE2_1 = 27; + */ + public static final int MOTO_SPARE2_1_VALUE = 27; + /** + *
+     *Spare 4 Motor
+     * 
+ * + * MOTO_SPARE2_2 = 28; + */ + public static final int MOTO_SPARE2_2_VALUE = 28; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwareMotorType valueOf(int value) { + return forNumber(value); + } + + public static HardwareMotorType forNumber(int value) { + switch (value) { + case 0: return MOTO_DH_CLEANHEAD; + case 1: return MOTO_DH_CLEANMECH; + case 2: return MOTO_DH_LID; + case 3: return MOTO_DRYER_DRIVING; + case 4: return MOTO_DRYER_LID; + case 5: return MOTO_DRYER_LOADARM; + case 6: return MOTO_DISPENSER_1; + case 7: return MOTO_DISPENSER_2; + case 8: return MOTO_DISPENSER_3; + case 9: return MOTO_DISPENSER_4; + case 10: return MOTO_DISPENSER_5; + case 11: return MOTO_DISPENSER_6; + case 12: return MOTO_DISPENSER_7; + case 13: return MOTO_DISPENSER_8; + case 14: return MOTO_SCREW; + case 15: return MOTO_WINDER; + case 16: return MOTO_LDANCER1; + case 17: return MOTO_LDANCER2; + case 18: return MOTO_LDRIVING; + case 19: return MOTO_LLOADING; + case 20: return MOTO_LPIVOT1; + case 21: return MOTO_RDANCER; + case 22: return MOTO_RDRIVING; + case 23: return MOTO_RLOADARM; + case 24: return MOTO_RLOADING; + case 25: return MOTO_SPARE1_1; + case 26: return MOTO_SPARE1_2; + case 27: return MOTO_SPARE2_1; + case 28: return MOTO_SPARE2_2; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HardwareMotorType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HardwareMotorType findValueByNumber(int number) { + return HardwareMotorType.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 com.twine.tango.pmr.hardware.HardwareMotorTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HardwareMotorType[] VALUES = values(); + + public static HardwareMotorType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwareMotorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Hardware.HardwareMotorType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\027HardwareMotorType.proto\022\022Tango.PMR.Har" + + "dware*\334\004\n\021HardwareMotorType\022\025\n\021MOTO_DH_C" + + "LEANHEAD\020\000\022\025\n\021MOTO_DH_CLEANMECH\020\001\022\017\n\013MOT" + + "O_DH_LID\020\002\022\026\n\022MOTO_DRYER_DRIVING\020\003\022\022\n\016MO" + + "TO_DRYER_LID\020\004\022\026\n\022MOTO_DRYER_LOADARM\020\005\022\024" + + "\n\020MOTO_DISPENSER_1\020\006\022\024\n\020MOTO_DISPENSER_2" + + "\020\007\022\024\n\020MOTO_DISPENSER_3\020\010\022\024\n\020MOTO_DISPENS" + + "ER_4\020\t\022\024\n\020MOTO_DISPENSER_5\020\n\022\024\n\020MOTO_DIS" + + "PENSER_6\020\013\022\024\n\020MOTO_DISPENSER_7\020\014\022\024\n\020MOTO" + + "_DISPENSER_8\020\r\022\016\n\nMOTO_SCREW\020\016\022\017\n\013MOTO_W", + "INDER\020\017\022\021\n\rMOTO_LDANCER1\020\020\022\021\n\rMOTO_LDANC" + + "ER2\020\021\022\021\n\rMOTO_LDRIVING\020\022\022\021\n\rMOTO_LLOADIN" + + "G\020\023\022\020\n\014MOTO_LPIVOT1\020\024\022\020\n\014MOTO_RDANCER\020\025\022" + + "\021\n\rMOTO_RDRIVING\020\026\022\021\n\rMOTO_RLOADARM\020\027\022\021\n" + + "\rMOTO_RLOADING\020\030\022\021\n\rMOTO_SPARE1_1\020\031\022\021\n\rM" + + "OTO_SPARE1_2\020\032\022\021\n\rMOTO_SPARE2_1\020\033\022\021\n\rMOT" + + "O_SPARE2_2\020\034B\036\n\034com.twine.tango.pmr.hard" + + "wareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlOuterClass.java new file mode 100644 index 000000000..d77097322 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlOuterClass.java @@ -0,0 +1,1431 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwarePidControl.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwarePidControlOuterClass { + private HardwarePidControlOuterClass() {} + 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 HardwarePidControlOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.HardwarePidControl) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + int getHardwarePidControlTypeValue(); + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType getHardwarePidControlType(); + + /** + * int32 OutputProportionalPowerLimit = 2; + */ + int getOutputProportionalPowerLimit(); + + /** + * int32 OutputProportionalBand = 3; + */ + int getOutputProportionalBand(); + + /** + * int32 IntegralTime = 4; + */ + int getIntegralTime(); + + /** + * int32 DerivativeTime = 5; + */ + int getDerivativeTime(); + + /** + * int32 SensorCorrectionAdjustment = 6; + */ + int getSensorCorrectionAdjustment(); + + /** + * int32 SensorMinValue = 7; + */ + int getSensorMinValue(); + + /** + * int32 SensorMaxValue = 8; + */ + int getSensorMaxValue(); + + /** + * int32 SetPointRampRateorSoftStartRamp = 9; + */ + int getSetPointRampRateorSoftStartRamp(); + + /** + * int32 SetPointControlOutputRate = 10; + */ + int getSetPointControlOutputRate(); + + /** + * int32 ControlOutputType = 11; + */ + int getControlOutputType(); + + /** + * int32 SsrControlOutputType = 12; + */ + int getSsrControlOutputType(); + + /** + * int32 OutputOnOffHysteresisValue = 13; + */ + int getOutputOnOffHysteresisValue(); + + /** + * int32 ProcessVariableSamplingRate = 14; + */ + int getProcessVariableSamplingRate(); + + /** + * int32 PvInputFilterFactorMode = 15; + */ + int getPvInputFilterFactorMode(); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.HardwarePidControl} + */ + public static final class HardwarePidControl extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.HardwarePidControl) + HardwarePidControlOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwarePidControl.newBuilder() to construct. + private HardwarePidControl(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HardwarePidControl() { + hardwarePidControlType_ = 0; + outputProportionalPowerLimit_ = 0; + outputProportionalBand_ = 0; + integralTime_ = 0; + derivativeTime_ = 0; + sensorCorrectionAdjustment_ = 0; + sensorMinValue_ = 0; + sensorMaxValue_ = 0; + setPointRampRateorSoftStartRamp_ = 0; + setPointControlOutputRate_ = 0; + controlOutputType_ = 0; + ssrControlOutputType_ = 0; + outputOnOffHysteresisValue_ = 0; + processVariableSamplingRate_ = 0; + pvInputFilterFactorMode_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HardwarePidControl( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + hardwarePidControlType_ = rawValue; + break; + } + case 16: { + + outputProportionalPowerLimit_ = input.readInt32(); + break; + } + case 24: { + + outputProportionalBand_ = input.readInt32(); + break; + } + case 32: { + + integralTime_ = input.readInt32(); + break; + } + case 40: { + + derivativeTime_ = input.readInt32(); + break; + } + case 48: { + + sensorCorrectionAdjustment_ = input.readInt32(); + break; + } + case 56: { + + sensorMinValue_ = input.readInt32(); + break; + } + case 64: { + + sensorMaxValue_ = input.readInt32(); + break; + } + case 72: { + + setPointRampRateorSoftStartRamp_ = input.readInt32(); + break; + } + case 80: { + + setPointControlOutputRate_ = input.readInt32(); + break; + } + case 88: { + + controlOutputType_ = input.readInt32(); + break; + } + case 96: { + + ssrControlOutputType_ = input.readInt32(); + break; + } + case 104: { + + outputOnOffHysteresisValue_ = input.readInt32(); + break; + } + case 112: { + + processVariableSamplingRate_ = input.readInt32(); + break; + } + case 120: { + + pvInputFilterFactorMode_ = input.readInt32(); + 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 com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.internal_static_Tango_PMR_Hardware_HardwarePidControl_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.internal_static_Tango_PMR_Hardware_HardwarePidControl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.class, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder.class); + } + + public static final int HARDWAREPIDCONTROLTYPE_FIELD_NUMBER = 1; + private int hardwarePidControlType_; + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public int getHardwarePidControlTypeValue() { + return hardwarePidControlType_; + } + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType getHardwarePidControlType() { + com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType result = com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType.valueOf(hardwarePidControlType_); + return result == null ? com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType.UNRECOGNIZED : result; + } + + public static final int OUTPUTPROPORTIONALPOWERLIMIT_FIELD_NUMBER = 2; + private int outputProportionalPowerLimit_; + /** + * int32 OutputProportionalPowerLimit = 2; + */ + public int getOutputProportionalPowerLimit() { + return outputProportionalPowerLimit_; + } + + public static final int OUTPUTPROPORTIONALBAND_FIELD_NUMBER = 3; + private int outputProportionalBand_; + /** + * int32 OutputProportionalBand = 3; + */ + public int getOutputProportionalBand() { + return outputProportionalBand_; + } + + public static final int INTEGRALTIME_FIELD_NUMBER = 4; + private int integralTime_; + /** + * int32 IntegralTime = 4; + */ + public int getIntegralTime() { + return integralTime_; + } + + public static final int DERIVATIVETIME_FIELD_NUMBER = 5; + private int derivativeTime_; + /** + * int32 DerivativeTime = 5; + */ + public int getDerivativeTime() { + return derivativeTime_; + } + + public static final int SENSORCORRECTIONADJUSTMENT_FIELD_NUMBER = 6; + private int sensorCorrectionAdjustment_; + /** + * int32 SensorCorrectionAdjustment = 6; + */ + public int getSensorCorrectionAdjustment() { + return sensorCorrectionAdjustment_; + } + + public static final int SENSORMINVALUE_FIELD_NUMBER = 7; + private int sensorMinValue_; + /** + * int32 SensorMinValue = 7; + */ + public int getSensorMinValue() { + return sensorMinValue_; + } + + public static final int SENSORMAXVALUE_FIELD_NUMBER = 8; + private int sensorMaxValue_; + /** + * int32 SensorMaxValue = 8; + */ + public int getSensorMaxValue() { + return sensorMaxValue_; + } + + public static final int SETPOINTRAMPRATEORSOFTSTARTRAMP_FIELD_NUMBER = 9; + private int setPointRampRateorSoftStartRamp_; + /** + * int32 SetPointRampRateorSoftStartRamp = 9; + */ + public int getSetPointRampRateorSoftStartRamp() { + return setPointRampRateorSoftStartRamp_; + } + + public static final int SETPOINTCONTROLOUTPUTRATE_FIELD_NUMBER = 10; + private int setPointControlOutputRate_; + /** + * int32 SetPointControlOutputRate = 10; + */ + public int getSetPointControlOutputRate() { + return setPointControlOutputRate_; + } + + public static final int CONTROLOUTPUTTYPE_FIELD_NUMBER = 11; + private int controlOutputType_; + /** + * int32 ControlOutputType = 11; + */ + public int getControlOutputType() { + return controlOutputType_; + } + + public static final int SSRCONTROLOUTPUTTYPE_FIELD_NUMBER = 12; + private int ssrControlOutputType_; + /** + * int32 SsrControlOutputType = 12; + */ + public int getSsrControlOutputType() { + return ssrControlOutputType_; + } + + public static final int OUTPUTONOFFHYSTERESISVALUE_FIELD_NUMBER = 13; + private int outputOnOffHysteresisValue_; + /** + * int32 OutputOnOffHysteresisValue = 13; + */ + public int getOutputOnOffHysteresisValue() { + return outputOnOffHysteresisValue_; + } + + public static final int PROCESSVARIABLESAMPLINGRATE_FIELD_NUMBER = 14; + private int processVariableSamplingRate_; + /** + * int32 ProcessVariableSamplingRate = 14; + */ + public int getProcessVariableSamplingRate() { + return processVariableSamplingRate_; + } + + public static final int PVINPUTFILTERFACTORMODE_FIELD_NUMBER = 15; + private int pvInputFilterFactorMode_; + /** + * int32 PvInputFilterFactorMode = 15; + */ + public int getPvInputFilterFactorMode() { + return pvInputFilterFactorMode_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardwarePidControlType_ != com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType.DryerHeater1000w.getNumber()) { + output.writeEnum(1, hardwarePidControlType_); + } + if (outputProportionalPowerLimit_ != 0) { + output.writeInt32(2, outputProportionalPowerLimit_); + } + if (outputProportionalBand_ != 0) { + output.writeInt32(3, outputProportionalBand_); + } + if (integralTime_ != 0) { + output.writeInt32(4, integralTime_); + } + if (derivativeTime_ != 0) { + output.writeInt32(5, derivativeTime_); + } + if (sensorCorrectionAdjustment_ != 0) { + output.writeInt32(6, sensorCorrectionAdjustment_); + } + if (sensorMinValue_ != 0) { + output.writeInt32(7, sensorMinValue_); + } + if (sensorMaxValue_ != 0) { + output.writeInt32(8, sensorMaxValue_); + } + if (setPointRampRateorSoftStartRamp_ != 0) { + output.writeInt32(9, setPointRampRateorSoftStartRamp_); + } + if (setPointControlOutputRate_ != 0) { + output.writeInt32(10, setPointControlOutputRate_); + } + if (controlOutputType_ != 0) { + output.writeInt32(11, controlOutputType_); + } + if (ssrControlOutputType_ != 0) { + output.writeInt32(12, ssrControlOutputType_); + } + if (outputOnOffHysteresisValue_ != 0) { + output.writeInt32(13, outputOnOffHysteresisValue_); + } + if (processVariableSamplingRate_ != 0) { + output.writeInt32(14, processVariableSamplingRate_); + } + if (pvInputFilterFactorMode_ != 0) { + output.writeInt32(15, pvInputFilterFactorMode_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hardwarePidControlType_ != com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType.DryerHeater1000w.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hardwarePidControlType_); + } + if (outputProportionalPowerLimit_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, outputProportionalPowerLimit_); + } + if (outputProportionalBand_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, outputProportionalBand_); + } + if (integralTime_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, integralTime_); + } + if (derivativeTime_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, derivativeTime_); + } + if (sensorCorrectionAdjustment_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, sensorCorrectionAdjustment_); + } + if (sensorMinValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, sensorMinValue_); + } + if (sensorMaxValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, sensorMaxValue_); + } + if (setPointRampRateorSoftStartRamp_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, setPointRampRateorSoftStartRamp_); + } + if (setPointControlOutputRate_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(10, setPointControlOutputRate_); + } + if (controlOutputType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, controlOutputType_); + } + if (ssrControlOutputType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, ssrControlOutputType_); + } + if (outputOnOffHysteresisValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(13, outputOnOffHysteresisValue_); + } + if (processVariableSamplingRate_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(14, processVariableSamplingRate_); + } + if (pvInputFilterFactorMode_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, pvInputFilterFactorMode_); + } + 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 com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl other = (com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl) obj; + + boolean result = true; + result = result && hardwarePidControlType_ == other.hardwarePidControlType_; + result = result && (getOutputProportionalPowerLimit() + == other.getOutputProportionalPowerLimit()); + result = result && (getOutputProportionalBand() + == other.getOutputProportionalBand()); + result = result && (getIntegralTime() + == other.getIntegralTime()); + result = result && (getDerivativeTime() + == other.getDerivativeTime()); + result = result && (getSensorCorrectionAdjustment() + == other.getSensorCorrectionAdjustment()); + result = result && (getSensorMinValue() + == other.getSensorMinValue()); + result = result && (getSensorMaxValue() + == other.getSensorMaxValue()); + result = result && (getSetPointRampRateorSoftStartRamp() + == other.getSetPointRampRateorSoftStartRamp()); + result = result && (getSetPointControlOutputRate() + == other.getSetPointControlOutputRate()); + result = result && (getControlOutputType() + == other.getControlOutputType()); + result = result && (getSsrControlOutputType() + == other.getSsrControlOutputType()); + result = result && (getOutputOnOffHysteresisValue() + == other.getOutputOnOffHysteresisValue()); + result = result && (getProcessVariableSamplingRate() + == other.getProcessVariableSamplingRate()); + result = result && (getPvInputFilterFactorMode() + == other.getPvInputFilterFactorMode()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HARDWAREPIDCONTROLTYPE_FIELD_NUMBER; + hash = (53 * hash) + hardwarePidControlType_; + hash = (37 * hash) + OUTPUTPROPORTIONALPOWERLIMIT_FIELD_NUMBER; + hash = (53 * hash) + getOutputProportionalPowerLimit(); + hash = (37 * hash) + OUTPUTPROPORTIONALBAND_FIELD_NUMBER; + hash = (53 * hash) + getOutputProportionalBand(); + hash = (37 * hash) + INTEGRALTIME_FIELD_NUMBER; + hash = (53 * hash) + getIntegralTime(); + hash = (37 * hash) + DERIVATIVETIME_FIELD_NUMBER; + hash = (53 * hash) + getDerivativeTime(); + hash = (37 * hash) + SENSORCORRECTIONADJUSTMENT_FIELD_NUMBER; + hash = (53 * hash) + getSensorCorrectionAdjustment(); + hash = (37 * hash) + SENSORMINVALUE_FIELD_NUMBER; + hash = (53 * hash) + getSensorMinValue(); + hash = (37 * hash) + SENSORMAXVALUE_FIELD_NUMBER; + hash = (53 * hash) + getSensorMaxValue(); + hash = (37 * hash) + SETPOINTRAMPRATEORSOFTSTARTRAMP_FIELD_NUMBER; + hash = (53 * hash) + getSetPointRampRateorSoftStartRamp(); + hash = (37 * hash) + SETPOINTCONTROLOUTPUTRATE_FIELD_NUMBER; + hash = (53 * hash) + getSetPointControlOutputRate(); + hash = (37 * hash) + CONTROLOUTPUTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getControlOutputType(); + hash = (37 * hash) + SSRCONTROLOUTPUTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getSsrControlOutputType(); + hash = (37 * hash) + OUTPUTONOFFHYSTERESISVALUE_FIELD_NUMBER; + hash = (53 * hash) + getOutputOnOffHysteresisValue(); + hash = (37 * hash) + PROCESSVARIABLESAMPLINGRATE_FIELD_NUMBER; + hash = (53 * hash) + getProcessVariableSamplingRate(); + hash = (37 * hash) + PVINPUTFILTERFACTORMODE_FIELD_NUMBER; + hash = (53 * hash) + getPvInputFilterFactorMode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl 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 com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl 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 com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.HardwarePidControl} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.HardwarePidControl) + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.internal_static_Tango_PMR_Hardware_HardwarePidControl_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.internal_static_Tango_PMR_Hardware_HardwarePidControl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.class, com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + hardwarePidControlType_ = 0; + + outputProportionalPowerLimit_ = 0; + + outputProportionalBand_ = 0; + + integralTime_ = 0; + + derivativeTime_ = 0; + + sensorCorrectionAdjustment_ = 0; + + sensorMinValue_ = 0; + + sensorMaxValue_ = 0; + + setPointRampRateorSoftStartRamp_ = 0; + + setPointControlOutputRate_ = 0; + + controlOutputType_ = 0; + + ssrControlOutputType_ = 0; + + outputOnOffHysteresisValue_ = 0; + + processVariableSamplingRate_ = 0; + + pvInputFilterFactorMode_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.internal_static_Tango_PMR_Hardware_HardwarePidControl_descriptor; + } + + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl build() { + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl buildPartial() { + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl result = new com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl(this); + result.hardwarePidControlType_ = hardwarePidControlType_; + result.outputProportionalPowerLimit_ = outputProportionalPowerLimit_; + result.outputProportionalBand_ = outputProportionalBand_; + result.integralTime_ = integralTime_; + result.derivativeTime_ = derivativeTime_; + result.sensorCorrectionAdjustment_ = sensorCorrectionAdjustment_; + result.sensorMinValue_ = sensorMinValue_; + result.sensorMaxValue_ = sensorMaxValue_; + result.setPointRampRateorSoftStartRamp_ = setPointRampRateorSoftStartRamp_; + result.setPointControlOutputRate_ = setPointControlOutputRate_; + result.controlOutputType_ = controlOutputType_; + result.ssrControlOutputType_ = ssrControlOutputType_; + result.outputOnOffHysteresisValue_ = outputOnOffHysteresisValue_; + result.processVariableSamplingRate_ = processVariableSamplingRate_; + result.pvInputFilterFactorMode_ = pvInputFilterFactorMode_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl) { + return mergeFrom((com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl other) { + if (other == com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl.getDefaultInstance()) return this; + if (other.hardwarePidControlType_ != 0) { + setHardwarePidControlTypeValue(other.getHardwarePidControlTypeValue()); + } + if (other.getOutputProportionalPowerLimit() != 0) { + setOutputProportionalPowerLimit(other.getOutputProportionalPowerLimit()); + } + if (other.getOutputProportionalBand() != 0) { + setOutputProportionalBand(other.getOutputProportionalBand()); + } + if (other.getIntegralTime() != 0) { + setIntegralTime(other.getIntegralTime()); + } + if (other.getDerivativeTime() != 0) { + setDerivativeTime(other.getDerivativeTime()); + } + if (other.getSensorCorrectionAdjustment() != 0) { + setSensorCorrectionAdjustment(other.getSensorCorrectionAdjustment()); + } + if (other.getSensorMinValue() != 0) { + setSensorMinValue(other.getSensorMinValue()); + } + if (other.getSensorMaxValue() != 0) { + setSensorMaxValue(other.getSensorMaxValue()); + } + if (other.getSetPointRampRateorSoftStartRamp() != 0) { + setSetPointRampRateorSoftStartRamp(other.getSetPointRampRateorSoftStartRamp()); + } + if (other.getSetPointControlOutputRate() != 0) { + setSetPointControlOutputRate(other.getSetPointControlOutputRate()); + } + if (other.getControlOutputType() != 0) { + setControlOutputType(other.getControlOutputType()); + } + if (other.getSsrControlOutputType() != 0) { + setSsrControlOutputType(other.getSsrControlOutputType()); + } + if (other.getOutputOnOffHysteresisValue() != 0) { + setOutputOnOffHysteresisValue(other.getOutputOnOffHysteresisValue()); + } + if (other.getProcessVariableSamplingRate() != 0) { + setProcessVariableSamplingRate(other.getProcessVariableSamplingRate()); + } + if (other.getPvInputFilterFactorMode() != 0) { + setPvInputFilterFactorMode(other.getPvInputFilterFactorMode()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int hardwarePidControlType_ = 0; + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public int getHardwarePidControlTypeValue() { + return hardwarePidControlType_; + } + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public Builder setHardwarePidControlTypeValue(int value) { + hardwarePidControlType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType getHardwarePidControlType() { + com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType result = com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType.valueOf(hardwarePidControlType_); + return result == null ? com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public Builder setHardwarePidControlType(com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.HardwarePidControlType value) { + if (value == null) { + throw new NullPointerException(); + } + + hardwarePidControlType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwarePidControlType HardwarePidControlType = 1; + */ + public Builder clearHardwarePidControlType() { + + hardwarePidControlType_ = 0; + onChanged(); + return this; + } + + private int outputProportionalPowerLimit_ ; + /** + * int32 OutputProportionalPowerLimit = 2; + */ + public int getOutputProportionalPowerLimit() { + return outputProportionalPowerLimit_; + } + /** + * int32 OutputProportionalPowerLimit = 2; + */ + public Builder setOutputProportionalPowerLimit(int value) { + + outputProportionalPowerLimit_ = value; + onChanged(); + return this; + } + /** + * int32 OutputProportionalPowerLimit = 2; + */ + public Builder clearOutputProportionalPowerLimit() { + + outputProportionalPowerLimit_ = 0; + onChanged(); + return this; + } + + private int outputProportionalBand_ ; + /** + * int32 OutputProportionalBand = 3; + */ + public int getOutputProportionalBand() { + return outputProportionalBand_; + } + /** + * int32 OutputProportionalBand = 3; + */ + public Builder setOutputProportionalBand(int value) { + + outputProportionalBand_ = value; + onChanged(); + return this; + } + /** + * int32 OutputProportionalBand = 3; + */ + public Builder clearOutputProportionalBand() { + + outputProportionalBand_ = 0; + onChanged(); + return this; + } + + private int integralTime_ ; + /** + * int32 IntegralTime = 4; + */ + public int getIntegralTime() { + return integralTime_; + } + /** + * int32 IntegralTime = 4; + */ + public Builder setIntegralTime(int value) { + + integralTime_ = value; + onChanged(); + return this; + } + /** + * int32 IntegralTime = 4; + */ + public Builder clearIntegralTime() { + + integralTime_ = 0; + onChanged(); + return this; + } + + private int derivativeTime_ ; + /** + * int32 DerivativeTime = 5; + */ + public int getDerivativeTime() { + return derivativeTime_; + } + /** + * int32 DerivativeTime = 5; + */ + public Builder setDerivativeTime(int value) { + + derivativeTime_ = value; + onChanged(); + return this; + } + /** + * int32 DerivativeTime = 5; + */ + public Builder clearDerivativeTime() { + + derivativeTime_ = 0; + onChanged(); + return this; + } + + private int sensorCorrectionAdjustment_ ; + /** + * int32 SensorCorrectionAdjustment = 6; + */ + public int getSensorCorrectionAdjustment() { + return sensorCorrectionAdjustment_; + } + /** + * int32 SensorCorrectionAdjustment = 6; + */ + public Builder setSensorCorrectionAdjustment(int value) { + + sensorCorrectionAdjustment_ = value; + onChanged(); + return this; + } + /** + * int32 SensorCorrectionAdjustment = 6; + */ + public Builder clearSensorCorrectionAdjustment() { + + sensorCorrectionAdjustment_ = 0; + onChanged(); + return this; + } + + private int sensorMinValue_ ; + /** + * int32 SensorMinValue = 7; + */ + public int getSensorMinValue() { + return sensorMinValue_; + } + /** + * int32 SensorMinValue = 7; + */ + public Builder setSensorMinValue(int value) { + + sensorMinValue_ = value; + onChanged(); + return this; + } + /** + * int32 SensorMinValue = 7; + */ + public Builder clearSensorMinValue() { + + sensorMinValue_ = 0; + onChanged(); + return this; + } + + private int sensorMaxValue_ ; + /** + * int32 SensorMaxValue = 8; + */ + public int getSensorMaxValue() { + return sensorMaxValue_; + } + /** + * int32 SensorMaxValue = 8; + */ + public Builder setSensorMaxValue(int value) { + + sensorMaxValue_ = value; + onChanged(); + return this; + } + /** + * int32 SensorMaxValue = 8; + */ + public Builder clearSensorMaxValue() { + + sensorMaxValue_ = 0; + onChanged(); + return this; + } + + private int setPointRampRateorSoftStartRamp_ ; + /** + * int32 SetPointRampRateorSoftStartRamp = 9; + */ + public int getSetPointRampRateorSoftStartRamp() { + return setPointRampRateorSoftStartRamp_; + } + /** + * int32 SetPointRampRateorSoftStartRamp = 9; + */ + public Builder setSetPointRampRateorSoftStartRamp(int value) { + + setPointRampRateorSoftStartRamp_ = value; + onChanged(); + return this; + } + /** + * int32 SetPointRampRateorSoftStartRamp = 9; + */ + public Builder clearSetPointRampRateorSoftStartRamp() { + + setPointRampRateorSoftStartRamp_ = 0; + onChanged(); + return this; + } + + private int setPointControlOutputRate_ ; + /** + * int32 SetPointControlOutputRate = 10; + */ + public int getSetPointControlOutputRate() { + return setPointControlOutputRate_; + } + /** + * int32 SetPointControlOutputRate = 10; + */ + public Builder setSetPointControlOutputRate(int value) { + + setPointControlOutputRate_ = value; + onChanged(); + return this; + } + /** + * int32 SetPointControlOutputRate = 10; + */ + public Builder clearSetPointControlOutputRate() { + + setPointControlOutputRate_ = 0; + onChanged(); + return this; + } + + private int controlOutputType_ ; + /** + * int32 ControlOutputType = 11; + */ + public int getControlOutputType() { + return controlOutputType_; + } + /** + * int32 ControlOutputType = 11; + */ + public Builder setControlOutputType(int value) { + + controlOutputType_ = value; + onChanged(); + return this; + } + /** + * int32 ControlOutputType = 11; + */ + public Builder clearControlOutputType() { + + controlOutputType_ = 0; + onChanged(); + return this; + } + + private int ssrControlOutputType_ ; + /** + * int32 SsrControlOutputType = 12; + */ + public int getSsrControlOutputType() { + return ssrControlOutputType_; + } + /** + * int32 SsrControlOutputType = 12; + */ + public Builder setSsrControlOutputType(int value) { + + ssrControlOutputType_ = value; + onChanged(); + return this; + } + /** + * int32 SsrControlOutputType = 12; + */ + public Builder clearSsrControlOutputType() { + + ssrControlOutputType_ = 0; + onChanged(); + return this; + } + + private int outputOnOffHysteresisValue_ ; + /** + * int32 OutputOnOffHysteresisValue = 13; + */ + public int getOutputOnOffHysteresisValue() { + return outputOnOffHysteresisValue_; + } + /** + * int32 OutputOnOffHysteresisValue = 13; + */ + public Builder setOutputOnOffHysteresisValue(int value) { + + outputOnOffHysteresisValue_ = value; + onChanged(); + return this; + } + /** + * int32 OutputOnOffHysteresisValue = 13; + */ + public Builder clearOutputOnOffHysteresisValue() { + + outputOnOffHysteresisValue_ = 0; + onChanged(); + return this; + } + + private int processVariableSamplingRate_ ; + /** + * int32 ProcessVariableSamplingRate = 14; + */ + public int getProcessVariableSamplingRate() { + return processVariableSamplingRate_; + } + /** + * int32 ProcessVariableSamplingRate = 14; + */ + public Builder setProcessVariableSamplingRate(int value) { + + processVariableSamplingRate_ = value; + onChanged(); + return this; + } + /** + * int32 ProcessVariableSamplingRate = 14; + */ + public Builder clearProcessVariableSamplingRate() { + + processVariableSamplingRate_ = 0; + onChanged(); + return this; + } + + private int pvInputFilterFactorMode_ ; + /** + * int32 PvInputFilterFactorMode = 15; + */ + public int getPvInputFilterFactorMode() { + return pvInputFilterFactorMode_; + } + /** + * int32 PvInputFilterFactorMode = 15; + */ + public Builder setPvInputFilterFactorMode(int value) { + + pvInputFilterFactorMode_ = value; + onChanged(); + return this; + } + /** + * int32 PvInputFilterFactorMode = 15; + */ + public Builder clearPvInputFilterFactorMode() { + + pvInputFilterFactorMode_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.HardwarePidControl) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwarePidControl) + private static final com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl(); + } + + public static com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HardwarePidControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HardwarePidControl(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.HardwarePidControlOuterClass.HardwarePidControl getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_HardwarePidControl_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_HardwarePidControl_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\030HardwarePidControl.proto\022\022Tango.PMR.Ha" + + "rdware\032\034HardwarePidControlType.proto\"\227\004\n" + + "\022HardwarePidControl\022J\n\026HardwarePidContro" + + "lType\030\001 \001(\0162*.Tango.PMR.Hardware.Hardwar" + + "ePidControlType\022$\n\034OutputProportionalPow" + + "erLimit\030\002 \001(\005\022\036\n\026OutputProportionalBand\030" + + "\003 \001(\005\022\024\n\014IntegralTime\030\004 \001(\005\022\026\n\016Derivativ" + + "eTime\030\005 \001(\005\022\"\n\032SensorCorrectionAdjustmen" + + "t\030\006 \001(\005\022\026\n\016SensorMinValue\030\007 \001(\005\022\026\n\016Senso" + + "rMaxValue\030\010 \001(\005\022\'\n\037SetPointRampRateorSof", + "tStartRamp\030\t \001(\005\022!\n\031SetPointControlOutpu" + + "tRate\030\n \001(\005\022\031\n\021ControlOutputType\030\013 \001(\005\022\034" + + "\n\024SsrControlOutputType\030\014 \001(\005\022\"\n\032OutputOn" + + "OffHysteresisValue\030\r \001(\005\022#\n\033ProcessVaria" + + "bleSamplingRate\030\016 \001(\005\022\037\n\027PvInputFilterFa" + + "ctorMode\030\017 \001(\005B\036\n\034com.twine.tango.pmr.ha" + + "rdwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_HardwarePidControl_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_HardwarePidControl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_HardwarePidControl_descriptor, + new java.lang.String[] { "HardwarePidControlType", "OutputProportionalPowerLimit", "OutputProportionalBand", "IntegralTime", "DerivativeTime", "SensorCorrectionAdjustment", "SensorMinValue", "SensorMaxValue", "SetPointRampRateorSoftStartRamp", "SetPointControlOutputRate", "ControlOutputType", "SsrControlOutputType", "OutputOnOffHysteresisValue", "ProcessVariableSamplingRate", "PvInputFilterFactorMode", }); + com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlTypeOuterClass.java new file mode 100644 index 000000000..aff79b997 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwarePidControlTypeOuterClass.java @@ -0,0 +1,370 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwarePidControlType.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwarePidControlTypeOuterClass { + private HardwarePidControlTypeOuterClass() {} + 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 Tango.PMR.Hardware.HardwarePidControlType} + */ + public enum HardwarePidControlType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Dryer Heater 1000w
+     * 
+ * + * DryerHeater1000w = 0; + */ + DryerHeater1000w(0), + /** + *
+     *Dryer Heater 200w 1
+     * 
+ * + * DryerHeater200w1 = 1; + */ + DryerHeater200w1(1), + /** + *
+     *Dryer Heater 200w 2 
+     * 
+ * + * DryerHeater200w2 = 2; + */ + DryerHeater200w2(2), + /** + *
+     *Head Heater Zone 1
+     * 
+ * + * HeadHeaterZ1 = 3; + */ + HeadHeaterZ1(3), + /** + *
+     *Head Heater Zone 2
+     * 
+ * + * HeadHeaterZ2 = 4; + */ + HeadHeaterZ2(4), + /** + *
+     *Head Heater Zone 3
+     * 
+ * + * HeadHeaterZ3 = 5; + */ + HeadHeaterZ3(5), + /** + *
+     *Head Heater Zone 4
+     * 
+ * + * HeadHeaterZ4 = 6; + */ + HeadHeaterZ4(6), + /** + *
+     *Mixer Heater
+     * 
+ * + * MixerHeater = 7; + */ + MixerHeater(7), + /** + *
+     *Waste Control
+     * 
+ * + * WasteControl = 8; + */ + WasteControl(8), + /** + *
+     *Dryer Motor
+     * 
+ * + * MotorDryer = 9; + */ + MotorDryer(9), + /** + *
+     *Feeder Motor
+     * 
+ * + * MotorFeeder = 10; + */ + MotorFeeder(10), + /** + *
+     *Pooler Motor
+     * 
+ * + * MotorPooler = 11; + */ + MotorPooler(11), + /** + *
+     *Winder Motor
+     * 
+ * + * MotorWinder = 12; + */ + MotorWinder(12), + /** + *
+     *Dryer Heater 400
+     * 
+ * + * DryerHeater400 = 13; + */ + DryerHeater400(13), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Dryer Heater 1000w
+     * 
+ * + * DryerHeater1000w = 0; + */ + public static final int DryerHeater1000w_VALUE = 0; + /** + *
+     *Dryer Heater 200w 1
+     * 
+ * + * DryerHeater200w1 = 1; + */ + public static final int DryerHeater200w1_VALUE = 1; + /** + *
+     *Dryer Heater 200w 2 
+     * 
+ * + * DryerHeater200w2 = 2; + */ + public static final int DryerHeater200w2_VALUE = 2; + /** + *
+     *Head Heater Zone 1
+     * 
+ * + * HeadHeaterZ1 = 3; + */ + public static final int HeadHeaterZ1_VALUE = 3; + /** + *
+     *Head Heater Zone 2
+     * 
+ * + * HeadHeaterZ2 = 4; + */ + public static final int HeadHeaterZ2_VALUE = 4; + /** + *
+     *Head Heater Zone 3
+     * 
+ * + * HeadHeaterZ3 = 5; + */ + public static final int HeadHeaterZ3_VALUE = 5; + /** + *
+     *Head Heater Zone 4
+     * 
+ * + * HeadHeaterZ4 = 6; + */ + public static final int HeadHeaterZ4_VALUE = 6; + /** + *
+     *Mixer Heater
+     * 
+ * + * MixerHeater = 7; + */ + public static final int MixerHeater_VALUE = 7; + /** + *
+     *Waste Control
+     * 
+ * + * WasteControl = 8; + */ + public static final int WasteControl_VALUE = 8; + /** + *
+     *Dryer Motor
+     * 
+ * + * MotorDryer = 9; + */ + public static final int MotorDryer_VALUE = 9; + /** + *
+     *Feeder Motor
+     * 
+ * + * MotorFeeder = 10; + */ + public static final int MotorFeeder_VALUE = 10; + /** + *
+     *Pooler Motor
+     * 
+ * + * MotorPooler = 11; + */ + public static final int MotorPooler_VALUE = 11; + /** + *
+     *Winder Motor
+     * 
+ * + * MotorWinder = 12; + */ + public static final int MotorWinder_VALUE = 12; + /** + *
+     *Dryer Heater 400
+     * 
+ * + * DryerHeater400 = 13; + */ + public static final int DryerHeater400_VALUE = 13; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwarePidControlType valueOf(int value) { + return forNumber(value); + } + + public static HardwarePidControlType forNumber(int value) { + switch (value) { + case 0: return DryerHeater1000w; + case 1: return DryerHeater200w1; + case 2: return DryerHeater200w2; + case 3: return HeadHeaterZ1; + case 4: return HeadHeaterZ2; + case 5: return HeadHeaterZ3; + case 6: return HeadHeaterZ4; + case 7: return MixerHeater; + case 8: return WasteControl; + case 9: return MotorDryer; + case 10: return MotorFeeder; + case 11: return MotorPooler; + case 12: return MotorWinder; + case 13: return DryerHeater400; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HardwarePidControlType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HardwarePidControlType findValueByNumber(int number) { + return HardwarePidControlType.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 com.twine.tango.pmr.hardware.HardwarePidControlTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HardwarePidControlType[] VALUES = values(); + + public static HardwarePidControlType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwarePidControlType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Hardware.HardwarePidControlType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\034HardwarePidControlType.proto\022\022Tango.PM" + + "R.Hardware*\234\002\n\026HardwarePidControlType\022\024\n" + + "\020DryerHeater1000w\020\000\022\024\n\020DryerHeater200w1\020" + + "\001\022\024\n\020DryerHeater200w2\020\002\022\020\n\014HeadHeaterZ1\020" + + "\003\022\020\n\014HeadHeaterZ2\020\004\022\020\n\014HeadHeaterZ3\020\005\022\020\n" + + "\014HeadHeaterZ4\020\006\022\017\n\013MixerHeater\020\007\022\020\n\014Wast" + + "eControl\020\010\022\016\n\nMotorDryer\020\t\022\017\n\013MotorFeede" + + "r\020\n\022\017\n\013MotorPooler\020\013\022\017\n\013MotorWinder\020\014\022\022\n" + + "\016DryerHeater400\020\rB\036\n\034com.twine.tango.pmr" + + ".hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderOuterClass.java new file mode 100644 index 000000000..9cb93238b --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderOuterClass.java @@ -0,0 +1,601 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareWinder.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareWinderOuterClass { + private HardwareWinderOuterClass() {} + 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 HardwareWinderOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.HardwareWinder) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + int getHardwareWinderTypeValue(); + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType getHardwareWinderType(); + + /** + * int32 MillimeterPerRotation = 2; + */ + int getMillimeterPerRotation(); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.HardwareWinder} + */ + public static final class HardwareWinder extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.HardwareWinder) + HardwareWinderOrBuilder { + private static final long serialVersionUID = 0L; + // Use HardwareWinder.newBuilder() to construct. + private HardwareWinder(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HardwareWinder() { + hardwareWinderType_ = 0; + millimeterPerRotation_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HardwareWinder( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + hardwareWinderType_ = rawValue; + break; + } + case 16: { + + millimeterPerRotation_ = input.readInt32(); + 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 com.twine.tango.pmr.hardware.HardwareWinderOuterClass.internal_static_Tango_PMR_Hardware_HardwareWinder_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareWinderOuterClass.internal_static_Tango_PMR_Hardware_HardwareWinder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.class, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder.class); + } + + public static final int HARDWAREWINDERTYPE_FIELD_NUMBER = 1; + private int hardwareWinderType_; + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public int getHardwareWinderTypeValue() { + return hardwareWinderType_; + } + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType getHardwareWinderType() { + com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType result = com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType.valueOf(hardwareWinderType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType.UNRECOGNIZED : result; + } + + public static final int MILLIMETERPERROTATION_FIELD_NUMBER = 2; + private int millimeterPerRotation_; + /** + * int32 MillimeterPerRotation = 2; + */ + public int getMillimeterPerRotation() { + return millimeterPerRotation_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardwareWinderType_ != com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType.InternalWinder.getNumber()) { + output.writeEnum(1, hardwareWinderType_); + } + if (millimeterPerRotation_ != 0) { + output.writeInt32(2, millimeterPerRotation_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hardwareWinderType_ != com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType.InternalWinder.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hardwareWinderType_); + } + if (millimeterPerRotation_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, millimeterPerRotation_); + } + 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 com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder other = (com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder) obj; + + boolean result = true; + result = result && hardwareWinderType_ == other.hardwareWinderType_; + result = result && (getMillimeterPerRotation() + == other.getMillimeterPerRotation()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HARDWAREWINDERTYPE_FIELD_NUMBER; + hash = (53 * hash) + hardwareWinderType_; + hash = (37 * hash) + MILLIMETERPERROTATION_FIELD_NUMBER; + hash = (53 * hash) + getMillimeterPerRotation(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder 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 com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder 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 com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.HardwareWinder} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.HardwareWinder) + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.HardwareWinderOuterClass.internal_static_Tango_PMR_Hardware_HardwareWinder_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.HardwareWinderOuterClass.internal_static_Tango_PMR_Hardware_HardwareWinder_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.class, com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + hardwareWinderType_ = 0; + + millimeterPerRotation_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.HardwareWinderOuterClass.internal_static_Tango_PMR_Hardware_HardwareWinder_descriptor; + } + + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder build() { + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder buildPartial() { + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder result = new com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder(this); + result.hardwareWinderType_ = hardwareWinderType_; + result.millimeterPerRotation_ = millimeterPerRotation_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder) { + return mergeFrom((com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder other) { + if (other == com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder.getDefaultInstance()) return this; + if (other.hardwareWinderType_ != 0) { + setHardwareWinderTypeValue(other.getHardwareWinderTypeValue()); + } + if (other.getMillimeterPerRotation() != 0) { + setMillimeterPerRotation(other.getMillimeterPerRotation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int hardwareWinderType_ = 0; + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public int getHardwareWinderTypeValue() { + return hardwareWinderType_; + } + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public Builder setHardwareWinderTypeValue(int value) { + hardwareWinderType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType getHardwareWinderType() { + com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType result = com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType.valueOf(hardwareWinderType_); + return result == null ? com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public Builder setHardwareWinderType(com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.HardwareWinderType value) { + if (value == null) { + throw new NullPointerException(); + } + + hardwareWinderType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Hardware.HardwareWinderType HardwareWinderType = 1; + */ + public Builder clearHardwareWinderType() { + + hardwareWinderType_ = 0; + onChanged(); + return this; + } + + private int millimeterPerRotation_ ; + /** + * int32 MillimeterPerRotation = 2; + */ + public int getMillimeterPerRotation() { + return millimeterPerRotation_; + } + /** + * int32 MillimeterPerRotation = 2; + */ + public Builder setMillimeterPerRotation(int value) { + + millimeterPerRotation_ = value; + onChanged(); + return this; + } + /** + * int32 MillimeterPerRotation = 2; + */ + public Builder clearMillimeterPerRotation() { + + millimeterPerRotation_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.HardwareWinder) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.HardwareWinder) + private static final com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder(); + } + + public static com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public HardwareWinder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HardwareWinder(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.HardwareWinderOuterClass.HardwareWinder getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_HardwareWinder_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_HardwareWinder_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\024HardwareWinder.proto\022\022Tango.PMR.Hardwa" + + "re\032\030HardwareWinderType.proto\"s\n\016Hardware" + + "Winder\022B\n\022HardwareWinderType\030\001 \001(\0162&.Tan" + + "go.PMR.Hardware.HardwareWinderType\022\035\n\025Mi" + + "llimeterPerRotation\030\002 \001(\005B\036\n\034com.twine.t" + + "ango.pmr.hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_HardwareWinder_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_HardwareWinder_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_HardwareWinder_descriptor, + new java.lang.String[] { "HardwareWinderType", "MillimeterPerRotation", }); + com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderTypeOuterClass.java new file mode 100644 index 000000000..09f3fad91 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/HardwareWinderTypeOuterClass.java @@ -0,0 +1,143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: HardwareWinderType.proto + +package com.twine.tango.pmr.hardware; + +public final class HardwareWinderTypeOuterClass { + private HardwareWinderTypeOuterClass() {} + 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 Tango.PMR.Hardware.HardwareWinderType} + */ + public enum HardwareWinderType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Internal Winder
+     * 
+ * + * InternalWinder = 0; + */ + InternalWinder(0), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Internal Winder
+     * 
+ * + * InternalWinder = 0; + */ + public static final int InternalWinder_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HardwareWinderType valueOf(int value) { + return forNumber(value); + } + + public static HardwareWinderType forNumber(int value) { + switch (value) { + case 0: return InternalWinder; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + HardwareWinderType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HardwareWinderType findValueByNumber(int number) { + return HardwareWinderType.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 com.twine.tango.pmr.hardware.HardwareWinderTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final HardwareWinderType[] VALUES = values(); + + public static HardwareWinderType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private HardwareWinderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Hardware.HardwareWinderType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\030HardwareWinderType.proto\022\022Tango.PMR.Ha" + + "rdware*(\n\022HardwareWinderType\022\022\n\016Internal" + + "Winder\020\000B\036\n\034com.twine.tango.pmr.hardware" + + "b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationRequestOuterClass.java new file mode 100644 index 000000000..bbf0b1a76 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationRequestOuterClass.java @@ -0,0 +1,641 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UploadHardwareConfigurationRequest.proto + +package com.twine.tango.pmr.hardware; + +public final class UploadHardwareConfigurationRequestOuterClass { + private UploadHardwareConfigurationRequestOuterClass() {} + 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 UploadHardwareConfigurationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.UploadHardwareConfigurationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + boolean hasHardwareConfiguration(); + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration getHardwareConfiguration(); + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder getHardwareConfigurationOrBuilder(); + } + /** + * Protobuf type {@code Tango.PMR.Hardware.UploadHardwareConfigurationRequest} + */ + public static final class UploadHardwareConfigurationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.UploadHardwareConfigurationRequest) + UploadHardwareConfigurationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadHardwareConfigurationRequest.newBuilder() to construct. + private UploadHardwareConfigurationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UploadHardwareConfigurationRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UploadHardwareConfigurationRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder subBuilder = null; + if (hardwareConfiguration_ != null) { + subBuilder = hardwareConfiguration_.toBuilder(); + } + hardwareConfiguration_ = input.readMessage(com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hardwareConfiguration_); + hardwareConfiguration_ = subBuilder.buildPartial(); + } + + 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.class, com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.Builder.class); + } + + public static final int HARDWARECONFIGURATION_FIELD_NUMBER = 1; + private com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration hardwareConfiguration_; + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public boolean hasHardwareConfiguration() { + return hardwareConfiguration_ != null; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration getHardwareConfiguration() { + return hardwareConfiguration_ == null ? com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.getDefaultInstance() : hardwareConfiguration_; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder getHardwareConfigurationOrBuilder() { + return getHardwareConfiguration(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hardwareConfiguration_ != null) { + output.writeMessage(1, getHardwareConfiguration()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hardwareConfiguration_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHardwareConfiguration()); + } + 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest other = (com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest) obj; + + boolean result = true; + result = result && (hasHardwareConfiguration() == other.hasHardwareConfiguration()); + if (hasHardwareConfiguration()) { + result = result && getHardwareConfiguration() + .equals(other.getHardwareConfiguration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHardwareConfiguration()) { + hash = (37 * hash) + HARDWARECONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getHardwareConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.UploadHardwareConfigurationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.UploadHardwareConfigurationRequest) + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.class, com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (hardwareConfigurationBuilder_ == null) { + hardwareConfiguration_ = null; + } else { + hardwareConfiguration_ = null; + hardwareConfigurationBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_descriptor; + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest build() { + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest buildPartial() { + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest result = new com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest(this); + if (hardwareConfigurationBuilder_ == null) { + result.hardwareConfiguration_ = hardwareConfiguration_; + } else { + result.hardwareConfiguration_ = hardwareConfigurationBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest) { + return mergeFrom((com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest other) { + if (other == com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest.getDefaultInstance()) return this; + if (other.hasHardwareConfiguration()) { + mergeHardwareConfiguration(other.getHardwareConfiguration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration hardwareConfiguration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder> hardwareConfigurationBuilder_; + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public boolean hasHardwareConfiguration() { + return hardwareConfigurationBuilder_ != null || hardwareConfiguration_ != null; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration getHardwareConfiguration() { + if (hardwareConfigurationBuilder_ == null) { + return hardwareConfiguration_ == null ? com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.getDefaultInstance() : hardwareConfiguration_; + } else { + return hardwareConfigurationBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public Builder setHardwareConfiguration(com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration value) { + if (hardwareConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hardwareConfiguration_ = value; + onChanged(); + } else { + hardwareConfigurationBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public Builder setHardwareConfiguration( + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder builderForValue) { + if (hardwareConfigurationBuilder_ == null) { + hardwareConfiguration_ = builderForValue.build(); + onChanged(); + } else { + hardwareConfigurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public Builder mergeHardwareConfiguration(com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration value) { + if (hardwareConfigurationBuilder_ == null) { + if (hardwareConfiguration_ != null) { + hardwareConfiguration_ = + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.newBuilder(hardwareConfiguration_).mergeFrom(value).buildPartial(); + } else { + hardwareConfiguration_ = value; + } + onChanged(); + } else { + hardwareConfigurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public Builder clearHardwareConfiguration() { + if (hardwareConfigurationBuilder_ == null) { + hardwareConfiguration_ = null; + onChanged(); + } else { + hardwareConfiguration_ = null; + hardwareConfigurationBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder getHardwareConfigurationBuilder() { + + onChanged(); + return getHardwareConfigurationFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + public com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder getHardwareConfigurationOrBuilder() { + if (hardwareConfigurationBuilder_ != null) { + return hardwareConfigurationBuilder_.getMessageOrBuilder(); + } else { + return hardwareConfiguration_ == null ? + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.getDefaultInstance() : hardwareConfiguration_; + } + } + /** + * .Tango.PMR.Hardware.HardwareConfiguration HardwareConfiguration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder> + getHardwareConfigurationFieldBuilder() { + if (hardwareConfigurationBuilder_ == null) { + hardwareConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfiguration.Builder, com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.HardwareConfigurationOrBuilder>( + getHardwareConfiguration(), + getParentForChildren(), + isClean()); + hardwareConfiguration_ = null; + } + return hardwareConfigurationBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.UploadHardwareConfigurationRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.UploadHardwareConfigurationRequest) + private static final com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest(); + } + + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UploadHardwareConfigurationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UploadHardwareConfigurationRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationRequestOuterClass.UploadHardwareConfigurationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_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(UploadHardwareConfigurationRequest.pro" + + "to\022\022Tango.PMR.Hardware\032\033HardwareConfigur" + + "ation.proto\"n\n\"UploadHardwareConfigurati" + + "onRequest\022H\n\025HardwareConfiguration\030\001 \001(\013" + + "2).Tango.PMR.Hardware.HardwareConfigurat" + + "ionB\036\n\034com.twine.tango.pmr.hardwareb\006pro" + + "to3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationRequest_descriptor, + new java.lang.String[] { "HardwareConfiguration", }); + com.twine.tango.pmr.hardware.HardwareConfigurationOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationResponseOuterClass.java new file mode 100644 index 000000000..a12274260 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/hardware/UploadHardwareConfigurationResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UploadHardwareConfigurationResponse.proto + +package com.twine.tango.pmr.hardware; + +public final class UploadHardwareConfigurationResponseOuterClass { + private UploadHardwareConfigurationResponseOuterClass() {} + 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 UploadHardwareConfigurationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Hardware.UploadHardwareConfigurationResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Hardware.UploadHardwareConfigurationResponse} + */ + public static final class UploadHardwareConfigurationResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Hardware.UploadHardwareConfigurationResponse) + UploadHardwareConfigurationResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadHardwareConfigurationResponse.newBuilder() to construct. + private UploadHardwareConfigurationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UploadHardwareConfigurationResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UploadHardwareConfigurationResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.class, com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse other = (com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse 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 com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Hardware.UploadHardwareConfigurationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Hardware.UploadHardwareConfigurationResponse) + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.class, com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_descriptor; + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse build() { + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse buildPartial() { + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse result = new com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse) { + return mergeFrom((com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse other) { + if (other == com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Hardware.UploadHardwareConfigurationResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Hardware.UploadHardwareConfigurationResponse) + private static final com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse(); + } + + public static com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UploadHardwareConfigurationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UploadHardwareConfigurationResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.hardware.UploadHardwareConfigurationResponseOuterClass.UploadHardwareConfigurationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_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)UploadHardwareConfigurationResponse.pr" + + "oto\022\022Tango.PMR.Hardware\"%\n#UploadHardwar" + + "eConfigurationResponseB\036\n\034com.twine.tang" + + "o.pmr.hardwareb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Hardware_UploadHardwareConfigurationResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobRequestOuterClass.java new file mode 100644 index 000000000..9fe3f94c0 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobRequestOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AbortJobRequest.proto + +package com.twine.tango.pmr.printing; + +public final class AbortJobRequestOuterClass { + private AbortJobRequestOuterClass() {} + 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 AbortJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.AbortJobRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Printing.AbortJobRequest} + */ + public static final class AbortJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.AbortJobRequest) + AbortJobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AbortJobRequest.newBuilder() to construct. + private AbortJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AbortJobRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.printing.AbortJobRequestOuterClass.internal_static_Tango_PMR_Printing_AbortJobRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.AbortJobRequestOuterClass.internal_static_Tango_PMR_Printing_AbortJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.class, com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest other = (com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest 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 com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest 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 com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.AbortJobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.AbortJobRequest) + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.AbortJobRequestOuterClass.internal_static_Tango_PMR_Printing_AbortJobRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.AbortJobRequestOuterClass.internal_static_Tango_PMR_Printing_AbortJobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.class, com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.AbortJobRequestOuterClass.internal_static_Tango_PMR_Printing_AbortJobRequest_descriptor; + } + + public com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest build() { + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest buildPartial() { + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest result = new com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest) { + return mergeFrom((com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest other) { + if (other == com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.AbortJobRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.AbortJobRequest) + private static final com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest(); + } + + public static com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public AbortJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortJobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.AbortJobRequestOuterClass.AbortJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_AbortJobRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_AbortJobRequest_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\025AbortJobRequest.proto\022\022Tango.PMR.Print" + + "ing\"\021\n\017AbortJobRequestB\036\n\034com.twine.tang" + + "o.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Printing_AbortJobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_AbortJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_AbortJobRequest_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobResponseOuterClass.java new file mode 100644 index 000000000..1bcdc8b22 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/AbortJobResponseOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: AbortJobResponse.proto + +package com.twine.tango.pmr.printing; + +public final class AbortJobResponseOuterClass { + private AbortJobResponseOuterClass() {} + 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 AbortJobResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.AbortJobResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Printing.AbortJobResponse} + */ + public static final class AbortJobResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.AbortJobResponse) + AbortJobResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AbortJobResponse.newBuilder() to construct. + private AbortJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AbortJobResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AbortJobResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.printing.AbortJobResponseOuterClass.internal_static_Tango_PMR_Printing_AbortJobResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.AbortJobResponseOuterClass.internal_static_Tango_PMR_Printing_AbortJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.class, com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse other = (com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse 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 com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse 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 com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.AbortJobResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.AbortJobResponse) + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.AbortJobResponseOuterClass.internal_static_Tango_PMR_Printing_AbortJobResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.AbortJobResponseOuterClass.internal_static_Tango_PMR_Printing_AbortJobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.class, com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.AbortJobResponseOuterClass.internal_static_Tango_PMR_Printing_AbortJobResponse_descriptor; + } + + public com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse build() { + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse buildPartial() { + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse result = new com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse) { + return mergeFrom((com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse other) { + if (other == com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.AbortJobResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.AbortJobResponse) + private static final com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse(); + } + + public static com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public AbortJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbortJobResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.AbortJobResponseOuterClass.AbortJobResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_AbortJobResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_AbortJobResponse_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\026AbortJobResponse.proto\022\022Tango.PMR.Prin" + + "ting\"\022\n\020AbortJobResponseB\036\n\034com.twine.ta" + + "ngo.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Printing_AbortJobResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_AbortJobResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_AbortJobResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserLiquidTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserLiquidTypeOuterClass.java new file mode 100644 index 000000000..dd8eb8900 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserLiquidTypeOuterClass.java @@ -0,0 +1,190 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserLiquidType.proto + +package com.twine.tango.pmr.printing; + +public final class DispenserLiquidTypeOuterClass { + private DispenserLiquidTypeOuterClass() {} + 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 Tango.PMR.Printing.DispenserLiquidType} + */ + public enum DispenserLiquidType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Cyan = 0; + */ + Cyan(0), + /** + * Magenta = 1; + */ + Magenta(1), + /** + * Yellow = 2; + */ + Yellow(2), + /** + * Black = 3; + */ + Black(3), + /** + * TransparentInk = 4; + */ + TransparentInk(4), + /** + * Lubricant = 5; + */ + Lubricant(5), + /** + * Red = 7; + */ + Red(7), + UNRECOGNIZED(-1), + ; + + /** + * Cyan = 0; + */ + public static final int Cyan_VALUE = 0; + /** + * Magenta = 1; + */ + public static final int Magenta_VALUE = 1; + /** + * Yellow = 2; + */ + public static final int Yellow_VALUE = 2; + /** + * Black = 3; + */ + public static final int Black_VALUE = 3; + /** + * TransparentInk = 4; + */ + public static final int TransparentInk_VALUE = 4; + /** + * Lubricant = 5; + */ + public static final int Lubricant_VALUE = 5; + /** + * Red = 7; + */ + public static final int Red_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DispenserLiquidType valueOf(int value) { + return forNumber(value); + } + + public static DispenserLiquidType forNumber(int value) { + switch (value) { + case 0: return Cyan; + case 1: return Magenta; + case 2: return Yellow; + case 3: return Black; + case 4: return TransparentInk; + case 5: return Lubricant; + case 7: return Red; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DispenserLiquidType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DispenserLiquidType findValueByNumber(int number) { + return DispenserLiquidType.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 com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final DispenserLiquidType[] VALUES = values(); + + public static DispenserLiquidType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DispenserLiquidType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Printing.DispenserLiquidType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\031DispenserLiquidType.proto\022\022Tango.PMR.P" + + "rinting*o\n\023DispenserLiquidType\022\010\n\004Cyan\020\000" + + "\022\013\n\007Magenta\020\001\022\n\n\006Yellow\020\002\022\t\n\005Black\020\003\022\022\n\016" + + "TransparentInk\020\004\022\r\n\tLubricant\020\005\022\007\n\003Red\020\007" + + "B\036\n\034com.twine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserStepDivisionOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserStepDivisionOuterClass.java new file mode 100644 index 000000000..583cbebe7 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/DispenserStepDivisionOuterClass.java @@ -0,0 +1,208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DispenserStepDivision.proto + +package com.twine.tango.pmr.printing; + +public final class DispenserStepDivisionOuterClass { + private DispenserStepDivisionOuterClass() {} + 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 Tango.PMR.Printing.DispenserStepDivision} + */ + public enum DispenserStepDivision + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Auto = 0; + */ + Auto(0), + /** + * D1 = 1; + */ + D1(1), + /** + * D2 = 2; + */ + D2(2), + /** + * D4 = 4; + */ + D4(4), + /** + * D8 = 8; + */ + D8(8), + /** + * D16 = 16; + */ + D16(16), + /** + * D32 = 32; + */ + D32(32), + /** + * D64 = 64; + */ + D64(64), + /** + * D128 = 128; + */ + D128(128), + UNRECOGNIZED(-1), + ; + + /** + * Auto = 0; + */ + public static final int Auto_VALUE = 0; + /** + * D1 = 1; + */ + public static final int D1_VALUE = 1; + /** + * D2 = 2; + */ + public static final int D2_VALUE = 2; + /** + * D4 = 4; + */ + public static final int D4_VALUE = 4; + /** + * D8 = 8; + */ + public static final int D8_VALUE = 8; + /** + * D16 = 16; + */ + public static final int D16_VALUE = 16; + /** + * D32 = 32; + */ + public static final int D32_VALUE = 32; + /** + * D64 = 64; + */ + public static final int D64_VALUE = 64; + /** + * D128 = 128; + */ + public static final int D128_VALUE = 128; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DispenserStepDivision valueOf(int value) { + return forNumber(value); + } + + public static DispenserStepDivision forNumber(int value) { + switch (value) { + case 0: return Auto; + case 1: return D1; + case 2: return D2; + case 4: return D4; + case 8: return D8; + case 16: return D16; + case 32: return D32; + case 64: return D64; + case 128: return D128; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DispenserStepDivision> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DispenserStepDivision findValueByNumber(int number) { + return DispenserStepDivision.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 com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final DispenserStepDivision[] VALUES = values(); + + public static DispenserStepDivision valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DispenserStepDivision(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Printing.DispenserStepDivision) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033DispenserStepDivision.proto\022\022Tango.PMR" + + ".Printing*g\n\025DispenserStepDivision\022\010\n\004Au" + + "to\020\000\022\006\n\002D1\020\001\022\006\n\002D2\020\002\022\006\n\002D4\020\004\022\006\n\002D8\020\010\022\007\n\003" + + "D16\020\020\022\007\n\003D32\020 \022\007\n\003D64\020@\022\t\n\004D128\020\200\001B\036\n\034co" + + "m.twine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobBrushStopOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobBrushStopOuterClass.java new file mode 100644 index 000000000..bf6c514ce --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobBrushStopOuterClass.java @@ -0,0 +1,1013 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobBrushStop.proto + +package com.twine.tango.pmr.printing; + +public final class JobBrushStopOuterClass { + private JobBrushStopOuterClass() {} + 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 JobBrushStopOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobBrushStop) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Index = 1; + */ + int getIndex(); + + /** + * double OffsetPercent = 2; + */ + double getOffsetPercent(); + + /** + * double OffsetMeters = 3; + */ + double getOffsetMeters(); + + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + java.util.List + getDispensersList(); + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser getDispensers(int index); + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + int getDispensersCount(); + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + java.util.List + getDispensersOrBuilderList(); + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder getDispensersOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobBrushStop} + */ + public static final class JobBrushStop extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobBrushStop) + JobBrushStopOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobBrushStop.newBuilder() to construct. + private JobBrushStop(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobBrushStop() { + index_ = 0; + offsetPercent_ = 0D; + offsetMeters_ = 0D; + dispensers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobBrushStop( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + index_ = input.readInt32(); + break; + } + case 17: { + + offsetPercent_ = input.readDouble(); + break; + } + case 25: { + + offsetMeters_ = input.readDouble(); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + dispensers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + dispensers_.add( + input.readMessage(com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + dispensers_ = java.util.Collections.unmodifiableList(dispensers_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobBrushStopOuterClass.internal_static_Tango_PMR_Printing_JobBrushStop_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobBrushStopOuterClass.internal_static_Tango_PMR_Printing_JobBrushStop_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.class, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder.class); + } + + private int bitField0_; + public static final int INDEX_FIELD_NUMBER = 1; + private int index_; + /** + * int32 Index = 1; + */ + public int getIndex() { + return index_; + } + + public static final int OFFSETPERCENT_FIELD_NUMBER = 2; + private double offsetPercent_; + /** + * double OffsetPercent = 2; + */ + public double getOffsetPercent() { + return offsetPercent_; + } + + public static final int OFFSETMETERS_FIELD_NUMBER = 3; + private double offsetMeters_; + /** + * double OffsetMeters = 3; + */ + public double getOffsetMeters() { + return offsetMeters_; + } + + public static final int DISPENSERS_FIELD_NUMBER = 4; + private java.util.List dispensers_; + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public java.util.List getDispensersList() { + return dispensers_; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public java.util.List + getDispensersOrBuilderList() { + return dispensers_; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public int getDispensersCount() { + return dispensers_.size(); + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser getDispensers(int index) { + return dispensers_.get(index); + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder getDispensersOrBuilder( + int index) { + return dispensers_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (index_ != 0) { + output.writeInt32(1, index_); + } + if (offsetPercent_ != 0D) { + output.writeDouble(2, offsetPercent_); + } + if (offsetMeters_ != 0D) { + output.writeDouble(3, offsetMeters_); + } + for (int i = 0; i < dispensers_.size(); i++) { + output.writeMessage(4, dispensers_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, index_); + } + if (offsetPercent_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, offsetPercent_); + } + if (offsetMeters_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, offsetMeters_); + } + for (int i = 0; i < dispensers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, dispensers_.get(i)); + } + 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 com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop other = (com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop) obj; + + boolean result = true; + result = result && (getIndex() + == other.getIndex()); + result = result && ( + java.lang.Double.doubleToLongBits(getOffsetPercent()) + == java.lang.Double.doubleToLongBits( + other.getOffsetPercent())); + result = result && ( + java.lang.Double.doubleToLongBits(getOffsetMeters()) + == java.lang.Double.doubleToLongBits( + other.getOffsetMeters())); + result = result && getDispensersList() + .equals(other.getDispensersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + OFFSETPERCENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOffsetPercent())); + hash = (37 * hash) + OFFSETMETERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getOffsetMeters())); + if (getDispensersCount() > 0) { + hash = (37 * hash) + DISPENSERS_FIELD_NUMBER; + hash = (53 * hash) + getDispensersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop 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 com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop 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 com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobBrushStop} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobBrushStop) + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobBrushStopOuterClass.internal_static_Tango_PMR_Printing_JobBrushStop_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobBrushStopOuterClass.internal_static_Tango_PMR_Printing_JobBrushStop_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.class, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDispensersFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + index_ = 0; + + offsetPercent_ = 0D; + + offsetMeters_ = 0D; + + if (dispensersBuilder_ == null) { + dispensers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + dispensersBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobBrushStopOuterClass.internal_static_Tango_PMR_Printing_JobBrushStop_descriptor; + } + + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop build() { + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop buildPartial() { + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop result = new com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.index_ = index_; + result.offsetPercent_ = offsetPercent_; + result.offsetMeters_ = offsetMeters_; + if (dispensersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + dispensers_ = java.util.Collections.unmodifiableList(dispensers_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.dispensers_ = dispensers_; + } else { + result.dispensers_ = dispensersBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop) { + return mergeFrom((com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop other) { + if (other == com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.getDefaultInstance()) return this; + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getOffsetPercent() != 0D) { + setOffsetPercent(other.getOffsetPercent()); + } + if (other.getOffsetMeters() != 0D) { + setOffsetMeters(other.getOffsetMeters()); + } + if (dispensersBuilder_ == null) { + if (!other.dispensers_.isEmpty()) { + if (dispensers_.isEmpty()) { + dispensers_ = other.dispensers_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDispensersIsMutable(); + dispensers_.addAll(other.dispensers_); + } + onChanged(); + } + } else { + if (!other.dispensers_.isEmpty()) { + if (dispensersBuilder_.isEmpty()) { + dispensersBuilder_.dispose(); + dispensersBuilder_ = null; + dispensers_ = other.dispensers_; + bitField0_ = (bitField0_ & ~0x00000008); + dispensersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDispensersFieldBuilder() : null; + } else { + dispensersBuilder_.addAllMessages(other.dispensers_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int index_ ; + /** + * int32 Index = 1; + */ + public int getIndex() { + return index_; + } + /** + * int32 Index = 1; + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + * int32 Index = 1; + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private double offsetPercent_ ; + /** + * double OffsetPercent = 2; + */ + public double getOffsetPercent() { + return offsetPercent_; + } + /** + * double OffsetPercent = 2; + */ + public Builder setOffsetPercent(double value) { + + offsetPercent_ = value; + onChanged(); + return this; + } + /** + * double OffsetPercent = 2; + */ + public Builder clearOffsetPercent() { + + offsetPercent_ = 0D; + onChanged(); + return this; + } + + private double offsetMeters_ ; + /** + * double OffsetMeters = 3; + */ + public double getOffsetMeters() { + return offsetMeters_; + } + /** + * double OffsetMeters = 3; + */ + public Builder setOffsetMeters(double value) { + + offsetMeters_ = value; + onChanged(); + return this; + } + /** + * double OffsetMeters = 3; + */ + public Builder clearOffsetMeters() { + + offsetMeters_ = 0D; + onChanged(); + return this; + } + + private java.util.List dispensers_ = + java.util.Collections.emptyList(); + private void ensureDispensersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + dispensers_ = new java.util.ArrayList(dispensers_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder> dispensersBuilder_; + + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public java.util.List getDispensersList() { + if (dispensersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dispensers_); + } else { + return dispensersBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public int getDispensersCount() { + if (dispensersBuilder_ == null) { + return dispensers_.size(); + } else { + return dispensersBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser getDispensers(int index) { + if (dispensersBuilder_ == null) { + return dispensers_.get(index); + } else { + return dispensersBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder setDispensers( + int index, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser value) { + if (dispensersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersIsMutable(); + dispensers_.set(index, value); + onChanged(); + } else { + dispensersBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder setDispensers( + int index, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder builderForValue) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.set(index, builderForValue.build()); + onChanged(); + } else { + dispensersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder addDispensers(com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser value) { + if (dispensersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersIsMutable(); + dispensers_.add(value); + onChanged(); + } else { + dispensersBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder addDispensers( + int index, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser value) { + if (dispensersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDispensersIsMutable(); + dispensers_.add(index, value); + onChanged(); + } else { + dispensersBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder addDispensers( + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder builderForValue) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.add(builderForValue.build()); + onChanged(); + } else { + dispensersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder addDispensers( + int index, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder builderForValue) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.add(index, builderForValue.build()); + onChanged(); + } else { + dispensersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder addAllDispensers( + java.lang.Iterable values) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dispensers_); + onChanged(); + } else { + dispensersBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder clearDispensers() { + if (dispensersBuilder_ == null) { + dispensers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dispensersBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public Builder removeDispensers(int index) { + if (dispensersBuilder_ == null) { + ensureDispensersIsMutable(); + dispensers_.remove(index); + onChanged(); + } else { + dispensersBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder getDispensersBuilder( + int index) { + return getDispensersFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder getDispensersOrBuilder( + int index) { + if (dispensersBuilder_ == null) { + return dispensers_.get(index); } else { + return dispensersBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public java.util.List + getDispensersOrBuilderList() { + if (dispensersBuilder_ != null) { + return dispensersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dispensers_); + } + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder addDispensersBuilder() { + return getDispensersFieldBuilder().addBuilder( + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder addDispensersBuilder( + int index) { + return getDispensersFieldBuilder().addBuilder( + index, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Printing.JobDispenser Dispensers = 4; + */ + public java.util.List + getDispensersBuilderList() { + return getDispensersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder> + getDispensersFieldBuilder() { + if (dispensersBuilder_ == null) { + dispensersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder>( + dispensers_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + dispensers_ = null; + } + return dispensersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobBrushStop) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobBrushStop) + private static final com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop(); + } + + public static com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobBrushStop parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobBrushStop(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobBrushStop_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobBrushStop_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\022JobBrushStop.proto\022\022Tango.PMR.Printing" + + "\032\022JobDispenser.proto\"\200\001\n\014JobBrushStop\022\r\n" + + "\005Index\030\001 \001(\005\022\025\n\rOffsetPercent\030\002 \001(\001\022\024\n\014O" + + "ffsetMeters\030\003 \001(\001\0224\n\nDispensers\030\004 \003(\0132 ." + + "Tango.PMR.Printing.JobDispenserB\036\n\034com.t" + + "wine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.JobDispenserOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobBrushStop_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobBrushStop_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobBrushStop_descriptor, + new java.lang.String[] { "Index", "OffsetPercent", "OffsetMeters", "Dispensers", }); + com.twine.tango.pmr.printing.JobDispenserOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobDispenserOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobDispenserOuterClass.java new file mode 100644 index 000000000..e92b626ad --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobDispenserOuterClass.java @@ -0,0 +1,1098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobDispenser.proto + +package com.twine.tango.pmr.printing; + +public final class JobDispenserOuterClass { + private JobDispenserOuterClass() {} + 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 JobDispenserOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobDispenser) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 Index = 1; + */ + int getIndex(); + + /** + * double Volume = 2; + */ + double getVolume(); + + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + int getDispenserStepDivisionValue(); + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision getDispenserStepDivision(); + + /** + * double NanolitterPerSecond = 4; + */ + double getNanolitterPerSecond(); + + /** + * double NanoliterPerCentimeter = 5; + */ + double getNanoliterPerCentimeter(); + + /** + * double PulsePerSecond = 6; + */ + double getPulsePerSecond(); + + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + int getDispenserLiquidTypeValue(); + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType getDispenserLiquidType(); + + /** + * double LiquidMaxNanoliterPerCentimeter = 8; + */ + double getLiquidMaxNanoliterPerCentimeter(); + + /** + * double NanoliterPerPulse = 9; + */ + double getNanoliterPerPulse(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobDispenser} + */ + public static final class JobDispenser extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobDispenser) + JobDispenserOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobDispenser.newBuilder() to construct. + private JobDispenser(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobDispenser() { + index_ = 0; + volume_ = 0D; + dispenserStepDivision_ = 0; + nanolitterPerSecond_ = 0D; + nanoliterPerCentimeter_ = 0D; + pulsePerSecond_ = 0D; + dispenserLiquidType_ = 0; + liquidMaxNanoliterPerCentimeter_ = 0D; + nanoliterPerPulse_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobDispenser( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + index_ = input.readInt32(); + break; + } + case 17: { + + volume_ = input.readDouble(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + dispenserStepDivision_ = rawValue; + break; + } + case 33: { + + nanolitterPerSecond_ = input.readDouble(); + break; + } + case 41: { + + nanoliterPerCentimeter_ = input.readDouble(); + break; + } + case 49: { + + pulsePerSecond_ = input.readDouble(); + break; + } + case 56: { + int rawValue = input.readEnum(); + + dispenserLiquidType_ = rawValue; + break; + } + case 65: { + + liquidMaxNanoliterPerCentimeter_ = input.readDouble(); + break; + } + case 73: { + + nanoliterPerPulse_ = input.readDouble(); + 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 com.twine.tango.pmr.printing.JobDispenserOuterClass.internal_static_Tango_PMR_Printing_JobDispenser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobDispenserOuterClass.internal_static_Tango_PMR_Printing_JobDispenser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.class, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder.class); + } + + public static final int INDEX_FIELD_NUMBER = 1; + private int index_; + /** + * int32 Index = 1; + */ + public int getIndex() { + return index_; + } + + public static final int VOLUME_FIELD_NUMBER = 2; + private double volume_; + /** + * double Volume = 2; + */ + public double getVolume() { + return volume_; + } + + public static final int DISPENSERSTEPDIVISION_FIELD_NUMBER = 3; + private int dispenserStepDivision_; + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public int getDispenserStepDivisionValue() { + return dispenserStepDivision_; + } + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision getDispenserStepDivision() { + com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision result = com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision.valueOf(dispenserStepDivision_); + return result == null ? com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision.UNRECOGNIZED : result; + } + + public static final int NANOLITTERPERSECOND_FIELD_NUMBER = 4; + private double nanolitterPerSecond_; + /** + * double NanolitterPerSecond = 4; + */ + public double getNanolitterPerSecond() { + return nanolitterPerSecond_; + } + + public static final int NANOLITERPERCENTIMETER_FIELD_NUMBER = 5; + private double nanoliterPerCentimeter_; + /** + * double NanoliterPerCentimeter = 5; + */ + public double getNanoliterPerCentimeter() { + return nanoliterPerCentimeter_; + } + + public static final int PULSEPERSECOND_FIELD_NUMBER = 6; + private double pulsePerSecond_; + /** + * double PulsePerSecond = 6; + */ + public double getPulsePerSecond() { + return pulsePerSecond_; + } + + public static final int DISPENSERLIQUIDTYPE_FIELD_NUMBER = 7; + private int dispenserLiquidType_; + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public int getDispenserLiquidTypeValue() { + return dispenserLiquidType_; + } + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType getDispenserLiquidType() { + com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType result = com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType.valueOf(dispenserLiquidType_); + return result == null ? com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType.UNRECOGNIZED : result; + } + + public static final int LIQUIDMAXNANOLITERPERCENTIMETER_FIELD_NUMBER = 8; + private double liquidMaxNanoliterPerCentimeter_; + /** + * double LiquidMaxNanoliterPerCentimeter = 8; + */ + public double getLiquidMaxNanoliterPerCentimeter() { + return liquidMaxNanoliterPerCentimeter_; + } + + public static final int NANOLITERPERPULSE_FIELD_NUMBER = 9; + private double nanoliterPerPulse_; + /** + * double NanoliterPerPulse = 9; + */ + public double getNanoliterPerPulse() { + return nanoliterPerPulse_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (index_ != 0) { + output.writeInt32(1, index_); + } + if (volume_ != 0D) { + output.writeDouble(2, volume_); + } + if (dispenserStepDivision_ != com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision.Auto.getNumber()) { + output.writeEnum(3, dispenserStepDivision_); + } + if (nanolitterPerSecond_ != 0D) { + output.writeDouble(4, nanolitterPerSecond_); + } + if (nanoliterPerCentimeter_ != 0D) { + output.writeDouble(5, nanoliterPerCentimeter_); + } + if (pulsePerSecond_ != 0D) { + output.writeDouble(6, pulsePerSecond_); + } + if (dispenserLiquidType_ != com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType.Cyan.getNumber()) { + output.writeEnum(7, dispenserLiquidType_); + } + if (liquidMaxNanoliterPerCentimeter_ != 0D) { + output.writeDouble(8, liquidMaxNanoliterPerCentimeter_); + } + if (nanoliterPerPulse_ != 0D) { + output.writeDouble(9, nanoliterPerPulse_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, index_); + } + if (volume_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, volume_); + } + if (dispenserStepDivision_ != com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision.Auto.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, dispenserStepDivision_); + } + if (nanolitterPerSecond_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, nanolitterPerSecond_); + } + if (nanoliterPerCentimeter_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, nanoliterPerCentimeter_); + } + if (pulsePerSecond_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, pulsePerSecond_); + } + if (dispenserLiquidType_ != com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType.Cyan.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, dispenserLiquidType_); + } + if (liquidMaxNanoliterPerCentimeter_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, liquidMaxNanoliterPerCentimeter_); + } + if (nanoliterPerPulse_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, nanoliterPerPulse_); + } + 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 com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser other = (com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser) obj; + + boolean result = true; + result = result && (getIndex() + == other.getIndex()); + result = result && ( + java.lang.Double.doubleToLongBits(getVolume()) + == java.lang.Double.doubleToLongBits( + other.getVolume())); + result = result && dispenserStepDivision_ == other.dispenserStepDivision_; + result = result && ( + java.lang.Double.doubleToLongBits(getNanolitterPerSecond()) + == java.lang.Double.doubleToLongBits( + other.getNanolitterPerSecond())); + result = result && ( + java.lang.Double.doubleToLongBits(getNanoliterPerCentimeter()) + == java.lang.Double.doubleToLongBits( + other.getNanoliterPerCentimeter())); + result = result && ( + java.lang.Double.doubleToLongBits(getPulsePerSecond()) + == java.lang.Double.doubleToLongBits( + other.getPulsePerSecond())); + result = result && dispenserLiquidType_ == other.dispenserLiquidType_; + result = result && ( + java.lang.Double.doubleToLongBits(getLiquidMaxNanoliterPerCentimeter()) + == java.lang.Double.doubleToLongBits( + other.getLiquidMaxNanoliterPerCentimeter())); + result = result && ( + java.lang.Double.doubleToLongBits(getNanoliterPerPulse()) + == java.lang.Double.doubleToLongBits( + other.getNanoliterPerPulse())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVolume())); + hash = (37 * hash) + DISPENSERSTEPDIVISION_FIELD_NUMBER; + hash = (53 * hash) + dispenserStepDivision_; + hash = (37 * hash) + NANOLITTERPERSECOND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNanolitterPerSecond())); + hash = (37 * hash) + NANOLITERPERCENTIMETER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNanoliterPerCentimeter())); + hash = (37 * hash) + PULSEPERSECOND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPulsePerSecond())); + hash = (37 * hash) + DISPENSERLIQUIDTYPE_FIELD_NUMBER; + hash = (53 * hash) + dispenserLiquidType_; + hash = (37 * hash) + LIQUIDMAXNANOLITERPERCENTIMETER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLiquidMaxNanoliterPerCentimeter())); + hash = (37 * hash) + NANOLITERPERPULSE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNanoliterPerPulse())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser 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 com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser 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 com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobDispenser} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobDispenser) + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenserOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobDispenserOuterClass.internal_static_Tango_PMR_Printing_JobDispenser_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobDispenserOuterClass.internal_static_Tango_PMR_Printing_JobDispenser_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.class, com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + index_ = 0; + + volume_ = 0D; + + dispenserStepDivision_ = 0; + + nanolitterPerSecond_ = 0D; + + nanoliterPerCentimeter_ = 0D; + + pulsePerSecond_ = 0D; + + dispenserLiquidType_ = 0; + + liquidMaxNanoliterPerCentimeter_ = 0D; + + nanoliterPerPulse_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobDispenserOuterClass.internal_static_Tango_PMR_Printing_JobDispenser_descriptor; + } + + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser build() { + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser buildPartial() { + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser result = new com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser(this); + result.index_ = index_; + result.volume_ = volume_; + result.dispenserStepDivision_ = dispenserStepDivision_; + result.nanolitterPerSecond_ = nanolitterPerSecond_; + result.nanoliterPerCentimeter_ = nanoliterPerCentimeter_; + result.pulsePerSecond_ = pulsePerSecond_; + result.dispenserLiquidType_ = dispenserLiquidType_; + result.liquidMaxNanoliterPerCentimeter_ = liquidMaxNanoliterPerCentimeter_; + result.nanoliterPerPulse_ = nanoliterPerPulse_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser) { + return mergeFrom((com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser other) { + if (other == com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser.getDefaultInstance()) return this; + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getVolume() != 0D) { + setVolume(other.getVolume()); + } + if (other.dispenserStepDivision_ != 0) { + setDispenserStepDivisionValue(other.getDispenserStepDivisionValue()); + } + if (other.getNanolitterPerSecond() != 0D) { + setNanolitterPerSecond(other.getNanolitterPerSecond()); + } + if (other.getNanoliterPerCentimeter() != 0D) { + setNanoliterPerCentimeter(other.getNanoliterPerCentimeter()); + } + if (other.getPulsePerSecond() != 0D) { + setPulsePerSecond(other.getPulsePerSecond()); + } + if (other.dispenserLiquidType_ != 0) { + setDispenserLiquidTypeValue(other.getDispenserLiquidTypeValue()); + } + if (other.getLiquidMaxNanoliterPerCentimeter() != 0D) { + setLiquidMaxNanoliterPerCentimeter(other.getLiquidMaxNanoliterPerCentimeter()); + } + if (other.getNanoliterPerPulse() != 0D) { + setNanoliterPerPulse(other.getNanoliterPerPulse()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int index_ ; + /** + * int32 Index = 1; + */ + public int getIndex() { + return index_; + } + /** + * int32 Index = 1; + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + * int32 Index = 1; + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private double volume_ ; + /** + * double Volume = 2; + */ + public double getVolume() { + return volume_; + } + /** + * double Volume = 2; + */ + public Builder setVolume(double value) { + + volume_ = value; + onChanged(); + return this; + } + /** + * double Volume = 2; + */ + public Builder clearVolume() { + + volume_ = 0D; + onChanged(); + return this; + } + + private int dispenserStepDivision_ = 0; + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public int getDispenserStepDivisionValue() { + return dispenserStepDivision_; + } + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public Builder setDispenserStepDivisionValue(int value) { + dispenserStepDivision_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision getDispenserStepDivision() { + com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision result = com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision.valueOf(dispenserStepDivision_); + return result == null ? com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public Builder setDispenserStepDivision(com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.DispenserStepDivision value) { + if (value == null) { + throw new NullPointerException(); + } + + dispenserStepDivision_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.DispenserStepDivision DispenserStepDivision = 3; + */ + public Builder clearDispenserStepDivision() { + + dispenserStepDivision_ = 0; + onChanged(); + return this; + } + + private double nanolitterPerSecond_ ; + /** + * double NanolitterPerSecond = 4; + */ + public double getNanolitterPerSecond() { + return nanolitterPerSecond_; + } + /** + * double NanolitterPerSecond = 4; + */ + public Builder setNanolitterPerSecond(double value) { + + nanolitterPerSecond_ = value; + onChanged(); + return this; + } + /** + * double NanolitterPerSecond = 4; + */ + public Builder clearNanolitterPerSecond() { + + nanolitterPerSecond_ = 0D; + onChanged(); + return this; + } + + private double nanoliterPerCentimeter_ ; + /** + * double NanoliterPerCentimeter = 5; + */ + public double getNanoliterPerCentimeter() { + return nanoliterPerCentimeter_; + } + /** + * double NanoliterPerCentimeter = 5; + */ + public Builder setNanoliterPerCentimeter(double value) { + + nanoliterPerCentimeter_ = value; + onChanged(); + return this; + } + /** + * double NanoliterPerCentimeter = 5; + */ + public Builder clearNanoliterPerCentimeter() { + + nanoliterPerCentimeter_ = 0D; + onChanged(); + return this; + } + + private double pulsePerSecond_ ; + /** + * double PulsePerSecond = 6; + */ + public double getPulsePerSecond() { + return pulsePerSecond_; + } + /** + * double PulsePerSecond = 6; + */ + public Builder setPulsePerSecond(double value) { + + pulsePerSecond_ = value; + onChanged(); + return this; + } + /** + * double PulsePerSecond = 6; + */ + public Builder clearPulsePerSecond() { + + pulsePerSecond_ = 0D; + onChanged(); + return this; + } + + private int dispenserLiquidType_ = 0; + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public int getDispenserLiquidTypeValue() { + return dispenserLiquidType_; + } + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public Builder setDispenserLiquidTypeValue(int value) { + dispenserLiquidType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType getDispenserLiquidType() { + com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType result = com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType.valueOf(dispenserLiquidType_); + return result == null ? com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public Builder setDispenserLiquidType(com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.DispenserLiquidType value) { + if (value == null) { + throw new NullPointerException(); + } + + dispenserLiquidType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.DispenserLiquidType DispenserLiquidType = 7; + */ + public Builder clearDispenserLiquidType() { + + dispenserLiquidType_ = 0; + onChanged(); + return this; + } + + private double liquidMaxNanoliterPerCentimeter_ ; + /** + * double LiquidMaxNanoliterPerCentimeter = 8; + */ + public double getLiquidMaxNanoliterPerCentimeter() { + return liquidMaxNanoliterPerCentimeter_; + } + /** + * double LiquidMaxNanoliterPerCentimeter = 8; + */ + public Builder setLiquidMaxNanoliterPerCentimeter(double value) { + + liquidMaxNanoliterPerCentimeter_ = value; + onChanged(); + return this; + } + /** + * double LiquidMaxNanoliterPerCentimeter = 8; + */ + public Builder clearLiquidMaxNanoliterPerCentimeter() { + + liquidMaxNanoliterPerCentimeter_ = 0D; + onChanged(); + return this; + } + + private double nanoliterPerPulse_ ; + /** + * double NanoliterPerPulse = 9; + */ + public double getNanoliterPerPulse() { + return nanoliterPerPulse_; + } + /** + * double NanoliterPerPulse = 9; + */ + public Builder setNanoliterPerPulse(double value) { + + nanoliterPerPulse_ = value; + onChanged(); + return this; + } + /** + * double NanoliterPerPulse = 9; + */ + public Builder clearNanoliterPerPulse() { + + nanoliterPerPulse_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobDispenser) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobDispenser) + private static final com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser(); + } + + public static com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobDispenser parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobDispenser(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobDispenserOuterClass.JobDispenser getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobDispenser_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobDispenser_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\022JobDispenser.proto\022\022Tango.PMR.Printing" + + "\032\033DispenserStepDivision.proto\032\031Dispenser" + + "LiquidType.proto\"\326\002\n\014JobDispenser\022\r\n\005Ind" + + "ex\030\001 \001(\005\022\016\n\006Volume\030\002 \001(\001\022H\n\025DispenserSte" + + "pDivision\030\003 \001(\0162).Tango.PMR.Printing.Dis" + + "penserStepDivision\022\033\n\023NanolitterPerSecon" + + "d\030\004 \001(\001\022\036\n\026NanoliterPerCentimeter\030\005 \001(\001\022" + + "\026\n\016PulsePerSecond\030\006 \001(\001\022D\n\023DispenserLiqu" + + "idType\030\007 \001(\0162\'.Tango.PMR.Printing.Dispen" + + "serLiquidType\022\'\n\037LiquidMaxNanoliterPerCe", + "ntimeter\030\010 \001(\001\022\031\n\021NanoliterPerPulse\030\t \001(" + + "\001B\036\n\034com.twine.tango.pmr.printingb\006proto" + + "3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.getDescriptor(), + com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobDispenser_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobDispenser_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobDispenser_descriptor, + new java.lang.String[] { "Index", "Volume", "DispenserStepDivision", "NanolitterPerSecond", "NanoliterPerCentimeter", "PulsePerSecond", "DispenserLiquidType", "LiquidMaxNanoliterPerCentimeter", "NanoliterPerPulse", }); + com.twine.tango.pmr.printing.DispenserStepDivisionOuterClass.getDescriptor(); + com.twine.tango.pmr.printing.DispenserLiquidTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobRequestOuterClass.java new file mode 100644 index 000000000..23c5b0202 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobRequestOuterClass.java @@ -0,0 +1,638 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobRequest.proto + +package com.twine.tango.pmr.printing; + +public final class JobRequestOuterClass { + private JobRequestOuterClass() {} + 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 JobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + boolean hasJobTicket(); + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket getJobTicket(); + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder getJobTicketOrBuilder(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobRequest} + */ + public static final class JobRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobRequest) + JobRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobRequest.newBuilder() to construct. + private JobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder subBuilder = null; + if (jobTicket_ != null) { + subBuilder = jobTicket_.toBuilder(); + } + jobTicket_ = input.readMessage(com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jobTicket_); + jobTicket_ = subBuilder.buildPartial(); + } + + 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 com.twine.tango.pmr.printing.JobRequestOuterClass.internal_static_Tango_PMR_Printing_JobRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobRequestOuterClass.internal_static_Tango_PMR_Printing_JobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.class, com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.Builder.class); + } + + public static final int JOBTICKET_FIELD_NUMBER = 1; + private com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket jobTicket_; + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public boolean hasJobTicket() { + return jobTicket_ != null; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket getJobTicket() { + return jobTicket_ == null ? com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.getDefaultInstance() : jobTicket_; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder getJobTicketOrBuilder() { + return getJobTicket(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (jobTicket_ != null) { + output.writeMessage(1, getJobTicket()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (jobTicket_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getJobTicket()); + } + 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 com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest other = (com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest) obj; + + boolean result = true; + result = result && (hasJobTicket() == other.hasJobTicket()); + if (hasJobTicket()) { + result = result && getJobTicket() + .equals(other.getJobTicket()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasJobTicket()) { + hash = (37 * hash) + JOBTICKET_FIELD_NUMBER; + hash = (53 * hash) + getJobTicket().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest 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 com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest 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 com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobRequest) + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobRequestOuterClass.internal_static_Tango_PMR_Printing_JobRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobRequestOuterClass.internal_static_Tango_PMR_Printing_JobRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.class, com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (jobTicketBuilder_ == null) { + jobTicket_ = null; + } else { + jobTicket_ = null; + jobTicketBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobRequestOuterClass.internal_static_Tango_PMR_Printing_JobRequest_descriptor; + } + + public com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest build() { + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest buildPartial() { + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest result = new com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest(this); + if (jobTicketBuilder_ == null) { + result.jobTicket_ = jobTicket_; + } else { + result.jobTicket_ = jobTicketBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest) { + return mergeFrom((com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest other) { + if (other == com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest.getDefaultInstance()) return this; + if (other.hasJobTicket()) { + mergeJobTicket(other.getJobTicket()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket jobTicket_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder> jobTicketBuilder_; + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public boolean hasJobTicket() { + return jobTicketBuilder_ != null || jobTicket_ != null; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket getJobTicket() { + if (jobTicketBuilder_ == null) { + return jobTicket_ == null ? com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.getDefaultInstance() : jobTicket_; + } else { + return jobTicketBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public Builder setJobTicket(com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket value) { + if (jobTicketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jobTicket_ = value; + onChanged(); + } else { + jobTicketBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public Builder setJobTicket( + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder builderForValue) { + if (jobTicketBuilder_ == null) { + jobTicket_ = builderForValue.build(); + onChanged(); + } else { + jobTicketBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public Builder mergeJobTicket(com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket value) { + if (jobTicketBuilder_ == null) { + if (jobTicket_ != null) { + jobTicket_ = + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.newBuilder(jobTicket_).mergeFrom(value).buildPartial(); + } else { + jobTicket_ = value; + } + onChanged(); + } else { + jobTicketBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public Builder clearJobTicket() { + if (jobTicketBuilder_ == null) { + jobTicket_ = null; + onChanged(); + } else { + jobTicket_ = null; + jobTicketBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder getJobTicketBuilder() { + + onChanged(); + return getJobTicketFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder getJobTicketOrBuilder() { + if (jobTicketBuilder_ != null) { + return jobTicketBuilder_.getMessageOrBuilder(); + } else { + return jobTicket_ == null ? + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.getDefaultInstance() : jobTicket_; + } + } + /** + * .Tango.PMR.Printing.JobTicket JobTicket = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder> + getJobTicketFieldBuilder() { + if (jobTicketBuilder_ == null) { + jobTicketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder>( + getJobTicket(), + getParentForChildren(), + isClean()); + jobTicket_ = null; + } + return jobTicketBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobRequest) + private static final com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest(); + } + + public static com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobRequestOuterClass.JobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobRequest_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\020JobRequest.proto\022\022Tango.PMR.Printing\032\017" + + "JobTicket.proto\">\n\nJobRequest\0220\n\tJobTick" + + "et\030\001 \001(\0132\035.Tango.PMR.Printing.JobTicketB" + + "\036\n\034com.twine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.JobTicketOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobRequest_descriptor, + new java.lang.String[] { "JobTicket", }); + com.twine.tango.pmr.printing.JobTicketOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobResponseOuterClass.java new file mode 100644 index 000000000..6ae7812a7 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobResponseOuterClass.java @@ -0,0 +1,703 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobResponse.proto + +package com.twine.tango.pmr.printing; + +public final class JobResponseOuterClass { + private JobResponseOuterClass() {} + 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 JobResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + boolean hasStatus(); + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus getStatus(); + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder getStatusOrBuilder(); + + /** + * bool Canceled = 2; + */ + boolean getCanceled(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobResponse} + */ + public static final class JobResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobResponse) + JobResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobResponse.newBuilder() to construct. + private JobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobResponse() { + canceled_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + case 16: { + + canceled_ = input.readBool(); + 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 com.twine.tango.pmr.printing.JobResponseOuterClass.internal_static_Tango_PMR_Printing_JobResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobResponseOuterClass.internal_static_Tango_PMR_Printing_JobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.class, com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus status_; + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public boolean hasStatus() { + return status_ != null; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus getStatus() { + return status_ == null ? com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.getDefaultInstance() : status_; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder getStatusOrBuilder() { + return getStatus(); + } + + public static final int CANCELED_FIELD_NUMBER = 2; + private boolean canceled_; + /** + * bool Canceled = 2; + */ + public boolean getCanceled() { + return canceled_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (status_ != null) { + output.writeMessage(1, getStatus()); + } + if (canceled_ != false) { + output.writeBool(2, canceled_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (canceled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, canceled_); + } + 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 com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse other = (com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse) obj; + + boolean result = true; + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && (getCanceled() + == other.getCanceled()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (37 * hash) + CANCELED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCanceled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse 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 com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse 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 com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobResponse) + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobResponseOuterClass.internal_static_Tango_PMR_Printing_JobResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobResponseOuterClass.internal_static_Tango_PMR_Printing_JobResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.class, com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (statusBuilder_ == null) { + status_ = null; + } else { + status_ = null; + statusBuilder_ = null; + } + canceled_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobResponseOuterClass.internal_static_Tango_PMR_Printing_JobResponse_descriptor; + } + + public com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse build() { + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse buildPartial() { + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse result = new com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse(this); + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.canceled_ = canceled_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse) { + return mergeFrom((com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse other) { + if (other == com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.getCanceled() != false) { + setCanceled(other.getCanceled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder> statusBuilder_; + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public boolean hasStatus() { + return statusBuilder_ != null || status_ != null; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public Builder setStatus(com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public Builder setStatus( + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public Builder mergeStatus(com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus value) { + if (statusBuilder_ == null) { + if (status_ != null) { + status_ = + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + status_ = null; + statusBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder getStatusBuilder() { + + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.getDefaultInstance() : status_; + } + } + /** + * .Tango.PMR.Printing.JobStatus Status = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private boolean canceled_ ; + /** + * bool Canceled = 2; + */ + public boolean getCanceled() { + return canceled_; + } + /** + * bool Canceled = 2; + */ + public Builder setCanceled(boolean value) { + + canceled_ = value; + onChanged(); + return this; + } + /** + * bool Canceled = 2; + */ + public Builder clearCanceled() { + + canceled_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobResponse) + private static final com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse(); + } + + public static com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobResponseOuterClass.JobResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobResponse_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\021JobResponse.proto\022\022Tango.PMR.Printing\032" + + "\017JobStatus.proto\"N\n\013JobResponse\022-\n\006Statu" + + "s\030\001 \001(\0132\035.Tango.PMR.Printing.JobStatus\022\020" + + "\n\010Canceled\030\002 \001(\010B\036\n\034com.twine.tango.pmr." + + "printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.JobStatusOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobResponse_descriptor, + new java.lang.String[] { "Status", "Canceled", }); + com.twine.tango.pmr.printing.JobStatusOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSegmentOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSegmentOuterClass.java new file mode 100644 index 000000000..e2989752a --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSegmentOuterClass.java @@ -0,0 +1,1020 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobSegment.proto + +package com.twine.tango.pmr.printing; + +public final class JobSegmentOuterClass { + private JobSegmentOuterClass() {} + 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 JobSegmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * double Length = 2; + */ + double getLength(); + + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + java.util.List + getBrushStopsList(); + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop getBrushStops(int index); + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + int getBrushStopsCount(); + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + java.util.List + getBrushStopsOrBuilderList(); + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder getBrushStopsOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobSegment} + */ + public static final class JobSegment extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobSegment) + JobSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobSegment.newBuilder() to construct. + private JobSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobSegment() { + name_ = ""; + length_ = 0D; + brushStops_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 17: { + + length_ = input.readDouble(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + brushStops_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + brushStops_.add( + input.readMessage(com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + brushStops_ = java.util.Collections.unmodifiableList(brushStops_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobSegmentOuterClass.internal_static_Tango_PMR_Printing_JobSegment_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobSegmentOuterClass.internal_static_Tango_PMR_Printing_JobSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.class, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string Name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 2; + private double length_; + /** + * double Length = 2; + */ + public double getLength() { + return length_; + } + + public static final int BRUSHSTOPS_FIELD_NUMBER = 3; + private java.util.List brushStops_; + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public java.util.List getBrushStopsList() { + return brushStops_; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public java.util.List + getBrushStopsOrBuilderList() { + return brushStops_; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public int getBrushStopsCount() { + return brushStops_.size(); + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop getBrushStops(int index) { + return brushStops_.get(index); + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder getBrushStopsOrBuilder( + int index) { + return brushStops_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (length_ != 0D) { + output.writeDouble(2, length_); + } + for (int i = 0; i < brushStops_.size(); i++) { + output.writeMessage(3, brushStops_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (length_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, length_); + } + for (int i = 0; i < brushStops_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, brushStops_.get(i)); + } + 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 com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment other = (com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && ( + java.lang.Double.doubleToLongBits(getLength()) + == java.lang.Double.doubleToLongBits( + other.getLength())); + result = result && getBrushStopsList() + .equals(other.getBrushStopsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLength())); + if (getBrushStopsCount() > 0) { + hash = (37 * hash) + BRUSHSTOPS_FIELD_NUMBER; + hash = (53 * hash) + getBrushStopsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment 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 com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment 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 com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobSegment} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobSegment) + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobSegmentOuterClass.internal_static_Tango_PMR_Printing_JobSegment_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobSegmentOuterClass.internal_static_Tango_PMR_Printing_JobSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.class, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBrushStopsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + length_ = 0D; + + if (brushStopsBuilder_ == null) { + brushStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + brushStopsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobSegmentOuterClass.internal_static_Tango_PMR_Printing_JobSegment_descriptor; + } + + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment build() { + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment buildPartial() { + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment result = new com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.length_ = length_; + if (brushStopsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + brushStops_ = java.util.Collections.unmodifiableList(brushStops_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.brushStops_ = brushStops_; + } else { + result.brushStops_ = brushStopsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment) { + return mergeFrom((com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment other) { + if (other == com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getLength() != 0D) { + setLength(other.getLength()); + } + if (brushStopsBuilder_ == null) { + if (!other.brushStops_.isEmpty()) { + if (brushStops_.isEmpty()) { + brushStops_ = other.brushStops_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureBrushStopsIsMutable(); + brushStops_.addAll(other.brushStops_); + } + onChanged(); + } + } else { + if (!other.brushStops_.isEmpty()) { + if (brushStopsBuilder_.isEmpty()) { + brushStopsBuilder_.dispose(); + brushStopsBuilder_ = null; + brushStops_ = other.brushStops_; + bitField0_ = (bitField0_ & ~0x00000004); + brushStopsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBrushStopsFieldBuilder() : null; + } else { + brushStopsBuilder_.addAllMessages(other.brushStops_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private double length_ ; + /** + * double Length = 2; + */ + public double getLength() { + return length_; + } + /** + * double Length = 2; + */ + public Builder setLength(double value) { + + length_ = value; + onChanged(); + return this; + } + /** + * double Length = 2; + */ + public Builder clearLength() { + + length_ = 0D; + onChanged(); + return this; + } + + private java.util.List brushStops_ = + java.util.Collections.emptyList(); + private void ensureBrushStopsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + brushStops_ = new java.util.ArrayList(brushStops_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder> brushStopsBuilder_; + + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public java.util.List getBrushStopsList() { + if (brushStopsBuilder_ == null) { + return java.util.Collections.unmodifiableList(brushStops_); + } else { + return brushStopsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public int getBrushStopsCount() { + if (brushStopsBuilder_ == null) { + return brushStops_.size(); + } else { + return brushStopsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop getBrushStops(int index) { + if (brushStopsBuilder_ == null) { + return brushStops_.get(index); + } else { + return brushStopsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder setBrushStops( + int index, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop value) { + if (brushStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrushStopsIsMutable(); + brushStops_.set(index, value); + onChanged(); + } else { + brushStopsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder setBrushStops( + int index, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder builderForValue) { + if (brushStopsBuilder_ == null) { + ensureBrushStopsIsMutable(); + brushStops_.set(index, builderForValue.build()); + onChanged(); + } else { + brushStopsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder addBrushStops(com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop value) { + if (brushStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrushStopsIsMutable(); + brushStops_.add(value); + onChanged(); + } else { + brushStopsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder addBrushStops( + int index, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop value) { + if (brushStopsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBrushStopsIsMutable(); + brushStops_.add(index, value); + onChanged(); + } else { + brushStopsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder addBrushStops( + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder builderForValue) { + if (brushStopsBuilder_ == null) { + ensureBrushStopsIsMutable(); + brushStops_.add(builderForValue.build()); + onChanged(); + } else { + brushStopsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder addBrushStops( + int index, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder builderForValue) { + if (brushStopsBuilder_ == null) { + ensureBrushStopsIsMutable(); + brushStops_.add(index, builderForValue.build()); + onChanged(); + } else { + brushStopsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder addAllBrushStops( + java.lang.Iterable values) { + if (brushStopsBuilder_ == null) { + ensureBrushStopsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, brushStops_); + onChanged(); + } else { + brushStopsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder clearBrushStops() { + if (brushStopsBuilder_ == null) { + brushStops_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + brushStopsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public Builder removeBrushStops(int index) { + if (brushStopsBuilder_ == null) { + ensureBrushStopsIsMutable(); + brushStops_.remove(index); + onChanged(); + } else { + brushStopsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder getBrushStopsBuilder( + int index) { + return getBrushStopsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder getBrushStopsOrBuilder( + int index) { + if (brushStopsBuilder_ == null) { + return brushStops_.get(index); } else { + return brushStopsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public java.util.List + getBrushStopsOrBuilderList() { + if (brushStopsBuilder_ != null) { + return brushStopsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(brushStops_); + } + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder addBrushStopsBuilder() { + return getBrushStopsFieldBuilder().addBuilder( + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder addBrushStopsBuilder( + int index) { + return getBrushStopsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Printing.JobBrushStop BrushStops = 3; + */ + public java.util.List + getBrushStopsBuilderList() { + return getBrushStopsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder> + getBrushStopsFieldBuilder() { + if (brushStopsBuilder_ == null) { + brushStopsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStop.Builder, com.twine.tango.pmr.printing.JobBrushStopOuterClass.JobBrushStopOrBuilder>( + brushStops_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + brushStops_ = null; + } + return brushStopsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobSegment) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobSegment) + private static final com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment(); + } + + public static com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobSegment(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobSegment_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobSegment_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\020JobSegment.proto\022\022Tango.PMR.Printing\032\022" + + "JobBrushStop.proto\"`\n\nJobSegment\022\014\n\004Name" + + "\030\001 \001(\t\022\016\n\006Length\030\002 \001(\001\0224\n\nBrushStops\030\003 \003" + + "(\0132 .Tango.PMR.Printing.JobBrushStopB\036\n\034" + + "com.twine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.JobBrushStopOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobSegment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobSegment_descriptor, + new java.lang.String[] { "Name", "Length", "BrushStops", }); + com.twine.tango.pmr.printing.JobBrushStopOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolOuterClass.java new file mode 100644 index 000000000..59b88e4f1 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolOuterClass.java @@ -0,0 +1,927 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobSpool.proto + +package com.twine.tango.pmr.printing; + +public final class JobSpoolOuterClass { + private JobSpoolOuterClass() {} + 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 JobSpoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobSpool) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + int getJobSpoolTypeValue(); + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType getJobSpoolType(); + + /** + * double Length = 2; + */ + double getLength(); + + /** + * double Weight = 3; + */ + double getWeight(); + + /** + * double Diameter = 4; + */ + double getDiameter(); + + /** + * int32 StartOffsetPulses = 5; + */ + int getStartOffsetPulses(); + + /** + * int32 BackingRate = 6; + */ + int getBackingRate(); + + /** + * int32 SegmentOffsetPulses = 7; + */ + int getSegmentOffsetPulses(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobSpool} + */ + public static final class JobSpool extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobSpool) + JobSpoolOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobSpool.newBuilder() to construct. + private JobSpool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobSpool() { + jobSpoolType_ = 0; + length_ = 0D; + weight_ = 0D; + diameter_ = 0D; + startOffsetPulses_ = 0; + backingRate_ = 0; + segmentOffsetPulses_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobSpool( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + int rawValue = input.readEnum(); + + jobSpoolType_ = rawValue; + break; + } + case 17: { + + length_ = input.readDouble(); + break; + } + case 25: { + + weight_ = input.readDouble(); + break; + } + case 33: { + + diameter_ = input.readDouble(); + break; + } + case 40: { + + startOffsetPulses_ = input.readInt32(); + break; + } + case 48: { + + backingRate_ = input.readInt32(); + break; + } + case 56: { + + segmentOffsetPulses_ = input.readInt32(); + 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 com.twine.tango.pmr.printing.JobSpoolOuterClass.internal_static_Tango_PMR_Printing_JobSpool_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobSpoolOuterClass.internal_static_Tango_PMR_Printing_JobSpool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.class, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder.class); + } + + public static final int JOBSPOOLTYPE_FIELD_NUMBER = 1; + private int jobSpoolType_; + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public int getJobSpoolTypeValue() { + return jobSpoolType_; + } + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType getJobSpoolType() { + com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType result = com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType.valueOf(jobSpoolType_); + return result == null ? com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType.UNRECOGNIZED : result; + } + + public static final int LENGTH_FIELD_NUMBER = 2; + private double length_; + /** + * double Length = 2; + */ + public double getLength() { + return length_; + } + + public static final int WEIGHT_FIELD_NUMBER = 3; + private double weight_; + /** + * double Weight = 3; + */ + public double getWeight() { + return weight_; + } + + public static final int DIAMETER_FIELD_NUMBER = 4; + private double diameter_; + /** + * double Diameter = 4; + */ + public double getDiameter() { + return diameter_; + } + + public static final int STARTOFFSETPULSES_FIELD_NUMBER = 5; + private int startOffsetPulses_; + /** + * int32 StartOffsetPulses = 5; + */ + public int getStartOffsetPulses() { + return startOffsetPulses_; + } + + public static final int BACKINGRATE_FIELD_NUMBER = 6; + private int backingRate_; + /** + * int32 BackingRate = 6; + */ + public int getBackingRate() { + return backingRate_; + } + + public static final int SEGMENTOFFSETPULSES_FIELD_NUMBER = 7; + private int segmentOffsetPulses_; + /** + * int32 SegmentOffsetPulses = 7; + */ + public int getSegmentOffsetPulses() { + return segmentOffsetPulses_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (jobSpoolType_ != com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType.StandardSpool.getNumber()) { + output.writeEnum(1, jobSpoolType_); + } + if (length_ != 0D) { + output.writeDouble(2, length_); + } + if (weight_ != 0D) { + output.writeDouble(3, weight_); + } + if (diameter_ != 0D) { + output.writeDouble(4, diameter_); + } + if (startOffsetPulses_ != 0) { + output.writeInt32(5, startOffsetPulses_); + } + if (backingRate_ != 0) { + output.writeInt32(6, backingRate_); + } + if (segmentOffsetPulses_ != 0) { + output.writeInt32(7, segmentOffsetPulses_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (jobSpoolType_ != com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType.StandardSpool.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, jobSpoolType_); + } + if (length_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, length_); + } + if (weight_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, weight_); + } + if (diameter_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, diameter_); + } + if (startOffsetPulses_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, startOffsetPulses_); + } + if (backingRate_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, backingRate_); + } + if (segmentOffsetPulses_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, segmentOffsetPulses_); + } + 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 com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool other = (com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool) obj; + + boolean result = true; + result = result && jobSpoolType_ == other.jobSpoolType_; + result = result && ( + java.lang.Double.doubleToLongBits(getLength()) + == java.lang.Double.doubleToLongBits( + other.getLength())); + result = result && ( + java.lang.Double.doubleToLongBits(getWeight()) + == java.lang.Double.doubleToLongBits( + other.getWeight())); + result = result && ( + java.lang.Double.doubleToLongBits(getDiameter()) + == java.lang.Double.doubleToLongBits( + other.getDiameter())); + result = result && (getStartOffsetPulses() + == other.getStartOffsetPulses()); + result = result && (getBackingRate() + == other.getBackingRate()); + result = result && (getSegmentOffsetPulses() + == other.getSegmentOffsetPulses()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + JOBSPOOLTYPE_FIELD_NUMBER; + hash = (53 * hash) + jobSpoolType_; + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLength())); + hash = (37 * hash) + WEIGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getWeight())); + hash = (37 * hash) + DIAMETER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDiameter())); + hash = (37 * hash) + STARTOFFSETPULSES_FIELD_NUMBER; + hash = (53 * hash) + getStartOffsetPulses(); + hash = (37 * hash) + BACKINGRATE_FIELD_NUMBER; + hash = (53 * hash) + getBackingRate(); + hash = (37 * hash) + SEGMENTOFFSETPULSES_FIELD_NUMBER; + hash = (53 * hash) + getSegmentOffsetPulses(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool 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 com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool 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 com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobSpool} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobSpool) + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobSpoolOuterClass.internal_static_Tango_PMR_Printing_JobSpool_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobSpoolOuterClass.internal_static_Tango_PMR_Printing_JobSpool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.class, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + jobSpoolType_ = 0; + + length_ = 0D; + + weight_ = 0D; + + diameter_ = 0D; + + startOffsetPulses_ = 0; + + backingRate_ = 0; + + segmentOffsetPulses_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobSpoolOuterClass.internal_static_Tango_PMR_Printing_JobSpool_descriptor; + } + + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool build() { + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool buildPartial() { + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool result = new com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool(this); + result.jobSpoolType_ = jobSpoolType_; + result.length_ = length_; + result.weight_ = weight_; + result.diameter_ = diameter_; + result.startOffsetPulses_ = startOffsetPulses_; + result.backingRate_ = backingRate_; + result.segmentOffsetPulses_ = segmentOffsetPulses_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool) { + return mergeFrom((com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool other) { + if (other == com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.getDefaultInstance()) return this; + if (other.jobSpoolType_ != 0) { + setJobSpoolTypeValue(other.getJobSpoolTypeValue()); + } + if (other.getLength() != 0D) { + setLength(other.getLength()); + } + if (other.getWeight() != 0D) { + setWeight(other.getWeight()); + } + if (other.getDiameter() != 0D) { + setDiameter(other.getDiameter()); + } + if (other.getStartOffsetPulses() != 0) { + setStartOffsetPulses(other.getStartOffsetPulses()); + } + if (other.getBackingRate() != 0) { + setBackingRate(other.getBackingRate()); + } + if (other.getSegmentOffsetPulses() != 0) { + setSegmentOffsetPulses(other.getSegmentOffsetPulses()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int jobSpoolType_ = 0; + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public int getJobSpoolTypeValue() { + return jobSpoolType_; + } + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public Builder setJobSpoolTypeValue(int value) { + jobSpoolType_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType getJobSpoolType() { + com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType result = com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType.valueOf(jobSpoolType_); + return result == null ? com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public Builder setJobSpoolType(com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.JobSpoolType value) { + if (value == null) { + throw new NullPointerException(); + } + + jobSpoolType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.JobSpoolType JobSpoolType = 1; + */ + public Builder clearJobSpoolType() { + + jobSpoolType_ = 0; + onChanged(); + return this; + } + + private double length_ ; + /** + * double Length = 2; + */ + public double getLength() { + return length_; + } + /** + * double Length = 2; + */ + public Builder setLength(double value) { + + length_ = value; + onChanged(); + return this; + } + /** + * double Length = 2; + */ + public Builder clearLength() { + + length_ = 0D; + onChanged(); + return this; + } + + private double weight_ ; + /** + * double Weight = 3; + */ + public double getWeight() { + return weight_; + } + /** + * double Weight = 3; + */ + public Builder setWeight(double value) { + + weight_ = value; + onChanged(); + return this; + } + /** + * double Weight = 3; + */ + public Builder clearWeight() { + + weight_ = 0D; + onChanged(); + return this; + } + + private double diameter_ ; + /** + * double Diameter = 4; + */ + public double getDiameter() { + return diameter_; + } + /** + * double Diameter = 4; + */ + public Builder setDiameter(double value) { + + diameter_ = value; + onChanged(); + return this; + } + /** + * double Diameter = 4; + */ + public Builder clearDiameter() { + + diameter_ = 0D; + onChanged(); + return this; + } + + private int startOffsetPulses_ ; + /** + * int32 StartOffsetPulses = 5; + */ + public int getStartOffsetPulses() { + return startOffsetPulses_; + } + /** + * int32 StartOffsetPulses = 5; + */ + public Builder setStartOffsetPulses(int value) { + + startOffsetPulses_ = value; + onChanged(); + return this; + } + /** + * int32 StartOffsetPulses = 5; + */ + public Builder clearStartOffsetPulses() { + + startOffsetPulses_ = 0; + onChanged(); + return this; + } + + private int backingRate_ ; + /** + * int32 BackingRate = 6; + */ + public int getBackingRate() { + return backingRate_; + } + /** + * int32 BackingRate = 6; + */ + public Builder setBackingRate(int value) { + + backingRate_ = value; + onChanged(); + return this; + } + /** + * int32 BackingRate = 6; + */ + public Builder clearBackingRate() { + + backingRate_ = 0; + onChanged(); + return this; + } + + private int segmentOffsetPulses_ ; + /** + * int32 SegmentOffsetPulses = 7; + */ + public int getSegmentOffsetPulses() { + return segmentOffsetPulses_; + } + /** + * int32 SegmentOffsetPulses = 7; + */ + public Builder setSegmentOffsetPulses(int value) { + + segmentOffsetPulses_ = value; + onChanged(); + return this; + } + /** + * int32 SegmentOffsetPulses = 7; + */ + public Builder clearSegmentOffsetPulses() { + + segmentOffsetPulses_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobSpool) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobSpool) + private static final com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool(); + } + + public static com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobSpool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobSpool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobSpool_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobSpool_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\016JobSpool.proto\022\022Tango.PMR.Printing\032\022Jo" + + "bSpoolType.proto\"\301\001\n\010JobSpool\0226\n\014JobSpoo" + + "lType\030\001 \001(\0162 .Tango.PMR.Printing.JobSpoo" + + "lType\022\016\n\006Length\030\002 \001(\001\022\016\n\006Weight\030\003 \001(\001\022\020\n" + + "\010Diameter\030\004 \001(\001\022\031\n\021StartOffsetPulses\030\005 \001" + + "(\005\022\023\n\013BackingRate\030\006 \001(\005\022\033\n\023SegmentOffset" + + "Pulses\030\007 \001(\005B\036\n\034com.twine.tango.pmr.prin" + + "tingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobSpool_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobSpool_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobSpool_descriptor, + new java.lang.String[] { "JobSpoolType", "Length", "Weight", "Diameter", "StartOffsetPulses", "BackingRate", "SegmentOffsetPulses", }); + com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolTypeOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolTypeOuterClass.java new file mode 100644 index 000000000..adef669eb --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobSpoolTypeOuterClass.java @@ -0,0 +1,134 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobSpoolType.proto + +package com.twine.tango.pmr.printing; + +public final class JobSpoolTypeOuterClass { + private JobSpoolTypeOuterClass() {} + 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 Tango.PMR.Printing.JobSpoolType} + */ + public enum JobSpoolType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * StandardSpool = 0; + */ + StandardSpool(0), + UNRECOGNIZED(-1), + ; + + /** + * StandardSpool = 0; + */ + public static final int StandardSpool_VALUE = 0; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JobSpoolType valueOf(int value) { + return forNumber(value); + } + + public static JobSpoolType forNumber(int value) { + switch (value) { + case 0: return StandardSpool; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + JobSpoolType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobSpoolType findValueByNumber(int number) { + return JobSpoolType.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 com.twine.tango.pmr.printing.JobSpoolTypeOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final JobSpoolType[] VALUES = values(); + + public static JobSpoolType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobSpoolType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Printing.JobSpoolType) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\022JobSpoolType.proto\022\022Tango.PMR.Printing" + + "*!\n\014JobSpoolType\022\021\n\rStandardSpool\020\000B\036\n\034c" + + "om.twine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobStatusOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobStatusOuterClass.java new file mode 100644 index 000000000..0440be357 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobStatusOuterClass.java @@ -0,0 +1,708 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobStatus.proto + +package com.twine.tango.pmr.printing; + +public final class JobStatusOuterClass { + private JobStatusOuterClass() {} + 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 JobStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * string Message = 1; + */ + java.lang.String getMessage(); + /** + * string Message = 1; + */ + com.google.protobuf.ByteString + getMessageBytes(); + + /** + * double Progress = 2; + */ + double getProgress(); + + /** + * int32 CurrentSegmentIndex = 3; + */ + int getCurrentSegmentIndex(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobStatus} + */ + public static final class JobStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobStatus) + JobStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobStatus.newBuilder() to construct. + private JobStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobStatus() { + message_ = ""; + progress_ = 0D; + currentSegmentIndex_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + case 17: { + + progress_ = input.readDouble(); + break; + } + case 24: { + + currentSegmentIndex_ = input.readInt32(); + 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 com.twine.tango.pmr.printing.JobStatusOuterClass.internal_static_Tango_PMR_Printing_JobStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobStatusOuterClass.internal_static_Tango_PMR_Printing_JobStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.class, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + private volatile java.lang.Object message_; + /** + * string Message = 1; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } + } + /** + * string Message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 2; + private double progress_; + /** + * double Progress = 2; + */ + public double getProgress() { + return progress_; + } + + public static final int CURRENTSEGMENTINDEX_FIELD_NUMBER = 3; + private int currentSegmentIndex_; + /** + * int32 CurrentSegmentIndex = 3; + */ + public int getCurrentSegmentIndex() { + return currentSegmentIndex_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); + } + if (progress_ != 0D) { + output.writeDouble(2, progress_); + } + if (currentSegmentIndex_ != 0) { + output.writeInt32(3, currentSegmentIndex_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); + } + if (progress_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, progress_); + } + if (currentSegmentIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, currentSegmentIndex_); + } + 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 com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus other = (com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus) obj; + + boolean result = true; + result = result && getMessage() + .equals(other.getMessage()); + result = result && ( + java.lang.Double.doubleToLongBits(getProgress()) + == java.lang.Double.doubleToLongBits( + other.getProgress())); + result = result && (getCurrentSegmentIndex() + == other.getCurrentSegmentIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getProgress())); + hash = (37 * hash) + CURRENTSEGMENTINDEX_FIELD_NUMBER; + hash = (53 * hash) + getCurrentSegmentIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus 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 com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus 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 com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobStatus) + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobStatusOuterClass.internal_static_Tango_PMR_Printing_JobStatus_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobStatusOuterClass.internal_static_Tango_PMR_Printing_JobStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.class, com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + message_ = ""; + + progress_ = 0D; + + currentSegmentIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobStatusOuterClass.internal_static_Tango_PMR_Printing_JobStatus_descriptor; + } + + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus build() { + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus buildPartial() { + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus result = new com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus(this); + result.message_ = message_; + result.progress_ = progress_; + result.currentSegmentIndex_ = currentSegmentIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus) { + return mergeFrom((com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus other) { + if (other == com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.getProgress() != 0D) { + setProgress(other.getProgress()); + } + if (other.getCurrentSegmentIndex() != 0) { + setCurrentSegmentIndex(other.getCurrentSegmentIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object message_ = ""; + /** + * string Message = 1; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Message = 1; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Message = 1; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + message_ = value; + onChanged(); + return this; + } + /** + * string Message = 1; + */ + public Builder clearMessage() { + + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + * string Message = 1; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + private double progress_ ; + /** + * double Progress = 2; + */ + public double getProgress() { + return progress_; + } + /** + * double Progress = 2; + */ + public Builder setProgress(double value) { + + progress_ = value; + onChanged(); + return this; + } + /** + * double Progress = 2; + */ + public Builder clearProgress() { + + progress_ = 0D; + onChanged(); + return this; + } + + private int currentSegmentIndex_ ; + /** + * int32 CurrentSegmentIndex = 3; + */ + public int getCurrentSegmentIndex() { + return currentSegmentIndex_; + } + /** + * int32 CurrentSegmentIndex = 3; + */ + public Builder setCurrentSegmentIndex(int value) { + + currentSegmentIndex_ = value; + onChanged(); + return this; + } + /** + * int32 CurrentSegmentIndex = 3; + */ + public Builder clearCurrentSegmentIndex() { + + currentSegmentIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobStatus) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobStatus) + private static final com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus(); + } + + public static com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobStatusOuterClass.JobStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobStatus_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\017JobStatus.proto\022\022Tango.PMR.Printing\"K\n" + + "\tJobStatus\022\017\n\007Message\030\001 \001(\t\022\020\n\010Progress\030" + + "\002 \001(\001\022\033\n\023CurrentSegmentIndex\030\003 \001(\005B\036\n\034co" + + "m.twine.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Printing_JobStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobStatus_descriptor, + new java.lang.String[] { "Message", "Progress", "CurrentSegmentIndex", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobTicketOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobTicketOuterClass.java new file mode 100644 index 000000000..acd753ea0 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobTicketOuterClass.java @@ -0,0 +1,1644 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobTicket.proto + +package com.twine.tango.pmr.printing; + +public final class JobTicketOuterClass { + private JobTicketOuterClass() {} + 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 JobTicketOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.JobTicket) + com.google.protobuf.MessageOrBuilder { + + /** + * string Name = 1; + */ + java.lang.String getName(); + /** + * string Name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * bool EnableInterSegment = 2; + */ + boolean getEnableInterSegment(); + + /** + * double InterSegmentLength = 3; + */ + double getInterSegmentLength(); + + /** + * double Length = 4; + */ + double getLength(); + + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + boolean hasProcessParameters(); + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getProcessParameters(); + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder getProcessParametersOrBuilder(); + + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + int getWindingMethodValue(); + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod getWindingMethod(); + + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + boolean hasSpool(); + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool getSpool(); + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder getSpoolOrBuilder(); + + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + java.util.List + getSegmentsList(); + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment getSegments(int index); + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + int getSegmentsCount(); + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder getSegmentsOrBuilder( + int index); + } + /** + * Protobuf type {@code Tango.PMR.Printing.JobTicket} + */ + public static final class JobTicket extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.JobTicket) + JobTicketOrBuilder { + private static final long serialVersionUID = 0L; + // Use JobTicket.newBuilder() to construct. + private JobTicket(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private JobTicket() { + name_ = ""; + enableInterSegment_ = false; + interSegmentLength_ = 0D; + length_ = 0D; + windingMethod_ = 0; + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JobTicket( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + + enableInterSegment_ = input.readBool(); + break; + } + case 25: { + + interSegmentLength_ = input.readDouble(); + break; + } + case 33: { + + length_ = input.readDouble(); + break; + } + case 42: { + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder subBuilder = null; + if (processParameters_ != null) { + subBuilder = processParameters_.toBuilder(); + } + processParameters_ = input.readMessage(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(processParameters_); + processParameters_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + int rawValue = input.readEnum(); + + windingMethod_ = rawValue; + break; + } + case 58: { + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder subBuilder = null; + if (spool_ != null) { + subBuilder = spool_.toBuilder(); + } + spool_ = input.readMessage(com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spool_); + spool_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + segments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + segments_.add( + input.readMessage(com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobTicketOuterClass.internal_static_Tango_PMR_Printing_JobTicket_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobTicketOuterClass.internal_static_Tango_PMR_Printing_JobTicket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.class, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string Name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string Name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLEINTERSEGMENT_FIELD_NUMBER = 2; + private boolean enableInterSegment_; + /** + * bool EnableInterSegment = 2; + */ + public boolean getEnableInterSegment() { + return enableInterSegment_; + } + + public static final int INTERSEGMENTLENGTH_FIELD_NUMBER = 3; + private double interSegmentLength_; + /** + * double InterSegmentLength = 3; + */ + public double getInterSegmentLength() { + return interSegmentLength_; + } + + public static final int LENGTH_FIELD_NUMBER = 4; + private double length_; + /** + * double Length = 4; + */ + public double getLength() { + return length_; + } + + public static final int PROCESSPARAMETERS_FIELD_NUMBER = 5; + private com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters processParameters_; + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public boolean hasProcessParameters() { + return processParameters_ != null; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getProcessParameters() { + return processParameters_ == null ? com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance() : processParameters_; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder getProcessParametersOrBuilder() { + return getProcessParameters(); + } + + public static final int WINDINGMETHOD_FIELD_NUMBER = 6; + private int windingMethod_; + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public int getWindingMethodValue() { + return windingMethod_; + } + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod getWindingMethod() { + com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod result = com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod.valueOf(windingMethod_); + return result == null ? com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod.UNRECOGNIZED : result; + } + + public static final int SPOOL_FIELD_NUMBER = 7; + private com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool spool_; + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public boolean hasSpool() { + return spool_ != null; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool getSpool() { + return spool_ == null ? com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.getDefaultInstance() : spool_; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder getSpoolOrBuilder() { + return getSpool(); + } + + public static final int SEGMENTS_FIELD_NUMBER = 8; + private java.util.List segments_; + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public java.util.List getSegmentsList() { + return segments_; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public int getSegmentsCount() { + return segments_.size(); + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment getSegments(int index) { + return segments_.get(index); + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder getSegmentsOrBuilder( + int index) { + return segments_.get(index); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (enableInterSegment_ != false) { + output.writeBool(2, enableInterSegment_); + } + if (interSegmentLength_ != 0D) { + output.writeDouble(3, interSegmentLength_); + } + if (length_ != 0D) { + output.writeDouble(4, length_); + } + if (processParameters_ != null) { + output.writeMessage(5, getProcessParameters()); + } + if (windingMethod_ != com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod.Embroidery.getNumber()) { + output.writeEnum(6, windingMethod_); + } + if (spool_ != null) { + output.writeMessage(7, getSpool()); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(8, segments_.get(i)); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (enableInterSegment_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableInterSegment_); + } + if (interSegmentLength_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, interSegmentLength_); + } + if (length_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, length_); + } + if (processParameters_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getProcessParameters()); + } + if (windingMethod_ != com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod.Embroidery.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, windingMethod_); + } + if (spool_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getSpool()); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, segments_.get(i)); + } + 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 com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket other = (com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket) obj; + + boolean result = true; + result = result && getName() + .equals(other.getName()); + result = result && (getEnableInterSegment() + == other.getEnableInterSegment()); + result = result && ( + java.lang.Double.doubleToLongBits(getInterSegmentLength()) + == java.lang.Double.doubleToLongBits( + other.getInterSegmentLength())); + result = result && ( + java.lang.Double.doubleToLongBits(getLength()) + == java.lang.Double.doubleToLongBits( + other.getLength())); + result = result && (hasProcessParameters() == other.hasProcessParameters()); + if (hasProcessParameters()) { + result = result && getProcessParameters() + .equals(other.getProcessParameters()); + } + result = result && windingMethod_ == other.windingMethod_; + result = result && (hasSpool() == other.hasSpool()); + if (hasSpool()) { + result = result && getSpool() + .equals(other.getSpool()); + } + result = result && getSegmentsList() + .equals(other.getSegmentsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ENABLEINTERSEGMENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableInterSegment()); + hash = (37 * hash) + INTERSEGMENTLENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getInterSegmentLength())); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getLength())); + if (hasProcessParameters()) { + hash = (37 * hash) + PROCESSPARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getProcessParameters().hashCode(); + } + hash = (37 * hash) + WINDINGMETHOD_FIELD_NUMBER; + hash = (53 * hash) + windingMethod_; + if (hasSpool()) { + hash = (37 * hash) + SPOOL_FIELD_NUMBER; + hash = (53 * hash) + getSpool().hashCode(); + } + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket 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 com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket 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 com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.JobTicket} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.JobTicket) + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicketOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.JobTicketOuterClass.internal_static_Tango_PMR_Printing_JobTicket_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.JobTicketOuterClass.internal_static_Tango_PMR_Printing_JobTicket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.class, com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSegmentsFieldBuilder(); + } + } + public Builder clear() { + super.clear(); + name_ = ""; + + enableInterSegment_ = false; + + interSegmentLength_ = 0D; + + length_ = 0D; + + if (processParametersBuilder_ == null) { + processParameters_ = null; + } else { + processParameters_ = null; + processParametersBuilder_ = null; + } + windingMethod_ = 0; + + if (spoolBuilder_ == null) { + spool_ = null; + } else { + spool_ = null; + spoolBuilder_ = null; + } + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + segmentsBuilder_.clear(); + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.JobTicketOuterClass.internal_static_Tango_PMR_Printing_JobTicket_descriptor; + } + + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket build() { + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket buildPartial() { + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket result = new com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.enableInterSegment_ = enableInterSegment_; + result.interSegmentLength_ = interSegmentLength_; + result.length_ = length_; + if (processParametersBuilder_ == null) { + result.processParameters_ = processParameters_; + } else { + result.processParameters_ = processParametersBuilder_.build(); + } + result.windingMethod_ = windingMethod_; + if (spoolBuilder_ == null) { + result.spool_ = spool_; + } else { + result.spool_ = spoolBuilder_.build(); + } + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket) { + return mergeFrom((com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket other) { + if (other == com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getEnableInterSegment() != false) { + setEnableInterSegment(other.getEnableInterSegment()); + } + if (other.getInterSegmentLength() != 0D) { + setInterSegmentLength(other.getInterSegmentLength()); + } + if (other.getLength() != 0D) { + setLength(other.getLength()); + } + if (other.hasProcessParameters()) { + mergeProcessParameters(other.getProcessParameters()); + } + if (other.windingMethod_ != 0) { + setWindingMethodValue(other.getWindingMethodValue()); + } + if (other.hasSpool()) { + mergeSpool(other.getSpool()); + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000080); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSegmentsFieldBuilder() : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string Name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string Name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string Name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string Name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private boolean enableInterSegment_ ; + /** + * bool EnableInterSegment = 2; + */ + public boolean getEnableInterSegment() { + return enableInterSegment_; + } + /** + * bool EnableInterSegment = 2; + */ + public Builder setEnableInterSegment(boolean value) { + + enableInterSegment_ = value; + onChanged(); + return this; + } + /** + * bool EnableInterSegment = 2; + */ + public Builder clearEnableInterSegment() { + + enableInterSegment_ = false; + onChanged(); + return this; + } + + private double interSegmentLength_ ; + /** + * double InterSegmentLength = 3; + */ + public double getInterSegmentLength() { + return interSegmentLength_; + } + /** + * double InterSegmentLength = 3; + */ + public Builder setInterSegmentLength(double value) { + + interSegmentLength_ = value; + onChanged(); + return this; + } + /** + * double InterSegmentLength = 3; + */ + public Builder clearInterSegmentLength() { + + interSegmentLength_ = 0D; + onChanged(); + return this; + } + + private double length_ ; + /** + * double Length = 4; + */ + public double getLength() { + return length_; + } + /** + * double Length = 4; + */ + public Builder setLength(double value) { + + length_ = value; + onChanged(); + return this; + } + /** + * double Length = 4; + */ + public Builder clearLength() { + + length_ = 0D; + onChanged(); + return this; + } + + private com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters processParameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder> processParametersBuilder_; + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public boolean hasProcessParameters() { + return processParametersBuilder_ != null || processParameters_ != null; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getProcessParameters() { + if (processParametersBuilder_ == null) { + return processParameters_ == null ? com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance() : processParameters_; + } else { + return processParametersBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public Builder setProcessParameters(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters value) { + if (processParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processParameters_ = value; + onChanged(); + } else { + processParametersBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public Builder setProcessParameters( + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder builderForValue) { + if (processParametersBuilder_ == null) { + processParameters_ = builderForValue.build(); + onChanged(); + } else { + processParametersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public Builder mergeProcessParameters(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters value) { + if (processParametersBuilder_ == null) { + if (processParameters_ != null) { + processParameters_ = + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.newBuilder(processParameters_).mergeFrom(value).buildPartial(); + } else { + processParameters_ = value; + } + onChanged(); + } else { + processParametersBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public Builder clearProcessParameters() { + if (processParametersBuilder_ == null) { + processParameters_ = null; + onChanged(); + } else { + processParameters_ = null; + processParametersBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder getProcessParametersBuilder() { + + onChanged(); + return getProcessParametersFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder getProcessParametersOrBuilder() { + if (processParametersBuilder_ != null) { + return processParametersBuilder_.getMessageOrBuilder(); + } else { + return processParameters_ == null ? + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance() : processParameters_; + } + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder> + getProcessParametersFieldBuilder() { + if (processParametersBuilder_ == null) { + processParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder>( + getProcessParameters(), + getParentForChildren(), + isClean()); + processParameters_ = null; + } + return processParametersBuilder_; + } + + private int windingMethod_ = 0; + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public int getWindingMethodValue() { + return windingMethod_; + } + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public Builder setWindingMethodValue(int value) { + windingMethod_ = value; + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod getWindingMethod() { + com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod result = com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod.valueOf(windingMethod_); + return result == null ? com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod.UNRECOGNIZED : result; + } + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public Builder setWindingMethod(com.twine.tango.pmr.printing.JobWindingMethodOuterClass.JobWindingMethod value) { + if (value == null) { + throw new NullPointerException(); + } + + windingMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; + */ + public Builder clearWindingMethod() { + + windingMethod_ = 0; + onChanged(); + return this; + } + + private com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool spool_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder> spoolBuilder_; + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public boolean hasSpool() { + return spoolBuilder_ != null || spool_ != null; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool getSpool() { + if (spoolBuilder_ == null) { + return spool_ == null ? com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.getDefaultInstance() : spool_; + } else { + return spoolBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public Builder setSpool(com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool value) { + if (spoolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spool_ = value; + onChanged(); + } else { + spoolBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public Builder setSpool( + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder builderForValue) { + if (spoolBuilder_ == null) { + spool_ = builderForValue.build(); + onChanged(); + } else { + spoolBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public Builder mergeSpool(com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool value) { + if (spoolBuilder_ == null) { + if (spool_ != null) { + spool_ = + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.newBuilder(spool_).mergeFrom(value).buildPartial(); + } else { + spool_ = value; + } + onChanged(); + } else { + spoolBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public Builder clearSpool() { + if (spoolBuilder_ == null) { + spool_ = null; + onChanged(); + } else { + spool_ = null; + spoolBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder getSpoolBuilder() { + + onChanged(); + return getSpoolFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + public com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder getSpoolOrBuilder() { + if (spoolBuilder_ != null) { + return spoolBuilder_.getMessageOrBuilder(); + } else { + return spool_ == null ? + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.getDefaultInstance() : spool_; + } + } + /** + * .Tango.PMR.Printing.JobSpool Spool = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder> + getSpoolFieldBuilder() { + if (spoolBuilder_ == null) { + spoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpool.Builder, com.twine.tango.pmr.printing.JobSpoolOuterClass.JobSpoolOrBuilder>( + getSpool(), + getParentForChildren(), + isClean()); + spool_ = null; + } + return spoolBuilder_; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + segments_ = new java.util.ArrayList(segments_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder> segmentsBuilder_; + + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public java.util.List getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder setSegments( + int index, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder setSegments( + int index, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder addSegments(com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder addSegments( + int index, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder addSegments( + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder addSegments( + int index, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder addAllSegments( + java.lang.Iterable values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder getSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder getSegmentsOrBuilder( + int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public java.util.List + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder().addBuilder( + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder addSegmentsBuilder( + int index) { + return getSegmentsFieldBuilder().addBuilder( + index, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.getDefaultInstance()); + } + /** + * repeated .Tango.PMR.Printing.JobSegment Segments = 8; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegment.Builder, com.twine.tango.pmr.printing.JobSegmentOuterClass.JobSegmentOrBuilder>( + segments_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.JobTicket) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobTicket) + private static final com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket(); + } + + public static com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public JobTicket parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobTicket(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.JobTicketOuterClass.JobTicket getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_JobTicket_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_JobTicket_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\017JobTicket.proto\022\022Tango.PMR.Printing\032\020J" + + "obSegment.proto\032\027ProcessParameters.proto" + + "\032\026JobWindingMethod.proto\032\016JobSpool.proto" + + "\"\277\002\n\tJobTicket\022\014\n\004Name\030\001 \001(\t\022\032\n\022EnableIn" + + "terSegment\030\002 \001(\010\022\032\n\022InterSegmentLength\030\003" + + " \001(\001\022\016\n\006Length\030\004 \001(\001\022@\n\021ProcessParameter" + + "s\030\005 \001(\0132%.Tango.PMR.Printing.ProcessPara" + + "meters\022;\n\rWindingMethod\030\006 \001(\0162$.Tango.PM" + + "R.Printing.JobWindingMethod\022+\n\005Spool\030\007 \001" + + "(\0132\034.Tango.PMR.Printing.JobSpool\0220\n\010Segm", + "ents\030\010 \003(\0132\036.Tango.PMR.Printing.JobSegme" + + "ntB\036\n\034com.twine.tango.pmr.printingb\006prot" + + "o3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.JobSegmentOuterClass.getDescriptor(), + com.twine.tango.pmr.printing.ProcessParametersOuterClass.getDescriptor(), + com.twine.tango.pmr.printing.JobWindingMethodOuterClass.getDescriptor(), + com.twine.tango.pmr.printing.JobSpoolOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_JobTicket_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_JobTicket_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_JobTicket_descriptor, + new java.lang.String[] { "Name", "EnableInterSegment", "InterSegmentLength", "Length", "ProcessParameters", "WindingMethod", "Spool", "Segments", }); + com.twine.tango.pmr.printing.JobSegmentOuterClass.getDescriptor(); + com.twine.tango.pmr.printing.ProcessParametersOuterClass.getDescriptor(); + com.twine.tango.pmr.printing.JobWindingMethodOuterClass.getDescriptor(); + com.twine.tango.pmr.printing.JobSpoolOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobWindingMethodOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobWindingMethodOuterClass.java new file mode 100644 index 000000000..e81f5df48 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/JobWindingMethodOuterClass.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: JobWindingMethod.proto + +package com.twine.tango.pmr.printing; + +public final class JobWindingMethodOuterClass { + private JobWindingMethodOuterClass() {} + 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 Tango.PMR.Printing.JobWindingMethod} + */ + public enum JobWindingMethod + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     *Embroidery Winding
+     * 
+ * + * Embroidery = 0; + */ + Embroidery(0), + /** + *
+     *Calibration Winding
+     * 
+ * + * Calibration = 1; + */ + Calibration(1), + UNRECOGNIZED(-1), + ; + + /** + *
+     *Embroidery Winding
+     * 
+ * + * Embroidery = 0; + */ + public static final int Embroidery_VALUE = 0; + /** + *
+     *Calibration Winding
+     * 
+ * + * Calibration = 1; + */ + public static final int Calibration_VALUE = 1; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JobWindingMethod valueOf(int value) { + return forNumber(value); + } + + public static JobWindingMethod forNumber(int value) { + switch (value) { + case 0: return Embroidery; + case 1: return Calibration; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + JobWindingMethod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JobWindingMethod findValueByNumber(int number) { + return JobWindingMethod.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 com.twine.tango.pmr.printing.JobWindingMethodOuterClass.getDescriptor().getEnumTypes().get(0); + } + + private static final JobWindingMethod[] VALUES = values(); + + public static JobWindingMethod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JobWindingMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:Tango.PMR.Printing.JobWindingMethod) + } + + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\026JobWindingMethod.proto\022\022Tango.PMR.Prin" + + "ting*3\n\020JobWindingMethod\022\016\n\nEmbroidery\020\000" + + "\022\017\n\013Calibration\020\001B\036\n\034com.twine.tango.pmr" + + ".printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/ProcessParametersOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/ProcessParametersOuterClass.java new file mode 100644 index 000000000..0a8f03ca5 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/ProcessParametersOuterClass.java @@ -0,0 +1,1503 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ProcessParameters.proto + +package com.twine.tango.pmr.printing; + +public final class ProcessParametersOuterClass { + private ProcessParametersOuterClass() {} + 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 ProcessParametersOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.ProcessParameters) + com.google.protobuf.MessageOrBuilder { + + /** + * double DyeingSpeed = 1; + */ + double getDyeingSpeed(); + + /** + * double MixerTemp = 2; + */ + double getMixerTemp(); + + /** + * double DryerBufferLength = 3; + */ + double getDryerBufferLength(); + + /** + * double MinInkUptake = 4; + */ + double getMinInkUptake(); + + /** + * double HeadZone1Temp = 5; + */ + double getHeadZone1Temp(); + + /** + * double DryerZone1Temp = 6; + */ + double getDryerZone1Temp(); + + /** + * double FeederTension = 7; + */ + double getFeederTension(); + + /** + * double DryerZone2Temp = 8; + */ + double getDryerZone2Temp(); + + /** + * double HeadZone2Temp = 9; + */ + double getHeadZone2Temp(); + + /** + * double PullerTension = 10; + */ + double getPullerTension(); + + /** + * double HeadZone3Temp = 11; + */ + double getHeadZone3Temp(); + + /** + * double DryerZone3Temp = 12; + */ + double getDryerZone3Temp(); + + /** + * double WinderTension = 13; + */ + double getWinderTension(); + + /** + * double HeadAirFlow = 14; + */ + double getHeadAirFlow(); + + /** + * double DryerAirFlow = 15; + */ + double getDryerAirFlow(); + + /** + * int32 TableIndex = 16; + */ + int getTableIndex(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.ProcessParameters} + */ + public static final class ProcessParameters extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.ProcessParameters) + ProcessParametersOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProcessParameters.newBuilder() to construct. + private ProcessParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ProcessParameters() { + dyeingSpeed_ = 0D; + mixerTemp_ = 0D; + dryerBufferLength_ = 0D; + minInkUptake_ = 0D; + headZone1Temp_ = 0D; + dryerZone1Temp_ = 0D; + feederTension_ = 0D; + dryerZone2Temp_ = 0D; + headZone2Temp_ = 0D; + pullerTension_ = 0D; + headZone3Temp_ = 0D; + dryerZone3Temp_ = 0D; + winderTension_ = 0D; + headAirFlow_ = 0D; + dryerAirFlow_ = 0D; + tableIndex_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ProcessParameters( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 9: { + + dyeingSpeed_ = input.readDouble(); + break; + } + case 17: { + + mixerTemp_ = input.readDouble(); + break; + } + case 25: { + + dryerBufferLength_ = input.readDouble(); + break; + } + case 33: { + + minInkUptake_ = input.readDouble(); + break; + } + case 41: { + + headZone1Temp_ = input.readDouble(); + break; + } + case 49: { + + dryerZone1Temp_ = input.readDouble(); + break; + } + case 57: { + + feederTension_ = input.readDouble(); + break; + } + case 65: { + + dryerZone2Temp_ = input.readDouble(); + break; + } + case 73: { + + headZone2Temp_ = input.readDouble(); + break; + } + case 81: { + + pullerTension_ = input.readDouble(); + break; + } + case 89: { + + headZone3Temp_ = input.readDouble(); + break; + } + case 97: { + + dryerZone3Temp_ = input.readDouble(); + break; + } + case 105: { + + winderTension_ = input.readDouble(); + break; + } + case 113: { + + headAirFlow_ = input.readDouble(); + break; + } + case 121: { + + dryerAirFlow_ = input.readDouble(); + break; + } + case 128: { + + tableIndex_ = input.readInt32(); + 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 com.twine.tango.pmr.printing.ProcessParametersOuterClass.internal_static_Tango_PMR_Printing_ProcessParameters_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.ProcessParametersOuterClass.internal_static_Tango_PMR_Printing_ProcessParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.class, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder.class); + } + + public static final int DYEINGSPEED_FIELD_NUMBER = 1; + private double dyeingSpeed_; + /** + * double DyeingSpeed = 1; + */ + public double getDyeingSpeed() { + return dyeingSpeed_; + } + + public static final int MIXERTEMP_FIELD_NUMBER = 2; + private double mixerTemp_; + /** + * double MixerTemp = 2; + */ + public double getMixerTemp() { + return mixerTemp_; + } + + public static final int DRYERBUFFERLENGTH_FIELD_NUMBER = 3; + private double dryerBufferLength_; + /** + * double DryerBufferLength = 3; + */ + public double getDryerBufferLength() { + return dryerBufferLength_; + } + + public static final int MININKUPTAKE_FIELD_NUMBER = 4; + private double minInkUptake_; + /** + * double MinInkUptake = 4; + */ + public double getMinInkUptake() { + return minInkUptake_; + } + + public static final int HEADZONE1TEMP_FIELD_NUMBER = 5; + private double headZone1Temp_; + /** + * double HeadZone1Temp = 5; + */ + public double getHeadZone1Temp() { + return headZone1Temp_; + } + + public static final int DRYERZONE1TEMP_FIELD_NUMBER = 6; + private double dryerZone1Temp_; + /** + * double DryerZone1Temp = 6; + */ + public double getDryerZone1Temp() { + return dryerZone1Temp_; + } + + public static final int FEEDERTENSION_FIELD_NUMBER = 7; + private double feederTension_; + /** + * double FeederTension = 7; + */ + public double getFeederTension() { + return feederTension_; + } + + public static final int DRYERZONE2TEMP_FIELD_NUMBER = 8; + private double dryerZone2Temp_; + /** + * double DryerZone2Temp = 8; + */ + public double getDryerZone2Temp() { + return dryerZone2Temp_; + } + + public static final int HEADZONE2TEMP_FIELD_NUMBER = 9; + private double headZone2Temp_; + /** + * double HeadZone2Temp = 9; + */ + public double getHeadZone2Temp() { + return headZone2Temp_; + } + + public static final int PULLERTENSION_FIELD_NUMBER = 10; + private double pullerTension_; + /** + * double PullerTension = 10; + */ + public double getPullerTension() { + return pullerTension_; + } + + public static final int HEADZONE3TEMP_FIELD_NUMBER = 11; + private double headZone3Temp_; + /** + * double HeadZone3Temp = 11; + */ + public double getHeadZone3Temp() { + return headZone3Temp_; + } + + public static final int DRYERZONE3TEMP_FIELD_NUMBER = 12; + private double dryerZone3Temp_; + /** + * double DryerZone3Temp = 12; + */ + public double getDryerZone3Temp() { + return dryerZone3Temp_; + } + + public static final int WINDERTENSION_FIELD_NUMBER = 13; + private double winderTension_; + /** + * double WinderTension = 13; + */ + public double getWinderTension() { + return winderTension_; + } + + public static final int HEADAIRFLOW_FIELD_NUMBER = 14; + private double headAirFlow_; + /** + * double HeadAirFlow = 14; + */ + public double getHeadAirFlow() { + return headAirFlow_; + } + + public static final int DRYERAIRFLOW_FIELD_NUMBER = 15; + private double dryerAirFlow_; + /** + * double DryerAirFlow = 15; + */ + public double getDryerAirFlow() { + return dryerAirFlow_; + } + + public static final int TABLEINDEX_FIELD_NUMBER = 16; + private int tableIndex_; + /** + * int32 TableIndex = 16; + */ + public int getTableIndex() { + return tableIndex_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dyeingSpeed_ != 0D) { + output.writeDouble(1, dyeingSpeed_); + } + if (mixerTemp_ != 0D) { + output.writeDouble(2, mixerTemp_); + } + if (dryerBufferLength_ != 0D) { + output.writeDouble(3, dryerBufferLength_); + } + if (minInkUptake_ != 0D) { + output.writeDouble(4, minInkUptake_); + } + if (headZone1Temp_ != 0D) { + output.writeDouble(5, headZone1Temp_); + } + if (dryerZone1Temp_ != 0D) { + output.writeDouble(6, dryerZone1Temp_); + } + if (feederTension_ != 0D) { + output.writeDouble(7, feederTension_); + } + if (dryerZone2Temp_ != 0D) { + output.writeDouble(8, dryerZone2Temp_); + } + if (headZone2Temp_ != 0D) { + output.writeDouble(9, headZone2Temp_); + } + if (pullerTension_ != 0D) { + output.writeDouble(10, pullerTension_); + } + if (headZone3Temp_ != 0D) { + output.writeDouble(11, headZone3Temp_); + } + if (dryerZone3Temp_ != 0D) { + output.writeDouble(12, dryerZone3Temp_); + } + if (winderTension_ != 0D) { + output.writeDouble(13, winderTension_); + } + if (headAirFlow_ != 0D) { + output.writeDouble(14, headAirFlow_); + } + if (dryerAirFlow_ != 0D) { + output.writeDouble(15, dryerAirFlow_); + } + if (tableIndex_ != 0) { + output.writeInt32(16, tableIndex_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dyeingSpeed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, dyeingSpeed_); + } + if (mixerTemp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, mixerTemp_); + } + if (dryerBufferLength_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, dryerBufferLength_); + } + if (minInkUptake_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(4, minInkUptake_); + } + if (headZone1Temp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, headZone1Temp_); + } + if (dryerZone1Temp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(6, dryerZone1Temp_); + } + if (feederTension_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, feederTension_); + } + if (dryerZone2Temp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(8, dryerZone2Temp_); + } + if (headZone2Temp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(9, headZone2Temp_); + } + if (pullerTension_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(10, pullerTension_); + } + if (headZone3Temp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, headZone3Temp_); + } + if (dryerZone3Temp_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(12, dryerZone3Temp_); + } + if (winderTension_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(13, winderTension_); + } + if (headAirFlow_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(14, headAirFlow_); + } + if (dryerAirFlow_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(15, dryerAirFlow_); + } + if (tableIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(16, tableIndex_); + } + 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 com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters other = (com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters) obj; + + boolean result = true; + result = result && ( + java.lang.Double.doubleToLongBits(getDyeingSpeed()) + == java.lang.Double.doubleToLongBits( + other.getDyeingSpeed())); + result = result && ( + java.lang.Double.doubleToLongBits(getMixerTemp()) + == java.lang.Double.doubleToLongBits( + other.getMixerTemp())); + result = result && ( + java.lang.Double.doubleToLongBits(getDryerBufferLength()) + == java.lang.Double.doubleToLongBits( + other.getDryerBufferLength())); + result = result && ( + java.lang.Double.doubleToLongBits(getMinInkUptake()) + == java.lang.Double.doubleToLongBits( + other.getMinInkUptake())); + result = result && ( + java.lang.Double.doubleToLongBits(getHeadZone1Temp()) + == java.lang.Double.doubleToLongBits( + other.getHeadZone1Temp())); + result = result && ( + java.lang.Double.doubleToLongBits(getDryerZone1Temp()) + == java.lang.Double.doubleToLongBits( + other.getDryerZone1Temp())); + result = result && ( + java.lang.Double.doubleToLongBits(getFeederTension()) + == java.lang.Double.doubleToLongBits( + other.getFeederTension())); + result = result && ( + java.lang.Double.doubleToLongBits(getDryerZone2Temp()) + == java.lang.Double.doubleToLongBits( + other.getDryerZone2Temp())); + result = result && ( + java.lang.Double.doubleToLongBits(getHeadZone2Temp()) + == java.lang.Double.doubleToLongBits( + other.getHeadZone2Temp())); + result = result && ( + java.lang.Double.doubleToLongBits(getPullerTension()) + == java.lang.Double.doubleToLongBits( + other.getPullerTension())); + result = result && ( + java.lang.Double.doubleToLongBits(getHeadZone3Temp()) + == java.lang.Double.doubleToLongBits( + other.getHeadZone3Temp())); + result = result && ( + java.lang.Double.doubleToLongBits(getDryerZone3Temp()) + == java.lang.Double.doubleToLongBits( + other.getDryerZone3Temp())); + result = result && ( + java.lang.Double.doubleToLongBits(getWinderTension()) + == java.lang.Double.doubleToLongBits( + other.getWinderTension())); + result = result && ( + java.lang.Double.doubleToLongBits(getHeadAirFlow()) + == java.lang.Double.doubleToLongBits( + other.getHeadAirFlow())); + result = result && ( + java.lang.Double.doubleToLongBits(getDryerAirFlow()) + == java.lang.Double.doubleToLongBits( + other.getDryerAirFlow())); + result = result && (getTableIndex() + == other.getTableIndex()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DYEINGSPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDyeingSpeed())); + hash = (37 * hash) + MIXERTEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMixerTemp())); + hash = (37 * hash) + DRYERBUFFERLENGTH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDryerBufferLength())); + hash = (37 * hash) + MININKUPTAKE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinInkUptake())); + hash = (37 * hash) + HEADZONE1TEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHeadZone1Temp())); + hash = (37 * hash) + DRYERZONE1TEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDryerZone1Temp())); + hash = (37 * hash) + FEEDERTENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFeederTension())); + hash = (37 * hash) + DRYERZONE2TEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDryerZone2Temp())); + hash = (37 * hash) + HEADZONE2TEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHeadZone2Temp())); + hash = (37 * hash) + PULLERTENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getPullerTension())); + hash = (37 * hash) + HEADZONE3TEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHeadZone3Temp())); + hash = (37 * hash) + DRYERZONE3TEMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDryerZone3Temp())); + hash = (37 * hash) + WINDERTENSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getWinderTension())); + hash = (37 * hash) + HEADAIRFLOW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getHeadAirFlow())); + hash = (37 * hash) + DRYERAIRFLOW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDryerAirFlow())); + hash = (37 * hash) + TABLEINDEX_FIELD_NUMBER; + hash = (53 * hash) + getTableIndex(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters 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 com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters 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 com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.ProcessParameters} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.ProcessParameters) + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.ProcessParametersOuterClass.internal_static_Tango_PMR_Printing_ProcessParameters_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.ProcessParametersOuterClass.internal_static_Tango_PMR_Printing_ProcessParameters_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.class, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + dyeingSpeed_ = 0D; + + mixerTemp_ = 0D; + + dryerBufferLength_ = 0D; + + minInkUptake_ = 0D; + + headZone1Temp_ = 0D; + + dryerZone1Temp_ = 0D; + + feederTension_ = 0D; + + dryerZone2Temp_ = 0D; + + headZone2Temp_ = 0D; + + pullerTension_ = 0D; + + headZone3Temp_ = 0D; + + dryerZone3Temp_ = 0D; + + winderTension_ = 0D; + + headAirFlow_ = 0D; + + dryerAirFlow_ = 0D; + + tableIndex_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.ProcessParametersOuterClass.internal_static_Tango_PMR_Printing_ProcessParameters_descriptor; + } + + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters build() { + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters buildPartial() { + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters result = new com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters(this); + result.dyeingSpeed_ = dyeingSpeed_; + result.mixerTemp_ = mixerTemp_; + result.dryerBufferLength_ = dryerBufferLength_; + result.minInkUptake_ = minInkUptake_; + result.headZone1Temp_ = headZone1Temp_; + result.dryerZone1Temp_ = dryerZone1Temp_; + result.feederTension_ = feederTension_; + result.dryerZone2Temp_ = dryerZone2Temp_; + result.headZone2Temp_ = headZone2Temp_; + result.pullerTension_ = pullerTension_; + result.headZone3Temp_ = headZone3Temp_; + result.dryerZone3Temp_ = dryerZone3Temp_; + result.winderTension_ = winderTension_; + result.headAirFlow_ = headAirFlow_; + result.dryerAirFlow_ = dryerAirFlow_; + result.tableIndex_ = tableIndex_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters) { + return mergeFrom((com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters other) { + if (other == com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance()) return this; + if (other.getDyeingSpeed() != 0D) { + setDyeingSpeed(other.getDyeingSpeed()); + } + if (other.getMixerTemp() != 0D) { + setMixerTemp(other.getMixerTemp()); + } + if (other.getDryerBufferLength() != 0D) { + setDryerBufferLength(other.getDryerBufferLength()); + } + if (other.getMinInkUptake() != 0D) { + setMinInkUptake(other.getMinInkUptake()); + } + if (other.getHeadZone1Temp() != 0D) { + setHeadZone1Temp(other.getHeadZone1Temp()); + } + if (other.getDryerZone1Temp() != 0D) { + setDryerZone1Temp(other.getDryerZone1Temp()); + } + if (other.getFeederTension() != 0D) { + setFeederTension(other.getFeederTension()); + } + if (other.getDryerZone2Temp() != 0D) { + setDryerZone2Temp(other.getDryerZone2Temp()); + } + if (other.getHeadZone2Temp() != 0D) { + setHeadZone2Temp(other.getHeadZone2Temp()); + } + if (other.getPullerTension() != 0D) { + setPullerTension(other.getPullerTension()); + } + if (other.getHeadZone3Temp() != 0D) { + setHeadZone3Temp(other.getHeadZone3Temp()); + } + if (other.getDryerZone3Temp() != 0D) { + setDryerZone3Temp(other.getDryerZone3Temp()); + } + if (other.getWinderTension() != 0D) { + setWinderTension(other.getWinderTension()); + } + if (other.getHeadAirFlow() != 0D) { + setHeadAirFlow(other.getHeadAirFlow()); + } + if (other.getDryerAirFlow() != 0D) { + setDryerAirFlow(other.getDryerAirFlow()); + } + if (other.getTableIndex() != 0) { + setTableIndex(other.getTableIndex()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private double dyeingSpeed_ ; + /** + * double DyeingSpeed = 1; + */ + public double getDyeingSpeed() { + return dyeingSpeed_; + } + /** + * double DyeingSpeed = 1; + */ + public Builder setDyeingSpeed(double value) { + + dyeingSpeed_ = value; + onChanged(); + return this; + } + /** + * double DyeingSpeed = 1; + */ + public Builder clearDyeingSpeed() { + + dyeingSpeed_ = 0D; + onChanged(); + return this; + } + + private double mixerTemp_ ; + /** + * double MixerTemp = 2; + */ + public double getMixerTemp() { + return mixerTemp_; + } + /** + * double MixerTemp = 2; + */ + public Builder setMixerTemp(double value) { + + mixerTemp_ = value; + onChanged(); + return this; + } + /** + * double MixerTemp = 2; + */ + public Builder clearMixerTemp() { + + mixerTemp_ = 0D; + onChanged(); + return this; + } + + private double dryerBufferLength_ ; + /** + * double DryerBufferLength = 3; + */ + public double getDryerBufferLength() { + return dryerBufferLength_; + } + /** + * double DryerBufferLength = 3; + */ + public Builder setDryerBufferLength(double value) { + + dryerBufferLength_ = value; + onChanged(); + return this; + } + /** + * double DryerBufferLength = 3; + */ + public Builder clearDryerBufferLength() { + + dryerBufferLength_ = 0D; + onChanged(); + return this; + } + + private double minInkUptake_ ; + /** + * double MinInkUptake = 4; + */ + public double getMinInkUptake() { + return minInkUptake_; + } + /** + * double MinInkUptake = 4; + */ + public Builder setMinInkUptake(double value) { + + minInkUptake_ = value; + onChanged(); + return this; + } + /** + * double MinInkUptake = 4; + */ + public Builder clearMinInkUptake() { + + minInkUptake_ = 0D; + onChanged(); + return this; + } + + private double headZone1Temp_ ; + /** + * double HeadZone1Temp = 5; + */ + public double getHeadZone1Temp() { + return headZone1Temp_; + } + /** + * double HeadZone1Temp = 5; + */ + public Builder setHeadZone1Temp(double value) { + + headZone1Temp_ = value; + onChanged(); + return this; + } + /** + * double HeadZone1Temp = 5; + */ + public Builder clearHeadZone1Temp() { + + headZone1Temp_ = 0D; + onChanged(); + return this; + } + + private double dryerZone1Temp_ ; + /** + * double DryerZone1Temp = 6; + */ + public double getDryerZone1Temp() { + return dryerZone1Temp_; + } + /** + * double DryerZone1Temp = 6; + */ + public Builder setDryerZone1Temp(double value) { + + dryerZone1Temp_ = value; + onChanged(); + return this; + } + /** + * double DryerZone1Temp = 6; + */ + public Builder clearDryerZone1Temp() { + + dryerZone1Temp_ = 0D; + onChanged(); + return this; + } + + private double feederTension_ ; + /** + * double FeederTension = 7; + */ + public double getFeederTension() { + return feederTension_; + } + /** + * double FeederTension = 7; + */ + public Builder setFeederTension(double value) { + + feederTension_ = value; + onChanged(); + return this; + } + /** + * double FeederTension = 7; + */ + public Builder clearFeederTension() { + + feederTension_ = 0D; + onChanged(); + return this; + } + + private double dryerZone2Temp_ ; + /** + * double DryerZone2Temp = 8; + */ + public double getDryerZone2Temp() { + return dryerZone2Temp_; + } + /** + * double DryerZone2Temp = 8; + */ + public Builder setDryerZone2Temp(double value) { + + dryerZone2Temp_ = value; + onChanged(); + return this; + } + /** + * double DryerZone2Temp = 8; + */ + public Builder clearDryerZone2Temp() { + + dryerZone2Temp_ = 0D; + onChanged(); + return this; + } + + private double headZone2Temp_ ; + /** + * double HeadZone2Temp = 9; + */ + public double getHeadZone2Temp() { + return headZone2Temp_; + } + /** + * double HeadZone2Temp = 9; + */ + public Builder setHeadZone2Temp(double value) { + + headZone2Temp_ = value; + onChanged(); + return this; + } + /** + * double HeadZone2Temp = 9; + */ + public Builder clearHeadZone2Temp() { + + headZone2Temp_ = 0D; + onChanged(); + return this; + } + + private double pullerTension_ ; + /** + * double PullerTension = 10; + */ + public double getPullerTension() { + return pullerTension_; + } + /** + * double PullerTension = 10; + */ + public Builder setPullerTension(double value) { + + pullerTension_ = value; + onChanged(); + return this; + } + /** + * double PullerTension = 10; + */ + public Builder clearPullerTension() { + + pullerTension_ = 0D; + onChanged(); + return this; + } + + private double headZone3Temp_ ; + /** + * double HeadZone3Temp = 11; + */ + public double getHeadZone3Temp() { + return headZone3Temp_; + } + /** + * double HeadZone3Temp = 11; + */ + public Builder setHeadZone3Temp(double value) { + + headZone3Temp_ = value; + onChanged(); + return this; + } + /** + * double HeadZone3Temp = 11; + */ + public Builder clearHeadZone3Temp() { + + headZone3Temp_ = 0D; + onChanged(); + return this; + } + + private double dryerZone3Temp_ ; + /** + * double DryerZone3Temp = 12; + */ + public double getDryerZone3Temp() { + return dryerZone3Temp_; + } + /** + * double DryerZone3Temp = 12; + */ + public Builder setDryerZone3Temp(double value) { + + dryerZone3Temp_ = value; + onChanged(); + return this; + } + /** + * double DryerZone3Temp = 12; + */ + public Builder clearDryerZone3Temp() { + + dryerZone3Temp_ = 0D; + onChanged(); + return this; + } + + private double winderTension_ ; + /** + * double WinderTension = 13; + */ + public double getWinderTension() { + return winderTension_; + } + /** + * double WinderTension = 13; + */ + public Builder setWinderTension(double value) { + + winderTension_ = value; + onChanged(); + return this; + } + /** + * double WinderTension = 13; + */ + public Builder clearWinderTension() { + + winderTension_ = 0D; + onChanged(); + return this; + } + + private double headAirFlow_ ; + /** + * double HeadAirFlow = 14; + */ + public double getHeadAirFlow() { + return headAirFlow_; + } + /** + * double HeadAirFlow = 14; + */ + public Builder setHeadAirFlow(double value) { + + headAirFlow_ = value; + onChanged(); + return this; + } + /** + * double HeadAirFlow = 14; + */ + public Builder clearHeadAirFlow() { + + headAirFlow_ = 0D; + onChanged(); + return this; + } + + private double dryerAirFlow_ ; + /** + * double DryerAirFlow = 15; + */ + public double getDryerAirFlow() { + return dryerAirFlow_; + } + /** + * double DryerAirFlow = 15; + */ + public Builder setDryerAirFlow(double value) { + + dryerAirFlow_ = value; + onChanged(); + return this; + } + /** + * double DryerAirFlow = 15; + */ + public Builder clearDryerAirFlow() { + + dryerAirFlow_ = 0D; + onChanged(); + return this; + } + + private int tableIndex_ ; + /** + * int32 TableIndex = 16; + */ + public int getTableIndex() { + return tableIndex_; + } + /** + * int32 TableIndex = 16; + */ + public Builder setTableIndex(int value) { + + tableIndex_ = value; + onChanged(); + return this; + } + /** + * int32 TableIndex = 16; + */ + public Builder clearTableIndex() { + + tableIndex_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.ProcessParameters) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.ProcessParameters) + private static final com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters(); + } + + public static com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public ProcessParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ProcessParameters(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_ProcessParameters_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_ProcessParameters_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\027ProcessParameters.proto\022\022Tango.PMR.Pri" + + "nting\"\375\002\n\021ProcessParameters\022\023\n\013DyeingSpe" + + "ed\030\001 \001(\001\022\021\n\tMixerTemp\030\002 \001(\001\022\031\n\021DryerBuff" + + "erLength\030\003 \001(\001\022\024\n\014MinInkUptake\030\004 \001(\001\022\025\n\r" + + "HeadZone1Temp\030\005 \001(\001\022\026\n\016DryerZone1Temp\030\006 " + + "\001(\001\022\025\n\rFeederTension\030\007 \001(\001\022\026\n\016DryerZone2" + + "Temp\030\010 \001(\001\022\025\n\rHeadZone2Temp\030\t \001(\001\022\025\n\rPul" + + "lerTension\030\n \001(\001\022\025\n\rHeadZone3Temp\030\013 \001(\001\022" + + "\026\n\016DryerZone3Temp\030\014 \001(\001\022\025\n\rWinderTension" + + "\030\r \001(\001\022\023\n\013HeadAirFlow\030\016 \001(\001\022\024\n\014DryerAirF", + "low\030\017 \001(\001\022\022\n\nTableIndex\030\020 \001(\005B\036\n\034com.twi" + + "ne.tango.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Printing_ProcessParameters_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_ProcessParameters_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_ProcessParameters_descriptor, + new java.lang.String[] { "DyeingSpeed", "MixerTemp", "DryerBufferLength", "MinInkUptake", "HeadZone1Temp", "DryerZone1Temp", "FeederTension", "DryerZone2Temp", "HeadZone2Temp", "PullerTension", "HeadZone3Temp", "DryerZone3Temp", "WinderTension", "HeadAirFlow", "DryerAirFlow", "TableIndex", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersRequestOuterClass.java new file mode 100644 index 000000000..9813ff270 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersRequestOuterClass.java @@ -0,0 +1,640 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UploadProcessParametersRequest.proto + +package com.twine.tango.pmr.printing; + +public final class UploadProcessParametersRequestOuterClass { + private UploadProcessParametersRequestOuterClass() {} + 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 UploadProcessParametersRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.UploadProcessParametersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + boolean hasProcessParameters(); + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getProcessParameters(); + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder getProcessParametersOrBuilder(); + } + /** + * Protobuf type {@code Tango.PMR.Printing.UploadProcessParametersRequest} + */ + public static final class UploadProcessParametersRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.UploadProcessParametersRequest) + UploadProcessParametersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadProcessParametersRequest.newBuilder() to construct. + private UploadProcessParametersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UploadProcessParametersRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UploadProcessParametersRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder subBuilder = null; + if (processParameters_ != null) { + subBuilder = processParameters_.toBuilder(); + } + processParameters_ = input.readMessage(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(processParameters_); + processParameters_ = subBuilder.buildPartial(); + } + + 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 com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.class, com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.Builder.class); + } + + public static final int PROCESSPARAMETERS_FIELD_NUMBER = 1; + private com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters processParameters_; + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public boolean hasProcessParameters() { + return processParameters_ != null; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getProcessParameters() { + return processParameters_ == null ? com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance() : processParameters_; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder getProcessParametersOrBuilder() { + return getProcessParameters(); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (processParameters_ != null) { + output.writeMessage(1, getProcessParameters()); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (processParameters_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getProcessParameters()); + } + 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 com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest other = (com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest) obj; + + boolean result = true; + result = result && (hasProcessParameters() == other.hasProcessParameters()); + if (hasProcessParameters()) { + result = result && getProcessParameters() + .equals(other.getProcessParameters()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasProcessParameters()) { + hash = (37 * hash) + PROCESSPARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getProcessParameters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest 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 com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest 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 com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.UploadProcessParametersRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.UploadProcessParametersRequest) + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.class, com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + if (processParametersBuilder_ == null) { + processParameters_ = null; + } else { + processParameters_ = null; + processParametersBuilder_ = null; + } + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_descriptor; + } + + public com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest build() { + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest buildPartial() { + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest result = new com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest(this); + if (processParametersBuilder_ == null) { + result.processParameters_ = processParameters_; + } else { + result.processParameters_ = processParametersBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest) { + return mergeFrom((com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest other) { + if (other == com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest.getDefaultInstance()) return this; + if (other.hasProcessParameters()) { + mergeProcessParameters(other.getProcessParameters()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters processParameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder> processParametersBuilder_; + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public boolean hasProcessParameters() { + return processParametersBuilder_ != null || processParameters_ != null; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters getProcessParameters() { + if (processParametersBuilder_ == null) { + return processParameters_ == null ? com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance() : processParameters_; + } else { + return processParametersBuilder_.getMessage(); + } + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public Builder setProcessParameters(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters value) { + if (processParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + processParameters_ = value; + onChanged(); + } else { + processParametersBuilder_.setMessage(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public Builder setProcessParameters( + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder builderForValue) { + if (processParametersBuilder_ == null) { + processParameters_ = builderForValue.build(); + onChanged(); + } else { + processParametersBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public Builder mergeProcessParameters(com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters value) { + if (processParametersBuilder_ == null) { + if (processParameters_ != null) { + processParameters_ = + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.newBuilder(processParameters_).mergeFrom(value).buildPartial(); + } else { + processParameters_ = value; + } + onChanged(); + } else { + processParametersBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public Builder clearProcessParameters() { + if (processParametersBuilder_ == null) { + processParameters_ = null; + onChanged(); + } else { + processParameters_ = null; + processParametersBuilder_ = null; + } + + return this; + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder getProcessParametersBuilder() { + + onChanged(); + return getProcessParametersFieldBuilder().getBuilder(); + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + public com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder getProcessParametersOrBuilder() { + if (processParametersBuilder_ != null) { + return processParametersBuilder_.getMessageOrBuilder(); + } else { + return processParameters_ == null ? + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.getDefaultInstance() : processParameters_; + } + } + /** + * .Tango.PMR.Printing.ProcessParameters ProcessParameters = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder> + getProcessParametersFieldBuilder() { + if (processParametersBuilder_ == null) { + processParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParameters.Builder, com.twine.tango.pmr.printing.ProcessParametersOuterClass.ProcessParametersOrBuilder>( + getProcessParameters(), + getParentForChildren(), + isClean()); + processParameters_ = null; + } + return processParametersBuilder_; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.UploadProcessParametersRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.UploadProcessParametersRequest) + private static final com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest(); + } + + public static com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UploadProcessParametersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UploadProcessParametersRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.UploadProcessParametersRequestOuterClass.UploadProcessParametersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_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$UploadProcessParametersRequest.proto\022\022" + + "Tango.PMR.Printing\032\027ProcessParameters.pr" + + "oto\"b\n\036UploadProcessParametersRequest\022@\n" + + "\021ProcessParameters\030\001 \001(\0132%.Tango.PMR.Pri" + + "nting.ProcessParametersB\036\n\034com.twine.tan" + + "go.pmr.printingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.twine.tango.pmr.printing.ProcessParametersOuterClass.getDescriptor(), + }, assigner); + internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_UploadProcessParametersRequest_descriptor, + new java.lang.String[] { "ProcessParameters", }); + com.twine.tango.pmr.printing.ProcessParametersOuterClass.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersResponseOuterClass.java new file mode 100644 index 000000000..5649b21c7 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/printing/UploadProcessParametersResponseOuterClass.java @@ -0,0 +1,441 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: UploadProcessParametersResponse.proto + +package com.twine.tango.pmr.printing; + +public final class UploadProcessParametersResponseOuterClass { + private UploadProcessParametersResponseOuterClass() {} + 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 UploadProcessParametersResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Printing.UploadProcessParametersResponse) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Printing.UploadProcessParametersResponse} + */ + public static final class UploadProcessParametersResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Printing.UploadProcessParametersResponse) + UploadProcessParametersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadProcessParametersResponse.newBuilder() to construct. + private UploadProcessParametersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UploadProcessParametersResponse() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UploadProcessParametersResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.class, com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse other = (com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse 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 com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse 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 com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Printing.UploadProcessParametersResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Printing.UploadProcessParametersResponse) + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.class, com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_descriptor; + } + + public com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse build() { + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse buildPartial() { + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse result = new com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse) { + return mergeFrom((com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse other) { + if (other == com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Printing.UploadProcessParametersResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.UploadProcessParametersResponse) + private static final com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse(); + } + + public static com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public UploadProcessParametersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UploadProcessParametersResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.printing.UploadProcessParametersResponseOuterClass.UploadProcessParametersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_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%UploadProcessParametersResponse.proto\022" + + "\022Tango.PMR.Printing\"!\n\037UploadProcessPara" + + "metersResponseB\036\n\034com.twine.tango.pmr.pr" + + "intingb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Printing_UploadProcessParametersResponse_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteRequestOuterClass.java new file mode 100644 index 000000000..5f6638941 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteRequestOuterClass.java @@ -0,0 +1,1257 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubF3Gpo01WriteRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubF3Gpo01WriteRequestOuterClass { + private StubF3Gpo01WriteRequestOuterClass() {} + 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 StubF3Gpo01WriteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubF3Gpo01WriteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     *value
+     * 
+ * + * bool F3_GPO_LED4 = 1; + */ + boolean getF3GPOLED4(); + + /** + *
+     *write
+     * 
+ * + * bool Write_F3_GPO_LED4 = 2; + */ + boolean getWriteF3GPOLED4(); + + /** + * bool F3_GPO_LED3 = 3; + */ + boolean getF3GPOLED3(); + + /** + * bool Write_F3_GPO_LED3 = 4; + */ + boolean getWriteF3GPOLED3(); + + /** + * bool F3_GPO_LED2 = 5; + */ + boolean getF3GPOLED2(); + + /** + * bool Write_F3_GPO_LED2 = 6; + */ + boolean getWriteF3GPOLED2(); + + /** + * bool F3_GPO_LED1 = 7; + */ + boolean getF3GPOLED1(); + + /** + * bool Write_F3_GPO_LED1 = 8; + */ + boolean getWriteF3GPOLED1(); + + /** + * bool F3_GPO_EXTWINDER_SSR11_CTRL = 9; + */ + boolean getF3GPOEXTWINDERSSR11CTRL(); + + /** + * bool Write_F3_GPO_EXTWINDER_SSR11_CTRL = 10; + */ + boolean getWriteF3GPOEXTWINDERSSR11CTRL(); + + /** + * bool F3_GPO_BUZZER = 11; + */ + boolean getF3GPOBUZZER(); + + /** + * bool Write_F3_GPO_BUZZER = 12; + */ + boolean getWriteF3GPOBUZZER(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubF3Gpo01WriteRequest} + */ + public static final class StubF3Gpo01WriteRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubF3Gpo01WriteRequest) + StubF3Gpo01WriteRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubF3Gpo01WriteRequest.newBuilder() to construct. + private StubF3Gpo01WriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubF3Gpo01WriteRequest() { + f3GPOLED4_ = false; + writeF3GPOLED4_ = false; + f3GPOLED3_ = false; + writeF3GPOLED3_ = false; + f3GPOLED2_ = false; + writeF3GPOLED2_ = false; + f3GPOLED1_ = false; + writeF3GPOLED1_ = false; + f3GPOEXTWINDERSSR11CTRL_ = false; + writeF3GPOEXTWINDERSSR11CTRL_ = false; + f3GPOBUZZER_ = false; + writeF3GPOBUZZER_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubF3Gpo01WriteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + f3GPOLED4_ = input.readBool(); + break; + } + case 16: { + + writeF3GPOLED4_ = input.readBool(); + break; + } + case 24: { + + f3GPOLED3_ = input.readBool(); + break; + } + case 32: { + + writeF3GPOLED3_ = input.readBool(); + break; + } + case 40: { + + f3GPOLED2_ = input.readBool(); + break; + } + case 48: { + + writeF3GPOLED2_ = input.readBool(); + break; + } + case 56: { + + f3GPOLED1_ = input.readBool(); + break; + } + case 64: { + + writeF3GPOLED1_ = input.readBool(); + break; + } + case 72: { + + f3GPOEXTWINDERSSR11CTRL_ = input.readBool(); + break; + } + case 80: { + + writeF3GPOEXTWINDERSSR11CTRL_ = input.readBool(); + break; + } + case 88: { + + f3GPOBUZZER_ = input.readBool(); + break; + } + case 96: { + + writeF3GPOBUZZER_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.class, com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.Builder.class); + } + + public static final int F3_GPO_LED4_FIELD_NUMBER = 1; + private boolean f3GPOLED4_; + /** + *
+     *value
+     * 
+ * + * bool F3_GPO_LED4 = 1; + */ + public boolean getF3GPOLED4() { + return f3GPOLED4_; + } + + public static final int WRITE_F3_GPO_LED4_FIELD_NUMBER = 2; + private boolean writeF3GPOLED4_; + /** + *
+     *write
+     * 
+ * + * bool Write_F3_GPO_LED4 = 2; + */ + public boolean getWriteF3GPOLED4() { + return writeF3GPOLED4_; + } + + public static final int F3_GPO_LED3_FIELD_NUMBER = 3; + private boolean f3GPOLED3_; + /** + * bool F3_GPO_LED3 = 3; + */ + public boolean getF3GPOLED3() { + return f3GPOLED3_; + } + + public static final int WRITE_F3_GPO_LED3_FIELD_NUMBER = 4; + private boolean writeF3GPOLED3_; + /** + * bool Write_F3_GPO_LED3 = 4; + */ + public boolean getWriteF3GPOLED3() { + return writeF3GPOLED3_; + } + + public static final int F3_GPO_LED2_FIELD_NUMBER = 5; + private boolean f3GPOLED2_; + /** + * bool F3_GPO_LED2 = 5; + */ + public boolean getF3GPOLED2() { + return f3GPOLED2_; + } + + public static final int WRITE_F3_GPO_LED2_FIELD_NUMBER = 6; + private boolean writeF3GPOLED2_; + /** + * bool Write_F3_GPO_LED2 = 6; + */ + public boolean getWriteF3GPOLED2() { + return writeF3GPOLED2_; + } + + public static final int F3_GPO_LED1_FIELD_NUMBER = 7; + private boolean f3GPOLED1_; + /** + * bool F3_GPO_LED1 = 7; + */ + public boolean getF3GPOLED1() { + return f3GPOLED1_; + } + + public static final int WRITE_F3_GPO_LED1_FIELD_NUMBER = 8; + private boolean writeF3GPOLED1_; + /** + * bool Write_F3_GPO_LED1 = 8; + */ + public boolean getWriteF3GPOLED1() { + return writeF3GPOLED1_; + } + + public static final int F3_GPO_EXTWINDER_SSR11_CTRL_FIELD_NUMBER = 9; + private boolean f3GPOEXTWINDERSSR11CTRL_; + /** + * bool F3_GPO_EXTWINDER_SSR11_CTRL = 9; + */ + public boolean getF3GPOEXTWINDERSSR11CTRL() { + return f3GPOEXTWINDERSSR11CTRL_; + } + + public static final int WRITE_F3_GPO_EXTWINDER_SSR11_CTRL_FIELD_NUMBER = 10; + private boolean writeF3GPOEXTWINDERSSR11CTRL_; + /** + * bool Write_F3_GPO_EXTWINDER_SSR11_CTRL = 10; + */ + public boolean getWriteF3GPOEXTWINDERSSR11CTRL() { + return writeF3GPOEXTWINDERSSR11CTRL_; + } + + public static final int F3_GPO_BUZZER_FIELD_NUMBER = 11; + private boolean f3GPOBUZZER_; + /** + * bool F3_GPO_BUZZER = 11; + */ + public boolean getF3GPOBUZZER() { + return f3GPOBUZZER_; + } + + public static final int WRITE_F3_GPO_BUZZER_FIELD_NUMBER = 12; + private boolean writeF3GPOBUZZER_; + /** + * bool Write_F3_GPO_BUZZER = 12; + */ + public boolean getWriteF3GPOBUZZER() { + return writeF3GPOBUZZER_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (f3GPOLED4_ != false) { + output.writeBool(1, f3GPOLED4_); + } + if (writeF3GPOLED4_ != false) { + output.writeBool(2, writeF3GPOLED4_); + } + if (f3GPOLED3_ != false) { + output.writeBool(3, f3GPOLED3_); + } + if (writeF3GPOLED3_ != false) { + output.writeBool(4, writeF3GPOLED3_); + } + if (f3GPOLED2_ != false) { + output.writeBool(5, f3GPOLED2_); + } + if (writeF3GPOLED2_ != false) { + output.writeBool(6, writeF3GPOLED2_); + } + if (f3GPOLED1_ != false) { + output.writeBool(7, f3GPOLED1_); + } + if (writeF3GPOLED1_ != false) { + output.writeBool(8, writeF3GPOLED1_); + } + if (f3GPOEXTWINDERSSR11CTRL_ != false) { + output.writeBool(9, f3GPOEXTWINDERSSR11CTRL_); + } + if (writeF3GPOEXTWINDERSSR11CTRL_ != false) { + output.writeBool(10, writeF3GPOEXTWINDERSSR11CTRL_); + } + if (f3GPOBUZZER_ != false) { + output.writeBool(11, f3GPOBUZZER_); + } + if (writeF3GPOBUZZER_ != false) { + output.writeBool(12, writeF3GPOBUZZER_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (f3GPOLED4_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, f3GPOLED4_); + } + if (writeF3GPOLED4_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, writeF3GPOLED4_); + } + if (f3GPOLED3_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, f3GPOLED3_); + } + if (writeF3GPOLED3_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, writeF3GPOLED3_); + } + if (f3GPOLED2_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, f3GPOLED2_); + } + if (writeF3GPOLED2_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, writeF3GPOLED2_); + } + if (f3GPOLED1_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, f3GPOLED1_); + } + if (writeF3GPOLED1_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, writeF3GPOLED1_); + } + if (f3GPOEXTWINDERSSR11CTRL_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, f3GPOEXTWINDERSSR11CTRL_); + } + if (writeF3GPOEXTWINDERSSR11CTRL_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, writeF3GPOEXTWINDERSSR11CTRL_); + } + if (f3GPOBUZZER_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, f3GPOBUZZER_); + } + if (writeF3GPOBUZZER_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, writeF3GPOBUZZER_); + } + 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest other = (com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest) obj; + + boolean result = true; + result = result && (getF3GPOLED4() + == other.getF3GPOLED4()); + result = result && (getWriteF3GPOLED4() + == other.getWriteF3GPOLED4()); + result = result && (getF3GPOLED3() + == other.getF3GPOLED3()); + result = result && (getWriteF3GPOLED3() + == other.getWriteF3GPOLED3()); + result = result && (getF3GPOLED2() + == other.getF3GPOLED2()); + result = result && (getWriteF3GPOLED2() + == other.getWriteF3GPOLED2()); + result = result && (getF3GPOLED1() + == other.getF3GPOLED1()); + result = result && (getWriteF3GPOLED1() + == other.getWriteF3GPOLED1()); + result = result && (getF3GPOEXTWINDERSSR11CTRL() + == other.getF3GPOEXTWINDERSSR11CTRL()); + result = result && (getWriteF3GPOEXTWINDERSSR11CTRL() + == other.getWriteF3GPOEXTWINDERSSR11CTRL()); + result = result && (getF3GPOBUZZER() + == other.getF3GPOBUZZER()); + result = result && (getWriteF3GPOBUZZER() + == other.getWriteF3GPOBUZZER()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + F3_GPO_LED4_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getF3GPOLED4()); + hash = (37 * hash) + WRITE_F3_GPO_LED4_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteF3GPOLED4()); + hash = (37 * hash) + F3_GPO_LED3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getF3GPOLED3()); + hash = (37 * hash) + WRITE_F3_GPO_LED3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteF3GPOLED3()); + hash = (37 * hash) + F3_GPO_LED2_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getF3GPOLED2()); + hash = (37 * hash) + WRITE_F3_GPO_LED2_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteF3GPOLED2()); + hash = (37 * hash) + F3_GPO_LED1_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getF3GPOLED1()); + hash = (37 * hash) + WRITE_F3_GPO_LED1_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteF3GPOLED1()); + hash = (37 * hash) + F3_GPO_EXTWINDER_SSR11_CTRL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getF3GPOEXTWINDERSSR11CTRL()); + hash = (37 * hash) + WRITE_F3_GPO_EXTWINDER_SSR11_CTRL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteF3GPOEXTWINDERSSR11CTRL()); + hash = (37 * hash) + F3_GPO_BUZZER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getF3GPOBUZZER()); + hash = (37 * hash) + WRITE_F3_GPO_BUZZER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWriteF3GPOBUZZER()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubF3Gpo01WriteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubF3Gpo01WriteRequest) + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.class, com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + f3GPOLED4_ = false; + + writeF3GPOLED4_ = false; + + f3GPOLED3_ = false; + + writeF3GPOLED3_ = false; + + f3GPOLED2_ = false; + + writeF3GPOLED2_ = false; + + f3GPOLED1_ = false; + + writeF3GPOLED1_ = false; + + f3GPOEXTWINDERSSR11CTRL_ = false; + + writeF3GPOEXTWINDERSSR11CTRL_ = false; + + f3GPOBUZZER_ = false; + + writeF3GPOBUZZER_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest build() { + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest buildPartial() { + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest result = new com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest(this); + result.f3GPOLED4_ = f3GPOLED4_; + result.writeF3GPOLED4_ = writeF3GPOLED4_; + result.f3GPOLED3_ = f3GPOLED3_; + result.writeF3GPOLED3_ = writeF3GPOLED3_; + result.f3GPOLED2_ = f3GPOLED2_; + result.writeF3GPOLED2_ = writeF3GPOLED2_; + result.f3GPOLED1_ = f3GPOLED1_; + result.writeF3GPOLED1_ = writeF3GPOLED1_; + result.f3GPOEXTWINDERSSR11CTRL_ = f3GPOEXTWINDERSSR11CTRL_; + result.writeF3GPOEXTWINDERSSR11CTRL_ = writeF3GPOEXTWINDERSSR11CTRL_; + result.f3GPOBUZZER_ = f3GPOBUZZER_; + result.writeF3GPOBUZZER_ = writeF3GPOBUZZER_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest other) { + if (other == com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest.getDefaultInstance()) return this; + if (other.getF3GPOLED4() != false) { + setF3GPOLED4(other.getF3GPOLED4()); + } + if (other.getWriteF3GPOLED4() != false) { + setWriteF3GPOLED4(other.getWriteF3GPOLED4()); + } + if (other.getF3GPOLED3() != false) { + setF3GPOLED3(other.getF3GPOLED3()); + } + if (other.getWriteF3GPOLED3() != false) { + setWriteF3GPOLED3(other.getWriteF3GPOLED3()); + } + if (other.getF3GPOLED2() != false) { + setF3GPOLED2(other.getF3GPOLED2()); + } + if (other.getWriteF3GPOLED2() != false) { + setWriteF3GPOLED2(other.getWriteF3GPOLED2()); + } + if (other.getF3GPOLED1() != false) { + setF3GPOLED1(other.getF3GPOLED1()); + } + if (other.getWriteF3GPOLED1() != false) { + setWriteF3GPOLED1(other.getWriteF3GPOLED1()); + } + if (other.getF3GPOEXTWINDERSSR11CTRL() != false) { + setF3GPOEXTWINDERSSR11CTRL(other.getF3GPOEXTWINDERSSR11CTRL()); + } + if (other.getWriteF3GPOEXTWINDERSSR11CTRL() != false) { + setWriteF3GPOEXTWINDERSSR11CTRL(other.getWriteF3GPOEXTWINDERSSR11CTRL()); + } + if (other.getF3GPOBUZZER() != false) { + setF3GPOBUZZER(other.getF3GPOBUZZER()); + } + if (other.getWriteF3GPOBUZZER() != false) { + setWriteF3GPOBUZZER(other.getWriteF3GPOBUZZER()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean f3GPOLED4_ ; + /** + *
+       *value
+       * 
+ * + * bool F3_GPO_LED4 = 1; + */ + public boolean getF3GPOLED4() { + return f3GPOLED4_; + } + /** + *
+       *value
+       * 
+ * + * bool F3_GPO_LED4 = 1; + */ + public Builder setF3GPOLED4(boolean value) { + + f3GPOLED4_ = value; + onChanged(); + return this; + } + /** + *
+       *value
+       * 
+ * + * bool F3_GPO_LED4 = 1; + */ + public Builder clearF3GPOLED4() { + + f3GPOLED4_ = false; + onChanged(); + return this; + } + + private boolean writeF3GPOLED4_ ; + /** + *
+       *write
+       * 
+ * + * bool Write_F3_GPO_LED4 = 2; + */ + public boolean getWriteF3GPOLED4() { + return writeF3GPOLED4_; + } + /** + *
+       *write
+       * 
+ * + * bool Write_F3_GPO_LED4 = 2; + */ + public Builder setWriteF3GPOLED4(boolean value) { + + writeF3GPOLED4_ = value; + onChanged(); + return this; + } + /** + *
+       *write
+       * 
+ * + * bool Write_F3_GPO_LED4 = 2; + */ + public Builder clearWriteF3GPOLED4() { + + writeF3GPOLED4_ = false; + onChanged(); + return this; + } + + private boolean f3GPOLED3_ ; + /** + * bool F3_GPO_LED3 = 3; + */ + public boolean getF3GPOLED3() { + return f3GPOLED3_; + } + /** + * bool F3_GPO_LED3 = 3; + */ + public Builder setF3GPOLED3(boolean value) { + + f3GPOLED3_ = value; + onChanged(); + return this; + } + /** + * bool F3_GPO_LED3 = 3; + */ + public Builder clearF3GPOLED3() { + + f3GPOLED3_ = false; + onChanged(); + return this; + } + + private boolean writeF3GPOLED3_ ; + /** + * bool Write_F3_GPO_LED3 = 4; + */ + public boolean getWriteF3GPOLED3() { + return writeF3GPOLED3_; + } + /** + * bool Write_F3_GPO_LED3 = 4; + */ + public Builder setWriteF3GPOLED3(boolean value) { + + writeF3GPOLED3_ = value; + onChanged(); + return this; + } + /** + * bool Write_F3_GPO_LED3 = 4; + */ + public Builder clearWriteF3GPOLED3() { + + writeF3GPOLED3_ = false; + onChanged(); + return this; + } + + private boolean f3GPOLED2_ ; + /** + * bool F3_GPO_LED2 = 5; + */ + public boolean getF3GPOLED2() { + return f3GPOLED2_; + } + /** + * bool F3_GPO_LED2 = 5; + */ + public Builder setF3GPOLED2(boolean value) { + + f3GPOLED2_ = value; + onChanged(); + return this; + } + /** + * bool F3_GPO_LED2 = 5; + */ + public Builder clearF3GPOLED2() { + + f3GPOLED2_ = false; + onChanged(); + return this; + } + + private boolean writeF3GPOLED2_ ; + /** + * bool Write_F3_GPO_LED2 = 6; + */ + public boolean getWriteF3GPOLED2() { + return writeF3GPOLED2_; + } + /** + * bool Write_F3_GPO_LED2 = 6; + */ + public Builder setWriteF3GPOLED2(boolean value) { + + writeF3GPOLED2_ = value; + onChanged(); + return this; + } + /** + * bool Write_F3_GPO_LED2 = 6; + */ + public Builder clearWriteF3GPOLED2() { + + writeF3GPOLED2_ = false; + onChanged(); + return this; + } + + private boolean f3GPOLED1_ ; + /** + * bool F3_GPO_LED1 = 7; + */ + public boolean getF3GPOLED1() { + return f3GPOLED1_; + } + /** + * bool F3_GPO_LED1 = 7; + */ + public Builder setF3GPOLED1(boolean value) { + + f3GPOLED1_ = value; + onChanged(); + return this; + } + /** + * bool F3_GPO_LED1 = 7; + */ + public Builder clearF3GPOLED1() { + + f3GPOLED1_ = false; + onChanged(); + return this; + } + + private boolean writeF3GPOLED1_ ; + /** + * bool Write_F3_GPO_LED1 = 8; + */ + public boolean getWriteF3GPOLED1() { + return writeF3GPOLED1_; + } + /** + * bool Write_F3_GPO_LED1 = 8; + */ + public Builder setWriteF3GPOLED1(boolean value) { + + writeF3GPOLED1_ = value; + onChanged(); + return this; + } + /** + * bool Write_F3_GPO_LED1 = 8; + */ + public Builder clearWriteF3GPOLED1() { + + writeF3GPOLED1_ = false; + onChanged(); + return this; + } + + private boolean f3GPOEXTWINDERSSR11CTRL_ ; + /** + * bool F3_GPO_EXTWINDER_SSR11_CTRL = 9; + */ + public boolean getF3GPOEXTWINDERSSR11CTRL() { + return f3GPOEXTWINDERSSR11CTRL_; + } + /** + * bool F3_GPO_EXTWINDER_SSR11_CTRL = 9; + */ + public Builder setF3GPOEXTWINDERSSR11CTRL(boolean value) { + + f3GPOEXTWINDERSSR11CTRL_ = value; + onChanged(); + return this; + } + /** + * bool F3_GPO_EXTWINDER_SSR11_CTRL = 9; + */ + public Builder clearF3GPOEXTWINDERSSR11CTRL() { + + f3GPOEXTWINDERSSR11CTRL_ = false; + onChanged(); + return this; + } + + private boolean writeF3GPOEXTWINDERSSR11CTRL_ ; + /** + * bool Write_F3_GPO_EXTWINDER_SSR11_CTRL = 10; + */ + public boolean getWriteF3GPOEXTWINDERSSR11CTRL() { + return writeF3GPOEXTWINDERSSR11CTRL_; + } + /** + * bool Write_F3_GPO_EXTWINDER_SSR11_CTRL = 10; + */ + public Builder setWriteF3GPOEXTWINDERSSR11CTRL(boolean value) { + + writeF3GPOEXTWINDERSSR11CTRL_ = value; + onChanged(); + return this; + } + /** + * bool Write_F3_GPO_EXTWINDER_SSR11_CTRL = 10; + */ + public Builder clearWriteF3GPOEXTWINDERSSR11CTRL() { + + writeF3GPOEXTWINDERSSR11CTRL_ = false; + onChanged(); + return this; + } + + private boolean f3GPOBUZZER_ ; + /** + * bool F3_GPO_BUZZER = 11; + */ + public boolean getF3GPOBUZZER() { + return f3GPOBUZZER_; + } + /** + * bool F3_GPO_BUZZER = 11; + */ + public Builder setF3GPOBUZZER(boolean value) { + + f3GPOBUZZER_ = value; + onChanged(); + return this; + } + /** + * bool F3_GPO_BUZZER = 11; + */ + public Builder clearF3GPOBUZZER() { + + f3GPOBUZZER_ = false; + onChanged(); + return this; + } + + private boolean writeF3GPOBUZZER_ ; + /** + * bool Write_F3_GPO_BUZZER = 12; + */ + public boolean getWriteF3GPOBUZZER() { + return writeF3GPOBUZZER_; + } + /** + * bool Write_F3_GPO_BUZZER = 12; + */ + public Builder setWriteF3GPOBUZZER(boolean value) { + + writeF3GPOBUZZER_ = value; + onChanged(); + return this; + } + /** + * bool Write_F3_GPO_BUZZER = 12; + */ + public Builder clearWriteF3GPOBUZZER() { + + writeF3GPOBUZZER_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubF3Gpo01WriteRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubF3Gpo01WriteRequest) + private static final com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest(); + } + + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubF3Gpo01WriteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubF3Gpo01WriteRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteRequestOuterClass.StubF3Gpo01WriteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_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\035StubF3Gpo01WriteRequest.proto\022\017Tango.P" + + "MR.Stubs\"\335\002\n\027StubF3Gpo01WriteRequest\022\023\n\013" + + "F3_GPO_LED4\030\001 \001(\010\022\031\n\021Write_F3_GPO_LED4\030\002" + + " \001(\010\022\023\n\013F3_GPO_LED3\030\003 \001(\010\022\031\n\021Write_F3_GP" + + "O_LED3\030\004 \001(\010\022\023\n\013F3_GPO_LED2\030\005 \001(\010\022\031\n\021Wri" + + "te_F3_GPO_LED2\030\006 \001(\010\022\023\n\013F3_GPO_LED1\030\007 \001(" + + "\010\022\031\n\021Write_F3_GPO_LED1\030\010 \001(\010\022#\n\033F3_GPO_E" + + "XTWINDER_SSR11_CTRL\030\t \001(\010\022)\n!Write_F3_GP" + + "O_EXTWINDER_SSR11_CTRL\030\n \001(\010\022\025\n\rF3_GPO_B" + + "UZZER\030\013 \001(\010\022\033\n\023Write_F3_GPO_BUZZER\030\014 \001(\010", + "B\033\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteRequest_descriptor, + new java.lang.String[] { "F3GPOLED4", "WriteF3GPOLED4", "F3GPOLED3", "WriteF3GPOLED3", "F3GPOLED2", "WriteF3GPOLED2", "F3GPOLED1", "WriteF3GPOLED1", "F3GPOEXTWINDERSSR11CTRL", "WriteF3GPOEXTWINDERSSR11CTRL", "F3GPOBUZZER", "WriteF3GPOBUZZER", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteResponseOuterClass.java new file mode 100644 index 000000000..489323378 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubF3Gpo01WriteResponseOuterClass.java @@ -0,0 +1,698 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubF3Gpo01WriteResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubF3Gpo01WriteResponseOuterClass { + private StubF3Gpo01WriteResponseOuterClass() {} + 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 StubF3Gpo01WriteResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubF3Gpo01WriteResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 1; + */ + java.lang.String getStatus(); + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 1; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 2; + */ + int getStatusWord(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubF3Gpo01WriteResponse} + */ + public static final class StubF3Gpo01WriteResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubF3Gpo01WriteResponse) + StubF3Gpo01WriteResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubF3Gpo01WriteResponse.newBuilder() to construct. + private StubF3Gpo01WriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubF3Gpo01WriteResponse() { + status_ = ""; + statusWord_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubF3Gpo01WriteResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; + } + case 16: { + + statusWord_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.class, com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.Builder.class); + } + + public static final int STATUS_FIELD_NUMBER = 1; + private volatile java.lang.Object status_; + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 1; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 1; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUSWORD_FIELD_NUMBER = 2; + private int statusWord_; + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 2; + */ + public int getStatusWord() { + return statusWord_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, status_); + } + if (statusWord_ != 0) { + output.writeUInt32(2, statusWord_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, status_); + } + if (statusWord_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, statusWord_); + } + 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse other = (com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse) obj; + + boolean result = true; + result = result && getStatus() + .equals(other.getStatus()); + result = result && (getStatusWord() + == other.getStatusWord()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + STATUSWORD_FIELD_NUMBER; + hash = (53 * hash) + getStatusWord(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse 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 com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubF3Gpo01WriteResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubF3Gpo01WriteResponse) + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.class, com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + status_ = ""; + + statusWord_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse build() { + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse buildPartial() { + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse result = new com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse(this); + result.status_ = status_; + result.statusWord_ = statusWord_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse other) { + if (other == com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse.getDefaultInstance()) return this; + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + onChanged(); + } + if (other.getStatusWord() != 0) { + setStatusWord(other.getStatusWord()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 1; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 1; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 1; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 1; + */ + public Builder clearStatus() { + + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 1; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + status_ = value; + onChanged(); + return this; + } + + private int statusWord_ ; + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 2; + */ + public int getStatusWord() { + return statusWord_; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 2; + */ + public Builder setStatusWord(int value) { + + statusWord_ = value; + onChanged(); + return this; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 2; + */ + public Builder clearStatusWord() { + + statusWord_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubF3Gpo01WriteResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubF3Gpo01WriteResponse) + private static final com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse(); + } + + public static com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubF3Gpo01WriteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubF3Gpo01WriteResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubF3Gpo01WriteResponseOuterClass.StubF3Gpo01WriteResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_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\036StubF3Gpo01WriteResponse.proto\022\017Tango." + + "PMR.Stubs\">\n\030StubF3Gpo01WriteResponse\022\016\n" + + "\006Status\030\001 \001(\t\022\022\n\nStatusWord\030\002 \001(\rB\033\n\031com" + + ".twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubF3Gpo01WriteResponse_descriptor, + new java.lang.String[] { "Status", "StatusWord", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegRequestOuterClass.java new file mode 100644 index 000000000..fec11c3fc --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegRequestOuterClass.java @@ -0,0 +1,608 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubFPGAReadBackRegRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubFPGAReadBackRegRequestOuterClass { + private StubFPGAReadBackRegRequestOuterClass() {} + 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 StubFPGAReadBackRegRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubFPGAReadBackRegRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + int getFPGAId(); + + /** + *
+     * 16 bit
+     * 
+ * + * uint32 Value = 2; + */ + int getValue(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubFPGAReadBackRegRequest} + */ + public static final class StubFPGAReadBackRegRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubFPGAReadBackRegRequest) + StubFPGAReadBackRegRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubFPGAReadBackRegRequest.newBuilder() to construct. + private StubFPGAReadBackRegRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubFPGAReadBackRegRequest() { + fPGAId_ = 0; + value_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubFPGAReadBackRegRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + fPGAId_ = input.readUInt32(); + break; + } + case 16: { + + value_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.class, com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.Builder.class); + } + + public static final int FPGAID_FIELD_NUMBER = 1; + private int fPGAId_; + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private int value_; + /** + *
+     * 16 bit
+     * 
+ * + * uint32 Value = 2; + */ + public int getValue() { + return value_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fPGAId_ != 0) { + output.writeUInt32(1, fPGAId_); + } + if (value_ != 0) { + output.writeUInt32(2, value_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fPGAId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, fPGAId_); + } + if (value_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, value_); + } + 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest other = (com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest) obj; + + boolean result = true; + result = result && (getFPGAId() + == other.getFPGAId()); + result = result && (getValue() + == other.getValue()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FPGAID_FIELD_NUMBER; + hash = (53 * hash) + getFPGAId(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubFPGAReadBackRegRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubFPGAReadBackRegRequest) + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.class, com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + fPGAId_ = 0; + + value_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest build() { + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest buildPartial() { + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest result = new com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest(this); + result.fPGAId_ = fPGAId_; + result.value_ = value_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest other) { + if (other == com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest.getDefaultInstance()) return this; + if (other.getFPGAId() != 0) { + setFPGAId(other.getFPGAId()); + } + if (other.getValue() != 0) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int fPGAId_ ; + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder setFPGAId(int value) { + + fPGAId_ = value; + onChanged(); + return this; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder clearFPGAId() { + + fPGAId_ = 0; + onChanged(); + return this; + } + + private int value_ ; + /** + *
+       * 16 bit
+       * 
+ * + * uint32 Value = 2; + */ + public int getValue() { + return value_; + } + /** + *
+       * 16 bit
+       * 
+ * + * uint32 Value = 2; + */ + public Builder setValue(int value) { + + value_ = value; + onChanged(); + return this; + } + /** + *
+       * 16 bit
+       * 
+ * + * uint32 Value = 2; + */ + public Builder clearValue() { + + value_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubFPGAReadBackRegRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubFPGAReadBackRegRequest) + private static final com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest(); + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubFPGAReadBackRegRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubFPGAReadBackRegRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegRequestOuterClass.StubFPGAReadBackRegRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_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 StubFPGAReadBackRegRequest.proto\022\017Tang" + + "o.PMR.Stubs\";\n\032StubFPGAReadBackRegReques" + + "t\022\016\n\006FPGAId\030\001 \001(\r\022\r\n\005Value\030\002 \001(\rB\033\n\031com." + + "twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegRequest_descriptor, + new java.lang.String[] { "FPGAId", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegResponseOuterClass.java new file mode 100644 index 000000000..44a9f3cb8 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadBackRegResponseOuterClass.java @@ -0,0 +1,865 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubFPGAReadBackRegResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubFPGAReadBackRegResponseOuterClass { + private StubFPGAReadBackRegResponseOuterClass() {} + 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 StubFPGAReadBackRegResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubFPGAReadBackRegResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + int getFPGAId(); + + /** + *
+     * 16 bit
+     * 
+ * + * uint32 ReadBackValue = 2; + */ + int getReadBackValue(); + + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 4; + */ + java.lang.String getStatus(); + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 4; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 5; + */ + int getStatusWord(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubFPGAReadBackRegResponse} + */ + public static final class StubFPGAReadBackRegResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubFPGAReadBackRegResponse) + StubFPGAReadBackRegResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubFPGAReadBackRegResponse.newBuilder() to construct. + private StubFPGAReadBackRegResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubFPGAReadBackRegResponse() { + fPGAId_ = 0; + readBackValue_ = 0; + status_ = ""; + statusWord_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubFPGAReadBackRegResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + fPGAId_ = input.readUInt32(); + break; + } + case 16: { + + readBackValue_ = input.readUInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; + } + case 40: { + + statusWord_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.class, com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.Builder.class); + } + + public static final int FPGAID_FIELD_NUMBER = 1; + private int fPGAId_; + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + + public static final int READBACKVALUE_FIELD_NUMBER = 2; + private int readBackValue_; + /** + *
+     * 16 bit
+     * 
+ * + * uint32 ReadBackValue = 2; + */ + public int getReadBackValue() { + return readBackValue_; + } + + public static final int STATUS_FIELD_NUMBER = 4; + private volatile java.lang.Object status_; + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 4; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 4; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUSWORD_FIELD_NUMBER = 5; + private int statusWord_; + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 5; + */ + public int getStatusWord() { + return statusWord_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fPGAId_ != 0) { + output.writeUInt32(1, fPGAId_); + } + if (readBackValue_ != 0) { + output.writeUInt32(2, readBackValue_); + } + if (!getStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + } + if (statusWord_ != 0) { + output.writeUInt32(5, statusWord_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fPGAId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, fPGAId_); + } + if (readBackValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, readBackValue_); + } + if (!getStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + } + if (statusWord_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, statusWord_); + } + 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse other = (com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse) obj; + + boolean result = true; + result = result && (getFPGAId() + == other.getFPGAId()); + result = result && (getReadBackValue() + == other.getReadBackValue()); + result = result && getStatus() + .equals(other.getStatus()); + result = result && (getStatusWord() + == other.getStatusWord()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FPGAID_FIELD_NUMBER; + hash = (53 * hash) + getFPGAId(); + hash = (37 * hash) + READBACKVALUE_FIELD_NUMBER; + hash = (53 * hash) + getReadBackValue(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + STATUSWORD_FIELD_NUMBER; + hash = (53 * hash) + getStatusWord(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse 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 com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubFPGAReadBackRegResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubFPGAReadBackRegResponse) + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.class, com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + fPGAId_ = 0; + + readBackValue_ = 0; + + status_ = ""; + + statusWord_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse build() { + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse buildPartial() { + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse result = new com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse(this); + result.fPGAId_ = fPGAId_; + result.readBackValue_ = readBackValue_; + result.status_ = status_; + result.statusWord_ = statusWord_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse other) { + if (other == com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse.getDefaultInstance()) return this; + if (other.getFPGAId() != 0) { + setFPGAId(other.getFPGAId()); + } + if (other.getReadBackValue() != 0) { + setReadBackValue(other.getReadBackValue()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + onChanged(); + } + if (other.getStatusWord() != 0) { + setStatusWord(other.getStatusWord()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int fPGAId_ ; + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder setFPGAId(int value) { + + fPGAId_ = value; + onChanged(); + return this; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder clearFPGAId() { + + fPGAId_ = 0; + onChanged(); + return this; + } + + private int readBackValue_ ; + /** + *
+       * 16 bit
+       * 
+ * + * uint32 ReadBackValue = 2; + */ + public int getReadBackValue() { + return readBackValue_; + } + /** + *
+       * 16 bit
+       * 
+ * + * uint32 ReadBackValue = 2; + */ + public Builder setReadBackValue(int value) { + + readBackValue_ = value; + onChanged(); + return this; + } + /** + *
+       * 16 bit
+       * 
+ * + * uint32 ReadBackValue = 2; + */ + public Builder clearReadBackValue() { + + readBackValue_ = 0; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 4; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 4; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 4; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 4; + */ + public Builder clearStatus() { + + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 4; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + status_ = value; + onChanged(); + return this; + } + + private int statusWord_ ; + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 5; + */ + public int getStatusWord() { + return statusWord_; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 5; + */ + public Builder setStatusWord(int value) { + + statusWord_ = value; + onChanged(); + return this; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 5; + */ + public Builder clearStatusWord() { + + statusWord_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubFPGAReadBackRegResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubFPGAReadBackRegResponse) + private static final com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse(); + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubFPGAReadBackRegResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubFPGAReadBackRegResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadBackRegResponseOuterClass.StubFPGAReadBackRegResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_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!StubFPGAReadBackRegResponse.proto\022\017Tan" + + "go.PMR.Stubs\"h\n\033StubFPGAReadBackRegRespo" + + "nse\022\016\n\006FPGAId\030\001 \001(\r\022\025\n\rReadBackValue\030\002 \001" + + "(\r\022\016\n\006Status\030\004 \001(\t\022\022\n\nStatusWord\030\005 \001(\rB\033" + + "\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubFPGAReadBackRegResponse_descriptor, + new java.lang.String[] { "FPGAId", "ReadBackValue", "Status", "StatusWord", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionRequestOuterClass.java new file mode 100644 index 000000000..a269461d1 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionRequestOuterClass.java @@ -0,0 +1,525 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubFPGAReadVersionRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubFPGAReadVersionRequestOuterClass { + private StubFPGAReadVersionRequestOuterClass() {} + 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 StubFPGAReadVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubFPGAReadVersionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + int getFPGAId(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubFPGAReadVersionRequest} + */ + public static final class StubFPGAReadVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubFPGAReadVersionRequest) + StubFPGAReadVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubFPGAReadVersionRequest.newBuilder() to construct. + private StubFPGAReadVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubFPGAReadVersionRequest() { + fPGAId_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubFPGAReadVersionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + fPGAId_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.class, com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.Builder.class); + } + + public static final int FPGAID_FIELD_NUMBER = 1; + private int fPGAId_; + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fPGAId_ != 0) { + output.writeUInt32(1, fPGAId_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fPGAId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, fPGAId_); + } + 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest other = (com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest) obj; + + boolean result = true; + result = result && (getFPGAId() + == other.getFPGAId()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FPGAID_FIELD_NUMBER; + hash = (53 * hash) + getFPGAId(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubFPGAReadVersionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubFPGAReadVersionRequest) + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.class, com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + fPGAId_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest build() { + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest buildPartial() { + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest result = new com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest(this); + result.fPGAId_ = fPGAId_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest other) { + if (other == com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest.getDefaultInstance()) return this; + if (other.getFPGAId() != 0) { + setFPGAId(other.getFPGAId()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int fPGAId_ ; + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder setFPGAId(int value) { + + fPGAId_ = value; + onChanged(); + return this; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder clearFPGAId() { + + fPGAId_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubFPGAReadVersionRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubFPGAReadVersionRequest) + private static final com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest(); + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubFPGAReadVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubFPGAReadVersionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionRequestOuterClass.StubFPGAReadVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_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 StubFPGAReadVersionRequest.proto\022\017Tang" + + "o.PMR.Stubs\",\n\032StubFPGAReadVersionReques" + + "t\022\016\n\006FPGAId\030\001 \001(\rB\033\n\031com.twine.tango.pmr" + + ".stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionRequest_descriptor, + new java.lang.String[] { "FPGAId", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionResponseOuterClass.java new file mode 100644 index 000000000..2ac79179f --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubFPGAReadVersionResponseOuterClass.java @@ -0,0 +1,1035 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubFPGAReadVersionResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubFPGAReadVersionResponseOuterClass { + private StubFPGAReadVersionResponseOuterClass() {} + 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 StubFPGAReadVersionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubFPGAReadVersionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + int getFPGAId(); + + /** + * uint32 Day = 2; + */ + int getDay(); + + /** + * uint32 Month = 3; + */ + int getMonth(); + + /** + * uint32 Year = 4; + */ + int getYear(); + + /** + * uint32 Ver_num = 5; + */ + int getVerNum(); + + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 6; + */ + java.lang.String getStatus(); + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 6; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 7; + */ + int getStatusWord(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubFPGAReadVersionResponse} + */ + public static final class StubFPGAReadVersionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubFPGAReadVersionResponse) + StubFPGAReadVersionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubFPGAReadVersionResponse.newBuilder() to construct. + private StubFPGAReadVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubFPGAReadVersionResponse() { + fPGAId_ = 0; + day_ = 0; + month_ = 0; + year_ = 0; + verNum_ = 0; + status_ = ""; + statusWord_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubFPGAReadVersionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + fPGAId_ = input.readUInt32(); + break; + } + case 16: { + + day_ = input.readUInt32(); + break; + } + case 24: { + + month_ = input.readUInt32(); + break; + } + case 32: { + + year_ = input.readUInt32(); + break; + } + case 40: { + + verNum_ = input.readUInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; + } + case 56: { + + statusWord_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.class, com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.Builder.class); + } + + public static final int FPGAID_FIELD_NUMBER = 1; + private int fPGAId_; + /** + *
+     * 0..2
+     * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + + public static final int DAY_FIELD_NUMBER = 2; + private int day_; + /** + * uint32 Day = 2; + */ + public int getDay() { + return day_; + } + + public static final int MONTH_FIELD_NUMBER = 3; + private int month_; + /** + * uint32 Month = 3; + */ + public int getMonth() { + return month_; + } + + public static final int YEAR_FIELD_NUMBER = 4; + private int year_; + /** + * uint32 Year = 4; + */ + public int getYear() { + return year_; + } + + public static final int VER_NUM_FIELD_NUMBER = 5; + private int verNum_; + /** + * uint32 Ver_num = 5; + */ + public int getVerNum() { + return verNum_; + } + + public static final int STATUS_FIELD_NUMBER = 6; + private volatile java.lang.Object status_; + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 6; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 6; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUSWORD_FIELD_NUMBER = 7; + private int statusWord_; + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 7; + */ + public int getStatusWord() { + return statusWord_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (fPGAId_ != 0) { + output.writeUInt32(1, fPGAId_); + } + if (day_ != 0) { + output.writeUInt32(2, day_); + } + if (month_ != 0) { + output.writeUInt32(3, month_); + } + if (year_ != 0) { + output.writeUInt32(4, year_); + } + if (verNum_ != 0) { + output.writeUInt32(5, verNum_); + } + if (!getStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, status_); + } + if (statusWord_ != 0) { + output.writeUInt32(7, statusWord_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fPGAId_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, fPGAId_); + } + if (day_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, day_); + } + if (month_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, month_); + } + if (year_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, year_); + } + if (verNum_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, verNum_); + } + if (!getStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, status_); + } + if (statusWord_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, statusWord_); + } + 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse other = (com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse) obj; + + boolean result = true; + result = result && (getFPGAId() + == other.getFPGAId()); + result = result && (getDay() + == other.getDay()); + result = result && (getMonth() + == other.getMonth()); + result = result && (getYear() + == other.getYear()); + result = result && (getVerNum() + == other.getVerNum()); + result = result && getStatus() + .equals(other.getStatus()); + result = result && (getStatusWord() + == other.getStatusWord()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FPGAID_FIELD_NUMBER; + hash = (53 * hash) + getFPGAId(); + hash = (37 * hash) + DAY_FIELD_NUMBER; + hash = (53 * hash) + getDay(); + hash = (37 * hash) + MONTH_FIELD_NUMBER; + hash = (53 * hash) + getMonth(); + hash = (37 * hash) + YEAR_FIELD_NUMBER; + hash = (53 * hash) + getYear(); + hash = (37 * hash) + VER_NUM_FIELD_NUMBER; + hash = (53 * hash) + getVerNum(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + STATUSWORD_FIELD_NUMBER; + hash = (53 * hash) + getStatusWord(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse 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 com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubFPGAReadVersionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubFPGAReadVersionResponse) + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.class, com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + fPGAId_ = 0; + + day_ = 0; + + month_ = 0; + + year_ = 0; + + verNum_ = 0; + + status_ = ""; + + statusWord_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse build() { + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse buildPartial() { + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse result = new com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse(this); + result.fPGAId_ = fPGAId_; + result.day_ = day_; + result.month_ = month_; + result.year_ = year_; + result.verNum_ = verNum_; + result.status_ = status_; + result.statusWord_ = statusWord_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse other) { + if (other == com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse.getDefaultInstance()) return this; + if (other.getFPGAId() != 0) { + setFPGAId(other.getFPGAId()); + } + if (other.getDay() != 0) { + setDay(other.getDay()); + } + if (other.getMonth() != 0) { + setMonth(other.getMonth()); + } + if (other.getYear() != 0) { + setYear(other.getYear()); + } + if (other.getVerNum() != 0) { + setVerNum(other.getVerNum()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + onChanged(); + } + if (other.getStatusWord() != 0) { + setStatusWord(other.getStatusWord()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int fPGAId_ ; + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public int getFPGAId() { + return fPGAId_; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder setFPGAId(int value) { + + fPGAId_ = value; + onChanged(); + return this; + } + /** + *
+       * 0..2
+       * 
+ * + * uint32 FPGAId = 1; + */ + public Builder clearFPGAId() { + + fPGAId_ = 0; + onChanged(); + return this; + } + + private int day_ ; + /** + * uint32 Day = 2; + */ + public int getDay() { + return day_; + } + /** + * uint32 Day = 2; + */ + public Builder setDay(int value) { + + day_ = value; + onChanged(); + return this; + } + /** + * uint32 Day = 2; + */ + public Builder clearDay() { + + day_ = 0; + onChanged(); + return this; + } + + private int month_ ; + /** + * uint32 Month = 3; + */ + public int getMonth() { + return month_; + } + /** + * uint32 Month = 3; + */ + public Builder setMonth(int value) { + + month_ = value; + onChanged(); + return this; + } + /** + * uint32 Month = 3; + */ + public Builder clearMonth() { + + month_ = 0; + onChanged(); + return this; + } + + private int year_ ; + /** + * uint32 Year = 4; + */ + public int getYear() { + return year_; + } + /** + * uint32 Year = 4; + */ + public Builder setYear(int value) { + + year_ = value; + onChanged(); + return this; + } + /** + * uint32 Year = 4; + */ + public Builder clearYear() { + + year_ = 0; + onChanged(); + return this; + } + + private int verNum_ ; + /** + * uint32 Ver_num = 5; + */ + public int getVerNum() { + return verNum_; + } + /** + * uint32 Ver_num = 5; + */ + public Builder setVerNum(int value) { + + verNum_ = value; + onChanged(); + return this; + } + /** + * uint32 Ver_num = 5; + */ + public Builder clearVerNum() { + + verNum_ = 0; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 6; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 6; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 6; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 6; + */ + public Builder clearStatus() { + + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 6; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + status_ = value; + onChanged(); + return this; + } + + private int statusWord_ ; + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 7; + */ + public int getStatusWord() { + return statusWord_; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 7; + */ + public Builder setStatusWord(int value) { + + statusWord_ = value; + onChanged(); + return this; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 7; + */ + public Builder clearStatusWord() { + + statusWord_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubFPGAReadVersionResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubFPGAReadVersionResponse) + private static final com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse(); + } + + public static com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubFPGAReadVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubFPGAReadVersionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubFPGAReadVersionResponseOuterClass.StubFPGAReadVersionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_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!StubFPGAReadVersionResponse.proto\022\017Tan" + + "go.PMR.Stubs\"\214\001\n\033StubFPGAReadVersionResp" + + "onse\022\016\n\006FPGAId\030\001 \001(\r\022\013\n\003Day\030\002 \001(\r\022\r\n\005Mon" + + "th\030\003 \001(\r\022\014\n\004Year\030\004 \001(\r\022\017\n\007Ver_num\030\005 \001(\r\022" + + "\016\n\006Status\030\006 \001(\t\022\022\n\nStatusWord\030\007 \001(\rB\033\n\031c" + + "om.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubFPGAReadVersionResponse_descriptor, + new java.lang.String[] { "FPGAId", "Day", "Month", "Year", "VerNum", "Status", "StatusWord", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionRequestOuterClass.java new file mode 100644 index 000000000..e6052c209 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionRequestOuterClass.java @@ -0,0 +1,440 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHWVersionRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubHWVersionRequestOuterClass { + private StubHWVersionRequestOuterClass() {} + 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 StubHWVersionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubHWVersionRequest) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubHWVersionRequest} + */ + public static final class StubHWVersionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubHWVersionRequest) + StubHWVersionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubHWVersionRequest.newBuilder() to construct. + private StubHWVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubHWVersionRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubHWVersionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + 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 com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.class, com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest other = (com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest 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 com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest 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 com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubHWVersionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubHWVersionRequest) + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.class, com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest build() { + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest buildPartial() { + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest result = new com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest(this); + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest other) { + if (other == com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubHWVersionRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubHWVersionRequest) + private static final com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest(); + } + + public static com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubHWVersionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubHWVersionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubHWVersionRequestOuterClass.StubHWVersionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubHWVersionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubHWVersionRequest_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\032StubHWVersionRequest.proto\022\017Tango.PMR." + + "Stubs\"\026\n\024StubHWVersionRequestB\033\n\031com.twi" + + "ne.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubHWVersionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubHWVersionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubHWVersionRequest_descriptor, + new java.lang.String[] { }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionResponseOuterClass.java new file mode 100644 index 000000000..1b50b8345 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubHWVersionResponseOuterClass.java @@ -0,0 +1,825 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubHWVersionResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubHWVersionResponseOuterClass { + private StubHWVersionResponseOuterClass() {} + 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 StubHWVersionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubHWVersionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 BRD_ID = 1; + */ + int getBRDID(); + + /** + * uint32 ASSY_ID = 2; + */ + int getASSYID(); + + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 3; + */ + java.lang.String getStatus(); + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 3; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 4; + */ + int getStatusWord(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubHWVersionResponse} + */ + public static final class StubHWVersionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubHWVersionResponse) + StubHWVersionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubHWVersionResponse.newBuilder() to construct. + private StubHWVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubHWVersionResponse() { + bRDID_ = 0; + aSSYID_ = 0; + status_ = ""; + statusWord_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubHWVersionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + bRDID_ = input.readUInt32(); + break; + } + case 16: { + + aSSYID_ = input.readUInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; + } + case 32: { + + statusWord_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.class, com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.Builder.class); + } + + public static final int BRD_ID_FIELD_NUMBER = 1; + private int bRDID_; + /** + * uint32 BRD_ID = 1; + */ + public int getBRDID() { + return bRDID_; + } + + public static final int ASSY_ID_FIELD_NUMBER = 2; + private int aSSYID_; + /** + * uint32 ASSY_ID = 2; + */ + public int getASSYID() { + return aSSYID_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private volatile java.lang.Object status_; + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 3; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 3; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUSWORD_FIELD_NUMBER = 4; + private int statusWord_; + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 4; + */ + public int getStatusWord() { + return statusWord_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (bRDID_ != 0) { + output.writeUInt32(1, bRDID_); + } + if (aSSYID_ != 0) { + output.writeUInt32(2, aSSYID_); + } + if (!getStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, status_); + } + if (statusWord_ != 0) { + output.writeUInt32(4, statusWord_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bRDID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, bRDID_); + } + if (aSSYID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, aSSYID_); + } + if (!getStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, status_); + } + if (statusWord_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, statusWord_); + } + 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 com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse other = (com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse) obj; + + boolean result = true; + result = result && (getBRDID() + == other.getBRDID()); + result = result && (getASSYID() + == other.getASSYID()); + result = result && getStatus() + .equals(other.getStatus()); + result = result && (getStatusWord() + == other.getStatusWord()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BRD_ID_FIELD_NUMBER; + hash = (53 * hash) + getBRDID(); + hash = (37 * hash) + ASSY_ID_FIELD_NUMBER; + hash = (53 * hash) + getASSYID(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + STATUSWORD_FIELD_NUMBER; + hash = (53 * hash) + getStatusWord(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse 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 com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse 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 com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubHWVersionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubHWVersionResponse) + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.class, com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + bRDID_ = 0; + + aSSYID_ = 0; + + status_ = ""; + + statusWord_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubHWVersionResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse build() { + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse buildPartial() { + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse result = new com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse(this); + result.bRDID_ = bRDID_; + result.aSSYID_ = aSSYID_; + result.status_ = status_; + result.statusWord_ = statusWord_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse other) { + if (other == com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse.getDefaultInstance()) return this; + if (other.getBRDID() != 0) { + setBRDID(other.getBRDID()); + } + if (other.getASSYID() != 0) { + setASSYID(other.getASSYID()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + onChanged(); + } + if (other.getStatusWord() != 0) { + setStatusWord(other.getStatusWord()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bRDID_ ; + /** + * uint32 BRD_ID = 1; + */ + public int getBRDID() { + return bRDID_; + } + /** + * uint32 BRD_ID = 1; + */ + public Builder setBRDID(int value) { + + bRDID_ = value; + onChanged(); + return this; + } + /** + * uint32 BRD_ID = 1; + */ + public Builder clearBRDID() { + + bRDID_ = 0; + onChanged(); + return this; + } + + private int aSSYID_ ; + /** + * uint32 ASSY_ID = 2; + */ + public int getASSYID() { + return aSSYID_; + } + /** + * uint32 ASSY_ID = 2; + */ + public Builder setASSYID(int value) { + + aSSYID_ = value; + onChanged(); + return this; + } + /** + * uint32 ASSY_ID = 2; + */ + public Builder clearASSYID() { + + aSSYID_ = 0; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 3; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 3; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 3; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 3; + */ + public Builder clearStatus() { + + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 3; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + status_ = value; + onChanged(); + return this; + } + + private int statusWord_ ; + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 4; + */ + public int getStatusWord() { + return statusWord_; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 4; + */ + public Builder setStatusWord(int value) { + + statusWord_ = value; + onChanged(); + return this; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 4; + */ + public Builder clearStatusWord() { + + statusWord_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubHWVersionResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubHWVersionResponse) + private static final com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse(); + } + + public static com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubHWVersionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubHWVersionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubHWVersionResponseOuterClass.StubHWVersionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubHWVersionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubHWVersionResponse_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\033StubHWVersionResponse.proto\022\017Tango.PMR" + + ".Stubs\"\\\n\025StubHWVersionResponse\022\016\n\006BRD_I" + + "D\030\001 \001(\r\022\017\n\007ASSY_ID\030\002 \001(\r\022\016\n\006Status\030\003 \001(\t" + + "\022\022\n\nStatusWord\030\004 \001(\rB\033\n\031com.twine.tango." + + "pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubHWVersionResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubHWVersionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubHWVersionResponse_descriptor, + new java.lang.String[] { "BRDID", "ASSYID", "Status", "StatusWord", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverRequestOuterClass.java new file mode 100644 index 000000000..b4d9f41dc --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverRequestOuterClass.java @@ -0,0 +1,1720 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubL6470DriverRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubL6470DriverRequestOuterClass { + private StubL6470DriverRequestOuterClass() {} + 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 StubL6470DriverRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubL6470DriverRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Run_Value = 1; + */ + int getRunValue(); + + /** + * uint32 Mov_Value = 2; + */ + int getMovValue(); + + /** + * bool Direction = 3; + */ + boolean getDirection(); + + /** + * uint32 Time_2_Change_Direction = 4; + */ + int getTime2ChangeDirection(); + + /** + * bool Display_Tx_ON_LCD = 5; + */ + boolean getDisplayTxONLCD(); + + /** + * bool Display_Rx_on_LCD = 6; + */ + boolean getDisplayRxOnLCD(); + + /** + * uint32 Init_MicroStep = 7; + */ + int getInitMicroStep(); + + /** + * uint32 Init_Acc = 8; + */ + int getInitAcc(); + + /** + * uint32 Init_Dec = 9; + */ + int getInitDec(); + + /** + * bool TestBool_1 = 10; + */ + boolean getTestBool1(); + + /** + * bool TestBool_2 = 11; + */ + boolean getTestBool2(); + + /** + * bool TestBool_3 = 12; + */ + boolean getTestBool3(); + + /** + * bool TestBool_4 = 13; + */ + boolean getTestBool4(); + + /** + * bool TestBool_5 = 14; + */ + boolean getTestBool5(); + + /** + * uint32 TestUint32_1 = 15; + */ + int getTestUint321(); + + /** + * uint32 TestUint32_2 = 16; + */ + int getTestUint322(); + + /** + * uint32 TestUint32_3 = 17; + */ + int getTestUint323(); + + /** + * uint32 TestUint32_4 = 18; + */ + int getTestUint324(); + + /** + * uint32 TestUint32_5 = 19; + */ + int getTestUint325(); + + /** + * uint32 TestUint32_6 = 20; + */ + int getTestUint326(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubL6470DriverRequest} + */ + public static final class StubL6470DriverRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubL6470DriverRequest) + StubL6470DriverRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubL6470DriverRequest.newBuilder() to construct. + private StubL6470DriverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubL6470DriverRequest() { + runValue_ = 0; + movValue_ = 0; + direction_ = false; + time2ChangeDirection_ = 0; + displayTxONLCD_ = false; + displayRxOnLCD_ = false; + initMicroStep_ = 0; + initAcc_ = 0; + initDec_ = 0; + testBool1_ = false; + testBool2_ = false; + testBool3_ = false; + testBool4_ = false; + testBool5_ = false; + testUint321_ = 0; + testUint322_ = 0; + testUint323_ = 0; + testUint324_ = 0; + testUint325_ = 0; + testUint326_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubL6470DriverRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + runValue_ = input.readUInt32(); + break; + } + case 16: { + + movValue_ = input.readUInt32(); + break; + } + case 24: { + + direction_ = input.readBool(); + break; + } + case 32: { + + time2ChangeDirection_ = input.readUInt32(); + break; + } + case 40: { + + displayTxONLCD_ = input.readBool(); + break; + } + case 48: { + + displayRxOnLCD_ = input.readBool(); + break; + } + case 56: { + + initMicroStep_ = input.readUInt32(); + break; + } + case 64: { + + initAcc_ = input.readUInt32(); + break; + } + case 72: { + + initDec_ = input.readUInt32(); + break; + } + case 80: { + + testBool1_ = input.readBool(); + break; + } + case 88: { + + testBool2_ = input.readBool(); + break; + } + case 96: { + + testBool3_ = input.readBool(); + break; + } + case 104: { + + testBool4_ = input.readBool(); + break; + } + case 112: { + + testBool5_ = input.readBool(); + break; + } + case 120: { + + testUint321_ = input.readUInt32(); + break; + } + case 128: { + + testUint322_ = input.readUInt32(); + break; + } + case 136: { + + testUint323_ = input.readUInt32(); + break; + } + case 144: { + + testUint324_ = input.readUInt32(); + break; + } + case 152: { + + testUint325_ = input.readUInt32(); + break; + } + case 160: { + + testUint326_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.class, com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.Builder.class); + } + + public static final int RUN_VALUE_FIELD_NUMBER = 1; + private int runValue_; + /** + * uint32 Run_Value = 1; + */ + public int getRunValue() { + return runValue_; + } + + public static final int MOV_VALUE_FIELD_NUMBER = 2; + private int movValue_; + /** + * uint32 Mov_Value = 2; + */ + public int getMovValue() { + return movValue_; + } + + public static final int DIRECTION_FIELD_NUMBER = 3; + private boolean direction_; + /** + * bool Direction = 3; + */ + public boolean getDirection() { + return direction_; + } + + public static final int TIME_2_CHANGE_DIRECTION_FIELD_NUMBER = 4; + private int time2ChangeDirection_; + /** + * uint32 Time_2_Change_Direction = 4; + */ + public int getTime2ChangeDirection() { + return time2ChangeDirection_; + } + + public static final int DISPLAY_TX_ON_LCD_FIELD_NUMBER = 5; + private boolean displayTxONLCD_; + /** + * bool Display_Tx_ON_LCD = 5; + */ + public boolean getDisplayTxONLCD() { + return displayTxONLCD_; + } + + public static final int DISPLAY_RX_ON_LCD_FIELD_NUMBER = 6; + private boolean displayRxOnLCD_; + /** + * bool Display_Rx_on_LCD = 6; + */ + public boolean getDisplayRxOnLCD() { + return displayRxOnLCD_; + } + + public static final int INIT_MICROSTEP_FIELD_NUMBER = 7; + private int initMicroStep_; + /** + * uint32 Init_MicroStep = 7; + */ + public int getInitMicroStep() { + return initMicroStep_; + } + + public static final int INIT_ACC_FIELD_NUMBER = 8; + private int initAcc_; + /** + * uint32 Init_Acc = 8; + */ + public int getInitAcc() { + return initAcc_; + } + + public static final int INIT_DEC_FIELD_NUMBER = 9; + private int initDec_; + /** + * uint32 Init_Dec = 9; + */ + public int getInitDec() { + return initDec_; + } + + public static final int TESTBOOL_1_FIELD_NUMBER = 10; + private boolean testBool1_; + /** + * bool TestBool_1 = 10; + */ + public boolean getTestBool1() { + return testBool1_; + } + + public static final int TESTBOOL_2_FIELD_NUMBER = 11; + private boolean testBool2_; + /** + * bool TestBool_2 = 11; + */ + public boolean getTestBool2() { + return testBool2_; + } + + public static final int TESTBOOL_3_FIELD_NUMBER = 12; + private boolean testBool3_; + /** + * bool TestBool_3 = 12; + */ + public boolean getTestBool3() { + return testBool3_; + } + + public static final int TESTBOOL_4_FIELD_NUMBER = 13; + private boolean testBool4_; + /** + * bool TestBool_4 = 13; + */ + public boolean getTestBool4() { + return testBool4_; + } + + public static final int TESTBOOL_5_FIELD_NUMBER = 14; + private boolean testBool5_; + /** + * bool TestBool_5 = 14; + */ + public boolean getTestBool5() { + return testBool5_; + } + + public static final int TESTUINT32_1_FIELD_NUMBER = 15; + private int testUint321_; + /** + * uint32 TestUint32_1 = 15; + */ + public int getTestUint321() { + return testUint321_; + } + + public static final int TESTUINT32_2_FIELD_NUMBER = 16; + private int testUint322_; + /** + * uint32 TestUint32_2 = 16; + */ + public int getTestUint322() { + return testUint322_; + } + + public static final int TESTUINT32_3_FIELD_NUMBER = 17; + private int testUint323_; + /** + * uint32 TestUint32_3 = 17; + */ + public int getTestUint323() { + return testUint323_; + } + + public static final int TESTUINT32_4_FIELD_NUMBER = 18; + private int testUint324_; + /** + * uint32 TestUint32_4 = 18; + */ + public int getTestUint324() { + return testUint324_; + } + + public static final int TESTUINT32_5_FIELD_NUMBER = 19; + private int testUint325_; + /** + * uint32 TestUint32_5 = 19; + */ + public int getTestUint325() { + return testUint325_; + } + + public static final int TESTUINT32_6_FIELD_NUMBER = 20; + private int testUint326_; + /** + * uint32 TestUint32_6 = 20; + */ + public int getTestUint326() { + return testUint326_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (runValue_ != 0) { + output.writeUInt32(1, runValue_); + } + if (movValue_ != 0) { + output.writeUInt32(2, movValue_); + } + if (direction_ != false) { + output.writeBool(3, direction_); + } + if (time2ChangeDirection_ != 0) { + output.writeUInt32(4, time2ChangeDirection_); + } + if (displayTxONLCD_ != false) { + output.writeBool(5, displayTxONLCD_); + } + if (displayRxOnLCD_ != false) { + output.writeBool(6, displayRxOnLCD_); + } + if (initMicroStep_ != 0) { + output.writeUInt32(7, initMicroStep_); + } + if (initAcc_ != 0) { + output.writeUInt32(8, initAcc_); + } + if (initDec_ != 0) { + output.writeUInt32(9, initDec_); + } + if (testBool1_ != false) { + output.writeBool(10, testBool1_); + } + if (testBool2_ != false) { + output.writeBool(11, testBool2_); + } + if (testBool3_ != false) { + output.writeBool(12, testBool3_); + } + if (testBool4_ != false) { + output.writeBool(13, testBool4_); + } + if (testBool5_ != false) { + output.writeBool(14, testBool5_); + } + if (testUint321_ != 0) { + output.writeUInt32(15, testUint321_); + } + if (testUint322_ != 0) { + output.writeUInt32(16, testUint322_); + } + if (testUint323_ != 0) { + output.writeUInt32(17, testUint323_); + } + if (testUint324_ != 0) { + output.writeUInt32(18, testUint324_); + } + if (testUint325_ != 0) { + output.writeUInt32(19, testUint325_); + } + if (testUint326_ != 0) { + output.writeUInt32(20, testUint326_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, runValue_); + } + if (movValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, movValue_); + } + if (direction_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, direction_); + } + if (time2ChangeDirection_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, time2ChangeDirection_); + } + if (displayTxONLCD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, displayTxONLCD_); + } + if (displayRxOnLCD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, displayRxOnLCD_); + } + if (initMicroStep_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(7, initMicroStep_); + } + if (initAcc_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, initAcc_); + } + if (initDec_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, initDec_); + } + if (testBool1_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, testBool1_); + } + if (testBool2_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, testBool2_); + } + if (testBool3_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, testBool3_); + } + if (testBool4_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, testBool4_); + } + if (testBool5_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, testBool5_); + } + if (testUint321_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(15, testUint321_); + } + if (testUint322_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(16, testUint322_); + } + if (testUint323_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(17, testUint323_); + } + if (testUint324_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(18, testUint324_); + } + if (testUint325_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(19, testUint325_); + } + if (testUint326_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(20, testUint326_); + } + 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 com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest other = (com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest) obj; + + boolean result = true; + result = result && (getRunValue() + == other.getRunValue()); + result = result && (getMovValue() + == other.getMovValue()); + result = result && (getDirection() + == other.getDirection()); + result = result && (getTime2ChangeDirection() + == other.getTime2ChangeDirection()); + result = result && (getDisplayTxONLCD() + == other.getDisplayTxONLCD()); + result = result && (getDisplayRxOnLCD() + == other.getDisplayRxOnLCD()); + result = result && (getInitMicroStep() + == other.getInitMicroStep()); + result = result && (getInitAcc() + == other.getInitAcc()); + result = result && (getInitDec() + == other.getInitDec()); + result = result && (getTestBool1() + == other.getTestBool1()); + result = result && (getTestBool2() + == other.getTestBool2()); + result = result && (getTestBool3() + == other.getTestBool3()); + result = result && (getTestBool4() + == other.getTestBool4()); + result = result && (getTestBool5() + == other.getTestBool5()); + result = result && (getTestUint321() + == other.getTestUint321()); + result = result && (getTestUint322() + == other.getTestUint322()); + result = result && (getTestUint323() + == other.getTestUint323()); + result = result && (getTestUint324() + == other.getTestUint324()); + result = result && (getTestUint325() + == other.getTestUint325()); + result = result && (getTestUint326() + == other.getTestUint326()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RUN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRunValue(); + hash = (37 * hash) + MOV_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMovValue(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirection()); + hash = (37 * hash) + TIME_2_CHANGE_DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + getTime2ChangeDirection(); + hash = (37 * hash) + DISPLAY_TX_ON_LCD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisplayTxONLCD()); + hash = (37 * hash) + DISPLAY_RX_ON_LCD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisplayRxOnLCD()); + hash = (37 * hash) + INIT_MICROSTEP_FIELD_NUMBER; + hash = (53 * hash) + getInitMicroStep(); + hash = (37 * hash) + INIT_ACC_FIELD_NUMBER; + hash = (53 * hash) + getInitAcc(); + hash = (37 * hash) + INIT_DEC_FIELD_NUMBER; + hash = (53 * hash) + getInitDec(); + hash = (37 * hash) + TESTBOOL_1_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool1()); + hash = (37 * hash) + TESTBOOL_2_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool2()); + hash = (37 * hash) + TESTBOOL_3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool3()); + hash = (37 * hash) + TESTBOOL_4_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool4()); + hash = (37 * hash) + TESTBOOL_5_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool5()); + hash = (37 * hash) + TESTUINT32_1_FIELD_NUMBER; + hash = (53 * hash) + getTestUint321(); + hash = (37 * hash) + TESTUINT32_2_FIELD_NUMBER; + hash = (53 * hash) + getTestUint322(); + hash = (37 * hash) + TESTUINT32_3_FIELD_NUMBER; + hash = (53 * hash) + getTestUint323(); + hash = (37 * hash) + TESTUINT32_4_FIELD_NUMBER; + hash = (53 * hash) + getTestUint324(); + hash = (37 * hash) + TESTUINT32_5_FIELD_NUMBER; + hash = (53 * hash) + getTestUint325(); + hash = (37 * hash) + TESTUINT32_6_FIELD_NUMBER; + hash = (53 * hash) + getTestUint326(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest 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 com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest 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 com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubL6470DriverRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubL6470DriverRequest) + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.class, com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + runValue_ = 0; + + movValue_ = 0; + + direction_ = false; + + time2ChangeDirection_ = 0; + + displayTxONLCD_ = false; + + displayRxOnLCD_ = false; + + initMicroStep_ = 0; + + initAcc_ = 0; + + initDec_ = 0; + + testBool1_ = false; + + testBool2_ = false; + + testBool3_ = false; + + testBool4_ = false; + + testBool5_ = false; + + testUint321_ = 0; + + testUint322_ = 0; + + testUint323_ = 0; + + testUint324_ = 0; + + testUint325_ = 0; + + testUint326_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest build() { + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest buildPartial() { + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest result = new com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest(this); + result.runValue_ = runValue_; + result.movValue_ = movValue_; + result.direction_ = direction_; + result.time2ChangeDirection_ = time2ChangeDirection_; + result.displayTxONLCD_ = displayTxONLCD_; + result.displayRxOnLCD_ = displayRxOnLCD_; + result.initMicroStep_ = initMicroStep_; + result.initAcc_ = initAcc_; + result.initDec_ = initDec_; + result.testBool1_ = testBool1_; + result.testBool2_ = testBool2_; + result.testBool3_ = testBool3_; + result.testBool4_ = testBool4_; + result.testBool5_ = testBool5_; + result.testUint321_ = testUint321_; + result.testUint322_ = testUint322_; + result.testUint323_ = testUint323_; + result.testUint324_ = testUint324_; + result.testUint325_ = testUint325_; + result.testUint326_ = testUint326_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest other) { + if (other == com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest.getDefaultInstance()) return this; + if (other.getRunValue() != 0) { + setRunValue(other.getRunValue()); + } + if (other.getMovValue() != 0) { + setMovValue(other.getMovValue()); + } + if (other.getDirection() != false) { + setDirection(other.getDirection()); + } + if (other.getTime2ChangeDirection() != 0) { + setTime2ChangeDirection(other.getTime2ChangeDirection()); + } + if (other.getDisplayTxONLCD() != false) { + setDisplayTxONLCD(other.getDisplayTxONLCD()); + } + if (other.getDisplayRxOnLCD() != false) { + setDisplayRxOnLCD(other.getDisplayRxOnLCD()); + } + if (other.getInitMicroStep() != 0) { + setInitMicroStep(other.getInitMicroStep()); + } + if (other.getInitAcc() != 0) { + setInitAcc(other.getInitAcc()); + } + if (other.getInitDec() != 0) { + setInitDec(other.getInitDec()); + } + if (other.getTestBool1() != false) { + setTestBool1(other.getTestBool1()); + } + if (other.getTestBool2() != false) { + setTestBool2(other.getTestBool2()); + } + if (other.getTestBool3() != false) { + setTestBool3(other.getTestBool3()); + } + if (other.getTestBool4() != false) { + setTestBool4(other.getTestBool4()); + } + if (other.getTestBool5() != false) { + setTestBool5(other.getTestBool5()); + } + if (other.getTestUint321() != 0) { + setTestUint321(other.getTestUint321()); + } + if (other.getTestUint322() != 0) { + setTestUint322(other.getTestUint322()); + } + if (other.getTestUint323() != 0) { + setTestUint323(other.getTestUint323()); + } + if (other.getTestUint324() != 0) { + setTestUint324(other.getTestUint324()); + } + if (other.getTestUint325() != 0) { + setTestUint325(other.getTestUint325()); + } + if (other.getTestUint326() != 0) { + setTestUint326(other.getTestUint326()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int runValue_ ; + /** + * uint32 Run_Value = 1; + */ + public int getRunValue() { + return runValue_; + } + /** + * uint32 Run_Value = 1; + */ + public Builder setRunValue(int value) { + + runValue_ = value; + onChanged(); + return this; + } + /** + * uint32 Run_Value = 1; + */ + public Builder clearRunValue() { + + runValue_ = 0; + onChanged(); + return this; + } + + private int movValue_ ; + /** + * uint32 Mov_Value = 2; + */ + public int getMovValue() { + return movValue_; + } + /** + * uint32 Mov_Value = 2; + */ + public Builder setMovValue(int value) { + + movValue_ = value; + onChanged(); + return this; + } + /** + * uint32 Mov_Value = 2; + */ + public Builder clearMovValue() { + + movValue_ = 0; + onChanged(); + return this; + } + + private boolean direction_ ; + /** + * bool Direction = 3; + */ + public boolean getDirection() { + return direction_; + } + /** + * bool Direction = 3; + */ + public Builder setDirection(boolean value) { + + direction_ = value; + onChanged(); + return this; + } + /** + * bool Direction = 3; + */ + public Builder clearDirection() { + + direction_ = false; + onChanged(); + return this; + } + + private int time2ChangeDirection_ ; + /** + * uint32 Time_2_Change_Direction = 4; + */ + public int getTime2ChangeDirection() { + return time2ChangeDirection_; + } + /** + * uint32 Time_2_Change_Direction = 4; + */ + public Builder setTime2ChangeDirection(int value) { + + time2ChangeDirection_ = value; + onChanged(); + return this; + } + /** + * uint32 Time_2_Change_Direction = 4; + */ + public Builder clearTime2ChangeDirection() { + + time2ChangeDirection_ = 0; + onChanged(); + return this; + } + + private boolean displayTxONLCD_ ; + /** + * bool Display_Tx_ON_LCD = 5; + */ + public boolean getDisplayTxONLCD() { + return displayTxONLCD_; + } + /** + * bool Display_Tx_ON_LCD = 5; + */ + public Builder setDisplayTxONLCD(boolean value) { + + displayTxONLCD_ = value; + onChanged(); + return this; + } + /** + * bool Display_Tx_ON_LCD = 5; + */ + public Builder clearDisplayTxONLCD() { + + displayTxONLCD_ = false; + onChanged(); + return this; + } + + private boolean displayRxOnLCD_ ; + /** + * bool Display_Rx_on_LCD = 6; + */ + public boolean getDisplayRxOnLCD() { + return displayRxOnLCD_; + } + /** + * bool Display_Rx_on_LCD = 6; + */ + public Builder setDisplayRxOnLCD(boolean value) { + + displayRxOnLCD_ = value; + onChanged(); + return this; + } + /** + * bool Display_Rx_on_LCD = 6; + */ + public Builder clearDisplayRxOnLCD() { + + displayRxOnLCD_ = false; + onChanged(); + return this; + } + + private int initMicroStep_ ; + /** + * uint32 Init_MicroStep = 7; + */ + public int getInitMicroStep() { + return initMicroStep_; + } + /** + * uint32 Init_MicroStep = 7; + */ + public Builder setInitMicroStep(int value) { + + initMicroStep_ = value; + onChanged(); + return this; + } + /** + * uint32 Init_MicroStep = 7; + */ + public Builder clearInitMicroStep() { + + initMicroStep_ = 0; + onChanged(); + return this; + } + + private int initAcc_ ; + /** + * uint32 Init_Acc = 8; + */ + public int getInitAcc() { + return initAcc_; + } + /** + * uint32 Init_Acc = 8; + */ + public Builder setInitAcc(int value) { + + initAcc_ = value; + onChanged(); + return this; + } + /** + * uint32 Init_Acc = 8; + */ + public Builder clearInitAcc() { + + initAcc_ = 0; + onChanged(); + return this; + } + + private int initDec_ ; + /** + * uint32 Init_Dec = 9; + */ + public int getInitDec() { + return initDec_; + } + /** + * uint32 Init_Dec = 9; + */ + public Builder setInitDec(int value) { + + initDec_ = value; + onChanged(); + return this; + } + /** + * uint32 Init_Dec = 9; + */ + public Builder clearInitDec() { + + initDec_ = 0; + onChanged(); + return this; + } + + private boolean testBool1_ ; + /** + * bool TestBool_1 = 10; + */ + public boolean getTestBool1() { + return testBool1_; + } + /** + * bool TestBool_1 = 10; + */ + public Builder setTestBool1(boolean value) { + + testBool1_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_1 = 10; + */ + public Builder clearTestBool1() { + + testBool1_ = false; + onChanged(); + return this; + } + + private boolean testBool2_ ; + /** + * bool TestBool_2 = 11; + */ + public boolean getTestBool2() { + return testBool2_; + } + /** + * bool TestBool_2 = 11; + */ + public Builder setTestBool2(boolean value) { + + testBool2_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_2 = 11; + */ + public Builder clearTestBool2() { + + testBool2_ = false; + onChanged(); + return this; + } + + private boolean testBool3_ ; + /** + * bool TestBool_3 = 12; + */ + public boolean getTestBool3() { + return testBool3_; + } + /** + * bool TestBool_3 = 12; + */ + public Builder setTestBool3(boolean value) { + + testBool3_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_3 = 12; + */ + public Builder clearTestBool3() { + + testBool3_ = false; + onChanged(); + return this; + } + + private boolean testBool4_ ; + /** + * bool TestBool_4 = 13; + */ + public boolean getTestBool4() { + return testBool4_; + } + /** + * bool TestBool_4 = 13; + */ + public Builder setTestBool4(boolean value) { + + testBool4_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_4 = 13; + */ + public Builder clearTestBool4() { + + testBool4_ = false; + onChanged(); + return this; + } + + private boolean testBool5_ ; + /** + * bool TestBool_5 = 14; + */ + public boolean getTestBool5() { + return testBool5_; + } + /** + * bool TestBool_5 = 14; + */ + public Builder setTestBool5(boolean value) { + + testBool5_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_5 = 14; + */ + public Builder clearTestBool5() { + + testBool5_ = false; + onChanged(); + return this; + } + + private int testUint321_ ; + /** + * uint32 TestUint32_1 = 15; + */ + public int getTestUint321() { + return testUint321_; + } + /** + * uint32 TestUint32_1 = 15; + */ + public Builder setTestUint321(int value) { + + testUint321_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_1 = 15; + */ + public Builder clearTestUint321() { + + testUint321_ = 0; + onChanged(); + return this; + } + + private int testUint322_ ; + /** + * uint32 TestUint32_2 = 16; + */ + public int getTestUint322() { + return testUint322_; + } + /** + * uint32 TestUint32_2 = 16; + */ + public Builder setTestUint322(int value) { + + testUint322_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_2 = 16; + */ + public Builder clearTestUint322() { + + testUint322_ = 0; + onChanged(); + return this; + } + + private int testUint323_ ; + /** + * uint32 TestUint32_3 = 17; + */ + public int getTestUint323() { + return testUint323_; + } + /** + * uint32 TestUint32_3 = 17; + */ + public Builder setTestUint323(int value) { + + testUint323_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_3 = 17; + */ + public Builder clearTestUint323() { + + testUint323_ = 0; + onChanged(); + return this; + } + + private int testUint324_ ; + /** + * uint32 TestUint32_4 = 18; + */ + public int getTestUint324() { + return testUint324_; + } + /** + * uint32 TestUint32_4 = 18; + */ + public Builder setTestUint324(int value) { + + testUint324_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_4 = 18; + */ + public Builder clearTestUint324() { + + testUint324_ = 0; + onChanged(); + return this; + } + + private int testUint325_ ; + /** + * uint32 TestUint32_5 = 19; + */ + public int getTestUint325() { + return testUint325_; + } + /** + * uint32 TestUint32_5 = 19; + */ + public Builder setTestUint325(int value) { + + testUint325_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_5 = 19; + */ + public Builder clearTestUint325() { + + testUint325_ = 0; + onChanged(); + return this; + } + + private int testUint326_ ; + /** + * uint32 TestUint32_6 = 20; + */ + public int getTestUint326() { + return testUint326_; + } + /** + * uint32 TestUint32_6 = 20; + */ + public Builder setTestUint326(int value) { + + testUint326_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_6 = 20; + */ + public Builder clearTestUint326() { + + testUint326_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubL6470DriverRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubL6470DriverRequest) + private static final com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest(); + } + + public static com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubL6470DriverRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubL6470DriverRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubL6470DriverRequestOuterClass.StubL6470DriverRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_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\034StubL6470DriverRequest.proto\022\017Tango.PM" + + "R.Stubs\"\314\003\n\026StubL6470DriverRequest\022\021\n\tRu" + + "n_Value\030\001 \001(\r\022\021\n\tMov_Value\030\002 \001(\r\022\021\n\tDire" + + "ction\030\003 \001(\010\022\037\n\027Time_2_Change_Direction\030\004" + + " \001(\r\022\031\n\021Display_Tx_ON_LCD\030\005 \001(\010\022\031\n\021Displ" + + "ay_Rx_on_LCD\030\006 \001(\010\022\026\n\016Init_MicroStep\030\007 \001" + + "(\r\022\020\n\010Init_Acc\030\010 \001(\r\022\020\n\010Init_Dec\030\t \001(\r\022\022" + + "\n\nTestBool_1\030\n \001(\010\022\022\n\nTestBool_2\030\013 \001(\010\022\022" + + "\n\nTestBool_3\030\014 \001(\010\022\022\n\nTestBool_4\030\r \001(\010\022\022" + + "\n\nTestBool_5\030\016 \001(\010\022\024\n\014TestUint32_1\030\017 \001(\r", + "\022\024\n\014TestUint32_2\030\020 \001(\r\022\024\n\014TestUint32_3\030\021" + + " \001(\r\022\024\n\014TestUint32_4\030\022 \001(\r\022\024\n\014TestUint32" + + "_5\030\023 \001(\r\022\024\n\014TestUint32_6\030\024 \001(\rB\033\n\031com.tw" + + "ine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubL6470DriverRequest_descriptor, + new java.lang.String[] { "RunValue", "MovValue", "Direction", "Time2ChangeDirection", "DisplayTxONLCD", "DisplayRxOnLCD", "InitMicroStep", "InitAcc", "InitDec", "TestBool1", "TestBool2", "TestBool3", "TestBool4", "TestBool5", "TestUint321", "TestUint322", "TestUint323", "TestUint324", "TestUint325", "TestUint326", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverResponseOuterClass.java new file mode 100644 index 000000000..7c938c1fb --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubL6470DriverResponseOuterClass.java @@ -0,0 +1,1529 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubL6470DriverResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubL6470DriverResponseOuterClass { + private StubL6470DriverResponseOuterClass() {} + 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 StubL6470DriverResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubL6470DriverResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Run_Value = 1; + */ + int getRunValue(); + + /** + * uint32 Mov_Value = 2; + */ + int getMovValue(); + + /** + * bool TestBool_1 = 3; + */ + boolean getTestBool1(); + + /** + * bool TestBool_2 = 4; + */ + boolean getTestBool2(); + + /** + * bool TestBool_3 = 5; + */ + boolean getTestBool3(); + + /** + * bool TestBool_4 = 6; + */ + boolean getTestBool4(); + + /** + * bool TestBool_5 = 7; + */ + boolean getTestBool5(); + + /** + * uint32 TestUint32_1 = 8; + */ + int getTestUint321(); + + /** + * uint32 TestUint32_2 = 9; + */ + int getTestUint322(); + + /** + * uint32 TestUint32_3 = 10; + */ + int getTestUint323(); + + /** + * uint32 TestUint32_4 = 11; + */ + int getTestUint324(); + + /** + * uint32 TestUint32_5 = 12; + */ + int getTestUint325(); + + /** + * uint32 TestUint32_6 = 13; + */ + int getTestUint326(); + + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 14; + */ + java.lang.String getStatus(); + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 14; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 15; + */ + int getStatusWord(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubL6470DriverResponse} + */ + public static final class StubL6470DriverResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubL6470DriverResponse) + StubL6470DriverResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubL6470DriverResponse.newBuilder() to construct. + private StubL6470DriverResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubL6470DriverResponse() { + runValue_ = 0; + movValue_ = 0; + testBool1_ = false; + testBool2_ = false; + testBool3_ = false; + testBool4_ = false; + testBool5_ = false; + testUint321_ = 0; + testUint322_ = 0; + testUint323_ = 0; + testUint324_ = 0; + testUint325_ = 0; + testUint326_ = 0; + status_ = ""; + statusWord_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubL6470DriverResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + runValue_ = input.readUInt32(); + break; + } + case 16: { + + movValue_ = input.readUInt32(); + break; + } + case 24: { + + testBool1_ = input.readBool(); + break; + } + case 32: { + + testBool2_ = input.readBool(); + break; + } + case 40: { + + testBool3_ = input.readBool(); + break; + } + case 48: { + + testBool4_ = input.readBool(); + break; + } + case 56: { + + testBool5_ = input.readBool(); + break; + } + case 64: { + + testUint321_ = input.readUInt32(); + break; + } + case 72: { + + testUint322_ = input.readUInt32(); + break; + } + case 80: { + + testUint323_ = input.readUInt32(); + break; + } + case 88: { + + testUint324_ = input.readUInt32(); + break; + } + case 96: { + + testUint325_ = input.readUInt32(); + break; + } + case 104: { + + testUint326_ = input.readUInt32(); + break; + } + case 114: { + java.lang.String s = input.readStringRequireUtf8(); + + status_ = s; + break; + } + case 120: { + + statusWord_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.class, com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.Builder.class); + } + + public static final int RUN_VALUE_FIELD_NUMBER = 1; + private int runValue_; + /** + * uint32 Run_Value = 1; + */ + public int getRunValue() { + return runValue_; + } + + public static final int MOV_VALUE_FIELD_NUMBER = 2; + private int movValue_; + /** + * uint32 Mov_Value = 2; + */ + public int getMovValue() { + return movValue_; + } + + public static final int TESTBOOL_1_FIELD_NUMBER = 3; + private boolean testBool1_; + /** + * bool TestBool_1 = 3; + */ + public boolean getTestBool1() { + return testBool1_; + } + + public static final int TESTBOOL_2_FIELD_NUMBER = 4; + private boolean testBool2_; + /** + * bool TestBool_2 = 4; + */ + public boolean getTestBool2() { + return testBool2_; + } + + public static final int TESTBOOL_3_FIELD_NUMBER = 5; + private boolean testBool3_; + /** + * bool TestBool_3 = 5; + */ + public boolean getTestBool3() { + return testBool3_; + } + + public static final int TESTBOOL_4_FIELD_NUMBER = 6; + private boolean testBool4_; + /** + * bool TestBool_4 = 6; + */ + public boolean getTestBool4() { + return testBool4_; + } + + public static final int TESTBOOL_5_FIELD_NUMBER = 7; + private boolean testBool5_; + /** + * bool TestBool_5 = 7; + */ + public boolean getTestBool5() { + return testBool5_; + } + + public static final int TESTUINT32_1_FIELD_NUMBER = 8; + private int testUint321_; + /** + * uint32 TestUint32_1 = 8; + */ + public int getTestUint321() { + return testUint321_; + } + + public static final int TESTUINT32_2_FIELD_NUMBER = 9; + private int testUint322_; + /** + * uint32 TestUint32_2 = 9; + */ + public int getTestUint322() { + return testUint322_; + } + + public static final int TESTUINT32_3_FIELD_NUMBER = 10; + private int testUint323_; + /** + * uint32 TestUint32_3 = 10; + */ + public int getTestUint323() { + return testUint323_; + } + + public static final int TESTUINT32_4_FIELD_NUMBER = 11; + private int testUint324_; + /** + * uint32 TestUint32_4 = 11; + */ + public int getTestUint324() { + return testUint324_; + } + + public static final int TESTUINT32_5_FIELD_NUMBER = 12; + private int testUint325_; + /** + * uint32 TestUint32_5 = 12; + */ + public int getTestUint325() { + return testUint325_; + } + + public static final int TESTUINT32_6_FIELD_NUMBER = 13; + private int testUint326_; + /** + * uint32 TestUint32_6 = 13; + */ + public int getTestUint326() { + return testUint326_; + } + + public static final int STATUS_FIELD_NUMBER = 14; + private volatile java.lang.Object status_; + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 14; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + /** + *
+     * Passed/Failed
+     * 
+ * + * string Status = 14; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUSWORD_FIELD_NUMBER = 15; + private int statusWord_; + /** + *
+     * Error number/bit when the status is Failed
+     * 
+ * + * uint32 StatusWord = 15; + */ + public int getStatusWord() { + return statusWord_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (runValue_ != 0) { + output.writeUInt32(1, runValue_); + } + if (movValue_ != 0) { + output.writeUInt32(2, movValue_); + } + if (testBool1_ != false) { + output.writeBool(3, testBool1_); + } + if (testBool2_ != false) { + output.writeBool(4, testBool2_); + } + if (testBool3_ != false) { + output.writeBool(5, testBool3_); + } + if (testBool4_ != false) { + output.writeBool(6, testBool4_); + } + if (testBool5_ != false) { + output.writeBool(7, testBool5_); + } + if (testUint321_ != 0) { + output.writeUInt32(8, testUint321_); + } + if (testUint322_ != 0) { + output.writeUInt32(9, testUint322_); + } + if (testUint323_ != 0) { + output.writeUInt32(10, testUint323_); + } + if (testUint324_ != 0) { + output.writeUInt32(11, testUint324_); + } + if (testUint325_ != 0) { + output.writeUInt32(12, testUint325_); + } + if (testUint326_ != 0) { + output.writeUInt32(13, testUint326_); + } + if (!getStatusBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, status_); + } + if (statusWord_ != 0) { + output.writeUInt32(15, statusWord_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, runValue_); + } + if (movValue_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, movValue_); + } + if (testBool1_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, testBool1_); + } + if (testBool2_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, testBool2_); + } + if (testBool3_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, testBool3_); + } + if (testBool4_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, testBool4_); + } + if (testBool5_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, testBool5_); + } + if (testUint321_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, testUint321_); + } + if (testUint322_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, testUint322_); + } + if (testUint323_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(10, testUint323_); + } + if (testUint324_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(11, testUint324_); + } + if (testUint325_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(12, testUint325_); + } + if (testUint326_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(13, testUint326_); + } + if (!getStatusBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, status_); + } + if (statusWord_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(15, statusWord_); + } + 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 com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse other = (com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse) obj; + + boolean result = true; + result = result && (getRunValue() + == other.getRunValue()); + result = result && (getMovValue() + == other.getMovValue()); + result = result && (getTestBool1() + == other.getTestBool1()); + result = result && (getTestBool2() + == other.getTestBool2()); + result = result && (getTestBool3() + == other.getTestBool3()); + result = result && (getTestBool4() + == other.getTestBool4()); + result = result && (getTestBool5() + == other.getTestBool5()); + result = result && (getTestUint321() + == other.getTestUint321()); + result = result && (getTestUint322() + == other.getTestUint322()); + result = result && (getTestUint323() + == other.getTestUint323()); + result = result && (getTestUint324() + == other.getTestUint324()); + result = result && (getTestUint325() + == other.getTestUint325()); + result = result && (getTestUint326() + == other.getTestUint326()); + result = result && getStatus() + .equals(other.getStatus()); + result = result && (getStatusWord() + == other.getStatusWord()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RUN_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getRunValue(); + hash = (37 * hash) + MOV_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getMovValue(); + hash = (37 * hash) + TESTBOOL_1_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool1()); + hash = (37 * hash) + TESTBOOL_2_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool2()); + hash = (37 * hash) + TESTBOOL_3_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool3()); + hash = (37 * hash) + TESTBOOL_4_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool4()); + hash = (37 * hash) + TESTBOOL_5_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTestBool5()); + hash = (37 * hash) + TESTUINT32_1_FIELD_NUMBER; + hash = (53 * hash) + getTestUint321(); + hash = (37 * hash) + TESTUINT32_2_FIELD_NUMBER; + hash = (53 * hash) + getTestUint322(); + hash = (37 * hash) + TESTUINT32_3_FIELD_NUMBER; + hash = (53 * hash) + getTestUint323(); + hash = (37 * hash) + TESTUINT32_4_FIELD_NUMBER; + hash = (53 * hash) + getTestUint324(); + hash = (37 * hash) + TESTUINT32_5_FIELD_NUMBER; + hash = (53 * hash) + getTestUint325(); + hash = (37 * hash) + TESTUINT32_6_FIELD_NUMBER; + hash = (53 * hash) + getTestUint326(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + STATUSWORD_FIELD_NUMBER; + hash = (53 * hash) + getStatusWord(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse 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 com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse 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 com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubL6470DriverResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubL6470DriverResponse) + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.class, com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + runValue_ = 0; + + movValue_ = 0; + + testBool1_ = false; + + testBool2_ = false; + + testBool3_ = false; + + testBool4_ = false; + + testBool5_ = false; + + testUint321_ = 0; + + testUint322_ = 0; + + testUint323_ = 0; + + testUint324_ = 0; + + testUint325_ = 0; + + testUint326_ = 0; + + status_ = ""; + + statusWord_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse build() { + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse buildPartial() { + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse result = new com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse(this); + result.runValue_ = runValue_; + result.movValue_ = movValue_; + result.testBool1_ = testBool1_; + result.testBool2_ = testBool2_; + result.testBool3_ = testBool3_; + result.testBool4_ = testBool4_; + result.testBool5_ = testBool5_; + result.testUint321_ = testUint321_; + result.testUint322_ = testUint322_; + result.testUint323_ = testUint323_; + result.testUint324_ = testUint324_; + result.testUint325_ = testUint325_; + result.testUint326_ = testUint326_; + result.status_ = status_; + result.statusWord_ = statusWord_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse other) { + if (other == com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse.getDefaultInstance()) return this; + if (other.getRunValue() != 0) { + setRunValue(other.getRunValue()); + } + if (other.getMovValue() != 0) { + setMovValue(other.getMovValue()); + } + if (other.getTestBool1() != false) { + setTestBool1(other.getTestBool1()); + } + if (other.getTestBool2() != false) { + setTestBool2(other.getTestBool2()); + } + if (other.getTestBool3() != false) { + setTestBool3(other.getTestBool3()); + } + if (other.getTestBool4() != false) { + setTestBool4(other.getTestBool4()); + } + if (other.getTestBool5() != false) { + setTestBool5(other.getTestBool5()); + } + if (other.getTestUint321() != 0) { + setTestUint321(other.getTestUint321()); + } + if (other.getTestUint322() != 0) { + setTestUint322(other.getTestUint322()); + } + if (other.getTestUint323() != 0) { + setTestUint323(other.getTestUint323()); + } + if (other.getTestUint324() != 0) { + setTestUint324(other.getTestUint324()); + } + if (other.getTestUint325() != 0) { + setTestUint325(other.getTestUint325()); + } + if (other.getTestUint326() != 0) { + setTestUint326(other.getTestUint326()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + onChanged(); + } + if (other.getStatusWord() != 0) { + setStatusWord(other.getStatusWord()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int runValue_ ; + /** + * uint32 Run_Value = 1; + */ + public int getRunValue() { + return runValue_; + } + /** + * uint32 Run_Value = 1; + */ + public Builder setRunValue(int value) { + + runValue_ = value; + onChanged(); + return this; + } + /** + * uint32 Run_Value = 1; + */ + public Builder clearRunValue() { + + runValue_ = 0; + onChanged(); + return this; + } + + private int movValue_ ; + /** + * uint32 Mov_Value = 2; + */ + public int getMovValue() { + return movValue_; + } + /** + * uint32 Mov_Value = 2; + */ + public Builder setMovValue(int value) { + + movValue_ = value; + onChanged(); + return this; + } + /** + * uint32 Mov_Value = 2; + */ + public Builder clearMovValue() { + + movValue_ = 0; + onChanged(); + return this; + } + + private boolean testBool1_ ; + /** + * bool TestBool_1 = 3; + */ + public boolean getTestBool1() { + return testBool1_; + } + /** + * bool TestBool_1 = 3; + */ + public Builder setTestBool1(boolean value) { + + testBool1_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_1 = 3; + */ + public Builder clearTestBool1() { + + testBool1_ = false; + onChanged(); + return this; + } + + private boolean testBool2_ ; + /** + * bool TestBool_2 = 4; + */ + public boolean getTestBool2() { + return testBool2_; + } + /** + * bool TestBool_2 = 4; + */ + public Builder setTestBool2(boolean value) { + + testBool2_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_2 = 4; + */ + public Builder clearTestBool2() { + + testBool2_ = false; + onChanged(); + return this; + } + + private boolean testBool3_ ; + /** + * bool TestBool_3 = 5; + */ + public boolean getTestBool3() { + return testBool3_; + } + /** + * bool TestBool_3 = 5; + */ + public Builder setTestBool3(boolean value) { + + testBool3_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_3 = 5; + */ + public Builder clearTestBool3() { + + testBool3_ = false; + onChanged(); + return this; + } + + private boolean testBool4_ ; + /** + * bool TestBool_4 = 6; + */ + public boolean getTestBool4() { + return testBool4_; + } + /** + * bool TestBool_4 = 6; + */ + public Builder setTestBool4(boolean value) { + + testBool4_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_4 = 6; + */ + public Builder clearTestBool4() { + + testBool4_ = false; + onChanged(); + return this; + } + + private boolean testBool5_ ; + /** + * bool TestBool_5 = 7; + */ + public boolean getTestBool5() { + return testBool5_; + } + /** + * bool TestBool_5 = 7; + */ + public Builder setTestBool5(boolean value) { + + testBool5_ = value; + onChanged(); + return this; + } + /** + * bool TestBool_5 = 7; + */ + public Builder clearTestBool5() { + + testBool5_ = false; + onChanged(); + return this; + } + + private int testUint321_ ; + /** + * uint32 TestUint32_1 = 8; + */ + public int getTestUint321() { + return testUint321_; + } + /** + * uint32 TestUint32_1 = 8; + */ + public Builder setTestUint321(int value) { + + testUint321_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_1 = 8; + */ + public Builder clearTestUint321() { + + testUint321_ = 0; + onChanged(); + return this; + } + + private int testUint322_ ; + /** + * uint32 TestUint32_2 = 9; + */ + public int getTestUint322() { + return testUint322_; + } + /** + * uint32 TestUint32_2 = 9; + */ + public Builder setTestUint322(int value) { + + testUint322_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_2 = 9; + */ + public Builder clearTestUint322() { + + testUint322_ = 0; + onChanged(); + return this; + } + + private int testUint323_ ; + /** + * uint32 TestUint32_3 = 10; + */ + public int getTestUint323() { + return testUint323_; + } + /** + * uint32 TestUint32_3 = 10; + */ + public Builder setTestUint323(int value) { + + testUint323_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_3 = 10; + */ + public Builder clearTestUint323() { + + testUint323_ = 0; + onChanged(); + return this; + } + + private int testUint324_ ; + /** + * uint32 TestUint32_4 = 11; + */ + public int getTestUint324() { + return testUint324_; + } + /** + * uint32 TestUint32_4 = 11; + */ + public Builder setTestUint324(int value) { + + testUint324_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_4 = 11; + */ + public Builder clearTestUint324() { + + testUint324_ = 0; + onChanged(); + return this; + } + + private int testUint325_ ; + /** + * uint32 TestUint32_5 = 12; + */ + public int getTestUint325() { + return testUint325_; + } + /** + * uint32 TestUint32_5 = 12; + */ + public Builder setTestUint325(int value) { + + testUint325_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_5 = 12; + */ + public Builder clearTestUint325() { + + testUint325_ = 0; + onChanged(); + return this; + } + + private int testUint326_ ; + /** + * uint32 TestUint32_6 = 13; + */ + public int getTestUint326() { + return testUint326_; + } + /** + * uint32 TestUint32_6 = 13; + */ + public Builder setTestUint326(int value) { + + testUint326_ = value; + onChanged(); + return this; + } + /** + * uint32 TestUint32_6 = 13; + */ + public Builder clearTestUint326() { + + testUint326_ = 0; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 14; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 14; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 14; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 14; + */ + public Builder clearStatus() { + + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * Passed/Failed
+       * 
+ * + * string Status = 14; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + status_ = value; + onChanged(); + return this; + } + + private int statusWord_ ; + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 15; + */ + public int getStatusWord() { + return statusWord_; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 15; + */ + public Builder setStatusWord(int value) { + + statusWord_ = value; + onChanged(); + return this; + } + /** + *
+       * Error number/bit when the status is Failed
+       * 
+ * + * uint32 StatusWord = 15; + */ + public Builder clearStatusWord() { + + statusWord_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubL6470DriverResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubL6470DriverResponse) + private static final com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse(); + } + + public static com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubL6470DriverResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubL6470DriverResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubL6470DriverResponseOuterClass.StubL6470DriverResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_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\035StubL6470DriverResponse.proto\022\017Tango.P" + + "MR.Stubs\"\313\002\n\027StubL6470DriverResponse\022\021\n\t" + + "Run_Value\030\001 \001(\r\022\021\n\tMov_Value\030\002 \001(\r\022\022\n\nTe" + + "stBool_1\030\003 \001(\010\022\022\n\nTestBool_2\030\004 \001(\010\022\022\n\nTe" + + "stBool_3\030\005 \001(\010\022\022\n\nTestBool_4\030\006 \001(\010\022\022\n\nTe" + + "stBool_5\030\007 \001(\010\022\024\n\014TestUint32_1\030\010 \001(\r\022\024\n\014" + + "TestUint32_2\030\t \001(\r\022\024\n\014TestUint32_3\030\n \001(\r" + + "\022\024\n\014TestUint32_4\030\013 \001(\r\022\024\n\014TestUint32_5\030\014" + + " \001(\r\022\024\n\014TestUint32_6\030\r \001(\r\022\016\n\006Status\030\016 \001" + + "(\t\022\022\n\nStatusWord\030\017 \001(\rB\033\n\031com.twine.tang", + "o.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubL6470DriverResponse_descriptor, + new java.lang.String[] { "RunValue", "MovValue", "TestBool1", "TestBool2", "TestBool3", "TestBool4", "TestBool5", "TestUint321", "TestUint322", "TestUint323", "TestUint324", "TestUint325", "TestUint326", "Status", "StatusWord", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitRequestOuterClass.java new file mode 100644 index 000000000..dc8299a4d --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitRequestOuterClass.java @@ -0,0 +1,1036 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorInitRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorInitRequestOuterClass { + private StubMotorInitRequestOuterClass() {} + 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 StubMotorInitRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorInitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + *
+     * 1/2/4/8/16/32/64/128
+     * 
+ * + * uint32 Micro_Steps = 2; + */ + int getMicroSteps(); + + /** + * bool Set_Micro_Steps = 3; + */ + boolean getSetMicroSteps(); + + /** + * uint32 ACC = 4; + */ + int getACC(); + + /** + * bool Set_ACC = 5; + */ + boolean getSetACC(); + + /** + * uint32 DEC = 6; + */ + int getDEC(); + + /** + * bool Set_Dec = 7; + */ + boolean getSetDec(); + + /** + * uint32 Max_Speed = 8; + */ + int getMaxSpeed(); + + /** + * bool Set_Max_Speed = 9; + */ + boolean getSetMaxSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorInitRequest} + */ + public static final class StubMotorInitRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorInitRequest) + StubMotorInitRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorInitRequest.newBuilder() to construct. + private StubMotorInitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorInitRequest() { + motorID_ = 0; + microSteps_ = 0; + setMicroSteps_ = false; + aCC_ = 0; + setACC_ = false; + dEC_ = 0; + setDec_ = false; + maxSpeed_ = 0; + setMaxSpeed_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorInitRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + microSteps_ = input.readUInt32(); + break; + } + case 24: { + + setMicroSteps_ = input.readBool(); + break; + } + case 32: { + + aCC_ = input.readUInt32(); + break; + } + case 40: { + + setACC_ = input.readBool(); + break; + } + case 48: { + + dEC_ = input.readUInt32(); + break; + } + case 56: { + + setDec_ = input.readBool(); + break; + } + case 64: { + + maxSpeed_ = input.readUInt32(); + break; + } + case 72: { + + setMaxSpeed_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.class, com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int MICRO_STEPS_FIELD_NUMBER = 2; + private int microSteps_; + /** + *
+     * 1/2/4/8/16/32/64/128
+     * 
+ * + * uint32 Micro_Steps = 2; + */ + public int getMicroSteps() { + return microSteps_; + } + + public static final int SET_MICRO_STEPS_FIELD_NUMBER = 3; + private boolean setMicroSteps_; + /** + * bool Set_Micro_Steps = 3; + */ + public boolean getSetMicroSteps() { + return setMicroSteps_; + } + + public static final int ACC_FIELD_NUMBER = 4; + private int aCC_; + /** + * uint32 ACC = 4; + */ + public int getACC() { + return aCC_; + } + + public static final int SET_ACC_FIELD_NUMBER = 5; + private boolean setACC_; + /** + * bool Set_ACC = 5; + */ + public boolean getSetACC() { + return setACC_; + } + + public static final int DEC_FIELD_NUMBER = 6; + private int dEC_; + /** + * uint32 DEC = 6; + */ + public int getDEC() { + return dEC_; + } + + public static final int SET_DEC_FIELD_NUMBER = 7; + private boolean setDec_; + /** + * bool Set_Dec = 7; + */ + public boolean getSetDec() { + return setDec_; + } + + public static final int MAX_SPEED_FIELD_NUMBER = 8; + private int maxSpeed_; + /** + * uint32 Max_Speed = 8; + */ + public int getMaxSpeed() { + return maxSpeed_; + } + + public static final int SET_MAX_SPEED_FIELD_NUMBER = 9; + private boolean setMaxSpeed_; + /** + * bool Set_Max_Speed = 9; + */ + public boolean getSetMaxSpeed() { + return setMaxSpeed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (microSteps_ != 0) { + output.writeUInt32(2, microSteps_); + } + if (setMicroSteps_ != false) { + output.writeBool(3, setMicroSteps_); + } + if (aCC_ != 0) { + output.writeUInt32(4, aCC_); + } + if (setACC_ != false) { + output.writeBool(5, setACC_); + } + if (dEC_ != 0) { + output.writeUInt32(6, dEC_); + } + if (setDec_ != false) { + output.writeBool(7, setDec_); + } + if (maxSpeed_ != 0) { + output.writeUInt32(8, maxSpeed_); + } + if (setMaxSpeed_ != false) { + output.writeBool(9, setMaxSpeed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (microSteps_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, microSteps_); + } + if (setMicroSteps_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, setMicroSteps_); + } + if (aCC_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(4, aCC_); + } + if (setACC_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, setACC_); + } + if (dEC_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(6, dEC_); + } + if (setDec_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, setDec_); + } + if (maxSpeed_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(8, maxSpeed_); + } + if (setMaxSpeed_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, setMaxSpeed_); + } + 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 com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest other = (com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getMicroSteps() + == other.getMicroSteps()); + result = result && (getSetMicroSteps() + == other.getSetMicroSteps()); + result = result && (getACC() + == other.getACC()); + result = result && (getSetACC() + == other.getSetACC()); + result = result && (getDEC() + == other.getDEC()); + result = result && (getSetDec() + == other.getSetDec()); + result = result && (getMaxSpeed() + == other.getMaxSpeed()); + result = result && (getSetMaxSpeed() + == other.getSetMaxSpeed()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + MICRO_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getMicroSteps(); + hash = (37 * hash) + SET_MICRO_STEPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSetMicroSteps()); + hash = (37 * hash) + ACC_FIELD_NUMBER; + hash = (53 * hash) + getACC(); + hash = (37 * hash) + SET_ACC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSetACC()); + hash = (37 * hash) + DEC_FIELD_NUMBER; + hash = (53 * hash) + getDEC(); + hash = (37 * hash) + SET_DEC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSetDec()); + hash = (37 * hash) + MAX_SPEED_FIELD_NUMBER; + hash = (53 * hash) + getMaxSpeed(); + hash = (37 * hash) + SET_MAX_SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSetMaxSpeed()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest 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 com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest 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 com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorInitRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorInitRequest) + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.class, com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + microSteps_ = 0; + + setMicroSteps_ = false; + + aCC_ = 0; + + setACC_ = false; + + dEC_ = 0; + + setDec_ = false; + + maxSpeed_ = 0; + + setMaxSpeed_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest build() { + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest result = new com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest(this); + result.motorID_ = motorID_; + result.microSteps_ = microSteps_; + result.setMicroSteps_ = setMicroSteps_; + result.aCC_ = aCC_; + result.setACC_ = setACC_; + result.dEC_ = dEC_; + result.setDec_ = setDec_; + result.maxSpeed_ = maxSpeed_; + result.setMaxSpeed_ = setMaxSpeed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getMicroSteps() != 0) { + setMicroSteps(other.getMicroSteps()); + } + if (other.getSetMicroSteps() != false) { + setSetMicroSteps(other.getSetMicroSteps()); + } + if (other.getACC() != 0) { + setACC(other.getACC()); + } + if (other.getSetACC() != false) { + setSetACC(other.getSetACC()); + } + if (other.getDEC() != 0) { + setDEC(other.getDEC()); + } + if (other.getSetDec() != false) { + setSetDec(other.getSetDec()); + } + if (other.getMaxSpeed() != 0) { + setMaxSpeed(other.getMaxSpeed()); + } + if (other.getSetMaxSpeed() != false) { + setSetMaxSpeed(other.getSetMaxSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private int microSteps_ ; + /** + *
+       * 1/2/4/8/16/32/64/128
+       * 
+ * + * uint32 Micro_Steps = 2; + */ + public int getMicroSteps() { + return microSteps_; + } + /** + *
+       * 1/2/4/8/16/32/64/128
+       * 
+ * + * uint32 Micro_Steps = 2; + */ + public Builder setMicroSteps(int value) { + + microSteps_ = value; + onChanged(); + return this; + } + /** + *
+       * 1/2/4/8/16/32/64/128
+       * 
+ * + * uint32 Micro_Steps = 2; + */ + public Builder clearMicroSteps() { + + microSteps_ = 0; + onChanged(); + return this; + } + + private boolean setMicroSteps_ ; + /** + * bool Set_Micro_Steps = 3; + */ + public boolean getSetMicroSteps() { + return setMicroSteps_; + } + /** + * bool Set_Micro_Steps = 3; + */ + public Builder setSetMicroSteps(boolean value) { + + setMicroSteps_ = value; + onChanged(); + return this; + } + /** + * bool Set_Micro_Steps = 3; + */ + public Builder clearSetMicroSteps() { + + setMicroSteps_ = false; + onChanged(); + return this; + } + + private int aCC_ ; + /** + * uint32 ACC = 4; + */ + public int getACC() { + return aCC_; + } + /** + * uint32 ACC = 4; + */ + public Builder setACC(int value) { + + aCC_ = value; + onChanged(); + return this; + } + /** + * uint32 ACC = 4; + */ + public Builder clearACC() { + + aCC_ = 0; + onChanged(); + return this; + } + + private boolean setACC_ ; + /** + * bool Set_ACC = 5; + */ + public boolean getSetACC() { + return setACC_; + } + /** + * bool Set_ACC = 5; + */ + public Builder setSetACC(boolean value) { + + setACC_ = value; + onChanged(); + return this; + } + /** + * bool Set_ACC = 5; + */ + public Builder clearSetACC() { + + setACC_ = false; + onChanged(); + return this; + } + + private int dEC_ ; + /** + * uint32 DEC = 6; + */ + public int getDEC() { + return dEC_; + } + /** + * uint32 DEC = 6; + */ + public Builder setDEC(int value) { + + dEC_ = value; + onChanged(); + return this; + } + /** + * uint32 DEC = 6; + */ + public Builder clearDEC() { + + dEC_ = 0; + onChanged(); + return this; + } + + private boolean setDec_ ; + /** + * bool Set_Dec = 7; + */ + public boolean getSetDec() { + return setDec_; + } + /** + * bool Set_Dec = 7; + */ + public Builder setSetDec(boolean value) { + + setDec_ = value; + onChanged(); + return this; + } + /** + * bool Set_Dec = 7; + */ + public Builder clearSetDec() { + + setDec_ = false; + onChanged(); + return this; + } + + private int maxSpeed_ ; + /** + * uint32 Max_Speed = 8; + */ + public int getMaxSpeed() { + return maxSpeed_; + } + /** + * uint32 Max_Speed = 8; + */ + public Builder setMaxSpeed(int value) { + + maxSpeed_ = value; + onChanged(); + return this; + } + /** + * uint32 Max_Speed = 8; + */ + public Builder clearMaxSpeed() { + + maxSpeed_ = 0; + onChanged(); + return this; + } + + private boolean setMaxSpeed_ ; + /** + * bool Set_Max_Speed = 9; + */ + public boolean getSetMaxSpeed() { + return setMaxSpeed_; + } + /** + * bool Set_Max_Speed = 9; + */ + public Builder setSetMaxSpeed(boolean value) { + + setMaxSpeed_ = value; + onChanged(); + return this; + } + /** + * bool Set_Max_Speed = 9; + */ + public Builder clearSetMaxSpeed() { + + setMaxSpeed_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorInitRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorInitRequest) + private static final com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorInitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorInitRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorInitRequestOuterClass.StubMotorInitRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorInitRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorInitRequest_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\032StubMotorInitRequest.proto\022\017Tango.PMR." + + "Stubs\"\274\001\n\024StubMotorInitRequest\022\020\n\010Motor_" + + "ID\030\001 \001(\r\022\023\n\013Micro_Steps\030\002 \001(\r\022\027\n\017Set_Mic" + + "ro_Steps\030\003 \001(\010\022\013\n\003ACC\030\004 \001(\r\022\017\n\007Set_ACC\030\005" + + " \001(\010\022\013\n\003DEC\030\006 \001(\r\022\017\n\007Set_Dec\030\007 \001(\010\022\021\n\tMa" + + "x_Speed\030\010 \001(\r\022\025\n\rSet_Max_Speed\030\t \001(\010B\033\n\031" + + "com.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorInitRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorInitRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorInitRequest_descriptor, + new java.lang.String[] { "MotorID", "MicroSteps", "SetMicroSteps", "ACC", "SetACC", "DEC", "SetDec", "MaxSpeed", "SetMaxSpeed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitResponseOuterClass.java new file mode 100644 index 000000000..634c100b9 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorInitResponseOuterClass.java @@ -0,0 +1,568 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorInitResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorInitResponseOuterClass { + private StubMotorInitResponseOuterClass() {} + 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 StubMotorInitResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorInitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * uint32 Status = 2; + */ + int getStatus(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorInitResponse} + */ + public static final class StubMotorInitResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorInitResponse) + StubMotorInitResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorInitResponse.newBuilder() to construct. + private StubMotorInitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorInitResponse() { + motorID_ = 0; + status_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorInitResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + status_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.class, com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_; + /** + * uint32 Status = 2; + */ + public int getStatus() { + return status_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (status_ != 0) { + output.writeUInt32(2, status_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, status_); + } + 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 com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse other = (com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getStatus() + == other.getStatus()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse 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 com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse 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 com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorInitResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorInitResponse) + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.class, com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + status_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorInitResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse build() { + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse result = new com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse(this); + result.motorID_ = motorID_; + result.status_ = status_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private int status_ ; + /** + * uint32 Status = 2; + */ + public int getStatus() { + return status_; + } + /** + * uint32 Status = 2; + */ + public Builder setStatus(int value) { + + status_ = value; + onChanged(); + return this; + } + /** + * uint32 Status = 2; + */ + public Builder clearStatus() { + + status_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorInitResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorInitResponse) + private static final com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorInitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorInitResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorInitResponseOuterClass.StubMotorInitResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorInitResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorInitResponse_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\033StubMotorInitResponse.proto\022\017Tango.PMR" + + ".Stubs\"9\n\025StubMotorInitResponse\022\020\n\010Motor" + + "_ID\030\001 \001(\r\022\016\n\006Status\030\002 \001(\rB\033\n\031com.twine.t" + + "ango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorInitResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorInitResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorInitResponse_descriptor, + new java.lang.String[] { "MotorID", "Status", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovRequestOuterClass.java new file mode 100644 index 000000000..9c7b6597a --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovRequestOuterClass.java @@ -0,0 +1,632 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorMovRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorMovRequestOuterClass { + private StubMotorMovRequestOuterClass() {} + 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 StubMotorMovRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorMovRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * bool Direction = 2; + */ + boolean getDirection(); + + /** + * uint32 Position = 3; + */ + int getPosition(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorMovRequest} + */ + public static final class StubMotorMovRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorMovRequest) + StubMotorMovRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorMovRequest.newBuilder() to construct. + private StubMotorMovRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorMovRequest() { + motorID_ = 0; + direction_ = false; + position_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorMovRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + direction_ = input.readBool(); + break; + } + case 24: { + + position_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.class, com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private boolean direction_; + /** + * bool Direction = 2; + */ + public boolean getDirection() { + return direction_; + } + + public static final int POSITION_FIELD_NUMBER = 3; + private int position_; + /** + * uint32 Position = 3; + */ + public int getPosition() { + return position_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (direction_ != false) { + output.writeBool(2, direction_); + } + if (position_ != 0) { + output.writeUInt32(3, position_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (direction_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, direction_); + } + if (position_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, position_); + } + 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 com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest other = (com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getDirection() + == other.getDirection()); + result = result && (getPosition() + == other.getPosition()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirection()); + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest 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 com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest 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 com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorMovRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorMovRequest) + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.class, com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + direction_ = false; + + position_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest build() { + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest result = new com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest(this); + result.motorID_ = motorID_; + result.direction_ = direction_; + result.position_ = position_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getDirection() != false) { + setDirection(other.getDirection()); + } + if (other.getPosition() != 0) { + setPosition(other.getPosition()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private boolean direction_ ; + /** + * bool Direction = 2; + */ + public boolean getDirection() { + return direction_; + } + /** + * bool Direction = 2; + */ + public Builder setDirection(boolean value) { + + direction_ = value; + onChanged(); + return this; + } + /** + * bool Direction = 2; + */ + public Builder clearDirection() { + + direction_ = false; + onChanged(); + return this; + } + + private int position_ ; + /** + * uint32 Position = 3; + */ + public int getPosition() { + return position_; + } + /** + * uint32 Position = 3; + */ + public Builder setPosition(int value) { + + position_ = value; + onChanged(); + return this; + } + /** + * uint32 Position = 3; + */ + public Builder clearPosition() { + + position_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorMovRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorMovRequest) + private static final com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorMovRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorMovRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorMovRequestOuterClass.StubMotorMovRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorMovRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorMovRequest_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\031StubMotorMovRequest.proto\022\017Tango.PMR.S" + + "tubs\"L\n\023StubMotorMovRequest\022\020\n\010Motor_ID\030" + + "\001 \001(\r\022\021\n\tDirection\030\002 \001(\010\022\020\n\010Position\030\003 \001" + + "(\rB\033\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorMovRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorMovRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorMovRequest_descriptor, + new java.lang.String[] { "MotorID", "Direction", "Position", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovResponseOuterClass.java new file mode 100644 index 000000000..05df4bc94 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorMovResponseOuterClass.java @@ -0,0 +1,929 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorMovResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorMovResponseOuterClass { + private StubMotorMovResponseOuterClass() {} + 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 StubMotorMovResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorMovResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * uint32 Position = 2; + */ + int getPosition(); + + /** + * uint32 Status_Reg = 3; + */ + int getStatusReg(); + + /** + *
+     * Reverse / Forward
+     * 
+ * + * bool Direction = 4; + */ + boolean getDirection(); + + /** + *
+     *Stopped / Acceleration / Deceleration / Constant speed
+     * 
+ * + * uint32 Mot_Status = 5; + */ + int getMotStatus(); + + /** + * bool STEP_LOSS_A = 6; + */ + boolean getSTEPLOSSA(); + + /** + * bool STEP_LOSS_B = 7; + */ + boolean getSTEPLOSSB(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorMovResponse} + */ + public static final class StubMotorMovResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorMovResponse) + StubMotorMovResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorMovResponse.newBuilder() to construct. + private StubMotorMovResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorMovResponse() { + motorID_ = 0; + position_ = 0; + statusReg_ = 0; + direction_ = false; + motStatus_ = 0; + sTEPLOSSA_ = false; + sTEPLOSSB_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorMovResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + position_ = input.readUInt32(); + break; + } + case 24: { + + statusReg_ = input.readUInt32(); + break; + } + case 32: { + + direction_ = input.readBool(); + break; + } + case 40: { + + motStatus_ = input.readUInt32(); + break; + } + case 48: { + + sTEPLOSSA_ = input.readBool(); + break; + } + case 56: { + + sTEPLOSSB_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.class, com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int POSITION_FIELD_NUMBER = 2; + private int position_; + /** + * uint32 Position = 2; + */ + public int getPosition() { + return position_; + } + + public static final int STATUS_REG_FIELD_NUMBER = 3; + private int statusReg_; + /** + * uint32 Status_Reg = 3; + */ + public int getStatusReg() { + return statusReg_; + } + + public static final int DIRECTION_FIELD_NUMBER = 4; + private boolean direction_; + /** + *
+     * Reverse / Forward
+     * 
+ * + * bool Direction = 4; + */ + public boolean getDirection() { + return direction_; + } + + public static final int MOT_STATUS_FIELD_NUMBER = 5; + private int motStatus_; + /** + *
+     *Stopped / Acceleration / Deceleration / Constant speed
+     * 
+ * + * uint32 Mot_Status = 5; + */ + public int getMotStatus() { + return motStatus_; + } + + public static final int STEP_LOSS_A_FIELD_NUMBER = 6; + private boolean sTEPLOSSA_; + /** + * bool STEP_LOSS_A = 6; + */ + public boolean getSTEPLOSSA() { + return sTEPLOSSA_; + } + + public static final int STEP_LOSS_B_FIELD_NUMBER = 7; + private boolean sTEPLOSSB_; + /** + * bool STEP_LOSS_B = 7; + */ + public boolean getSTEPLOSSB() { + return sTEPLOSSB_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (position_ != 0) { + output.writeUInt32(2, position_); + } + if (statusReg_ != 0) { + output.writeUInt32(3, statusReg_); + } + if (direction_ != false) { + output.writeBool(4, direction_); + } + if (motStatus_ != 0) { + output.writeUInt32(5, motStatus_); + } + if (sTEPLOSSA_ != false) { + output.writeBool(6, sTEPLOSSA_); + } + if (sTEPLOSSB_ != false) { + output.writeBool(7, sTEPLOSSB_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (position_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, position_); + } + if (statusReg_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, statusReg_); + } + if (direction_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, direction_); + } + if (motStatus_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, motStatus_); + } + if (sTEPLOSSA_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, sTEPLOSSA_); + } + if (sTEPLOSSB_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, sTEPLOSSB_); + } + 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 com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse other = (com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getPosition() + == other.getPosition()); + result = result && (getStatusReg() + == other.getStatusReg()); + result = result && (getDirection() + == other.getDirection()); + result = result && (getMotStatus() + == other.getMotStatus()); + result = result && (getSTEPLOSSA() + == other.getSTEPLOSSA()); + result = result && (getSTEPLOSSB() + == other.getSTEPLOSSB()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + hash = (37 * hash) + STATUS_REG_FIELD_NUMBER; + hash = (53 * hash) + getStatusReg(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirection()); + hash = (37 * hash) + MOT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getMotStatus(); + hash = (37 * hash) + STEP_LOSS_A_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSTEPLOSSA()); + hash = (37 * hash) + STEP_LOSS_B_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSTEPLOSSB()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse 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 com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse 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 com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorMovResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorMovResponse) + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.class, com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + position_ = 0; + + statusReg_ = 0; + + direction_ = false; + + motStatus_ = 0; + + sTEPLOSSA_ = false; + + sTEPLOSSB_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorMovResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse build() { + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse result = new com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse(this); + result.motorID_ = motorID_; + result.position_ = position_; + result.statusReg_ = statusReg_; + result.direction_ = direction_; + result.motStatus_ = motStatus_; + result.sTEPLOSSA_ = sTEPLOSSA_; + result.sTEPLOSSB_ = sTEPLOSSB_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getPosition() != 0) { + setPosition(other.getPosition()); + } + if (other.getStatusReg() != 0) { + setStatusReg(other.getStatusReg()); + } + if (other.getDirection() != false) { + setDirection(other.getDirection()); + } + if (other.getMotStatus() != 0) { + setMotStatus(other.getMotStatus()); + } + if (other.getSTEPLOSSA() != false) { + setSTEPLOSSA(other.getSTEPLOSSA()); + } + if (other.getSTEPLOSSB() != false) { + setSTEPLOSSB(other.getSTEPLOSSB()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private int position_ ; + /** + * uint32 Position = 2; + */ + public int getPosition() { + return position_; + } + /** + * uint32 Position = 2; + */ + public Builder setPosition(int value) { + + position_ = value; + onChanged(); + return this; + } + /** + * uint32 Position = 2; + */ + public Builder clearPosition() { + + position_ = 0; + onChanged(); + return this; + } + + private int statusReg_ ; + /** + * uint32 Status_Reg = 3; + */ + public int getStatusReg() { + return statusReg_; + } + /** + * uint32 Status_Reg = 3; + */ + public Builder setStatusReg(int value) { + + statusReg_ = value; + onChanged(); + return this; + } + /** + * uint32 Status_Reg = 3; + */ + public Builder clearStatusReg() { + + statusReg_ = 0; + onChanged(); + return this; + } + + private boolean direction_ ; + /** + *
+       * Reverse / Forward
+       * 
+ * + * bool Direction = 4; + */ + public boolean getDirection() { + return direction_; + } + /** + *
+       * Reverse / Forward
+       * 
+ * + * bool Direction = 4; + */ + public Builder setDirection(boolean value) { + + direction_ = value; + onChanged(); + return this; + } + /** + *
+       * Reverse / Forward
+       * 
+ * + * bool Direction = 4; + */ + public Builder clearDirection() { + + direction_ = false; + onChanged(); + return this; + } + + private int motStatus_ ; + /** + *
+       *Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 5; + */ + public int getMotStatus() { + return motStatus_; + } + /** + *
+       *Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 5; + */ + public Builder setMotStatus(int value) { + + motStatus_ = value; + onChanged(); + return this; + } + /** + *
+       *Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 5; + */ + public Builder clearMotStatus() { + + motStatus_ = 0; + onChanged(); + return this; + } + + private boolean sTEPLOSSA_ ; + /** + * bool STEP_LOSS_A = 6; + */ + public boolean getSTEPLOSSA() { + return sTEPLOSSA_; + } + /** + * bool STEP_LOSS_A = 6; + */ + public Builder setSTEPLOSSA(boolean value) { + + sTEPLOSSA_ = value; + onChanged(); + return this; + } + /** + * bool STEP_LOSS_A = 6; + */ + public Builder clearSTEPLOSSA() { + + sTEPLOSSA_ = false; + onChanged(); + return this; + } + + private boolean sTEPLOSSB_ ; + /** + * bool STEP_LOSS_B = 7; + */ + public boolean getSTEPLOSSB() { + return sTEPLOSSB_; + } + /** + * bool STEP_LOSS_B = 7; + */ + public Builder setSTEPLOSSB(boolean value) { + + sTEPLOSSB_ = value; + onChanged(); + return this; + } + /** + * bool STEP_LOSS_B = 7; + */ + public Builder clearSTEPLOSSB() { + + sTEPLOSSB_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorMovResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorMovResponse) + private static final com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorMovResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorMovResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorMovResponseOuterClass.StubMotorMovResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorMovResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorMovResponse_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\032StubMotorMovResponse.proto\022\017Tango.PMR." + + "Stubs\"\237\001\n\024StubMotorMovResponse\022\020\n\010Motor_" + + "ID\030\001 \001(\r\022\020\n\010Position\030\002 \001(\r\022\022\n\nStatus_Reg" + + "\030\003 \001(\r\022\021\n\tDirection\030\004 \001(\010\022\022\n\nMot_Status\030" + + "\005 \001(\r\022\023\n\013STEP_LOSS_A\030\006 \001(\010\022\023\n\013STEP_LOSS_" + + "B\030\007 \001(\010B\033\n\031com.twine.tango.pmr.stubsb\006pr" + + "oto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorMovResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorMovResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorMovResponse_descriptor, + new java.lang.String[] { "MotorID", "Position", "StatusReg", "Direction", "MotStatus", "STEPLOSSA", "STEPLOSSB", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionRequestOuterClass.java new file mode 100644 index 000000000..3e6f83665 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionRequestOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorPositionRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorPositionRequestOuterClass { + private StubMotorPositionRequestOuterClass() {} + 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 StubMotorPositionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorPositionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorPositionRequest} + */ + public static final class StubMotorPositionRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorPositionRequest) + StubMotorPositionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorPositionRequest.newBuilder() to construct. + private StubMotorPositionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorPositionRequest() { + motorID_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorPositionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.class, com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + 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 com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest other = (com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest 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 com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest 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 com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorPositionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorPositionRequest) + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.class, com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest build() { + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest result = new com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest(this); + result.motorID_ = motorID_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorPositionRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorPositionRequest) + private static final com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorPositionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorPositionRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorPositionRequestOuterClass.StubMotorPositionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_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\036StubMotorPositionRequest.proto\022\017Tango." + + "PMR.Stubs\",\n\030StubMotorPositionRequest\022\020\n" + + "\010Motor_ID\030\001 \001(\rB\033\n\031com.twine.tango.pmr.s" + + "tubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorPositionRequest_descriptor, + new java.lang.String[] { "MotorID", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionResponseOuterClass.java new file mode 100644 index 000000000..95ab7a2cf --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorPositionResponseOuterClass.java @@ -0,0 +1,568 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorPositionResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorPositionResponseOuterClass { + private StubMotorPositionResponseOuterClass() {} + 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 StubMotorPositionResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorPositionResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * uint32 Position = 2; + */ + int getPosition(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorPositionResponse} + */ + public static final class StubMotorPositionResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorPositionResponse) + StubMotorPositionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorPositionResponse.newBuilder() to construct. + private StubMotorPositionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorPositionResponse() { + motorID_ = 0; + position_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorPositionResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + position_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.class, com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int POSITION_FIELD_NUMBER = 2; + private int position_; + /** + * uint32 Position = 2; + */ + public int getPosition() { + return position_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (position_ != 0) { + output.writeUInt32(2, position_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (position_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, position_); + } + 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 com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse other = (com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getPosition() + == other.getPosition()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + POSITION_FIELD_NUMBER; + hash = (53 * hash) + getPosition(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse 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 com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse 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 com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorPositionResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorPositionResponse) + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.class, com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + position_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse build() { + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse result = new com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse(this); + result.motorID_ = motorID_; + result.position_ = position_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getPosition() != 0) { + setPosition(other.getPosition()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private int position_ ; + /** + * uint32 Position = 2; + */ + public int getPosition() { + return position_; + } + /** + * uint32 Position = 2; + */ + public Builder setPosition(int value) { + + position_ = value; + onChanged(); + return this; + } + /** + * uint32 Position = 2; + */ + public Builder clearPosition() { + + position_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorPositionResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorPositionResponse) + private static final com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorPositionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorPositionResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorPositionResponseOuterClass.StubMotorPositionResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_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\037StubMotorPositionResponse.proto\022\017Tango" + + ".PMR.Stubs\"?\n\031StubMotorPositionResponse\022" + + "\020\n\010Motor_ID\030\001 \001(\r\022\020\n\010Position\030\002 \001(\rB\033\n\031c" + + "om.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorPositionResponse_descriptor, + new java.lang.String[] { "MotorID", "Position", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunRequestOuterClass.java new file mode 100644 index 000000000..e061e11e8 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunRequestOuterClass.java @@ -0,0 +1,635 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorRunRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorRunRequestOuterClass { + private StubMotorRunRequestOuterClass() {} + 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 StubMotorRunRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * bool Direction = 2; + */ + boolean getDirection(); + + /** + * double Speed = 3; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorRunRequest} + */ + public static final class StubMotorRunRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorRunRequest) + StubMotorRunRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorRunRequest.newBuilder() to construct. + private StubMotorRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorRunRequest() { + motorID_ = 0; + direction_ = false; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorRunRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + direction_ = input.readBool(); + break; + } + case 25: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.class, com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int DIRECTION_FIELD_NUMBER = 2; + private boolean direction_; + /** + * bool Direction = 2; + */ + public boolean getDirection() { + return direction_; + } + + public static final int SPEED_FIELD_NUMBER = 3; + private double speed_; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (direction_ != false) { + output.writeBool(2, direction_); + } + if (speed_ != 0D) { + output.writeDouble(3, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (direction_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, direction_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, speed_); + } + 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 com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest other = (com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getDirection() + == other.getDirection()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirection()); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest 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 com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest 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 com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorRunRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorRunRequest) + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.class, com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + direction_ = false; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest build() { + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest result = new com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest(this); + result.motorID_ = motorID_; + result.direction_ = direction_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getDirection() != false) { + setDirection(other.getDirection()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private boolean direction_ ; + /** + * bool Direction = 2; + */ + public boolean getDirection() { + return direction_; + } + /** + * bool Direction = 2; + */ + public Builder setDirection(boolean value) { + + direction_ = value; + onChanged(); + return this; + } + /** + * bool Direction = 2; + */ + public Builder clearDirection() { + + direction_ = false; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 3; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 3; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 3; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorRunRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorRunRequest) + private static final com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorRunRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorRunRequestOuterClass.StubMotorRunRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorRunRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorRunRequest_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\031StubMotorRunRequest.proto\022\017Tango.PMR.S" + + "tubs\"I\n\023StubMotorRunRequest\022\020\n\010Motor_ID\030" + + "\001 \001(\r\022\021\n\tDirection\030\002 \001(\010\022\r\n\005Speed\030\003 \001(\001B" + + "\033\n\031com.twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorRunRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorRunRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorRunRequest_descriptor, + new java.lang.String[] { "MotorID", "Direction", "Speed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunResponseOuterClass.java new file mode 100644 index 000000000..2323663a7 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorRunResponseOuterClass.java @@ -0,0 +1,996 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorRunResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorRunResponseOuterClass { + private StubMotorRunResponseOuterClass() {} + 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 StubMotorRunResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorRunResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * double Speed = 2; + */ + double getSpeed(); + + /** + * uint32 Status_Reg = 3; + */ + int getStatusReg(); + + /** + *
+     * Reverse / Forward
+     * 
+ * + * bool Direction = 4; + */ + boolean getDirection(); + + /** + *
+     *Stopped / Acceleration / Deceleration / Constant speed
+     * 
+ * + * uint32 Mot_Status = 5; + */ + int getMotStatus(); + + /** + * bool STEP_LOSS_A = 6; + */ + boolean getSTEPLOSSA(); + + /** + * bool STEP_LOSS_B = 7; + */ + boolean getSTEPLOSSB(); + + /** + * bool BUSY = 8; + */ + boolean getBUSY(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorRunResponse} + */ + public static final class StubMotorRunResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorRunResponse) + StubMotorRunResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorRunResponse.newBuilder() to construct. + private StubMotorRunResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorRunResponse() { + motorID_ = 0; + speed_ = 0D; + statusReg_ = 0; + direction_ = false; + motStatus_ = 0; + sTEPLOSSA_ = false; + sTEPLOSSB_ = false; + bUSY_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorRunResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 17: { + + speed_ = input.readDouble(); + break; + } + case 24: { + + statusReg_ = input.readUInt32(); + break; + } + case 32: { + + direction_ = input.readBool(); + break; + } + case 40: { + + motStatus_ = input.readUInt32(); + break; + } + case 48: { + + sTEPLOSSA_ = input.readBool(); + break; + } + case 56: { + + sTEPLOSSB_ = input.readBool(); + break; + } + case 64: { + + bUSY_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.class, com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int SPEED_FIELD_NUMBER = 2; + private double speed_; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + + public static final int STATUS_REG_FIELD_NUMBER = 3; + private int statusReg_; + /** + * uint32 Status_Reg = 3; + */ + public int getStatusReg() { + return statusReg_; + } + + public static final int DIRECTION_FIELD_NUMBER = 4; + private boolean direction_; + /** + *
+     * Reverse / Forward
+     * 
+ * + * bool Direction = 4; + */ + public boolean getDirection() { + return direction_; + } + + public static final int MOT_STATUS_FIELD_NUMBER = 5; + private int motStatus_; + /** + *
+     *Stopped / Acceleration / Deceleration / Constant speed
+     * 
+ * + * uint32 Mot_Status = 5; + */ + public int getMotStatus() { + return motStatus_; + } + + public static final int STEP_LOSS_A_FIELD_NUMBER = 6; + private boolean sTEPLOSSA_; + /** + * bool STEP_LOSS_A = 6; + */ + public boolean getSTEPLOSSA() { + return sTEPLOSSA_; + } + + public static final int STEP_LOSS_B_FIELD_NUMBER = 7; + private boolean sTEPLOSSB_; + /** + * bool STEP_LOSS_B = 7; + */ + public boolean getSTEPLOSSB() { + return sTEPLOSSB_; + } + + public static final int BUSY_FIELD_NUMBER = 8; + private boolean bUSY_; + /** + * bool BUSY = 8; + */ + public boolean getBUSY() { + return bUSY_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (speed_ != 0D) { + output.writeDouble(2, speed_); + } + if (statusReg_ != 0) { + output.writeUInt32(3, statusReg_); + } + if (direction_ != false) { + output.writeBool(4, direction_); + } + if (motStatus_ != 0) { + output.writeUInt32(5, motStatus_); + } + if (sTEPLOSSA_ != false) { + output.writeBool(6, sTEPLOSSA_); + } + if (sTEPLOSSB_ != false) { + output.writeBool(7, sTEPLOSSB_); + } + if (bUSY_ != false) { + output.writeBool(8, bUSY_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, speed_); + } + if (statusReg_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, statusReg_); + } + if (direction_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, direction_); + } + if (motStatus_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(5, motStatus_); + } + if (sTEPLOSSA_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, sTEPLOSSA_); + } + if (sTEPLOSSB_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, sTEPLOSSB_); + } + if (bUSY_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, bUSY_); + } + 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 com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse other = (com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && (getStatusReg() + == other.getStatusReg()); + result = result && (getDirection() + == other.getDirection()); + result = result && (getMotStatus() + == other.getMotStatus()); + result = result && (getSTEPLOSSA() + == other.getSTEPLOSSA()); + result = result && (getSTEPLOSSB() + == other.getSTEPLOSSB()); + result = result && (getBUSY() + == other.getBUSY()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (37 * hash) + STATUS_REG_FIELD_NUMBER; + hash = (53 * hash) + getStatusReg(); + hash = (37 * hash) + DIRECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDirection()); + hash = (37 * hash) + MOT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getMotStatus(); + hash = (37 * hash) + STEP_LOSS_A_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSTEPLOSSA()); + hash = (37 * hash) + STEP_LOSS_B_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSTEPLOSSB()); + hash = (37 * hash) + BUSY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBUSY()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse 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 com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse 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 com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorRunResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorRunResponse) + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.class, com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + speed_ = 0D; + + statusReg_ = 0; + + direction_ = false; + + motStatus_ = 0; + + sTEPLOSSA_ = false; + + sTEPLOSSB_ = false; + + bUSY_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorRunResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse build() { + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse result = new com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse(this); + result.motorID_ = motorID_; + result.speed_ = speed_; + result.statusReg_ = statusReg_; + result.direction_ = direction_; + result.motStatus_ = motStatus_; + result.sTEPLOSSA_ = sTEPLOSSA_; + result.sTEPLOSSB_ = sTEPLOSSB_; + result.bUSY_ = bUSY_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + if (other.getStatusReg() != 0) { + setStatusReg(other.getStatusReg()); + } + if (other.getDirection() != false) { + setDirection(other.getDirection()); + } + if (other.getMotStatus() != 0) { + setMotStatus(other.getMotStatus()); + } + if (other.getSTEPLOSSA() != false) { + setSTEPLOSSA(other.getSTEPLOSSA()); + } + if (other.getSTEPLOSSB() != false) { + setSTEPLOSSB(other.getSTEPLOSSB()); + } + if (other.getBUSY() != false) { + setBUSY(other.getBUSY()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 2; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 2; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + + private int statusReg_ ; + /** + * uint32 Status_Reg = 3; + */ + public int getStatusReg() { + return statusReg_; + } + /** + * uint32 Status_Reg = 3; + */ + public Builder setStatusReg(int value) { + + statusReg_ = value; + onChanged(); + return this; + } + /** + * uint32 Status_Reg = 3; + */ + public Builder clearStatusReg() { + + statusReg_ = 0; + onChanged(); + return this; + } + + private boolean direction_ ; + /** + *
+       * Reverse / Forward
+       * 
+ * + * bool Direction = 4; + */ + public boolean getDirection() { + return direction_; + } + /** + *
+       * Reverse / Forward
+       * 
+ * + * bool Direction = 4; + */ + public Builder setDirection(boolean value) { + + direction_ = value; + onChanged(); + return this; + } + /** + *
+       * Reverse / Forward
+       * 
+ * + * bool Direction = 4; + */ + public Builder clearDirection() { + + direction_ = false; + onChanged(); + return this; + } + + private int motStatus_ ; + /** + *
+       *Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 5; + */ + public int getMotStatus() { + return motStatus_; + } + /** + *
+       *Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 5; + */ + public Builder setMotStatus(int value) { + + motStatus_ = value; + onChanged(); + return this; + } + /** + *
+       *Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 5; + */ + public Builder clearMotStatus() { + + motStatus_ = 0; + onChanged(); + return this; + } + + private boolean sTEPLOSSA_ ; + /** + * bool STEP_LOSS_A = 6; + */ + public boolean getSTEPLOSSA() { + return sTEPLOSSA_; + } + /** + * bool STEP_LOSS_A = 6; + */ + public Builder setSTEPLOSSA(boolean value) { + + sTEPLOSSA_ = value; + onChanged(); + return this; + } + /** + * bool STEP_LOSS_A = 6; + */ + public Builder clearSTEPLOSSA() { + + sTEPLOSSA_ = false; + onChanged(); + return this; + } + + private boolean sTEPLOSSB_ ; + /** + * bool STEP_LOSS_B = 7; + */ + public boolean getSTEPLOSSB() { + return sTEPLOSSB_; + } + /** + * bool STEP_LOSS_B = 7; + */ + public Builder setSTEPLOSSB(boolean value) { + + sTEPLOSSB_ = value; + onChanged(); + return this; + } + /** + * bool STEP_LOSS_B = 7; + */ + public Builder clearSTEPLOSSB() { + + sTEPLOSSB_ = false; + onChanged(); + return this; + } + + private boolean bUSY_ ; + /** + * bool BUSY = 8; + */ + public boolean getBUSY() { + return bUSY_; + } + /** + * bool BUSY = 8; + */ + public Builder setBUSY(boolean value) { + + bUSY_ = value; + onChanged(); + return this; + } + /** + * bool BUSY = 8; + */ + public Builder clearBUSY() { + + bUSY_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorRunResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorRunResponse) + private static final com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorRunResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorRunResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorRunResponseOuterClass.StubMotorRunResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorRunResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorRunResponse_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\032StubMotorRunResponse.proto\022\017Tango.PMR." + + "Stubs\"\252\001\n\024StubMotorRunResponse\022\020\n\010Motor_" + + "ID\030\001 \001(\r\022\r\n\005Speed\030\002 \001(\001\022\022\n\nStatus_Reg\030\003 " + + "\001(\r\022\021\n\tDirection\030\004 \001(\010\022\022\n\nMot_Status\030\005 \001" + + "(\r\022\023\n\013STEP_LOSS_A\030\006 \001(\010\022\023\n\013STEP_LOSS_B\030\007" + + " \001(\010\022\014\n\004BUSY\030\010 \001(\010B\033\n\031com.twine.tango.pm" + + "r.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorRunResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorRunResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorRunResponse_descriptor, + new java.lang.String[] { "MotorID", "Speed", "StatusReg", "Direction", "MotStatus", "STEPLOSSA", "STEPLOSSB", "BUSY", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedRequestOuterClass.java new file mode 100644 index 000000000..f14c83182 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedRequestOuterClass.java @@ -0,0 +1,505 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorSpeedRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorSpeedRequestOuterClass { + private StubMotorSpeedRequestOuterClass() {} + 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 StubMotorSpeedRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorSpeedRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorSpeedRequest} + */ + public static final class StubMotorSpeedRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorSpeedRequest) + StubMotorSpeedRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorSpeedRequest.newBuilder() to construct. + private StubMotorSpeedRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorSpeedRequest() { + motorID_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorSpeedRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.class, com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + 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 com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest other = (com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest 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 com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest 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 com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorSpeedRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorSpeedRequest) + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.class, com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest build() { + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest result = new com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest(this); + result.motorID_ = motorID_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorSpeedRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorSpeedRequest) + private static final com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorSpeedRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorSpeedRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedRequestOuterClass.StubMotorSpeedRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_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\033StubMotorSpeedRequest.proto\022\017Tango.PMR" + + ".Stubs\")\n\025StubMotorSpeedRequest\022\020\n\010Motor" + + "_ID\030\001 \001(\rB\033\n\031com.twine.tango.pmr.stubsb\006" + + "proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorSpeedRequest_descriptor, + new java.lang.String[] { "MotorID", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedResponseOuterClass.java new file mode 100644 index 000000000..837ea469c --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorSpeedResponseOuterClass.java @@ -0,0 +1,571 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorSpeedResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorSpeedResponseOuterClass { + private StubMotorSpeedResponseOuterClass() {} + 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 StubMotorSpeedResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorSpeedResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * double Speed = 2; + */ + double getSpeed(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorSpeedResponse} + */ + public static final class StubMotorSpeedResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorSpeedResponse) + StubMotorSpeedResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorSpeedResponse.newBuilder() to construct. + private StubMotorSpeedResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorSpeedResponse() { + motorID_ = 0; + speed_ = 0D; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorSpeedResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 17: { + + speed_ = input.readDouble(); + 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 com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.class, com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int SPEED_FIELD_NUMBER = 2; + private double speed_; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (speed_ != 0D) { + output.writeDouble(2, speed_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (speed_ != 0D) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, speed_); + } + 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 com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse other = (com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && ( + java.lang.Double.doubleToLongBits(getSpeed()) + == java.lang.Double.doubleToLongBits( + other.getSpeed())); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + SPEED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getSpeed())); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse 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 com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse 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 com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorSpeedResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorSpeedResponse) + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.class, com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + speed_ = 0D; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse build() { + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse result = new com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse(this); + result.motorID_ = motorID_; + result.speed_ = speed_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getSpeed() != 0D) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private double speed_ ; + /** + * double Speed = 2; + */ + public double getSpeed() { + return speed_; + } + /** + * double Speed = 2; + */ + public Builder setSpeed(double value) { + + speed_ = value; + onChanged(); + return this; + } + /** + * double Speed = 2; + */ + public Builder clearSpeed() { + + speed_ = 0D; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorSpeedResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorSpeedResponse) + private static final com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorSpeedResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorSpeedResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorSpeedResponseOuterClass.StubMotorSpeedResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_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\034StubMotorSpeedResponse.proto\022\017Tango.PM" + + "R.Stubs\"9\n\026StubMotorSpeedResponse\022\020\n\010Mot" + + "or_ID\030\001 \001(\r\022\r\n\005Speed\030\002 \001(\001B\033\n\031com.twine." + + "tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorSpeedResponse_descriptor, + new java.lang.String[] { "MotorID", "Speed", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusRequestOuterClass.java new file mode 100644 index 000000000..897801900 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusRequestOuterClass.java @@ -0,0 +1,569 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorStatusRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorStatusRequestOuterClass { + private StubMotorStatusRequestOuterClass() {} + 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 StubMotorStatusRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorStatusRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * bool ClearStatus = 2; + */ + boolean getClearStatus(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorStatusRequest} + */ + public static final class StubMotorStatusRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorStatusRequest) + StubMotorStatusRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorStatusRequest.newBuilder() to construct. + private StubMotorStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorStatusRequest() { + motorID_ = 0; + clearStatus_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorStatusRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + clearStatus_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.class, com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int CLEARSTATUS_FIELD_NUMBER = 2; + private boolean clearStatus_; + /** + * bool ClearStatus = 2; + */ + public boolean getClearStatus() { + return clearStatus_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (clearStatus_ != false) { + output.writeBool(2, clearStatus_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (clearStatus_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clearStatus_); + } + 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 com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest other = (com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getClearStatus() + == other.getClearStatus()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + CLEARSTATUS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClearStatus()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest 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 com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest 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 com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorStatusRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorStatusRequest) + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.class, com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + clearStatus_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest build() { + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest result = new com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest(this); + result.motorID_ = motorID_; + result.clearStatus_ = clearStatus_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getClearStatus() != false) { + setClearStatus(other.getClearStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private boolean clearStatus_ ; + /** + * bool ClearStatus = 2; + */ + public boolean getClearStatus() { + return clearStatus_; + } + /** + * bool ClearStatus = 2; + */ + public Builder setClearStatus(boolean value) { + + clearStatus_ = value; + onChanged(); + return this; + } + /** + * bool ClearStatus = 2; + */ + public Builder clearClearStatus() { + + clearStatus_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorStatusRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorStatusRequest) + private static final com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorStatusRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorStatusRequestOuterClass.StubMotorStatusRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_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\034StubMotorStatusRequest.proto\022\017Tango.PM" + + "R.Stubs\"?\n\026StubMotorStatusRequest\022\020\n\010Mot" + + "or_ID\030\001 \001(\r\022\023\n\013ClearStatus\030\002 \001(\010B\033\n\031com." + + "twine.tango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorStatusRequest_descriptor, + new java.lang.String[] { "MotorID", "ClearStatus", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusResponseOuterClass.java new file mode 100644 index 000000000..100f30f2e --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStatusResponseOuterClass.java @@ -0,0 +1,1470 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorStatusResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorStatusResponseOuterClass { + private StubMotorStatusResponseOuterClass() {} + 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 StubMotorStatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorStatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + * bool SCK_MOD = 2; + */ + boolean getSCKMOD(); + + /** + * bool STEP_LOSS_B = 3; + */ + boolean getSTEPLOSSB(); + + /** + * bool STEP_LOSS_A = 4; + */ + boolean getSTEPLOSSA(); + + /** + * bool OCD = 5; + */ + boolean getOCD(); + + /** + * bool TH_SD = 6; + */ + boolean getTHSD(); + + /** + * bool TH_WRN = 7; + */ + boolean getTHWRN(); + + /** + * bool UVLO = 8; + */ + boolean getUVLO(); + + /** + * bool WRONG_CMD = 9; + */ + boolean getWRONGCMD(); + + /** + * bool NOTPERF_CMD = 10; + */ + boolean getNOTPERFCMD(); + + /** + * uint32 MOT_STATUS = 11; + */ + int getMOTSTATUS(); + + /** + * bool DIR = 12; + */ + boolean getDIR(); + + /** + * bool SW_EVN = 13; + */ + boolean getSWEVN(); + + /** + * bool SW_F = 14; + */ + boolean getSWF(); + + /** + * bool BUSY = 15; + */ + boolean getBUSY(); + + /** + * bool HiZ = 16; + */ + boolean getHiZ(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorStatusResponse} + */ + public static final class StubMotorStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorStatusResponse) + StubMotorStatusResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorStatusResponse.newBuilder() to construct. + private StubMotorStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorStatusResponse() { + motorID_ = 0; + sCKMOD_ = false; + sTEPLOSSB_ = false; + sTEPLOSSA_ = false; + oCD_ = false; + tHSD_ = false; + tHWRN_ = false; + uVLO_ = false; + wRONGCMD_ = false; + nOTPERFCMD_ = false; + mOTSTATUS_ = 0; + dIR_ = false; + sWEVN_ = false; + sWF_ = false; + bUSY_ = false; + hiZ_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorStatusResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + sCKMOD_ = input.readBool(); + break; + } + case 24: { + + sTEPLOSSB_ = input.readBool(); + break; + } + case 32: { + + sTEPLOSSA_ = input.readBool(); + break; + } + case 40: { + + oCD_ = input.readBool(); + break; + } + case 48: { + + tHSD_ = input.readBool(); + break; + } + case 56: { + + tHWRN_ = input.readBool(); + break; + } + case 64: { + + uVLO_ = input.readBool(); + break; + } + case 72: { + + wRONGCMD_ = input.readBool(); + break; + } + case 80: { + + nOTPERFCMD_ = input.readBool(); + break; + } + case 88: { + + mOTSTATUS_ = input.readUInt32(); + break; + } + case 96: { + + dIR_ = input.readBool(); + break; + } + case 104: { + + sWEVN_ = input.readBool(); + break; + } + case 112: { + + sWF_ = input.readBool(); + break; + } + case 120: { + + bUSY_ = input.readBool(); + break; + } + case 128: { + + hiZ_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.class, com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int SCK_MOD_FIELD_NUMBER = 2; + private boolean sCKMOD_; + /** + * bool SCK_MOD = 2; + */ + public boolean getSCKMOD() { + return sCKMOD_; + } + + public static final int STEP_LOSS_B_FIELD_NUMBER = 3; + private boolean sTEPLOSSB_; + /** + * bool STEP_LOSS_B = 3; + */ + public boolean getSTEPLOSSB() { + return sTEPLOSSB_; + } + + public static final int STEP_LOSS_A_FIELD_NUMBER = 4; + private boolean sTEPLOSSA_; + /** + * bool STEP_LOSS_A = 4; + */ + public boolean getSTEPLOSSA() { + return sTEPLOSSA_; + } + + public static final int OCD_FIELD_NUMBER = 5; + private boolean oCD_; + /** + * bool OCD = 5; + */ + public boolean getOCD() { + return oCD_; + } + + public static final int TH_SD_FIELD_NUMBER = 6; + private boolean tHSD_; + /** + * bool TH_SD = 6; + */ + public boolean getTHSD() { + return tHSD_; + } + + public static final int TH_WRN_FIELD_NUMBER = 7; + private boolean tHWRN_; + /** + * bool TH_WRN = 7; + */ + public boolean getTHWRN() { + return tHWRN_; + } + + public static final int UVLO_FIELD_NUMBER = 8; + private boolean uVLO_; + /** + * bool UVLO = 8; + */ + public boolean getUVLO() { + return uVLO_; + } + + public static final int WRONG_CMD_FIELD_NUMBER = 9; + private boolean wRONGCMD_; + /** + * bool WRONG_CMD = 9; + */ + public boolean getWRONGCMD() { + return wRONGCMD_; + } + + public static final int NOTPERF_CMD_FIELD_NUMBER = 10; + private boolean nOTPERFCMD_; + /** + * bool NOTPERF_CMD = 10; + */ + public boolean getNOTPERFCMD() { + return nOTPERFCMD_; + } + + public static final int MOT_STATUS_FIELD_NUMBER = 11; + private int mOTSTATUS_; + /** + * uint32 MOT_STATUS = 11; + */ + public int getMOTSTATUS() { + return mOTSTATUS_; + } + + public static final int DIR_FIELD_NUMBER = 12; + private boolean dIR_; + /** + * bool DIR = 12; + */ + public boolean getDIR() { + return dIR_; + } + + public static final int SW_EVN_FIELD_NUMBER = 13; + private boolean sWEVN_; + /** + * bool SW_EVN = 13; + */ + public boolean getSWEVN() { + return sWEVN_; + } + + public static final int SW_F_FIELD_NUMBER = 14; + private boolean sWF_; + /** + * bool SW_F = 14; + */ + public boolean getSWF() { + return sWF_; + } + + public static final int BUSY_FIELD_NUMBER = 15; + private boolean bUSY_; + /** + * bool BUSY = 15; + */ + public boolean getBUSY() { + return bUSY_; + } + + public static final int HIZ_FIELD_NUMBER = 16; + private boolean hiZ_; + /** + * bool HiZ = 16; + */ + public boolean getHiZ() { + return hiZ_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (sCKMOD_ != false) { + output.writeBool(2, sCKMOD_); + } + if (sTEPLOSSB_ != false) { + output.writeBool(3, sTEPLOSSB_); + } + if (sTEPLOSSA_ != false) { + output.writeBool(4, sTEPLOSSA_); + } + if (oCD_ != false) { + output.writeBool(5, oCD_); + } + if (tHSD_ != false) { + output.writeBool(6, tHSD_); + } + if (tHWRN_ != false) { + output.writeBool(7, tHWRN_); + } + if (uVLO_ != false) { + output.writeBool(8, uVLO_); + } + if (wRONGCMD_ != false) { + output.writeBool(9, wRONGCMD_); + } + if (nOTPERFCMD_ != false) { + output.writeBool(10, nOTPERFCMD_); + } + if (mOTSTATUS_ != 0) { + output.writeUInt32(11, mOTSTATUS_); + } + if (dIR_ != false) { + output.writeBool(12, dIR_); + } + if (sWEVN_ != false) { + output.writeBool(13, sWEVN_); + } + if (sWF_ != false) { + output.writeBool(14, sWF_); + } + if (bUSY_ != false) { + output.writeBool(15, bUSY_); + } + if (hiZ_ != false) { + output.writeBool(16, hiZ_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (sCKMOD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, sCKMOD_); + } + if (sTEPLOSSB_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, sTEPLOSSB_); + } + if (sTEPLOSSA_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, sTEPLOSSA_); + } + if (oCD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, oCD_); + } + if (tHSD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, tHSD_); + } + if (tHWRN_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, tHWRN_); + } + if (uVLO_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, uVLO_); + } + if (wRONGCMD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, wRONGCMD_); + } + if (nOTPERFCMD_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(10, nOTPERFCMD_); + } + if (mOTSTATUS_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(11, mOTSTATUS_); + } + if (dIR_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, dIR_); + } + if (sWEVN_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, sWEVN_); + } + if (sWF_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, sWF_); + } + if (bUSY_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, bUSY_); + } + if (hiZ_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, hiZ_); + } + 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 com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse other = (com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getSCKMOD() + == other.getSCKMOD()); + result = result && (getSTEPLOSSB() + == other.getSTEPLOSSB()); + result = result && (getSTEPLOSSA() + == other.getSTEPLOSSA()); + result = result && (getOCD() + == other.getOCD()); + result = result && (getTHSD() + == other.getTHSD()); + result = result && (getTHWRN() + == other.getTHWRN()); + result = result && (getUVLO() + == other.getUVLO()); + result = result && (getWRONGCMD() + == other.getWRONGCMD()); + result = result && (getNOTPERFCMD() + == other.getNOTPERFCMD()); + result = result && (getMOTSTATUS() + == other.getMOTSTATUS()); + result = result && (getDIR() + == other.getDIR()); + result = result && (getSWEVN() + == other.getSWEVN()); + result = result && (getSWF() + == other.getSWF()); + result = result && (getBUSY() + == other.getBUSY()); + result = result && (getHiZ() + == other.getHiZ()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + SCK_MOD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSCKMOD()); + hash = (37 * hash) + STEP_LOSS_B_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSTEPLOSSB()); + hash = (37 * hash) + STEP_LOSS_A_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSTEPLOSSA()); + hash = (37 * hash) + OCD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOCD()); + hash = (37 * hash) + TH_SD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTHSD()); + hash = (37 * hash) + TH_WRN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTHWRN()); + hash = (37 * hash) + UVLO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUVLO()); + hash = (37 * hash) + WRONG_CMD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getWRONGCMD()); + hash = (37 * hash) + NOTPERF_CMD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNOTPERFCMD()); + hash = (37 * hash) + MOT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getMOTSTATUS(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDIR()); + hash = (37 * hash) + SW_EVN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSWEVN()); + hash = (37 * hash) + SW_F_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSWF()); + hash = (37 * hash) + BUSY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBUSY()); + hash = (37 * hash) + HIZ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHiZ()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse 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 com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse 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 com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorStatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorStatusResponse) + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.class, com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + sCKMOD_ = false; + + sTEPLOSSB_ = false; + + sTEPLOSSA_ = false; + + oCD_ = false; + + tHSD_ = false; + + tHWRN_ = false; + + uVLO_ = false; + + wRONGCMD_ = false; + + nOTPERFCMD_ = false; + + mOTSTATUS_ = 0; + + dIR_ = false; + + sWEVN_ = false; + + sWF_ = false; + + bUSY_ = false; + + hiZ_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse build() { + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse result = new com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse(this); + result.motorID_ = motorID_; + result.sCKMOD_ = sCKMOD_; + result.sTEPLOSSB_ = sTEPLOSSB_; + result.sTEPLOSSA_ = sTEPLOSSA_; + result.oCD_ = oCD_; + result.tHSD_ = tHSD_; + result.tHWRN_ = tHWRN_; + result.uVLO_ = uVLO_; + result.wRONGCMD_ = wRONGCMD_; + result.nOTPERFCMD_ = nOTPERFCMD_; + result.mOTSTATUS_ = mOTSTATUS_; + result.dIR_ = dIR_; + result.sWEVN_ = sWEVN_; + result.sWF_ = sWF_; + result.bUSY_ = bUSY_; + result.hiZ_ = hiZ_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getSCKMOD() != false) { + setSCKMOD(other.getSCKMOD()); + } + if (other.getSTEPLOSSB() != false) { + setSTEPLOSSB(other.getSTEPLOSSB()); + } + if (other.getSTEPLOSSA() != false) { + setSTEPLOSSA(other.getSTEPLOSSA()); + } + if (other.getOCD() != false) { + setOCD(other.getOCD()); + } + if (other.getTHSD() != false) { + setTHSD(other.getTHSD()); + } + if (other.getTHWRN() != false) { + setTHWRN(other.getTHWRN()); + } + if (other.getUVLO() != false) { + setUVLO(other.getUVLO()); + } + if (other.getWRONGCMD() != false) { + setWRONGCMD(other.getWRONGCMD()); + } + if (other.getNOTPERFCMD() != false) { + setNOTPERFCMD(other.getNOTPERFCMD()); + } + if (other.getMOTSTATUS() != 0) { + setMOTSTATUS(other.getMOTSTATUS()); + } + if (other.getDIR() != false) { + setDIR(other.getDIR()); + } + if (other.getSWEVN() != false) { + setSWEVN(other.getSWEVN()); + } + if (other.getSWF() != false) { + setSWF(other.getSWF()); + } + if (other.getBUSY() != false) { + setBUSY(other.getBUSY()); + } + if (other.getHiZ() != false) { + setHiZ(other.getHiZ()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private boolean sCKMOD_ ; + /** + * bool SCK_MOD = 2; + */ + public boolean getSCKMOD() { + return sCKMOD_; + } + /** + * bool SCK_MOD = 2; + */ + public Builder setSCKMOD(boolean value) { + + sCKMOD_ = value; + onChanged(); + return this; + } + /** + * bool SCK_MOD = 2; + */ + public Builder clearSCKMOD() { + + sCKMOD_ = false; + onChanged(); + return this; + } + + private boolean sTEPLOSSB_ ; + /** + * bool STEP_LOSS_B = 3; + */ + public boolean getSTEPLOSSB() { + return sTEPLOSSB_; + } + /** + * bool STEP_LOSS_B = 3; + */ + public Builder setSTEPLOSSB(boolean value) { + + sTEPLOSSB_ = value; + onChanged(); + return this; + } + /** + * bool STEP_LOSS_B = 3; + */ + public Builder clearSTEPLOSSB() { + + sTEPLOSSB_ = false; + onChanged(); + return this; + } + + private boolean sTEPLOSSA_ ; + /** + * bool STEP_LOSS_A = 4; + */ + public boolean getSTEPLOSSA() { + return sTEPLOSSA_; + } + /** + * bool STEP_LOSS_A = 4; + */ + public Builder setSTEPLOSSA(boolean value) { + + sTEPLOSSA_ = value; + onChanged(); + return this; + } + /** + * bool STEP_LOSS_A = 4; + */ + public Builder clearSTEPLOSSA() { + + sTEPLOSSA_ = false; + onChanged(); + return this; + } + + private boolean oCD_ ; + /** + * bool OCD = 5; + */ + public boolean getOCD() { + return oCD_; + } + /** + * bool OCD = 5; + */ + public Builder setOCD(boolean value) { + + oCD_ = value; + onChanged(); + return this; + } + /** + * bool OCD = 5; + */ + public Builder clearOCD() { + + oCD_ = false; + onChanged(); + return this; + } + + private boolean tHSD_ ; + /** + * bool TH_SD = 6; + */ + public boolean getTHSD() { + return tHSD_; + } + /** + * bool TH_SD = 6; + */ + public Builder setTHSD(boolean value) { + + tHSD_ = value; + onChanged(); + return this; + } + /** + * bool TH_SD = 6; + */ + public Builder clearTHSD() { + + tHSD_ = false; + onChanged(); + return this; + } + + private boolean tHWRN_ ; + /** + * bool TH_WRN = 7; + */ + public boolean getTHWRN() { + return tHWRN_; + } + /** + * bool TH_WRN = 7; + */ + public Builder setTHWRN(boolean value) { + + tHWRN_ = value; + onChanged(); + return this; + } + /** + * bool TH_WRN = 7; + */ + public Builder clearTHWRN() { + + tHWRN_ = false; + onChanged(); + return this; + } + + private boolean uVLO_ ; + /** + * bool UVLO = 8; + */ + public boolean getUVLO() { + return uVLO_; + } + /** + * bool UVLO = 8; + */ + public Builder setUVLO(boolean value) { + + uVLO_ = value; + onChanged(); + return this; + } + /** + * bool UVLO = 8; + */ + public Builder clearUVLO() { + + uVLO_ = false; + onChanged(); + return this; + } + + private boolean wRONGCMD_ ; + /** + * bool WRONG_CMD = 9; + */ + public boolean getWRONGCMD() { + return wRONGCMD_; + } + /** + * bool WRONG_CMD = 9; + */ + public Builder setWRONGCMD(boolean value) { + + wRONGCMD_ = value; + onChanged(); + return this; + } + /** + * bool WRONG_CMD = 9; + */ + public Builder clearWRONGCMD() { + + wRONGCMD_ = false; + onChanged(); + return this; + } + + private boolean nOTPERFCMD_ ; + /** + * bool NOTPERF_CMD = 10; + */ + public boolean getNOTPERFCMD() { + return nOTPERFCMD_; + } + /** + * bool NOTPERF_CMD = 10; + */ + public Builder setNOTPERFCMD(boolean value) { + + nOTPERFCMD_ = value; + onChanged(); + return this; + } + /** + * bool NOTPERF_CMD = 10; + */ + public Builder clearNOTPERFCMD() { + + nOTPERFCMD_ = false; + onChanged(); + return this; + } + + private int mOTSTATUS_ ; + /** + * uint32 MOT_STATUS = 11; + */ + public int getMOTSTATUS() { + return mOTSTATUS_; + } + /** + * uint32 MOT_STATUS = 11; + */ + public Builder setMOTSTATUS(int value) { + + mOTSTATUS_ = value; + onChanged(); + return this; + } + /** + * uint32 MOT_STATUS = 11; + */ + public Builder clearMOTSTATUS() { + + mOTSTATUS_ = 0; + onChanged(); + return this; + } + + private boolean dIR_ ; + /** + * bool DIR = 12; + */ + public boolean getDIR() { + return dIR_; + } + /** + * bool DIR = 12; + */ + public Builder setDIR(boolean value) { + + dIR_ = value; + onChanged(); + return this; + } + /** + * bool DIR = 12; + */ + public Builder clearDIR() { + + dIR_ = false; + onChanged(); + return this; + } + + private boolean sWEVN_ ; + /** + * bool SW_EVN = 13; + */ + public boolean getSWEVN() { + return sWEVN_; + } + /** + * bool SW_EVN = 13; + */ + public Builder setSWEVN(boolean value) { + + sWEVN_ = value; + onChanged(); + return this; + } + /** + * bool SW_EVN = 13; + */ + public Builder clearSWEVN() { + + sWEVN_ = false; + onChanged(); + return this; + } + + private boolean sWF_ ; + /** + * bool SW_F = 14; + */ + public boolean getSWF() { + return sWF_; + } + /** + * bool SW_F = 14; + */ + public Builder setSWF(boolean value) { + + sWF_ = value; + onChanged(); + return this; + } + /** + * bool SW_F = 14; + */ + public Builder clearSWF() { + + sWF_ = false; + onChanged(); + return this; + } + + private boolean bUSY_ ; + /** + * bool BUSY = 15; + */ + public boolean getBUSY() { + return bUSY_; + } + /** + * bool BUSY = 15; + */ + public Builder setBUSY(boolean value) { + + bUSY_ = value; + onChanged(); + return this; + } + /** + * bool BUSY = 15; + */ + public Builder clearBUSY() { + + bUSY_ = false; + onChanged(); + return this; + } + + private boolean hiZ_ ; + /** + * bool HiZ = 16; + */ + public boolean getHiZ() { + return hiZ_; + } + /** + * bool HiZ = 16; + */ + public Builder setHiZ(boolean value) { + + hiZ_ = value; + onChanged(); + return this; + } + /** + * bool HiZ = 16; + */ + public Builder clearHiZ() { + + hiZ_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorStatusResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorStatusResponse) + private static final com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorStatusResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorStatusResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorStatusResponseOuterClass.StubMotorStatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_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\035StubMotorStatusResponse.proto\022\017Tango.P" + + "MR.Stubs\"\242\002\n\027StubMotorStatusResponse\022\020\n\010" + + "Motor_ID\030\001 \001(\r\022\017\n\007SCK_MOD\030\002 \001(\010\022\023\n\013STEP_" + + "LOSS_B\030\003 \001(\010\022\023\n\013STEP_LOSS_A\030\004 \001(\010\022\013\n\003OCD" + + "\030\005 \001(\010\022\r\n\005TH_SD\030\006 \001(\010\022\016\n\006TH_WRN\030\007 \001(\010\022\014\n" + + "\004UVLO\030\010 \001(\010\022\021\n\tWRONG_CMD\030\t \001(\010\022\023\n\013NOTPER" + + "F_CMD\030\n \001(\010\022\022\n\nMOT_STATUS\030\013 \001(\r\022\013\n\003DIR\030\014" + + " \001(\010\022\016\n\006SW_EVN\030\r \001(\010\022\014\n\004SW_F\030\016 \001(\010\022\014\n\004BU" + + "SY\030\017 \001(\010\022\013\n\003HiZ\030\020 \001(\010B\033\n\031com.twine.tango" + + ".pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorStatusResponse_descriptor, + new java.lang.String[] { "MotorID", "SCKMOD", "STEPLOSSB", "STEPLOSSA", "OCD", "THSD", "THWRN", "UVLO", "WRONGCMD", "NOTPERFCMD", "MOTSTATUS", "DIR", "SWEVN", "SWF", "BUSY", "HiZ", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopRequestOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopRequestOuterClass.java new file mode 100644 index 000000000..910fa92c8 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopRequestOuterClass.java @@ -0,0 +1,588 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorStopRequest.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorStopRequestOuterClass { + private StubMotorStopRequestOuterClass() {} + 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 StubMotorStopRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorStopRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + *
+     * 1 - Hard_Stop/ 2 - Soft_Stop/ 3 - Hard_Hiz/ 4 - Soft_Hiz
+     * 
+ * + * uint32 Stop_CMD = 2; + */ + int getStopCMD(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorStopRequest} + */ + public static final class StubMotorStopRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorStopRequest) + StubMotorStopRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorStopRequest.newBuilder() to construct. + private StubMotorStopRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorStopRequest() { + motorID_ = 0; + stopCMD_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorStopRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + stopCMD_ = input.readUInt32(); + 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 com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.class, com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int STOP_CMD_FIELD_NUMBER = 2; + private int stopCMD_; + /** + *
+     * 1 - Hard_Stop/ 2 - Soft_Stop/ 3 - Hard_Hiz/ 4 - Soft_Hiz
+     * 
+ * + * uint32 Stop_CMD = 2; + */ + public int getStopCMD() { + return stopCMD_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (stopCMD_ != 0) { + output.writeUInt32(2, stopCMD_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (stopCMD_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, stopCMD_); + } + 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 com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest other = (com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getStopCMD() + == other.getStopCMD()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + STOP_CMD_FIELD_NUMBER; + hash = (53 * hash) + getStopCMD(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest 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 com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest 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 com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorStopRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorStopRequest) + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.class, com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + stopCMD_ = 0; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopRequest_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest build() { + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest buildPartial() { + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest result = new com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest(this); + result.motorID_ = motorID_; + result.stopCMD_ = stopCMD_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest other) { + if (other == com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getStopCMD() != 0) { + setStopCMD(other.getStopCMD()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private int stopCMD_ ; + /** + *
+       * 1 - Hard_Stop/ 2 - Soft_Stop/ 3 - Hard_Hiz/ 4 - Soft_Hiz
+       * 
+ * + * uint32 Stop_CMD = 2; + */ + public int getStopCMD() { + return stopCMD_; + } + /** + *
+       * 1 - Hard_Stop/ 2 - Soft_Stop/ 3 - Hard_Hiz/ 4 - Soft_Hiz
+       * 
+ * + * uint32 Stop_CMD = 2; + */ + public Builder setStopCMD(int value) { + + stopCMD_ = value; + onChanged(); + return this; + } + /** + *
+       * 1 - Hard_Stop/ 2 - Soft_Stop/ 3 - Hard_Hiz/ 4 - Soft_Hiz
+       * 
+ * + * uint32 Stop_CMD = 2; + */ + public Builder clearStopCMD() { + + stopCMD_ = 0; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorStopRequest) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorStopRequest) + private static final com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest(); + } + + public static com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorStopRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorStopRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorStopRequestOuterClass.StubMotorStopRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorStopRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorStopRequest_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\032StubMotorStopRequest.proto\022\017Tango.PMR." + + "Stubs\":\n\024StubMotorStopRequest\022\020\n\010Motor_I" + + "D\030\001 \001(\r\022\020\n\010Stop_CMD\030\002 \001(\rB\033\n\031com.twine.t" + + "ango.pmr.stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorStopRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorStopRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorStopRequest_descriptor, + new java.lang.String[] { "MotorID", "StopCMD", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopResponseOuterClass.java b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopResponseOuterClass.java new file mode 100644 index 000000000..73b71d8e2 --- /dev/null +++ b/Software/Android_Studio/Tango.PMR/src/main/java/com/twine/tango/pmr/stubs/StubMotorStopResponseOuterClass.java @@ -0,0 +1,737 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: StubMotorStopResponse.proto + +package com.twine.tango.pmr.stubs; + +public final class StubMotorStopResponseOuterClass { + private StubMotorStopResponseOuterClass() {} + 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 StubMotorStopResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Tango.PMR.Stubs.StubMotorStopResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * uint32 Motor_ID = 1; + */ + int getMotorID(); + + /** + *
+     * Stopped / Acceleration / Deceleration / Constant speed
+     * 
+ * + * uint32 Mot_Status = 2; + */ + int getMotStatus(); + + /** + *
+     * 1 - high impedance state.
+     * 
+ * + * bool HiZ = 3; + */ + boolean getHiZ(); + + /** + * bool BUSY = 4; + */ + boolean getBUSY(); + } + /** + * Protobuf type {@code Tango.PMR.Stubs.StubMotorStopResponse} + */ + public static final class StubMotorStopResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:Tango.PMR.Stubs.StubMotorStopResponse) + StubMotorStopResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use StubMotorStopResponse.newBuilder() to construct. + private StubMotorStopResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StubMotorStopResponse() { + motorID_ = 0; + motStatus_ = 0; + hiZ_ = false; + bUSY_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StubMotorStopResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + + motorID_ = input.readUInt32(); + break; + } + case 16: { + + motStatus_ = input.readUInt32(); + break; + } + case 24: { + + hiZ_ = input.readBool(); + break; + } + case 32: { + + bUSY_ = input.readBool(); + 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 com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.class, com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.Builder.class); + } + + public static final int MOTOR_ID_FIELD_NUMBER = 1; + private int motorID_; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + + public static final int MOT_STATUS_FIELD_NUMBER = 2; + private int motStatus_; + /** + *
+     * Stopped / Acceleration / Deceleration / Constant speed
+     * 
+ * + * uint32 Mot_Status = 2; + */ + public int getMotStatus() { + return motStatus_; + } + + public static final int HIZ_FIELD_NUMBER = 3; + private boolean hiZ_; + /** + *
+     * 1 - high impedance state.
+     * 
+ * + * bool HiZ = 3; + */ + public boolean getHiZ() { + return hiZ_; + } + + public static final int BUSY_FIELD_NUMBER = 4; + private boolean bUSY_; + /** + * bool BUSY = 4; + */ + public boolean getBUSY() { + return bUSY_; + } + + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (motorID_ != 0) { + output.writeUInt32(1, motorID_); + } + if (motStatus_ != 0) { + output.writeUInt32(2, motStatus_); + } + if (hiZ_ != false) { + output.writeBool(3, hiZ_); + } + if (bUSY_ != false) { + output.writeBool(4, bUSY_); + } + unknownFields.writeTo(output); + } + + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (motorID_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(1, motorID_); + } + if (motStatus_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, motStatus_); + } + if (hiZ_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, hiZ_); + } + if (bUSY_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, bUSY_); + } + 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 com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse)) { + return super.equals(obj); + } + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse other = (com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse) obj; + + boolean result = true; + result = result && (getMotorID() + == other.getMotorID()); + result = result && (getMotStatus() + == other.getMotStatus()); + result = result && (getHiZ() + == other.getHiZ()); + result = result && (getBUSY() + == other.getBUSY()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MOTOR_ID_FIELD_NUMBER; + hash = (53 * hash) + getMotorID(); + hash = (37 * hash) + MOT_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getMotStatus(); + hash = (37 * hash) + HIZ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHiZ()); + hash = (37 * hash) + BUSY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBUSY()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse 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 com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse 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 com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + 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 Tango.PMR.Stubs.StubMotorStopResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:Tango.PMR.Stubs.StubMotorStopResponse) + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.class, com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.Builder.class); + } + + // Construct using com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + public Builder clear() { + super.clear(); + motorID_ = 0; + + motStatus_ = 0; + + hiZ_ = false; + + bUSY_ = false; + + return this; + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.internal_static_Tango_PMR_Stubs_StubMotorStopResponse_descriptor; + } + + public com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse getDefaultInstanceForType() { + return com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.getDefaultInstance(); + } + + public com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse build() { + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse buildPartial() { + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse result = new com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse(this); + result.motorID_ = motorID_; + result.motStatus_ = motStatus_; + result.hiZ_ = hiZ_; + result.bUSY_ = bUSY_; + onBuilt(); + return result; + } + + public Builder clone() { + return (Builder) super.clone(); + } + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse) { + return mergeFrom((com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse other) { + if (other == com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse.getDefaultInstance()) return this; + if (other.getMotorID() != 0) { + setMotorID(other.getMotorID()); + } + if (other.getMotStatus() != 0) { + setMotStatus(other.getMotStatus()); + } + if (other.getHiZ() != false) { + setHiZ(other.getHiZ()); + } + if (other.getBUSY() != false) { + setBUSY(other.getBUSY()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int motorID_ ; + /** + * uint32 Motor_ID = 1; + */ + public int getMotorID() { + return motorID_; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder setMotorID(int value) { + + motorID_ = value; + onChanged(); + return this; + } + /** + * uint32 Motor_ID = 1; + */ + public Builder clearMotorID() { + + motorID_ = 0; + onChanged(); + return this; + } + + private int motStatus_ ; + /** + *
+       * Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 2; + */ + public int getMotStatus() { + return motStatus_; + } + /** + *
+       * Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 2; + */ + public Builder setMotStatus(int value) { + + motStatus_ = value; + onChanged(); + return this; + } + /** + *
+       * Stopped / Acceleration / Deceleration / Constant speed
+       * 
+ * + * uint32 Mot_Status = 2; + */ + public Builder clearMotStatus() { + + motStatus_ = 0; + onChanged(); + return this; + } + + private boolean hiZ_ ; + /** + *
+       * 1 - high impedance state.
+       * 
+ * + * bool HiZ = 3; + */ + public boolean getHiZ() { + return hiZ_; + } + /** + *
+       * 1 - high impedance state.
+       * 
+ * + * bool HiZ = 3; + */ + public Builder setHiZ(boolean value) { + + hiZ_ = value; + onChanged(); + return this; + } + /** + *
+       * 1 - high impedance state.
+       * 
+ * + * bool HiZ = 3; + */ + public Builder clearHiZ() { + + hiZ_ = false; + onChanged(); + return this; + } + + private boolean bUSY_ ; + /** + * bool BUSY = 4; + */ + public boolean getBUSY() { + return bUSY_; + } + /** + * bool BUSY = 4; + */ + public Builder setBUSY(boolean value) { + + bUSY_ = value; + onChanged(); + return this; + } + /** + * bool BUSY = 4; + */ + public Builder clearBUSY() { + + bUSY_ = false; + onChanged(); + return this; + } + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:Tango.PMR.Stubs.StubMotorStopResponse) + } + + // @@protoc_insertion_point(class_scope:Tango.PMR.Stubs.StubMotorStopResponse) + private static final com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse(); + } + + public static com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public StubMotorStopResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StubMotorStopResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public com.twine.tango.pmr.stubs.StubMotorStopResponseOuterClass.StubMotorStopResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Tango_PMR_Stubs_StubMotorStopResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_Tango_PMR_Stubs_StubMotorStopResponse_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\033StubMotorStopResponse.proto\022\017Tango.PMR" + + ".Stubs\"X\n\025StubMotorStopResponse\022\020\n\010Motor" + + "_ID\030\001 \001(\r\022\022\n\nMot_Status\030\002 \001(\r\022\013\n\003HiZ\030\003 \001" + + "(\010\022\014\n\004BUSY\030\004 \001(\010B\033\n\031com.twine.tango.pmr." + + "stubsb\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_Tango_PMR_Stubs_StubMotorStopResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Tango_PMR_Stubs_StubMotorStopResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_Tango_PMR_Stubs_StubMotorStopResponse_descriptor, + new java.lang.String[] { "MotorID", "MotStatus", "HiZ", "BUSY", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt b/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt index 8633ab3c5..f571399a1 100644 --- a/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt +++ b/Software/Android_Studio/Tango.PMR/src/main/res/raw/packages.txt @@ -1,6 +1,10 @@ +colorlab common +debugging diagnostics +embroidery +hardware integration -jobs +printing stubs synchronization diff --git a/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/TransporterBase.java b/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/TransporterBase.java index 2a7e13711..921cd6338 100644 --- a/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/TransporterBase.java +++ b/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/TransporterBase.java @@ -460,7 +460,7 @@ public abstract class TransporterBase implements ITransporter while (getState() == TransportComponentState.Connected) { - if (adapter != null && sendingQueue.size() > 0) + while (adapter != null && sendingQueue.size() > 0) { TransportMessageBase message = null; message = sendingQueue.poll(); @@ -517,7 +517,7 @@ public abstract class TransporterBase implements ITransporter { byte[] data; - if (adapter != null && arrivedResponses.size() > 0) + while (adapter != null && arrivedResponses.size() > 0) { data = arrivedResponses.poll(); diff --git a/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/adapters/TcpTransportAdapter.java b/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/adapters/TcpTransportAdapter.java index 7f63bc76f..2d9282f07 100644 --- a/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/adapters/TcpTransportAdapter.java +++ b/Software/Android_Studio/Tango.Transport/src/main/java/com/twine/tango/transport/adapters/TcpTransportAdapter.java @@ -209,8 +209,6 @@ public class TcpTransportAdapter extends TransportAdapterBase { read += stream.read(data, read, Math.min(stream.available(), expectedSize - read)); - SystemClock.sleep(2); - if (getState() != TransportComponentState.Connected) { break; -- cgit v1.3.1