4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmodem_5fmessage_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"
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/si.hpp>
43 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[3];
61 class ModemRawDefaultTypeInternal;
64 class ModemReportDefaultTypeInternal;
66 class ModemTransmission;
67 class ModemTransmissionDefaultTypeInternal;
94 return ::google::protobuf::internal::NameOfEnum(
99 return ::google::protobuf::internal::ParseNamedEnum<ModemTransmission_TimeSource>(
114 return ::google::protobuf::internal::NameOfEnum(
119 return ::google::protobuf::internal::ParseNamedEnum<ModemTransmission_TransmissionType>(
133 return ::google::protobuf::internal::NameOfEnum(
138 return ::google::protobuf::internal::ParseNamedEnum<ModemReport_LinkState>(
156 return ::google::protobuf::internal::NameOfEnum(
161 return ::google::protobuf::internal::ParseNamedEnum<ModemReport_LinkQuality>(
180 *
this = ::std::move(from);
184 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
185 if (
this != &from) InternalSwap(&from);
193 return _internal_metadata_.unknown_fields();
196 return _internal_metadata_.mutable_unknown_fields();
199 static const ::google::protobuf::Descriptor*
descriptor();
218 return CreateMaybeMessage<ModemTransmission>(NULL);
222 return CreateMaybeMessage<ModemTransmission>(arena);
224 void CopyFrom(const ::google::protobuf::Message& from)
final;
225 void MergeFrom(const ::google::protobuf::Message& from)
final;
233 ::
google::protobuf::io::CodedInputStream* input) final;
235 ::
google::protobuf::io::CodedOutputStream* output) const final;
237 bool deterministic, ::
google::protobuf::uint8* target) const final;
243 void SetCachedSize(
int size)
const final;
246 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
249 inline void* MaybeArenaPtr()
const {
272 static inline const ::google::protobuf::EnumDescriptor*
300 static inline const ::google::protobuf::EnumDescriptor*
318 const ::std::string&
frame(
int index)
const;
320 void set_frame(
int index, const ::std::string& value);
322 void set_frame(
int index, ::std::string&& value);
324 void set_frame(
int index,
const char* value);
325 void set_frame(
int index,
const void* value,
size_t size);
327 void add_frame(const ::std::string& value);
332 void add_frame(
const void* value,
size_t size);
333 const ::google::protobuf::RepeatedPtrField< ::std::string>&
frame()
const;
343 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
451 template<typename Quantity >
453 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
455 template<
typename Quantity >
460 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
466 template<
typename Quantity >
468 {
set_slot_seconds(boost::units::quantity<slot_seconds_unit,double >(value_w_units).value() ); };
470 template<
typename Quantity >
475 {
return slot_seconds_with_units<boost::units::quantity< slot_seconds_unit,double > >(); };
480 void clear_has_src();
482 void clear_has_dest();
484 void clear_has_time();
485 void set_has_time_source();
486 void clear_has_time_source();
488 void clear_has_rate();
490 void clear_has_type();
491 void set_has_max_num_frames();
492 void clear_has_max_num_frames();
493 void set_has_max_frame_bytes();
494 void clear_has_max_frame_bytes();
495 void set_has_ack_requested();
496 void clear_has_ack_requested();
497 void set_has_frame_start();
498 void clear_has_frame_start();
499 void set_has_slot_seconds();
500 void clear_has_slot_seconds();
501 void set_has_unique_id();
502 void clear_has_unique_id();
503 void set_has_always_initiate();
504 void clear_has_always_initiate();
505 void set_has_slot_index();
506 void clear_has_slot_index();
508 ::google::protobuf::internal::ExtensionSet _extensions_;
510 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
511 ::google::protobuf::internal::HasBits<1> _has_bits_;
512 mutable ::google::protobuf::internal::CachedSize _cached_size_;
520 bool always_initiate_;
528 double slot_seconds_;
529 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto::TableStruct;
547 *
this = ::std::move(from);
551 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
552 if (
this != &from) InternalSwap(&from);
560 return _internal_metadata_.unknown_fields();
563 return _internal_metadata_.mutable_unknown_fields();
566 static const ::google::protobuf::Descriptor*
descriptor();
571 return reinterpret_cast<const ModemRaw*
>(
585 return CreateMaybeMessage<ModemRaw>(NULL);
589 return CreateMaybeMessage<ModemRaw>(arena);
591 void CopyFrom(const ::google::protobuf::Message& from)
final;
592 void MergeFrom(const ::google::protobuf::Message& from)
final;
600 ::
google::protobuf::io::CodedInputStream* input) final;
602 ::
google::protobuf::io::CodedOutputStream* output) const final;
604 bool deterministic, ::
google::protobuf::uint8* target) const final;
610 void SetCachedSize(
int size)
const final;
613 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
616 inline void* MaybeArenaPtr()
const {
631 const ::std::
string&
raw() const;
632 void set_raw(const ::std::
string& value);
634 void set_raw(::std::string&& value);
636 void set_raw(
const char* value);
637 void set_raw(
const void* value,
size_t size);
660 void clear_has_raw();
661 void set_has_description();
662 void clear_has_description();
664 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
665 ::google::protobuf::internal::HasBits<1> _has_bits_;
666 mutable ::google::protobuf::internal::CachedSize _cached_size_;
667 ::google::protobuf::internal::ArenaStringPtr raw_;
668 ::google::protobuf::internal::ArenaStringPtr description_;
669 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto::TableStruct;
687 *
this = ::std::move(from);
691 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
692 if (
this != &from) InternalSwap(&from);
700 return _internal_metadata_.unknown_fields();
703 return _internal_metadata_.mutable_unknown_fields();
706 static const ::google::protobuf::Descriptor*
descriptor();
725 return CreateMaybeMessage<ModemReport>(NULL);
729 return CreateMaybeMessage<ModemReport>(arena);
731 void CopyFrom(const ::google::protobuf::Message& from)
final;
732 void MergeFrom(const ::google::protobuf::Message& from)
final;
740 ::
google::protobuf::io::CodedInputStream* input) final;
742 ::
google::protobuf::io::CodedOutputStream* output) const final;
744 bool deterministic, ::
google::protobuf::uint8* target) const final;
750 void SetCachedSize(
int size)
const final;
753 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
756 inline void* MaybeArenaPtr()
const {
779 static inline const ::google::protobuf::EnumDescriptor*
813 static inline const ::google::protobuf::EnumDescriptor*
860 template<typename Quantity >
862 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
864 template<
typename Quantity >
869 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
873 void set_has_modem_id();
874 void clear_has_modem_id();
876 void clear_has_time();
877 void set_has_link_state();
878 void clear_has_link_state();
879 void set_has_link_quality();
880 void clear_has_link_quality();
882 ::google::protobuf::internal::ExtensionSet _extensions_;
884 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
885 ::google::protobuf::internal::HasBits<1> _has_bits_;
886 mutable ::google::protobuf::internal::CachedSize _cached_size_;
891 friend struct ::protobuf_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto::TableStruct;
899 #pragma GCC diagnostic push
900 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
906 return (_has_bits_[0] & 0x00000080u) != 0;
908 inline void ModemTransmission::set_has_src() {
909 _has_bits_[0] |= 0x00000080u;
911 inline void ModemTransmission::clear_has_src() {
912 _has_bits_[0] &= ~0x00000080u;
930 return (_has_bits_[0] & 0x00000100u) != 0;
932 inline void ModemTransmission::set_has_dest() {
933 _has_bits_[0] |= 0x00000100u;
935 inline void ModemTransmission::clear_has_dest() {
936 _has_bits_[0] &= ~0x00000100u;
954 return (_has_bits_[0] & 0x00000001u) != 0;
956 inline void ModemTransmission::set_has_time() {
957 _has_bits_[0] |= 0x00000001u;
959 inline void ModemTransmission::clear_has_time() {
960 _has_bits_[0] &= ~0x00000001u;
963 time_ = GOOGLE_ULONGLONG(0);
978 return (_has_bits_[0] & 0x00000200u) != 0;
980 inline void ModemTransmission::set_has_time_source() {
981 _has_bits_[0] |= 0x00000200u;
983 inline void ModemTransmission::clear_has_time_source() {
984 _has_bits_[0] &= ~0x00000200u;
988 clear_has_time_source();
996 set_has_time_source();
997 time_source_ = value;
1003 return (_has_bits_[0] & 0x00000002u) != 0;
1005 inline void ModemTransmission::set_has_rate() {
1006 _has_bits_[0] |= 0x00000002u;
1008 inline void ModemTransmission::clear_has_rate() {
1009 _has_bits_[0] &= ~0x00000002u;
1027 return (_has_bits_[0] & 0x00000400u) != 0;
1029 inline void ModemTransmission::set_has_type() {
1030 _has_bits_[0] |= 0x00000400u;
1032 inline void ModemTransmission::clear_has_type() {
1033 _has_bits_[0] &= ~0x00000400u;
1052 return (_has_bits_[0] & 0x00000800u) != 0;
1054 inline void ModemTransmission::set_has_max_num_frames() {
1055 _has_bits_[0] |= 0x00000800u;
1057 inline void ModemTransmission::clear_has_max_num_frames() {
1058 _has_bits_[0] &= ~0x00000800u;
1061 max_num_frames_ = 1u;
1062 clear_has_max_num_frames();
1066 return max_num_frames_;
1069 set_has_max_num_frames();
1070 max_num_frames_ = value;
1076 return (_has_bits_[0] & 0x00000004u) != 0;
1078 inline void ModemTransmission::set_has_max_frame_bytes() {
1079 _has_bits_[0] |= 0x00000004u;
1081 inline void ModemTransmission::clear_has_max_frame_bytes() {
1082 _has_bits_[0] &= ~0x00000004u;
1085 max_frame_bytes_ = 0u;
1086 clear_has_max_frame_bytes();
1090 return max_frame_bytes_;
1093 set_has_max_frame_bytes();
1094 max_frame_bytes_ = value;
1100 return (_has_bits_[0] & 0x00001000u) != 0;
1102 inline void ModemTransmission::set_has_ack_requested() {
1103 _has_bits_[0] |= 0x00001000u;
1105 inline void ModemTransmission::clear_has_ack_requested() {
1106 _has_bits_[0] &= ~0x00001000u;
1109 ack_requested_ =
true;
1110 clear_has_ack_requested();
1114 return ack_requested_;
1117 set_has_ack_requested();
1118 ack_requested_ = value;
1124 return frame_.size();
1131 return frame_.Get(index);
1135 return frame_.Mutable(index);
1139 frame_.Mutable(index)->assign(value);
1144 frame_.Mutable(index)->assign(std::move(value));
1148 GOOGLE_DCHECK(value != NULL);
1149 frame_.Mutable(index)->assign(value);
1153 frame_.Mutable(index)->assign(
1154 reinterpret_cast<const char*
>(value), size);
1159 return frame_.Add();
1162 frame_.Add()->assign(value);
1167 frame_.Add(std::move(value));
1172 GOOGLE_DCHECK(value != NULL);
1173 frame_.Add()->assign(value);
1177 frame_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
1180 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1185 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1193 return (_has_bits_[0] & 0x00000008u) != 0;
1195 inline void ModemTransmission::set_has_frame_start() {
1196 _has_bits_[0] |= 0x00000008u;
1198 inline void ModemTransmission::clear_has_frame_start() {
1199 _has_bits_[0] &= ~0x00000008u;
1203 clear_has_frame_start();
1207 return frame_start_;
1210 set_has_frame_start();
1211 frame_start_ = value;
1217 return acked_frame_.size();
1220 acked_frame_.Clear();
1224 return acked_frame_.Get(index);
1227 acked_frame_.Set(index, value);
1231 acked_frame_.Add(value);
1234 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1237 return acked_frame_;
1239 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1242 return &acked_frame_;
1247 return (_has_bits_[0] & 0x00002000u) != 0;
1249 inline void ModemTransmission::set_has_slot_seconds() {
1250 _has_bits_[0] |= 0x00002000u;
1252 inline void ModemTransmission::clear_has_slot_seconds() {
1253 _has_bits_[0] &= ~0x00002000u;
1257 clear_has_slot_seconds();
1261 return slot_seconds_;
1264 set_has_slot_seconds();
1265 slot_seconds_ = value;
1271 return (_has_bits_[0] & 0x00000010u) != 0;
1273 inline void ModemTransmission::set_has_unique_id() {
1274 _has_bits_[0] |= 0x00000010u;
1276 inline void ModemTransmission::clear_has_unique_id() {
1277 _has_bits_[0] &= ~0x00000010u;
1281 clear_has_unique_id();
1288 set_has_unique_id();
1295 return (_has_bits_[0] & 0x00000020u) != 0;
1297 inline void ModemTransmission::set_has_always_initiate() {
1298 _has_bits_[0] |= 0x00000020u;
1300 inline void ModemTransmission::clear_has_always_initiate() {
1301 _has_bits_[0] &= ~0x00000020u;
1304 always_initiate_ =
false;
1305 clear_has_always_initiate();
1309 return always_initiate_;
1312 set_has_always_initiate();
1313 always_initiate_ = value;
1319 return (_has_bits_[0] & 0x00000040u) != 0;
1321 inline void ModemTransmission::set_has_slot_index() {
1322 _has_bits_[0] |= 0x00000040u;
1324 inline void ModemTransmission::clear_has_slot_index() {
1325 _has_bits_[0] &= ~0x00000040u;
1329 clear_has_slot_index();
1336 set_has_slot_index();
1337 slot_index_ = value;
1347 return (_has_bits_[0] & 0x00000001u) != 0;
1349 inline void ModemRaw::set_has_raw() {
1350 _has_bits_[0] |= 0x00000001u;
1352 inline void ModemRaw::clear_has_raw() {
1353 _has_bits_[0] &= ~0x00000001u;
1361 return raw_.GetNoArena();
1377 GOOGLE_DCHECK(value != NULL);
1385 ::std::string(
reinterpret_cast<const char*
>(value), size));
1413 return (_has_bits_[0] & 0x00000002u) != 0;
1415 inline void ModemRaw::set_has_description() {
1416 _has_bits_[0] |= 0x00000002u;
1418 inline void ModemRaw::clear_has_description() {
1419 _has_bits_[0] &= ~0x00000002u;
1423 clear_has_description();
1427 return description_.GetNoArena();
1430 set_has_description();
1436 set_has_description();
1437 description_.SetNoArena(
1443 GOOGLE_DCHECK(value != NULL);
1444 set_has_description();
1449 set_has_description();
1451 ::std::string(
reinterpret_cast<const char*
>(value), size));
1455 set_has_description();
1464 clear_has_description();
1469 set_has_description();
1471 clear_has_description();
1483 return (_has_bits_[0] & 0x00000004u) != 0;
1485 inline void ModemReport::set_has_modem_id() {
1486 _has_bits_[0] |= 0x00000004u;
1488 inline void ModemReport::clear_has_modem_id() {
1489 _has_bits_[0] &= ~0x00000004u;
1493 clear_has_modem_id();
1507 return (_has_bits_[0] & 0x00000001u) != 0;
1509 inline void ModemReport::set_has_time() {
1510 _has_bits_[0] |= 0x00000001u;
1512 inline void ModemReport::clear_has_time() {
1513 _has_bits_[0] &= ~0x00000001u;
1516 time_ = GOOGLE_ULONGLONG(0);
1531 return (_has_bits_[0] & 0x00000008u) != 0;
1533 inline void ModemReport::set_has_link_state() {
1534 _has_bits_[0] |= 0x00000008u;
1536 inline void ModemReport::clear_has_link_state() {
1537 _has_bits_[0] &= ~0x00000008u;
1541 clear_has_link_state();
1549 set_has_link_state();
1550 link_state_ = value;
1556 return (_has_bits_[0] & 0x00000002u) != 0;
1558 inline void ModemReport::set_has_link_quality() {
1559 _has_bits_[0] |= 0x00000002u;
1561 inline void ModemReport::clear_has_link_quality() {
1562 _has_bits_[0] &= ~0x00000002u;
1566 clear_has_link_quality();
1574 set_has_link_quality();
1575 link_quality_ = value;
1580 #pragma GCC diagnostic pop
1594 namespace protobuf {
1598 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemTransmission_TimeSource>() {
1603 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemTransmission_TransmissionType>() {
1608 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemReport_LinkState>() {
1613 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::ModemReport_LinkQuality>() {
1622 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmodem_5fmessage_2eproto