4 #ifndef PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_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>
34 #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>
42 #include <boost/units/systems/temperature/celsius.hpp>
46 #include <boost/units/systems/si.hpp>
48 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto
53 static const ::google::protobuf::internal::ParseTableField
entries[];
54 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
55 static const ::google::protobuf::internal::ParseTable
schema[7];
63 namespace middleware {
66 class BluefinExtraCommands;
67 class BluefinExtraCommandsDefaultTypeInternal;
69 class BluefinExtraData;
70 class BluefinExtraDataDefaultTypeInternal;
72 class BluefinExtraData_PayloadStatus;
73 class BluefinExtraData_PayloadStatusDefaultTypeInternal;
75 class BluefinExtraData_RawDVL;
76 class BluefinExtraData_RawDVLDefaultTypeInternal;
78 class BluefinExtraData_RawThrusterRotation;
79 class BluefinExtraData_RawThrusterRotationDefaultTypeInternal;
82 class BuoyancyStatusDefaultTypeInternal;
85 class TrimStatusDefaultTypeInternal;
103 namespace middleware {
104 namespace frontseat {
120 return ::google::protobuf::internal::NameOfEnum(
125 return ::google::protobuf::internal::ParseNamedEnum<BuoyancyStatus_Status>(
141 return ::google::protobuf::internal::NameOfEnum(
146 return ::google::protobuf::internal::ParseNamedEnum<BuoyancyStatus_Error>(
162 return ::google::protobuf::internal::NameOfEnum(
167 return ::google::protobuf::internal::ParseNamedEnum<TrimStatus_Status>(
182 return ::google::protobuf::internal::NameOfEnum(
187 return ::google::protobuf::internal::ParseNamedEnum<TrimStatus_Error>(
208 return ::google::protobuf::internal::NameOfEnum(
213 return ::google::protobuf::internal::ParseNamedEnum<BluefinExtraCommands_BluefinCommand>(
227 return ::google::protobuf::internal::NameOfEnum(
232 return ::google::protobuf::internal::ParseNamedEnum<BluefinExtraCommands_SilentMode>(
246 return ::google::protobuf::internal::NameOfEnum(
251 return ::google::protobuf::internal::ParseNamedEnum<BluefinExtraCommands_AbortReason>(
265 return ::google::protobuf::internal::NameOfEnum(
270 return ::google::protobuf::internal::ParseNamedEnum<BluefinExtraCommands_StartConfirm>(
289 *
this = ::std::move(from);
293 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
294 if (
this != &from) InternalSwap(&from);
302 return _internal_metadata_.unknown_fields();
305 return _internal_metadata_.mutable_unknown_fields();
308 static const ::google::protobuf::Descriptor*
descriptor();
327 return CreateMaybeMessage<BuoyancyStatus>(NULL);
331 return CreateMaybeMessage<BuoyancyStatus>(arena);
333 void CopyFrom(const ::google::protobuf::Message& from)
final;
334 void MergeFrom(const ::google::protobuf::Message& from)
final;
342 ::
google::protobuf::io::CodedInputStream* input) final;
344 ::
google::protobuf::io::CodedOutputStream* output) const final;
346 bool deterministic, ::
google::protobuf::uint8* target) const final;
352 void SetCachedSize(
int size)
const final;
355 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
358 inline void* MaybeArenaPtr()
const {
385 static inline const ::google::protobuf::EnumDescriptor*
415 static inline const ::google::protobuf::EnumDescriptor*
467 void set_has_status();
468 void clear_has_status();
469 void set_has_error();
470 void clear_has_error();
471 void set_has_debug_string();
472 void clear_has_debug_string();
473 void set_has_buoyancy_newtons();
474 void clear_has_buoyancy_newtons();
476 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
477 ::google::protobuf::internal::HasBits<1> _has_bits_;
478 mutable ::google::protobuf::internal::CachedSize _cached_size_;
479 ::google::protobuf::internal::ArenaStringPtr debug_string_;
482 double buoyancy_newtons_;
483 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto::TableStruct;
501 *
this = ::std::move(from);
505 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
506 if (
this != &from) InternalSwap(&from);
514 return _internal_metadata_.unknown_fields();
517 return _internal_metadata_.mutable_unknown_fields();
520 static const ::google::protobuf::Descriptor*
descriptor();
539 return CreateMaybeMessage<TrimStatus>(NULL);
543 return CreateMaybeMessage<TrimStatus>(arena);
545 void CopyFrom(const ::google::protobuf::Message& from)
final;
546 void MergeFrom(const ::google::protobuf::Message& from)
final;
554 ::
google::protobuf::io::CodedInputStream* input) final;
556 ::
google::protobuf::io::CodedOutputStream* output) const final;
558 bool deterministic, ::
google::protobuf::uint8* target) const final;
564 void SetCachedSize(
int size)
const final;
567 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
570 inline void* MaybeArenaPtr()
const {
597 static inline const ::google::protobuf::EnumDescriptor*
625 static inline const ::google::protobuf::EnumDescriptor*
684 void set_has_status();
685 void clear_has_status();
686 void set_has_error();
687 void clear_has_error();
688 void set_has_debug_string();
689 void clear_has_debug_string();
690 void set_has_pitch_trim_degrees();
691 void clear_has_pitch_trim_degrees();
692 void set_has_roll_trim_degrees();
693 void clear_has_roll_trim_degrees();
695 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
696 ::google::protobuf::internal::HasBits<1> _has_bits_;
697 mutable ::google::protobuf::internal::CachedSize _cached_size_;
698 ::google::protobuf::internal::ArenaStringPtr debug_string_;
701 double pitch_trim_degrees_;
702 double roll_trim_degrees_;
703 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto::TableStruct;
721 *
this = ::std::move(from);
725 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
726 if (
this != &from) InternalSwap(&from);
734 return _internal_metadata_.unknown_fields();
737 return _internal_metadata_.mutable_unknown_fields();
740 static const ::google::protobuf::Descriptor*
descriptor();
759 return CreateMaybeMessage<BluefinExtraData_PayloadStatus>(NULL);
763 return CreateMaybeMessage<BluefinExtraData_PayloadStatus>(arena);
765 void CopyFrom(const ::google::protobuf::Message& from)
final;
766 void MergeFrom(const ::google::protobuf::Message& from)
final;
774 ::
google::protobuf::io::CodedInputStream* input) final;
776 ::
google::protobuf::io::CodedOutputStream* output) const final;
778 bool deterministic, ::
google::protobuf::uint8* target) const final;
784 void SetCachedSize(
int size)
const final;
787 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
790 inline void* MaybeArenaPtr()
const {
805 const ::std::
string&
msg() const;
806 void set_msg(const ::std::
string& value);
808 void set_msg(::std::string&& value);
810 void set_msg(
const char* value);
811 void set_msg(
const char* value,
size_t size);
839 typedef boost::units::make_scaled_unit<boost::units::unit<expire_time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >
::type expire_time_unit;
841 template<
typename Quantity >
843 {
set_expire_time(boost::units::quantity<expire_time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
845 template<
typename Quantity >
850 {
return expire_time_with_units<boost::units::quantity< expire_time_unit,google::protobuf::uint64 > >(); };
856 void set_has_expire_time();
857 void clear_has_expire_time();
859 void clear_has_msg();
860 void set_has_all_ok();
861 void clear_has_all_ok();
864 size_t RequiredFieldsByteSizeFallback()
const;
866 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
867 ::google::protobuf::internal::HasBits<1> _has_bits_;
868 mutable ::google::protobuf::internal::CachedSize _cached_size_;
869 ::google::protobuf::internal::ArenaStringPtr msg_;
873 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto::TableStruct;
891 *
this = ::std::move(from);
895 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
896 if (
this != &from) InternalSwap(&from);
904 return _internal_metadata_.unknown_fields();
907 return _internal_metadata_.mutable_unknown_fields();
910 static const ::google::protobuf::Descriptor*
descriptor();
929 return CreateMaybeMessage<BluefinExtraData_RawDVL>(NULL);
933 return CreateMaybeMessage<BluefinExtraData_RawDVL>(arena);
935 void CopyFrom(const ::google::protobuf::Message& from)
final;
936 void MergeFrom(const ::google::protobuf::Message& from)
final;
944 ::
google::protobuf::io::CodedInputStream* input) final;
946 ::
google::protobuf::io::CodedOutputStream* output) const final;
948 bool deterministic, ::
google::protobuf::uint8* target) const final;
954 void SetCachedSize(
int size)
const final;
957 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
960 inline void* MaybeArenaPtr()
const {
983 void set_u(
double value);
990 void set_v(
double value);
997 void set_w(
double value);
1038 template<typename Quantity >
1040 {
set_dvl_time(boost::units::quantity<dvl_time_unit,double >(value_w_units).value() ); };
1042 template<
typename Quantity >
1047 {
return dvl_time_with_units<boost::units::quantity< dvl_time_unit,double > >(); };
1049 typedef boost::units::velocity_dimension
u_dimension;
1051 typedef boost::units::unit<u_dimension,boost::units::si::system>
u_unit;
1053 template<
typename Quantity >
1055 {
set_u(boost::units::quantity<u_unit,double >(value_w_units).value() ); };
1057 template<
typename Quantity >
1059 {
return Quantity(
u() *
u_unit()); };
1062 {
return u_with_units<boost::units::quantity< u_unit,double > >(); };
1064 typedef boost::units::velocity_dimension
v_dimension;
1066 typedef boost::units::unit<v_dimension,boost::units::si::system>
v_unit;
1068 template<
typename Quantity >
1070 {
set_v(boost::units::quantity<v_unit,double >(value_w_units).value() ); };
1072 template<
typename Quantity >
1074 {
return Quantity(
v() *
v_unit()); };
1077 {
return v_with_units<boost::units::quantity< v_unit,double > >(); };
1079 typedef boost::units::velocity_dimension
w_dimension;
1081 typedef boost::units::unit<w_dimension,boost::units::si::system>
w_unit;
1083 template<
typename Quantity >
1085 {
set_w(boost::units::quantity<w_unit,double >(value_w_units).value() ); };
1087 template<
typename Quantity >
1089 {
return Quantity(
w() *
w_unit()); };
1092 {
return w_with_units<boost::units::quantity< w_unit,double > >(); };
1098 template<
typename Quantity >
1100 {
set_beam1_range(boost::units::quantity<beam1_range_unit,double >(value_w_units).value() ); };
1102 template<
typename Quantity >
1107 {
return beam1_range_with_units<boost::units::quantity< beam1_range_unit,double > >(); };
1113 template<
typename Quantity >
1115 {
set_beam2_range(boost::units::quantity<beam2_range_unit,double >(value_w_units).value() ); };
1117 template<
typename Quantity >
1122 {
return beam2_range_with_units<boost::units::quantity< beam2_range_unit,double > >(); };
1128 template<
typename Quantity >
1130 {
set_beam3_range(boost::units::quantity<beam3_range_unit,double >(value_w_units).value() ); };
1132 template<
typename Quantity >
1137 {
return beam3_range_with_units<boost::units::quantity< beam3_range_unit,double > >(); };
1143 template<
typename Quantity >
1145 {
set_beam4_range(boost::units::quantity<beam4_range_unit,double >(value_w_units).value() ); };
1147 template<
typename Quantity >
1152 {
return beam4_range_with_units<boost::units::quantity< beam4_range_unit,double > >(); };
1156 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
1158 template<
typename Quantity >
1160 {
set_temperature(boost::units::quantity<temperature_unit,double >(value_w_units).value() ); };
1162 template<
typename Quantity >
1167 {
return temperature_with_units<boost::units::quantity< temperature_unit,double > >(); };
1171 void set_has_dvl_time();
1172 void clear_has_dvl_time();
1179 void set_has_beam1_range();
1180 void clear_has_beam1_range();
1181 void set_has_beam2_range();
1182 void clear_has_beam2_range();
1183 void set_has_beam3_range();
1184 void clear_has_beam3_range();
1185 void set_has_beam4_range();
1186 void clear_has_beam4_range();
1187 void set_has_temperature();
1188 void clear_has_temperature();
1190 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1191 ::google::protobuf::internal::HasBits<1> _has_bits_;
1192 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1197 double beam1_range_;
1198 double beam2_range_;
1199 double beam3_range_;
1200 double beam4_range_;
1201 double temperature_;
1202 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto::TableStruct;
1220 *
this = ::std::move(from);
1224 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1225 if (
this != &from) InternalSwap(&from);
1233 return _internal_metadata_.unknown_fields();
1236 return _internal_metadata_.mutable_unknown_fields();
1239 static const ::google::protobuf::Descriptor*
descriptor();
1258 return CreateMaybeMessage<BluefinExtraData_RawThrusterRotation>(NULL);
1262 return CreateMaybeMessage<BluefinExtraData_RawThrusterRotation>(arena);
1264 void CopyFrom(const ::google::protobuf::Message& from)
final;
1265 void MergeFrom(const ::google::protobuf::Message& from)
final;
1273 ::
google::protobuf::io::CodedInputStream* input) final;
1275 ::
google::protobuf::io::CodedOutputStream* output) const final;
1277 bool deterministic, ::
google::protobuf::uint8* target) const final;
1283 void SetCachedSize(
int size)
const final;
1286 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1289 inline void* MaybeArenaPtr()
const {
1318 template<typename Quantity >
1320 {
set_rotation(boost::units::quantity<rotation_unit,double >(value_w_units).value() ); };
1322 template<
typename Quantity >
1327 {
return rotation_with_units<boost::units::quantity< rotation_unit,double > >(); };
1333 template<
typename Quantity >
1337 template<
typename Quantity >
1342 {
return speed_from_lookup_table_with_units<boost::units::quantity< speed_from_lookup_table_unit,double > >(); };
1346 void set_has_rotation();
1347 void clear_has_rotation();
1348 void set_has_speed_from_lookup_table();
1349 void clear_has_speed_from_lookup_table();
1351 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1352 ::google::protobuf::internal::HasBits<1> _has_bits_;
1353 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1355 double speed_from_lookup_table_;
1356 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto::TableStruct;
1374 *
this = ::std::move(from);
1378 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1379 if (
this != &from) InternalSwap(&from);
1387 return _internal_metadata_.unknown_fields();
1390 return _internal_metadata_.mutable_unknown_fields();
1393 static const ::google::protobuf::Descriptor*
descriptor();
1412 return CreateMaybeMessage<BluefinExtraData>(NULL);
1416 return CreateMaybeMessage<BluefinExtraData>(arena);
1418 void CopyFrom(const ::google::protobuf::Message& from)
final;
1419 void MergeFrom(const ::google::protobuf::Message& from)
final;
1427 ::
google::protobuf::io::CodedInputStream* input) final;
1429 ::
google::protobuf::io::CodedOutputStream* output) const final;
1431 bool deterministic, ::
google::protobuf::uint8* target) const final;
1437 void SetCachedSize(
int size)
const final;
1440 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1443 inline void* MaybeArenaPtr()
const {
1475 const ::
goby::acomms::protobuf::ModemRaw& _internal_micro_modem_raw_out() const;
1487 const ::
goby::acomms::protobuf::ModemRaw& _internal_micro_modem_raw_in() const;
1499 const ::
goby::middleware::frontseat::protobuf::
BuoyancyStatus& _internal_buoyancy_status() const;
1511 const ::
goby::middleware::frontseat::protobuf::
TrimStatus& _internal_trim_status() const;
1544 void set_has_micro_modem_raw_out();
1545 void clear_has_micro_modem_raw_out();
1546 void set_has_micro_modem_raw_in();
1547 void clear_has_micro_modem_raw_in();
1548 void set_has_buoyancy_status();
1549 void clear_has_buoyancy_status();
1550 void set_has_trim_status();
1551 void clear_has_trim_status();
1553 void clear_has_dvl();
1554 void set_has_thruster();
1555 void clear_has_thruster();
1557 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1558 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1559 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1561 ::
goby::acomms::protobuf::ModemRaw* micro_modem_raw_out_;
1562 ::
goby::acomms::protobuf::ModemRaw* micro_modem_raw_in_;
1564 ::
goby::middleware::frontseat::protobuf::
TrimStatus* trim_status_;
1585 *
this = ::std::move(from);
1588 inline BluefinExtraCommands&
operator=(BluefinExtraCommands&& from) noexcept {
1589 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1590 if (
this != &from) InternalSwap(&from);
1598 return _internal_metadata_.unknown_fields();
1601 return _internal_metadata_.mutable_unknown_fields();
1604 static const ::google::protobuf::Descriptor*
descriptor();
1623 return CreateMaybeMessage<BluefinExtraCommands>(NULL);
1627 return CreateMaybeMessage<BluefinExtraCommands>(arena);
1629 void CopyFrom(const ::google::protobuf::Message& from)
final;
1630 void MergeFrom(const ::google::protobuf::Message& from)
final;
1638 ::
google::protobuf::io::CodedInputStream* input) final;
1640 ::
google::protobuf::io::CodedOutputStream* output) const final;
1642 bool deterministic, ::
google::protobuf::uint8* target) const final;
1648 void SetCachedSize(
int size)
const final;
1651 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1654 inline void* MaybeArenaPtr()
const {
1682 static inline
bool BluefinCommand_IsValid(
int value) {
1689 static const int BluefinCommand_ARRAYSIZE =
1691 static inline const ::google::protobuf::EnumDescriptor*
1715 static const int SilentMode_ARRAYSIZE =
1717 static inline const ::google::protobuf::EnumDescriptor*
1741 static const int AbortReason_ARRAYSIZE =
1743 static inline const ::google::protobuf::EnumDescriptor*
1767 static const int StartConfirm_ARRAYSIZE =
1769 static inline const ::google::protobuf::EnumDescriptor*
1784 bool has_command()
const;
1785 void clear_command();
1786 static const int kCommandFieldNumber = 1;
1791 bool has_silent_mode()
const;
1792 void clear_silent_mode();
1793 static const int kSilentModeFieldNumber = 10;
1798 bool has_abort_reason()
const;
1799 void clear_abort_reason();
1800 static const int kAbortReasonFieldNumber = 11;
1805 bool has_start_confirm()
const;
1806 void clear_start_confirm();
1807 static const int kStartConfirmFieldNumber = 12;
1813 void set_has_command();
1814 void clear_has_command();
1815 void set_has_silent_mode();
1816 void clear_has_silent_mode();
1817 void set_has_abort_reason();
1818 void clear_has_abort_reason();
1819 void set_has_start_confirm();
1820 void clear_has_start_confirm();
1822 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1823 ::google::protobuf::internal::HasBits<1> _has_bits_;
1824 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1829 friend struct ::protobuf_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto::TableStruct;
1835 ::google::protobuf::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::BluefinExtraData >, 11,
false >
1839 ::google::protobuf::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::BluefinExtraCommands >, 11,
false >
1845 #pragma GCC diagnostic push
1846 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1852 return (_has_bits_[0] & 0x00000002u) != 0;
1854 inline void BuoyancyStatus::set_has_status() {
1855 _has_bits_[0] |= 0x00000002u;
1857 inline void BuoyancyStatus::clear_has_status() {
1858 _has_bits_[0] &= ~0x00000002u;
1877 return (_has_bits_[0] & 0x00000004u) != 0;
1879 inline void BuoyancyStatus::set_has_error() {
1880 _has_bits_[0] |= 0x00000004u;
1882 inline void BuoyancyStatus::clear_has_error() {
1883 _has_bits_[0] &= ~0x00000004u;
1902 return (_has_bits_[0] & 0x00000001u) != 0;
1904 inline void BuoyancyStatus::set_has_debug_string() {
1905 _has_bits_[0] |= 0x00000001u;
1907 inline void BuoyancyStatus::clear_has_debug_string() {
1908 _has_bits_[0] &= ~0x00000001u;
1912 clear_has_debug_string();
1916 return debug_string_.GetNoArena();
1919 set_has_debug_string();
1925 set_has_debug_string();
1926 debug_string_.SetNoArena(
1932 GOOGLE_DCHECK(value != NULL);
1933 set_has_debug_string();
1938 set_has_debug_string();
1940 ::std::string(
reinterpret_cast<const char*
>(value), size));
1944 set_has_debug_string();
1950 if (!has_debug_string()) {
1953 clear_has_debug_string();
1957 if (debug_string != NULL) {
1958 set_has_debug_string();
1960 clear_has_debug_string();
1968 return (_has_bits_[0] & 0x00000008u) != 0;
1970 inline void BuoyancyStatus::set_has_buoyancy_newtons() {
1971 _has_bits_[0] |= 0x00000008u;
1973 inline void BuoyancyStatus::clear_has_buoyancy_newtons() {
1974 _has_bits_[0] &= ~0x00000008u;
1977 buoyancy_newtons_ = 0;
1978 clear_has_buoyancy_newtons();
1982 return buoyancy_newtons_;
1985 set_has_buoyancy_newtons();
1986 buoyancy_newtons_ = value;
1996 return (_has_bits_[0] & 0x00000002u) != 0;
1998 inline void TrimStatus::set_has_status() {
1999 _has_bits_[0] |= 0x00000002u;
2001 inline void TrimStatus::clear_has_status() {
2002 _has_bits_[0] &= ~0x00000002u;
2021 return (_has_bits_[0] & 0x00000004u) != 0;
2023 inline void TrimStatus::set_has_error() {
2024 _has_bits_[0] |= 0x00000004u;
2026 inline void TrimStatus::clear_has_error() {
2027 _has_bits_[0] &= ~0x00000004u;
2046 return (_has_bits_[0] & 0x00000001u) != 0;
2048 inline void TrimStatus::set_has_debug_string() {
2049 _has_bits_[0] |= 0x00000001u;
2051 inline void TrimStatus::clear_has_debug_string() {
2052 _has_bits_[0] &= ~0x00000001u;
2056 clear_has_debug_string();
2060 return debug_string_.GetNoArena();
2063 set_has_debug_string();
2069 set_has_debug_string();
2070 debug_string_.SetNoArena(
2076 GOOGLE_DCHECK(value != NULL);
2077 set_has_debug_string();
2082 set_has_debug_string();
2084 ::std::string(
reinterpret_cast<const char*
>(value), size));
2088 set_has_debug_string();
2094 if (!has_debug_string()) {
2097 clear_has_debug_string();
2101 if (debug_string != NULL) {
2102 set_has_debug_string();
2104 clear_has_debug_string();
2112 return (_has_bits_[0] & 0x00000008u) != 0;
2114 inline void TrimStatus::set_has_pitch_trim_degrees() {
2115 _has_bits_[0] |= 0x00000008u;
2117 inline void TrimStatus::clear_has_pitch_trim_degrees() {
2118 _has_bits_[0] &= ~0x00000008u;
2121 pitch_trim_degrees_ = 0;
2122 clear_has_pitch_trim_degrees();
2126 return pitch_trim_degrees_;
2129 set_has_pitch_trim_degrees();
2130 pitch_trim_degrees_ = value;
2136 return (_has_bits_[0] & 0x00000010u) != 0;
2138 inline void TrimStatus::set_has_roll_trim_degrees() {
2139 _has_bits_[0] |= 0x00000010u;
2141 inline void TrimStatus::clear_has_roll_trim_degrees() {
2142 _has_bits_[0] &= ~0x00000010u;
2145 roll_trim_degrees_ = 0;
2146 clear_has_roll_trim_degrees();
2150 return roll_trim_degrees_;
2153 set_has_roll_trim_degrees();
2154 roll_trim_degrees_ = value;
2164 return (_has_bits_[0] & 0x00000004u) != 0;
2166 inline void BluefinExtraData_PayloadStatus::set_has_id() {
2167 _has_bits_[0] |= 0x00000004u;
2169 inline void BluefinExtraData_PayloadStatus::clear_has_id() {
2170 _has_bits_[0] &= ~0x00000004u;
2188 return (_has_bits_[0] & 0x00000002u) != 0;
2190 inline void BluefinExtraData_PayloadStatus::set_has_expire_time() {
2191 _has_bits_[0] |= 0x00000002u;
2193 inline void BluefinExtraData_PayloadStatus::clear_has_expire_time() {
2194 _has_bits_[0] &= ~0x00000002u;
2197 expire_time_ = GOOGLE_ULONGLONG(0);
2198 clear_has_expire_time();
2202 return expire_time_;
2205 set_has_expire_time();
2206 expire_time_ = value;
2212 return (_has_bits_[0] & 0x00000001u) != 0;
2214 inline void BluefinExtraData_PayloadStatus::set_has_msg() {
2215 _has_bits_[0] |= 0x00000001u;
2217 inline void BluefinExtraData_PayloadStatus::clear_has_msg() {
2218 _has_bits_[0] &= ~0x00000001u;
2226 return msg_.GetNoArena();
2242 GOOGLE_DCHECK(value != NULL);
2250 ::std::string(
reinterpret_cast<const char*
>(value), size));
2278 return (_has_bits_[0] & 0x00000008u) != 0;
2280 inline void BluefinExtraData_PayloadStatus::set_has_all_ok() {
2281 _has_bits_[0] |= 0x00000008u;
2283 inline void BluefinExtraData_PayloadStatus::clear_has_all_ok() {
2284 _has_bits_[0] &= ~0x00000008u;
2306 return (_has_bits_[0] & 0x00000001u) != 0;
2308 inline void BluefinExtraData_RawDVL::set_has_dvl_time() {
2309 _has_bits_[0] |= 0x00000001u;
2311 inline void BluefinExtraData_RawDVL::clear_has_dvl_time() {
2312 _has_bits_[0] &= ~0x00000001u;
2316 clear_has_dvl_time();
2330 return (_has_bits_[0] & 0x00000002u) != 0;
2332 inline void BluefinExtraData_RawDVL::set_has_u() {
2333 _has_bits_[0] |= 0x00000002u;
2335 inline void BluefinExtraData_RawDVL::clear_has_u() {
2336 _has_bits_[0] &= ~0x00000002u;
2354 return (_has_bits_[0] & 0x00000004u) != 0;
2356 inline void BluefinExtraData_RawDVL::set_has_v() {
2357 _has_bits_[0] |= 0x00000004u;
2359 inline void BluefinExtraData_RawDVL::clear_has_v() {
2360 _has_bits_[0] &= ~0x00000004u;
2378 return (_has_bits_[0] & 0x00000008u) != 0;
2380 inline void BluefinExtraData_RawDVL::set_has_w() {
2381 _has_bits_[0] |= 0x00000008u;
2383 inline void BluefinExtraData_RawDVL::clear_has_w() {
2384 _has_bits_[0] &= ~0x00000008u;
2402 return (_has_bits_[0] & 0x00000010u) != 0;
2404 inline void BluefinExtraData_RawDVL::set_has_beam1_range() {
2405 _has_bits_[0] |= 0x00000010u;
2407 inline void BluefinExtraData_RawDVL::clear_has_beam1_range() {
2408 _has_bits_[0] &= ~0x00000010u;
2412 clear_has_beam1_range();
2416 return beam1_range_;
2419 set_has_beam1_range();
2420 beam1_range_ = value;
2426 return (_has_bits_[0] & 0x00000020u) != 0;
2428 inline void BluefinExtraData_RawDVL::set_has_beam2_range() {
2429 _has_bits_[0] |= 0x00000020u;
2431 inline void BluefinExtraData_RawDVL::clear_has_beam2_range() {
2432 _has_bits_[0] &= ~0x00000020u;
2436 clear_has_beam2_range();
2440 return beam2_range_;
2443 set_has_beam2_range();
2444 beam2_range_ = value;
2450 return (_has_bits_[0] & 0x00000040u) != 0;
2452 inline void BluefinExtraData_RawDVL::set_has_beam3_range() {
2453 _has_bits_[0] |= 0x00000040u;
2455 inline void BluefinExtraData_RawDVL::clear_has_beam3_range() {
2456 _has_bits_[0] &= ~0x00000040u;
2460 clear_has_beam3_range();
2464 return beam3_range_;
2467 set_has_beam3_range();
2468 beam3_range_ = value;
2474 return (_has_bits_[0] & 0x00000080u) != 0;
2476 inline void BluefinExtraData_RawDVL::set_has_beam4_range() {
2477 _has_bits_[0] |= 0x00000080u;
2479 inline void BluefinExtraData_RawDVL::clear_has_beam4_range() {
2480 _has_bits_[0] &= ~0x00000080u;
2484 clear_has_beam4_range();
2488 return beam4_range_;
2491 set_has_beam4_range();
2492 beam4_range_ = value;
2498 return (_has_bits_[0] & 0x00000100u) != 0;
2500 inline void BluefinExtraData_RawDVL::set_has_temperature() {
2501 _has_bits_[0] |= 0x00000100u;
2503 inline void BluefinExtraData_RawDVL::clear_has_temperature() {
2504 _has_bits_[0] &= ~0x00000100u;
2508 clear_has_temperature();
2512 return temperature_;
2515 set_has_temperature();
2516 temperature_ = value;
2526 return (_has_bits_[0] & 0x00000001u) != 0;
2528 inline void BluefinExtraData_RawThrusterRotation::set_has_rotation() {
2529 _has_bits_[0] |= 0x00000001u;
2531 inline void BluefinExtraData_RawThrusterRotation::clear_has_rotation() {
2532 _has_bits_[0] &= ~0x00000001u;
2536 clear_has_rotation();
2550 return (_has_bits_[0] & 0x00000002u) != 0;
2552 inline void BluefinExtraData_RawThrusterRotation::set_has_speed_from_lookup_table() {
2553 _has_bits_[0] |= 0x00000002u;
2555 inline void BluefinExtraData_RawThrusterRotation::clear_has_speed_from_lookup_table() {
2556 _has_bits_[0] &= ~0x00000002u;
2559 speed_from_lookup_table_ = 0;
2560 clear_has_speed_from_lookup_table();
2564 return speed_from_lookup_table_;
2567 set_has_speed_from_lookup_table();
2568 speed_from_lookup_table_ = value;
2578 return (_has_bits_[0] & 0x00000001u) != 0;
2580 inline void BluefinExtraData::set_has_micro_modem_raw_out() {
2581 _has_bits_[0] |= 0x00000001u;
2583 inline void BluefinExtraData::clear_has_micro_modem_raw_out() {
2584 _has_bits_[0] &= ~0x00000001u;
2586 inline const ::goby::acomms::protobuf::ModemRaw& BluefinExtraData::_internal_micro_modem_raw_out()
const {
2587 return *micro_modem_raw_out_;
2590 const ::goby::acomms::protobuf::ModemRaw* p = micro_modem_raw_out_;
2597 clear_has_micro_modem_raw_out();
2599 micro_modem_raw_out_ = NULL;
2603 set_has_micro_modem_raw_out();
2604 if (micro_modem_raw_out_ == NULL) {
2605 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::ModemRaw>(GetArenaNoVirtual());
2606 micro_modem_raw_out_ = p;
2609 return micro_modem_raw_out_;
2613 if (message_arena == NULL) {
2618 if (message_arena != submessage_arena) {
2622 set_has_micro_modem_raw_out();
2624 clear_has_micro_modem_raw_out();
2632 return (_has_bits_[0] & 0x00000002u) != 0;
2634 inline void BluefinExtraData::set_has_micro_modem_raw_in() {
2635 _has_bits_[0] |= 0x00000002u;
2637 inline void BluefinExtraData::clear_has_micro_modem_raw_in() {
2638 _has_bits_[0] &= ~0x00000002u;
2640 inline const ::goby::acomms::protobuf::ModemRaw& BluefinExtraData::_internal_micro_modem_raw_in()
const {
2641 return *micro_modem_raw_in_;
2644 const ::goby::acomms::protobuf::ModemRaw* p = micro_modem_raw_in_;
2651 clear_has_micro_modem_raw_in();
2653 micro_modem_raw_in_ = NULL;
2657 set_has_micro_modem_raw_in();
2658 if (micro_modem_raw_in_ == NULL) {
2659 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::ModemRaw>(GetArenaNoVirtual());
2660 micro_modem_raw_in_ = p;
2663 return micro_modem_raw_in_;
2667 if (message_arena == NULL) {
2672 if (message_arena != submessage_arena) {
2676 set_has_micro_modem_raw_in();
2678 clear_has_micro_modem_raw_in();
2686 return (_has_bits_[0] & 0x00000004u) != 0;
2688 inline void BluefinExtraData::set_has_buoyancy_status() {
2689 _has_bits_[0] |= 0x00000004u;
2691 inline void BluefinExtraData::clear_has_buoyancy_status() {
2692 _has_bits_[0] &= ~0x00000004u;
2695 if (buoyancy_status_ != NULL) buoyancy_status_->Clear();
2696 clear_has_buoyancy_status();
2698 inline const ::goby::middleware::frontseat::protobuf::BuoyancyStatus& BluefinExtraData::_internal_buoyancy_status()
const {
2699 return *buoyancy_status_;
2702 const ::goby::middleware::frontseat::protobuf::BuoyancyStatus* p = buoyancy_status_;
2709 clear_has_buoyancy_status();
2711 buoyancy_status_ = NULL;
2715 set_has_buoyancy_status();
2716 if (buoyancy_status_ == NULL) {
2717 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::BuoyancyStatus>(GetArenaNoVirtual());
2718 buoyancy_status_ = p;
2721 return buoyancy_status_;
2725 if (message_arena == NULL) {
2726 delete buoyancy_status_;
2730 if (message_arena != submessage_arena) {
2734 set_has_buoyancy_status();
2736 clear_has_buoyancy_status();
2744 return (_has_bits_[0] & 0x00000008u) != 0;
2746 inline void BluefinExtraData::set_has_trim_status() {
2747 _has_bits_[0] |= 0x00000008u;
2749 inline void BluefinExtraData::clear_has_trim_status() {
2750 _has_bits_[0] &= ~0x00000008u;
2753 if (trim_status_ != NULL) trim_status_->Clear();
2754 clear_has_trim_status();
2756 inline const ::goby::middleware::frontseat::protobuf::TrimStatus& BluefinExtraData::_internal_trim_status()
const {
2757 return *trim_status_;
2760 const ::goby::middleware::frontseat::protobuf::TrimStatus* p = trim_status_;
2767 clear_has_trim_status();
2769 trim_status_ = NULL;
2773 set_has_trim_status();
2774 if (trim_status_ == NULL) {
2775 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::TrimStatus>(GetArenaNoVirtual());
2779 return trim_status_;
2783 if (message_arena == NULL) {
2784 delete trim_status_;
2788 if (message_arena != submessage_arena) {
2789 trim_status = ::google::protobuf::internal::GetOwnedMessage(
2792 set_has_trim_status();
2794 clear_has_trim_status();
2802 return payload_status_.size();
2805 payload_status_.Clear();
2809 return payload_status_.Mutable(index);
2811 inline ::google::protobuf::RepeatedPtrField< ::goby::middleware::frontseat::protobuf::BluefinExtraData_PayloadStatus >*
2814 return &payload_status_;
2818 return payload_status_.Get(index);
2822 return payload_status_.Add();
2824 inline const ::google::protobuf::RepeatedPtrField< ::goby::middleware::frontseat::protobuf::BluefinExtraData_PayloadStatus >&
2827 return payload_status_;
2832 return (_has_bits_[0] & 0x00000010u) != 0;
2834 inline void BluefinExtraData::set_has_dvl() {
2835 _has_bits_[0] |= 0x00000010u;
2837 inline void BluefinExtraData::clear_has_dvl() {
2838 _has_bits_[0] &= ~0x00000010u;
2841 if (dvl_ != NULL) dvl_->Clear();
2844 inline const ::goby::middleware::frontseat::protobuf::BluefinExtraData_RawDVL& BluefinExtraData::_internal_dvl()
const {
2848 const ::goby::middleware::frontseat::protobuf::BluefinExtraData_RawDVL* p = dvl_;
2863 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::BluefinExtraData_RawDVL>(GetArenaNoVirtual());
2871 if (message_arena == NULL) {
2876 if (message_arena != submessage_arena) {
2877 dvl = ::google::protobuf::internal::GetOwnedMessage(
2878 message_arena,
dvl, submessage_arena);
2890 return (_has_bits_[0] & 0x00000020u) != 0;
2892 inline void BluefinExtraData::set_has_thruster() {
2893 _has_bits_[0] |= 0x00000020u;
2895 inline void BluefinExtraData::clear_has_thruster() {
2896 _has_bits_[0] &= ~0x00000020u;
2899 if (thruster_ != NULL) thruster_->Clear();
2900 clear_has_thruster();
2902 inline const ::goby::middleware::frontseat::protobuf::BluefinExtraData_RawThrusterRotation& BluefinExtraData::_internal_thruster()
const {
2906 const ::goby::middleware::frontseat::protobuf::BluefinExtraData_RawThrusterRotation* p = thruster_;
2913 clear_has_thruster();
2920 if (thruster_ == NULL) {
2921 auto* p = CreateMaybeMessage<::goby::middleware::frontseat::protobuf::BluefinExtraData_RawThrusterRotation>(GetArenaNoVirtual());
2929 if (message_arena == NULL) {
2934 if (message_arena != submessage_arena) {
2935 thruster = ::google::protobuf::internal::GetOwnedMessage(
2936 message_arena,
thruster, submessage_arena);
2940 clear_has_thruster();
2952 return (_has_bits_[0] & 0x00000001u) != 0;
2954 inline void BluefinExtraCommands::set_has_command() {
2955 _has_bits_[0] |= 0x00000001u;
2957 inline void BluefinExtraCommands::clear_has_command() {
2958 _has_bits_[0] &= ~0x00000001u;
2962 clear_has_command();
2977 return (_has_bits_[0] & 0x00000002u) != 0;
2979 inline void BluefinExtraCommands::set_has_silent_mode() {
2980 _has_bits_[0] |= 0x00000002u;
2982 inline void BluefinExtraCommands::clear_has_silent_mode() {
2983 _has_bits_[0] &= ~0x00000002u;
2987 clear_has_silent_mode();
2995 set_has_silent_mode();
2996 silent_mode_ = value;
3002 return (_has_bits_[0] & 0x00000004u) != 0;
3004 inline void BluefinExtraCommands::set_has_abort_reason() {
3005 _has_bits_[0] |= 0x00000004u;
3007 inline void BluefinExtraCommands::clear_has_abort_reason() {
3008 _has_bits_[0] &= ~0x00000004u;
3012 clear_has_abort_reason();
3020 set_has_abort_reason();
3021 abort_reason_ = value;
3027 return (_has_bits_[0] & 0x00000008u) != 0;
3029 inline void BluefinExtraCommands::set_has_start_confirm() {
3030 _has_bits_[0] |= 0x00000008u;
3032 inline void BluefinExtraCommands::clear_has_start_confirm() {
3033 _has_bits_[0] &= ~0x00000008u;
3037 clear_has_start_confirm();
3045 set_has_start_confirm();
3046 start_confirm_ = value;
3051 #pragma GCC diagnostic pop
3074 namespace protobuf {
3078 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BuoyancyStatus_Status>() {
3083 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BuoyancyStatus_Error>() {
3088 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::TrimStatus_Status>() {
3093 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::TrimStatus_Error>() {
3098 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BluefinExtraCommands_BluefinCommand>() {
3103 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BluefinExtraCommands_SilentMode>() {
3108 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BluefinExtraCommands_AbortReason>() {
3113 inline const EnumDescriptor* GetEnumDescriptor< ::goby::middleware::frontseat::protobuf::BluefinExtraCommands_StartConfirm>() {
3122 #endif // PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fbluefin_2fbluefin_2eproto