Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
mosh_packet.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/acomms/protobuf/mosh_packet.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_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// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
51extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto;
52namespace goby {
53namespace acomms {
54namespace protobuf {
55class MoshPacket;
56struct MoshPacketDefaultTypeInternal;
57extern MoshPacketDefaultTypeInternal _MoshPacket_default_instance_;
58} // namespace protobuf
59} // namespace acomms
60} // namespace goby
61PROTOBUF_NAMESPACE_OPEN
62template<> ::goby::acomms::protobuf::MoshPacket* Arena::CreateMaybeMessage<::goby::acomms::protobuf::MoshPacket>(Arena*);
63PROTOBUF_NAMESPACE_CLOSE
64namespace goby {
65namespace acomms {
66namespace protobuf {
67
68// ===================================================================
69
70class MoshPacket final :
71 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.MoshPacket) */ {
72 public:
73 inline MoshPacket() : MoshPacket(nullptr) {}
74 ~MoshPacket() override;
75 explicit PROTOBUF_CONSTEXPR MoshPacket(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
76
77 MoshPacket(const MoshPacket& from);
78 MoshPacket(MoshPacket&& from) noexcept
79 : MoshPacket() {
80 *this = ::std::move(from);
81 }
82
83 inline MoshPacket& operator=(const MoshPacket& from) {
84 CopyFrom(from);
85 return *this;
86 }
87 inline MoshPacket& operator=(MoshPacket&& from) noexcept {
88 if (this == &from) return *this;
89 if (GetOwningArena() == from.GetOwningArena()
90 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
91 && GetOwningArena() != nullptr
92 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
93 ) {
94 InternalSwap(&from);
95 } else {
96 CopyFrom(from);
97 }
98 return *this;
99 }
100
101 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
103 }
104 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
106 }
107
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
109 return GetDescriptor();
110 }
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
112 return default_instance().GetMetadata().descriptor;
113 }
114 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
115 return default_instance().GetMetadata().reflection;
116 }
117 static const MoshPacket& default_instance() {
119 }
120 static inline const MoshPacket* internal_default_instance() {
121 return reinterpret_cast<const MoshPacket*>(
123 }
124 static constexpr int kIndexInFileMessages =
125 0;
126
127 friend void swap(MoshPacket& a, MoshPacket& b) {
128 a.Swap(&b);
129 }
130 inline void Swap(MoshPacket* other) {
131 if (other == this) return;
132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() != nullptr &&
134 GetOwningArena() == other->GetOwningArena()) {
135 #else // PROTOBUF_FORCE_COPY_IN_SWAP
136 if (GetOwningArena() == other->GetOwningArena()) {
137 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
138 InternalSwap(other);
139 } else {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
141 }
142 }
144 if (other == this) return;
145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
146 InternalSwap(other);
147 }
148
149 // implements Message ----------------------------------------------
150
151 MoshPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
152 return CreateMaybeMessage<MoshPacket>(arena);
153 }
154 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
155 void CopyFrom(const MoshPacket& from);
156 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
157 void MergeFrom( const MoshPacket& from) {
158 MoshPacket::MergeImpl(*this, from);
159 }
160 private:
161 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
162 public:
163 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
164 bool IsInitialized() const final;
165
166 size_t ByteSizeLong() const final;
167 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
169 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
170 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
171
172 private:
173 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
174 void SharedDtor();
175 void SetCachedSize(int size) const final;
176 void InternalSwap(MoshPacket* other);
177
178 private:
179 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181 return "goby.acomms.protobuf.MoshPacket";
182 }
183 protected:
184 explicit MoshPacket(::PROTOBUF_NAMESPACE_ID::Arena* arena,
185 bool is_message_owned = false);
186 public:
187
188 static const ClassData _class_data_;
189 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
190
191 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
192
193 // nested types ----------------------------------------------------
194
195 // accessors -------------------------------------------------------
196
197 enum : int {
204 };
205 // required bytes fragment = 6 [(.dccl.field) = {
206 bool has_fragment() const;
207 private:
208 bool _internal_has_fragment() const;
209 public:
210 void clear_fragment();
211 const std::string& fragment() const;
212 template <typename ArgT0 = const std::string&, typename... ArgT>
213 void set_fragment(ArgT0&& arg0, ArgT... args);
214 std::string* mutable_fragment();
215 PROTOBUF_NODISCARD std::string* release_fragment();
216 void set_allocated_fragment(std::string* fragment);
217 private:
218 const std::string& _internal_fragment() const;
219 inline PROTOBUF_ALWAYS_INLINE void _internal_set_fragment(const std::string& value);
220 std::string* _internal_mutable_fragment();
221 public:
222
223 // required int32 src = 1 [(.dccl.field) = {
224 bool has_src() const;
225 private:
226 bool _internal_has_src() const;
227 public:
228 void clear_src();
229 int32_t src() const;
230 void set_src(int32_t value);
231 private:
232 int32_t _internal_src() const;
233 void _internal_set_src(int32_t value);
234 public:
235
236 // required int32 dest = 2 [(.dccl.field) = {
237 bool has_dest() const;
238 private:
239 bool _internal_has_dest() const;
240 public:
241 void clear_dest();
242 int32_t dest() const;
243 void set_dest(int32_t value);
244 private:
245 int32_t _internal_dest() const;
246 void _internal_set_dest(int32_t value);
247 public:
248
249 // required int32 frag_num = 3 [(.dccl.field) = {
250 bool has_frag_num() const;
251 private:
252 bool _internal_has_frag_num() const;
253 public:
254 void clear_frag_num();
255 int32_t frag_num() const;
256 void set_frag_num(int32_t value);
257 private:
258 int32_t _internal_frag_num() const;
259 void _internal_set_frag_num(int32_t value);
260 public:
261
262 // required int32 frag_len = 4 [(.dccl.field) = {
263 bool has_frag_len() const;
264 private:
265 bool _internal_has_frag_len() const;
266 public:
267 void clear_frag_len();
268 int32_t frag_len() const;
269 void set_frag_len(int32_t value);
270 private:
271 int32_t _internal_frag_len() const;
272 void _internal_set_frag_len(int32_t value);
273 public:
274
275 // required bool is_last_frag = 5 [(.dccl.field) = {
276 bool has_is_last_frag() const;
277 private:
278 bool _internal_has_is_last_frag() const;
279 public:
280 void clear_is_last_frag();
281 bool is_last_frag() const;
282 void set_is_last_frag(bool value);
283 private:
284 bool _internal_is_last_frag() const;
285 void _internal_set_is_last_frag(bool value);
286 public:
287
289 // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MoshPacket)
290 private:
291 class _Internal;
292
293 // helper for ByteSizeLong()
294 size_t RequiredFieldsByteSizeFallback() const;
295
296 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
297 typedef void InternalArenaConstructable_;
298 typedef void DestructorSkippable_;
299 struct Impl_ {
300 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
301 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
302 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_;
303 int32_t src_;
304 int32_t dest_;
305 int32_t frag_num_;
306 int32_t frag_len_;
307 bool is_last_frag_;
308 };
309 union { Impl_ _impl_; };
310 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto;
311};
312// ===================================================================
313
314
315// ===================================================================
316
317#ifdef __GNUC__
318 #pragma GCC diagnostic push
319 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
320#endif // __GNUC__
321// MoshPacket
322
323// required int32 src = 1 [(.dccl.field) = {
324inline bool MoshPacket::_internal_has_src() const {
325 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
326 return value;
327}
328inline bool MoshPacket::has_src() const {
329 return _internal_has_src();
330}
332 _impl_.src_ = 0;
333 _impl_._has_bits_[0] &= ~0x00000002u;
334}
335inline int32_t MoshPacket::_internal_src() const {
336 return _impl_.src_;
337}
338inline int32_t MoshPacket::src() const {
339 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.src)
340 return _internal_src();
341}
342inline void MoshPacket::_internal_set_src(int32_t value) {
343 _impl_._has_bits_[0] |= 0x00000002u;
344 _impl_.src_ = value;
345}
346inline void MoshPacket::set_src(int32_t value) {
347 _internal_set_src(value);
348 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.src)
349}
350
351// required int32 dest = 2 [(.dccl.field) = {
352inline bool MoshPacket::_internal_has_dest() const {
353 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
354 return value;
355}
356inline bool MoshPacket::has_dest() const {
357 return _internal_has_dest();
358}
360 _impl_.dest_ = 0;
361 _impl_._has_bits_[0] &= ~0x00000004u;
362}
363inline int32_t MoshPacket::_internal_dest() const {
364 return _impl_.dest_;
365}
366inline int32_t MoshPacket::dest() const {
367 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.dest)
368 return _internal_dest();
369}
370inline void MoshPacket::_internal_set_dest(int32_t value) {
371 _impl_._has_bits_[0] |= 0x00000004u;
372 _impl_.dest_ = value;
373}
374inline void MoshPacket::set_dest(int32_t value) {
375 _internal_set_dest(value);
376 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.dest)
377}
378
379// required int32 frag_num = 3 [(.dccl.field) = {
380inline bool MoshPacket::_internal_has_frag_num() const {
381 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
382 return value;
383}
384inline bool MoshPacket::has_frag_num() const {
385 return _internal_has_frag_num();
386}
388 _impl_.frag_num_ = 0;
389 _impl_._has_bits_[0] &= ~0x00000008u;
390}
391inline int32_t MoshPacket::_internal_frag_num() const {
392 return _impl_.frag_num_;
393}
394inline int32_t MoshPacket::frag_num() const {
395 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.frag_num)
396 return _internal_frag_num();
397}
398inline void MoshPacket::_internal_set_frag_num(int32_t value) {
399 _impl_._has_bits_[0] |= 0x00000008u;
400 _impl_.frag_num_ = value;
401}
402inline void MoshPacket::set_frag_num(int32_t value) {
403 _internal_set_frag_num(value);
404 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.frag_num)
405}
406
407// required int32 frag_len = 4 [(.dccl.field) = {
408inline bool MoshPacket::_internal_has_frag_len() const {
409 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
410 return value;
411}
412inline bool MoshPacket::has_frag_len() const {
413 return _internal_has_frag_len();
414}
416 _impl_.frag_len_ = 0;
417 _impl_._has_bits_[0] &= ~0x00000010u;
418}
419inline int32_t MoshPacket::_internal_frag_len() const {
420 return _impl_.frag_len_;
421}
422inline int32_t MoshPacket::frag_len() const {
423 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.frag_len)
424 return _internal_frag_len();
425}
426inline void MoshPacket::_internal_set_frag_len(int32_t value) {
427 _impl_._has_bits_[0] |= 0x00000010u;
428 _impl_.frag_len_ = value;
429}
430inline void MoshPacket::set_frag_len(int32_t value) {
431 _internal_set_frag_len(value);
432 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.frag_len)
433}
434
435// required bool is_last_frag = 5 [(.dccl.field) = {
436inline bool MoshPacket::_internal_has_is_last_frag() const {
437 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
438 return value;
439}
440inline bool MoshPacket::has_is_last_frag() const {
441 return _internal_has_is_last_frag();
442}
444 _impl_.is_last_frag_ = false;
445 _impl_._has_bits_[0] &= ~0x00000020u;
446}
447inline bool MoshPacket::_internal_is_last_frag() const {
448 return _impl_.is_last_frag_;
449}
450inline bool MoshPacket::is_last_frag() const {
451 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.is_last_frag)
452 return _internal_is_last_frag();
453}
454inline void MoshPacket::_internal_set_is_last_frag(bool value) {
455 _impl_._has_bits_[0] |= 0x00000020u;
456 _impl_.is_last_frag_ = value;
457}
458inline void MoshPacket::set_is_last_frag(bool value) {
459 _internal_set_is_last_frag(value);
460 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.is_last_frag)
461}
462
463// required bytes fragment = 6 [(.dccl.field) = {
464inline bool MoshPacket::_internal_has_fragment() const {
465 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
466 return value;
467}
468inline bool MoshPacket::has_fragment() const {
469 return _internal_has_fragment();
470}
472 _impl_.fragment_.ClearToEmpty();
473 _impl_._has_bits_[0] &= ~0x00000001u;
474}
475inline const std::string& MoshPacket::fragment() const {
476 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.fragment)
477 return _internal_fragment();
478}
479template <typename ArgT0, typename... ArgT>
480inline PROTOBUF_ALWAYS_INLINE
481void MoshPacket::set_fragment(ArgT0&& arg0, ArgT... args) {
482 _impl_._has_bits_[0] |= 0x00000001u;
483 _impl_.fragment_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
484 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.fragment)
485}
486inline std::string* MoshPacket::mutable_fragment() {
487 std::string* _s = _internal_mutable_fragment();
488 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MoshPacket.fragment)
489 return _s;
490}
491inline const std::string& MoshPacket::_internal_fragment() const {
492 return _impl_.fragment_.Get();
493}
494inline void MoshPacket::_internal_set_fragment(const std::string& value) {
495 _impl_._has_bits_[0] |= 0x00000001u;
496 _impl_.fragment_.Set(value, GetArenaForAllocation());
497}
498inline std::string* MoshPacket::_internal_mutable_fragment() {
499 _impl_._has_bits_[0] |= 0x00000001u;
500 return _impl_.fragment_.Mutable(GetArenaForAllocation());
501}
502inline std::string* MoshPacket::release_fragment() {
503 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.MoshPacket.fragment)
504 if (!_internal_has_fragment()) {
505 return nullptr;
506 }
507 _impl_._has_bits_[0] &= ~0x00000001u;
508 auto* p = _impl_.fragment_.Release();
509#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
510 if (_impl_.fragment_.IsDefault()) {
511 _impl_.fragment_.Set("", GetArenaForAllocation());
512 }
513#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
514 return p;
515}
517 if (fragment != nullptr) {
518 _impl_._has_bits_[0] |= 0x00000001u;
519 } else {
520 _impl_._has_bits_[0] &= ~0x00000001u;
521 }
522 _impl_.fragment_.SetAllocated(fragment, GetArenaForAllocation());
523#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
524 if (_impl_.fragment_.IsDefault()) {
525 _impl_.fragment_.Set("", GetArenaForAllocation());
526 }
527#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
528 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.MoshPacket.fragment)
529}
530
531#ifdef __GNUC__
532 #pragma GCC diagnostic pop
533#endif // __GNUC__
534
535// @@protoc_insertion_point(namespace_scope)
536
537} // namespace protobuf
538} // namespace acomms
539} // namespace goby
540
541// @@protoc_insertion_point(global_scope)
542
543#include <google/protobuf/port_undef.inc>
544#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
void MergeFrom(const MoshPacket &from)
static const ClassData _class_data_
void set_fragment(ArgT0 &&arg0, ArgT... args)
const std::string & fragment() const
static const MoshPacket & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
MoshPacket(MoshPacket &&from) noexcept
size_t ByteSizeLong() const final
MoshPacket * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void UnsafeArenaSwap(MoshPacket *other)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
MoshPacket & operator=(const MoshPacket &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
MoshPacket(const MoshPacket &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_allocated_fragment(std::string *fragment)
PROTOBUF_NODISCARD std::string * release_fragment()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void CopyFrom(const MoshPacket &from)
PROTOBUF_CONSTEXPR MoshPacket(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const MoshPacket * internal_default_instance()
MoshPacket & operator=(MoshPacket &&from) noexcept
friend void swap(MoshPacket &a, MoshPacket &b)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static constexpr int kIndexInFileMessages
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
MoshPacket(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
MoshPacketDefaultTypeInternal _MoshPacket_default_instance_
The global namespace for the Goby project.