4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2froute_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
33#include "dccl/option_extensions.pb.h"
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <boost/units/systems/si.hpp>
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2froute_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
58struct RouteCommandDefaultTypeInternal;
60class RouteManagerConfig;
61struct RouteManagerConfigDefaultTypeInternal;
64struct StaticRouteDefaultTypeInternal;
69PROTOBUF_NAMESPACE_OPEN
73PROTOBUF_NAMESPACE_CLOSE
81 public ::PROTOBUF_NAMESPACE_ID::Message {
85 explicit PROTOBUF_CONSTEXPR
StaticRoute(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
90 *
this = ::std::move(from);
98 if (
this == &from)
return *
this;
99 if (GetOwningArena() == from.GetOwningArena()
100 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
101 && GetOwningArena() !=
nullptr
112 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
115 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
141 if (other ==
this)
return;
142 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
143 if (GetOwningArena() !=
nullptr &&
144 GetOwningArena() == other->GetOwningArena()) {
146 if (GetOwningArena() == other->GetOwningArena()) {
150 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
154 if (other ==
this)
return;
155 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
162 return CreateMaybeMessage<StaticRoute>(arena);
164 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
166 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
168 StaticRoute::MergeImpl(*
this, from);
171 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
173 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
179 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
183 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
185 void SetCachedSize(
int size)
const final;
189 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
190 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
191 return "goby.acomms.protobuf.StaticRoute";
195 bool is_message_owned =
false);
199 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
213 int _internal_hop_size()
const;
217 int32_t _internal_hop(
int index)
const;
218 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
219 _internal_hop()
const;
220 void _internal_add_hop(int32_t value);
221 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
222 _internal_mutable_hop();
224 int32_t
hop(
int index)
const;
225 void set_hop(
int index, int32_t value);
227 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
229 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
236 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
237 typedef void InternalArenaConstructable_;
238 typedef void DestructorSkippable_;
240 ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > hop_;
241 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
244 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2froute_2eproto;
249 public ::PROTOBUF_NAMESPACE_ID::Message {
253 explicit PROTOBUF_CONSTEXPR
RouteManagerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
258 *
this = ::std::move(from);
266 if (
this == &from)
return *
this;
267 if (GetOwningArena() == from.GetOwningArena()
268 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
269 && GetOwningArena() !=
nullptr
280 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
283 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
286 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
287 return GetDescriptor();
290 return default_instance().GetMetadata().descriptor;
293 return default_instance().GetMetadata().reflection;
296 return *internal_default_instance();
302 static constexpr int kIndexInFileMessages =
309 if (other ==
this)
return;
310 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
311 if (GetOwningArena() !=
nullptr &&
312 GetOwningArena() == other->GetOwningArena()) {
314 if (GetOwningArena() == other->GetOwningArena()) {
318 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
322 if (other ==
this)
return;
323 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
330 return CreateMaybeMessage<RouteManagerConfig>(arena);
332 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
334 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
336 RouteManagerConfig::MergeImpl(*
this, from);
339 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
341 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
342 bool IsInitialized() const final;
345 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
346 uint8_t* _InternalSerialize(
347 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
348 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
351 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
353 void SetCachedSize(
int size)
const final;
357 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
358 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
359 return "goby.acomms.protobuf.RouteManagerConfig";
363 bool is_message_owned =
false);
367 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
369 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
376 kRouteFieldNumber = 1,
377 kDefaultGatewayFieldNumber = 3,
378 kSubnetMaskFieldNumber = 2,
381 bool has_route()
const;
383 bool _internal_has_route()
const;
386 const ::goby::acomms::protobuf::StaticRoute& route()
const;
387 PROTOBUF_NODISCARD ::goby::acomms::protobuf::StaticRoute* release_route();
391 const ::goby::acomms::protobuf::StaticRoute& _internal_route()
const;
394 void unsafe_arena_set_allocated_route(
399 bool has_default_gateway()
const;
401 bool _internal_has_default_gateway()
const;
403 void clear_default_gateway();
404 uint32_t default_gateway()
const;
405 void set_default_gateway(uint32_t value);
407 uint32_t _internal_default_gateway()
const;
408 void _internal_set_default_gateway(uint32_t value);
412 bool has_subnet_mask()
const;
414 bool _internal_has_subnet_mask()
const;
416 void clear_subnet_mask();
417 uint32_t subnet_mask()
const;
418 void set_subnet_mask(uint32_t value);
420 uint32_t _internal_subnet_mask()
const;
421 void _internal_set_subnet_mask(uint32_t value);
428 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
429 typedef void InternalArenaConstructable_;
430 typedef void DestructorSkippable_;
432 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
433 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
435 uint32_t default_gateway_;
436 uint32_t subnet_mask_;
439 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2froute_2eproto;
444 public ::PROTOBUF_NAMESPACE_ID::Message {
448 explicit PROTOBUF_CONSTEXPR
RouteCommand(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
453 *
this = ::std::move(from);
461 if (
this == &from)
return *
this;
462 if (GetOwningArena() == from.GetOwningArena()
463 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
464 && GetOwningArena() !=
nullptr
475 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
478 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
481 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
482 return GetDescriptor();
485 return default_instance().GetMetadata().descriptor;
488 return default_instance().GetMetadata().reflection;
491 return *internal_default_instance();
497 static constexpr int kIndexInFileMessages =
504 if (other ==
this)
return;
505 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
506 if (GetOwningArena() !=
nullptr &&
507 GetOwningArena() == other->GetOwningArena()) {
509 if (GetOwningArena() == other->GetOwningArena()) {
513 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
517 if (other ==
this)
return;
518 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
525 return CreateMaybeMessage<RouteCommand>(arena);
527 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
529 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
531 RouteCommand::MergeImpl(*
this, from);
534 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
536 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
537 bool IsInitialized() const final;
540 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
541 uint8_t* _InternalSerialize(
542 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
543 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
546 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
548 void SetCachedSize(
int size)
const final;
552 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
553 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
554 return "goby.acomms.protobuf.RouteCommand";
558 bool is_message_owned =
false);
562 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
564 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
571 kNewRouteFieldNumber = 4,
573 kDestFieldNumber = 2,
574 kTimeFieldNumber = 3,
577 bool has_new_route()
const;
579 bool _internal_has_new_route()
const;
581 void clear_new_route();
582 const ::goby::acomms::protobuf::StaticRoute& new_route()
const;
583 PROTOBUF_NODISCARD ::goby::acomms::protobuf::StaticRoute* release_new_route();
587 const ::goby::acomms::protobuf::StaticRoute& _internal_new_route()
const;
590 void unsafe_arena_set_allocated_new_route(
595 bool has_src()
const;
597 bool _internal_has_src()
const;
601 void set_src(int32_t value);
603 int32_t _internal_src()
const;
604 void _internal_set_src(int32_t value);
608 bool has_dest()
const;
610 bool _internal_has_dest()
const;
613 int32_t dest()
const;
614 void set_dest(int32_t value);
616 int32_t _internal_dest()
const;
617 void _internal_set_dest(int32_t value);
621 bool has_time()
const;
623 bool _internal_has_time()
const;
626 uint64_t time()
const;
627 void set_time(uint64_t value);
629 uint64_t _internal_time()
const;
630 void _internal_set_time(uint64_t value);
634 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type
time_dimension;
636 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;
638 template<
typename Quantity >
640 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
642 template<
typename Quantity >
644 {
return Quantity(time() *
time_unit()); };
647 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
653 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
654 typedef void InternalArenaConstructable_;
655 typedef void DestructorSkippable_;
657 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
658 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
665 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2froute_2eproto;
673 #pragma GCC diagnostic push
674 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
679inline int StaticRoute::_internal_hop_size()
const {
680 return _impl_.hop_.size();
682inline int StaticRoute::hop_size()
const {
683 return _internal_hop_size();
685inline void StaticRoute::clear_hop() {
688inline int32_t StaticRoute::_internal_hop(
int index)
const {
689 return _impl_.hop_.Get(index);
691inline int32_t StaticRoute::hop(
int index)
const {
693 return _internal_hop(index);
695inline void StaticRoute::set_hop(
int index, int32_t value) {
696 _impl_.hop_.Set(index, value);
699inline void StaticRoute::_internal_add_hop(int32_t value) {
700 _impl_.hop_.Add(value);
702inline void StaticRoute::add_hop(int32_t value) {
703 _internal_add_hop(value);
706inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
707StaticRoute::_internal_hop()
const {
710inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
711StaticRoute::hop()
const {
713 return _internal_hop();
715inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
716StaticRoute::_internal_mutable_hop() {
719inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
720StaticRoute::mutable_hop() {
722 return _internal_mutable_hop();
730inline bool RouteManagerConfig::_internal_has_route()
const {
731 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
732 PROTOBUF_ASSUME(!value || _impl_.route_ !=
nullptr);
735inline bool RouteManagerConfig::has_route()
const {
736 return _internal_has_route();
738inline void RouteManagerConfig::clear_route() {
739 if (_impl_.route_ !=
nullptr) _impl_.route_->Clear();
740 _impl_._has_bits_[0] &= ~0x00000001u;
742inline const ::goby::acomms::protobuf::StaticRoute& RouteManagerConfig::_internal_route()
const {
743 const ::goby::acomms::protobuf::StaticRoute* p = _impl_.route_;
747inline const ::goby::acomms::protobuf::StaticRoute& RouteManagerConfig::route()
const {
749 return _internal_route();
751inline void RouteManagerConfig::unsafe_arena_set_allocated_route(
753 if (GetArenaForAllocation() ==
nullptr) {
754 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.route_);
756 _impl_.route_ = route;
758 _impl_._has_bits_[0] |= 0x00000001u;
760 _impl_._has_bits_[0] &= ~0x00000001u;
764inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::release_route() {
765 _impl_._has_bits_[0] &= ~0x00000001u;
767 _impl_.route_ =
nullptr;
768#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
769 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
770 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
771 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
773 if (GetArenaForAllocation() !=
nullptr) {
774 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
779inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::unsafe_arena_release_route() {
781 _impl_._has_bits_[0] &= ~0x00000001u;
783 _impl_.route_ =
nullptr;
786inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::_internal_mutable_route() {
787 _impl_._has_bits_[0] |= 0x00000001u;
788 if (_impl_.route_ ==
nullptr) {
792 return _impl_.route_;
794inline ::goby::acomms::protobuf::StaticRoute* RouteManagerConfig::mutable_route() {
800 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
801 if (message_arena ==
nullptr) {
802 delete _impl_.route_;
805 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
806 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(route);
807 if (message_arena != submessage_arena) {
808 route = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
809 message_arena, route, submessage_arena);
811 _impl_._has_bits_[0] |= 0x00000001u;
813 _impl_._has_bits_[0] &= ~0x00000001u;
815 _impl_.route_ = route;
820inline bool RouteManagerConfig::_internal_has_subnet_mask()
const {
821 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
824inline bool RouteManagerConfig::has_subnet_mask()
const {
825 return _internal_has_subnet_mask();
827inline void RouteManagerConfig::clear_subnet_mask() {
828 _impl_.subnet_mask_ = 4294967040u;
829 _impl_._has_bits_[0] &= ~0x00000004u;
831inline uint32_t RouteManagerConfig::_internal_subnet_mask()
const {
832 return _impl_.subnet_mask_;
834inline uint32_t RouteManagerConfig::subnet_mask()
const {
836 return _internal_subnet_mask();
838inline void RouteManagerConfig::_internal_set_subnet_mask(uint32_t value) {
839 _impl_._has_bits_[0] |= 0x00000004u;
840 _impl_.subnet_mask_ = value;
842inline void RouteManagerConfig::set_subnet_mask(uint32_t value) {
843 _internal_set_subnet_mask(value);
848inline bool RouteManagerConfig::_internal_has_default_gateway()
const {
849 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
852inline bool RouteManagerConfig::has_default_gateway()
const {
853 return _internal_has_default_gateway();
855inline void RouteManagerConfig::clear_default_gateway() {
856 _impl_.default_gateway_ = 0u;
857 _impl_._has_bits_[0] &= ~0x00000002u;
859inline uint32_t RouteManagerConfig::_internal_default_gateway()
const {
860 return _impl_.default_gateway_;
862inline uint32_t RouteManagerConfig::default_gateway()
const {
864 return _internal_default_gateway();
866inline void RouteManagerConfig::_internal_set_default_gateway(uint32_t value) {
867 _impl_._has_bits_[0] |= 0x00000002u;
868 _impl_.default_gateway_ = value;
870inline void RouteManagerConfig::set_default_gateway(uint32_t value) {
871 _internal_set_default_gateway(value);
880inline bool RouteCommand::_internal_has_src()
const {
881 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
884inline bool RouteCommand::has_src()
const {
885 return _internal_has_src();
887inline void RouteCommand::clear_src() {
889 _impl_._has_bits_[0] &= ~0x00000002u;
891inline int32_t RouteCommand::_internal_src()
const {
894inline int32_t RouteCommand::src()
const {
896 return _internal_src();
898inline void RouteCommand::_internal_set_src(int32_t value) {
899 _impl_._has_bits_[0] |= 0x00000002u;
902inline void RouteCommand::set_src(int32_t value) {
903 _internal_set_src(value);
908inline bool RouteCommand::_internal_has_dest()
const {
909 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
912inline bool RouteCommand::has_dest()
const {
913 return _internal_has_dest();
915inline void RouteCommand::clear_dest() {
917 _impl_._has_bits_[0] &= ~0x00000004u;
919inline int32_t RouteCommand::_internal_dest()
const {
922inline int32_t RouteCommand::dest()
const {
924 return _internal_dest();
926inline void RouteCommand::_internal_set_dest(int32_t value) {
927 _impl_._has_bits_[0] |= 0x00000004u;
928 _impl_.dest_ = value;
930inline void RouteCommand::set_dest(int32_t value) {
931 _internal_set_dest(value);
936inline bool RouteCommand::_internal_has_time()
const {
937 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
940inline bool RouteCommand::has_time()
const {
941 return _internal_has_time();
943inline void RouteCommand::clear_time() {
944 _impl_.time_ = uint64_t{0u};
945 _impl_._has_bits_[0] &= ~0x00000008u;
947inline uint64_t RouteCommand::_internal_time()
const {
950inline uint64_t RouteCommand::time()
const {
952 return _internal_time();
954inline void RouteCommand::_internal_set_time(uint64_t value) {
955 _impl_._has_bits_[0] |= 0x00000008u;
956 _impl_.time_ = value;
958inline void RouteCommand::set_time(uint64_t value) {
959 _internal_set_time(value);
964inline bool RouteCommand::_internal_has_new_route()
const {
965 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
966 PROTOBUF_ASSUME(!value || _impl_.new_route_ !=
nullptr);
969inline bool RouteCommand::has_new_route()
const {
970 return _internal_has_new_route();
972inline void RouteCommand::clear_new_route() {
973 if (_impl_.new_route_ !=
nullptr) _impl_.new_route_->Clear();
974 _impl_._has_bits_[0] &= ~0x00000001u;
976inline const ::goby::acomms::protobuf::StaticRoute& RouteCommand::_internal_new_route()
const {
977 const ::goby::acomms::protobuf::StaticRoute* p = _impl_.new_route_;
981inline const ::goby::acomms::protobuf::StaticRoute& RouteCommand::new_route()
const {
983 return _internal_new_route();
985inline void RouteCommand::unsafe_arena_set_allocated_new_route(
987 if (GetArenaForAllocation() ==
nullptr) {
988 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.new_route_);
990 _impl_.new_route_ = new_route;
992 _impl_._has_bits_[0] |= 0x00000001u;
994 _impl_._has_bits_[0] &= ~0x00000001u;
998inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::release_new_route() {
999 _impl_._has_bits_[0] &= ~0x00000001u;
1001 _impl_.new_route_ =
nullptr;
1002#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1003 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1004 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1005 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1007 if (GetArenaForAllocation() !=
nullptr) {
1008 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1013inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::unsafe_arena_release_new_route() {
1015 _impl_._has_bits_[0] &= ~0x00000001u;
1017 _impl_.new_route_ =
nullptr;
1020inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::_internal_mutable_new_route() {
1021 _impl_._has_bits_[0] |= 0x00000001u;
1022 if (_impl_.new_route_ ==
nullptr) {
1024 _impl_.new_route_ = p;
1026 return _impl_.new_route_;
1028inline ::goby::acomms::protobuf::StaticRoute* RouteCommand::mutable_new_route() {
1034 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1035 if (message_arena ==
nullptr) {
1036 delete _impl_.new_route_;
1039 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1040 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(new_route);
1041 if (message_arena != submessage_arena) {
1042 new_route = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1043 message_arena, new_route, submessage_arena);
1045 _impl_._has_bits_[0] |= 0x00000001u;
1047 _impl_._has_bits_[0] &= ~0x00000001u;
1049 _impl_.new_route_ = new_route;
1054 #pragma GCC diagnostic pop
1069#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
friend void swap(RouteCommand &a, RouteCommand &b)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
RouteCommand * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const RouteCommand & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void MergeFrom(const RouteCommand &from)
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
PROTOBUF_CONSTEXPR RouteCommand(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
Quantity time_with_units() const
RouteCommand(const RouteCommand &from)
void Swap(RouteCommand *other)
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_time_with_units(Quantity value_w_units)
RouteCommand & operator=(const RouteCommand &from)
void CopyFrom(const RouteCommand &from)
static const RouteCommand * internal_default_instance()
RouteCommand & operator=(RouteCommand &&from) noexcept
void UnsafeArenaSwap(RouteCommand *other)
RouteCommand(RouteCommand &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
RouteCommand(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
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
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
friend void swap(RouteManagerConfig &a, RouteManagerConfig &b)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void CopyFrom(const RouteManagerConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void Swap(RouteManagerConfig *other)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
RouteManagerConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void UnsafeArenaSwap(RouteManagerConfig *other)
RouteManagerConfig & operator=(RouteManagerConfig &&from) noexcept
PROTOBUF_CONSTEXPR RouteManagerConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
RouteManagerConfig & operator=(const RouteManagerConfig &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
~RouteManagerConfig() override
void MergeFrom(const RouteManagerConfig &from)
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
RouteManagerConfig(RouteManagerConfig &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const RouteManagerConfig * internal_default_instance()
RouteManagerConfig(const RouteManagerConfig &from)
RouteManagerConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const RouteManagerConfig & default_instance()
static const StaticRoute & default_instance()
void set_hop(int index, int32_t value)
bool IsInitialized() const final
StaticRoute * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const StaticRoute * internal_default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static constexpr int kIndexInFileMessages
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void add_hop(int32_t value)
::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > * mutable_hop()
size_t ByteSizeLong() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void CopyFrom(const StaticRoute &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
friend void swap(StaticRoute &a, StaticRoute &b)
void Swap(StaticRoute *other)
int GetCachedSize() const final
StaticRoute(const StaticRoute &from)
PROTOBUF_CONSTEXPR StaticRoute(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
StaticRoute(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
StaticRoute & operator=(const StaticRoute &from)
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > & hop() const
StaticRoute & operator=(StaticRoute &&from) noexcept
StaticRoute(StaticRoute &&from) noexcept
void MergeFrom(const StaticRoute &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void UnsafeArenaSwap(StaticRoute *other)
static const ClassData _class_data_
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
StaticRouteDefaultTypeInternal _StaticRoute_default_instance_
RouteCommandDefaultTypeInternal _RouteCommand_default_instance_
RouteManagerConfigDefaultTypeInternal _RouteManagerConfig_default_instance_
The global namespace for the Goby project.
::goby::acomms::protobuf::StaticRoute * Arena::CreateMaybeMessage<::goby::acomms::protobuf::StaticRoute >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2froute_2eproto
static const uint32_t offsets[]