4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgeov_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgeov_5fconfig_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/unknown_field_set.h>
35 #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/si.hpp>
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fgeov_5fconfig_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[1];
62 class GEOVInterfaceConfig;
63 class GEOVInterfaceConfigDefaultTypeInternal;
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
133 return CreateMaybeMessage<GEOVInterfaceConfig>(NULL);
137 return CreateMaybeMessage<GEOVInterfaceConfig>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
240 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
242 const ::goby::middleware::protobuf::AppConfig&
app()
const;
252 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
254 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
284 template<
typename Quantity >
288 template<
typename Quantity >
293 {
return position_report_interval_with_units<boost::units::quantity< position_report_interval_unit,double > >(); };
298 void clear_has_app();
299 void set_has_interprocess();
300 void clear_has_interprocess();
301 void set_has_simulation();
302 void clear_has_simulation();
303 void set_has_mysql_host();
304 void clear_has_mysql_host();
305 void set_has_mysql_user();
306 void clear_has_mysql_user();
307 void set_has_mysql_password();
308 void clear_has_mysql_password();
309 void set_has_mysql_port();
310 void clear_has_mysql_port();
311 void set_has_mysql_core_db_name();
312 void clear_has_mysql_core_db_name();
313 void set_has_position_report_interval();
314 void clear_has_position_report_interval();
317 size_t RequiredFieldsByteSizeFallback()
const;
319 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
320 ::google::protobuf::internal::HasBits<1> _has_bits_;
321 mutable ::google::protobuf::internal::CachedSize _cached_size_;
322 ::google::protobuf::internal::ArenaStringPtr mysql_host_;
323 ::google::protobuf::internal::ArenaStringPtr mysql_user_;
324 ::google::protobuf::internal::ArenaStringPtr mysql_password_;
328 ::google::protobuf::internal::ArenaStringPtr mysql_core_db_name_;
333 double position_report_interval_;
334 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fgeov_5fconfig_2eproto::TableStruct;
342 #pragma GCC diagnostic push
343 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
349 return (_has_bits_[0] & 0x00000010u) != 0;
351 inline void GEOVInterfaceConfig::set_has_app() {
352 _has_bits_[0] |= 0x00000010u;
354 inline void GEOVInterfaceConfig::clear_has_app() {
355 _has_bits_[0] &= ~0x00000010u;
357 inline const ::goby::middleware::protobuf::AppConfig& GEOVInterfaceConfig::_internal_app()
const {
361 const ::goby::middleware::protobuf::AppConfig* p = app_;
376 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
384 if (message_arena == NULL) {
389 if (message_arena != submessage_arena) {
390 app = ::google::protobuf::internal::GetOwnedMessage(
391 message_arena,
app, submessage_arena);
403 return (_has_bits_[0] & 0x00000020u) != 0;
405 inline void GEOVInterfaceConfig::set_has_interprocess() {
406 _has_bits_[0] |= 0x00000020u;
408 inline void GEOVInterfaceConfig::clear_has_interprocess() {
409 _has_bits_[0] &= ~0x00000020u;
411 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& GEOVInterfaceConfig::_internal_interprocess()
const {
412 return *interprocess_;
415 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
422 clear_has_interprocess();
424 interprocess_ = NULL;
428 set_has_interprocess();
429 if (interprocess_ == NULL) {
430 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
434 return interprocess_;
438 if (message_arena == NULL) {
443 if (message_arena != submessage_arena) {
444 interprocess = ::google::protobuf::internal::GetOwnedMessage(
447 set_has_interprocess();
449 clear_has_interprocess();
457 return (_has_bits_[0] & 0x00000040u) != 0;
459 inline void GEOVInterfaceConfig::set_has_simulation() {
460 _has_bits_[0] |= 0x00000040u;
462 inline void GEOVInterfaceConfig::clear_has_simulation() {
463 _has_bits_[0] &= ~0x00000040u;
467 clear_has_simulation();
474 set_has_simulation();
481 return (_has_bits_[0] & 0x00000001u) != 0;
483 inline void GEOVInterfaceConfig::set_has_mysql_host() {
484 _has_bits_[0] |= 0x00000001u;
486 inline void GEOVInterfaceConfig::clear_has_mysql_host() {
487 _has_bits_[0] &= ~0x00000001u;
491 clear_has_mysql_host();
495 return mysql_host_.GetNoArena();
498 set_has_mysql_host();
504 set_has_mysql_host();
505 mysql_host_.SetNoArena(
511 GOOGLE_DCHECK(value != NULL);
512 set_has_mysql_host();
517 set_has_mysql_host();
519 ::std::string(
reinterpret_cast<const char*
>(value), size));
523 set_has_mysql_host();
532 clear_has_mysql_host();
537 set_has_mysql_host();
539 clear_has_mysql_host();
547 return (_has_bits_[0] & 0x00000002u) != 0;
549 inline void GEOVInterfaceConfig::set_has_mysql_user() {
550 _has_bits_[0] |= 0x00000002u;
552 inline void GEOVInterfaceConfig::clear_has_mysql_user() {
553 _has_bits_[0] &= ~0x00000002u;
557 clear_has_mysql_user();
561 return mysql_user_.GetNoArena();
564 set_has_mysql_user();
570 set_has_mysql_user();
571 mysql_user_.SetNoArena(
577 GOOGLE_DCHECK(value != NULL);
578 set_has_mysql_user();
583 set_has_mysql_user();
585 ::std::string(
reinterpret_cast<const char*
>(value), size));
589 set_has_mysql_user();
598 clear_has_mysql_user();
603 set_has_mysql_user();
605 clear_has_mysql_user();
613 return (_has_bits_[0] & 0x00000004u) != 0;
615 inline void GEOVInterfaceConfig::set_has_mysql_password() {
616 _has_bits_[0] |= 0x00000004u;
618 inline void GEOVInterfaceConfig::clear_has_mysql_password() {
619 _has_bits_[0] &= ~0x00000004u;
623 clear_has_mysql_password();
627 return mysql_password_.GetNoArena();
630 set_has_mysql_password();
636 set_has_mysql_password();
637 mysql_password_.SetNoArena(
643 GOOGLE_DCHECK(value != NULL);
644 set_has_mysql_password();
649 set_has_mysql_password();
651 ::std::string(
reinterpret_cast<const char*
>(value), size));
655 set_has_mysql_password();
664 clear_has_mysql_password();
669 set_has_mysql_password();
671 clear_has_mysql_password();
679 return (_has_bits_[0] & 0x00000080u) != 0;
681 inline void GEOVInterfaceConfig::set_has_mysql_port() {
682 _has_bits_[0] |= 0x00000080u;
684 inline void GEOVInterfaceConfig::clear_has_mysql_port() {
685 _has_bits_[0] &= ~0x00000080u;
689 clear_has_mysql_port();
696 set_has_mysql_port();
703 return (_has_bits_[0] & 0x00000008u) != 0;
705 inline void GEOVInterfaceConfig::set_has_mysql_core_db_name() {
706 _has_bits_[0] |= 0x00000008u;
708 inline void GEOVInterfaceConfig::clear_has_mysql_core_db_name() {
709 _has_bits_[0] &= ~0x00000008u;
713 clear_has_mysql_core_db_name();
717 return mysql_core_db_name_.GetNoArena();
720 set_has_mysql_core_db_name();
726 set_has_mysql_core_db_name();
727 mysql_core_db_name_.SetNoArena(
733 GOOGLE_DCHECK(value != NULL);
734 set_has_mysql_core_db_name();
739 set_has_mysql_core_db_name();
741 ::std::string(
reinterpret_cast<const char*
>(value), size));
745 set_has_mysql_core_db_name();
754 clear_has_mysql_core_db_name();
759 set_has_mysql_core_db_name();
761 clear_has_mysql_core_db_name();
769 return (_has_bits_[0] & 0x00000100u) != 0;
771 inline void GEOVInterfaceConfig::set_has_position_report_interval() {
772 _has_bits_[0] |= 0x00000100u;
774 inline void GEOVInterfaceConfig::clear_has_position_report_interval() {
775 _has_bits_[0] &= ~0x00000100u;
778 position_report_interval_ = 1;
779 clear_has_position_report_interval();
783 return position_report_interval_;
786 set_has_position_report_interval();
787 position_report_interval_ = value;
792 #pragma GCC diagnostic pop
804 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgeov_5fconfig_2eproto