4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgpsd_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgpsd_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>
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>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #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>
41 #include <boost/units/systems/angle/degrees.hpp>
43 #include <boost/units/systems/si.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2fprotobuf_2fgpsd_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[4];
60 namespace middleware {
64 class AttitudeDefaultTypeInternal;
67 class SatelliteDefaultTypeInternal;
70 class SkyViewDefaultTypeInternal;
73 class TimePositionVelocityDefaultTypeInternal;
88 namespace middleware {
105 return ::google::protobuf::internal::NameOfEnum(
110 return ::google::protobuf::internal::ParseNamedEnum<TimePositionVelocity_Mode>(
129 *
this = ::std::move(from);
133 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
134 if (
this != &from) InternalSwap(&from);
142 return _internal_metadata_.unknown_fields();
145 return _internal_metadata_.mutable_unknown_fields();
148 static const ::google::protobuf::Descriptor*
descriptor();
153 return reinterpret_cast<const Satellite*
>(
167 return CreateMaybeMessage<Satellite>(NULL);
171 return CreateMaybeMessage<Satellite>(arena);
173 void CopyFrom(const ::google::protobuf::Message& from)
final;
174 void MergeFrom(const ::google::protobuf::Message& from)
final;
182 ::
google::protobuf::io::CodedInputStream* input) final;
184 ::
google::protobuf::io::CodedOutputStream* output) const final;
186 bool deterministic, ::
google::protobuf::uint8* target) const final;
192 void SetCachedSize(
int size)
const final;
195 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
198 inline void* MaybeArenaPtr()
const {
214 void set_az(
double value);
221 void set_el(
double value);
242 void set_ss(
double value);
283 template<typename Quantity >
285 {
set_az(boost::units::quantity<az_unit,double >(value_w_units).value() ); };
287 template<
typename Quantity >
292 {
return az_with_units<boost::units::quantity< az_unit,double > >(); };
294 typedef boost::units::plane_angle_dimension
el_dimension;
296 typedef boost::units::unit<el_dimension,boost::units::degree::system>
el_unit;
298 template<
typename Quantity >
300 {
set_el(boost::units::quantity<el_unit,double >(value_w_units).value() ); };
302 template<
typename Quantity >
307 {
return el_with_units<boost::units::quantity< el_unit,double > >(); };
312 void clear_has_prn();
320 void clear_has_used();
321 void set_has_gnssid();
322 void clear_has_gnssid();
324 void clear_has_svid();
325 void set_has_sigid();
326 void clear_has_sigid();
327 void set_has_freqid();
328 void clear_has_freqid();
329 void set_has_health();
330 void clear_has_health();
332 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
333 ::google::protobuf::internal::HasBits<1> _has_bits_;
334 mutable ::google::protobuf::internal::CachedSize _cached_size_;
345 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgpsd_2eproto::TableStruct;
363 *
this = ::std::move(from);
367 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
368 if (
this != &from) InternalSwap(&from);
376 return _internal_metadata_.unknown_fields();
379 return _internal_metadata_.mutable_unknown_fields();
382 static const ::google::protobuf::Descriptor*
descriptor();
387 return reinterpret_cast<const SkyView*
>(
401 return CreateMaybeMessage<SkyView>(NULL);
405 return CreateMaybeMessage<SkyView>(arena);
407 void CopyFrom(const ::google::protobuf::Message& from)
final;
408 void MergeFrom(const ::google::protobuf::Message& from)
final;
416 ::
google::protobuf::io::CodedInputStream* input) final;
418 ::
google::protobuf::io::CodedOutputStream* output) const final;
420 bool deterministic, ::
google::protobuf::uint8* target) const final;
426 void SetCachedSize(
int size)
const final;
427 void InternalSwap(
SkyView* other);
429 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
432 inline void* MaybeArenaPtr()
const {
452 const ::
google::protobuf::RepeatedPtrField< ::
goby::middleware::protobuf::gpsd::
Satellite >&
459 const ::std::
string&
device() const;
465 void set_device(
const char* value,
size_t size);
542 typedef boost::units::unit<time_dimension,boost::units::si::system>
time_unit;
544 template<
typename Quantity >
546 {
set_time(boost::units::quantity<time_unit,double >(value_w_units).value() ); };
548 template<
typename Quantity >
553 {
return time_with_units<boost::units::quantity< time_unit,double > >(); };
557 void set_has_device();
558 void clear_has_device();
560 void clear_has_time();
562 void clear_has_gdop();
564 void clear_has_hdop();
566 void clear_has_pdop();
568 void clear_has_tdop();
570 void clear_has_vdop();
572 void clear_has_xdop();
574 void clear_has_ydop();
576 void clear_has_nsat();
578 void clear_has_usat();
580 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
581 ::google::protobuf::internal::HasBits<1> _has_bits_;
582 mutable ::google::protobuf::internal::CachedSize _cached_size_;
584 ::google::protobuf::internal::ArenaStringPtr device_;
595 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgpsd_2eproto::TableStruct;
613 *
this = ::std::move(from);
617 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
618 if (
this != &from) InternalSwap(&from);
626 return _internal_metadata_.unknown_fields();
629 return _internal_metadata_.mutable_unknown_fields();
632 static const ::google::protobuf::Descriptor*
descriptor();
637 return reinterpret_cast<const Attitude*
>(
651 return CreateMaybeMessage<Attitude>(NULL);
655 return CreateMaybeMessage<Attitude>(arena);
657 void CopyFrom(const ::google::protobuf::Message& from)
final;
658 void MergeFrom(const ::google::protobuf::Message& from)
final;
666 ::
google::protobuf::io::CodedInputStream* input) final;
668 ::
google::protobuf::io::CodedOutputStream* output) const final;
670 bool deterministic, ::
google::protobuf::uint8* target) const final;
676 void SetCachedSize(
int size)
const final;
679 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
682 inline void* MaybeArenaPtr()
const {
697 const ::std::
string&
device() const;
703 void set_device(
const char* value,
size_t size);
726 double pitch()
const;
745 typedef boost::units::unit<time_dimension,boost::units::si::system>
time_unit;
747 template<
typename Quantity >
749 {
set_time(boost::units::quantity<time_unit,double >(value_w_units).value() ); };
751 template<
typename Quantity >
756 {
return time_with_units<boost::units::quantity< time_unit,double > >(); };
760 typedef boost::units::unit<heading_dimension,boost::units::degree::system>
heading_unit;
762 template<
typename Quantity >
764 {
set_heading(boost::units::quantity<heading_unit,double >(value_w_units).value() ); };
766 template<
typename Quantity >
771 {
return heading_with_units<boost::units::quantity< heading_unit,double > >(); };
775 typedef boost::units::unit<pitch_dimension,boost::units::degree::system>
pitch_unit;
777 template<
typename Quantity >
779 {
set_pitch(boost::units::quantity<pitch_unit,double >(value_w_units).value() ); };
781 template<
typename Quantity >
786 {
return pitch_with_units<boost::units::quantity< pitch_unit,double > >(); };
790 typedef boost::units::unit<yaw_dimension,boost::units::degree::system>
yaw_unit;
792 template<
typename Quantity >
794 {
set_yaw(boost::units::quantity<yaw_unit,double >(value_w_units).value() ); };
796 template<
typename Quantity >
801 {
return yaw_with_units<boost::units::quantity< yaw_unit,double > >(); };
805 typedef boost::units::unit<roll_dimension,boost::units::degree::system>
roll_unit;
807 template<
typename Quantity >
809 {
set_roll(boost::units::quantity<roll_unit,double >(value_w_units).value() ); };
811 template<
typename Quantity >
816 {
return roll_with_units<boost::units::quantity< roll_unit,double > >(); };
820 void set_has_device();
821 void clear_has_device();
823 void clear_has_time();
824 void set_has_heading();
825 void clear_has_heading();
826 void set_has_pitch();
827 void clear_has_pitch();
829 void clear_has_yaw();
831 void clear_has_roll();
833 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
834 ::google::protobuf::internal::HasBits<1> _has_bits_;
835 mutable ::google::protobuf::internal::CachedSize _cached_size_;
836 ::google::protobuf::internal::ArenaStringPtr device_;
842 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgpsd_2eproto::TableStruct;
860 *
this = ::std::move(from);
864 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
865 if (
this != &from) InternalSwap(&from);
873 return _internal_metadata_.unknown_fields();
876 return _internal_metadata_.mutable_unknown_fields();
879 static const ::google::protobuf::Descriptor*
descriptor();
898 return CreateMaybeMessage<TimePositionVelocity>(NULL);
902 return CreateMaybeMessage<TimePositionVelocity>(arena);
904 void CopyFrom(const ::google::protobuf::Message& from)
final;
905 void MergeFrom(const ::google::protobuf::Message& from)
final;
913 ::
google::protobuf::io::CodedInputStream* input) final;
915 ::
google::protobuf::io::CodedOutputStream* output) const final;
917 bool deterministic, ::
google::protobuf::uint8* target) const final;
923 void SetCachedSize(
int size)
const final;
926 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
929 inline void* MaybeArenaPtr()
const {
956 static inline const ::google::protobuf::EnumDescriptor*
974 const ::std::string&
device()
const;
980 void set_device(
const char* value,
size_t size);
990 const ::goby::middleware::protobuf::LatLonPoint& _internal_location()
const;
992 const ::goby::middleware::protobuf::LatLonPoint&
location()
const;
1001 double time()
const;
1015 double track()
const;
1022 double speed()
const;
1029 double climb()
const;
1090 typedef boost::units::unit<time_dimension,boost::units::si::system>
time_unit;
1092 template<
typename Quantity >
1094 {
set_time(boost::units::quantity<time_unit,double >(value_w_units).value() ); };
1096 template<
typename Quantity >
1101 {
return time_with_units<boost::units::quantity< time_unit,double > >(); };
1105 typedef boost::units::unit<altitude_dimension,boost::units::si::system>
altitude_unit;
1107 template<
typename Quantity >
1109 {
set_altitude(boost::units::quantity<altitude_unit,double >(value_w_units).value() ); };
1111 template<
typename Quantity >
1116 {
return altitude_with_units<boost::units::quantity< altitude_unit,double > >(); };
1120 typedef boost::units::unit<track_dimension,boost::units::degree::system>
track_unit;
1122 template<
typename Quantity >
1124 {
set_track(boost::units::quantity<track_unit,double >(value_w_units).value() ); };
1126 template<
typename Quantity >
1131 {
return track_with_units<boost::units::quantity< track_unit,double > >(); };
1135 typedef boost::units::unit<speed_dimension,boost::units::si::system>
speed_unit;
1137 template<
typename Quantity >
1139 {
set_speed(boost::units::quantity<speed_unit,double >(value_w_units).value() ); };
1141 template<
typename Quantity >
1146 {
return speed_with_units<boost::units::quantity< speed_unit,double > >(); };
1150 typedef boost::units::unit<climb_dimension,boost::units::si::system>
climb_unit;
1152 template<
typename Quantity >
1154 {
set_climb(boost::units::quantity<climb_unit,double >(value_w_units).value() ); };
1156 template<
typename Quantity >
1161 {
return climb_with_units<boost::units::quantity< climb_unit,double > >(); };
1165 typedef boost::units::unit<epc_dimension,boost::units::si::system>
epc_unit;
1167 template<
typename Quantity >
1169 {
set_epc(boost::units::quantity<epc_unit,double >(value_w_units).value() ); };
1171 template<
typename Quantity >
1176 {
return epc_with_units<boost::units::quantity< epc_unit,double > >(); };
1180 typedef boost::units::unit<epd_dimension,boost::units::degree::system>
epd_unit;
1182 template<
typename Quantity >
1184 {
set_epd(boost::units::quantity<epd_unit,double >(value_w_units).value() ); };
1186 template<
typename Quantity >
1191 {
return epd_with_units<boost::units::quantity< epd_unit,double > >(); };
1195 typedef boost::units::unit<eps_dimension,boost::units::si::system>
eps_unit;
1197 template<
typename Quantity >
1199 {
set_eps(boost::units::quantity<eps_unit,double >(value_w_units).value() ); };
1201 template<
typename Quantity >
1206 {
return eps_with_units<boost::units::quantity< eps_unit,double > >(); };
1210 typedef boost::units::unit<ept_dimension,boost::units::si::system>
ept_unit;
1212 template<
typename Quantity >
1214 {
set_ept(boost::units::quantity<ept_unit,double >(value_w_units).value() ); };
1216 template<
typename Quantity >
1221 {
return ept_with_units<boost::units::quantity< ept_unit,double > >(); };
1225 typedef boost::units::unit<epv_dimension,boost::units::si::system>
epv_unit;
1227 template<
typename Quantity >
1229 {
set_epv(boost::units::quantity<epv_unit,double >(value_w_units).value() ); };
1231 template<
typename Quantity >
1236 {
return epv_with_units<boost::units::quantity< epv_unit,double > >(); };
1240 typedef boost::units::unit<epx_dimension,boost::units::si::system>
epx_unit;
1242 template<
typename Quantity >
1244 {
set_epx(boost::units::quantity<epx_unit,double >(value_w_units).value() ); };
1246 template<
typename Quantity >
1251 {
return epx_with_units<boost::units::quantity< epx_unit,double > >(); };
1255 typedef boost::units::unit<epy_dimension,boost::units::si::system>
epy_unit;
1257 template<
typename Quantity >
1259 {
set_epy(boost::units::quantity<epy_unit,double >(value_w_units).value() ); };
1261 template<
typename Quantity >
1266 {
return epy_with_units<boost::units::quantity< epy_unit,double > >(); };
1270 void set_has_device();
1271 void clear_has_device();
1272 void set_has_time();
1273 void clear_has_time();
1274 void set_has_mode();
1275 void clear_has_mode();
1276 void set_has_location();
1277 void clear_has_location();
1278 void set_has_altitude();
1279 void clear_has_altitude();
1280 void set_has_track();
1281 void clear_has_track();
1282 void set_has_speed();
1283 void clear_has_speed();
1284 void set_has_climb();
1285 void clear_has_climb();
1287 void clear_has_epc();
1289 void clear_has_epd();
1291 void clear_has_eps();
1293 void clear_has_ept();
1295 void clear_has_epv();
1297 void clear_has_epx();
1299 void clear_has_epy();
1301 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1302 ::google::protobuf::internal::HasBits<1> _has_bits_;
1303 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1304 ::google::protobuf::internal::ArenaStringPtr device_;
1319 friend struct ::protobuf_goby_2fmiddleware_2fprotobuf_2fgpsd_2eproto::TableStruct;
1327 #pragma GCC diagnostic push
1328 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1334 return (_has_bits_[0] & 0x00000004u) != 0;
1336 inline void Satellite::set_has_prn() {
1337 _has_bits_[0] |= 0x00000004u;
1339 inline void Satellite::clear_has_prn() {
1340 _has_bits_[0] &= ~0x00000004u;
1358 return (_has_bits_[0] & 0x00000001u) != 0;
1360 inline void Satellite::set_has_az() {
1361 _has_bits_[0] |= 0x00000001u;
1363 inline void Satellite::clear_has_az() {
1364 _has_bits_[0] &= ~0x00000001u;
1382 return (_has_bits_[0] & 0x00000002u) != 0;
1384 inline void Satellite::set_has_el() {
1385 _has_bits_[0] |= 0x00000002u;
1387 inline void Satellite::clear_has_el() {
1388 _has_bits_[0] &= ~0x00000002u;
1406 return (_has_bits_[0] & 0x00000010u) != 0;
1408 inline void Satellite::set_has_ss() {
1409 _has_bits_[0] |= 0x00000010u;
1411 inline void Satellite::clear_has_ss() {
1412 _has_bits_[0] &= ~0x00000010u;
1430 return (_has_bits_[0] & 0x00000008u) != 0;
1432 inline void Satellite::set_has_used() {
1433 _has_bits_[0] |= 0x00000008u;
1435 inline void Satellite::clear_has_used() {
1436 _has_bits_[0] &= ~0x00000008u;
1454 return (_has_bits_[0] & 0x00000020u) != 0;
1456 inline void Satellite::set_has_gnssid() {
1457 _has_bits_[0] |= 0x00000020u;
1459 inline void Satellite::clear_has_gnssid() {
1460 _has_bits_[0] &= ~0x00000020u;
1478 return (_has_bits_[0] & 0x00000040u) != 0;
1480 inline void Satellite::set_has_svid() {
1481 _has_bits_[0] |= 0x00000040u;
1483 inline void Satellite::clear_has_svid() {
1484 _has_bits_[0] &= ~0x00000040u;
1502 return (_has_bits_[0] & 0x00000080u) != 0;
1504 inline void Satellite::set_has_sigid() {
1505 _has_bits_[0] |= 0x00000080u;
1507 inline void Satellite::clear_has_sigid() {
1508 _has_bits_[0] &= ~0x00000080u;
1526 return (_has_bits_[0] & 0x00000100u) != 0;
1528 inline void Satellite::set_has_freqid() {
1529 _has_bits_[0] |= 0x00000100u;
1531 inline void Satellite::clear_has_freqid() {
1532 _has_bits_[0] &= ~0x00000100u;
1550 return (_has_bits_[0] & 0x00000200u) != 0;
1552 inline void Satellite::set_has_health() {
1553 _has_bits_[0] |= 0x00000200u;
1555 inline void Satellite::clear_has_health() {
1556 _has_bits_[0] &= ~0x00000200u;
1578 return (_has_bits_[0] & 0x00000001u) != 0;
1580 inline void SkyView::set_has_device() {
1581 _has_bits_[0] |= 0x00000001u;
1583 inline void SkyView::clear_has_device() {
1584 _has_bits_[0] &= ~0x00000001u;
1592 return device_.GetNoArena();
1608 GOOGLE_DCHECK(value != NULL);
1616 ::std::string(
reinterpret_cast<const char*
>(value), size));
1644 return (_has_bits_[0] & 0x00000002u) != 0;
1646 inline void SkyView::set_has_time() {
1647 _has_bits_[0] |= 0x00000002u;
1649 inline void SkyView::clear_has_time() {
1650 _has_bits_[0] &= ~0x00000002u;
1668 return (_has_bits_[0] & 0x00000004u) != 0;
1670 inline void SkyView::set_has_gdop() {
1671 _has_bits_[0] |= 0x00000004u;
1673 inline void SkyView::clear_has_gdop() {
1674 _has_bits_[0] &= ~0x00000004u;
1692 return (_has_bits_[0] & 0x00000008u) != 0;
1694 inline void SkyView::set_has_hdop() {
1695 _has_bits_[0] |= 0x00000008u;
1697 inline void SkyView::clear_has_hdop() {
1698 _has_bits_[0] &= ~0x00000008u;
1716 return (_has_bits_[0] & 0x00000010u) != 0;
1718 inline void SkyView::set_has_pdop() {
1719 _has_bits_[0] |= 0x00000010u;
1721 inline void SkyView::clear_has_pdop() {
1722 _has_bits_[0] &= ~0x00000010u;
1740 return (_has_bits_[0] & 0x00000020u) != 0;
1742 inline void SkyView::set_has_tdop() {
1743 _has_bits_[0] |= 0x00000020u;
1745 inline void SkyView::clear_has_tdop() {
1746 _has_bits_[0] &= ~0x00000020u;
1764 return (_has_bits_[0] & 0x00000040u) != 0;
1766 inline void SkyView::set_has_vdop() {
1767 _has_bits_[0] |= 0x00000040u;
1769 inline void SkyView::clear_has_vdop() {
1770 _has_bits_[0] &= ~0x00000040u;
1788 return (_has_bits_[0] & 0x00000080u) != 0;
1790 inline void SkyView::set_has_xdop() {
1791 _has_bits_[0] |= 0x00000080u;
1793 inline void SkyView::clear_has_xdop() {
1794 _has_bits_[0] &= ~0x00000080u;
1812 return (_has_bits_[0] & 0x00000100u) != 0;
1814 inline void SkyView::set_has_ydop() {
1815 _has_bits_[0] |= 0x00000100u;
1817 inline void SkyView::clear_has_ydop() {
1818 _has_bits_[0] &= ~0x00000100u;
1836 return (_has_bits_[0] & 0x00000200u) != 0;
1838 inline void SkyView::set_has_nsat() {
1839 _has_bits_[0] |= 0x00000200u;
1841 inline void SkyView::clear_has_nsat() {
1842 _has_bits_[0] &= ~0x00000200u;
1860 return (_has_bits_[0] & 0x00000400u) != 0;
1862 inline void SkyView::set_has_usat() {
1863 _has_bits_[0] |= 0x00000400u;
1865 inline void SkyView::clear_has_usat() {
1866 _has_bits_[0] &= ~0x00000400u;
1884 return satellite_.size();
1891 return satellite_.Mutable(index);
1893 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::gpsd::Satellite >*
1900 return satellite_.Get(index);
1904 return satellite_.Add();
1906 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::protobuf::gpsd::Satellite >&
1918 return (_has_bits_[0] & 0x00000001u) != 0;
1920 inline void Attitude::set_has_device() {
1921 _has_bits_[0] |= 0x00000001u;
1923 inline void Attitude::clear_has_device() {
1924 _has_bits_[0] &= ~0x00000001u;
1932 return device_.GetNoArena();
1948 GOOGLE_DCHECK(value != NULL);
1956 ::std::string(
reinterpret_cast<const char*
>(value), size));
1984 return (_has_bits_[0] & 0x00000002u) != 0;
1986 inline void Attitude::set_has_time() {
1987 _has_bits_[0] |= 0x00000002u;
1989 inline void Attitude::clear_has_time() {
1990 _has_bits_[0] &= ~0x00000002u;
2008 return (_has_bits_[0] & 0x00000004u) != 0;
2010 inline void Attitude::set_has_heading() {
2011 _has_bits_[0] |= 0x00000004u;
2013 inline void Attitude::clear_has_heading() {
2014 _has_bits_[0] &= ~0x00000004u;
2018 clear_has_heading();
2032 return (_has_bits_[0] & 0x00000008u) != 0;
2034 inline void Attitude::set_has_pitch() {
2035 _has_bits_[0] |= 0x00000008u;
2037 inline void Attitude::clear_has_pitch() {
2038 _has_bits_[0] &= ~0x00000008u;
2056 return (_has_bits_[0] & 0x00000010u) != 0;
2058 inline void Attitude::set_has_yaw() {
2059 _has_bits_[0] |= 0x00000010u;
2061 inline void Attitude::clear_has_yaw() {
2062 _has_bits_[0] &= ~0x00000010u;
2080 return (_has_bits_[0] & 0x00000020u) != 0;
2082 inline void Attitude::set_has_roll() {
2083 _has_bits_[0] |= 0x00000020u;
2085 inline void Attitude::clear_has_roll() {
2086 _has_bits_[0] &= ~0x00000020u;
2108 return (_has_bits_[0] & 0x00000001u) != 0;
2110 inline void TimePositionVelocity::set_has_device() {
2111 _has_bits_[0] |= 0x00000001u;
2113 inline void TimePositionVelocity::clear_has_device() {
2114 _has_bits_[0] &= ~0x00000001u;
2122 return device_.GetNoArena();
2138 GOOGLE_DCHECK(value != NULL);
2146 ::std::string(
reinterpret_cast<const char*
>(value), size));
2174 return (_has_bits_[0] & 0x00000004u) != 0;
2176 inline void TimePositionVelocity::set_has_time() {
2177 _has_bits_[0] |= 0x00000004u;
2179 inline void TimePositionVelocity::clear_has_time() {
2180 _has_bits_[0] &= ~0x00000004u;
2198 return (_has_bits_[0] & 0x00004000u) != 0;
2200 inline void TimePositionVelocity::set_has_mode() {
2201 _has_bits_[0] |= 0x00004000u;
2203 inline void TimePositionVelocity::clear_has_mode() {
2204 _has_bits_[0] &= ~0x00004000u;
2223 return (_has_bits_[0] & 0x00000002u) != 0;
2225 inline void TimePositionVelocity::set_has_location() {
2226 _has_bits_[0] |= 0x00000002u;
2228 inline void TimePositionVelocity::clear_has_location() {
2229 _has_bits_[0] &= ~0x00000002u;
2231 inline const ::goby::middleware::protobuf::LatLonPoint& TimePositionVelocity::_internal_location()
const {
2235 const ::goby::middleware::protobuf::LatLonPoint* p = location_;
2242 clear_has_location();
2249 if (location_ == NULL) {
2250 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::LatLonPoint>(GetArenaNoVirtual());
2258 if (message_arena == NULL) {
2263 if (message_arena != submessage_arena) {
2264 location = ::google::protobuf::internal::GetOwnedMessage(
2265 message_arena,
location, submessage_arena);
2269 clear_has_location();
2277 return (_has_bits_[0] & 0x00000008u) != 0;
2279 inline void TimePositionVelocity::set_has_altitude() {
2280 _has_bits_[0] |= 0x00000008u;
2282 inline void TimePositionVelocity::clear_has_altitude() {
2283 _has_bits_[0] &= ~0x00000008u;
2287 clear_has_altitude();
2301 return (_has_bits_[0] & 0x00000010u) != 0;
2303 inline void TimePositionVelocity::set_has_track() {
2304 _has_bits_[0] |= 0x00000010u;
2306 inline void TimePositionVelocity::clear_has_track() {
2307 _has_bits_[0] &= ~0x00000010u;
2325 return (_has_bits_[0] & 0x00000020u) != 0;
2327 inline void TimePositionVelocity::set_has_speed() {
2328 _has_bits_[0] |= 0x00000020u;
2330 inline void TimePositionVelocity::clear_has_speed() {
2331 _has_bits_[0] &= ~0x00000020u;
2349 return (_has_bits_[0] & 0x00000040u) != 0;
2351 inline void TimePositionVelocity::set_has_climb() {
2352 _has_bits_[0] |= 0x00000040u;
2354 inline void TimePositionVelocity::clear_has_climb() {
2355 _has_bits_[0] &= ~0x00000040u;
2373 return (_has_bits_[0] & 0x00000080u) != 0;
2375 inline void TimePositionVelocity::set_has_epc() {
2376 _has_bits_[0] |= 0x00000080u;
2378 inline void TimePositionVelocity::clear_has_epc() {
2379 _has_bits_[0] &= ~0x00000080u;
2397 return (_has_bits_[0] & 0x00000100u) != 0;
2399 inline void TimePositionVelocity::set_has_epd() {
2400 _has_bits_[0] |= 0x00000100u;
2402 inline void TimePositionVelocity::clear_has_epd() {
2403 _has_bits_[0] &= ~0x00000100u;
2421 return (_has_bits_[0] & 0x00000200u) != 0;
2423 inline void TimePositionVelocity::set_has_eps() {
2424 _has_bits_[0] |= 0x00000200u;
2426 inline void TimePositionVelocity::clear_has_eps() {
2427 _has_bits_[0] &= ~0x00000200u;
2445 return (_has_bits_[0] & 0x00000400u) != 0;
2447 inline void TimePositionVelocity::set_has_ept() {
2448 _has_bits_[0] |= 0x00000400u;
2450 inline void TimePositionVelocity::clear_has_ept() {
2451 _has_bits_[0] &= ~0x00000400u;
2469 return (_has_bits_[0] & 0x00000800u) != 0;
2471 inline void TimePositionVelocity::set_has_epv() {
2472 _has_bits_[0] |= 0x00000800u;
2474 inline void TimePositionVelocity::clear_has_epv() {
2475 _has_bits_[0] &= ~0x00000800u;
2493 return (_has_bits_[0] & 0x00001000u) != 0;
2495 inline void TimePositionVelocity::set_has_epx() {
2496 _has_bits_[0] |= 0x00001000u;
2498 inline void TimePositionVelocity::clear_has_epx() {
2499 _has_bits_[0] &= ~0x00001000u;
2517 return (_has_bits_[0] & 0x00002000u) != 0;
2519 inline void TimePositionVelocity::set_has_epy() {
2520 _has_bits_[0] |= 0x00002000u;
2522 inline void TimePositionVelocity::clear_has_epy() {
2523 _has_bits_[0] &= ~0x00002000u;
2540 #pragma GCC diagnostic pop
2557 namespace protobuf {
2561 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::protobuf::gpsd::TimePositionVelocity_Mode>() {
2570 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fgpsd_2eproto