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"
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_2ftest_2facomms_2froute1_2ftest_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
59struct RouteMessageDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit PROTOBUF_CONSTEXPR
RouteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85 *
this = ::std::move(from);
93 if (
this == &from)
return *
this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() !=
nullptr
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
136 if (other ==
this)
return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() !=
nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
141 if (GetOwningArena() == other->GetOwningArena()) {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
149 if (other ==
this)
return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
157 return CreateMaybeMessage<RouteMessage>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 RouteMessage::MergeImpl(*
this, from);
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
180 void SetCachedSize(
int size)
const final;
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "goby.test.acomms.protobuf.RouteMessage";
190 bool is_message_owned =
false);
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
211 bool _internal_has_telegram()
const;
214 const std::string&
telegram()
const;
215 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
221 const std::string& _internal_telegram()
const;
222 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_telegram(
const std::string& value);
223 std::string* _internal_mutable_telegram();
229 bool _internal_has_time()
const;
232 uint64_t
time()
const;
235 uint64_t _internal_time()
const;
236 void _internal_set_time(uint64_t value);
242 bool _internal_has_src()
const;
248 int32_t _internal_src()
const;
249 void _internal_set_src(int32_t value);
255 bool _internal_has_dest()
const;
258 int32_t
dest()
const;
261 int32_t _internal_dest()
const;
262 void _internal_set_dest(int32_t value);
266 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type
time_dimension;
268 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;
270 template<
typename Quantity >
272 {
set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
274 template<
typename Quantity >
279 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
286 size_t RequiredFieldsByteSizeFallback()
const;
288 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
289 typedef void InternalArenaConstructable_;
290 typedef void DestructorSkippable_;
292 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
293 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
294 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr telegram_;
300 friend struct ::TableStruct_goby_2ftest_2facomms_2froute1_2ftest_2eproto;
308 #pragma GCC diagnostic push
309 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
314inline bool RouteMessage::_internal_has_time()
const {
315 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
319 return _internal_has_time();
322 _impl_.time_ = uint64_t{0u};
323 _impl_._has_bits_[0] &= ~0x00000002u;
325inline uint64_t RouteMessage::_internal_time()
const {
330 return _internal_time();
332inline void RouteMessage::_internal_set_time(uint64_t value) {
333 _impl_._has_bits_[0] |= 0x00000002u;
337 _internal_set_time(value);
342inline bool RouteMessage::_internal_has_src()
const {
343 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
347 return _internal_has_src();
351 _impl_._has_bits_[0] &= ~0x00000004u;
353inline int32_t RouteMessage::_internal_src()
const {
358 return _internal_src();
360inline void RouteMessage::_internal_set_src(int32_t value) {
361 _impl_._has_bits_[0] |= 0x00000004u;
365 _internal_set_src(value);
370inline bool RouteMessage::_internal_has_dest()
const {
371 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
375 return _internal_has_dest();
379 _impl_._has_bits_[0] &= ~0x00000008u;
381inline int32_t RouteMessage::_internal_dest()
const {
386 return _internal_dest();
388inline void RouteMessage::_internal_set_dest(int32_t value) {
389 _impl_._has_bits_[0] |= 0x00000008u;
393 _internal_set_dest(value);
398inline bool RouteMessage::_internal_has_telegram()
const {
399 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
403 return _internal_has_telegram();
406 _impl_.telegram_.ClearToEmpty();
407 _impl_._has_bits_[0] &= ~0x00000001u;
411 return _internal_telegram();
413template <
typename ArgT0,
typename... ArgT>
414inline PROTOBUF_ALWAYS_INLINE
416 _impl_._has_bits_[0] |= 0x00000001u;
417 _impl_.telegram_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
421 std::string* _s = _internal_mutable_telegram();
425inline const std::string& RouteMessage::_internal_telegram()
const {
426 return _impl_.telegram_.Get();
428inline void RouteMessage::_internal_set_telegram(
const std::string& value) {
429 _impl_._has_bits_[0] |= 0x00000001u;
430 _impl_.telegram_.Set(value, GetArenaForAllocation());
432inline std::string* RouteMessage::_internal_mutable_telegram() {
433 _impl_._has_bits_[0] |= 0x00000001u;
434 return _impl_.telegram_.Mutable(GetArenaForAllocation());
438 if (!_internal_has_telegram()) {
441 _impl_._has_bits_[0] &= ~0x00000001u;
442 auto* p =
_impl_.telegram_.Release();
443#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
444 if (
_impl_.telegram_.IsDefault()) {
445 _impl_.telegram_.Set(
"", GetArenaForAllocation());
452 _impl_._has_bits_[0] |= 0x00000001u;
454 _impl_._has_bits_[0] &= ~0x00000001u;
457#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
458 if (
_impl_.telegram_.IsDefault()) {
459 _impl_.telegram_.Set(
"", GetArenaForAllocation());
466 #pragma GCC diagnostic pop
478#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[]