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