4 #ifndef PROTOBUF_goby_2facomms_2fprotobuf_2froute_2eproto__INCLUDED 5 #define PROTOBUF_goby_2facomms_2fprotobuf_2froute_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/generated_message_util.h> 23 #include <google/protobuf/message.h> 24 #include <google/protobuf/repeated_field.h> 25 #include <google/protobuf/extension_set.h> 26 #include <google/protobuf/unknown_field_set.h> 27 #include "goby/common/protobuf/option_extensions.pb.h" 28 #include "dccl/option_extensions.pb.h" 29 #include <boost/units/quantity.hpp> 30 #include <boost/units/absolute.hpp> 31 #include <boost/units/dimensionless_type.hpp> 32 #include <boost/units/make_scaled_unit.hpp> 40 void protobuf_AddDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
41 void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
42 void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2froute_2eproto();
45 class RouteManagerConfig;
62 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
63 return _unknown_fields_;
66 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
67 return &_unknown_fields_;
70 static const ::google::protobuf::Descriptor* descriptor();
78 void CopyFrom(const ::google::protobuf::Message& from);
79 void MergeFrom(const ::google::protobuf::Message& from);
83 bool IsInitialized()
const;
86 bool MergePartialFromCodedStream(
87 ::google::protobuf::io::CodedInputStream* input);
88 void SerializeWithCachedSizes(
89 ::google::protobuf::io::CodedOutputStream* output)
const;
90 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
91 int GetCachedSize()
const {
return _cached_size_; }
95 void SetCachedSize(
int size)
const;
97 ::google::protobuf::Metadata GetMetadata()
const;
104 inline int hop_size()
const;
105 inline void clear_hop();
106 static const int kHopFieldNumber = 1;
107 inline ::google::protobuf::int32 hop(
int index)
const;
108 inline void set_hop(
int index, ::google::protobuf::int32 value);
109 inline void add_hop(::google::protobuf::int32 value);
110 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
112 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
118 ::google::protobuf::UnknownFieldSet _unknown_fields_;
120 ::google::protobuf::uint32 _has_bits_[1];
121 mutable int _cached_size_;
122 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > hop_;
123 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
124 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
125 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2froute_2eproto();
127 void InitAsDefaultInstance();
144 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
145 return _unknown_fields_;
148 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
149 return &_unknown_fields_;
152 static const ::google::protobuf::Descriptor* descriptor();
160 void CopyFrom(const ::google::protobuf::Message& from);
161 void MergeFrom(const ::google::protobuf::Message& from);
165 bool IsInitialized()
const;
167 int ByteSize()
const;
168 bool MergePartialFromCodedStream(
169 ::google::protobuf::io::CodedInputStream* input);
170 void SerializeWithCachedSizes(
171 ::google::protobuf::io::CodedOutputStream* output)
const;
172 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
173 int GetCachedSize()
const {
return _cached_size_; }
177 void SetCachedSize(
int size)
const;
179 ::google::protobuf::Metadata GetMetadata()
const;
186 inline bool has_route()
const;
187 inline void clear_route();
188 static const int kRouteFieldNumber = 1;
189 inline const ::goby::acomms::protobuf::StaticRoute& route()
const;
190 inline ::goby::acomms::protobuf::StaticRoute* mutable_route();
191 inline ::goby::acomms::protobuf::StaticRoute* release_route();
195 inline bool has_subnet_mask()
const;
196 inline void clear_subnet_mask();
197 static const int kSubnetMaskFieldNumber = 2;
198 inline ::google::protobuf::uint32 subnet_mask()
const;
199 inline void set_subnet_mask(::google::protobuf::uint32 value);
202 inline bool has_default_gateway()
const;
203 inline void clear_default_gateway();
204 static const int kDefaultGatewayFieldNumber = 3;
205 inline ::google::protobuf::uint32 default_gateway()
const;
206 inline void set_default_gateway(::google::protobuf::uint32 value);
210 inline void set_has_route();
211 inline void clear_has_route();
212 inline void set_has_subnet_mask();
213 inline void clear_has_subnet_mask();
214 inline void set_has_default_gateway();
215 inline void clear_has_default_gateway();
217 ::google::protobuf::UnknownFieldSet _unknown_fields_;
219 ::google::protobuf::uint32 _has_bits_[1];
220 mutable int _cached_size_;
222 ::google::protobuf::uint32 subnet_mask_;
223 ::google::protobuf::uint32 default_gateway_;
224 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
225 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
226 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2froute_2eproto();
228 void InitAsDefaultInstance();
245 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
246 return _unknown_fields_;
249 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
250 return &_unknown_fields_;
253 static const ::google::protobuf::Descriptor* descriptor();
261 void CopyFrom(const ::google::protobuf::Message& from);
262 void MergeFrom(const ::google::protobuf::Message& from);
266 bool IsInitialized()
const;
268 int ByteSize()
const;
269 bool MergePartialFromCodedStream(
270 ::google::protobuf::io::CodedInputStream* input);
271 void SerializeWithCachedSizes(
272 ::google::protobuf::io::CodedOutputStream* output)
const;
273 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
274 int GetCachedSize()
const {
return _cached_size_; }
278 void SetCachedSize(
int size)
const;
280 ::google::protobuf::Metadata GetMetadata()
const;
287 inline bool has_src()
const;
288 inline void clear_src();
289 static const int kSrcFieldNumber = 1;
290 inline ::google::protobuf::int32 src()
const;
291 inline void set_src(::google::protobuf::int32 value);
294 inline bool has_dest()
const;
295 inline void clear_dest();
296 static const int kDestFieldNumber = 2;
297 inline ::google::protobuf::int32 dest()
const;
298 inline void set_dest(::google::protobuf::int32 value);
301 inline bool has_time()
const;
302 inline void clear_time();
303 static const int kTimeFieldNumber = 3;
304 inline ::google::protobuf::uint64 time()
const;
305 inline void set_time(::google::protobuf::uint64 value);
308 inline bool has_new_route()
const;
309 inline void clear_new_route();
310 static const int kNewRouteFieldNumber = 4;
311 inline const ::goby::acomms::protobuf::StaticRoute& new_route()
const;
312 inline ::goby::acomms::protobuf::StaticRoute* mutable_new_route();
313 inline ::goby::acomms::protobuf::StaticRoute* release_new_route();
316 enum DCCLParameters { DCCL_ID = 514, DCCL_MAX_BYTES = 64 };
319 inline void set_has_src();
320 inline void clear_has_src();
321 inline void set_has_dest();
322 inline void clear_has_dest();
323 inline void set_has_time();
324 inline void clear_has_time();
325 inline void set_has_new_route();
326 inline void clear_has_new_route();
328 ::google::protobuf::UnknownFieldSet _unknown_fields_;
330 ::google::protobuf::uint32 _has_bits_[1];
331 mutable int _cached_size_;
332 ::google::protobuf::int32 src_;
333 ::google::protobuf::int32 dest_;
334 ::google::protobuf::uint64 time_;
336 friend void protobuf_AddDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
337 friend void protobuf_AssignDesc_goby_2facomms_2fprotobuf_2froute_2eproto();
338 friend void protobuf_ShutdownFile_goby_2facomms_2fprotobuf_2froute_2eproto();
340 void InitAsDefaultInstance();
351 inline int StaticRoute::hop_size()
const {
354 inline void StaticRoute::clear_hop() {
357 inline ::google::protobuf::int32 StaticRoute::hop(
int index)
const {
359 return hop_.Get(index);
361 inline void StaticRoute::set_hop(
int index, ::google::protobuf::int32 value) {
362 hop_.Set(index, value);
365 inline void StaticRoute::add_hop(::google::protobuf::int32 value) {
369 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
370 StaticRoute::hop()
const {
374 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
375 StaticRoute::mutable_hop() {
385 inline bool RouteManagerConfig::has_route()
const {
386 return (_has_bits_[0] & 0x00000001u) != 0;
388 inline void RouteManagerConfig::set_has_route() {
389 _has_bits_[0] |= 0x00000001u;
391 inline void RouteManagerConfig::clear_has_route() {
392 _has_bits_[0] &= ~0x00000001u;
394 inline void RouteManagerConfig::clear_route() {
395 if (route_ != NULL) route_->::goby::acomms::protobuf::StaticRoute::Clear();
398 inline const ::goby::acomms::protobuf::StaticRoute& RouteManagerConfig::route()
const {
400 return route_ != NULL ? *route_ : *default_instance_->route_;
402 inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::mutable_route() {
404 if (route_ == NULL) route_ = new ::goby::acomms::protobuf::StaticRoute;
408 inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::release_route() {
426 inline bool RouteManagerConfig::has_subnet_mask()
const {
427 return (_has_bits_[0] & 0x00000002u) != 0;
429 inline void RouteManagerConfig::set_has_subnet_mask() {
430 _has_bits_[0] |= 0x00000002u;
432 inline void RouteManagerConfig::clear_has_subnet_mask() {
433 _has_bits_[0] &= ~0x00000002u;
435 inline void RouteManagerConfig::clear_subnet_mask() {
436 subnet_mask_ = 4294967040u;
437 clear_has_subnet_mask();
439 inline ::google::protobuf::uint32 RouteManagerConfig::subnet_mask()
const {
443 inline void RouteManagerConfig::set_subnet_mask(::google::protobuf::uint32 value) {
444 set_has_subnet_mask();
445 subnet_mask_ = value;
450 inline bool RouteManagerConfig::has_default_gateway()
const {
451 return (_has_bits_[0] & 0x00000004u) != 0;
453 inline void RouteManagerConfig::set_has_default_gateway() {
454 _has_bits_[0] |= 0x00000004u;
456 inline void RouteManagerConfig::clear_has_default_gateway() {
457 _has_bits_[0] &= ~0x00000004u;
459 inline void RouteManagerConfig::clear_default_gateway() {
460 default_gateway_ = 0u;
461 clear_has_default_gateway();
463 inline ::google::protobuf::uint32 RouteManagerConfig::default_gateway()
const {
465 return default_gateway_;
467 inline void RouteManagerConfig::set_default_gateway(::google::protobuf::uint32 value) {
468 set_has_default_gateway();
469 default_gateway_ = value;
478 inline bool RouteCommand::has_src()
const {
479 return (_has_bits_[0] & 0x00000001u) != 0;
481 inline void RouteCommand::set_has_src() {
482 _has_bits_[0] |= 0x00000001u;
484 inline void RouteCommand::clear_has_src() {
485 _has_bits_[0] &= ~0x00000001u;
487 inline void RouteCommand::clear_src() {
491 inline ::google::protobuf::int32 RouteCommand::src()
const {
495 inline void RouteCommand::set_src(::google::protobuf::int32 value) {
502 inline bool RouteCommand::has_dest()
const {
503 return (_has_bits_[0] & 0x00000002u) != 0;
505 inline void RouteCommand::set_has_dest() {
506 _has_bits_[0] |= 0x00000002u;
508 inline void RouteCommand::clear_has_dest() {
509 _has_bits_[0] &= ~0x00000002u;
511 inline void RouteCommand::clear_dest() {
515 inline ::google::protobuf::int32 RouteCommand::dest()
const {
519 inline void RouteCommand::set_dest(::google::protobuf::int32 value) {
526 inline bool RouteCommand::has_time()
const {
527 return (_has_bits_[0] & 0x00000004u) != 0;
529 inline void RouteCommand::set_has_time() {
530 _has_bits_[0] |= 0x00000004u;
532 inline void RouteCommand::clear_has_time() {
533 _has_bits_[0] &= ~0x00000004u;
535 inline void RouteCommand::clear_time() {
536 time_ = GOOGLE_ULONGLONG(0);
539 inline ::google::protobuf::uint64 RouteCommand::time()
const {
543 inline void RouteCommand::set_time(::google::protobuf::uint64 value) {
550 inline bool RouteCommand::has_new_route()
const {
551 return (_has_bits_[0] & 0x00000008u) != 0;
553 inline void RouteCommand::set_has_new_route() {
554 _has_bits_[0] |= 0x00000008u;
556 inline void RouteCommand::clear_has_new_route() {
557 _has_bits_[0] &= ~0x00000008u;
559 inline void RouteCommand::clear_new_route() {
560 if (new_route_ != NULL) new_route_->::goby::acomms::protobuf::StaticRoute::Clear();
561 clear_has_new_route();
563 inline const ::goby::acomms::protobuf::StaticRoute& RouteCommand::new_route()
const {
565 return new_route_ != NULL ? *new_route_ : *default_instance_->new_route_;
567 inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::mutable_new_route() {
569 if (new_route_ == NULL) new_route_ = new ::goby::acomms::protobuf::StaticRoute;
573 inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::release_new_route() {
574 clear_has_new_route();
581 new_route_ = new_route;
585 clear_has_new_route();
608 #endif // PROTOBUF_goby_2facomms_2fprotobuf_2froute_2eproto__INCLUDED
The global namespace for the Goby project.