Goby v2
ip_gateway_config.pb.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/apps/acomms/goby_ip_gateway/ip_gateway_config.proto
3 
4 #ifndef PROTOBUF_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_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/generated_enum_reflection.h>
27 #include <google/protobuf/unknown_field_set.h>
28 #include "goby/common/protobuf/option_extensions.pb.h"
29 #include "goby/common/protobuf/app_base_config.pb.h"
30 #include "goby/acomms/protobuf/amac_config.pb.h"
31 #include "goby/acomms/protobuf/modem_message.pb.h"
32 #include <boost/units/quantity.hpp>
33 #include <boost/units/absolute.hpp>
34 #include <boost/units/dimensionless_type.hpp>
35 #include <boost/units/make_scaled_unit.hpp>
36 // @@protoc_insertion_point(includes)
37 
38 namespace goby {
39 namespace acomms {
40 namespace protobuf {
41 
42 // Internal implementation detail -- do not call these.
43 void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto();
44 void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto();
45 void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto();
46 
47 class IPGatewayConfig;
48 
49 enum IPGatewayConfig_ModelType {
50  IPGatewayConfig_ModelType_UNIFORM = 1,
51  IPGatewayConfig_ModelType_AUTONOMY_COLLABORATION = 2
52 };
53 bool IPGatewayConfig_ModelType_IsValid(int value);
54 const IPGatewayConfig_ModelType IPGatewayConfig_ModelType_ModelType_MIN = IPGatewayConfig_ModelType_UNIFORM;
55 const IPGatewayConfig_ModelType IPGatewayConfig_ModelType_ModelType_MAX = IPGatewayConfig_ModelType_AUTONOMY_COLLABORATION;
56 const int IPGatewayConfig_ModelType_ModelType_ARRAYSIZE = IPGatewayConfig_ModelType_ModelType_MAX + 1;
57 
58 const ::google::protobuf::EnumDescriptor* IPGatewayConfig_ModelType_descriptor();
59 inline const ::std::string& IPGatewayConfig_ModelType_Name(IPGatewayConfig_ModelType value) {
60  return ::google::protobuf::internal::NameOfEnum(
61  IPGatewayConfig_ModelType_descriptor(), value);
62 }
63 inline bool IPGatewayConfig_ModelType_Parse(
64  const ::std::string& name, IPGatewayConfig_ModelType* value) {
65  return ::google::protobuf::internal::ParseNamedEnum<IPGatewayConfig_ModelType>(
66  IPGatewayConfig_ModelType_descriptor(), name, value);
67 }
68 // ===================================================================
69 
70 class IPGatewayConfig : public ::google::protobuf::Message {
71  public:
73  virtual ~IPGatewayConfig();
74 
75  IPGatewayConfig(const IPGatewayConfig& from);
76 
77  inline IPGatewayConfig& operator=(const IPGatewayConfig& from) {
78  CopyFrom(from);
79  return *this;
80  }
81 
82  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
83  return _unknown_fields_;
84  }
85 
86  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
87  return &_unknown_fields_;
88  }
89 
90  static const ::google::protobuf::Descriptor* descriptor();
91  static const IPGatewayConfig& default_instance();
92 
93  void Swap(IPGatewayConfig* other);
94 
95  // implements Message ----------------------------------------------
96 
97  IPGatewayConfig* New() const;
98  void CopyFrom(const ::google::protobuf::Message& from);
99  void MergeFrom(const ::google::protobuf::Message& from);
100  void CopyFrom(const IPGatewayConfig& from);
101  void MergeFrom(const IPGatewayConfig& from);
102  void Clear();
103  bool IsInitialized() const;
104 
105  int ByteSize() const;
106  bool MergePartialFromCodedStream(
107  ::google::protobuf::io::CodedInputStream* input);
108  void SerializeWithCachedSizes(
109  ::google::protobuf::io::CodedOutputStream* output) const;
110  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
111  int GetCachedSize() const { return _cached_size_; }
112  private:
113  void SharedCtor();
114  void SharedDtor();
115  void SetCachedSize(int size) const;
116  public:
117  ::google::protobuf::Metadata GetMetadata() const;
118 
119  // nested types ----------------------------------------------------
120 
121  typedef IPGatewayConfig_ModelType ModelType;
122  static const ModelType UNIFORM = IPGatewayConfig_ModelType_UNIFORM;
123  static const ModelType AUTONOMY_COLLABORATION = IPGatewayConfig_ModelType_AUTONOMY_COLLABORATION;
124  static inline bool ModelType_IsValid(int value) {
125  return IPGatewayConfig_ModelType_IsValid(value);
126  }
127  static const ModelType ModelType_MIN =
128  IPGatewayConfig_ModelType_ModelType_MIN;
129  static const ModelType ModelType_MAX =
130  IPGatewayConfig_ModelType_ModelType_MAX;
131  static const int ModelType_ARRAYSIZE =
132  IPGatewayConfig_ModelType_ModelType_ARRAYSIZE;
133  static inline const ::google::protobuf::EnumDescriptor*
134  ModelType_descriptor() {
135  return IPGatewayConfig_ModelType_descriptor();
136  }
137  static inline const ::std::string& ModelType_Name(ModelType value) {
138  return IPGatewayConfig_ModelType_Name(value);
139  }
140  static inline bool ModelType_Parse(const ::std::string& name,
141  ModelType* value) {
142  return IPGatewayConfig_ModelType_Parse(name, value);
143  }
144 
145  // accessors -------------------------------------------------------
146 
147  // optional .AppBaseConfig app = 1;
148  inline bool has_app() const;
149  inline void clear_app();
150  static const int kAppFieldNumber = 1;
151  inline const ::AppBaseConfig& app() const;
152  inline ::AppBaseConfig* mutable_app();
153  inline ::AppBaseConfig* release_app();
154  inline void set_allocated_app(::AppBaseConfig* app);
155 
156  // required string local_ipv4_address = 2;
157  inline bool has_local_ipv4_address() const;
158  inline void clear_local_ipv4_address();
159  static const int kLocalIpv4AddressFieldNumber = 2;
160  inline const ::std::string& local_ipv4_address() const;
161  inline void set_local_ipv4_address(const ::std::string& value);
162  inline void set_local_ipv4_address(const char* value);
163  inline void set_local_ipv4_address(const char* value, size_t size);
164  inline ::std::string* mutable_local_ipv4_address();
165  inline ::std::string* release_local_ipv4_address();
166  inline void set_allocated_local_ipv4_address(::std::string* local_ipv4_address);
167 
168  // required uint32 cidr_netmask_prefix = 3;
169  inline bool has_cidr_netmask_prefix() const;
170  inline void clear_cidr_netmask_prefix();
171  static const int kCidrNetmaskPrefixFieldNumber = 3;
172  inline ::google::protobuf::uint32 cidr_netmask_prefix() const;
173  inline void set_cidr_netmask_prefix(::google::protobuf::uint32 value);
174 
175  // optional int32 tun_number = 4;
176  inline bool has_tun_number() const;
177  inline void clear_tun_number();
178  static const int kTunNumberFieldNumber = 4;
179  inline ::google::protobuf::int32 tun_number() const;
180  inline void set_tun_number(::google::protobuf::int32 value);
181 
182  // optional bool enable_broadcast_address = 10 [default = true];
183  inline bool has_enable_broadcast_address() const;
184  inline void clear_enable_broadcast_address();
185  static const int kEnableBroadcastAddressFieldNumber = 10;
186  inline bool enable_broadcast_address() const;
187  inline void set_enable_broadcast_address(bool value);
188 
189  // optional uint32 dynamic_address_count = 11 [default = 0];
190  inline bool has_dynamic_address_count() const;
191  inline void clear_dynamic_address_count();
192  static const int kDynamicAddressCountFieldNumber = 11;
193  inline ::google::protobuf::uint32 dynamic_address_count() const;
194  inline void set_dynamic_address_count(::google::protobuf::uint32 value);
195 
196  // optional .goby.acomms.protobuf.IPGatewayConfig.ModelType model_type = 12 [default = UNIFORM];
197  inline bool has_model_type() const;
198  inline void clear_model_type();
199  static const int kModelTypeFieldNumber = 12;
200  inline ::goby::acomms::protobuf::IPGatewayConfig_ModelType model_type() const;
201  inline void set_model_type(::goby::acomms::protobuf::IPGatewayConfig_ModelType value);
202 
203  // optional double gamma_autonomy = 13 [default = 0.75];
204  inline bool has_gamma_autonomy() const;
205  inline void clear_gamma_autonomy();
206  static const int kGammaAutonomyFieldNumber = 13;
207  inline double gamma_autonomy() const;
208  inline void set_gamma_autonomy(double value);
209 
210  // optional double gamma_collaboration = 14 [default = 0.25];
211  inline bool has_gamma_collaboration() const;
212  inline void clear_gamma_collaboration();
213  static const int kGammaCollaborationFieldNumber = 14;
214  inline double gamma_collaboration() const;
215  inline void set_gamma_collaboration(double value);
216 
217  // optional int32 gateway_id = 15 [default = 1];
218  inline bool has_gateway_id() const;
219  inline void clear_gateway_id();
220  static const int kGatewayIdFieldNumber = 15;
221  inline ::google::protobuf::int32 gateway_id() const;
222  inline void set_gateway_id(::google::protobuf::int32 value);
223 
224  // optional int32 total_ports = 20 [default = 1];
225  inline bool has_total_ports() const;
226  inline void clear_total_ports();
227  static const int kTotalPortsFieldNumber = 20;
228  inline ::google::protobuf::int32 total_ports() const;
229  inline void set_total_ports(::google::protobuf::int32 value);
230 
231  // repeated uint32 static_udp_port = 21;
232  inline int static_udp_port_size() const;
233  inline void clear_static_udp_port();
234  static const int kStaticUdpPortFieldNumber = 21;
235  inline ::google::protobuf::uint32 static_udp_port(int index) const;
236  inline void set_static_udp_port(int index, ::google::protobuf::uint32 value);
237  inline void add_static_udp_port(::google::protobuf::uint32 value);
238  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
239  static_udp_port() const;
240  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
241  mutable_static_udp_port();
242 
243  // optional .goby.acomms.protobuf.MACConfig mac_cfg = 30;
244  inline bool has_mac_cfg() const;
245  inline void clear_mac_cfg();
246  static const int kMacCfgFieldNumber = 30;
247  inline const ::goby::acomms::protobuf::MACConfig& mac_cfg() const;
248  inline ::goby::acomms::protobuf::MACConfig* mutable_mac_cfg();
249  inline ::goby::acomms::protobuf::MACConfig* release_mac_cfg();
250  inline void set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig* mac_cfg);
251 
252  // required uint32 mtu = 31;
253  inline bool has_mtu() const;
254  inline void clear_mtu();
255  static const int kMtuFieldNumber = 31;
256  inline ::google::protobuf::uint32 mtu() const;
257  inline void set_mtu(::google::protobuf::uint32 value);
258 
259  // optional bool bypass_mac = 32 [default = false];
260  inline bool has_bypass_mac() const;
261  inline void clear_bypass_mac();
262  static const int kBypassMacFieldNumber = 32;
263  inline bool bypass_mac() const;
264  inline void set_bypass_mac(bool value);
265 
266  // optional .goby.acomms.protobuf.ModemTransmission bypass_mac_slot = 33;
267  inline bool has_bypass_mac_slot() const;
268  inline void clear_bypass_mac_slot();
269  static const int kBypassMacSlotFieldNumber = 33;
270  inline const ::goby::acomms::protobuf::ModemTransmission& bypass_mac_slot() const;
271  inline ::goby::acomms::protobuf::ModemTransmission* mutable_bypass_mac_slot();
272  inline ::goby::acomms::protobuf::ModemTransmission* release_bypass_mac_slot();
273  inline void set_allocated_bypass_mac_slot(::goby::acomms::protobuf::ModemTransmission* bypass_mac_slot);
274 
275  // optional int32 queue_size = 40 [default = 100];
276  inline bool has_queue_size() const;
277  inline void clear_queue_size();
278  static const int kQueueSizeFieldNumber = 40;
279  inline ::google::protobuf::int32 queue_size() const;
280  inline void set_queue_size(::google::protobuf::int32 value);
281 
282  // optional int32 only_rate = 50;
283  inline bool has_only_rate() const;
284  inline void clear_only_rate();
285  static const int kOnlyRateFieldNumber = 50;
286  inline ::google::protobuf::int32 only_rate() const;
287  inline void set_only_rate(::google::protobuf::int32 value);
288 
289  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.IPGatewayConfig)
290  private:
291  inline void set_has_app();
292  inline void clear_has_app();
293  inline void set_has_local_ipv4_address();
294  inline void clear_has_local_ipv4_address();
295  inline void set_has_cidr_netmask_prefix();
296  inline void clear_has_cidr_netmask_prefix();
297  inline void set_has_tun_number();
298  inline void clear_has_tun_number();
299  inline void set_has_enable_broadcast_address();
300  inline void clear_has_enable_broadcast_address();
301  inline void set_has_dynamic_address_count();
302  inline void clear_has_dynamic_address_count();
303  inline void set_has_model_type();
304  inline void clear_has_model_type();
305  inline void set_has_gamma_autonomy();
306  inline void clear_has_gamma_autonomy();
307  inline void set_has_gamma_collaboration();
308  inline void clear_has_gamma_collaboration();
309  inline void set_has_gateway_id();
310  inline void clear_has_gateway_id();
311  inline void set_has_total_ports();
312  inline void clear_has_total_ports();
313  inline void set_has_mac_cfg();
314  inline void clear_has_mac_cfg();
315  inline void set_has_mtu();
316  inline void clear_has_mtu();
317  inline void set_has_bypass_mac();
318  inline void clear_has_bypass_mac();
319  inline void set_has_bypass_mac_slot();
320  inline void clear_has_bypass_mac_slot();
321  inline void set_has_queue_size();
322  inline void clear_has_queue_size();
323  inline void set_has_only_rate();
324  inline void clear_has_only_rate();
325 
326  ::google::protobuf::UnknownFieldSet _unknown_fields_;
327 
328  ::google::protobuf::uint32 _has_bits_[1];
329  mutable int _cached_size_;
330  ::AppBaseConfig* app_;
331  ::std::string* local_ipv4_address_;
332  ::google::protobuf::uint32 cidr_netmask_prefix_;
333  ::google::protobuf::int32 tun_number_;
334  ::google::protobuf::uint32 dynamic_address_count_;
335  int model_type_;
336  double gamma_autonomy_;
337  double gamma_collaboration_;
338  ::google::protobuf::int32 gateway_id_;
339  bool enable_broadcast_address_;
340  bool bypass_mac_;
341  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > static_udp_port_;
342  ::google::protobuf::int32 total_ports_;
343  ::google::protobuf::uint32 mtu_;
346  ::google::protobuf::int32 queue_size_;
347  ::google::protobuf::int32 only_rate_;
348  friend void protobuf_AddDesc_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto();
349  friend void protobuf_AssignDesc_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto();
350  friend void protobuf_ShutdownFile_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto();
351 
352  void InitAsDefaultInstance();
353  static IPGatewayConfig* default_instance_;
354 };
355 // ===================================================================
356 
357 
358 // ===================================================================
359 
360 // IPGatewayConfig
361 
362 // optional .AppBaseConfig app = 1;
363 inline bool IPGatewayConfig::has_app() const {
364  return (_has_bits_[0] & 0x00000001u) != 0;
365 }
366 inline void IPGatewayConfig::set_has_app() {
367  _has_bits_[0] |= 0x00000001u;
368 }
369 inline void IPGatewayConfig::clear_has_app() {
370  _has_bits_[0] &= ~0x00000001u;
371 }
372 inline void IPGatewayConfig::clear_app() {
373  if (app_ != NULL) app_->::AppBaseConfig::Clear();
374  clear_has_app();
375 }
376 inline const ::AppBaseConfig& IPGatewayConfig::app() const {
377  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.app)
378  return app_ != NULL ? *app_ : *default_instance_->app_;
379 }
380 inline ::AppBaseConfig* IPGatewayConfig::mutable_app() {
381  set_has_app();
382  if (app_ == NULL) app_ = new ::AppBaseConfig;
383  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.IPGatewayConfig.app)
384  return app_;
385 }
386 inline ::AppBaseConfig* IPGatewayConfig::release_app() {
387  clear_has_app();
388  ::AppBaseConfig* temp = app_;
389  app_ = NULL;
390  return temp;
391 }
392 inline void IPGatewayConfig::set_allocated_app(::AppBaseConfig* app) {
393  delete app_;
394  app_ = app;
395  if (app) {
396  set_has_app();
397  } else {
398  clear_has_app();
399  }
400  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.IPGatewayConfig.app)
401 }
402 
403 // required string local_ipv4_address = 2;
404 inline bool IPGatewayConfig::has_local_ipv4_address() const {
405  return (_has_bits_[0] & 0x00000002u) != 0;
406 }
407 inline void IPGatewayConfig::set_has_local_ipv4_address() {
408  _has_bits_[0] |= 0x00000002u;
409 }
410 inline void IPGatewayConfig::clear_has_local_ipv4_address() {
411  _has_bits_[0] &= ~0x00000002u;
412 }
413 inline void IPGatewayConfig::clear_local_ipv4_address() {
414  if (local_ipv4_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
415  local_ipv4_address_->clear();
416  }
417  clear_has_local_ipv4_address();
418 }
419 inline const ::std::string& IPGatewayConfig::local_ipv4_address() const {
420  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
421  return *local_ipv4_address_;
422 }
423 inline void IPGatewayConfig::set_local_ipv4_address(const ::std::string& value) {
424  set_has_local_ipv4_address();
425  if (local_ipv4_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
426  local_ipv4_address_ = new ::std::string;
427  }
428  local_ipv4_address_->assign(value);
429  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
430 }
431 inline void IPGatewayConfig::set_local_ipv4_address(const char* value) {
432  set_has_local_ipv4_address();
433  if (local_ipv4_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
434  local_ipv4_address_ = new ::std::string;
435  }
436  local_ipv4_address_->assign(value);
437  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
438 }
439 inline void IPGatewayConfig::set_local_ipv4_address(const char* value, size_t size) {
440  set_has_local_ipv4_address();
441  if (local_ipv4_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
442  local_ipv4_address_ = new ::std::string;
443  }
444  local_ipv4_address_->assign(reinterpret_cast<const char*>(value), size);
445  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
446 }
447 inline ::std::string* IPGatewayConfig::mutable_local_ipv4_address() {
448  set_has_local_ipv4_address();
449  if (local_ipv4_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
450  local_ipv4_address_ = new ::std::string;
451  }
452  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
453  return local_ipv4_address_;
454 }
455 inline ::std::string* IPGatewayConfig::release_local_ipv4_address() {
456  clear_has_local_ipv4_address();
457  if (local_ipv4_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
458  return NULL;
459  } else {
460  ::std::string* temp = local_ipv4_address_;
461  local_ipv4_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
462  return temp;
463  }
464 }
465 inline void IPGatewayConfig::set_allocated_local_ipv4_address(::std::string* local_ipv4_address) {
466  if (local_ipv4_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
467  delete local_ipv4_address_;
468  }
469  if (local_ipv4_address) {
470  set_has_local_ipv4_address();
471  local_ipv4_address_ = local_ipv4_address;
472  } else {
473  clear_has_local_ipv4_address();
474  local_ipv4_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
475  }
476  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
477 }
478 
479 // required uint32 cidr_netmask_prefix = 3;
480 inline bool IPGatewayConfig::has_cidr_netmask_prefix() const {
481  return (_has_bits_[0] & 0x00000004u) != 0;
482 }
483 inline void IPGatewayConfig::set_has_cidr_netmask_prefix() {
484  _has_bits_[0] |= 0x00000004u;
485 }
486 inline void IPGatewayConfig::clear_has_cidr_netmask_prefix() {
487  _has_bits_[0] &= ~0x00000004u;
488 }
489 inline void IPGatewayConfig::clear_cidr_netmask_prefix() {
490  cidr_netmask_prefix_ = 0u;
491  clear_has_cidr_netmask_prefix();
492 }
493 inline ::google::protobuf::uint32 IPGatewayConfig::cidr_netmask_prefix() const {
494  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.cidr_netmask_prefix)
495  return cidr_netmask_prefix_;
496 }
497 inline void IPGatewayConfig::set_cidr_netmask_prefix(::google::protobuf::uint32 value) {
498  set_has_cidr_netmask_prefix();
499  cidr_netmask_prefix_ = value;
500  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.cidr_netmask_prefix)
501 }
502 
503 // optional int32 tun_number = 4;
504 inline bool IPGatewayConfig::has_tun_number() const {
505  return (_has_bits_[0] & 0x00000008u) != 0;
506 }
507 inline void IPGatewayConfig::set_has_tun_number() {
508  _has_bits_[0] |= 0x00000008u;
509 }
510 inline void IPGatewayConfig::clear_has_tun_number() {
511  _has_bits_[0] &= ~0x00000008u;
512 }
513 inline void IPGatewayConfig::clear_tun_number() {
514  tun_number_ = 0;
515  clear_has_tun_number();
516 }
517 inline ::google::protobuf::int32 IPGatewayConfig::tun_number() const {
518  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.tun_number)
519  return tun_number_;
520 }
521 inline void IPGatewayConfig::set_tun_number(::google::protobuf::int32 value) {
522  set_has_tun_number();
523  tun_number_ = value;
524  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.tun_number)
525 }
526 
527 // optional bool enable_broadcast_address = 10 [default = true];
528 inline bool IPGatewayConfig::has_enable_broadcast_address() const {
529  return (_has_bits_[0] & 0x00000010u) != 0;
530 }
531 inline void IPGatewayConfig::set_has_enable_broadcast_address() {
532  _has_bits_[0] |= 0x00000010u;
533 }
534 inline void IPGatewayConfig::clear_has_enable_broadcast_address() {
535  _has_bits_[0] &= ~0x00000010u;
536 }
537 inline void IPGatewayConfig::clear_enable_broadcast_address() {
538  enable_broadcast_address_ = true;
539  clear_has_enable_broadcast_address();
540 }
541 inline bool IPGatewayConfig::enable_broadcast_address() const {
542  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.enable_broadcast_address)
543  return enable_broadcast_address_;
544 }
545 inline void IPGatewayConfig::set_enable_broadcast_address(bool value) {
546  set_has_enable_broadcast_address();
547  enable_broadcast_address_ = value;
548  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.enable_broadcast_address)
549 }
550 
551 // optional uint32 dynamic_address_count = 11 [default = 0];
552 inline bool IPGatewayConfig::has_dynamic_address_count() const {
553  return (_has_bits_[0] & 0x00000020u) != 0;
554 }
555 inline void IPGatewayConfig::set_has_dynamic_address_count() {
556  _has_bits_[0] |= 0x00000020u;
557 }
558 inline void IPGatewayConfig::clear_has_dynamic_address_count() {
559  _has_bits_[0] &= ~0x00000020u;
560 }
561 inline void IPGatewayConfig::clear_dynamic_address_count() {
562  dynamic_address_count_ = 0u;
563  clear_has_dynamic_address_count();
564 }
565 inline ::google::protobuf::uint32 IPGatewayConfig::dynamic_address_count() const {
566  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.dynamic_address_count)
567  return dynamic_address_count_;
568 }
569 inline void IPGatewayConfig::set_dynamic_address_count(::google::protobuf::uint32 value) {
570  set_has_dynamic_address_count();
571  dynamic_address_count_ = value;
572  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.dynamic_address_count)
573 }
574 
575 // optional .goby.acomms.protobuf.IPGatewayConfig.ModelType model_type = 12 [default = UNIFORM];
576 inline bool IPGatewayConfig::has_model_type() const {
577  return (_has_bits_[0] & 0x00000040u) != 0;
578 }
579 inline void IPGatewayConfig::set_has_model_type() {
580  _has_bits_[0] |= 0x00000040u;
581 }
582 inline void IPGatewayConfig::clear_has_model_type() {
583  _has_bits_[0] &= ~0x00000040u;
584 }
585 inline void IPGatewayConfig::clear_model_type() {
586  model_type_ = 1;
587  clear_has_model_type();
588 }
589 inline ::goby::acomms::protobuf::IPGatewayConfig_ModelType IPGatewayConfig::model_type() const {
590  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.model_type)
591  return static_cast< ::goby::acomms::protobuf::IPGatewayConfig_ModelType >(model_type_);
592 }
593 inline void IPGatewayConfig::set_model_type(::goby::acomms::protobuf::IPGatewayConfig_ModelType value) {
594  assert(::goby::acomms::protobuf::IPGatewayConfig_ModelType_IsValid(value));
595  set_has_model_type();
596  model_type_ = value;
597  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.model_type)
598 }
599 
600 // optional double gamma_autonomy = 13 [default = 0.75];
601 inline bool IPGatewayConfig::has_gamma_autonomy() const {
602  return (_has_bits_[0] & 0x00000080u) != 0;
603 }
604 inline void IPGatewayConfig::set_has_gamma_autonomy() {
605  _has_bits_[0] |= 0x00000080u;
606 }
607 inline void IPGatewayConfig::clear_has_gamma_autonomy() {
608  _has_bits_[0] &= ~0x00000080u;
609 }
610 inline void IPGatewayConfig::clear_gamma_autonomy() {
611  gamma_autonomy_ = 0.75;
612  clear_has_gamma_autonomy();
613 }
614 inline double IPGatewayConfig::gamma_autonomy() const {
615  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.gamma_autonomy)
616  return gamma_autonomy_;
617 }
618 inline void IPGatewayConfig::set_gamma_autonomy(double value) {
619  set_has_gamma_autonomy();
620  gamma_autonomy_ = value;
621  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.gamma_autonomy)
622 }
623 
624 // optional double gamma_collaboration = 14 [default = 0.25];
625 inline bool IPGatewayConfig::has_gamma_collaboration() const {
626  return (_has_bits_[0] & 0x00000100u) != 0;
627 }
628 inline void IPGatewayConfig::set_has_gamma_collaboration() {
629  _has_bits_[0] |= 0x00000100u;
630 }
631 inline void IPGatewayConfig::clear_has_gamma_collaboration() {
632  _has_bits_[0] &= ~0x00000100u;
633 }
634 inline void IPGatewayConfig::clear_gamma_collaboration() {
635  gamma_collaboration_ = 0.25;
636  clear_has_gamma_collaboration();
637 }
638 inline double IPGatewayConfig::gamma_collaboration() const {
639  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.gamma_collaboration)
640  return gamma_collaboration_;
641 }
642 inline void IPGatewayConfig::set_gamma_collaboration(double value) {
643  set_has_gamma_collaboration();
644  gamma_collaboration_ = value;
645  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.gamma_collaboration)
646 }
647 
648 // optional int32 gateway_id = 15 [default = 1];
649 inline bool IPGatewayConfig::has_gateway_id() const {
650  return (_has_bits_[0] & 0x00000200u) != 0;
651 }
652 inline void IPGatewayConfig::set_has_gateway_id() {
653  _has_bits_[0] |= 0x00000200u;
654 }
655 inline void IPGatewayConfig::clear_has_gateway_id() {
656  _has_bits_[0] &= ~0x00000200u;
657 }
658 inline void IPGatewayConfig::clear_gateway_id() {
659  gateway_id_ = 1;
660  clear_has_gateway_id();
661 }
662 inline ::google::protobuf::int32 IPGatewayConfig::gateway_id() const {
663  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.gateway_id)
664  return gateway_id_;
665 }
666 inline void IPGatewayConfig::set_gateway_id(::google::protobuf::int32 value) {
667  set_has_gateway_id();
668  gateway_id_ = value;
669  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.gateway_id)
670 }
671 
672 // optional int32 total_ports = 20 [default = 1];
673 inline bool IPGatewayConfig::has_total_ports() const {
674  return (_has_bits_[0] & 0x00000400u) != 0;
675 }
676 inline void IPGatewayConfig::set_has_total_ports() {
677  _has_bits_[0] |= 0x00000400u;
678 }
679 inline void IPGatewayConfig::clear_has_total_ports() {
680  _has_bits_[0] &= ~0x00000400u;
681 }
682 inline void IPGatewayConfig::clear_total_ports() {
683  total_ports_ = 1;
684  clear_has_total_ports();
685 }
686 inline ::google::protobuf::int32 IPGatewayConfig::total_ports() const {
687  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.total_ports)
688  return total_ports_;
689 }
690 inline void IPGatewayConfig::set_total_ports(::google::protobuf::int32 value) {
691  set_has_total_ports();
692  total_ports_ = value;
693  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.total_ports)
694 }
695 
696 // repeated uint32 static_udp_port = 21;
697 inline int IPGatewayConfig::static_udp_port_size() const {
698  return static_udp_port_.size();
699 }
700 inline void IPGatewayConfig::clear_static_udp_port() {
701  static_udp_port_.Clear();
702 }
703 inline ::google::protobuf::uint32 IPGatewayConfig::static_udp_port(int index) const {
704  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.static_udp_port)
705  return static_udp_port_.Get(index);
706 }
707 inline void IPGatewayConfig::set_static_udp_port(int index, ::google::protobuf::uint32 value) {
708  static_udp_port_.Set(index, value);
709  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.static_udp_port)
710 }
711 inline void IPGatewayConfig::add_static_udp_port(::google::protobuf::uint32 value) {
712  static_udp_port_.Add(value);
713  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.IPGatewayConfig.static_udp_port)
714 }
715 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
716 IPGatewayConfig::static_udp_port() const {
717  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.IPGatewayConfig.static_udp_port)
718  return static_udp_port_;
719 }
720 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
721 IPGatewayConfig::mutable_static_udp_port() {
722  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.IPGatewayConfig.static_udp_port)
723  return &static_udp_port_;
724 }
725 
726 // optional .goby.acomms.protobuf.MACConfig mac_cfg = 30;
727 inline bool IPGatewayConfig::has_mac_cfg() const {
728  return (_has_bits_[0] & 0x00001000u) != 0;
729 }
730 inline void IPGatewayConfig::set_has_mac_cfg() {
731  _has_bits_[0] |= 0x00001000u;
732 }
733 inline void IPGatewayConfig::clear_has_mac_cfg() {
734  _has_bits_[0] &= ~0x00001000u;
735 }
736 inline void IPGatewayConfig::clear_mac_cfg() {
737  if (mac_cfg_ != NULL) mac_cfg_->::goby::acomms::protobuf::MACConfig::Clear();
738  clear_has_mac_cfg();
739 }
740 inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::mac_cfg() const {
741  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.mac_cfg)
742  return mac_cfg_ != NULL ? *mac_cfg_ : *default_instance_->mac_cfg_;
743 }
744 inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::mutable_mac_cfg() {
745  set_has_mac_cfg();
746  if (mac_cfg_ == NULL) mac_cfg_ = new ::goby::acomms::protobuf::MACConfig;
747  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.IPGatewayConfig.mac_cfg)
748  return mac_cfg_;
749 }
750 inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::release_mac_cfg() {
751  clear_has_mac_cfg();
752  ::goby::acomms::protobuf::MACConfig* temp = mac_cfg_;
753  mac_cfg_ = NULL;
754  return temp;
755 }
756 inline void IPGatewayConfig::set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig* mac_cfg) {
757  delete mac_cfg_;
758  mac_cfg_ = mac_cfg;
759  if (mac_cfg) {
760  set_has_mac_cfg();
761  } else {
762  clear_has_mac_cfg();
763  }
764  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.IPGatewayConfig.mac_cfg)
765 }
766 
767 // required uint32 mtu = 31;
768 inline bool IPGatewayConfig::has_mtu() const {
769  return (_has_bits_[0] & 0x00002000u) != 0;
770 }
771 inline void IPGatewayConfig::set_has_mtu() {
772  _has_bits_[0] |= 0x00002000u;
773 }
774 inline void IPGatewayConfig::clear_has_mtu() {
775  _has_bits_[0] &= ~0x00002000u;
776 }
777 inline void IPGatewayConfig::clear_mtu() {
778  mtu_ = 0u;
779  clear_has_mtu();
780 }
781 inline ::google::protobuf::uint32 IPGatewayConfig::mtu() const {
782  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.mtu)
783  return mtu_;
784 }
785 inline void IPGatewayConfig::set_mtu(::google::protobuf::uint32 value) {
786  set_has_mtu();
787  mtu_ = value;
788  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.mtu)
789 }
790 
791 // optional bool bypass_mac = 32 [default = false];
792 inline bool IPGatewayConfig::has_bypass_mac() const {
793  return (_has_bits_[0] & 0x00004000u) != 0;
794 }
795 inline void IPGatewayConfig::set_has_bypass_mac() {
796  _has_bits_[0] |= 0x00004000u;
797 }
798 inline void IPGatewayConfig::clear_has_bypass_mac() {
799  _has_bits_[0] &= ~0x00004000u;
800 }
801 inline void IPGatewayConfig::clear_bypass_mac() {
802  bypass_mac_ = false;
803  clear_has_bypass_mac();
804 }
805 inline bool IPGatewayConfig::bypass_mac() const {
806  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.bypass_mac)
807  return bypass_mac_;
808 }
809 inline void IPGatewayConfig::set_bypass_mac(bool value) {
810  set_has_bypass_mac();
811  bypass_mac_ = value;
812  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.bypass_mac)
813 }
814 
815 // optional .goby.acomms.protobuf.ModemTransmission bypass_mac_slot = 33;
816 inline bool IPGatewayConfig::has_bypass_mac_slot() const {
817  return (_has_bits_[0] & 0x00008000u) != 0;
818 }
819 inline void IPGatewayConfig::set_has_bypass_mac_slot() {
820  _has_bits_[0] |= 0x00008000u;
821 }
822 inline void IPGatewayConfig::clear_has_bypass_mac_slot() {
823  _has_bits_[0] &= ~0x00008000u;
824 }
825 inline void IPGatewayConfig::clear_bypass_mac_slot() {
826  if (bypass_mac_slot_ != NULL) bypass_mac_slot_->::goby::acomms::protobuf::ModemTransmission::Clear();
827  clear_has_bypass_mac_slot();
828 }
829 inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::bypass_mac_slot() const {
830  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
831  return bypass_mac_slot_ != NULL ? *bypass_mac_slot_ : *default_instance_->bypass_mac_slot_;
832 }
833 inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::mutable_bypass_mac_slot() {
834  set_has_bypass_mac_slot();
835  if (bypass_mac_slot_ == NULL) bypass_mac_slot_ = new ::goby::acomms::protobuf::ModemTransmission;
836  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
837  return bypass_mac_slot_;
838 }
839 inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::release_bypass_mac_slot() {
840  clear_has_bypass_mac_slot();
841  ::goby::acomms::protobuf::ModemTransmission* temp = bypass_mac_slot_;
842  bypass_mac_slot_ = NULL;
843  return temp;
844 }
845 inline void IPGatewayConfig::set_allocated_bypass_mac_slot(::goby::acomms::protobuf::ModemTransmission* bypass_mac_slot) {
846  delete bypass_mac_slot_;
847  bypass_mac_slot_ = bypass_mac_slot;
848  if (bypass_mac_slot) {
849  set_has_bypass_mac_slot();
850  } else {
851  clear_has_bypass_mac_slot();
852  }
853  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
854 }
855 
856 // optional int32 queue_size = 40 [default = 100];
857 inline bool IPGatewayConfig::has_queue_size() const {
858  return (_has_bits_[0] & 0x00010000u) != 0;
859 }
860 inline void IPGatewayConfig::set_has_queue_size() {
861  _has_bits_[0] |= 0x00010000u;
862 }
863 inline void IPGatewayConfig::clear_has_queue_size() {
864  _has_bits_[0] &= ~0x00010000u;
865 }
866 inline void IPGatewayConfig::clear_queue_size() {
867  queue_size_ = 100;
868  clear_has_queue_size();
869 }
870 inline ::google::protobuf::int32 IPGatewayConfig::queue_size() const {
871  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.queue_size)
872  return queue_size_;
873 }
874 inline void IPGatewayConfig::set_queue_size(::google::protobuf::int32 value) {
875  set_has_queue_size();
876  queue_size_ = value;
877  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.queue_size)
878 }
879 
880 // optional int32 only_rate = 50;
881 inline bool IPGatewayConfig::has_only_rate() const {
882  return (_has_bits_[0] & 0x00020000u) != 0;
883 }
884 inline void IPGatewayConfig::set_has_only_rate() {
885  _has_bits_[0] |= 0x00020000u;
886 }
887 inline void IPGatewayConfig::clear_has_only_rate() {
888  _has_bits_[0] &= ~0x00020000u;
889 }
890 inline void IPGatewayConfig::clear_only_rate() {
891  only_rate_ = 0;
892  clear_has_only_rate();
893 }
894 inline ::google::protobuf::int32 IPGatewayConfig::only_rate() const {
895  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.IPGatewayConfig.only_rate)
896  return only_rate_;
897 }
898 inline void IPGatewayConfig::set_only_rate(::google::protobuf::int32 value) {
899  set_has_only_rate();
900  only_rate_ = value;
901  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.IPGatewayConfig.only_rate)
902 }
903 
904 
905 // @@protoc_insertion_point(namespace_scope)
906 
907 } // namespace protobuf
908 } // namespace acomms
909 } // namespace goby
910 
911 #ifndef SWIG
912 namespace google {
913 namespace protobuf {
914 
915 template <> struct is_proto_enum< ::goby::acomms::protobuf::IPGatewayConfig_ModelType> : ::google::protobuf::internal::true_type {};
916 template <>
917 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::IPGatewayConfig_ModelType>() {
918  return ::goby::acomms::protobuf::IPGatewayConfig_ModelType_descriptor();
919 }
920 
921 } // namespace google
922 } // namespace protobuf
923 #endif // SWIG
924 
925 // @@protoc_insertion_point(global_scope)
926 
927 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.