4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fbridge_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fbridge_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>
36 #include "dccl/option_extensions.pb.h"
41 #include <boost/units/quantity.hpp>
42 #include <boost/units/absolute.hpp>
43 #include <boost/units/dimensionless_type.hpp>
44 #include <boost/units/make_scaled_unit.hpp>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fbridge_5fconfig_2eproto
51 static const ::google::protobuf::internal::ParseTableField
entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
53 static const ::google::protobuf::internal::ParseTable
schema[2];
66 class BridgeConfigDefaultTypeInternal;
69 class BridgeConfig_SubnetDefaultTypeInternal;
104 *
this = ::std::move(from);
108 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109 if (
this != &from) InternalSwap(&from);
117 return _internal_metadata_.unknown_fields();
120 return _internal_metadata_.mutable_unknown_fields();
123 static const ::google::protobuf::Descriptor*
descriptor();
142 return CreateMaybeMessage<BridgeConfig_Subnet>(NULL);
146 return CreateMaybeMessage<BridgeConfig_Subnet>(arena);
148 void CopyFrom(const ::google::protobuf::Message& from)
final;
149 void MergeFrom(const ::google::protobuf::Message& from)
final;
157 ::
google::protobuf::io::CodedInputStream* input) final;
159 ::
google::protobuf::io::CodedOutputStream* output) const final;
161 bool deterministic, ::
google::protobuf::uint8* target) const final;
167 void SetCachedSize(
int size)
const final;
170 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
173 inline void* MaybeArenaPtr()
const {
189 const ::
goby::acomms::protobuf::QueueManagerConfig& _internal_queue_cfg() const;
191 const ::
goby::acomms::protobuf::QueueManagerConfig&
queue_cfg() const;
201 const ::
goby::acomms::protobuf::MACConfig& _internal_mac_cfg() const;
203 const ::
goby::acomms::protobuf::MACConfig&
mac_cfg() const;
210 void set_has_queue_cfg();
211 void clear_has_queue_cfg();
212 void set_has_mac_cfg();
213 void clear_has_mac_cfg();
216 size_t RequiredFieldsByteSizeFallback() const;
218 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
219 ::
google::protobuf::internal::HasBits<1> _has_bits_;
220 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
221 ::
goby::acomms::protobuf::QueueManagerConfig* queue_cfg_;
222 ::
goby::acomms::protobuf::MACConfig* mac_cfg_;
241 *
this = ::std::move(from);
244 inline BridgeConfig&
operator=(BridgeConfig&& from) noexcept {
245 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
246 if (
this != &from) InternalSwap(&from);
254 return _internal_metadata_.unknown_fields();
257 return _internal_metadata_.mutable_unknown_fields();
260 static const ::google::protobuf::Descriptor*
descriptor();
279 return CreateMaybeMessage<BridgeConfig>(NULL);
283 return CreateMaybeMessage<BridgeConfig>(arena);
285 void CopyFrom(const ::google::protobuf::Message& from)
final;
286 void MergeFrom(const ::google::protobuf::Message& from)
final;
294 ::
google::protobuf::io::CodedInputStream* input) final;
296 ::
google::protobuf::io::CodedOutputStream* output) const final;
298 bool deterministic, ::
google::protobuf::uint8* target) const final;
304 void SetCachedSize(
int size)
const final;
307 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
310 inline void* MaybeArenaPtr()
const {
324 int subnet_size() const;
326 static const
int kSubnetFieldNumber = 3;
336 int load_shared_library_size() const;
337 void clear_load_shared_library();
338 static const
int kLoadSharedLibraryFieldNumber = 10;
339 const ::std::
string& load_shared_library(
int index) const;
340 ::std::
string* mutable_load_shared_library(
int index);
341 void set_load_shared_library(
int index, const ::std::
string& value);
343 void set_load_shared_library(
int index, ::std::string&& value);
345 void set_load_shared_library(
int index,
const char* value);
346 void set_load_shared_library(
int index,
const char* value,
size_t size);
347 ::std::string* add_load_shared_library();
348 void add_load_shared_library(const ::std::string& value);
350 void add_load_shared_library(::std::string&& value);
352 void add_load_shared_library(
const char* value);
353 void add_load_shared_library(
const char* value,
size_t size);
354 const ::google::protobuf::RepeatedPtrField< ::std::string>& load_shared_library()
const;
358 int load_proto_file_size()
const;
359 void clear_load_proto_file();
360 static const int kLoadProtoFileFieldNumber = 11;
361 const ::std::string& load_proto_file(
int index)
const;
362 ::std::string* mutable_load_proto_file(
int index);
363 void set_load_proto_file(
int index, const ::std::string& value);
365 void set_load_proto_file(
int index, ::std::string&& value);
367 void set_load_proto_file(
int index,
const char* value);
368 void set_load_proto_file(
int index,
const char* value,
size_t size);
369 ::std::string* add_load_proto_file();
370 void add_load_proto_file(const ::std::string& value);
372 void add_load_proto_file(::std::string&& value);
374 void add_load_proto_file(
const char* value);
375 void add_load_proto_file(
const char* value,
size_t size);
376 const ::google::protobuf::RepeatedPtrField< ::std::string>& load_proto_file()
const;
380 bool has_app()
const;
382 static const int kAppFieldNumber = 1;
384 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
386 const ::goby::middleware::protobuf::AppConfig& app()
const;
392 bool has_interprocess()
const;
393 void clear_interprocess();
394 static const int kInterprocessFieldNumber = 2;
396 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
398 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess()
const;
404 bool has_route_cfg()
const;
405 void clear_route_cfg();
406 static const int kRouteCfgFieldNumber = 4;
408 const ::goby::acomms::protobuf::RouteManagerConfig& _internal_route_cfg()
const;
410 const ::goby::acomms::protobuf::RouteManagerConfig& route_cfg()
const;
416 bool has_dccl_cfg()
const;
417 void clear_dccl_cfg();
418 static const int kDcclCfgFieldNumber = 12;
420 const ::goby::acomms::protobuf::DCCLConfig& _internal_dccl_cfg()
const;
422 const ::goby::acomms::protobuf::DCCLConfig& dccl_cfg()
const;
428 bool has_forward_cacst()
const;
429 void clear_forward_cacst();
430 static const int kForwardCacstFieldNumber = 100;
431 bool forward_cacst()
const;
432 void set_forward_cacst(
bool value);
435 bool has_forward_ranging_reply()
const;
436 void clear_forward_ranging_reply();
437 static const int kForwardRangingReplyFieldNumber = 101;
438 bool forward_ranging_reply()
const;
439 void set_forward_ranging_reply(
bool value);
442 bool has_special_command_ttl()
const;
443 void clear_special_command_ttl();
444 static const int kSpecialCommandTtlFieldNumber = 200;
451 void clear_has_app();
452 void set_has_interprocess();
453 void clear_has_interprocess();
454 void set_has_route_cfg();
455 void clear_has_route_cfg();
456 void set_has_dccl_cfg();
457 void clear_has_dccl_cfg();
458 void set_has_forward_cacst();
459 void clear_has_forward_cacst();
460 void set_has_forward_ranging_reply();
461 void clear_has_forward_ranging_reply();
462 void set_has_special_command_ttl();
463 void clear_has_special_command_ttl();
465 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
466 ::google::protobuf::internal::HasBits<1> _has_bits_;
467 mutable ::google::protobuf::internal::CachedSize _cached_size_;
476 bool forward_ranging_reply_;
478 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fbridge_5fconfig_2eproto::TableStruct;
486 #pragma GCC diagnostic push
487 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
493 return (_has_bits_[0] & 0x00000001u) != 0;
495 inline void BridgeConfig_Subnet::set_has_queue_cfg() {
496 _has_bits_[0] |= 0x00000001u;
498 inline void BridgeConfig_Subnet::clear_has_queue_cfg() {
499 _has_bits_[0] &= ~0x00000001u;
501 inline const ::goby::acomms::protobuf::QueueManagerConfig& BridgeConfig_Subnet::_internal_queue_cfg()
const {
505 const ::goby::acomms::protobuf::QueueManagerConfig* p = queue_cfg_;
512 clear_has_queue_cfg();
519 if (queue_cfg_ == NULL) {
520 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::QueueManagerConfig>(GetArenaNoVirtual());
528 if (message_arena == NULL) {
533 if (message_arena != submessage_arena) {
534 queue_cfg = ::google::protobuf::internal::GetOwnedMessage(
535 message_arena,
queue_cfg, submessage_arena);
539 clear_has_queue_cfg();
547 return (_has_bits_[0] & 0x00000002u) != 0;
549 inline void BridgeConfig_Subnet::set_has_mac_cfg() {
550 _has_bits_[0] |= 0x00000002u;
552 inline void BridgeConfig_Subnet::clear_has_mac_cfg() {
553 _has_bits_[0] &= ~0x00000002u;
555 inline const ::goby::acomms::protobuf::MACConfig& BridgeConfig_Subnet::_internal_mac_cfg()
const {
559 const ::goby::acomms::protobuf::MACConfig* p = mac_cfg_;
573 if (mac_cfg_ == NULL) {
574 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::MACConfig>(GetArenaNoVirtual());
582 if (message_arena == NULL) {
587 if (message_arena != submessage_arena) {
588 mac_cfg = ::google::protobuf::internal::GetOwnedMessage(
589 message_arena,
mac_cfg, submessage_arena);
605 return (_has_bits_[0] & 0x00000001u) != 0;
607 inline void BridgeConfig::set_has_app() {
608 _has_bits_[0] |= 0x00000001u;
610 inline void BridgeConfig::clear_has_app() {
611 _has_bits_[0] &= ~0x00000001u;
613 inline const ::goby::middleware::protobuf::AppConfig& BridgeConfig::_internal_app()
const {
617 const ::goby::middleware::protobuf::AppConfig* p = app_;
632 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
640 if (message_arena == NULL) {
645 if (message_arena != submessage_arena) {
646 app = ::google::protobuf::internal::GetOwnedMessage(
647 message_arena, app, submessage_arena);
659 return (_has_bits_[0] & 0x00000002u) != 0;
661 inline void BridgeConfig::set_has_interprocess() {
662 _has_bits_[0] |= 0x00000002u;
664 inline void BridgeConfig::clear_has_interprocess() {
665 _has_bits_[0] &= ~0x00000002u;
667 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& BridgeConfig::_internal_interprocess()
const {
668 return *interprocess_;
671 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
678 clear_has_interprocess();
680 interprocess_ = NULL;
684 set_has_interprocess();
685 if (interprocess_ == NULL) {
686 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
690 return interprocess_;
694 if (message_arena == NULL) {
699 if (message_arena != submessage_arena) {
700 interprocess = ::google::protobuf::internal::GetOwnedMessage(
701 message_arena, interprocess, submessage_arena);
703 set_has_interprocess();
705 clear_has_interprocess();
707 interprocess_ = interprocess;
713 return subnet_.size();
720 return subnet_.Mutable(index);
722 inline ::google::protobuf::RepeatedPtrField< ::goby::apps::zeromq::acomms::protobuf::BridgeConfig_Subnet >*
727 inline const ::goby::apps::zeromq::acomms::protobuf::BridgeConfig_Subnet&
BridgeConfig::subnet(
int index)
const {
729 return subnet_.Get(index);
733 return subnet_.Add();
735 inline const ::google::protobuf::RepeatedPtrField< ::goby::apps::zeromq::acomms::protobuf::BridgeConfig_Subnet >&
743 return (_has_bits_[0] & 0x00000004u) != 0;
745 inline void BridgeConfig::set_has_route_cfg() {
746 _has_bits_[0] |= 0x00000004u;
748 inline void BridgeConfig::clear_has_route_cfg() {
749 _has_bits_[0] &= ~0x00000004u;
751 inline const ::goby::acomms::protobuf::RouteManagerConfig& BridgeConfig::_internal_route_cfg()
const {
755 const ::goby::acomms::protobuf::RouteManagerConfig* p = route_cfg_;
762 clear_has_route_cfg();
769 if (route_cfg_ == NULL) {
770 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::RouteManagerConfig>(GetArenaNoVirtual());
778 if (message_arena == NULL) {
783 if (message_arena != submessage_arena) {
784 route_cfg = ::google::protobuf::internal::GetOwnedMessage(
785 message_arena, route_cfg, submessage_arena);
789 clear_has_route_cfg();
791 route_cfg_ = route_cfg;
797 return load_shared_library_.size();
800 load_shared_library_.Clear();
804 return load_shared_library_.Get(index);
808 return load_shared_library_.Mutable(index);
812 load_shared_library_.Mutable(index)->assign(value);
817 load_shared_library_.Mutable(index)->assign(std::move(value));
821 GOOGLE_DCHECK(value != NULL);
822 load_shared_library_.Mutable(index)->assign(value);
826 load_shared_library_.Mutable(index)->assign(
827 reinterpret_cast<const char*
>(value), size);
832 return load_shared_library_.Add();
835 load_shared_library_.Add()->assign(value);
840 load_shared_library_.Add(std::move(value));
845 GOOGLE_DCHECK(value != NULL);
846 load_shared_library_.Add()->assign(value);
850 load_shared_library_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
853 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
856 return load_shared_library_;
858 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
861 return &load_shared_library_;
866 return load_proto_file_.size();
869 load_proto_file_.Clear();
873 return load_proto_file_.Get(index);
877 return load_proto_file_.Mutable(index);
881 load_proto_file_.Mutable(index)->assign(value);
886 load_proto_file_.Mutable(index)->assign(std::move(value));
890 GOOGLE_DCHECK(value != NULL);
891 load_proto_file_.Mutable(index)->assign(value);
895 load_proto_file_.Mutable(index)->assign(
896 reinterpret_cast<const char*
>(value), size);
901 return load_proto_file_.Add();
904 load_proto_file_.Add()->assign(value);
909 load_proto_file_.Add(std::move(value));
914 GOOGLE_DCHECK(value != NULL);
915 load_proto_file_.Add()->assign(value);
919 load_proto_file_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
922 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
925 return load_proto_file_;
927 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
930 return &load_proto_file_;
935 return (_has_bits_[0] & 0x00000008u) != 0;
937 inline void BridgeConfig::set_has_dccl_cfg() {
938 _has_bits_[0] |= 0x00000008u;
940 inline void BridgeConfig::clear_has_dccl_cfg() {
941 _has_bits_[0] &= ~0x00000008u;
943 inline const ::goby::acomms::protobuf::DCCLConfig& BridgeConfig::_internal_dccl_cfg()
const {
947 const ::goby::acomms::protobuf::DCCLConfig* p = dccl_cfg_;
954 clear_has_dccl_cfg();
961 if (dccl_cfg_ == NULL) {
962 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::DCCLConfig>(GetArenaNoVirtual());
970 if (message_arena == NULL) {
975 if (message_arena != submessage_arena) {
976 dccl_cfg = ::google::protobuf::internal::GetOwnedMessage(
977 message_arena, dccl_cfg, submessage_arena);
981 clear_has_dccl_cfg();
983 dccl_cfg_ = dccl_cfg;
989 return (_has_bits_[0] & 0x00000010u) != 0;
991 inline void BridgeConfig::set_has_forward_cacst() {
992 _has_bits_[0] |= 0x00000010u;
994 inline void BridgeConfig::clear_has_forward_cacst() {
995 _has_bits_[0] &= ~0x00000010u;
998 forward_cacst_ =
true;
999 clear_has_forward_cacst();
1003 return forward_cacst_;
1006 set_has_forward_cacst();
1007 forward_cacst_ = value;
1013 return (_has_bits_[0] & 0x00000020u) != 0;
1015 inline void BridgeConfig::set_has_forward_ranging_reply() {
1016 _has_bits_[0] |= 0x00000020u;
1018 inline void BridgeConfig::clear_has_forward_ranging_reply() {
1019 _has_bits_[0] &= ~0x00000020u;
1022 forward_ranging_reply_ =
true;
1023 clear_has_forward_ranging_reply();
1027 return forward_ranging_reply_;
1030 set_has_forward_ranging_reply();
1031 forward_ranging_reply_ = value;
1037 return (_has_bits_[0] & 0x00000040u) != 0;
1039 inline void BridgeConfig::set_has_special_command_ttl() {
1040 _has_bits_[0] |= 0x00000040u;
1042 inline void BridgeConfig::clear_has_special_command_ttl() {
1043 _has_bits_[0] &= ~0x00000040u;
1046 special_command_ttl_ = 1800;
1047 clear_has_special_command_ttl();
1051 return special_command_ttl_;
1054 set_has_special_command_ttl();
1055 special_command_ttl_ = value;
1060 #pragma GCC diagnostic pop
1075 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fbridge_5fconfig_2eproto