Goby3 3.1.5a
2024.05.23
Loading...
Searching...
No Matches
test.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/test/acomms/route1/test.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
39
40#include <boost/units/systems/si.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2froute1_2ftest_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2froute1_2ftest_2eproto;
55namespace goby {
56namespace test {
57namespace acomms {
58namespace protobuf {
59class RouteMessage;
60struct RouteMessageDefaultTypeInternal;
61extern RouteMessageDefaultTypeInternal _RouteMessage_default_instance_;
62} // namespace protobuf
63} // namespace acomms
64} // namespace test
65} // namespace goby
66PROTOBUF_NAMESPACE_OPEN
67template<> ::goby::test::acomms::protobuf::RouteMessage* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::RouteMessage>(Arena*);
68PROTOBUF_NAMESPACE_CLOSE
69namespace goby {
70namespace test {
71namespace acomms {
72namespace protobuf {
73
74// ===================================================================
75
76class RouteMessage final :
77 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.acomms.protobuf.RouteMessage) */ {
78 public:
79 inline RouteMessage() : RouteMessage(nullptr) {}
80 ~RouteMessage() override;
81 explicit PROTOBUF_CONSTEXPR RouteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
82
84 RouteMessage(RouteMessage&& from) noexcept
85 : RouteMessage() {
86 *this = ::std::move(from);
87 }
88
89 inline RouteMessage& operator=(const RouteMessage& from) {
90 CopyFrom(from);
91 return *this;
92 }
93 inline RouteMessage& operator=(RouteMessage&& from) noexcept {
94 if (this == &from) return *this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() != nullptr
98 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
99 ) {
100 InternalSwap(&from);
101 } else {
102 CopyFrom(from);
103 }
104 return *this;
105 }
106
107 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
109 }
110 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
112 }
113
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115 return GetDescriptor();
116 }
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118 return default_instance().GetMetadata().descriptor;
119 }
120 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121 return default_instance().GetMetadata().reflection;
122 }
125 }
127 return reinterpret_cast<const RouteMessage*>(
129 }
130 static constexpr int kIndexInFileMessages =
131 0;
132
133 friend void swap(RouteMessage& a, RouteMessage& b) {
134 a.Swap(&b);
135 }
136 inline void Swap(RouteMessage* other) {
137 if (other == this) return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() != nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
141 #else // PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() == other->GetOwningArena()) {
143 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
144 InternalSwap(other);
145 } else {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
147 }
148 }
150 if (other == this) return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152 InternalSwap(other);
153 }
154
155 // implements Message ----------------------------------------------
156
157 RouteMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
158 return CreateMaybeMessage<RouteMessage>(arena);
159 }
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 void CopyFrom(const RouteMessage& from);
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 void MergeFrom( const RouteMessage& from) {
164 RouteMessage::MergeImpl(*this, from);
165 }
166 private:
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 public:
169 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170 bool IsInitialized() const final;
171
172 size_t ByteSizeLong() const final;
173 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
177
178 private:
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
180 void SharedDtor();
181 void SetCachedSize(int size) const final;
182 void InternalSwap(RouteMessage* other);
183
184 private:
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.test.acomms.protobuf.RouteMessage";
188 }
189 protected:
190 explicit RouteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
191 bool is_message_owned = false);
192 public:
193
194 static const ClassData _class_data_;
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
196
197 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
198
199 // nested types ----------------------------------------------------
200
201 // accessors -------------------------------------------------------
202
203 enum : int {
208 };
209 // required string telegram = 4 [(.dccl.field) = {
210 bool has_telegram() const;
211 private:
212 bool _internal_has_telegram() const;
213 public:
214 void clear_telegram();
215 const std::string& telegram() const;
216 template <typename ArgT0 = const std::string&, typename... ArgT>
217 void set_telegram(ArgT0&& arg0, ArgT... args);
218 std::string* mutable_telegram();
219 PROTOBUF_NODISCARD std::string* release_telegram();
220 void set_allocated_telegram(std::string* telegram);
221 private:
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();
225 public:
226
227 // required uint64 time = 1 [(.dccl.field) = {
228 bool has_time() const;
229 private:
230 bool _internal_has_time() const;
231 public:
232 void clear_time();
233 uint64_t time() const;
234 void set_time(uint64_t value);
235 private:
236 uint64_t _internal_time() const;
237 void _internal_set_time(uint64_t value);
238 public:
239
240 // required int32 src = 2 [(.dccl.field) = {
241 bool has_src() const;
242 private:
243 bool _internal_has_src() const;
244 public:
245 void clear_src();
246 int32_t src() const;
247 void set_src(int32_t value);
248 private:
249 int32_t _internal_src() const;
250 void _internal_set_src(int32_t value);
251 public:
252
253 // required int32 dest = 3 [(.dccl.field) = {
254 bool has_dest() const;
255 private:
256 bool _internal_has_dest() const;
257 public:
258 void clear_dest();
259 int32_t dest() const;
260 void set_dest(int32_t value);
261 private:
262 int32_t _internal_dest() const;
263 void _internal_set_dest(int32_t value);
264 public:
265
267 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type time_dimension;
268
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;
270
271 template<typename Quantity >
272 void set_time_with_units(Quantity value_w_units)
273 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
274
275 template<typename Quantity >
276 Quantity time_with_units() const
277 { return Quantity(time() * time_unit()); };
278
279 boost::units::quantity< time_unit,google::protobuf::uint64 > time_with_units() const
280 { return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
281
282 // @@protoc_insertion_point(class_scope:goby.test.acomms.protobuf.RouteMessage)
283 private:
284 class _Internal;
285
286 // helper for ByteSizeLong()
287 size_t RequiredFieldsByteSizeFallback() const;
288
289 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
290 typedef void InternalArenaConstructable_;
291 typedef void DestructorSkippable_;
292 struct Impl_ {
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_;
296 uint64_t time_;
297 int32_t src_;
298 int32_t dest_;
299 };
300 union { Impl_ _impl_; };
301 friend struct ::TableStruct_goby_2ftest_2facomms_2froute1_2ftest_2eproto;
302};
303// ===================================================================
304
305
306// ===================================================================
307
308#ifdef __GNUC__
309 #pragma GCC diagnostic push
310 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
311#endif // __GNUC__
312// RouteMessage
313
314// required uint64 time = 1 [(.dccl.field) = {
315inline bool RouteMessage::_internal_has_time() const {
316 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
317 return value;
318}
319inline bool RouteMessage::has_time() const {
320 return _internal_has_time();
321}
323 _impl_.time_ = uint64_t{0u};
324 _impl_._has_bits_[0] &= ~0x00000002u;
325}
326inline uint64_t RouteMessage::_internal_time() const {
327 return _impl_.time_;
328}
329inline uint64_t RouteMessage::time() const {
330 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.RouteMessage.time)
331 return _internal_time();
332}
333inline void RouteMessage::_internal_set_time(uint64_t value) {
334 _impl_._has_bits_[0] |= 0x00000002u;
335 _impl_.time_ = value;
336}
337inline void RouteMessage::set_time(uint64_t value) {
338 _internal_set_time(value);
339 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.RouteMessage.time)
340}
341
342// required int32 src = 2 [(.dccl.field) = {
343inline bool RouteMessage::_internal_has_src() const {
344 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
345 return value;
346}
347inline bool RouteMessage::has_src() const {
348 return _internal_has_src();
349}
351 _impl_.src_ = 0;
352 _impl_._has_bits_[0] &= ~0x00000004u;
353}
354inline int32_t RouteMessage::_internal_src() const {
355 return _impl_.src_;
356}
357inline int32_t RouteMessage::src() const {
358 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.RouteMessage.src)
359 return _internal_src();
360}
361inline void RouteMessage::_internal_set_src(int32_t value) {
362 _impl_._has_bits_[0] |= 0x00000004u;
363 _impl_.src_ = value;
364}
365inline void RouteMessage::set_src(int32_t value) {
366 _internal_set_src(value);
367 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.RouteMessage.src)
368}
369
370// required int32 dest = 3 [(.dccl.field) = {
371inline bool RouteMessage::_internal_has_dest() const {
372 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
373 return value;
374}
375inline bool RouteMessage::has_dest() const {
376 return _internal_has_dest();
377}
379 _impl_.dest_ = 0;
380 _impl_._has_bits_[0] &= ~0x00000008u;
381}
382inline int32_t RouteMessage::_internal_dest() const {
383 return _impl_.dest_;
384}
385inline int32_t RouteMessage::dest() const {
386 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.RouteMessage.dest)
387 return _internal_dest();
388}
389inline void RouteMessage::_internal_set_dest(int32_t value) {
390 _impl_._has_bits_[0] |= 0x00000008u;
391 _impl_.dest_ = value;
392}
393inline void RouteMessage::set_dest(int32_t value) {
394 _internal_set_dest(value);
395 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.RouteMessage.dest)
396}
397
398// required string telegram = 4 [(.dccl.field) = {
399inline bool RouteMessage::_internal_has_telegram() const {
400 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
401 return value;
402}
403inline bool RouteMessage::has_telegram() const {
404 return _internal_has_telegram();
405}
407 _impl_.telegram_.ClearToEmpty();
408 _impl_._has_bits_[0] &= ~0x00000001u;
409}
410inline const std::string& RouteMessage::telegram() const {
411 // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.RouteMessage.telegram)
412 return _internal_telegram();
413}
414template <typename ArgT0, typename... ArgT>
415inline PROTOBUF_ALWAYS_INLINE
416void RouteMessage::set_telegram(ArgT0&& arg0, ArgT... args) {
417 _impl_._has_bits_[0] |= 0x00000001u;
418 _impl_.telegram_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
419 // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.RouteMessage.telegram)
420}
421inline std::string* RouteMessage::mutable_telegram() {
422 std::string* _s = _internal_mutable_telegram();
423 // @@protoc_insertion_point(field_mutable:goby.test.acomms.protobuf.RouteMessage.telegram)
424 return _s;
425}
426inline const std::string& RouteMessage::_internal_telegram() const {
427 return _impl_.telegram_.Get();
428}
429inline void RouteMessage::_internal_set_telegram(const std::string& value) {
430 _impl_._has_bits_[0] |= 0x00000001u;
431 _impl_.telegram_.Set(value, GetArenaForAllocation());
432}
433inline std::string* RouteMessage::_internal_mutable_telegram() {
434 _impl_._has_bits_[0] |= 0x00000001u;
435 return _impl_.telegram_.Mutable(GetArenaForAllocation());
436}
437inline std::string* RouteMessage::release_telegram() {
438 // @@protoc_insertion_point(field_release:goby.test.acomms.protobuf.RouteMessage.telegram)
439 if (!_internal_has_telegram()) {
440 return nullptr;
441 }
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());
447 }
448#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
449 return p;
450}
452 if (telegram != nullptr) {
453 _impl_._has_bits_[0] |= 0x00000001u;
454 } else {
455 _impl_._has_bits_[0] &= ~0x00000001u;
456 }
457 _impl_.telegram_.SetAllocated(telegram, GetArenaForAllocation());
458#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
459 if (_impl_.telegram_.IsDefault()) {
460 _impl_.telegram_.Set("", GetArenaForAllocation());
461 }
462#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
463 // @@protoc_insertion_point(field_set_allocated:goby.test.acomms.protobuf.RouteMessage.telegram)
464}
465
466#ifdef __GNUC__
467 #pragma GCC diagnostic pop
468#endif // __GNUC__
469
470// @@protoc_insertion_point(namespace_scope)
471
472} // namespace protobuf
473} // namespace acomms
474} // namespace test
475} // namespace goby
476
477// @@protoc_insertion_point(global_scope)
478
479#include <google/protobuf/port_undef.inc>
480#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2froute1_2ftest_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2froute1_2ftest_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition test.pb.h:120
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
Definition test.pb.h:267
friend void swap(RouteMessage &a, RouteMessage &b)
Definition test.pb.h:133
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
Definition test.pb.h:279
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition test.pb.h:114
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
Definition test.pb.h:269
void CopyFrom(const RouteMessage &from)
void set_allocated_telegram(std::string *telegram)
Definition test.pb.h:451
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()
Definition test.pb.h:437
void set_time_with_units(Quantity value_w_units)
Definition test.pb.h:272
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition test.pb.h:117
PROTOBUF_CONSTEXPR RouteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void Swap(RouteMessage *other)
Definition test.pb.h:136
static const ClassData _class_data_
Definition test.pb.h:194
static const RouteMessage * internal_default_instance()
Definition test.pb.h:126
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const RouteMessage & default_instance()
Definition test.pb.h:123
static constexpr int kIndexInFileMessages
Definition test.pb.h:130
void MergeFrom(const RouteMessage &from)
Definition test.pb.h:163
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition test.pb.h:110
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void UnsafeArenaSwap(RouteMessage *other)
Definition test.pb.h:149
RouteMessage * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition test.pb.h:157
void set_telegram(ArgT0 &&arg0, ArgT... args)
RouteMessage(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const std::string & telegram() const
Definition test.pb.h:410
RouteMessage & operator=(const RouteMessage &from)
Definition test.pb.h:89
RouteMessage(RouteMessage &&from) noexcept
Definition test.pb.h:84
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition test.pb.h:107
RouteMessage & operator=(RouteMessage &&from) noexcept
Definition test.pb.h:93
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
RouteMessageDefaultTypeInternal _RouteMessage_default_instance_
The global namespace for the Goby project.