4 #ifndef PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_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>
36 #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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto
47 static const ::google::protobuf::internal::ParseTableField
entries[];
48 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
49 static const ::google::protobuf::internal::ParseTable
schema[3];
61 class ConfigDefaultTypeInternal;
64 class MicroModemMimicDefaultTypeInternal;
67 class TransmissionDefaultTypeInternal;
96 return ::google::protobuf::internal::NameOfEnum(
101 return ::google::protobuf::internal::ParseNamedEnum<TransmissionType>(
120 *
this = ::std::move(from);
124 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
125 if (
this != &from) InternalSwap(&from);
133 return _internal_metadata_.unknown_fields();
136 return _internal_metadata_.mutable_unknown_fields();
139 static const ::google::protobuf::Descriptor*
descriptor();
158 return CreateMaybeMessage<MicroModemMimic>(NULL);
162 return CreateMaybeMessage<MicroModemMimic>(arena);
164 void CopyFrom(const ::google::protobuf::Message& from)
final;
165 void MergeFrom(const ::google::protobuf::Message& from)
final;
173 ::
google::protobuf::io::CodedInputStream* input) final;
175 ::
google::protobuf::io::CodedOutputStream* output) const final;
177 bool deterministic, ::
google::protobuf::uint8* target) const final;
183 void SetCachedSize(
int size)
const final;
186 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
189 inline void* MaybeArenaPtr()
const {
232 void set_has_range_request_var();
233 void clear_has_range_request_var();
234 void set_has_range_report_var();
235 void clear_has_range_report_var();
237 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
238 ::google::protobuf::internal::HasBits<1> _has_bits_;
239 mutable ::google::protobuf::internal::CachedSize _cached_size_;
243 ::google::protobuf::internal::ArenaStringPtr range_request_var_;
247 ::google::protobuf::internal::ArenaStringPtr range_report_var_;
248 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto::TableStruct;
266 *
this = ::std::move(from);
270 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
271 if (
this != &from) InternalSwap(&from);
279 return _internal_metadata_.unknown_fields();
282 return _internal_metadata_.mutable_unknown_fields();
285 static const ::google::protobuf::Descriptor*
descriptor();
290 return reinterpret_cast<const Config*
>(
304 return CreateMaybeMessage<Config>(NULL);
308 return CreateMaybeMessage<Config>(arena);
310 void CopyFrom(const ::google::protobuf::Message& from)
final;
311 void MergeFrom(const ::google::protobuf::Message& from)
final;
319 ::
google::protobuf::io::CodedInputStream* input) final;
321 ::
google::protobuf::io::CodedOutputStream* output) const final;
323 bool deterministic, ::
google::protobuf::uint8* target) const final;
329 void SetCachedSize(
int size)
const final;
330 void InternalSwap(
Config* other);
332 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
335 inline void* MaybeArenaPtr()
const {
438 const ::goby::moos::ufld::protobuf::MicroModemMimic& _internal_micromodem_mimic()
const;
440 const ::goby::moos::ufld::protobuf::MicroModemMimic&
micromodem_mimic()
const;
454 void set_has_moos_server();
455 void clear_has_moos_server();
456 void set_has_moos_port();
457 void clear_has_moos_port();
458 void set_has_incoming_moos_var();
459 void clear_has_incoming_moos_var();
460 void set_has_outgoing_moos_var();
461 void clear_has_outgoing_moos_var();
462 void set_has_ufield_outgoing_moos_var();
463 void clear_has_ufield_outgoing_moos_var();
464 void set_has_modem_id_lookup_path();
465 void clear_has_modem_id_lookup_path();
466 void set_has_micromodem_mimic();
467 void clear_has_micromodem_mimic();
469 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
470 ::google::protobuf::internal::HasBits<1> _has_bits_;
471 mutable ::google::protobuf::internal::CachedSize _cached_size_;
476 ::google::protobuf::internal::ArenaStringPtr moos_server_;
480 ::google::protobuf::internal::ArenaStringPtr incoming_moos_var_;
484 ::google::protobuf::internal::ArenaStringPtr outgoing_moos_var_;
488 ::google::protobuf::internal::ArenaStringPtr ufield_outgoing_moos_var_;
489 ::google::protobuf::internal::ArenaStringPtr modem_id_lookup_path_;
492 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto::TableStruct;
510 *
this = ::std::move(from);
514 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
515 if (
this != &from) InternalSwap(&from);
523 return _internal_metadata_.unknown_fields();
526 return _internal_metadata_.mutable_unknown_fields();
529 static const ::google::protobuf::Descriptor*
descriptor();
548 return CreateMaybeMessage<Transmission>(NULL);
552 return CreateMaybeMessage<Transmission>(arena);
554 void CopyFrom(const ::google::protobuf::Message& from)
final;
555 void MergeFrom(const ::google::protobuf::Message& from)
final;
563 ::
google::protobuf::io::CodedInputStream* input) final;
565 ::
google::protobuf::io::CodedOutputStream* output) const final;
567 bool deterministic, ::
google::protobuf::uint8* target) const final;
573 void SetCachedSize(
int size)
const final;
576 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
579 inline void* MaybeArenaPtr()
const {
614 void clear_has_type();
615 void set_has_poll_src();
616 void clear_has_poll_src();
617 void set_has_poll_dest();
618 void clear_has_poll_dest();
620 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
621 ::
google::protobuf::internal::HasBits<1> _has_bits_;
622 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
631 extern ::
google::protobuf::internal::ExtensionIdentifier< ::
goby::acomms::protobuf::DriverConfig,
632 ::
google::protobuf::internal::MessageTypeTraits< ::
goby::moos::ufld::protobuf::
Config >, 11, false >
635 extern ::
google::protobuf::internal::ExtensionIdentifier< ::
goby::acomms::protobuf::ModemTransmission,
636 ::
google::protobuf::internal::MessageTypeTraits< ::
goby::moos::ufld::protobuf::
Transmission >, 11, false >
642 #pragma GCC diagnostic push
643 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
649 return (_has_bits_[0] & 0x00000001u) != 0;
651 inline void MicroModemMimic::set_has_range_request_var() {
652 _has_bits_[0] |= 0x00000001u;
654 inline void MicroModemMimic::clear_has_range_request_var() {
655 _has_bits_[0] &= ~0x00000001u;
659 clear_has_range_request_var();
663 return range_request_var_.GetNoArena();
666 set_has_range_request_var();
672 set_has_range_request_var();
673 range_request_var_.SetNoArena(
679 GOOGLE_DCHECK(value != NULL);
680 set_has_range_request_var();
685 set_has_range_request_var();
687 ::std::string(
reinterpret_cast<const char*
>(value), size));
691 set_has_range_request_var();
697 if (!has_range_request_var()) {
700 clear_has_range_request_var();
704 if (range_request_var != NULL) {
705 set_has_range_request_var();
707 clear_has_range_request_var();
715 return (_has_bits_[0] & 0x00000002u) != 0;
717 inline void MicroModemMimic::set_has_range_report_var() {
718 _has_bits_[0] |= 0x00000002u;
720 inline void MicroModemMimic::clear_has_range_report_var() {
721 _has_bits_[0] &= ~0x00000002u;
725 clear_has_range_report_var();
729 return range_report_var_.GetNoArena();
732 set_has_range_report_var();
738 set_has_range_report_var();
739 range_report_var_.SetNoArena(
745 GOOGLE_DCHECK(value != NULL);
746 set_has_range_report_var();
751 set_has_range_report_var();
753 ::std::string(
reinterpret_cast<const char*
>(value), size));
757 set_has_range_report_var();
763 if (!has_range_report_var()) {
766 clear_has_range_report_var();
770 if (range_report_var != NULL) {
771 set_has_range_report_var();
773 clear_has_range_report_var();
785 return (_has_bits_[0] & 0x00000001u) != 0;
787 inline void Config::set_has_moos_server() {
788 _has_bits_[0] |= 0x00000001u;
790 inline void Config::clear_has_moos_server() {
791 _has_bits_[0] &= ~0x00000001u;
795 clear_has_moos_server();
799 return moos_server_.GetNoArena();
802 set_has_moos_server();
808 set_has_moos_server();
809 moos_server_.SetNoArena(
815 GOOGLE_DCHECK(value != NULL);
816 set_has_moos_server();
821 set_has_moos_server();
823 ::std::string(
reinterpret_cast<const char*
>(value), size));
827 set_has_moos_server();
833 if (!has_moos_server()) {
836 clear_has_moos_server();
840 if (moos_server != NULL) {
841 set_has_moos_server();
843 clear_has_moos_server();
851 return (_has_bits_[0] & 0x00000040u) != 0;
853 inline void Config::set_has_moos_port() {
854 _has_bits_[0] |= 0x00000040u;
856 inline void Config::clear_has_moos_port() {
857 _has_bits_[0] &= ~0x00000040u;
861 clear_has_moos_port();
875 return (_has_bits_[0] & 0x00000002u) != 0;
877 inline void Config::set_has_incoming_moos_var() {
878 _has_bits_[0] |= 0x00000002u;
880 inline void Config::clear_has_incoming_moos_var() {
881 _has_bits_[0] &= ~0x00000002u;
885 clear_has_incoming_moos_var();
889 return incoming_moos_var_.GetNoArena();
892 set_has_incoming_moos_var();
898 set_has_incoming_moos_var();
899 incoming_moos_var_.SetNoArena(
905 GOOGLE_DCHECK(value != NULL);
906 set_has_incoming_moos_var();
911 set_has_incoming_moos_var();
913 ::std::string(
reinterpret_cast<const char*
>(value), size));
917 set_has_incoming_moos_var();
923 if (!has_incoming_moos_var()) {
926 clear_has_incoming_moos_var();
930 if (incoming_moos_var != NULL) {
931 set_has_incoming_moos_var();
933 clear_has_incoming_moos_var();
941 return (_has_bits_[0] & 0x00000004u) != 0;
943 inline void Config::set_has_outgoing_moos_var() {
944 _has_bits_[0] |= 0x00000004u;
946 inline void Config::clear_has_outgoing_moos_var() {
947 _has_bits_[0] &= ~0x00000004u;
951 clear_has_outgoing_moos_var();
955 return outgoing_moos_var_.GetNoArena();
958 set_has_outgoing_moos_var();
964 set_has_outgoing_moos_var();
965 outgoing_moos_var_.SetNoArena(
971 GOOGLE_DCHECK(value != NULL);
972 set_has_outgoing_moos_var();
977 set_has_outgoing_moos_var();
979 ::std::string(
reinterpret_cast<const char*
>(value), size));
983 set_has_outgoing_moos_var();
989 if (!has_outgoing_moos_var()) {
992 clear_has_outgoing_moos_var();
996 if (outgoing_moos_var != NULL) {
997 set_has_outgoing_moos_var();
999 clear_has_outgoing_moos_var();
1007 return (_has_bits_[0] & 0x00000008u) != 0;
1009 inline void Config::set_has_ufield_outgoing_moos_var() {
1010 _has_bits_[0] |= 0x00000008u;
1012 inline void Config::clear_has_ufield_outgoing_moos_var() {
1013 _has_bits_[0] &= ~0x00000008u;
1017 clear_has_ufield_outgoing_moos_var();
1021 return ufield_outgoing_moos_var_.GetNoArena();
1024 set_has_ufield_outgoing_moos_var();
1030 set_has_ufield_outgoing_moos_var();
1031 ufield_outgoing_moos_var_.SetNoArena(
1037 GOOGLE_DCHECK(value != NULL);
1038 set_has_ufield_outgoing_moos_var();
1043 set_has_ufield_outgoing_moos_var();
1045 ::std::string(
reinterpret_cast<const char*
>(value), size));
1049 set_has_ufield_outgoing_moos_var();
1055 if (!has_ufield_outgoing_moos_var()) {
1058 clear_has_ufield_outgoing_moos_var();
1062 if (ufield_outgoing_moos_var != NULL) {
1063 set_has_ufield_outgoing_moos_var();
1065 clear_has_ufield_outgoing_moos_var();
1073 return rate_to_bytes_.size();
1076 rate_to_bytes_.Clear();
1080 return rate_to_bytes_.Get(index);
1083 rate_to_bytes_.Set(index, value);
1087 rate_to_bytes_.Add(value);
1090 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1093 return rate_to_bytes_;
1095 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1098 return &rate_to_bytes_;
1103 return (_has_bits_[0] & 0x00000010u) != 0;
1105 inline void Config::set_has_modem_id_lookup_path() {
1106 _has_bits_[0] |= 0x00000010u;
1108 inline void Config::clear_has_modem_id_lookup_path() {
1109 _has_bits_[0] &= ~0x00000010u;
1113 clear_has_modem_id_lookup_path();
1117 return modem_id_lookup_path_.GetNoArena();
1120 set_has_modem_id_lookup_path();
1126 set_has_modem_id_lookup_path();
1127 modem_id_lookup_path_.SetNoArena(
1133 GOOGLE_DCHECK(value != NULL);
1134 set_has_modem_id_lookup_path();
1139 set_has_modem_id_lookup_path();
1141 ::std::string(
reinterpret_cast<const char*
>(value), size));
1145 set_has_modem_id_lookup_path();
1151 if (!has_modem_id_lookup_path()) {
1154 clear_has_modem_id_lookup_path();
1158 if (modem_id_lookup_path != NULL) {
1159 set_has_modem_id_lookup_path();
1161 clear_has_modem_id_lookup_path();
1169 return (_has_bits_[0] & 0x00000020u) != 0;
1171 inline void Config::set_has_micromodem_mimic() {
1172 _has_bits_[0] |= 0x00000020u;
1174 inline void Config::clear_has_micromodem_mimic() {
1175 _has_bits_[0] &= ~0x00000020u;
1178 if (micromodem_mimic_ != NULL) micromodem_mimic_->Clear();
1179 clear_has_micromodem_mimic();
1181 inline const ::goby::moos::ufld::protobuf::MicroModemMimic& Config::_internal_micromodem_mimic()
const {
1182 return *micromodem_mimic_;
1185 const ::goby::moos::ufld::protobuf::MicroModemMimic* p = micromodem_mimic_;
1192 clear_has_micromodem_mimic();
1194 micromodem_mimic_ = NULL;
1198 set_has_micromodem_mimic();
1199 if (micromodem_mimic_ == NULL) {
1200 auto* p = CreateMaybeMessage<::goby::moos::ufld::protobuf::MicroModemMimic>(GetArenaNoVirtual());
1201 micromodem_mimic_ = p;
1204 return micromodem_mimic_;
1208 if (message_arena == NULL) {
1209 delete micromodem_mimic_;
1211 if (micromodem_mimic) {
1213 if (message_arena != submessage_arena) {
1214 micromodem_mimic = ::google::protobuf::internal::GetOwnedMessage(
1215 message_arena, micromodem_mimic, submessage_arena);
1217 set_has_micromodem_mimic();
1219 clear_has_micromodem_mimic();
1221 micromodem_mimic_ = micromodem_mimic;
1231 return (_has_bits_[0] & 0x00000001u) != 0;
1233 inline void Transmission::set_has_type() {
1234 _has_bits_[0] |= 0x00000001u;
1236 inline void Transmission::clear_has_type() {
1237 _has_bits_[0] &= ~0x00000001u;
1256 return (_has_bits_[0] & 0x00000002u) != 0;
1258 inline void Transmission::set_has_poll_src() {
1259 _has_bits_[0] |= 0x00000002u;
1261 inline void Transmission::clear_has_poll_src() {
1262 _has_bits_[0] &= ~0x00000002u;
1266 clear_has_poll_src();
1280 return (_has_bits_[0] & 0x00000004u) != 0;
1282 inline void Transmission::set_has_poll_dest() {
1283 _has_bits_[0] |= 0x00000004u;
1285 inline void Transmission::clear_has_poll_dest() {
1286 _has_bits_[0] &= ~0x00000004u;
1290 clear_has_poll_dest();
1297 set_has_poll_dest();
1303 #pragma GCC diagnostic pop
1318 namespace protobuf {
1322 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::ufld::protobuf::TransmissionType>() {
1331 #endif // PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fufield_5fsim_5fdriver_2eproto