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