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