4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto__INCLUDED 5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 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 2006001 < 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/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/unknown_field_set.h> 27 #include "goby/common/protobuf/option_extensions.pb.h" 28 #include "goby/common/protobuf/app_base_config.pb.h" 29 #include "goby/acomms/protobuf/queue.pb.h" 30 #include "goby/acomms/protobuf/route.pb.h" 31 #include "goby/acomms/protobuf/amac_config.pb.h" 32 #include "goby/acomms/protobuf/dccl.pb.h" 33 #include <boost/units/quantity.hpp> 34 #include <boost/units/absolute.hpp> 35 #include <boost/units/dimensionless_type.hpp> 36 #include <boost/units/make_scaled_unit.hpp> 44 void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
45 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
46 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
49 class BridgeConfig_Subnet;
65 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
66 return _unknown_fields_;
69 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
70 return &_unknown_fields_;
73 static const ::google::protobuf::Descriptor* descriptor();
81 void CopyFrom(const ::google::protobuf::Message& from);
82 void MergeFrom(const ::google::protobuf::Message& from);
86 bool IsInitialized()
const;
89 bool MergePartialFromCodedStream(
90 ::google::protobuf::io::CodedInputStream* input);
91 void SerializeWithCachedSizes(
92 ::google::protobuf::io::CodedOutputStream* output)
const;
93 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
94 int GetCachedSize()
const {
return _cached_size_; }
98 void SetCachedSize(
int size)
const;
100 ::google::protobuf::Metadata GetMetadata()
const;
107 inline bool has_queue_cfg()
const;
108 inline void clear_queue_cfg();
109 static const int kQueueCfgFieldNumber = 1;
110 inline const ::goby::acomms::protobuf::QueueManagerConfig& queue_cfg()
const;
111 inline ::goby::acomms::protobuf::QueueManagerConfig* mutable_queue_cfg();
112 inline ::goby::acomms::protobuf::QueueManagerConfig* release_queue_cfg();
116 inline bool has_mac_cfg()
const;
117 inline void clear_mac_cfg();
118 static const int kMacCfgFieldNumber = 2;
119 inline const ::goby::acomms::protobuf::MACConfig& mac_cfg()
const;
120 inline ::goby::acomms::protobuf::MACConfig* mutable_mac_cfg();
121 inline ::goby::acomms::protobuf::MACConfig* release_mac_cfg();
126 inline void set_has_queue_cfg();
127 inline void clear_has_queue_cfg();
128 inline void set_has_mac_cfg();
129 inline void clear_has_mac_cfg();
131 ::google::protobuf::UnknownFieldSet _unknown_fields_;
133 ::google::protobuf::uint32 _has_bits_[1];
134 mutable int _cached_size_;
137 friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
138 friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
139 friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
141 void InitAsDefaultInstance();
158 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
159 return _unknown_fields_;
162 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
163 return &_unknown_fields_;
166 static const ::google::protobuf::Descriptor* descriptor();
174 void CopyFrom(const ::google::protobuf::Message& from);
175 void MergeFrom(const ::google::protobuf::Message& from);
179 bool IsInitialized()
const;
181 int ByteSize()
const;
182 bool MergePartialFromCodedStream(
183 ::google::protobuf::io::CodedInputStream* input);
184 void SerializeWithCachedSizes(
185 ::google::protobuf::io::CodedOutputStream* output)
const;
186 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
187 int GetCachedSize()
const {
return _cached_size_; }
191 void SetCachedSize(
int size)
const;
193 ::google::protobuf::Metadata GetMetadata()
const;
202 inline bool has_base()
const;
203 inline void clear_base();
204 static const int kBaseFieldNumber = 1;
205 inline const ::AppBaseConfig& base()
const;
206 inline ::AppBaseConfig* mutable_base();
207 inline ::AppBaseConfig* release_base();
211 inline int subnet_size()
const;
212 inline void clear_subnet();
213 static const int kSubnetFieldNumber = 2;
214 inline const ::goby::acomms::protobuf::BridgeConfig_Subnet& subnet(
int index)
const;
215 inline ::goby::acomms::protobuf::BridgeConfig_Subnet* mutable_subnet(
int index);
216 inline ::goby::acomms::protobuf::BridgeConfig_Subnet* add_subnet();
217 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >&
219 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >*
223 inline bool has_route_cfg()
const;
224 inline void clear_route_cfg();
225 static const int kRouteCfgFieldNumber = 3;
226 inline const ::goby::acomms::protobuf::RouteManagerConfig& route_cfg()
const;
227 inline ::goby::acomms::protobuf::RouteManagerConfig* mutable_route_cfg();
228 inline ::goby::acomms::protobuf::RouteManagerConfig* release_route_cfg();
232 inline int load_shared_library_size()
const;
233 inline void clear_load_shared_library();
234 static const int kLoadSharedLibraryFieldNumber = 10;
235 inline const ::std::string& load_shared_library(
int index)
const;
236 inline ::std::string* mutable_load_shared_library(
int index);
237 inline void set_load_shared_library(
int index, const ::std::string& value);
238 inline void set_load_shared_library(
int index,
const char* value);
239 inline void set_load_shared_library(
int index,
const char* value,
size_t size);
240 inline ::std::string* add_load_shared_library();
241 inline void add_load_shared_library(const ::std::string& value);
242 inline void add_load_shared_library(
const char* value);
243 inline void add_load_shared_library(
const char* value,
size_t size);
244 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& load_shared_library()
const;
245 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_load_shared_library();
248 inline int load_proto_file_size()
const;
249 inline void clear_load_proto_file();
250 static const int kLoadProtoFileFieldNumber = 11;
251 inline const ::std::string& load_proto_file(
int index)
const;
252 inline ::std::string* mutable_load_proto_file(
int index);
253 inline void set_load_proto_file(
int index, const ::std::string& value);
254 inline void set_load_proto_file(
int index,
const char* value);
255 inline void set_load_proto_file(
int index,
const char* value,
size_t size);
256 inline ::std::string* add_load_proto_file();
257 inline void add_load_proto_file(const ::std::string& value);
258 inline void add_load_proto_file(
const char* value);
259 inline void add_load_proto_file(
const char* value,
size_t size);
260 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& load_proto_file()
const;
261 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_load_proto_file();
264 inline bool has_dccl_cfg()
const;
265 inline void clear_dccl_cfg();
266 static const int kDcclCfgFieldNumber = 12;
267 inline const ::goby::acomms::protobuf::DCCLConfig& dccl_cfg()
const;
268 inline ::goby::acomms::protobuf::DCCLConfig* mutable_dccl_cfg();
269 inline ::goby::acomms::protobuf::DCCLConfig* release_dccl_cfg();
273 inline bool has_forward_cacst()
const;
274 inline void clear_forward_cacst();
275 static const int kForwardCacstFieldNumber = 100;
276 inline bool forward_cacst()
const;
277 inline void set_forward_cacst(
bool value);
280 inline bool has_forward_ranging_reply()
const;
281 inline void clear_forward_ranging_reply();
282 static const int kForwardRangingReplyFieldNumber = 101;
283 inline bool forward_ranging_reply()
const;
284 inline void set_forward_ranging_reply(
bool value);
287 inline bool has_special_command_ttl()
const;
288 inline void clear_special_command_ttl();
289 static const int kSpecialCommandTtlFieldNumber = 200;
290 inline ::google::protobuf::int32 special_command_ttl()
const;
291 inline void set_special_command_ttl(::google::protobuf::int32 value);
295 inline void set_has_base();
296 inline void clear_has_base();
297 inline void set_has_route_cfg();
298 inline void clear_has_route_cfg();
299 inline void set_has_dccl_cfg();
300 inline void clear_has_dccl_cfg();
301 inline void set_has_forward_cacst();
302 inline void clear_has_forward_cacst();
303 inline void set_has_forward_ranging_reply();
304 inline void clear_has_forward_ranging_reply();
305 inline void set_has_special_command_ttl();
306 inline void clear_has_special_command_ttl();
308 ::google::protobuf::UnknownFieldSet _unknown_fields_;
310 ::google::protobuf::uint32 _has_bits_[1];
311 mutable int _cached_size_;
313 ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet > subnet_;
315 ::google::protobuf::RepeatedPtrField< ::std::string> load_shared_library_;
316 ::google::protobuf::RepeatedPtrField< ::std::string> load_proto_file_;
319 bool forward_ranging_reply_;
320 ::google::protobuf::int32 special_command_ttl_;
321 friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
322 friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
323 friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto();
325 void InitAsDefaultInstance();
336 inline bool BridgeConfig_Subnet::has_queue_cfg()
const {
337 return (_has_bits_[0] & 0x00000001u) != 0;
339 inline void BridgeConfig_Subnet::set_has_queue_cfg() {
340 _has_bits_[0] |= 0x00000001u;
342 inline void BridgeConfig_Subnet::clear_has_queue_cfg() {
343 _has_bits_[0] &= ~0x00000001u;
345 inline void BridgeConfig_Subnet::clear_queue_cfg() {
346 if (queue_cfg_ != NULL) queue_cfg_->::goby::acomms::protobuf::QueueManagerConfig::Clear();
347 clear_has_queue_cfg();
349 inline const ::goby::acomms::protobuf::QueueManagerConfig& BridgeConfig_Subnet::queue_cfg()
const {
351 return queue_cfg_ != NULL ? *queue_cfg_ : *default_instance_->queue_cfg_;
353 inline ::goby::acomms::protobuf::QueueManagerConfig* BridgeConfig_Subnet::mutable_queue_cfg() {
355 if (queue_cfg_ == NULL) queue_cfg_ = new ::goby::acomms::protobuf::QueueManagerConfig;
359 inline ::goby::acomms::protobuf::QueueManagerConfig* BridgeConfig_Subnet::release_queue_cfg() {
360 clear_has_queue_cfg();
367 queue_cfg_ = queue_cfg;
371 clear_has_queue_cfg();
377 inline bool BridgeConfig_Subnet::has_mac_cfg()
const {
378 return (_has_bits_[0] & 0x00000002u) != 0;
380 inline void BridgeConfig_Subnet::set_has_mac_cfg() {
381 _has_bits_[0] |= 0x00000002u;
383 inline void BridgeConfig_Subnet::clear_has_mac_cfg() {
384 _has_bits_[0] &= ~0x00000002u;
386 inline void BridgeConfig_Subnet::clear_mac_cfg() {
387 if (mac_cfg_ != NULL) mac_cfg_->::goby::acomms::protobuf::MACConfig::Clear();
390 inline const ::goby::acomms::protobuf::MACConfig& BridgeConfig_Subnet::mac_cfg()
const {
392 return mac_cfg_ != NULL ? *mac_cfg_ : *default_instance_->mac_cfg_;
394 inline ::goby::acomms::protobuf::MACConfig* BridgeConfig_Subnet::mutable_mac_cfg() {
396 if (mac_cfg_ == NULL) mac_cfg_ = new ::goby::acomms::protobuf::MACConfig;
400 inline ::goby::acomms::protobuf::MACConfig* BridgeConfig_Subnet::release_mac_cfg() {
422 inline bool BridgeConfig::has_base()
const {
423 return (_has_bits_[0] & 0x00000001u) != 0;
425 inline void BridgeConfig::set_has_base() {
426 _has_bits_[0] |= 0x00000001u;
428 inline void BridgeConfig::clear_has_base() {
429 _has_bits_[0] &= ~0x00000001u;
431 inline void BridgeConfig::clear_base() {
432 if (base_ != NULL) base_->::AppBaseConfig::Clear();
435 inline const ::AppBaseConfig& BridgeConfig::base()
const {
437 return base_ != NULL ? *base_ : *default_instance_->base_;
439 inline ::AppBaseConfig* BridgeConfig::mutable_base() {
441 if (base_ == NULL) base_ = new ::AppBaseConfig;
445 inline ::AppBaseConfig* BridgeConfig::release_base() {
451 inline void BridgeConfig::set_allocated_base(::
AppBaseConfig* base) {
463 inline int BridgeConfig::subnet_size()
const {
464 return subnet_.size();
466 inline void BridgeConfig::clear_subnet() {
469 inline const ::goby::acomms::protobuf::BridgeConfig_Subnet& BridgeConfig::subnet(
int index)
const {
471 return subnet_.Get(index);
473 inline ::goby::acomms::protobuf::BridgeConfig_Subnet* BridgeConfig::mutable_subnet(
int index) {
475 return subnet_.Mutable(index);
477 inline ::goby::acomms::protobuf::BridgeConfig_Subnet* BridgeConfig::add_subnet() {
479 return subnet_.Add();
481 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >&
482 BridgeConfig::subnet()
const {
486 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >*
487 BridgeConfig::mutable_subnet() {
493 inline bool BridgeConfig::has_route_cfg()
const {
494 return (_has_bits_[0] & 0x00000004u) != 0;
496 inline void BridgeConfig::set_has_route_cfg() {
497 _has_bits_[0] |= 0x00000004u;
499 inline void BridgeConfig::clear_has_route_cfg() {
500 _has_bits_[0] &= ~0x00000004u;
502 inline void BridgeConfig::clear_route_cfg() {
503 if (route_cfg_ != NULL) route_cfg_->::goby::acomms::protobuf::RouteManagerConfig::Clear();
504 clear_has_route_cfg();
506 inline const ::goby::acomms::protobuf::RouteManagerConfig& BridgeConfig::route_cfg()
const {
508 return route_cfg_ != NULL ? *route_cfg_ : *default_instance_->route_cfg_;
510 inline ::goby::acomms::protobuf::RouteManagerConfig* BridgeConfig::mutable_route_cfg() {
512 if (route_cfg_ == NULL) route_cfg_ = new ::goby::acomms::protobuf::RouteManagerConfig;
516 inline ::goby::acomms::protobuf::RouteManagerConfig* BridgeConfig::release_route_cfg() {
517 clear_has_route_cfg();
524 route_cfg_ = route_cfg;
528 clear_has_route_cfg();
534 inline int BridgeConfig::load_shared_library_size()
const {
535 return load_shared_library_.size();
537 inline void BridgeConfig::clear_load_shared_library() {
538 load_shared_library_.Clear();
540 inline const ::std::string& BridgeConfig::load_shared_library(
int index)
const {
542 return load_shared_library_.Get(index);
544 inline ::std::string* BridgeConfig::mutable_load_shared_library(
int index) {
546 return load_shared_library_.Mutable(index);
548 inline void BridgeConfig::set_load_shared_library(
int index, const ::std::string& value) {
550 load_shared_library_.Mutable(index)->assign(value);
552 inline void BridgeConfig::set_load_shared_library(
int index,
const char* value) {
553 load_shared_library_.Mutable(index)->assign(value);
556 inline void BridgeConfig::set_load_shared_library(
int index,
const char* value,
size_t size) {
557 load_shared_library_.Mutable(index)->assign(
558 reinterpret_cast<const char*>(value), size);
561 inline ::std::string* BridgeConfig::add_load_shared_library() {
562 return load_shared_library_.Add();
564 inline void BridgeConfig::add_load_shared_library(const ::std::string& value) {
565 load_shared_library_.Add()->assign(value);
568 inline void BridgeConfig::add_load_shared_library(
const char* value) {
569 load_shared_library_.Add()->assign(value);
572 inline void BridgeConfig::add_load_shared_library(
const char* value,
size_t size) {
573 load_shared_library_.Add()->assign(reinterpret_cast<const char*>(value), size);
576 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
577 BridgeConfig::load_shared_library()
const {
579 return load_shared_library_;
581 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
582 BridgeConfig::mutable_load_shared_library() {
584 return &load_shared_library_;
588 inline int BridgeConfig::load_proto_file_size()
const {
589 return load_proto_file_.size();
591 inline void BridgeConfig::clear_load_proto_file() {
592 load_proto_file_.Clear();
594 inline const ::std::string& BridgeConfig::load_proto_file(
int index)
const {
596 return load_proto_file_.Get(index);
598 inline ::std::string* BridgeConfig::mutable_load_proto_file(
int index) {
600 return load_proto_file_.Mutable(index);
602 inline void BridgeConfig::set_load_proto_file(
int index, const ::std::string& value) {
604 load_proto_file_.Mutable(index)->assign(value);
606 inline void BridgeConfig::set_load_proto_file(
int index,
const char* value) {
607 load_proto_file_.Mutable(index)->assign(value);
610 inline void BridgeConfig::set_load_proto_file(
int index,
const char* value,
size_t size) {
611 load_proto_file_.Mutable(index)->assign(
612 reinterpret_cast<const char*>(value), size);
615 inline ::std::string* BridgeConfig::add_load_proto_file() {
616 return load_proto_file_.Add();
618 inline void BridgeConfig::add_load_proto_file(const ::std::string& value) {
619 load_proto_file_.Add()->assign(value);
622 inline void BridgeConfig::add_load_proto_file(
const char* value) {
623 load_proto_file_.Add()->assign(value);
626 inline void BridgeConfig::add_load_proto_file(
const char* value,
size_t size) {
627 load_proto_file_.Add()->assign(reinterpret_cast<const char*>(value), size);
630 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
631 BridgeConfig::load_proto_file()
const {
633 return load_proto_file_;
635 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
636 BridgeConfig::mutable_load_proto_file() {
638 return &load_proto_file_;
642 inline bool BridgeConfig::has_dccl_cfg()
const {
643 return (_has_bits_[0] & 0x00000020u) != 0;
645 inline void BridgeConfig::set_has_dccl_cfg() {
646 _has_bits_[0] |= 0x00000020u;
648 inline void BridgeConfig::clear_has_dccl_cfg() {
649 _has_bits_[0] &= ~0x00000020u;
651 inline void BridgeConfig::clear_dccl_cfg() {
652 if (dccl_cfg_ != NULL) dccl_cfg_->::goby::acomms::protobuf::DCCLConfig::Clear();
653 clear_has_dccl_cfg();
655 inline const ::goby::acomms::protobuf::DCCLConfig& BridgeConfig::dccl_cfg()
const {
657 return dccl_cfg_ != NULL ? *dccl_cfg_ : *default_instance_->dccl_cfg_;
659 inline ::goby::acomms::protobuf::DCCLConfig* BridgeConfig::mutable_dccl_cfg() {
661 if (dccl_cfg_ == NULL) dccl_cfg_ = new ::goby::acomms::protobuf::DCCLConfig;
665 inline ::goby::acomms::protobuf::DCCLConfig* BridgeConfig::release_dccl_cfg() {
666 clear_has_dccl_cfg();
673 dccl_cfg_ = dccl_cfg;
677 clear_has_dccl_cfg();
683 inline bool BridgeConfig::has_forward_cacst()
const {
684 return (_has_bits_[0] & 0x00000040u) != 0;
686 inline void BridgeConfig::set_has_forward_cacst() {
687 _has_bits_[0] |= 0x00000040u;
689 inline void BridgeConfig::clear_has_forward_cacst() {
690 _has_bits_[0] &= ~0x00000040u;
692 inline void BridgeConfig::clear_forward_cacst() {
693 forward_cacst_ =
true;
694 clear_has_forward_cacst();
696 inline bool BridgeConfig::forward_cacst()
const {
698 return forward_cacst_;
700 inline void BridgeConfig::set_forward_cacst(
bool value) {
701 set_has_forward_cacst();
702 forward_cacst_ = value;
707 inline bool BridgeConfig::has_forward_ranging_reply()
const {
708 return (_has_bits_[0] & 0x00000080u) != 0;
710 inline void BridgeConfig::set_has_forward_ranging_reply() {
711 _has_bits_[0] |= 0x00000080u;
713 inline void BridgeConfig::clear_has_forward_ranging_reply() {
714 _has_bits_[0] &= ~0x00000080u;
716 inline void BridgeConfig::clear_forward_ranging_reply() {
717 forward_ranging_reply_ =
true;
718 clear_has_forward_ranging_reply();
720 inline bool BridgeConfig::forward_ranging_reply()
const {
722 return forward_ranging_reply_;
724 inline void BridgeConfig::set_forward_ranging_reply(
bool value) {
725 set_has_forward_ranging_reply();
726 forward_ranging_reply_ = value;
731 inline bool BridgeConfig::has_special_command_ttl()
const {
732 return (_has_bits_[0] & 0x00000100u) != 0;
734 inline void BridgeConfig::set_has_special_command_ttl() {
735 _has_bits_[0] |= 0x00000100u;
737 inline void BridgeConfig::clear_has_special_command_ttl() {
738 _has_bits_[0] &= ~0x00000100u;
740 inline void BridgeConfig::clear_special_command_ttl() {
741 special_command_ttl_ = 1800;
742 clear_has_special_command_ttl();
744 inline ::google::protobuf::int32 BridgeConfig::special_command_ttl()
const {
746 return special_command_ttl_;
748 inline void BridgeConfig::set_special_command_ttl(::google::protobuf::int32 value) {
749 set_has_special_command_ttl();
750 special_command_ttl_ = value;
772 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.