Goby v2
bridge_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/apps/acomms/goby_bridge/bridge_config.proto
3 
4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
37 // @@protoc_insertion_point(includes)
38 
39 namespace goby {
40 namespace acomms {
41 namespace protobuf {
42 
43 // Internal implementation detail -- do not call these.
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();
47 
48 class BridgeConfig;
49 class BridgeConfig_Subnet;
50 
51 // ===================================================================
52 
53 class BridgeConfig_Subnet : public ::google::protobuf::Message {
54  public:
56  virtual ~BridgeConfig_Subnet();
57 
59 
60  inline BridgeConfig_Subnet& operator=(const BridgeConfig_Subnet& from) {
61  CopyFrom(from);
62  return *this;
63  }
64 
65  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
66  return _unknown_fields_;
67  }
68 
69  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
70  return &_unknown_fields_;
71  }
72 
73  static const ::google::protobuf::Descriptor* descriptor();
74  static const BridgeConfig_Subnet& default_instance();
75 
76  void Swap(BridgeConfig_Subnet* other);
77 
78  // implements Message ----------------------------------------------
79 
80  BridgeConfig_Subnet* New() const;
81  void CopyFrom(const ::google::protobuf::Message& from);
82  void MergeFrom(const ::google::protobuf::Message& from);
83  void CopyFrom(const BridgeConfig_Subnet& from);
84  void MergeFrom(const BridgeConfig_Subnet& from);
85  void Clear();
86  bool IsInitialized() const;
87 
88  int ByteSize() 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_; }
95  private:
96  void SharedCtor();
97  void SharedDtor();
98  void SetCachedSize(int size) const;
99  public:
100  ::google::protobuf::Metadata GetMetadata() const;
101 
102  // nested types ----------------------------------------------------
103 
104  // accessors -------------------------------------------------------
105 
106  // required .goby.acomms.protobuf.QueueManagerConfig queue_cfg = 1;
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();
113  inline void set_allocated_queue_cfg(::goby::acomms::protobuf::QueueManagerConfig* queue_cfg);
114 
115  // required .goby.acomms.protobuf.MACConfig mac_cfg = 2;
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();
122  inline void set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig* mac_cfg);
123 
124  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.BridgeConfig.Subnet)
125  private:
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();
130 
131  ::google::protobuf::UnknownFieldSet _unknown_fields_;
132 
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();
140 
141  void InitAsDefaultInstance();
142  static BridgeConfig_Subnet* default_instance_;
143 };
144 // -------------------------------------------------------------------
145 
146 class BridgeConfig : public ::google::protobuf::Message {
147  public:
148  BridgeConfig();
149  virtual ~BridgeConfig();
150 
151  BridgeConfig(const BridgeConfig& from);
152 
153  inline BridgeConfig& operator=(const BridgeConfig& from) {
154  CopyFrom(from);
155  return *this;
156  }
157 
158  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
159  return _unknown_fields_;
160  }
161 
162  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
163  return &_unknown_fields_;
164  }
165 
166  static const ::google::protobuf::Descriptor* descriptor();
167  static const BridgeConfig& default_instance();
168 
169  void Swap(BridgeConfig* other);
170 
171  // implements Message ----------------------------------------------
172 
173  BridgeConfig* New() const;
174  void CopyFrom(const ::google::protobuf::Message& from);
175  void MergeFrom(const ::google::protobuf::Message& from);
176  void CopyFrom(const BridgeConfig& from);
177  void MergeFrom(const BridgeConfig& from);
178  void Clear();
179  bool IsInitialized() const;
180 
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_; }
188  private:
189  void SharedCtor();
190  void SharedDtor();
191  void SetCachedSize(int size) const;
192  public:
193  ::google::protobuf::Metadata GetMetadata() const;
194 
195  // nested types ----------------------------------------------------
196 
197  typedef BridgeConfig_Subnet Subnet;
198 
199  // accessors -------------------------------------------------------
200 
201  // optional .AppBaseConfig base = 1;
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();
208  inline void set_allocated_base(::AppBaseConfig* base);
209 
210  // repeated .goby.acomms.protobuf.BridgeConfig.Subnet subnet = 2;
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 >&
218  subnet() const;
219  inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >*
220  mutable_subnet();
221 
222  // optional .goby.acomms.protobuf.RouteManagerConfig route_cfg = 3;
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();
229  inline void set_allocated_route_cfg(::goby::acomms::protobuf::RouteManagerConfig* route_cfg);
230 
231  // repeated string load_shared_library = 10;
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();
246 
247  // repeated string load_proto_file = 11;
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();
262 
263  // optional .goby.acomms.protobuf.DCCLConfig dccl_cfg = 12;
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();
270  inline void set_allocated_dccl_cfg(::goby::acomms::protobuf::DCCLConfig* dccl_cfg);
271 
272  // optional bool forward_cacst = 100 [default = true];
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);
278 
279  // optional bool forward_ranging_reply = 101 [default = true];
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);
285 
286  // optional int32 special_command_ttl = 200 [default = 1800];
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);
292 
293  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.BridgeConfig)
294  private:
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();
307 
308  ::google::protobuf::UnknownFieldSet _unknown_fields_;
309 
310  ::google::protobuf::uint32 _has_bits_[1];
311  mutable int _cached_size_;
312  ::AppBaseConfig* base_;
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_;
318  bool forward_cacst_;
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();
324 
325  void InitAsDefaultInstance();
326  static BridgeConfig* default_instance_;
327 };
328 // ===================================================================
329 
330 
331 // ===================================================================
332 
333 // BridgeConfig_Subnet
334 
335 // required .goby.acomms.protobuf.QueueManagerConfig queue_cfg = 1;
336 inline bool BridgeConfig_Subnet::has_queue_cfg() const {
337  return (_has_bits_[0] & 0x00000001u) != 0;
338 }
339 inline void BridgeConfig_Subnet::set_has_queue_cfg() {
340  _has_bits_[0] |= 0x00000001u;
341 }
342 inline void BridgeConfig_Subnet::clear_has_queue_cfg() {
343  _has_bits_[0] &= ~0x00000001u;
344 }
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();
348 }
349 inline const ::goby::acomms::protobuf::QueueManagerConfig& BridgeConfig_Subnet::queue_cfg() const {
350  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.Subnet.queue_cfg)
351  return queue_cfg_ != NULL ? *queue_cfg_ : *default_instance_->queue_cfg_;
352 }
353 inline ::goby::acomms::protobuf::QueueManagerConfig* BridgeConfig_Subnet::mutable_queue_cfg() {
354  set_has_queue_cfg();
355  if (queue_cfg_ == NULL) queue_cfg_ = new ::goby::acomms::protobuf::QueueManagerConfig;
356  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.Subnet.queue_cfg)
357  return queue_cfg_;
358 }
359 inline ::goby::acomms::protobuf::QueueManagerConfig* BridgeConfig_Subnet::release_queue_cfg() {
360  clear_has_queue_cfg();
362  queue_cfg_ = NULL;
363  return temp;
364 }
365 inline void BridgeConfig_Subnet::set_allocated_queue_cfg(::goby::acomms::protobuf::QueueManagerConfig* queue_cfg) {
366  delete queue_cfg_;
367  queue_cfg_ = queue_cfg;
368  if (queue_cfg) {
369  set_has_queue_cfg();
370  } else {
371  clear_has_queue_cfg();
372  }
373  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.BridgeConfig.Subnet.queue_cfg)
374 }
375 
376 // required .goby.acomms.protobuf.MACConfig mac_cfg = 2;
377 inline bool BridgeConfig_Subnet::has_mac_cfg() const {
378  return (_has_bits_[0] & 0x00000002u) != 0;
379 }
380 inline void BridgeConfig_Subnet::set_has_mac_cfg() {
381  _has_bits_[0] |= 0x00000002u;
382 }
383 inline void BridgeConfig_Subnet::clear_has_mac_cfg() {
384  _has_bits_[0] &= ~0x00000002u;
385 }
386 inline void BridgeConfig_Subnet::clear_mac_cfg() {
387  if (mac_cfg_ != NULL) mac_cfg_->::goby::acomms::protobuf::MACConfig::Clear();
388  clear_has_mac_cfg();
389 }
390 inline const ::goby::acomms::protobuf::MACConfig& BridgeConfig_Subnet::mac_cfg() const {
391  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.Subnet.mac_cfg)
392  return mac_cfg_ != NULL ? *mac_cfg_ : *default_instance_->mac_cfg_;
393 }
394 inline ::goby::acomms::protobuf::MACConfig* BridgeConfig_Subnet::mutable_mac_cfg() {
395  set_has_mac_cfg();
396  if (mac_cfg_ == NULL) mac_cfg_ = new ::goby::acomms::protobuf::MACConfig;
397  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.Subnet.mac_cfg)
398  return mac_cfg_;
399 }
400 inline ::goby::acomms::protobuf::MACConfig* BridgeConfig_Subnet::release_mac_cfg() {
401  clear_has_mac_cfg();
402  ::goby::acomms::protobuf::MACConfig* temp = mac_cfg_;
403  mac_cfg_ = NULL;
404  return temp;
405 }
406 inline void BridgeConfig_Subnet::set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig* mac_cfg) {
407  delete mac_cfg_;
408  mac_cfg_ = mac_cfg;
409  if (mac_cfg) {
410  set_has_mac_cfg();
411  } else {
412  clear_has_mac_cfg();
413  }
414  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.BridgeConfig.Subnet.mac_cfg)
415 }
416 
417 // -------------------------------------------------------------------
418 
419 // BridgeConfig
420 
421 // optional .AppBaseConfig base = 1;
422 inline bool BridgeConfig::has_base() const {
423  return (_has_bits_[0] & 0x00000001u) != 0;
424 }
425 inline void BridgeConfig::set_has_base() {
426  _has_bits_[0] |= 0x00000001u;
427 }
428 inline void BridgeConfig::clear_has_base() {
429  _has_bits_[0] &= ~0x00000001u;
430 }
431 inline void BridgeConfig::clear_base() {
432  if (base_ != NULL) base_->::AppBaseConfig::Clear();
433  clear_has_base();
434 }
435 inline const ::AppBaseConfig& BridgeConfig::base() const {
436  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.base)
437  return base_ != NULL ? *base_ : *default_instance_->base_;
438 }
439 inline ::AppBaseConfig* BridgeConfig::mutable_base() {
440  set_has_base();
441  if (base_ == NULL) base_ = new ::AppBaseConfig;
442  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.base)
443  return base_;
444 }
445 inline ::AppBaseConfig* BridgeConfig::release_base() {
446  clear_has_base();
447  ::AppBaseConfig* temp = base_;
448  base_ = NULL;
449  return temp;
450 }
451 inline void BridgeConfig::set_allocated_base(::AppBaseConfig* base) {
452  delete base_;
453  base_ = base;
454  if (base) {
455  set_has_base();
456  } else {
457  clear_has_base();
458  }
459  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.BridgeConfig.base)
460 }
461 
462 // repeated .goby.acomms.protobuf.BridgeConfig.Subnet subnet = 2;
463 inline int BridgeConfig::subnet_size() const {
464  return subnet_.size();
465 }
466 inline void BridgeConfig::clear_subnet() {
467  subnet_.Clear();
468 }
469 inline const ::goby::acomms::protobuf::BridgeConfig_Subnet& BridgeConfig::subnet(int index) const {
470  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.subnet)
471  return subnet_.Get(index);
472 }
473 inline ::goby::acomms::protobuf::BridgeConfig_Subnet* BridgeConfig::mutable_subnet(int index) {
474  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.subnet)
475  return subnet_.Mutable(index);
476 }
477 inline ::goby::acomms::protobuf::BridgeConfig_Subnet* BridgeConfig::add_subnet() {
478  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.BridgeConfig.subnet)
479  return subnet_.Add();
480 }
481 inline const ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >&
482 BridgeConfig::subnet() const {
483  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.BridgeConfig.subnet)
484  return subnet_;
485 }
486 inline ::google::protobuf::RepeatedPtrField< ::goby::acomms::protobuf::BridgeConfig_Subnet >*
487 BridgeConfig::mutable_subnet() {
488  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.BridgeConfig.subnet)
489  return &subnet_;
490 }
491 
492 // optional .goby.acomms.protobuf.RouteManagerConfig route_cfg = 3;
493 inline bool BridgeConfig::has_route_cfg() const {
494  return (_has_bits_[0] & 0x00000004u) != 0;
495 }
496 inline void BridgeConfig::set_has_route_cfg() {
497  _has_bits_[0] |= 0x00000004u;
498 }
499 inline void BridgeConfig::clear_has_route_cfg() {
500  _has_bits_[0] &= ~0x00000004u;
501 }
502 inline void BridgeConfig::clear_route_cfg() {
503  if (route_cfg_ != NULL) route_cfg_->::goby::acomms::protobuf::RouteManagerConfig::Clear();
504  clear_has_route_cfg();
505 }
506 inline const ::goby::acomms::protobuf::RouteManagerConfig& BridgeConfig::route_cfg() const {
507  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.route_cfg)
508  return route_cfg_ != NULL ? *route_cfg_ : *default_instance_->route_cfg_;
509 }
510 inline ::goby::acomms::protobuf::RouteManagerConfig* BridgeConfig::mutable_route_cfg() {
511  set_has_route_cfg();
512  if (route_cfg_ == NULL) route_cfg_ = new ::goby::acomms::protobuf::RouteManagerConfig;
513  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.route_cfg)
514  return route_cfg_;
515 }
516 inline ::goby::acomms::protobuf::RouteManagerConfig* BridgeConfig::release_route_cfg() {
517  clear_has_route_cfg();
519  route_cfg_ = NULL;
520  return temp;
521 }
522 inline void BridgeConfig::set_allocated_route_cfg(::goby::acomms::protobuf::RouteManagerConfig* route_cfg) {
523  delete route_cfg_;
524  route_cfg_ = route_cfg;
525  if (route_cfg) {
526  set_has_route_cfg();
527  } else {
528  clear_has_route_cfg();
529  }
530  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.BridgeConfig.route_cfg)
531 }
532 
533 // repeated string load_shared_library = 10;
534 inline int BridgeConfig::load_shared_library_size() const {
535  return load_shared_library_.size();
536 }
537 inline void BridgeConfig::clear_load_shared_library() {
538  load_shared_library_.Clear();
539 }
540 inline const ::std::string& BridgeConfig::load_shared_library(int index) const {
541  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.load_shared_library)
542  return load_shared_library_.Get(index);
543 }
544 inline ::std::string* BridgeConfig::mutable_load_shared_library(int index) {
545  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.load_shared_library)
546  return load_shared_library_.Mutable(index);
547 }
548 inline void BridgeConfig::set_load_shared_library(int index, const ::std::string& value) {
549  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.BridgeConfig.load_shared_library)
550  load_shared_library_.Mutable(index)->assign(value);
551 }
552 inline void BridgeConfig::set_load_shared_library(int index, const char* value) {
553  load_shared_library_.Mutable(index)->assign(value);
554  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.BridgeConfig.load_shared_library)
555 }
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);
559  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.BridgeConfig.load_shared_library)
560 }
561 inline ::std::string* BridgeConfig::add_load_shared_library() {
562  return load_shared_library_.Add();
563 }
564 inline void BridgeConfig::add_load_shared_library(const ::std::string& value) {
565  load_shared_library_.Add()->assign(value);
566  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.BridgeConfig.load_shared_library)
567 }
568 inline void BridgeConfig::add_load_shared_library(const char* value) {
569  load_shared_library_.Add()->assign(value);
570  // @@protoc_insertion_point(field_add_char:goby.acomms.protobuf.BridgeConfig.load_shared_library)
571 }
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);
574  // @@protoc_insertion_point(field_add_pointer:goby.acomms.protobuf.BridgeConfig.load_shared_library)
575 }
576 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
577 BridgeConfig::load_shared_library() const {
578  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.BridgeConfig.load_shared_library)
579  return load_shared_library_;
580 }
581 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
582 BridgeConfig::mutable_load_shared_library() {
583  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.BridgeConfig.load_shared_library)
584  return &load_shared_library_;
585 }
586 
587 // repeated string load_proto_file = 11;
588 inline int BridgeConfig::load_proto_file_size() const {
589  return load_proto_file_.size();
590 }
591 inline void BridgeConfig::clear_load_proto_file() {
592  load_proto_file_.Clear();
593 }
594 inline const ::std::string& BridgeConfig::load_proto_file(int index) const {
595  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.load_proto_file)
596  return load_proto_file_.Get(index);
597 }
598 inline ::std::string* BridgeConfig::mutable_load_proto_file(int index) {
599  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.load_proto_file)
600  return load_proto_file_.Mutable(index);
601 }
602 inline void BridgeConfig::set_load_proto_file(int index, const ::std::string& value) {
603  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.BridgeConfig.load_proto_file)
604  load_proto_file_.Mutable(index)->assign(value);
605 }
606 inline void BridgeConfig::set_load_proto_file(int index, const char* value) {
607  load_proto_file_.Mutable(index)->assign(value);
608  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.BridgeConfig.load_proto_file)
609 }
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);
613  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.BridgeConfig.load_proto_file)
614 }
615 inline ::std::string* BridgeConfig::add_load_proto_file() {
616  return load_proto_file_.Add();
617 }
618 inline void BridgeConfig::add_load_proto_file(const ::std::string& value) {
619  load_proto_file_.Add()->assign(value);
620  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.BridgeConfig.load_proto_file)
621 }
622 inline void BridgeConfig::add_load_proto_file(const char* value) {
623  load_proto_file_.Add()->assign(value);
624  // @@protoc_insertion_point(field_add_char:goby.acomms.protobuf.BridgeConfig.load_proto_file)
625 }
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);
628  // @@protoc_insertion_point(field_add_pointer:goby.acomms.protobuf.BridgeConfig.load_proto_file)
629 }
630 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
631 BridgeConfig::load_proto_file() const {
632  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.BridgeConfig.load_proto_file)
633  return load_proto_file_;
634 }
635 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
636 BridgeConfig::mutable_load_proto_file() {
637  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.BridgeConfig.load_proto_file)
638  return &load_proto_file_;
639 }
640 
641 // optional .goby.acomms.protobuf.DCCLConfig dccl_cfg = 12;
642 inline bool BridgeConfig::has_dccl_cfg() const {
643  return (_has_bits_[0] & 0x00000020u) != 0;
644 }
645 inline void BridgeConfig::set_has_dccl_cfg() {
646  _has_bits_[0] |= 0x00000020u;
647 }
648 inline void BridgeConfig::clear_has_dccl_cfg() {
649  _has_bits_[0] &= ~0x00000020u;
650 }
651 inline void BridgeConfig::clear_dccl_cfg() {
652  if (dccl_cfg_ != NULL) dccl_cfg_->::goby::acomms::protobuf::DCCLConfig::Clear();
653  clear_has_dccl_cfg();
654 }
655 inline const ::goby::acomms::protobuf::DCCLConfig& BridgeConfig::dccl_cfg() const {
656  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.dccl_cfg)
657  return dccl_cfg_ != NULL ? *dccl_cfg_ : *default_instance_->dccl_cfg_;
658 }
659 inline ::goby::acomms::protobuf::DCCLConfig* BridgeConfig::mutable_dccl_cfg() {
660  set_has_dccl_cfg();
661  if (dccl_cfg_ == NULL) dccl_cfg_ = new ::goby::acomms::protobuf::DCCLConfig;
662  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.BridgeConfig.dccl_cfg)
663  return dccl_cfg_;
664 }
665 inline ::goby::acomms::protobuf::DCCLConfig* BridgeConfig::release_dccl_cfg() {
666  clear_has_dccl_cfg();
667  ::goby::acomms::protobuf::DCCLConfig* temp = dccl_cfg_;
668  dccl_cfg_ = NULL;
669  return temp;
670 }
671 inline void BridgeConfig::set_allocated_dccl_cfg(::goby::acomms::protobuf::DCCLConfig* dccl_cfg) {
672  delete dccl_cfg_;
673  dccl_cfg_ = dccl_cfg;
674  if (dccl_cfg) {
675  set_has_dccl_cfg();
676  } else {
677  clear_has_dccl_cfg();
678  }
679  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.BridgeConfig.dccl_cfg)
680 }
681 
682 // optional bool forward_cacst = 100 [default = true];
683 inline bool BridgeConfig::has_forward_cacst() const {
684  return (_has_bits_[0] & 0x00000040u) != 0;
685 }
686 inline void BridgeConfig::set_has_forward_cacst() {
687  _has_bits_[0] |= 0x00000040u;
688 }
689 inline void BridgeConfig::clear_has_forward_cacst() {
690  _has_bits_[0] &= ~0x00000040u;
691 }
692 inline void BridgeConfig::clear_forward_cacst() {
693  forward_cacst_ = true;
694  clear_has_forward_cacst();
695 }
696 inline bool BridgeConfig::forward_cacst() const {
697  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.forward_cacst)
698  return forward_cacst_;
699 }
700 inline void BridgeConfig::set_forward_cacst(bool value) {
701  set_has_forward_cacst();
702  forward_cacst_ = value;
703  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.BridgeConfig.forward_cacst)
704 }
705 
706 // optional bool forward_ranging_reply = 101 [default = true];
707 inline bool BridgeConfig::has_forward_ranging_reply() const {
708  return (_has_bits_[0] & 0x00000080u) != 0;
709 }
710 inline void BridgeConfig::set_has_forward_ranging_reply() {
711  _has_bits_[0] |= 0x00000080u;
712 }
713 inline void BridgeConfig::clear_has_forward_ranging_reply() {
714  _has_bits_[0] &= ~0x00000080u;
715 }
716 inline void BridgeConfig::clear_forward_ranging_reply() {
717  forward_ranging_reply_ = true;
718  clear_has_forward_ranging_reply();
719 }
720 inline bool BridgeConfig::forward_ranging_reply() const {
721  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.forward_ranging_reply)
722  return forward_ranging_reply_;
723 }
724 inline void BridgeConfig::set_forward_ranging_reply(bool value) {
725  set_has_forward_ranging_reply();
726  forward_ranging_reply_ = value;
727  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.BridgeConfig.forward_ranging_reply)
728 }
729 
730 // optional int32 special_command_ttl = 200 [default = 1800];
731 inline bool BridgeConfig::has_special_command_ttl() const {
732  return (_has_bits_[0] & 0x00000100u) != 0;
733 }
734 inline void BridgeConfig::set_has_special_command_ttl() {
735  _has_bits_[0] |= 0x00000100u;
736 }
737 inline void BridgeConfig::clear_has_special_command_ttl() {
738  _has_bits_[0] &= ~0x00000100u;
739 }
740 inline void BridgeConfig::clear_special_command_ttl() {
741  special_command_ttl_ = 1800;
742  clear_has_special_command_ttl();
743 }
744 inline ::google::protobuf::int32 BridgeConfig::special_command_ttl() const {
745  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.BridgeConfig.special_command_ttl)
746  return special_command_ttl_;
747 }
748 inline void BridgeConfig::set_special_command_ttl(::google::protobuf::int32 value) {
749  set_has_special_command_ttl();
750  special_command_ttl_ = value;
751  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.BridgeConfig.special_command_ttl)
752 }
753 
754 
755 // @@protoc_insertion_point(namespace_scope)
756 
757 } // namespace protobuf
758 } // namespace acomms
759 } // namespace goby
760 
761 #ifndef SWIG
762 namespace google {
763 namespace protobuf {
764 
765 
766 } // namespace google
767 } // namespace protobuf
768 #endif // SWIG
769 
770 // @@protoc_insertion_point(global_scope)
771 
772 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fbridge_2fbridge_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.