4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_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"
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#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2froute1_2ftest_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
60struct RouteMessageDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
77 public ::PROTOBUF_NAMESPACE_ID::Message {
81 explicit PROTOBUF_CONSTEXPR
RouteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86 *
this = ::std::move(from);
94 if (
this == &from)
return *
this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() !=
nullptr
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
137 if (other ==
this)
return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() !=
nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
142 if (GetOwningArena() == other->GetOwningArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 return CreateMaybeMessage<RouteMessage>(arena);
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 RouteMessage::MergeImpl(*
this, from);
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
169 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
181 void SetCachedSize(
int size)
const final;
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.test.acomms.protobuf.RouteMessage";
191 bool is_message_owned =
false);
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
212 bool _internal_has_telegram()
const;
215 const std::string&
telegram()
const;
216 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
222 const std::string& _internal_telegram()
const;
223 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_telegram(
const std::string& value);
224 std::string* _internal_mutable_telegram();
230 bool _internal_has_time()
const;
233 uint64_t
time()
const;
236 uint64_t _internal_time()
const;
237 void _internal_set_time(uint64_t value);
243 bool _internal_has_src()
const;
249 int32_t _internal_src()
const;
250 void _internal_set_src(int32_t value);
256 bool _internal_has_dest()
const;
259 int32_t
dest()
const;
262 int32_t _internal_dest()
const;
263 void _internal_set_dest(int32_t value);
267 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type
time_dimension;
269 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;
271 template<
typename Quantity >
273 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
275 template<
typename Quantity >
280 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
287 size_t RequiredFieldsByteSizeFallback()
const;
289 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
290 typedef void InternalArenaConstructable_;
291 typedef void DestructorSkippable_;
293 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
294 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
295 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr telegram_;
301 friend struct ::TableStruct_goby_2ftest_2facomms_2froute1_2ftest_2eproto;
309 #pragma GCC diagnostic push
310 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
315inline bool RouteMessage::_internal_has_time()
const {
316 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
320 return _internal_has_time();
323 _impl_.time_ = uint64_t{0u};
324 _impl_._has_bits_[0] &= ~0x00000002u;
326inline uint64_t RouteMessage::_internal_time()
const {
331 return _internal_time();
333inline void RouteMessage::_internal_set_time(uint64_t value) {
334 _impl_._has_bits_[0] |= 0x00000002u;
338 _internal_set_time(value);
343inline bool RouteMessage::_internal_has_src()
const {
344 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
348 return _internal_has_src();
352 _impl_._has_bits_[0] &= ~0x00000004u;
354inline int32_t RouteMessage::_internal_src()
const {
359 return _internal_src();
361inline void RouteMessage::_internal_set_src(int32_t value) {
362 _impl_._has_bits_[0] |= 0x00000004u;
366 _internal_set_src(value);
371inline bool RouteMessage::_internal_has_dest()
const {
372 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
376 return _internal_has_dest();
380 _impl_._has_bits_[0] &= ~0x00000008u;
382inline int32_t RouteMessage::_internal_dest()
const {
387 return _internal_dest();
389inline void RouteMessage::_internal_set_dest(int32_t value) {
390 _impl_._has_bits_[0] |= 0x00000008u;
394 _internal_set_dest(value);
399inline bool RouteMessage::_internal_has_telegram()
const {
400 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
404 return _internal_has_telegram();
407 _impl_.telegram_.ClearToEmpty();
408 _impl_._has_bits_[0] &= ~0x00000001u;
412 return _internal_telegram();
414template <
typename ArgT0,
typename... ArgT>
415inline PROTOBUF_ALWAYS_INLINE
417 _impl_._has_bits_[0] |= 0x00000001u;
418 _impl_.telegram_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
422 std::string* _s = _internal_mutable_telegram();
426inline const std::string& RouteMessage::_internal_telegram()
const {
427 return _impl_.telegram_.Get();
429inline void RouteMessage::_internal_set_telegram(
const std::string& value) {
430 _impl_._has_bits_[0] |= 0x00000001u;
431 _impl_.telegram_.Set(value, GetArenaForAllocation());
433inline std::string* RouteMessage::_internal_mutable_telegram() {
434 _impl_._has_bits_[0] |= 0x00000001u;
435 return _impl_.telegram_.Mutable(GetArenaForAllocation());
439 if (!_internal_has_telegram()) {
442 _impl_._has_bits_[0] &= ~0x00000001u;
443 auto* p =
_impl_.telegram_.Release();
444#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
445 if (
_impl_.telegram_.IsDefault()) {
446 _impl_.telegram_.Set(
"", GetArenaForAllocation());
453 _impl_._has_bits_[0] |= 0x00000001u;
455 _impl_._has_bits_[0] &= ~0x00000001u;
458#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
459 if (
_impl_.telegram_.IsDefault()) {
460 _impl_.telegram_.Set(
"", GetArenaForAllocation());
467 #pragma GCC diagnostic pop
479#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2froute1_2ftest_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
friend void swap(RouteMessage &a, RouteMessage &b)
Quantity time_with_units() const
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
void set_src(int32_t value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
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
void CopyFrom(const RouteMessage &from)
int GetCachedSize() const final
size_t ByteSizeLong() const final
void set_allocated_telegram(std::string *telegram)
bool IsInitialized() const final
RouteMessage(const RouteMessage &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_NODISCARD std::string * release_telegram()
void set_time_with_units(Quantity value_w_units)
void set_dest(int32_t value)
bool has_telegram() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_CONSTEXPR RouteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
std::string * mutable_telegram()
void Swap(RouteMessage *other)
static const ClassData _class_data_
static const RouteMessage * internal_default_instance()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_time(uint64_t value)
static const RouteMessage & default_instance()
static constexpr int kIndexInFileMessages
void MergeFrom(const RouteMessage &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(RouteMessage *other)
RouteMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void set_telegram(ArgT0 &&arg0, ArgT... args)
RouteMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const std::string & telegram() const
RouteMessage & operator=(const RouteMessage &from)
RouteMessage(RouteMessage &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
RouteMessage & operator=(RouteMessage &&from) noexcept
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
RouteMessageDefaultTypeInternal _RouteMessage_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]