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 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/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> 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();
47 class IPGatewayConfig;
49 enum IPGatewayConfig_ModelType {
50 IPGatewayConfig_ModelType_UNIFORM = 1,
51 IPGatewayConfig_ModelType_AUTONOMY_COLLABORATION = 2
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;
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);
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);
82 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
83 return _unknown_fields_;
86 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
87 return &_unknown_fields_;
90 static const ::google::protobuf::Descriptor* descriptor();
98 void CopyFrom(const ::google::protobuf::Message& from);
99 void MergeFrom(const ::google::protobuf::Message& from);
103 bool IsInitialized()
const;
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_; }
115 void SetCachedSize(
int size)
const;
117 ::google::protobuf::Metadata GetMetadata()
const;
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);
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();
137 static inline const ::std::string& ModelType_Name(ModelType value) {
138 return IPGatewayConfig_ModelType_Name(value);
140 static inline bool ModelType_Parse(const ::std::string& name,
142 return IPGatewayConfig_ModelType_Parse(name, value);
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();
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);
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);
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);
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);
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);
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);
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);
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);
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);
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);
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();
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();
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);
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);
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();
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);
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);
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();
326 ::google::protobuf::UnknownFieldSet _unknown_fields_;
328 ::google::protobuf::uint32 _has_bits_[1];
329 mutable int _cached_size_;
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_;
336 double gamma_autonomy_;
337 double gamma_collaboration_;
338 ::google::protobuf::int32 gateway_id_;
339 bool enable_broadcast_address_;
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();
352 void InitAsDefaultInstance();
363 inline bool IPGatewayConfig::has_app()
const {
364 return (_has_bits_[0] & 0x00000001u) != 0;
366 inline void IPGatewayConfig::set_has_app() {
367 _has_bits_[0] |= 0x00000001u;
369 inline void IPGatewayConfig::clear_has_app() {
370 _has_bits_[0] &= ~0x00000001u;
372 inline void IPGatewayConfig::clear_app() {
373 if (app_ != NULL) app_->::AppBaseConfig::Clear();
376 inline const ::AppBaseConfig& IPGatewayConfig::app()
const {
378 return app_ != NULL ? *app_ : *default_instance_->app_;
380 inline ::AppBaseConfig* IPGatewayConfig::mutable_app() {
382 if (app_ == NULL) app_ = new ::AppBaseConfig;
386 inline ::AppBaseConfig* IPGatewayConfig::release_app() {
392 inline void IPGatewayConfig::set_allocated_app(::
AppBaseConfig* app) {
404 inline bool IPGatewayConfig::has_local_ipv4_address()
const {
405 return (_has_bits_[0] & 0x00000002u) != 0;
407 inline void IPGatewayConfig::set_has_local_ipv4_address() {
408 _has_bits_[0] |= 0x00000002u;
410 inline void IPGatewayConfig::clear_has_local_ipv4_address() {
411 _has_bits_[0] &= ~0x00000002u;
413 inline void IPGatewayConfig::clear_local_ipv4_address() {
414 if (local_ipv4_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
415 local_ipv4_address_->clear();
417 clear_has_local_ipv4_address();
419 inline const ::std::string& IPGatewayConfig::local_ipv4_address()
const {
421 return *local_ipv4_address_;
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;
428 local_ipv4_address_->assign(value);
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;
436 local_ipv4_address_->assign(value);
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;
444 local_ipv4_address_->assign(reinterpret_cast<const char*>(value), size);
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;
453 return local_ipv4_address_;
455 inline ::std::string* IPGatewayConfig::release_local_ipv4_address() {
456 clear_has_local_ipv4_address();
457 if (local_ipv4_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
460 ::std::string* temp = local_ipv4_address_;
461 local_ipv4_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
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_;
469 if (local_ipv4_address) {
470 set_has_local_ipv4_address();
471 local_ipv4_address_ = local_ipv4_address;
473 clear_has_local_ipv4_address();
474 local_ipv4_address_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
480 inline bool IPGatewayConfig::has_cidr_netmask_prefix()
const {
481 return (_has_bits_[0] & 0x00000004u) != 0;
483 inline void IPGatewayConfig::set_has_cidr_netmask_prefix() {
484 _has_bits_[0] |= 0x00000004u;
486 inline void IPGatewayConfig::clear_has_cidr_netmask_prefix() {
487 _has_bits_[0] &= ~0x00000004u;
489 inline void IPGatewayConfig::clear_cidr_netmask_prefix() {
490 cidr_netmask_prefix_ = 0u;
491 clear_has_cidr_netmask_prefix();
493 inline ::google::protobuf::uint32 IPGatewayConfig::cidr_netmask_prefix()
const {
495 return cidr_netmask_prefix_;
497 inline void IPGatewayConfig::set_cidr_netmask_prefix(::google::protobuf::uint32 value) {
498 set_has_cidr_netmask_prefix();
499 cidr_netmask_prefix_ = value;
504 inline bool IPGatewayConfig::has_tun_number()
const {
505 return (_has_bits_[0] & 0x00000008u) != 0;
507 inline void IPGatewayConfig::set_has_tun_number() {
508 _has_bits_[0] |= 0x00000008u;
510 inline void IPGatewayConfig::clear_has_tun_number() {
511 _has_bits_[0] &= ~0x00000008u;
513 inline void IPGatewayConfig::clear_tun_number() {
515 clear_has_tun_number();
517 inline ::google::protobuf::int32 IPGatewayConfig::tun_number()
const {
521 inline void IPGatewayConfig::set_tun_number(::google::protobuf::int32 value) {
522 set_has_tun_number();
528 inline bool IPGatewayConfig::has_enable_broadcast_address()
const {
529 return (_has_bits_[0] & 0x00000010u) != 0;
531 inline void IPGatewayConfig::set_has_enable_broadcast_address() {
532 _has_bits_[0] |= 0x00000010u;
534 inline void IPGatewayConfig::clear_has_enable_broadcast_address() {
535 _has_bits_[0] &= ~0x00000010u;
537 inline void IPGatewayConfig::clear_enable_broadcast_address() {
538 enable_broadcast_address_ =
true;
539 clear_has_enable_broadcast_address();
541 inline bool IPGatewayConfig::enable_broadcast_address()
const {
543 return enable_broadcast_address_;
545 inline void IPGatewayConfig::set_enable_broadcast_address(
bool value) {
546 set_has_enable_broadcast_address();
547 enable_broadcast_address_ = value;
552 inline bool IPGatewayConfig::has_dynamic_address_count()
const {
553 return (_has_bits_[0] & 0x00000020u) != 0;
555 inline void IPGatewayConfig::set_has_dynamic_address_count() {
556 _has_bits_[0] |= 0x00000020u;
558 inline void IPGatewayConfig::clear_has_dynamic_address_count() {
559 _has_bits_[0] &= ~0x00000020u;
561 inline void IPGatewayConfig::clear_dynamic_address_count() {
562 dynamic_address_count_ = 0u;
563 clear_has_dynamic_address_count();
565 inline ::google::protobuf::uint32 IPGatewayConfig::dynamic_address_count()
const {
567 return dynamic_address_count_;
569 inline void IPGatewayConfig::set_dynamic_address_count(::google::protobuf::uint32 value) {
570 set_has_dynamic_address_count();
571 dynamic_address_count_ = value;
576 inline bool IPGatewayConfig::has_model_type()
const {
577 return (_has_bits_[0] & 0x00000040u) != 0;
579 inline void IPGatewayConfig::set_has_model_type() {
580 _has_bits_[0] |= 0x00000040u;
582 inline void IPGatewayConfig::clear_has_model_type() {
583 _has_bits_[0] &= ~0x00000040u;
585 inline void IPGatewayConfig::clear_model_type() {
587 clear_has_model_type();
589 inline ::goby::acomms::protobuf::IPGatewayConfig_ModelType IPGatewayConfig::model_type()
const {
591 return static_cast< ::goby::acomms::protobuf::IPGatewayConfig_ModelType
>(model_type_);
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();
601 inline bool IPGatewayConfig::has_gamma_autonomy()
const {
602 return (_has_bits_[0] & 0x00000080u) != 0;
604 inline void IPGatewayConfig::set_has_gamma_autonomy() {
605 _has_bits_[0] |= 0x00000080u;
607 inline void IPGatewayConfig::clear_has_gamma_autonomy() {
608 _has_bits_[0] &= ~0x00000080u;
610 inline void IPGatewayConfig::clear_gamma_autonomy() {
611 gamma_autonomy_ = 0.75;
612 clear_has_gamma_autonomy();
614 inline double IPGatewayConfig::gamma_autonomy()
const {
616 return gamma_autonomy_;
618 inline void IPGatewayConfig::set_gamma_autonomy(
double value) {
619 set_has_gamma_autonomy();
620 gamma_autonomy_ = value;
625 inline bool IPGatewayConfig::has_gamma_collaboration()
const {
626 return (_has_bits_[0] & 0x00000100u) != 0;
628 inline void IPGatewayConfig::set_has_gamma_collaboration() {
629 _has_bits_[0] |= 0x00000100u;
631 inline void IPGatewayConfig::clear_has_gamma_collaboration() {
632 _has_bits_[0] &= ~0x00000100u;
634 inline void IPGatewayConfig::clear_gamma_collaboration() {
635 gamma_collaboration_ = 0.25;
636 clear_has_gamma_collaboration();
638 inline double IPGatewayConfig::gamma_collaboration()
const {
640 return gamma_collaboration_;
642 inline void IPGatewayConfig::set_gamma_collaboration(
double value) {
643 set_has_gamma_collaboration();
644 gamma_collaboration_ = value;
649 inline bool IPGatewayConfig::has_gateway_id()
const {
650 return (_has_bits_[0] & 0x00000200u) != 0;
652 inline void IPGatewayConfig::set_has_gateway_id() {
653 _has_bits_[0] |= 0x00000200u;
655 inline void IPGatewayConfig::clear_has_gateway_id() {
656 _has_bits_[0] &= ~0x00000200u;
658 inline void IPGatewayConfig::clear_gateway_id() {
660 clear_has_gateway_id();
662 inline ::google::protobuf::int32 IPGatewayConfig::gateway_id()
const {
666 inline void IPGatewayConfig::set_gateway_id(::google::protobuf::int32 value) {
667 set_has_gateway_id();
673 inline bool IPGatewayConfig::has_total_ports()
const {
674 return (_has_bits_[0] & 0x00000400u) != 0;
676 inline void IPGatewayConfig::set_has_total_ports() {
677 _has_bits_[0] |= 0x00000400u;
679 inline void IPGatewayConfig::clear_has_total_ports() {
680 _has_bits_[0] &= ~0x00000400u;
682 inline void IPGatewayConfig::clear_total_ports() {
684 clear_has_total_ports();
686 inline ::google::protobuf::int32 IPGatewayConfig::total_ports()
const {
690 inline void IPGatewayConfig::set_total_ports(::google::protobuf::int32 value) {
691 set_has_total_ports();
692 total_ports_ = value;
697 inline int IPGatewayConfig::static_udp_port_size()
const {
698 return static_udp_port_.size();
700 inline void IPGatewayConfig::clear_static_udp_port() {
701 static_udp_port_.Clear();
703 inline ::google::protobuf::uint32 IPGatewayConfig::static_udp_port(
int index)
const {
705 return static_udp_port_.Get(index);
707 inline void IPGatewayConfig::set_static_udp_port(
int index, ::google::protobuf::uint32 value) {
708 static_udp_port_.Set(index, value);
711 inline void IPGatewayConfig::add_static_udp_port(::google::protobuf::uint32 value) {
712 static_udp_port_.Add(value);
715 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
716 IPGatewayConfig::static_udp_port()
const {
718 return static_udp_port_;
720 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
721 IPGatewayConfig::mutable_static_udp_port() {
723 return &static_udp_port_;
727 inline bool IPGatewayConfig::has_mac_cfg()
const {
728 return (_has_bits_[0] & 0x00001000u) != 0;
730 inline void IPGatewayConfig::set_has_mac_cfg() {
731 _has_bits_[0] |= 0x00001000u;
733 inline void IPGatewayConfig::clear_has_mac_cfg() {
734 _has_bits_[0] &= ~0x00001000u;
736 inline void IPGatewayConfig::clear_mac_cfg() {
737 if (mac_cfg_ != NULL) mac_cfg_->::goby::acomms::protobuf::MACConfig::Clear();
740 inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::mac_cfg()
const {
742 return mac_cfg_ != NULL ? *mac_cfg_ : *default_instance_->mac_cfg_;
744 inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::mutable_mac_cfg() {
746 if (mac_cfg_ == NULL) mac_cfg_ = new ::goby::acomms::protobuf::MACConfig;
750 inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::release_mac_cfg() {
768 inline bool IPGatewayConfig::has_mtu()
const {
769 return (_has_bits_[0] & 0x00002000u) != 0;
771 inline void IPGatewayConfig::set_has_mtu() {
772 _has_bits_[0] |= 0x00002000u;
774 inline void IPGatewayConfig::clear_has_mtu() {
775 _has_bits_[0] &= ~0x00002000u;
777 inline void IPGatewayConfig::clear_mtu() {
781 inline ::google::protobuf::uint32 IPGatewayConfig::mtu()
const {
785 inline void IPGatewayConfig::set_mtu(::google::protobuf::uint32 value) {
792 inline bool IPGatewayConfig::has_bypass_mac()
const {
793 return (_has_bits_[0] & 0x00004000u) != 0;
795 inline void IPGatewayConfig::set_has_bypass_mac() {
796 _has_bits_[0] |= 0x00004000u;
798 inline void IPGatewayConfig::clear_has_bypass_mac() {
799 _has_bits_[0] &= ~0x00004000u;
801 inline void IPGatewayConfig::clear_bypass_mac() {
803 clear_has_bypass_mac();
805 inline bool IPGatewayConfig::bypass_mac()
const {
809 inline void IPGatewayConfig::set_bypass_mac(
bool value) {
810 set_has_bypass_mac();
816 inline bool IPGatewayConfig::has_bypass_mac_slot()
const {
817 return (_has_bits_[0] & 0x00008000u) != 0;
819 inline void IPGatewayConfig::set_has_bypass_mac_slot() {
820 _has_bits_[0] |= 0x00008000u;
822 inline void IPGatewayConfig::clear_has_bypass_mac_slot() {
823 _has_bits_[0] &= ~0x00008000u;
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();
829 inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::bypass_mac_slot()
const {
831 return bypass_mac_slot_ != NULL ? *bypass_mac_slot_ : *default_instance_->bypass_mac_slot_;
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;
837 return bypass_mac_slot_;
839 inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::release_bypass_mac_slot() {
840 clear_has_bypass_mac_slot();
842 bypass_mac_slot_ = NULL;
846 delete bypass_mac_slot_;
847 bypass_mac_slot_ = bypass_mac_slot;
848 if (bypass_mac_slot) {
849 set_has_bypass_mac_slot();
851 clear_has_bypass_mac_slot();
857 inline bool IPGatewayConfig::has_queue_size()
const {
858 return (_has_bits_[0] & 0x00010000u) != 0;
860 inline void IPGatewayConfig::set_has_queue_size() {
861 _has_bits_[0] |= 0x00010000u;
863 inline void IPGatewayConfig::clear_has_queue_size() {
864 _has_bits_[0] &= ~0x00010000u;
866 inline void IPGatewayConfig::clear_queue_size() {
868 clear_has_queue_size();
870 inline ::google::protobuf::int32 IPGatewayConfig::queue_size()
const {
874 inline void IPGatewayConfig::set_queue_size(::google::protobuf::int32 value) {
875 set_has_queue_size();
881 inline bool IPGatewayConfig::has_only_rate()
const {
882 return (_has_bits_[0] & 0x00020000u) != 0;
884 inline void IPGatewayConfig::set_has_only_rate() {
885 _has_bits_[0] |= 0x00020000u;
887 inline void IPGatewayConfig::clear_has_only_rate() {
888 _has_bits_[0] &= ~0x00020000u;
890 inline void IPGatewayConfig::clear_only_rate() {
892 clear_has_only_rate();
894 inline ::google::protobuf::int32 IPGatewayConfig::only_rate()
const {
898 inline void IPGatewayConfig::set_only_rate(::google::protobuf::int32 value) {
915 template <>
struct is_proto_enum< ::goby::acomms::protobuf::IPGatewayConfig_ModelType> : ::google::protobuf::internal::true_type {};
917 inline const EnumDescriptor* GetEnumDescriptor< ::goby::acomms::protobuf::IPGatewayConfig_ModelType>() {
918 return ::goby::acomms::protobuf::IPGatewayConfig_ModelType_descriptor();
927 #endif // PROTOBUF_goby_2fapps_2facomms_2fgoby_5fip_5fgateway_2fip_5fgateway_5fconfig_2eproto__INCLUDED
The global namespace for the Goby project.