4 #ifndef PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
5 #define PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
22 #include <google/protobuf/io/coded_stream.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>
31 #include <google/protobuf/extension_set.h>
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>
40 #include <boost/units/systems/si.hpp>
42 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2facomms_2fprotobuf_2froute_2eproto
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];
60 class RouteCommandDefaultTypeInternal;
62 class RouteManagerConfig;
63 class RouteManagerConfigDefaultTypeInternal;
66 class StaticRouteDefaultTypeInternal;
98 *
this = ::std::move(from);
102 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
103 if (
this != &from) InternalSwap(&from);
111 return _internal_metadata_.unknown_fields();
114 return _internal_metadata_.mutable_unknown_fields();
117 static const ::google::protobuf::Descriptor*
descriptor();
136 return CreateMaybeMessage<StaticRoute>(NULL);
140 return CreateMaybeMessage<StaticRoute>(arena);
142 void CopyFrom(const ::google::protobuf::Message& from)
final;
143 void MergeFrom(const ::google::protobuf::Message& from)
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;
161 void SetCachedSize(
int size)
const final;
164 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
167 inline void* MaybeArenaPtr()
const {
193 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
194 ::
google::protobuf::internal::HasBits<1> _has_bits_;
195 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
215 *
this = ::std::move(from);
218 inline RouteManagerConfig&
operator=(RouteManagerConfig&& from) noexcept {
219 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
220 if (
this != &from) InternalSwap(&from);
228 return _internal_metadata_.unknown_fields();
231 return _internal_metadata_.mutable_unknown_fields();
234 static const ::google::protobuf::Descriptor*
descriptor();
253 return CreateMaybeMessage<RouteManagerConfig>(NULL);
257 return CreateMaybeMessage<RouteManagerConfig>(arena);
259 void CopyFrom(const ::google::protobuf::Message& from)
final;
260 void MergeFrom(const ::google::protobuf::Message& from)
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;
278 void SetCachedSize(
int size)
const final;
281 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
284 inline void* MaybeArenaPtr()
const {
296 bool has_route() const;
298 static const
int kRouteFieldNumber = 1;
308 bool has_default_gateway() const;
309 void clear_default_gateway();
310 static const
int kDefaultGatewayFieldNumber = 3;
312 void set_default_gateway(::
google::protobuf::
uint32 value);
315 bool has_subnet_mask() const;
316 void clear_subnet_mask();
317 static const
int kSubnetMaskFieldNumber = 2;
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();
330 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
331 ::
google::protobuf::internal::HasBits<1> _has_bits_;
332 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
354 *
this = ::std::move(from);
357 inline RouteCommand&
operator=(RouteCommand&& from) noexcept {
358 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
359 if (
this != &from) InternalSwap(&from);
367 return _internal_metadata_.unknown_fields();
370 return _internal_metadata_.mutable_unknown_fields();
373 static const ::google::protobuf::Descriptor*
descriptor();
392 return CreateMaybeMessage<RouteCommand>(NULL);
396 return CreateMaybeMessage<RouteCommand>(arena);
398 void CopyFrom(const ::google::protobuf::Message& from)
final;
399 void MergeFrom(const ::google::protobuf::Message& from)
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;
417 void SetCachedSize(
int size)
const final;
420 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
423 inline void* MaybeArenaPtr()
const {
435 bool has_new_route() const;
436 void clear_new_route();
437 static const
int kNewRouteFieldNumber = 4;
439 const ::
goby::acomms::protobuf::
StaticRoute& _internal_new_route() const;
444 void set_allocated_new_route(::
goby::acomms::protobuf::
StaticRoute* new_route);
447 bool has_src() const;
449 static const
int kSrcFieldNumber = 1;
454 bool has_dest() const;
456 static const
int kDestFieldNumber = 2;
461 bool has_time() const;
463 static const
int kTimeFieldNumber = 3;
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;
472 template<
typename Quantity >
474 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
476 template<
typename Quantity >
481 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
486 void clear_has_src();
488 void clear_has_dest();
490 void clear_has_time();
491 void set_has_new_route();
492 void clear_has_new_route();
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;
509 #pragma GCC diagnostic push
510 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
523 return hop_.Get(index);
526 hop_.Set(index, value);
533 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
538 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
550 return (_has_bits_[0] & 0x00000001u) != 0;
552 inline void RouteManagerConfig::set_has_route() {
553 _has_bits_[0] |= 0x00000001u;
555 inline void RouteManagerConfig::clear_has_route() {
556 _has_bits_[0] &= ~0x00000001u;
559 if (route_ != NULL) route_->Clear();
562 inline const ::goby::acomms::protobuf::StaticRoute& RouteManagerConfig::_internal_route()
const {
566 const ::goby::acomms::protobuf::StaticRoute* p = route_;
580 if (route_ == NULL) {
581 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::StaticRoute>(GetArenaNoVirtual());
589 if (message_arena == NULL) {
594 if (message_arena != submessage_arena) {
595 route = ::google::protobuf::internal::GetOwnedMessage(
596 message_arena,
route, submessage_arena);
608 return (_has_bits_[0] & 0x00000004u) != 0;
610 inline void RouteManagerConfig::set_has_subnet_mask() {
611 _has_bits_[0] |= 0x00000004u;
613 inline void RouteManagerConfig::clear_has_subnet_mask() {
614 _has_bits_[0] &= ~0x00000004u;
617 subnet_mask_ = 4294967040u;
618 clear_has_subnet_mask();
625 set_has_subnet_mask();
626 subnet_mask_ = value;
632 return (_has_bits_[0] & 0x00000002u) != 0;
634 inline void RouteManagerConfig::set_has_default_gateway() {
635 _has_bits_[0] |= 0x00000002u;
637 inline void RouteManagerConfig::clear_has_default_gateway() {
638 _has_bits_[0] &= ~0x00000002u;
641 default_gateway_ = 0u;
642 clear_has_default_gateway();
646 return default_gateway_;
649 set_has_default_gateway();
650 default_gateway_ = value;
660 return (_has_bits_[0] & 0x00000002u) != 0;
662 inline void RouteCommand::set_has_src() {
663 _has_bits_[0] |= 0x00000002u;
665 inline void RouteCommand::clear_has_src() {
666 _has_bits_[0] &= ~0x00000002u;
684 return (_has_bits_[0] & 0x00000004u) != 0;
686 inline void RouteCommand::set_has_dest() {
687 _has_bits_[0] |= 0x00000004u;
689 inline void RouteCommand::clear_has_dest() {
690 _has_bits_[0] &= ~0x00000004u;
708 return (_has_bits_[0] & 0x00000008u) != 0;
710 inline void RouteCommand::set_has_time() {
711 _has_bits_[0] |= 0x00000008u;
713 inline void RouteCommand::clear_has_time() {
714 _has_bits_[0] &= ~0x00000008u;
717 time_ = GOOGLE_ULONGLONG(0);
732 return (_has_bits_[0] & 0x00000001u) != 0;
734 inline void RouteCommand::set_has_new_route() {
735 _has_bits_[0] |= 0x00000001u;
737 inline void RouteCommand::clear_has_new_route() {
738 _has_bits_[0] &= ~0x00000001u;
741 if (new_route_ != NULL) new_route_->Clear();
742 clear_has_new_route();
744 inline const ::goby::acomms::protobuf::StaticRoute& RouteCommand::_internal_new_route()
const {
748 const ::goby::acomms::protobuf::StaticRoute* p = new_route_;
755 clear_has_new_route();
762 if (new_route_ == NULL) {
763 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::StaticRoute>(GetArenaNoVirtual());
771 if (message_arena == NULL) {
776 if (message_arena != submessage_arena) {
777 new_route = ::google::protobuf::internal::GetOwnedMessage(
778 message_arena, new_route, submessage_arena);
782 clear_has_new_route();
784 new_route_ = new_route;
789 #pragma GCC diagnostic pop
804 #endif // PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto