4 #ifndef PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fmoos_5fgateway_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fmoos_5fgateway_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>
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_2fmoos_5fgateway_5fconfig_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];
60 class GobyMOOSGatewayConfig;
61 class GobyMOOSGatewayConfigDefaultTypeInternal;
63 class GobyMOOSGatewayConfig_MOOSConfig;
64 class GobyMOOSGatewayConfig_MOOSConfigDefaultTypeInternal;
97 *
this = ::std::move(from);
101 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
102 if (
this != &from) InternalSwap(&from);
110 return _internal_metadata_.unknown_fields();
113 return _internal_metadata_.mutable_unknown_fields();
116 static const ::google::protobuf::Descriptor*
descriptor();
135 return CreateMaybeMessage<GobyMOOSGatewayConfig_MOOSConfig>(NULL);
139 return CreateMaybeMessage<GobyMOOSGatewayConfig_MOOSConfig>(arena);
141 void CopyFrom(const ::google::protobuf::Message& from)
final;
142 void MergeFrom(const ::google::protobuf::Message& from)
final;
150 ::
google::protobuf::io::CodedInputStream* input) final;
152 ::
google::protobuf::io::CodedOutputStream* output) const final;
154 bool deterministic, ::
google::protobuf::uint8* target) const final;
160 void SetCachedSize(
int size)
const final;
163 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
166 inline void* MaybeArenaPtr()
const {
181 const ::std::
string&
server() const;
187 void set_server(
const char* value,
size_t size);
215 void set_has_server();
216 void clear_has_server();
218 void clear_has_port();
219 void set_has_use_binary_protobuf();
220 void clear_has_use_binary_protobuf();
221 void set_has_moos_parser_technique();
222 void clear_has_moos_parser_technique();
224 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
225 ::google::protobuf::internal::HasBits<1> _has_bits_;
226 mutable ::google::protobuf::internal::CachedSize _cached_size_;
230 ::google::protobuf::internal::ArenaStringPtr server_;
231 bool use_binary_protobuf_;
233 int moos_parser_technique_;
234 friend struct ::protobuf_goby_2fmoos_2fprotobuf_2fmoos_5fgateway_5fconfig_2eproto::TableStruct;
252 *
this = ::std::move(from);
256 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
257 if (
this != &from) InternalSwap(&from);
265 return _internal_metadata_.unknown_fields();
268 return _internal_metadata_.mutable_unknown_fields();
271 static const ::google::protobuf::Descriptor*
descriptor();
290 return CreateMaybeMessage<GobyMOOSGatewayConfig>(NULL);
294 return CreateMaybeMessage<GobyMOOSGatewayConfig>(arena);
296 void CopyFrom(const ::google::protobuf::Message& from)
final;
297 void MergeFrom(const ::google::protobuf::Message& from)
final;
305 ::
google::protobuf::io::CodedInputStream* input) final;
307 ::
google::protobuf::io::CodedOutputStream* output) const final;
309 bool deterministic, ::
google::protobuf::uint8* target) const final;
315 void SetCachedSize(
int size)
const final;
318 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
321 inline void* MaybeArenaPtr()
const {
339 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
341 const ::
goby::middleware::protobuf::AppConfig&
app() const;
351 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
353 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
381 void clear_has_app();
382 void set_has_interprocess();
383 void clear_has_interprocess();
385 void clear_has_moos();
386 void set_has_poll_frequency();
387 void clear_has_poll_frequency();
389 ::
google::protobuf::internal::ExtensionSet _extensions_;
391 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
392 ::
google::protobuf::internal::HasBits<1> _has_bits_;
393 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
394 ::
goby::middleware::protobuf::AppConfig* app_;
395 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
397 float poll_frequency_;
406 #pragma GCC diagnostic push
407 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
413 return (_has_bits_[0] & 0x00000001u) != 0;
415 inline void GobyMOOSGatewayConfig_MOOSConfig::set_has_server() {
416 _has_bits_[0] |= 0x00000001u;
418 inline void GobyMOOSGatewayConfig_MOOSConfig::clear_has_server() {
419 _has_bits_[0] &= ~0x00000001u;
427 return server_.GetNoArena();
443 GOOGLE_DCHECK(value != NULL);
451 ::std::string(
reinterpret_cast<const char*
>(value), size));
468 if (server != NULL) {
479 return (_has_bits_[0] & 0x00000004u) != 0;
481 inline void GobyMOOSGatewayConfig_MOOSConfig::set_has_port() {
482 _has_bits_[0] |= 0x00000004u;
484 inline void GobyMOOSGatewayConfig_MOOSConfig::clear_has_port() {
485 _has_bits_[0] &= ~0x00000004u;
503 return (_has_bits_[0] & 0x00000002u) != 0;
505 inline void GobyMOOSGatewayConfig_MOOSConfig::set_has_use_binary_protobuf() {
506 _has_bits_[0] |= 0x00000002u;
508 inline void GobyMOOSGatewayConfig_MOOSConfig::clear_has_use_binary_protobuf() {
509 _has_bits_[0] &= ~0x00000002u;
512 use_binary_protobuf_ =
false;
513 clear_has_use_binary_protobuf();
517 return use_binary_protobuf_;
520 set_has_use_binary_protobuf();
521 use_binary_protobuf_ = value;
527 return (_has_bits_[0] & 0x00000008u) != 0;
529 inline void GobyMOOSGatewayConfig_MOOSConfig::set_has_moos_parser_technique() {
530 _has_bits_[0] |= 0x00000008u;
532 inline void GobyMOOSGatewayConfig_MOOSConfig::clear_has_moos_parser_technique() {
533 _has_bits_[0] &= ~0x00000008u;
536 moos_parser_technique_ = 5;
537 clear_has_moos_parser_technique();
545 set_has_moos_parser_technique();
546 moos_parser_technique_ = value;
556 return (_has_bits_[0] & 0x00000001u) != 0;
558 inline void GobyMOOSGatewayConfig::set_has_app() {
559 _has_bits_[0] |= 0x00000001u;
561 inline void GobyMOOSGatewayConfig::clear_has_app() {
562 _has_bits_[0] &= ~0x00000001u;
564 inline const ::goby::middleware::protobuf::AppConfig& GobyMOOSGatewayConfig::_internal_app()
const {
568 const ::goby::middleware::protobuf::AppConfig* p = app_;
583 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
591 if (message_arena == NULL) {
596 if (message_arena != submessage_arena) {
597 app = ::google::protobuf::internal::GetOwnedMessage(
598 message_arena,
app, submessage_arena);
610 return (_has_bits_[0] & 0x00000002u) != 0;
612 inline void GobyMOOSGatewayConfig::set_has_interprocess() {
613 _has_bits_[0] |= 0x00000002u;
615 inline void GobyMOOSGatewayConfig::clear_has_interprocess() {
616 _has_bits_[0] &= ~0x00000002u;
618 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& GobyMOOSGatewayConfig::_internal_interprocess()
const {
619 return *interprocess_;
622 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
629 clear_has_interprocess();
631 interprocess_ = NULL;
635 set_has_interprocess();
636 if (interprocess_ == NULL) {
637 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
641 return interprocess_;
645 if (message_arena == NULL) {
650 if (message_arena != submessage_arena) {
651 interprocess = ::google::protobuf::internal::GetOwnedMessage(
654 set_has_interprocess();
656 clear_has_interprocess();
664 return (_has_bits_[0] & 0x00000004u) != 0;
666 inline void GobyMOOSGatewayConfig::set_has_moos() {
667 _has_bits_[0] |= 0x00000004u;
669 inline void GobyMOOSGatewayConfig::clear_has_moos() {
670 _has_bits_[0] &= ~0x00000004u;
673 if (moos_ != NULL) moos_->Clear();
676 inline const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig& GobyMOOSGatewayConfig::_internal_moos()
const {
680 const ::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig* p = moos_;
695 auto* p = CreateMaybeMessage<::goby::apps::moos::protobuf::GobyMOOSGatewayConfig_MOOSConfig>(GetArenaNoVirtual());
703 if (message_arena == NULL) {
708 if (message_arena != submessage_arena) {
709 moos = ::google::protobuf::internal::GetOwnedMessage(
710 message_arena,
moos, submessage_arena);
722 return (_has_bits_[0] & 0x00000008u) != 0;
724 inline void GobyMOOSGatewayConfig::set_has_poll_frequency() {
725 _has_bits_[0] |= 0x00000008u;
727 inline void GobyMOOSGatewayConfig::clear_has_poll_frequency() {
728 _has_bits_[0] &= ~0x00000008u;
731 poll_frequency_ = 10;
732 clear_has_poll_frequency();
736 return poll_frequency_;
739 set_has_poll_frequency();
740 poll_frequency_ = value;
745 #pragma GCC diagnostic pop
759 #endif // PROTOBUF_INCLUDED_goby_2fmoos_2fprotobuf_2fmoos_5fgateway_5fconfig_2eproto