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;
556 void clear_has_log();
557 void set_has_log_path();
558 void clear_has_log_path();
559 void set_has_log_verbosity();
560 void clear_has_log_verbosity();
561 void set_has_community();
562 void clear_has_community();
563 void set_has_lat_origin();
564 void clear_has_lat_origin();
565 void set_has_lon_origin();
566 void clear_has_lon_origin();
567 void set_has_time_warp_multiplier();
568 void clear_has_time_warp_multiplier();
569 void set_has_server_host();
570 void clear_has_server_host();
571 void set_has_server_port();
572 void clear_has_server_port();
573 void set_has_app_tick();
574 void clear_has_app_tick();
575 void set_has_comm_tick();
576 void clear_has_comm_tick();
577 void set_has_verbosity();
578 void clear_has_verbosity();
579 void set_has_show_gui();
580 void clear_has_show_gui();
581 void set_has_use_binary_protobuf();
582 void clear_has_use_binary_protobuf();
583 void set_has_moos_parser_technique();
584 void clear_has_moos_parser_technique();
586 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
587 ::google::protobuf::internal::HasBits<1> _has_bits_;
588 mutable ::google::protobuf::internal::CachedSize _cached_size_;
593 ::google::protobuf::internal::ArenaStringPtr log_path_;
594 ::google::protobuf::internal::ArenaStringPtr community_;
595 ::google::protobuf::internal::ArenaStringPtr server_host_;
597 bool use_binary_protobuf_;
601 int moos_parser_technique_;
608 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_2eproto::TableStruct;
616 #pragma GCC diagnostic push
617 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
623 return (_has_bits_[0] & 0x00000010u) != 0;
625 inline void GobyMOOSAppConfig_Initializer::set_has_type() {
626 _has_bits_[0] |= 0x00000010u;
628 inline void GobyMOOSAppConfig_Initializer::clear_has_type() {
629 _has_bits_[0] &= ~0x00000010u;
648 return (_has_bits_[0] & 0x00000001u) != 0;
650 inline void GobyMOOSAppConfig_Initializer::set_has_moos_var() {
651 _has_bits_[0] |= 0x00000001u;
653 inline void GobyMOOSAppConfig_Initializer::clear_has_moos_var() {
654 _has_bits_[0] &= ~0x00000001u;
658 clear_has_moos_var();
662 return moos_var_.GetNoArena();
672 moos_var_.SetNoArena(
678 GOOGLE_DCHECK(value != NULL);
686 ::std::string(
reinterpret_cast<const char*
>(value), size));
699 clear_has_moos_var();
706 clear_has_moos_var();
714 return (_has_bits_[0] & 0x00000002u) != 0;
716 inline void GobyMOOSAppConfig_Initializer::set_has_global_cfg_var() {
717 _has_bits_[0] |= 0x00000002u;
719 inline void GobyMOOSAppConfig_Initializer::clear_has_global_cfg_var() {
720 _has_bits_[0] &= ~0x00000002u;
724 clear_has_global_cfg_var();
728 return global_cfg_var_.GetNoArena();
731 set_has_global_cfg_var();
737 set_has_global_cfg_var();
738 global_cfg_var_.SetNoArena(
744 GOOGLE_DCHECK(value != NULL);
745 set_has_global_cfg_var();
750 set_has_global_cfg_var();
752 ::std::string(
reinterpret_cast<const char*
>(value), size));
756 set_has_global_cfg_var();
765 clear_has_global_cfg_var();
770 set_has_global_cfg_var();
772 clear_has_global_cfg_var();
780 return (_has_bits_[0] & 0x00000008u) != 0;
782 inline void GobyMOOSAppConfig_Initializer::set_has_dval() {
783 _has_bits_[0] |= 0x00000008u;
785 inline void GobyMOOSAppConfig_Initializer::clear_has_dval() {
786 _has_bits_[0] &= ~0x00000008u;
804 return (_has_bits_[0] & 0x00000004u) != 0;
806 inline void GobyMOOSAppConfig_Initializer::set_has_sval() {
807 _has_bits_[0] |= 0x00000004u;
809 inline void GobyMOOSAppConfig_Initializer::clear_has_sval() {
810 _has_bits_[0] &= ~0x00000004u;
818 return sval_.GetNoArena();
834 GOOGLE_DCHECK(value != NULL);
842 ::std::string(
reinterpret_cast<const char*
>(value), size));
870 return (_has_bits_[0] & 0x00000020u) != 0;
872 inline void GobyMOOSAppConfig_Initializer::set_has_trim() {
873 _has_bits_[0] |= 0x00000020u;
875 inline void GobyMOOSAppConfig_Initializer::clear_has_trim() {
876 _has_bits_[0] &= ~0x00000020u;
898 return (_has_bits_[0] & 0x00001000u) != 0;
900 inline void GobyMOOSAppConfig::set_has_log() {
901 _has_bits_[0] |= 0x00001000u;
903 inline void GobyMOOSAppConfig::clear_has_log() {
904 _has_bits_[0] &= ~0x00001000u;
922 return (_has_bits_[0] & 0x00000001u) != 0;
924 inline void GobyMOOSAppConfig::set_has_log_path() {
925 _has_bits_[0] |= 0x00000001u;
927 inline void GobyMOOSAppConfig::clear_has_log_path() {
928 _has_bits_[0] &= ~0x00000001u;
932 clear_has_log_path();
936 return log_path_.GetNoArena();
946 log_path_.SetNoArena(
952 GOOGLE_DCHECK(value != NULL);
960 ::std::string(
reinterpret_cast<const char*
>(value), size));
973 clear_has_log_path();
980 clear_has_log_path();
988 return (_has_bits_[0] & 0x00002000u) != 0;
990 inline void GobyMOOSAppConfig::set_has_log_verbosity() {
991 _has_bits_[0] |= 0x00002000u;
993 inline void GobyMOOSAppConfig::clear_has_log_verbosity() {
994 _has_bits_[0] &= ~0x00002000u;
998 clear_has_log_verbosity();
1006 set_has_log_verbosity();
1007 log_verbosity_ = value;
1013 return (_has_bits_[0] & 0x00000002u) != 0;
1015 inline void GobyMOOSAppConfig::set_has_community() {
1016 _has_bits_[0] |= 0x00000002u;
1018 inline void GobyMOOSAppConfig::clear_has_community() {
1019 _has_bits_[0] &= ~0x00000002u;
1023 clear_has_community();
1027 return community_.GetNoArena();
1030 set_has_community();
1036 set_has_community();
1037 community_.SetNoArena(
1043 GOOGLE_DCHECK(value != NULL);
1044 set_has_community();
1049 set_has_community();
1051 ::std::string(
reinterpret_cast<const char*
>(value), size));
1055 set_has_community();
1064 clear_has_community();
1069 set_has_community();
1071 clear_has_community();
1079 return (_has_bits_[0] & 0x00000040u) != 0;
1081 inline void GobyMOOSAppConfig::set_has_lat_origin() {
1082 _has_bits_[0] |= 0x00000040u;
1084 inline void GobyMOOSAppConfig::clear_has_lat_origin() {
1085 _has_bits_[0] &= ~0x00000040u;
1089 clear_has_lat_origin();
1096 set_has_lat_origin();
1097 lat_origin_ = value;
1103 return (_has_bits_[0] & 0x00000080u) != 0;
1105 inline void GobyMOOSAppConfig::set_has_lon_origin() {
1106 _has_bits_[0] |= 0x00000080u;
1108 inline void GobyMOOSAppConfig::clear_has_lon_origin() {
1109 _has_bits_[0] &= ~0x00000080u;
1113 clear_has_lon_origin();
1120 set_has_lon_origin();
1121 lon_origin_ = value;
1127 return (_has_bits_[0] & 0x00004000u) != 0;
1129 inline void GobyMOOSAppConfig::set_has_time_warp_multiplier() {
1130 _has_bits_[0] |= 0x00004000u;
1132 inline void GobyMOOSAppConfig::clear_has_time_warp_multiplier() {
1133 _has_bits_[0] &= ~0x00004000u;
1136 time_warp_multiplier_ = 1u;
1137 clear_has_time_warp_multiplier();
1141 return time_warp_multiplier_;
1144 set_has_time_warp_multiplier();
1145 time_warp_multiplier_ = value;
1151 return (_has_bits_[0] & 0x00000004u) != 0;
1153 inline void GobyMOOSAppConfig::set_has_server_host() {
1154 _has_bits_[0] |= 0x00000004u;
1156 inline void GobyMOOSAppConfig::clear_has_server_host() {
1157 _has_bits_[0] &= ~0x00000004u;
1161 clear_has_server_host();
1165 return server_host_.GetNoArena();
1168 set_has_server_host();
1174 set_has_server_host();
1175 server_host_.SetNoArena(
1181 GOOGLE_DCHECK(value != NULL);
1182 set_has_server_host();
1187 set_has_server_host();
1189 ::std::string(
reinterpret_cast<const char*
>(value), size));
1193 set_has_server_host();
1202 clear_has_server_host();
1207 set_has_server_host();
1209 clear_has_server_host();
1217 return (_has_bits_[0] & 0x00000020u) != 0;
1219 inline void GobyMOOSAppConfig::set_has_server_port() {
1220 _has_bits_[0] |= 0x00000020u;
1222 inline void GobyMOOSAppConfig::clear_has_server_port() {
1223 _has_bits_[0] &= ~0x00000020u;
1227 clear_has_server_port();
1231 return server_port_;
1234 set_has_server_port();
1235 server_port_ = value;
1241 return (_has_bits_[0] & 0x00000200u) != 0;
1243 inline void GobyMOOSAppConfig::set_has_app_tick() {
1244 _has_bits_[0] |= 0x00000200u;
1246 inline void GobyMOOSAppConfig::clear_has_app_tick() {
1247 _has_bits_[0] &= ~0x00000200u;
1251 clear_has_app_tick();
1265 return (_has_bits_[0] & 0x00000400u) != 0;
1267 inline void GobyMOOSAppConfig::set_has_comm_tick() {
1268 _has_bits_[0] |= 0x00000400u;
1270 inline void GobyMOOSAppConfig::clear_has_comm_tick() {
1271 _has_bits_[0] &= ~0x00000400u;
1275 clear_has_comm_tick();
1282 set_has_comm_tick();
1289 return (_has_bits_[0] & 0x00000800u) != 0;
1291 inline void GobyMOOSAppConfig::set_has_verbosity() {
1292 _has_bits_[0] |= 0x00000800u;
1294 inline void GobyMOOSAppConfig::clear_has_verbosity() {
1295 _has_bits_[0] &= ~0x00000800u;
1299 clear_has_verbosity();
1307 set_has_verbosity();
1314 return (_has_bits_[0] & 0x00000008u) != 0;
1316 inline void GobyMOOSAppConfig::set_has_show_gui() {
1317 _has_bits_[0] |= 0x00000008u;
1319 inline void GobyMOOSAppConfig::clear_has_show_gui() {
1320 _has_bits_[0] &= ~0x00000008u;
1324 clear_has_show_gui();
1338 return (_has_bits_[0] & 0x00000010u) != 0;
1340 inline void GobyMOOSAppConfig::set_has_use_binary_protobuf() {
1341 _has_bits_[0] |= 0x00000010u;
1343 inline void GobyMOOSAppConfig::clear_has_use_binary_protobuf() {
1344 _has_bits_[0] &= ~0x00000010u;
1347 use_binary_protobuf_ =
false;
1348 clear_has_use_binary_protobuf();
1352 return use_binary_protobuf_;
1355 set_has_use_binary_protobuf();
1356 use_binary_protobuf_ = value;
1362 return (_has_bits_[0] & 0x00000100u) != 0;
1364 inline void GobyMOOSAppConfig::set_has_moos_parser_technique() {
1365 _has_bits_[0] |= 0x00000100u;
1367 inline void GobyMOOSAppConfig::clear_has_moos_parser_technique() {
1368 _has_bits_[0] &= ~0x00000100u;
1371 moos_parser_technique_ = 5;
1372 clear_has_moos_parser_technique();
1380 set_has_moos_parser_technique();
1381 moos_parser_technique_ = value;
1387 return initializer_.size();
1390 initializer_.Clear();
1394 return initializer_.Mutable(index);
1396 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::GobyMOOSAppConfig_Initializer >*
1399 return &initializer_;
1403 return initializer_.Get(index);
1407 return initializer_.Add();
1409 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::GobyMOOSAppConfig_Initializer >&
1412 return initializer_;
1416 #pragma GCC diagnostic pop
1428 namespace protobuf {
1432 inline const EnumDescriptor* GetEnumDescriptor< ::goby::moos::protobuf::GobyMOOSAppConfig_Initializer_Type>() {
1441 #endif // PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fgoby_5fmoos_5fapp_2eproto