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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "dccl/option_extensions.pb.h"
37 #include <boost/units/quantity.hpp>
38 #include <boost/units/absolute.hpp>
39 #include <boost/units/dimensionless_type.hpp>
40 #include <boost/units/make_scaled_unit.hpp>
42 #include <boost/units/systems/si.hpp>
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2froute1_2ftest_2eproto
46 PROTOBUF_NAMESPACE_OPEN
50 PROTOBUF_NAMESPACE_CLOSE
54 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
70 class RouteMessageDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::goby::test::acomms::protobuf::RouteMessage* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::RouteMessage>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
86 class RouteMessage PROTOBUF_FINAL :
87 public ::PROTOBUF_NAMESPACE_ID::Message {
95 *
this = ::std::move(from);
98 inline RouteMessage&
operator=(
const RouteMessage& from) {
102 inline RouteMessage&
operator=(RouteMessage&& from) noexcept {
103 if (GetArena() == from.GetArena()) {
104 if (
this != &from) InternalSwap(&from);
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() {
119 return GetDescriptor();
122 return GetMetadataStatic().descriptor;
125 return GetMetadataStatic().reflection;
131 return reinterpret_cast<const RouteMessage*
>(
134 static constexpr
int kIndexInFileMessages =
137 friend void swap(RouteMessage& a, RouteMessage& b) {
140 inline void Swap(RouteMessage* other) {
141 if (other ==
this)
return;
142 if (GetArena() == other->GetArena()) {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
149 if (other ==
this)
return;
150 GOOGLE_DCHECK(GetArena() == other->GetArena());
156 inline RouteMessage*
New() const final {
157 return CreateMaybeMessage<RouteMessage>(
nullptr);
160 RouteMessage*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
161 return CreateMaybeMessage<RouteMessage>(arena);
163 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
164 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
167 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
168 bool IsInitialized() const final;
171 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
172 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
173 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 int GetCachedSize() const final {
return _cached_size_.Get(); }
177 inline void SharedCtor();
178 inline void SharedDtor();
179 void SetCachedSize(
int size)
const final;
180 void InternalSwap(RouteMessage* other);
181 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
182 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
183 return "goby.test.acomms.protobuf.RouteMessage";
188 static void ArenaDtor(
void*
object);
189 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
206 kTelegramFieldNumber = 4,
207 kTimeFieldNumber = 1,
209 kDestFieldNumber = 3,
214 bool _internal_has_telegram()
const;
225 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
226 " string fields are deprecated and will be removed in a"
228 std::
string* unsafe_arena_release_telegram();
229 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
230 "
string fields are deprecated and will be removed in a"
232 void unsafe_arena_set_allocated_telegram(
233 std::
string* telegram);
235 const std::
string& _internal_telegram() const;
236 void _internal_set_telegram(const std::
string& value);
237 std::
string* _internal_mutable_telegram();
241 bool has_time() const;
243 bool _internal_has_time() const;
247 void set_time(::PROTOBUF_NAMESPACE_ID::
uint64 value);
249 ::PROTOBUF_NAMESPACE_ID::
uint64 _internal_time() const;
250 void _internal_set_time(::PROTOBUF_NAMESPACE_ID::
uint64 value);
254 bool has_src() const;
256 bool _internal_has_src() const;
259 ::PROTOBUF_NAMESPACE_ID::
int32 src() const;
260 void set_src(::PROTOBUF_NAMESPACE_ID::
int32 value);
262 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_src() const;
263 void _internal_set_src(::PROTOBUF_NAMESPACE_ID::
int32 value);
267 bool has_dest() const;
269 bool _internal_has_dest() const;
272 ::PROTOBUF_NAMESPACE_ID::
int32 dest() const;
273 void set_dest(::PROTOBUF_NAMESPACE_ID::
int32 value);
275 ::PROTOBUF_NAMESPACE_ID::
int32 _internal_dest() const;
276 void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::
int32 value);
282 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;
284 template<
typename Quantity >
286 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
288 template<
typename Quantity >
293 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
300 size_t RequiredFieldsByteSizeFallback()
const;
302 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
303 typedef void InternalArenaConstructable_;
304 typedef void DestructorSkippable_;
305 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
306 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
307 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr telegram_;
311 friend struct ::TableStruct_goby_2ftest_2facomms_2froute1_2ftest_2eproto;
319 #pragma GCC diagnostic push
320 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
325 inline bool RouteMessage::_internal_has_time()
const {
326 bool value = (_has_bits_[0] & 0x00000002u) != 0;
329 inline bool RouteMessage::has_time()
const {
330 return _internal_has_time();
332 inline void RouteMessage::clear_time() {
333 time_ = PROTOBUF_ULONGLONG(0);
334 _has_bits_[0] &= ~0x00000002u;
341 return _internal_time();
344 _has_bits_[0] |= 0x00000002u;
348 _internal_set_time(value);
353 inline bool RouteMessage::_internal_has_src()
const {
354 bool value = (_has_bits_[0] & 0x00000004u) != 0;
357 inline bool RouteMessage::has_src()
const {
358 return _internal_has_src();
360 inline void RouteMessage::clear_src() {
362 _has_bits_[0] &= ~0x00000004u;
369 return _internal_src();
372 _has_bits_[0] |= 0x00000004u;
376 _internal_set_src(value);
381 inline bool RouteMessage::_internal_has_dest()
const {
382 bool value = (_has_bits_[0] & 0x00000008u) != 0;
385 inline bool RouteMessage::has_dest()
const {
386 return _internal_has_dest();
388 inline void RouteMessage::clear_dest() {
390 _has_bits_[0] &= ~0x00000008u;
397 return _internal_dest();
400 _has_bits_[0] |= 0x00000008u;
404 _internal_set_dest(value);
409 inline bool RouteMessage::_internal_has_telegram()
const {
410 bool value = (_has_bits_[0] & 0x00000001u) != 0;
413 inline bool RouteMessage::has_telegram()
const {
414 return _internal_has_telegram();
416 inline void RouteMessage::clear_telegram() {
418 _has_bits_[0] &= ~0x00000001u;
420 inline const std::string& RouteMessage::telegram()
const {
422 return _internal_telegram();
424 inline void RouteMessage::set_telegram(
const std::string& value) {
425 _internal_set_telegram(value);
428 inline std::string* RouteMessage::mutable_telegram() {
430 return _internal_mutable_telegram();
432 inline const std::string& RouteMessage::_internal_telegram()
const {
433 return telegram_.Get();
435 inline void RouteMessage::_internal_set_telegram(
const std::string& value) {
436 _has_bits_[0] |= 0x00000001u;
439 inline void RouteMessage::set_telegram(std::string&& value) {
440 _has_bits_[0] |= 0x00000001u;
445 inline void RouteMessage::set_telegram(
const char* value) {
446 GOOGLE_DCHECK(value !=
nullptr);
447 _has_bits_[0] |= 0x00000001u;
452 inline void RouteMessage::set_telegram(
const char* value,
454 _has_bits_[0] |= 0x00000001u;
456 reinterpret_cast<const char*
>(value), size), GetArena());
459 inline std::string* RouteMessage::_internal_mutable_telegram() {
460 _has_bits_[0] |= 0x00000001u;
463 inline std::string* RouteMessage::release_telegram() {
465 if (!_internal_has_telegram()) {
468 _has_bits_[0] &= ~0x00000001u;
471 inline void RouteMessage::set_allocated_telegram(std::string* telegram) {
472 if (telegram !=
nullptr) {
473 _has_bits_[0] |= 0x00000001u;
475 _has_bits_[0] &= ~0x00000001u;
481 inline std::string* RouteMessage::unsafe_arena_release_telegram() {
483 GOOGLE_DCHECK(GetArena() !=
nullptr);
484 _has_bits_[0] &= ~0x00000001u;
488 inline void RouteMessage::unsafe_arena_set_allocated_telegram(
489 std::string* telegram) {
490 GOOGLE_DCHECK(GetArena() !=
nullptr);
491 if (telegram !=
nullptr) {
492 _has_bits_[0] |= 0x00000001u;
494 _has_bits_[0] &= ~0x00000001u;
497 telegram, GetArena());
502 #pragma GCC diagnostic pop
514 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2froute1_2ftest_2eproto
void set_allocated_telegram(std::string *telegram)
void set_telegram(const std::string &value)
RouteMessage(RouteMessage &&from) noexcept
static const RouteMessage * internal_default_instance()
void CopyFrom(const RouteMessage &from)
void UnsafeArenaSwap(RouteMessage *other)
friend void swap(RouteMessage &a, RouteMessage &b)
RouteMessage & operator=(const RouteMessage &from)
static const RouteMessage & default_instance()
static void InitAsDefaultInstance()
void set_telegram(std::string &&value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void MergeFrom(const RouteMessage &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
RouteMessage(const RouteMessage &from)
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
RouteMessage * New() const final
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
std::string * mutable_telegram()
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const std::string & telegram() const
std::string * release_telegram()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
RouteMessage & operator=(RouteMessage &&from) noexcept
bool has_telegram() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_telegram(const char *value)
Quantity time_with_units() const
RouteMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_time_with_units(Quantity value_w_units)
RouteMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_telegram(const char *value, size_t size)
void Swap(RouteMessage *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
unit< time_dimension, si::system > time
@ value
the parser finished reading a JSON value
RouteMessageDefaultTypeInternal _RouteMessage_default_instance_
The global namespace for the Goby project.
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
type
Generic JSON types used in JWTs.
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)