4 #ifndef PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_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>
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_2fgoby_5fmoos_5fapp_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[2];
59 class GobyMOOSAppConfig;
60 class GobyMOOSAppConfigDefaultTypeInternal;
62 class GobyMOOSAppConfig_Initializer;
63 class GobyMOOSAppConfig_InitializerDefaultTypeInternal;
89 return ::google::protobuf::internal::NameOfEnum(
94 return ::google::protobuf::internal::ParseNamedEnum<GobyMOOSAppConfig_Initializer_Type>(
113 *
this = ::std::move(from);
117 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
118 if (
this != &from) InternalSwap(&from);
126 return _internal_metadata_.unknown_fields();
129 return _internal_metadata_.mutable_unknown_fields();
132 static const ::google::protobuf::Descriptor*
descriptor();
151 return CreateMaybeMessage<GobyMOOSAppConfig_Initializer>(NULL);
155 return CreateMaybeMessage<GobyMOOSAppConfig_Initializer>(arena);
157 void CopyFrom(const ::google::protobuf::Message& from)
final;
158 void MergeFrom(const ::google::protobuf::Message& from)
final;
166 ::
google::protobuf::io::CodedInputStream* input) final;
168 ::
google::protobuf::io::CodedOutputStream* output) const final;
170 bool deterministic, ::
google::protobuf::uint8* target) const final;
176 void SetCachedSize(
int size)
const final;
179 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
182 inline void* MaybeArenaPtr()
const {
205 static inline const ::google::protobuf::EnumDescriptor*
223 const ::std::string&
moos_var()
const;
253 const ::std::string&
sval()
const;
254 void set_sval(const ::std::string& value);
256 void set_sval(::std::string&& value);
259 void set_sval(
const char* value,
size_t size);
288 void clear_has_type();
289 void set_has_moos_var();
290 void clear_has_moos_var();
291 void set_has_global_cfg_var();
292 void clear_has_global_cfg_var();
294 void clear_has_dval();
296 void clear_has_sval();
298 void clear_has_trim();
301 size_t RequiredFieldsByteSizeFallback()
const;
303 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
304 ::google::protobuf::internal::HasBits<1> _has_bits_;
305 mutable ::google::protobuf::internal::CachedSize _cached_size_;
306 ::google::protobuf::internal::ArenaStringPtr moos_var_;
307 ::google::protobuf::internal::ArenaStringPtr global_cfg_var_;
308 ::google::protobuf::internal::ArenaStringPtr sval_;
312 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_2eproto::TableStruct;
330 *
this = ::std::move(from);
334 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
335 if (
this != &from) InternalSwap(&from);
343 return _internal_metadata_.unknown_fields();
346 return _internal_metadata_.mutable_unknown_fields();
349 static const ::google::protobuf::Descriptor*
descriptor();
368 return CreateMaybeMessage<GobyMOOSAppConfig>(NULL);
372 return CreateMaybeMessage<GobyMOOSAppConfig>(arena);
374 void CopyFrom(const ::google::protobuf::Message& from)
final;
375 void MergeFrom(const ::google::protobuf::Message& from)
final;
383 ::
google::protobuf::io::CodedInputStream* input) final;
385 ::
google::protobuf::io::CodedOutputStream* output) const final;
387 bool deterministic, ::
google::protobuf::uint8* target) const final;
393 void SetCachedSize(
int size)
const final;
396 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
399 inline void* MaybeArenaPtr()
const {
428 const ::std::
string&
log_path() const;
570 void clear_has_log();
571 void set_has_log_path();
572 void clear_has_log_path();
573 void set_has_log_omit_file_timestamp();
574 void clear_has_log_omit_file_timestamp();
575 void set_has_log_omit_latest_symlink();
576 void clear_has_log_omit_latest_symlink();
577 void set_has_log_verbosity();
578 void clear_has_log_verbosity();
579 void set_has_community();
580 void clear_has_community();
581 void set_has_lat_origin();
582 void clear_has_lat_origin();
583 void set_has_lon_origin();
584 void clear_has_lon_origin();
585 void set_has_time_warp_multiplier();
586 void clear_has_time_warp_multiplier();
587 void set_has_server_host();
588 void clear_has_server_host();
589 void set_has_server_port();
590 void clear_has_server_port();
591 void set_has_app_tick();
592 void clear_has_app_tick();
593 void set_has_comm_tick();
594 void clear_has_comm_tick();
595 void set_has_verbosity();
596 void clear_has_verbosity();
597 void set_has_show_gui();
598 void clear_has_show_gui();
599 void set_has_use_binary_protobuf();
600 void clear_has_use_binary_protobuf();
601 void set_has_moos_parser_technique();
602 void clear_has_moos_parser_technique();
604 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
605 ::google::protobuf::internal::HasBits<1> _has_bits_;
606 mutable ::google::protobuf::internal::CachedSize _cached_size_;
611 ::google::protobuf::internal::ArenaStringPtr log_path_;
612 ::google::protobuf::internal::ArenaStringPtr community_;
613 ::google::protobuf::internal::ArenaStringPtr server_host_;
614 bool log_omit_file_timestamp_;
615 bool log_omit_latest_symlink_;
617 bool use_binary_protobuf_;
621 int moos_parser_technique_;
628 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_2eproto::TableStruct;
636 #pragma GCC diagnostic push
637 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
643 return (_has_bits_[0] & 0x00000010u) != 0;
645 inline void GobyMOOSAppConfig_Initializer::set_has_type() {
646 _has_bits_[0] |= 0x00000010u;
648 inline void GobyMOOSAppConfig_Initializer::clear_has_type() {
649 _has_bits_[0] &= ~0x00000010u;
668 return (_has_bits_[0] & 0x00000001u) != 0;
670 inline void GobyMOOSAppConfig_Initializer::set_has_moos_var() {
671 _has_bits_[0] |= 0x00000001u;
673 inline void GobyMOOSAppConfig_Initializer::clear_has_moos_var() {
674 _has_bits_[0] &= ~0x00000001u;
678 clear_has_moos_var();
682 return moos_var_.GetNoArena();
692 moos_var_.SetNoArena(
698 GOOGLE_DCHECK(value != NULL);
706 ::std::string(
reinterpret_cast<const char*
>(value), size));
719 clear_has_moos_var();
726 clear_has_moos_var();
734 return (_has_bits_[0] & 0x00000002u) != 0;
736 inline void GobyMOOSAppConfig_Initializer::set_has_global_cfg_var() {
737 _has_bits_[0] |= 0x00000002u;
739 inline void GobyMOOSAppConfig_Initializer::clear_has_global_cfg_var() {
740 _has_bits_[0] &= ~0x00000002u;
744 clear_has_global_cfg_var();
748 return global_cfg_var_.GetNoArena();
751 set_has_global_cfg_var();
757 set_has_global_cfg_var();
758 global_cfg_var_.SetNoArena(
764 GOOGLE_DCHECK(value != NULL);
765 set_has_global_cfg_var();
770 set_has_global_cfg_var();
772 ::std::string(
reinterpret_cast<const char*
>(value), size));
776 set_has_global_cfg_var();
785 clear_has_global_cfg_var();
790 set_has_global_cfg_var();
792 clear_has_global_cfg_var();
800 return (_has_bits_[0] & 0x00000008u) != 0;
802 inline void GobyMOOSAppConfig_Initializer::set_has_dval() {
803 _has_bits_[0] |= 0x00000008u;
805 inline void GobyMOOSAppConfig_Initializer::clear_has_dval() {
806 _has_bits_[0] &= ~0x00000008u;
824 return (_has_bits_[0] & 0x00000004u) != 0;
826 inline void GobyMOOSAppConfig_Initializer::set_has_sval() {
827 _has_bits_[0] |= 0x00000004u;
829 inline void GobyMOOSAppConfig_Initializer::clear_has_sval() {
830 _has_bits_[0] &= ~0x00000004u;
838 return sval_.GetNoArena();
854 GOOGLE_DCHECK(value != NULL);
862 ::std::string(
reinterpret_cast<const char*
>(value), size));
890 return (_has_bits_[0] & 0x00000020u) != 0;
892 inline void GobyMOOSAppConfig_Initializer::set_has_trim() {
893 _has_bits_[0] |= 0x00000020u;
895 inline void GobyMOOSAppConfig_Initializer::clear_has_trim() {
896 _has_bits_[0] &= ~0x00000020u;
918 return (_has_bits_[0] & 0x00004000u) != 0;
920 inline void GobyMOOSAppConfig::set_has_log() {
921 _has_bits_[0] |= 0x00004000u;
923 inline void GobyMOOSAppConfig::clear_has_log() {
924 _has_bits_[0] &= ~0x00004000u;
942 return (_has_bits_[0] & 0x00000001u) != 0;
944 inline void GobyMOOSAppConfig::set_has_log_path() {
945 _has_bits_[0] |= 0x00000001u;
947 inline void GobyMOOSAppConfig::clear_has_log_path() {
948 _has_bits_[0] &= ~0x00000001u;
952 clear_has_log_path();
956 return log_path_.GetNoArena();
966 log_path_.SetNoArena(
972 GOOGLE_DCHECK(value != NULL);
980 ::std::string(
reinterpret_cast<const char*
>(value), size));
993 clear_has_log_path();
1000 clear_has_log_path();
1008 return (_has_bits_[0] & 0x00000008u) != 0;
1010 inline void GobyMOOSAppConfig::set_has_log_omit_file_timestamp() {
1011 _has_bits_[0] |= 0x00000008u;
1013 inline void GobyMOOSAppConfig::clear_has_log_omit_file_timestamp() {
1014 _has_bits_[0] &= ~0x00000008u;
1017 log_omit_file_timestamp_ =
false;
1018 clear_has_log_omit_file_timestamp();
1022 return log_omit_file_timestamp_;
1025 set_has_log_omit_file_timestamp();
1026 log_omit_file_timestamp_ = value;
1032 return (_has_bits_[0] & 0x00000010u) != 0;
1034 inline void GobyMOOSAppConfig::set_has_log_omit_latest_symlink() {
1035 _has_bits_[0] |= 0x00000010u;
1037 inline void GobyMOOSAppConfig::clear_has_log_omit_latest_symlink() {
1038 _has_bits_[0] &= ~0x00000010u;
1041 log_omit_latest_symlink_ =
false;
1042 clear_has_log_omit_latest_symlink();
1046 return log_omit_latest_symlink_;
1049 set_has_log_omit_latest_symlink();
1050 log_omit_latest_symlink_ = value;
1056 return (_has_bits_[0] & 0x00008000u) != 0;
1058 inline void GobyMOOSAppConfig::set_has_log_verbosity() {
1059 _has_bits_[0] |= 0x00008000u;
1061 inline void GobyMOOSAppConfig::clear_has_log_verbosity() {
1062 _has_bits_[0] &= ~0x00008000u;
1066 clear_has_log_verbosity();
1074 set_has_log_verbosity();
1075 log_verbosity_ = value;
1081 return (_has_bits_[0] & 0x00000002u) != 0;
1083 inline void GobyMOOSAppConfig::set_has_community() {
1084 _has_bits_[0] |= 0x00000002u;
1086 inline void GobyMOOSAppConfig::clear_has_community() {
1087 _has_bits_[0] &= ~0x00000002u;
1091 clear_has_community();
1095 return community_.GetNoArena();
1098 set_has_community();
1104 set_has_community();
1105 community_.SetNoArena(
1111 GOOGLE_DCHECK(value != NULL);
1112 set_has_community();
1117 set_has_community();
1119 ::std::string(
reinterpret_cast<const char*
>(value), size));
1123 set_has_community();
1132 clear_has_community();
1137 set_has_community();
1139 clear_has_community();
1147 return (_has_bits_[0] & 0x00000100u) != 0;
1149 inline void GobyMOOSAppConfig::set_has_lat_origin() {
1150 _has_bits_[0] |= 0x00000100u;
1152 inline void GobyMOOSAppConfig::clear_has_lat_origin() {
1153 _has_bits_[0] &= ~0x00000100u;
1157 clear_has_lat_origin();
1164 set_has_lat_origin();
1165 lat_origin_ = value;
1171 return (_has_bits_[0] & 0x00000200u) != 0;
1173 inline void GobyMOOSAppConfig::set_has_lon_origin() {
1174 _has_bits_[0] |= 0x00000200u;
1176 inline void GobyMOOSAppConfig::clear_has_lon_origin() {
1177 _has_bits_[0] &= ~0x00000200u;
1181 clear_has_lon_origin();
1188 set_has_lon_origin();
1189 lon_origin_ = value;
1195 return (_has_bits_[0] & 0x00010000u) != 0;
1197 inline void GobyMOOSAppConfig::set_has_time_warp_multiplier() {
1198 _has_bits_[0] |= 0x00010000u;
1200 inline void GobyMOOSAppConfig::clear_has_time_warp_multiplier() {
1201 _has_bits_[0] &= ~0x00010000u;
1204 time_warp_multiplier_ = 1u;
1205 clear_has_time_warp_multiplier();
1209 return time_warp_multiplier_;
1212 set_has_time_warp_multiplier();
1213 time_warp_multiplier_ = value;
1219 return (_has_bits_[0] & 0x00000004u) != 0;
1221 inline void GobyMOOSAppConfig::set_has_server_host() {
1222 _has_bits_[0] |= 0x00000004u;
1224 inline void GobyMOOSAppConfig::clear_has_server_host() {
1225 _has_bits_[0] &= ~0x00000004u;
1229 clear_has_server_host();
1233 return server_host_.GetNoArena();
1236 set_has_server_host();
1242 set_has_server_host();
1243 server_host_.SetNoArena(
1249 GOOGLE_DCHECK(value != NULL);
1250 set_has_server_host();
1255 set_has_server_host();
1257 ::std::string(
reinterpret_cast<const char*
>(value), size));
1261 set_has_server_host();
1270 clear_has_server_host();
1275 set_has_server_host();
1277 clear_has_server_host();
1285 return (_has_bits_[0] & 0x00000080u) != 0;
1287 inline void GobyMOOSAppConfig::set_has_server_port() {
1288 _has_bits_[0] |= 0x00000080u;
1290 inline void GobyMOOSAppConfig::clear_has_server_port() {
1291 _has_bits_[0] &= ~0x00000080u;
1295 clear_has_server_port();
1299 return server_port_;
1302 set_has_server_port();
1303 server_port_ = value;
1309 return (_has_bits_[0] & 0x00000800u) != 0;
1311 inline void GobyMOOSAppConfig::set_has_app_tick() {
1312 _has_bits_[0] |= 0x00000800u;
1314 inline void GobyMOOSAppConfig::clear_has_app_tick() {
1315 _has_bits_[0] &= ~0x00000800u;
1319 clear_has_app_tick();
1333 return (_has_bits_[0] & 0x00001000u) != 0;
1335 inline void GobyMOOSAppConfig::set_has_comm_tick() {
1336 _has_bits_[0] |= 0x00001000u;
1338 inline void GobyMOOSAppConfig::clear_has_comm_tick() {
1339 _has_bits_[0] &= ~0x00001000u;
1343 clear_has_comm_tick();
1350 set_has_comm_tick();
1357 return (_has_bits_[0] & 0x00002000u) != 0;
1359 inline void GobyMOOSAppConfig::set_has_verbosity() {
1360 _has_bits_[0] |= 0x00002000u;
1362 inline void GobyMOOSAppConfig::clear_has_verbosity() {
1363 _has_bits_[0] &= ~0x00002000u;
1367 clear_has_verbosity();
1375 set_has_verbosity();
1382 return (_has_bits_[0] & 0x00000020u) != 0;
1384 inline void GobyMOOSAppConfig::set_has_show_gui() {
1385 _has_bits_[0] |= 0x00000020u;
1387 inline void GobyMOOSAppConfig::clear_has_show_gui() {
1388 _has_bits_[0] &= ~0x00000020u;
1392 clear_has_show_gui();
1406 return (_has_bits_[0] & 0x00000040u) != 0;
1408 inline void GobyMOOSAppConfig::set_has_use_binary_protobuf() {
1409 _has_bits_[0] |= 0x00000040u;
1411 inline void GobyMOOSAppConfig::clear_has_use_binary_protobuf() {
1412 _has_bits_[0] &= ~0x00000040u;
1415 use_binary_protobuf_ =
false;
1416 clear_has_use_binary_protobuf();
1420 return use_binary_protobuf_;
1423 set_has_use_binary_protobuf();
1424 use_binary_protobuf_ = value;
1430 return (_has_bits_[0] & 0x00000400u) != 0;
1432 inline void GobyMOOSAppConfig::set_has_moos_parser_technique() {
1433 _has_bits_[0] |= 0x00000400u;
1435 inline void GobyMOOSAppConfig::clear_has_moos_parser_technique() {
1436 _has_bits_[0] &= ~0x00000400u;
1439 moos_parser_technique_ = 5;
1440 clear_has_moos_parser_technique();
1448 set_has_moos_parser_technique();
1449 moos_parser_technique_ = value;
1455 return initializer_.size();
1458 initializer_.Clear();
1462 return initializer_.Mutable(index);
1464 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::GobyMOOSAppConfig_Initializer >*
1467 return &initializer_;
1471 return initializer_.Get(index);
1475 return initializer_.Add();
1477 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::GobyMOOSAppConfig_Initializer >&
1480 return initializer_;
1484 #pragma GCC diagnostic pop
1496 namespace protobuf {
1500 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::GobyMOOSAppConfig_Initializer_Type>() {
1509 #endif // PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_2eproto