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