JaiaBot 2.1.1
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
pressure_temperature.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/sensor/pressure_temperature.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
39
40#include <boost/units/systems/temperature/celsius.hpp>
41
42#include <boost/units/systems/si.hpp>
43
44#include <boost/units/base_units/metric/bar.hpp>
45// @@protoc_insertion_point(includes)
46#include <google/protobuf/port_def.inc>
47#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
48PROTOBUF_NAMESPACE_OPEN
49namespace internal {
50class AnyMetadata;
51} // namespace internal
52PROTOBUF_NAMESPACE_CLOSE
53
54// Internal implementation detail -- do not use these members.
56 static const uint32_t offsets[];
57};
58extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto;
59namespace jaiabot {
60namespace protobuf {
61class PressureAdjustedData;
62struct PressureAdjustedDataDefaultTypeInternal;
63extern PressureAdjustedDataDefaultTypeInternal _PressureAdjustedData_default_instance_;
64class PressureTemperatureData;
65struct PressureTemperatureDataDefaultTypeInternal;
66extern PressureTemperatureDataDefaultTypeInternal _PressureTemperatureData_default_instance_;
67} // namespace protobuf
68} // namespace jaiabot
69PROTOBUF_NAMESPACE_OPEN
70template<> ::jaiabot::protobuf::PressureAdjustedData* Arena::CreateMaybeMessage<::jaiabot::protobuf::PressureAdjustedData>(Arena*);
71template<> ::jaiabot::protobuf::PressureTemperatureData* Arena::CreateMaybeMessage<::jaiabot::protobuf::PressureTemperatureData>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace jaiabot {
74namespace protobuf {
75
76enum PressureSensorType : int {
77 BAR02 = 1,
78 BAR30 = 2
79};
80bool PressureSensorType_IsValid(int value);
84
85const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PressureSensorType_descriptor();
86template<typename T>
87inline const std::string& PressureSensorType_Name(T enum_t_value) {
88 static_assert(::std::is_same<T, PressureSensorType>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function PressureSensorType_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
92 PressureSensorType_descriptor(), enum_t_value);
93}
94inline bool PressureSensorType_Parse(
95 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PressureSensorType* value) {
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<PressureSensorType>(
97 PressureSensorType_descriptor(), name, value);
98}
99// ===================================================================
100
101class PressureTemperatureData final :
102 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.PressureTemperatureData) */ {
103 public:
105 ~PressureTemperatureData() override;
106 explicit PROTOBUF_CONSTEXPR PressureTemperatureData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
107
111 *this = ::std::move(from);
112 }
113
115 CopyFrom(from);
116 return *this;
117 }
119 if (this == &from) return *this;
120 if (GetOwningArena() == from.GetOwningArena()
121 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
122 && GetOwningArena() != nullptr
123 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
124 ) {
125 InternalSwap(&from);
126 } else {
127 CopyFrom(from);
128 }
129 return *this;
130 }
131
132 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
133 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
134 }
135 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
136 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
137 }
138
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
140 return GetDescriptor();
141 }
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
143 return default_instance().GetMetadata().descriptor;
144 }
145 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
146 return default_instance().GetMetadata().reflection;
147 }
150 }
152 return reinterpret_cast<const PressureTemperatureData*>(
154 }
155 static constexpr int kIndexInFileMessages =
156 0;
157
159 a.Swap(&b);
160 }
161 inline void Swap(PressureTemperatureData* other) {
162 if (other == this) return;
163 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
164 if (GetOwningArena() != nullptr &&
165 GetOwningArena() == other->GetOwningArena()) {
166 #else // PROTOBUF_FORCE_COPY_IN_SWAP
167 if (GetOwningArena() == other->GetOwningArena()) {
168 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
169 InternalSwap(other);
170 } else {
171 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
172 }
173 }
175 if (other == this) return;
176 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
177 InternalSwap(other);
178 }
179
180 // implements Message ----------------------------------------------
181
182 PressureTemperatureData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
183 return CreateMaybeMessage<PressureTemperatureData>(arena);
184 }
185 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
186 void CopyFrom(const PressureTemperatureData& from);
187 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
188 void MergeFrom( const PressureTemperatureData& from) {
189 PressureTemperatureData::MergeImpl(*this, from);
190 }
191 private:
192 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
193 public:
194 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
195 bool IsInitialized() const final;
196
197 size_t ByteSizeLong() const final;
198 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
199 uint8_t* _InternalSerialize(
200 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
201 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
202
203 private:
204 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
205 void SharedDtor();
206 void SetCachedSize(int size) const final;
207 void InternalSwap(PressureTemperatureData* other);
208
209 private:
210 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
211 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
212 return "jaiabot.protobuf.PressureTemperatureData";
213 }
214 protected:
215 explicit PressureTemperatureData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
216 bool is_message_owned = false);
217 public:
218
219 static const ClassData _class_data_;
220 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
221
222 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
223
224 // nested types ----------------------------------------------------
225
226 // accessors -------------------------------------------------------
227
228 enum : int {
232 };
233 // required double pressure_raw = 1 [(.dccl.field) = {
234 bool has_pressure_raw() const;
235 private:
236 bool _internal_has_pressure_raw() const;
237 public:
238 void clear_pressure_raw();
239 double pressure_raw() const;
240 void set_pressure_raw(double value);
241 private:
242 double _internal_pressure_raw() const;
243 void _internal_set_pressure_raw(double value);
244 public:
245
246 // optional double temperature = 2 [(.dccl.field) = {
247 bool has_temperature() const;
248 private:
249 bool _internal_has_temperature() const;
250 public:
251 void clear_temperature();
252 double temperature() const;
253 void set_temperature(double value);
254 private:
255 double _internal_temperature() const;
256 void _internal_set_temperature(double value);
257 public:
258
259 // required .jaiabot.protobuf.PressureSensorType sensor_type = 3;
260 bool has_sensor_type() const;
261 private:
262 bool _internal_has_sensor_type() const;
263 public:
264 void clear_sensor_type();
267 private:
268 ::jaiabot::protobuf::PressureSensorType _internal_sensor_type() const;
269 void _internal_set_sensor_type(::jaiabot::protobuf::PressureSensorType value);
270 public:
271
272 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_raw_unit;
273
274 template<typename Quantity >
275 void set_pressure_raw_with_units(Quantity value_w_units)
276 { set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
277
278 template<typename Quantity >
279 Quantity pressure_raw_with_units() const
280 { return Quantity(pressure_raw() * pressure_raw_unit()); };
281
282 boost::units::quantity< pressure_raw_unit,double > pressure_raw_with_units() const
283 { return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
284
285 typedef boost::units::temperature_dimension temperature_dimension;
286
287 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> > temperature_unit;
288
289 template<typename Quantity >
290 void set_temperature_with_units(Quantity value_w_units)
291 { set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
292
293 template<typename Quantity >
294 Quantity temperature_with_units() const
295 { return Quantity(temperature() * temperature_unit()); };
296
297 boost::units::quantity< temperature_unit,double > temperature_with_units() const
298 { return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
299
300 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.PressureTemperatureData)
301 private:
302 class _Internal;
303
304 // helper for ByteSizeLong()
305 size_t RequiredFieldsByteSizeFallback() const;
306
307 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
308 typedef void InternalArenaConstructable_;
309 typedef void DestructorSkippable_;
310 struct Impl_ {
311 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
312 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
313 double pressure_raw_;
314 double temperature_;
315 int sensor_type_;
316 };
317 union { Impl_ _impl_; };
318 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto;
319};
320// -------------------------------------------------------------------
321
322class PressureAdjustedData final :
323 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.PressureAdjustedData) */ {
324 public:
325 inline PressureAdjustedData() : PressureAdjustedData(nullptr) {}
326 ~PressureAdjustedData() override;
327 explicit PROTOBUF_CONSTEXPR PressureAdjustedData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
328
329 PressureAdjustedData(const PressureAdjustedData& from);
330 PressureAdjustedData(PressureAdjustedData&& from) noexcept
331 : PressureAdjustedData() {
332 *this = ::std::move(from);
333 }
334
335 inline PressureAdjustedData& operator=(const PressureAdjustedData& from) {
336 CopyFrom(from);
337 return *this;
338 }
339 inline PressureAdjustedData& operator=(PressureAdjustedData&& from) noexcept {
340 if (this == &from) return *this;
341 if (GetOwningArena() == from.GetOwningArena()
342 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
343 && GetOwningArena() != nullptr
344 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
345 ) {
346 InternalSwap(&from);
347 } else {
348 CopyFrom(from);
349 }
350 return *this;
351 }
352
353 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
354 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
355 }
356 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
357 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
358 }
359
360 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
361 return GetDescriptor();
362 }
363 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
364 return default_instance().GetMetadata().descriptor;
365 }
366 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
367 return default_instance().GetMetadata().reflection;
368 }
369 static const PressureAdjustedData& default_instance() {
370 return *internal_default_instance();
371 }
372 static inline const PressureAdjustedData* internal_default_instance() {
373 return reinterpret_cast<const PressureAdjustedData*>(
375 }
376 static constexpr int kIndexInFileMessages =
377 1;
378
379 friend void swap(PressureAdjustedData& a, PressureAdjustedData& b) {
380 a.Swap(&b);
381 }
382 inline void Swap(PressureAdjustedData* other) {
383 if (other == this) return;
384 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
385 if (GetOwningArena() != nullptr &&
386 GetOwningArena() == other->GetOwningArena()) {
387 #else // PROTOBUF_FORCE_COPY_IN_SWAP
388 if (GetOwningArena() == other->GetOwningArena()) {
389 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
390 InternalSwap(other);
391 } else {
392 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
393 }
394 }
395 void UnsafeArenaSwap(PressureAdjustedData* other) {
396 if (other == this) return;
397 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
398 InternalSwap(other);
399 }
400
401 // implements Message ----------------------------------------------
402
403 PressureAdjustedData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
404 return CreateMaybeMessage<PressureAdjustedData>(arena);
405 }
406 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
407 void CopyFrom(const PressureAdjustedData& from);
408 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
409 void MergeFrom( const PressureAdjustedData& from) {
410 PressureAdjustedData::MergeImpl(*this, from);
411 }
412 private:
413 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
414 public:
415 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
416 bool IsInitialized() const final;
417
418 size_t ByteSizeLong() const final;
419 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
420 uint8_t* _InternalSerialize(
421 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
422 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
423
424 private:
425 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
426 void SharedDtor();
427 void SetCachedSize(int size) const final;
428 void InternalSwap(PressureAdjustedData* other);
429
430 private:
431 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
432 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
433 return "jaiabot.protobuf.PressureAdjustedData";
434 }
435 protected:
436 explicit PressureAdjustedData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
437 bool is_message_owned = false);
438 public:
439
440 static const ClassData _class_data_;
441 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
442
443 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
444
445 // nested types ----------------------------------------------------
446
447 // accessors -------------------------------------------------------
448
449 enum : int {
450 kPressureRawFieldNumber = 1,
451 kPressureAdjustedFieldNumber = 2,
452 kPressureRawBeforeDiveFieldNumber = 3,
453 kCalculatedDepthFieldNumber = 11,
454 };
455 // required double pressure_raw = 1 [(.dccl.field) = {
456 bool has_pressure_raw() const;
457 private:
458 bool _internal_has_pressure_raw() const;
459 public:
460 void clear_pressure_raw();
461 double pressure_raw() const;
462 void set_pressure_raw(double value);
463 private:
464 double _internal_pressure_raw() const;
465 void _internal_set_pressure_raw(double value);
466 public:
467
468 // optional double pressure_adjusted = 2 [(.dccl.field) = {
469 bool has_pressure_adjusted() const;
470 private:
471 bool _internal_has_pressure_adjusted() const;
472 public:
473 void clear_pressure_adjusted();
474 double pressure_adjusted() const;
475 void set_pressure_adjusted(double value);
476 private:
477 double _internal_pressure_adjusted() const;
478 void _internal_set_pressure_adjusted(double value);
479 public:
480
481 // optional double pressure_raw_before_dive = 3 [(.dccl.field) = {
482 bool has_pressure_raw_before_dive() const;
483 private:
484 bool _internal_has_pressure_raw_before_dive() const;
485 public:
486 void clear_pressure_raw_before_dive();
487 double pressure_raw_before_dive() const;
488 void set_pressure_raw_before_dive(double value);
489 private:
490 double _internal_pressure_raw_before_dive() const;
491 void _internal_set_pressure_raw_before_dive(double value);
492 public:
493
494 // optional double calculated_depth = 11 [(.dccl.field) = {
495 bool has_calculated_depth() const;
496 private:
497 bool _internal_has_calculated_depth() const;
498 public:
499 void clear_calculated_depth();
500 double calculated_depth() const;
501 void set_calculated_depth(double value);
502 private:
503 double _internal_calculated_depth() const;
504 void _internal_set_calculated_depth(double value);
505 public:
506
507 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_raw_unit;
508
509 template<typename Quantity >
510 void set_pressure_raw_with_units(Quantity value_w_units)
511 { set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
512
513 template<typename Quantity >
514 Quantity pressure_raw_with_units() const
515 { return Quantity(pressure_raw() * pressure_raw_unit()); };
516
517 boost::units::quantity< pressure_raw_unit,double > pressure_raw_with_units() const
518 { return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
519
520 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_adjusted_unit;
521
522 template<typename Quantity >
523 void set_pressure_adjusted_with_units(Quantity value_w_units)
524 { set_pressure_adjusted(boost::units::quantity<pressure_adjusted_unit,double >(value_w_units).value() ); };
525
526 template<typename Quantity >
527 Quantity pressure_adjusted_with_units() const
528 { return Quantity(pressure_adjusted() * pressure_adjusted_unit()); };
529
530 boost::units::quantity< pressure_adjusted_unit,double > pressure_adjusted_with_units() const
531 { return pressure_adjusted_with_units<boost::units::quantity< pressure_adjusted_unit,double > >(); };
532
533 typedef boost::units::make_scaled_unit<boost::units::metric::bar_base_unit::unit_type , boost::units::scale<10, boost::units::static_rational<-1> > >::type pressure_raw_before_dive_unit;
534
535 template<typename Quantity >
536 void set_pressure_raw_before_dive_with_units(Quantity value_w_units)
537 { set_pressure_raw_before_dive(boost::units::quantity<pressure_raw_before_dive_unit,double >(value_w_units).value() ); };
538
539 template<typename Quantity >
540 Quantity pressure_raw_before_dive_with_units() const
541 { return Quantity(pressure_raw_before_dive() * pressure_raw_before_dive_unit()); };
542
543 boost::units::quantity< pressure_raw_before_dive_unit,double > pressure_raw_before_dive_with_units() const
544 { return pressure_raw_before_dive_with_units<boost::units::quantity< pressure_raw_before_dive_unit,double > >(); };
545
546 typedef boost::units::length_dimension calculated_depth_dimension;
547
548 typedef boost::units::unit<calculated_depth_dimension,boost::units::si::system> calculated_depth_unit;
549
550 template<typename Quantity >
551 void set_calculated_depth_with_units(Quantity value_w_units)
552 { set_calculated_depth(boost::units::quantity<calculated_depth_unit,double >(value_w_units).value() ); };
553
554 template<typename Quantity >
555 Quantity calculated_depth_with_units() const
556 { return Quantity(calculated_depth() * calculated_depth_unit()); };
557
558 boost::units::quantity< calculated_depth_unit,double > calculated_depth_with_units() const
559 { return calculated_depth_with_units<boost::units::quantity< calculated_depth_unit,double > >(); };
560
561 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.PressureAdjustedData)
562 private:
563 class _Internal;
564
565 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
566 typedef void InternalArenaConstructable_;
567 typedef void DestructorSkippable_;
568 struct Impl_ {
569 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
570 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
571 double pressure_raw_;
572 double pressure_adjusted_;
573 double pressure_raw_before_dive_;
574 double calculated_depth_;
575 };
576 union { Impl_ _impl_; };
577 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto;
578};
579// ===================================================================
580
581
582// ===================================================================
583
584#ifdef __GNUC__
585 #pragma GCC diagnostic push
586 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
587#endif // __GNUC__
588// PressureTemperatureData
589
590// required double pressure_raw = 1 [(.dccl.field) = {
591inline bool PressureTemperatureData::_internal_has_pressure_raw() const {
592 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
593 return value;
594}
595inline bool PressureTemperatureData::has_pressure_raw() const {
596 return _internal_has_pressure_raw();
597}
598inline void PressureTemperatureData::clear_pressure_raw() {
599 _impl_.pressure_raw_ = 0;
600 _impl_._has_bits_[0] &= ~0x00000001u;
601}
602inline double PressureTemperatureData::_internal_pressure_raw() const {
603 return _impl_.pressure_raw_;
604}
605inline double PressureTemperatureData::pressure_raw() const {
606 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureTemperatureData.pressure_raw)
607 return _internal_pressure_raw();
608}
609inline void PressureTemperatureData::_internal_set_pressure_raw(double value) {
610 _impl_._has_bits_[0] |= 0x00000001u;
611 _impl_.pressure_raw_ = value;
612}
613inline void PressureTemperatureData::set_pressure_raw(double value) {
614 _internal_set_pressure_raw(value);
615 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureTemperatureData.pressure_raw)
616}
617
618// optional double temperature = 2 [(.dccl.field) = {
619inline bool PressureTemperatureData::_internal_has_temperature() const {
620 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
621 return value;
622}
623inline bool PressureTemperatureData::has_temperature() const {
624 return _internal_has_temperature();
625}
626inline void PressureTemperatureData::clear_temperature() {
627 _impl_.temperature_ = 0;
628 _impl_._has_bits_[0] &= ~0x00000002u;
629}
630inline double PressureTemperatureData::_internal_temperature() const {
631 return _impl_.temperature_;
632}
633inline double PressureTemperatureData::temperature() const {
634 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureTemperatureData.temperature)
635 return _internal_temperature();
636}
637inline void PressureTemperatureData::_internal_set_temperature(double value) {
638 _impl_._has_bits_[0] |= 0x00000002u;
639 _impl_.temperature_ = value;
640}
641inline void PressureTemperatureData::set_temperature(double value) {
642 _internal_set_temperature(value);
643 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureTemperatureData.temperature)
644}
645
646// required .jaiabot.protobuf.PressureSensorType sensor_type = 3;
647inline bool PressureTemperatureData::_internal_has_sensor_type() const {
648 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
649 return value;
650}
651inline bool PressureTemperatureData::has_sensor_type() const {
652 return _internal_has_sensor_type();
653}
654inline void PressureTemperatureData::clear_sensor_type() {
655 _impl_.sensor_type_ = 1;
656 _impl_._has_bits_[0] &= ~0x00000004u;
657}
658inline ::jaiabot::protobuf::PressureSensorType PressureTemperatureData::_internal_sensor_type() const {
659 return static_cast< ::jaiabot::protobuf::PressureSensorType >(_impl_.sensor_type_);
660}
661inline ::jaiabot::protobuf::PressureSensorType PressureTemperatureData::sensor_type() const {
662 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureTemperatureData.sensor_type)
663 return _internal_sensor_type();
664}
665inline void PressureTemperatureData::_internal_set_sensor_type(::jaiabot::protobuf::PressureSensorType value) {
667 _impl_._has_bits_[0] |= 0x00000004u;
668 _impl_.sensor_type_ = value;
669}
670inline void PressureTemperatureData::set_sensor_type(::jaiabot::protobuf::PressureSensorType value) {
671 _internal_set_sensor_type(value);
672 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureTemperatureData.sensor_type)
673}
674
675// -------------------------------------------------------------------
676
677// PressureAdjustedData
678
679// required double pressure_raw = 1 [(.dccl.field) = {
680inline bool PressureAdjustedData::_internal_has_pressure_raw() const {
681 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
682 return value;
683}
684inline bool PressureAdjustedData::has_pressure_raw() const {
685 return _internal_has_pressure_raw();
686}
687inline void PressureAdjustedData::clear_pressure_raw() {
688 _impl_.pressure_raw_ = 0;
689 _impl_._has_bits_[0] &= ~0x00000001u;
690}
691inline double PressureAdjustedData::_internal_pressure_raw() const {
692 return _impl_.pressure_raw_;
693}
694inline double PressureAdjustedData::pressure_raw() const {
695 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.pressure_raw)
696 return _internal_pressure_raw();
697}
698inline void PressureAdjustedData::_internal_set_pressure_raw(double value) {
699 _impl_._has_bits_[0] |= 0x00000001u;
700 _impl_.pressure_raw_ = value;
701}
702inline void PressureAdjustedData::set_pressure_raw(double value) {
703 _internal_set_pressure_raw(value);
704 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.pressure_raw)
705}
706
707// optional double pressure_adjusted = 2 [(.dccl.field) = {
708inline bool PressureAdjustedData::_internal_has_pressure_adjusted() const {
709 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
710 return value;
711}
712inline bool PressureAdjustedData::has_pressure_adjusted() const {
713 return _internal_has_pressure_adjusted();
714}
715inline void PressureAdjustedData::clear_pressure_adjusted() {
716 _impl_.pressure_adjusted_ = 0;
717 _impl_._has_bits_[0] &= ~0x00000002u;
718}
719inline double PressureAdjustedData::_internal_pressure_adjusted() const {
720 return _impl_.pressure_adjusted_;
721}
722inline double PressureAdjustedData::pressure_adjusted() const {
723 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.pressure_adjusted)
724 return _internal_pressure_adjusted();
725}
726inline void PressureAdjustedData::_internal_set_pressure_adjusted(double value) {
727 _impl_._has_bits_[0] |= 0x00000002u;
728 _impl_.pressure_adjusted_ = value;
729}
730inline void PressureAdjustedData::set_pressure_adjusted(double value) {
731 _internal_set_pressure_adjusted(value);
732 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.pressure_adjusted)
733}
734
735// optional double pressure_raw_before_dive = 3 [(.dccl.field) = {
736inline bool PressureAdjustedData::_internal_has_pressure_raw_before_dive() const {
737 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
738 return value;
739}
740inline bool PressureAdjustedData::has_pressure_raw_before_dive() const {
741 return _internal_has_pressure_raw_before_dive();
742}
743inline void PressureAdjustedData::clear_pressure_raw_before_dive() {
744 _impl_.pressure_raw_before_dive_ = 0;
745 _impl_._has_bits_[0] &= ~0x00000004u;
746}
747inline double PressureAdjustedData::_internal_pressure_raw_before_dive() const {
748 return _impl_.pressure_raw_before_dive_;
749}
750inline double PressureAdjustedData::pressure_raw_before_dive() const {
751 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.pressure_raw_before_dive)
752 return _internal_pressure_raw_before_dive();
753}
754inline void PressureAdjustedData::_internal_set_pressure_raw_before_dive(double value) {
755 _impl_._has_bits_[0] |= 0x00000004u;
756 _impl_.pressure_raw_before_dive_ = value;
757}
758inline void PressureAdjustedData::set_pressure_raw_before_dive(double value) {
759 _internal_set_pressure_raw_before_dive(value);
760 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.pressure_raw_before_dive)
761}
762
763// optional double calculated_depth = 11 [(.dccl.field) = {
764inline bool PressureAdjustedData::_internal_has_calculated_depth() const {
765 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
766 return value;
767}
768inline bool PressureAdjustedData::has_calculated_depth() const {
769 return _internal_has_calculated_depth();
770}
771inline void PressureAdjustedData::clear_calculated_depth() {
772 _impl_.calculated_depth_ = 0;
773 _impl_._has_bits_[0] &= ~0x00000008u;
774}
775inline double PressureAdjustedData::_internal_calculated_depth() const {
776 return _impl_.calculated_depth_;
777}
778inline double PressureAdjustedData::calculated_depth() const {
779 // @@protoc_insertion_point(field_get:jaiabot.protobuf.PressureAdjustedData.calculated_depth)
780 return _internal_calculated_depth();
781}
782inline void PressureAdjustedData::_internal_set_calculated_depth(double value) {
783 _impl_._has_bits_[0] |= 0x00000008u;
784 _impl_.calculated_depth_ = value;
785}
786inline void PressureAdjustedData::set_calculated_depth(double value) {
787 _internal_set_calculated_depth(value);
788 // @@protoc_insertion_point(field_set:jaiabot.protobuf.PressureAdjustedData.calculated_depth)
789}
790
791#ifdef __GNUC__
792 #pragma GCC diagnostic pop
793#endif // __GNUC__
794// -------------------------------------------------------------------
795
796
797// @@protoc_insertion_point(namespace_scope)
798
799} // namespace protobuf
800} // namespace jaiabot
801
802PROTOBUF_NAMESPACE_OPEN
803
804template <> struct is_proto_enum< ::jaiabot::protobuf::PressureSensorType> : ::std::true_type {};
805template <>
807 return ::jaiabot::protobuf::PressureSensorType_descriptor();
808}
809
810PROTOBUF_NAMESPACE_CLOSE
811
812// @@protoc_insertion_point(global_scope)
813
814#include <google/protobuf/port_undef.inc>
815#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto
void CopyFrom(const PressureTemperatureData &from)
void Swap(PressureTemperatureData *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
PressureTemperatureData & operator=(const PressureTemperatureData &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::jaiabot::protobuf::PressureSensorType sensor_type() const
friend void swap(PressureTemperatureData &a, PressureTemperatureData &b)
boost::units::temperature_dimension temperature_dimension
void MergeFrom(const PressureTemperatureData &from)
void UnsafeArenaSwap(PressureTemperatureData *other)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
boost::units::make_scaled_unit< boost::units::metric::bar_base_unit::unit_type, boost::units::scale< 10, boost::units::static_rational<-1 > > >::type pressure_raw_unit
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_sensor_type(::jaiabot::protobuf::PressureSensorType value)
void set_pressure_raw_with_units(Quantity value_w_units)
void set_temperature_with_units(Quantity value_w_units)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
PressureTemperatureData * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
static const PressureTemperatureData & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const PressureTemperatureData * internal_default_instance()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
constexpr goby::middleware::Group pressure_adjusted
Definition groups.h:44
constexpr PressureSensorType PressureSensorType_MAX
bool PressureSensorType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PressureSensorType *value)
constexpr PressureSensorType PressureSensorType_MIN
bool PressureSensorType_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PressureSensorType_descriptor()
const std::string & PressureSensorType_Name(T enum_t_value)
PressureTemperatureDataDefaultTypeInternal _PressureTemperatureData_default_instance_
PressureAdjustedDataDefaultTypeInternal _PressureAdjustedData_default_instance_
constexpr int PressureSensorType_ARRAYSIZE
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::PressureSensorType >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fpressure_5ftemperature_2eproto