4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_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.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "dccl/option_extensions.pb.h"
34 #include <boost/units/quantity.hpp>
35 #include <boost/units/absolute.hpp>
36 #include <boost/units/dimensionless_type.hpp>
37 #include <boost/units/make_scaled_unit.hpp>
39 #include <boost/units/systems/temperature/celsius.hpp>
41 #include <boost/units/systems/si.hpp>
43 #include <boost/units/base_units/metric/bar.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto
50 static const ::google::protobuf::internal::ParseTableField
entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
52 static const ::google::protobuf::internal::ParseTable
schema[2];
55 static const ::google::protobuf::uint32
offsets[];
61 class PressureAdjustedData;
62 class PressureAdjustedDataDefaultTypeInternal;
64 class PressureTemperatureData;
65 class PressureTemperatureDataDefaultTypeInternal;
94 *
this = ::std::move(from);
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (
this != &from) InternalSwap(&from);
107 return _internal_metadata_.unknown_fields();
110 return _internal_metadata_.mutable_unknown_fields();
113 static const ::google::protobuf::Descriptor*
descriptor();
132 return CreateMaybeMessage<PressureTemperatureData>(NULL);
136 return CreateMaybeMessage<PressureTemperatureData>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
147 ::
google::protobuf::io::CodedInputStream* input) final;
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
157 void SetCachedSize(
int size)
const final;
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
168 ::google::protobuf::Metadata
GetMetadata() const final;
178 const ::std::
string&
version() const;
203 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;
205 template<
typename Quantity >
207 {
set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
209 template<
typename Quantity >
214 {
return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
218 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
220 template<
typename Quantity >
222 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
224 template<
typename Quantity >
229 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
233 void set_has_pressure_raw();
234 void clear_has_pressure_raw();
235 void set_has_temperature();
236 void clear_has_temperature();
237 void set_has_version();
238 void clear_has_version();
241 size_t RequiredFieldsByteSizeFallback()
const;
243 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
244 ::google::protobuf::internal::HasBits<1> _has_bits_;
245 mutable ::google::protobuf::internal::CachedSize _cached_size_;
246 ::google::protobuf::internal::ArenaStringPtr version_;
247 double pressure_raw_;
249 friend struct ::protobuf_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto::TableStruct;
267 *
this = ::std::move(from);
271 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
272 if (
this != &from) InternalSwap(&from);
280 return _internal_metadata_.unknown_fields();
283 return _internal_metadata_.mutable_unknown_fields();
286 static const ::google::protobuf::Descriptor*
descriptor();
305 return CreateMaybeMessage<PressureAdjustedData>(NULL);
309 return CreateMaybeMessage<PressureAdjustedData>(arena);
311 void CopyFrom(const ::google::protobuf::Message& from)
final;
312 void MergeFrom(const ::google::protobuf::Message& from)
final;
320 ::
google::protobuf::io::CodedInputStream* input) final;
322 ::
google::protobuf::io::CodedOutputStream* output) const final;
324 bool deterministic, ::
google::protobuf::uint8* target) const final;
330 void SetCachedSize(
int size)
const final;
333 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
336 inline void* MaybeArenaPtr()
const {
341 ::google::protobuf::Metadata
GetMetadata() const final;
377 template<typename Quantity >
379 {
set_pressure_raw(boost::units::quantity<pressure_raw_unit,double >(value_w_units).value() ); };
381 template<
typename Quantity >
386 {
return pressure_raw_with_units<boost::units::quantity< pressure_raw_unit,double > >(); };
388 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;
390 template<
typename Quantity >
392 {
set_pressure_adjusted(boost::units::quantity<pressure_adjusted_unit,double >(value_w_units).value() ); };
394 template<
typename Quantity >
399 {
return pressure_adjusted_with_units<boost::units::quantity< pressure_adjusted_unit,double > >(); };
401 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;
403 template<
typename Quantity >
407 template<
typename Quantity >
412 {
return pressure_raw_before_dive_with_units<boost::units::quantity< pressure_raw_before_dive_unit,double > >(); };
418 template<
typename Quantity >
420 {
set_calculated_depth(boost::units::quantity<calculated_depth_unit,double >(value_w_units).value() ); };
422 template<
typename Quantity >
427 {
return calculated_depth_with_units<boost::units::quantity< calculated_depth_unit,double > >(); };
431 void set_has_pressure_raw();
432 void clear_has_pressure_raw();
433 void set_has_pressure_adjusted();
434 void clear_has_pressure_adjusted();
435 void set_has_pressure_raw_before_dive();
436 void clear_has_pressure_raw_before_dive();
437 void set_has_calculated_depth();
438 void clear_has_calculated_depth();
440 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
441 ::google::protobuf::internal::HasBits<1> _has_bits_;
442 mutable ::google::protobuf::internal::CachedSize _cached_size_;
443 double pressure_raw_;
444 double pressure_adjusted_;
445 double pressure_raw_before_dive_;
446 double calculated_depth_;
447 friend struct ::protobuf_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto::TableStruct;
455 #pragma GCC diagnostic push
456 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
462 return (_has_bits_[0] & 0x00000002u) != 0;
464 inline void PressureTemperatureData::set_has_pressure_raw() {
465 _has_bits_[0] |= 0x00000002u;
467 inline void PressureTemperatureData::clear_has_pressure_raw() {
468 _has_bits_[0] &= ~0x00000002u;
472 clear_has_pressure_raw();
476 return pressure_raw_;
479 set_has_pressure_raw();
480 pressure_raw_ = value;
486 return (_has_bits_[0] & 0x00000004u) != 0;
488 inline void PressureTemperatureData::set_has_temperature() {
489 _has_bits_[0] |= 0x00000004u;
491 inline void PressureTemperatureData::clear_has_temperature() {
492 _has_bits_[0] &= ~0x00000004u;
496 clear_has_temperature();
503 set_has_temperature();
504 temperature_ = value;
510 return (_has_bits_[0] & 0x00000001u) != 0;
512 inline void PressureTemperatureData::set_has_version() {
513 _has_bits_[0] |= 0x00000001u;
515 inline void PressureTemperatureData::clear_has_version() {
516 _has_bits_[0] &= ~0x00000001u;
519 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
524 return version_.GetNoArena();
528 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
535 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
540 GOOGLE_DCHECK(value != NULL);
542 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
547 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
548 ::std::string(
reinterpret_cast<const char*
>(value), size));
554 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
562 return version_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
570 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
version);
580 return (_has_bits_[0] & 0x00000001u) != 0;
582 inline void PressureAdjustedData::set_has_pressure_raw() {
583 _has_bits_[0] |= 0x00000001u;
585 inline void PressureAdjustedData::clear_has_pressure_raw() {
586 _has_bits_[0] &= ~0x00000001u;
590 clear_has_pressure_raw();
594 return pressure_raw_;
597 set_has_pressure_raw();
598 pressure_raw_ = value;
604 return (_has_bits_[0] & 0x00000002u) != 0;
606 inline void PressureAdjustedData::set_has_pressure_adjusted() {
607 _has_bits_[0] |= 0x00000002u;
609 inline void PressureAdjustedData::clear_has_pressure_adjusted() {
610 _has_bits_[0] &= ~0x00000002u;
613 pressure_adjusted_ = 0;
614 clear_has_pressure_adjusted();
618 return pressure_adjusted_;
621 set_has_pressure_adjusted();
622 pressure_adjusted_ = value;
628 return (_has_bits_[0] & 0x00000004u) != 0;
630 inline void PressureAdjustedData::set_has_pressure_raw_before_dive() {
631 _has_bits_[0] |= 0x00000004u;
633 inline void PressureAdjustedData::clear_has_pressure_raw_before_dive() {
634 _has_bits_[0] &= ~0x00000004u;
637 pressure_raw_before_dive_ = 0;
638 clear_has_pressure_raw_before_dive();
642 return pressure_raw_before_dive_;
645 set_has_pressure_raw_before_dive();
646 pressure_raw_before_dive_ = value;
652 return (_has_bits_[0] & 0x00000008u) != 0;
654 inline void PressureAdjustedData::set_has_calculated_depth() {
655 _has_bits_[0] |= 0x00000008u;
657 inline void PressureAdjustedData::clear_has_calculated_depth() {
658 _has_bits_[0] &= ~0x00000008u;
661 calculated_depth_ = 0;
662 clear_has_calculated_depth();
666 return calculated_depth_;
669 set_has_calculated_depth();
670 calculated_depth_ = value;
675 #pragma GCC diagnostic pop
687 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fpressure_5ftemperature_2eproto