Goby3  3.1.4
2024.02.22
route.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/route.proto
3 
4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
34 #include "dccl/option_extensions.pb.h"
35 #include <boost/units/quantity.hpp>
36 #include <boost/units/absolute.hpp>
37 #include <boost/units/dimensionless_type.hpp>
38 #include <boost/units/make_scaled_unit.hpp>
39 
40 #include <boost/units/systems/si.hpp>
41 // @@protoc_insertion_point(includes)
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2froute_2eproto
43 
45 // Internal implementation detail -- do not use these members.
46 struct TableStruct {
47  static const ::google::protobuf::internal::ParseTableField entries[];
48  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
49  static const ::google::protobuf::internal::ParseTable schema[3];
50  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
51  static const ::google::protobuf::internal::SerializationTable serialization_table[];
53 };
54 void AddDescriptors();
55 } // namespace protobuf_goby_2facomms_2fprotobuf_2froute_2eproto
56 namespace goby {
57 namespace acomms {
58 namespace protobuf {
59 class RouteCommand;
60 class RouteCommandDefaultTypeInternal;
61 extern RouteCommandDefaultTypeInternal _RouteCommand_default_instance_;
62 class RouteManagerConfig;
63 class RouteManagerConfigDefaultTypeInternal;
64 extern RouteManagerConfigDefaultTypeInternal _RouteManagerConfig_default_instance_;
65 class StaticRoute;
66 class StaticRouteDefaultTypeInternal;
67 extern StaticRouteDefaultTypeInternal _StaticRoute_default_instance_;
68 } // namespace protobuf
69 } // namespace acomms
70 } // namespace goby
71 namespace google {
72 namespace protobuf {
73 template<> ::goby::acomms::protobuf::RouteCommand* Arena::CreateMaybeMessage<::goby::acomms::protobuf::RouteCommand>(Arena*);
74 template<> ::goby::acomms::protobuf::RouteManagerConfig* Arena::CreateMaybeMessage<::goby::acomms::protobuf::RouteManagerConfig>(Arena*);
75 template<> ::goby::acomms::protobuf::StaticRoute* Arena::CreateMaybeMessage<::goby::acomms::protobuf::StaticRoute>(Arena*);
76 } // namespace protobuf
77 } // namespace google
78 namespace goby {
79 namespace acomms {
80 namespace protobuf {
81 
82 // ===================================================================
83 
84 class StaticRoute : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.StaticRoute) */ {
85  public:
86  StaticRoute();
87  virtual ~StaticRoute();
88 
89  StaticRoute(const StaticRoute& from);
90 
91  inline StaticRoute& operator=(const StaticRoute& from) {
92  CopyFrom(from);
93  return *this;
94  }
95  #if LANG_CXX11
96  StaticRoute(StaticRoute&& from) noexcept
97  : StaticRoute() {
98  *this = ::std::move(from);
99  }
100 
101  inline StaticRoute& operator=(StaticRoute&& from) noexcept {
102  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
103  if (this != &from) InternalSwap(&from);
104  } else {
105  CopyFrom(from);
106  }
107  return *this;
108  }
109  #endif
110  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
111  return _internal_metadata_.unknown_fields();
112  }
113  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
114  return _internal_metadata_.mutable_unknown_fields();
115  }
116 
117  static const ::google::protobuf::Descriptor* descriptor();
118  static const StaticRoute& default_instance();
119 
120  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  static inline const StaticRoute* internal_default_instance() {
122  return reinterpret_cast<const StaticRoute*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  void Swap(StaticRoute* other);
129  friend void swap(StaticRoute& a, StaticRoute& b) {
130  a.Swap(&b);
131  }
132 
133  // implements Message ----------------------------------------------
134 
135  inline StaticRoute* New() const final {
136  return CreateMaybeMessage<StaticRoute>(NULL);
137  }
138 
139  StaticRoute* New(::google::protobuf::Arena* arena) const final {
140  return CreateMaybeMessage<StaticRoute>(arena);
141  }
142  void CopyFrom(const ::google::protobuf::Message& from) final;
143  void MergeFrom(const ::google::protobuf::Message& from) final;
144  void CopyFrom(const StaticRoute& from);
145  void MergeFrom(const StaticRoute& from);
146  void Clear() final;
147  bool IsInitialized() const final;
148 
149  size_t ByteSizeLong() const final;
151  ::google::protobuf::io::CodedInputStream* input) final;
153  ::google::protobuf::io::CodedOutputStream* output) const final;
155  bool deterministic, ::google::protobuf::uint8* target) const final;
156  int GetCachedSize() const final { return _cached_size_.Get(); }
157 
158  private:
159  void SharedCtor();
160  void SharedDtor();
161  void SetCachedSize(int size) const final;
162  void InternalSwap(StaticRoute* other);
163  private:
164  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
165  return NULL;
166  }
167  inline void* MaybeArenaPtr() const {
168  return NULL;
169  }
170  public:
171 
173 
174  // nested types ----------------------------------------------------
175 
176  // accessors -------------------------------------------------------
177 
178  // repeated int32 hop = 1 [(.dccl.field) = {
179  int hop_size() const;
180  void clear_hop();
181  static const int kHopFieldNumber = 1;
182  ::google::protobuf::int32 hop(int index) const;
183  void set_hop(int index, ::google::protobuf::int32 value);
184  void add_hop(::google::protobuf::int32 value);
185  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
186  hop() const;
187  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
188  mutable_hop();
189 
190  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.StaticRoute)
191  private:
192 
193  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
194  ::google::protobuf::internal::HasBits<1> _has_bits_;
195  mutable ::google::protobuf::internal::CachedSize _cached_size_;
196  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > hop_;
198 };
199 // -------------------------------------------------------------------
200 
201 class RouteManagerConfig : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.RouteManagerConfig) */ {
202  public:
204  virtual ~RouteManagerConfig();
205 
207 
209  CopyFrom(from);
210  return *this;
211  }
212  #if LANG_CXX11
213  RouteManagerConfig(RouteManagerConfig&& from) noexcept
214  : RouteManagerConfig() {
215  *this = ::std::move(from);
216  }
217 
218  inline RouteManagerConfig& operator=(RouteManagerConfig&& from) noexcept {
219  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
220  if (this != &from) InternalSwap(&from);
221  } else {
222  CopyFrom(from);
223  }
224  return *this;
225  }
226  #endif
227  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
228  return _internal_metadata_.unknown_fields();
229  }
230  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
231  return _internal_metadata_.mutable_unknown_fields();
232  }
233 
234  static const ::google::protobuf::Descriptor* descriptor();
235  static const RouteManagerConfig& default_instance();
236 
237  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
239  return reinterpret_cast<const RouteManagerConfig*>(
241  }
242  static constexpr int kIndexInFileMessages =
243  1;
244 
245  void Swap(RouteManagerConfig* other);
247  a.Swap(&b);
248  }
249 
250  // implements Message ----------------------------------------------
251 
252  inline RouteManagerConfig* New() const final {
253  return CreateMaybeMessage<RouteManagerConfig>(NULL);
254  }
255 
257  return CreateMaybeMessage<RouteManagerConfig>(arena);
258  }
259  void CopyFrom(const ::google::protobuf::Message& from) final;
260  void MergeFrom(const ::google::protobuf::Message& from) final;
261  void CopyFrom(const RouteManagerConfig& from);
262  void MergeFrom(const RouteManagerConfig& from);
263  void Clear() final;
264  bool IsInitialized() const final;
265 
266  size_t ByteSizeLong() const final;
268  ::google::protobuf::io::CodedInputStream* input) final;
270  ::google::protobuf::io::CodedOutputStream* output) const final;
272  bool deterministic, ::google::protobuf::uint8* target) const final;
273  int GetCachedSize() const final { return _cached_size_.Get(); }
274 
275  private:
276  void SharedCtor();
277  void SharedDtor();
278  void SetCachedSize(int size) const final;
279  void InternalSwap(RouteManagerConfig* other);
280  private:
281  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
282  return NULL;
283  }
284  inline void* MaybeArenaPtr() const {
285  return NULL;
286  }
287  public:
288 
290 
291  // nested types ----------------------------------------------------
292 
293  // accessors -------------------------------------------------------
294 
295  // optional .goby.acomms.protobuf.StaticRoute route = 1;
296  bool has_route() const;
297  void clear_route();
298  static const int kRouteFieldNumber = 1;
299  private:
300  const ::goby::acomms::protobuf::StaticRoute& _internal_route() const;
301  public:
302  const ::goby::acomms::protobuf::StaticRoute& route() const;
303  ::goby::acomms::protobuf::StaticRoute* release_route();
304  ::goby::acomms::protobuf::StaticRoute* mutable_route();
305  void set_allocated_route(::goby::acomms::protobuf::StaticRoute* route);
306 
307  // optional uint32 default_gateway = 3;
308  bool has_default_gateway() const;
309  void clear_default_gateway();
310  static const int kDefaultGatewayFieldNumber = 3;
311  ::google::protobuf::uint32 default_gateway() const;
312  void set_default_gateway(::google::protobuf::uint32 value);
313 
314  // optional uint32 subnet_mask = 2 [default = 4294967040];
315  bool has_subnet_mask() const;
316  void clear_subnet_mask();
317  static const int kSubnetMaskFieldNumber = 2;
318  ::google::protobuf::uint32 subnet_mask() const;
319  void set_subnet_mask(::google::protobuf::uint32 value);
320 
321  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.RouteManagerConfig)
322  private:
323  void set_has_route();
324  void clear_has_route();
325  void set_has_subnet_mask();
326  void clear_has_subnet_mask();
327  void set_has_default_gateway();
328  void clear_has_default_gateway();
329 
330  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
331  ::google::protobuf::internal::HasBits<1> _has_bits_;
332  mutable ::google::protobuf::internal::CachedSize _cached_size_;
333  ::goby::acomms::protobuf::StaticRoute* route_;
334  ::google::protobuf::uint32 default_gateway_;
335  ::google::protobuf::uint32 subnet_mask_;
337 };
338 // -------------------------------------------------------------------
339 
340 class RouteCommand : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.RouteCommand) */ {
341  public:
342  RouteCommand();
343  virtual ~RouteCommand();
344 
345  RouteCommand(const RouteCommand& from);
346 
347  inline RouteCommand& operator=(const RouteCommand& from) {
348  CopyFrom(from);
349  return *this;
350  }
351  #if LANG_CXX11
352  RouteCommand(RouteCommand&& from) noexcept
353  : RouteCommand() {
354  *this = ::std::move(from);
355  }
356 
357  inline RouteCommand& operator=(RouteCommand&& from) noexcept {
358  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
359  if (this != &from) InternalSwap(&from);
360  } else {
361  CopyFrom(from);
362  }
363  return *this;
364  }
365  #endif
366  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
367  return _internal_metadata_.unknown_fields();
368  }
369  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
370  return _internal_metadata_.mutable_unknown_fields();
371  }
372 
373  static const ::google::protobuf::Descriptor* descriptor();
374  static const RouteCommand& default_instance();
375 
376  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
377  static inline const RouteCommand* internal_default_instance() {
378  return reinterpret_cast<const RouteCommand*>(
380  }
381  static constexpr int kIndexInFileMessages =
382  2;
383 
384  void Swap(RouteCommand* other);
385  friend void swap(RouteCommand& a, RouteCommand& b) {
386  a.Swap(&b);
387  }
388 
389  // implements Message ----------------------------------------------
390 
391  inline RouteCommand* New() const final {
392  return CreateMaybeMessage<RouteCommand>(NULL);
393  }
394 
395  RouteCommand* New(::google::protobuf::Arena* arena) const final {
396  return CreateMaybeMessage<RouteCommand>(arena);
397  }
398  void CopyFrom(const ::google::protobuf::Message& from) final;
399  void MergeFrom(const ::google::protobuf::Message& from) final;
400  void CopyFrom(const RouteCommand& from);
401  void MergeFrom(const RouteCommand& from);
402  void Clear() final;
403  bool IsInitialized() const final;
404 
405  size_t ByteSizeLong() const final;
407  ::google::protobuf::io::CodedInputStream* input) final;
409  ::google::protobuf::io::CodedOutputStream* output) const final;
411  bool deterministic, ::google::protobuf::uint8* target) const final;
412  int GetCachedSize() const final { return _cached_size_.Get(); }
413 
414  private:
415  void SharedCtor();
416  void SharedDtor();
417  void SetCachedSize(int size) const final;
418  void InternalSwap(RouteCommand* other);
419  private:
420  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
421  return NULL;
422  }
423  inline void* MaybeArenaPtr() const {
424  return NULL;
425  }
426  public:
427 
429 
430  // nested types ----------------------------------------------------
431 
432  // accessors -------------------------------------------------------
433 
434  // optional .goby.acomms.protobuf.StaticRoute new_route = 4;
435  bool has_new_route() const;
436  void clear_new_route();
437  static const int kNewRouteFieldNumber = 4;
438  private:
439  const ::goby::acomms::protobuf::StaticRoute& _internal_new_route() const;
440  public:
441  const ::goby::acomms::protobuf::StaticRoute& new_route() const;
442  ::goby::acomms::protobuf::StaticRoute* release_new_route();
443  ::goby::acomms::protobuf::StaticRoute* mutable_new_route();
444  void set_allocated_new_route(::goby::acomms::protobuf::StaticRoute* new_route);
445 
446  // optional int32 src = 1 [(.dccl.field) = {
447  bool has_src() const;
448  void clear_src();
449  static const int kSrcFieldNumber = 1;
450  ::google::protobuf::int32 src() const;
451  void set_src(::google::protobuf::int32 value);
452 
453  // optional int32 dest = 2 [(.dccl.field) = {
454  bool has_dest() const;
455  void clear_dest();
456  static const int kDestFieldNumber = 2;
457  ::google::protobuf::int32 dest() const;
458  void set_dest(::google::protobuf::int32 value);
459 
460  // optional uint64 time = 3 [(.dccl.field) = {
461  bool has_time() const;
462  void clear_time();
463  static const int kTimeFieldNumber = 3;
464  ::google::protobuf::uint64 time() const;
465  void set_time(::google::protobuf::uint64 value);
466 
467  enum DCCLParameters { DCCL_ID = 514, DCCL_MAX_BYTES = 64 };
469 
470  typedef boost::units::make_scaled_unit<boost::units::unit<time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_unit;
471 
472  template<typename Quantity >
473  void set_time_with_units(Quantity value_w_units)
474  { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
475 
476  template<typename Quantity >
477  Quantity time_with_units() const
478  { return Quantity(time() * time_unit()); };
479 
480  boost::units::quantity< time_unit,google::protobuf::uint64 > time_with_units() const
481  { return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
482 
483  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.RouteCommand)
484  private:
485  void set_has_src();
486  void clear_has_src();
487  void set_has_dest();
488  void clear_has_dest();
489  void set_has_time();
490  void clear_has_time();
491  void set_has_new_route();
492  void clear_has_new_route();
493 
494  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
495  ::google::protobuf::internal::HasBits<1> _has_bits_;
496  mutable ::google::protobuf::internal::CachedSize _cached_size_;
501  friend struct ::protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct;
502 };
503 // ===================================================================
504 
505 
506 // ===================================================================
507 
508 #ifdef __GNUC__
509  #pragma GCC diagnostic push
510  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
511 #endif // __GNUC__
512 // StaticRoute
513 
514 // repeated int32 hop = 1 [(.dccl.field) = {
515 inline int StaticRoute::hop_size() const {
516  return hop_.size();
517 }
518 inline void StaticRoute::clear_hop() {
519  hop_.Clear();
520 }
522  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.StaticRoute.hop)
523  return hop_.Get(index);
524 }
525 inline void StaticRoute::set_hop(int index, ::google::protobuf::int32 value) {
526  hop_.Set(index, value);
527  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.StaticRoute.hop)
528 }
530  hop_.Add(value);
531  // @@protoc_insertion_point(field_add:goby.acomms.protobuf.StaticRoute.hop)
532 }
533 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
535  // @@protoc_insertion_point(field_list:goby.acomms.protobuf.StaticRoute.hop)
536  return hop_;
537 }
538 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
540  // @@protoc_insertion_point(field_mutable_list:goby.acomms.protobuf.StaticRoute.hop)
541  return &hop_;
542 }
543 
544 // -------------------------------------------------------------------
545 
546 // RouteManagerConfig
547 
548 // optional .goby.acomms.protobuf.StaticRoute route = 1;
549 inline bool RouteManagerConfig::has_route() const {
550  return (_has_bits_[0] & 0x00000001u) != 0;
551 }
552 inline void RouteManagerConfig::set_has_route() {
553  _has_bits_[0] |= 0x00000001u;
554 }
555 inline void RouteManagerConfig::clear_has_route() {
556  _has_bits_[0] &= ~0x00000001u;
557 }
559  if (route_ != NULL) route_->Clear();
560  clear_has_route();
561 }
562 inline const ::goby::acomms::protobuf::StaticRoute& RouteManagerConfig::_internal_route() const {
563  return *route_;
564 }
565 inline const ::goby::acomms::protobuf::StaticRoute& RouteManagerConfig::route() const {
566  const ::goby::acomms::protobuf::StaticRoute* p = route_;
567  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteManagerConfig.route)
568  return p != NULL ? *p : *reinterpret_cast<const ::goby::acomms::protobuf::StaticRoute*>(
570 }
571 inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::release_route() {
572  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.RouteManagerConfig.route)
573  clear_has_route();
575  route_ = NULL;
576  return temp;
577 }
578 inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::mutable_route() {
579  set_has_route();
580  if (route_ == NULL) {
581  auto* p = CreateMaybeMessage<::goby::acomms::protobuf::StaticRoute>(GetArenaNoVirtual());
582  route_ = p;
583  }
584  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.RouteManagerConfig.route)
585  return route_;
586 }
588  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
589  if (message_arena == NULL) {
590  delete route_;
591  }
592  if (route) {
593  ::google::protobuf::Arena* submessage_arena = NULL;
594  if (message_arena != submessage_arena) {
595  route = ::google::protobuf::internal::GetOwnedMessage(
596  message_arena, route, submessage_arena);
597  }
598  set_has_route();
599  } else {
600  clear_has_route();
601  }
602  route_ = route;
603  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.RouteManagerConfig.route)
604 }
605 
606 // optional uint32 subnet_mask = 2 [default = 4294967040];
608  return (_has_bits_[0] & 0x00000004u) != 0;
609 }
610 inline void RouteManagerConfig::set_has_subnet_mask() {
611  _has_bits_[0] |= 0x00000004u;
612 }
613 inline void RouteManagerConfig::clear_has_subnet_mask() {
614  _has_bits_[0] &= ~0x00000004u;
615 }
617  subnet_mask_ = 4294967040u;
618  clear_has_subnet_mask();
619 }
621  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteManagerConfig.subnet_mask)
622  return subnet_mask_;
623 }
625  set_has_subnet_mask();
626  subnet_mask_ = value;
627  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.RouteManagerConfig.subnet_mask)
628 }
629 
630 // optional uint32 default_gateway = 3;
632  return (_has_bits_[0] & 0x00000002u) != 0;
633 }
634 inline void RouteManagerConfig::set_has_default_gateway() {
635  _has_bits_[0] |= 0x00000002u;
636 }
637 inline void RouteManagerConfig::clear_has_default_gateway() {
638  _has_bits_[0] &= ~0x00000002u;
639 }
641  default_gateway_ = 0u;
642  clear_has_default_gateway();
643 }
645  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteManagerConfig.default_gateway)
646  return default_gateway_;
647 }
649  set_has_default_gateway();
650  default_gateway_ = value;
651  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.RouteManagerConfig.default_gateway)
652 }
653 
654 // -------------------------------------------------------------------
655 
656 // RouteCommand
657 
658 // optional int32 src = 1 [(.dccl.field) = {
659 inline bool RouteCommand::has_src() const {
660  return (_has_bits_[0] & 0x00000002u) != 0;
661 }
662 inline void RouteCommand::set_has_src() {
663  _has_bits_[0] |= 0x00000002u;
664 }
665 inline void RouteCommand::clear_has_src() {
666  _has_bits_[0] &= ~0x00000002u;
667 }
668 inline void RouteCommand::clear_src() {
669  src_ = 0;
670  clear_has_src();
671 }
673  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteCommand.src)
674  return src_;
675 }
677  set_has_src();
678  src_ = value;
679  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.RouteCommand.src)
680 }
681 
682 // optional int32 dest = 2 [(.dccl.field) = {
683 inline bool RouteCommand::has_dest() const {
684  return (_has_bits_[0] & 0x00000004u) != 0;
685 }
686 inline void RouteCommand::set_has_dest() {
687  _has_bits_[0] |= 0x00000004u;
688 }
689 inline void RouteCommand::clear_has_dest() {
690  _has_bits_[0] &= ~0x00000004u;
691 }
693  dest_ = 0;
694  clear_has_dest();
695 }
697  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteCommand.dest)
698  return dest_;
699 }
701  set_has_dest();
702  dest_ = value;
703  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.RouteCommand.dest)
704 }
705 
706 // optional uint64 time = 3 [(.dccl.field) = {
707 inline bool RouteCommand::has_time() const {
708  return (_has_bits_[0] & 0x00000008u) != 0;
709 }
710 inline void RouteCommand::set_has_time() {
711  _has_bits_[0] |= 0x00000008u;
712 }
713 inline void RouteCommand::clear_has_time() {
714  _has_bits_[0] &= ~0x00000008u;
715 }
717  time_ = GOOGLE_ULONGLONG(0);
718  clear_has_time();
719 }
721  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteCommand.time)
722  return time_;
723 }
725  set_has_time();
726  time_ = value;
727  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.RouteCommand.time)
728 }
729 
730 // optional .goby.acomms.protobuf.StaticRoute new_route = 4;
731 inline bool RouteCommand::has_new_route() const {
732  return (_has_bits_[0] & 0x00000001u) != 0;
733 }
734 inline void RouteCommand::set_has_new_route() {
735  _has_bits_[0] |= 0x00000001u;
736 }
737 inline void RouteCommand::clear_has_new_route() {
738  _has_bits_[0] &= ~0x00000001u;
739 }
741  if (new_route_ != NULL) new_route_->Clear();
742  clear_has_new_route();
743 }
744 inline const ::goby::acomms::protobuf::StaticRoute& RouteCommand::_internal_new_route() const {
745  return *new_route_;
746 }
747 inline const ::goby::acomms::protobuf::StaticRoute& RouteCommand::new_route() const {
748  const ::goby::acomms::protobuf::StaticRoute* p = new_route_;
749  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.RouteCommand.new_route)
750  return p != NULL ? *p : *reinterpret_cast<const ::goby::acomms::protobuf::StaticRoute*>(
752 }
753 inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::release_new_route() {
754  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.RouteCommand.new_route)
755  clear_has_new_route();
756  ::goby::acomms::protobuf::StaticRoute* temp = new_route_;
757  new_route_ = NULL;
758  return temp;
759 }
760 inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::mutable_new_route() {
761  set_has_new_route();
762  if (new_route_ == NULL) {
763  auto* p = CreateMaybeMessage<::goby::acomms::protobuf::StaticRoute>(GetArenaNoVirtual());
764  new_route_ = p;
765  }
766  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.RouteCommand.new_route)
767  return new_route_;
768 }
770  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
771  if (message_arena == NULL) {
772  delete new_route_;
773  }
774  if (new_route) {
775  ::google::protobuf::Arena* submessage_arena = NULL;
776  if (message_arena != submessage_arena) {
777  new_route = ::google::protobuf::internal::GetOwnedMessage(
778  message_arena, new_route, submessage_arena);
779  }
780  set_has_new_route();
781  } else {
782  clear_has_new_route();
783  }
784  new_route_ = new_route;
785  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.RouteCommand.new_route)
786 }
787 
788 #ifdef __GNUC__
789  #pragma GCC diagnostic pop
790 #endif // __GNUC__
791 // -------------------------------------------------------------------
792 
793 // -------------------------------------------------------------------
794 
795 
796 // @@protoc_insertion_point(namespace_scope)
797 
798 } // namespace protobuf
799 } // namespace acomms
800 } // namespace goby
801 
802 // @@protoc_insertion_point(global_scope)
803 
804 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
goby::acomms::protobuf::RouteManagerConfig::has_subnet_mask
bool has_subnet_mask() const
Definition: route.pb.h:607
goby::acomms::protobuf::StaticRoute::IsInitialized
bool IsInitialized() const final
goby::acomms::protobuf::StaticRoute::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: route.pb.h:110
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct
Definition: route.pb.h:46
goby::acomms::protobuf::RouteManagerConfig::Swap
void Swap(RouteManagerConfig *other)
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct::offsets
static const ::google::protobuf::uint32 offsets[]
Definition: route.pb.h:52
goby::acomms::protobuf::StaticRoute::add_hop
void add_hop(::google::protobuf::int32 value)
Definition: route.pb.h:529
goby::acomms::protobuf::RouteManagerConfig::has_route
bool has_route() const
Definition: route.pb.h:549
goby::acomms::protobuf::RouteCommand::swap
friend void swap(RouteCommand &a, RouteCommand &b)
Definition: route.pb.h:385
goby::acomms::protobuf::StaticRoute::Clear
void Clear() final
goby
The global namespace for the Goby project.
Definition: acomms_constants.h:33
goby::acomms::protobuf::StaticRoute::New
StaticRoute * New() const final
Definition: route.pb.h:135
goby::acomms::protobuf::RouteManagerConfig
Definition: route.pb.h:201
goby::acomms::protobuf::RouteCommand::clear_src
void clear_src()
Definition: route.pb.h:668
goby::acomms::protobuf::StaticRoute::ByteSizeLong
size_t ByteSizeLong() const final
goby::uint64
std::uint64_t uint64
Definition: primitive_types.h:34
goby::acomms::protobuf::StaticRoute::default_instance
static const StaticRoute & default_instance()
goby::acomms::protobuf::RouteCommand::has_src
bool has_src() const
Definition: route.pb.h:659
goby::acomms::protobuf::StaticRoute::CopyFrom
void CopyFrom(const ::google::protobuf::Message &from) final
goby::acomms::protobuf::RouteCommand::clear_time
void clear_time()
Definition: route.pb.h:716
goby::acomms::protobuf::RouteManagerConfig::has_default_gateway
bool has_default_gateway() const
Definition: route.pb.h:631
goby::acomms::protobuf::StaticRoute::swap
friend void swap(StaticRoute &a, StaticRoute &b)
Definition: route.pb.h:129
goby::acomms::protobuf::RouteCommand::release_new_route
::goby::acomms::protobuf::StaticRoute * release_new_route()
Definition: route.pb.h:753
goby::acomms::protobuf::RouteManagerConfig::New
RouteManagerConfig * New() const final
Definition: route.pb.h:252
goby::acomms::protobuf::StaticRoute::GetCachedSize
int GetCachedSize() const final
Definition: route.pb.h:156
goby::acomms::protobuf::RouteManagerConfig::New
RouteManagerConfig * New(::google::protobuf::Arena *arena) const final
Definition: route.pb.h:256
goby::acomms::protobuf::RouteCommand::new_route
const ::goby::acomms::protobuf::StaticRoute & new_route() const
Definition: route.pb.h:747
goby::acomms::protobuf::RouteCommand::has_new_route
bool has_new_route() const
Definition: route.pb.h:731
google::protobuf::Arena
Definition: arena.h:244
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::AddDescriptors
void AddDescriptors()
goby::acomms::protobuf::RouteCommand::clear_dest
void clear_dest()
Definition: route.pb.h:692
goby::acomms::protobuf::StaticRoute::InternalSerializeWithCachedSizesToArray
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
goby::acomms::protobuf::RouteCommand::time_with_units
Quantity time_with_units() const
Definition: route.pb.h:477
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto
Definition: route.pb.h:44
goby::acomms::protobuf::RouteCommand::set_time
void set_time(::google::protobuf::uint64 value)
Definition: route.pb.h:724
goby::acomms::protobuf::RouteCommand::New
RouteCommand * New() const final
Definition: route.pb.h:391
goby::acomms::protobuf::RouteManagerConfig::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: route.pb.h:227
goby::acomms::protobuf::RouteCommand::internal_default_instance
static const RouteCommand * internal_default_instance()
Definition: route.pb.h:377
goby::acomms::protobuf::RouteCommand::set_dest
void set_dest(::google::protobuf::int32 value)
Definition: route.pb.h:700
goby::acomms::protobuf::RouteManagerConfig::default_gateway
::google::protobuf::uint32 default_gateway() const
Definition: route.pb.h:644
goby::acomms::protobuf::RouteCommand::has_time
bool has_time() const
Definition: route.pb.h:707
goby::acomms::protobuf::RouteCommand::Swap
void Swap(RouteCommand *other)
goby::acomms::protobuf::RouteManagerConfig::swap
friend void swap(RouteManagerConfig &a, RouteManagerConfig &b)
Definition: route.pb.h:246
goby::acomms::protobuf::RouteCommand::DCCLParameters
DCCLParameters
Definition: route.pb.h:467
goby::acomms::protobuf::StaticRoute::MergeFrom
void MergeFrom(const ::google::protobuf::Message &from) final
goby::acomms::protobuf::RouteCommand::time_dimension
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
Definition: route.pb.h:468
goby::acomms::protobuf::StaticRoute::hop_size
int hop_size() const
Definition: route.pb.h:515
message.h
goby::acomms::protobuf::RouteCommand::operator=
RouteCommand & operator=(const RouteCommand &from)
Definition: route.pb.h:347
goby::acomms::protobuf::RouteManagerConfig::clear_route
void clear_route()
Definition: route.pb.h:558
goby::acomms::protobuf::RouteManagerConfig::clear_default_gateway
void clear_default_gateway()
Definition: route.pb.h:640
goby::acomms::protobuf::StaticRoute::GetMetadata
::google::protobuf::Metadata GetMetadata() const final
goby::acomms::protobuf::StaticRoute::descriptor
static const ::google::protobuf::Descriptor * descriptor()
goby::acomms::protobuf::RouteManagerConfig::route
const ::goby::acomms::protobuf::StaticRoute & route() const
Definition: route.pb.h:565
goby::acomms::protobuf::RouteManagerConfig::clear_subnet_mask
void clear_subnet_mask()
Definition: route.pb.h:616
goby::uint32
std::uint32_t uint32
Definition: primitive_types.h:32
goby::acomms::protobuf::RouteManagerConfig::operator=
RouteManagerConfig & operator=(const RouteManagerConfig &from)
Definition: route.pb.h:208
goby::int32
std::int32_t int32
Definition: primitive_types.h:33
goby::acomms::protobuf::RouteCommand::time_unit
boost::units::make_scaled_unit< boost::units::unit< time_dimension, boost::units::si::system >, boost::units::scale< 10, boost::units::static_rational<-6 > > >::type time_unit
Definition: route.pb.h:470
goby::acomms::protobuf::RouteCommand::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: route.pb.h:369
goby::acomms::protobuf::StaticRoute::clear_hop
void clear_hop()
Definition: route.pb.h:518
goby::acomms::protobuf::StaticRoute::~StaticRoute
virtual ~StaticRoute()
goby::acomms::protobuf::_StaticRoute_default_instance_
StaticRouteDefaultTypeInternal _StaticRoute_default_instance_
jwt::json::type
type
Generic JSON types used in JWTs.
Definition: jwt.h:2071
google::protobuf::Metadata
Definition: message.h:174
goby::acomms::protobuf::_RouteManagerConfig_default_instance_
RouteManagerConfigDefaultTypeInternal _RouteManagerConfig_default_instance_
goby::acomms::protobuf::RouteManagerConfig::set_default_gateway
void set_default_gateway(::google::protobuf::uint32 value)
Definition: route.pb.h:648
goby::acomms::protobuf::StaticRoute::SerializeWithCachedSizes
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
goby::acomms::protobuf::RouteManagerConfig::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: route.pb.h:230
google::protobuf::Message
Definition: message.h:189
goby::acomms::protobuf::RouteCommand::clear_new_route
void clear_new_route()
Definition: route.pb.h:740
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct::serialization_table
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: route.pb.h:51
goby::acomms::protobuf::RouteCommand::New
RouteCommand * New(::google::protobuf::Arena *arena) const final
Definition: route.pb.h:395
goby::acomms::protobuf::StaticRoute::InitAsDefaultInstance
static void InitAsDefaultInstance()
goby::acomms::protobuf::RouteCommand::time
::google::protobuf::uint64 time() const
Definition: route.pb.h:720
goby::acomms::protobuf::RouteCommand::time_with_units
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
Definition: route.pb.h:480
goby::acomms::protobuf::RouteManagerConfig::internal_default_instance
static const RouteManagerConfig * internal_default_instance()
Definition: route.pb.h:238
goby::acomms::protobuf::StaticRoute::mutable_hop
::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_hop()
Definition: route.pb.h:539
goby::acomms::protobuf::StaticRoute::internal_default_instance
static const StaticRoute * internal_default_instance()
Definition: route.pb.h:121
goby::acomms::protobuf::StaticRoute::Swap
void Swap(StaticRoute *other)
goby::acomms::protobuf::RouteManagerConfig::subnet_mask
::google::protobuf::uint32 subnet_mask() const
Definition: route.pb.h:620
goby::acomms::protobuf::StaticRoute::operator=
StaticRoute & operator=(const StaticRoute &from)
Definition: route.pb.h:91
arena.h
goby::acomms::protobuf::StaticRoute::kIndexInFileMessages
static constexpr int kIndexInFileMessages
Definition: route.pb.h:125
goby::acomms::protobuf::RouteManagerConfig::set_allocated_route
void set_allocated_route(::goby::acomms::protobuf::StaticRoute *route)
Definition: route.pb.h:587
goby::acomms::protobuf::_RouteCommand_default_instance_
RouteCommandDefaultTypeInternal _RouteCommand_default_instance_
goby::acomms::protobuf::StaticRoute::set_hop
void set_hop(int index, ::google::protobuf::int32 value)
Definition: route.pb.h:525
boost::units::si::time
unit< time_dimension, si::system > time
Definition: time.hpp:22
goby::acomms::protobuf::StaticRoute
Definition: route.pb.h:84
goby::acomms::protobuf::RouteManagerConfig::release_route
::goby::acomms::protobuf::StaticRoute * release_route()
Definition: route.pb.h:571
goby::acomms::protobuf::StaticRoute::MergePartialFromCodedStream
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
option_extensions.pb.h
goby::acomms::protobuf::RouteCommand::mutable_new_route
::goby::acomms::protobuf::StaticRoute * mutable_new_route()
Definition: route.pb.h:760
goby::acomms::protobuf::RouteManagerConfig::set_subnet_mask
void set_subnet_mask(::google::protobuf::uint32 value)
Definition: route.pb.h:624
goby::acomms::protobuf::RouteCommand
Definition: route.pb.h:340
goby::acomms::protobuf::StaticRoute::New
StaticRoute * New(::google::protobuf::Arena *arena) const final
Definition: route.pb.h:139
goby::acomms::protobuf::RouteCommand::src
::google::protobuf::int32 src() const
Definition: route.pb.h:672
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct::field_metadata
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: route.pb.h:50
goby::acomms::protobuf::RouteCommand::set_src
void set_src(::google::protobuf::int32 value)
Definition: route.pb.h:676
goby::acomms::protobuf::RouteCommand::unknown_fields
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: route.pb.h:366
goby::acomms::protobuf::StaticRoute::kHopFieldNumber
static const int kHopFieldNumber
Definition: route.pb.h:181
goby::acomms::protobuf::RouteCommand::has_dest
bool has_dest() const
Definition: route.pb.h:683
goby::acomms::protobuf::RouteCommand::set_time_with_units
void set_time_with_units(Quantity value_w_units)
Definition: route.pb.h:473
goby::acomms::protobuf::StaticRoute::hop
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & hop() const
Definition: route.pb.h:534
google::protobuf::Message::Message
Message()
Definition: message.h:191
friend
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct::aux
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: route.pb.h:48
goby::acomms::protobuf::RouteManagerConfig::mutable_route
::goby::acomms::protobuf::StaticRoute * mutable_route()
Definition: route.pb.h:578
goby::acomms::protobuf::StaticRoute::mutable_unknown_fields
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: route.pb.h:113
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct::entries
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: route.pb.h:47
google
Definition: dccl.h:57
goby::acomms::protobuf::RouteCommand::dest
::google::protobuf::int32 dest() const
Definition: route.pb.h:696
protobuf_goby_2facomms_2fprotobuf_2froute_2eproto::TableStruct::schema
static const ::google::protobuf::internal::ParseTable schema[3]
Definition: route.pb.h:49
goby::acomms::protobuf::RouteCommand::set_allocated_new_route
void set_allocated_new_route(::goby::acomms::protobuf::StaticRoute *new_route)
Definition: route.pb.h:769
goby::acomms::protobuf::StaticRoute::StaticRoute
StaticRoute()
goby::middleware::groups::opencpn::route
constexpr goby::middleware::Group route
Definition: groups.h:37