Goby3  3.1.5
2024.05.14
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 < 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
14 #error your headers.
15 #endif
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.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.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> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/unknown_field_set.h>
36 #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>
41 // @@protoc_insertion_point(includes)
42 #include <google/protobuf/port_def.inc>
43 #define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
44 PROTOBUF_NAMESPACE_OPEN
45 namespace internal {
46 class AnyMetadata;
47 } // namespace internal
48 PROTOBUF_NAMESPACE_CLOSE
49 
50 // Internal implementation detail -- do not use these members.
52  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
53  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
59  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61 };
62 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto;
63 namespace goby {
64 namespace acomms {
65 namespace protobuf {
66 class MoshPacket;
67 class MoshPacketDefaultTypeInternal;
68 extern MoshPacketDefaultTypeInternal _MoshPacket_default_instance_;
69 } // namespace protobuf
70 } // namespace acomms
71 } // namespace goby
72 PROTOBUF_NAMESPACE_OPEN
73 template<> ::goby::acomms::protobuf::MoshPacket* Arena::CreateMaybeMessage<::goby::acomms::protobuf::MoshPacket>(Arena*);
74 PROTOBUF_NAMESPACE_CLOSE
75 namespace goby {
76 namespace acomms {
77 namespace protobuf {
78 
79 // ===================================================================
80 
81 class MoshPacket PROTOBUF_FINAL :
82  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.MoshPacket) */ {
83  public:
84  inline MoshPacket() : MoshPacket(nullptr) {};
85  virtual ~MoshPacket();
86 
87  MoshPacket(const MoshPacket& from);
88  MoshPacket(MoshPacket&& from) noexcept
89  : MoshPacket() {
90  *this = ::std::move(from);
91  }
92 
93  inline MoshPacket& operator=(const MoshPacket& from) {
94  CopyFrom(from);
95  return *this;
96  }
97  inline MoshPacket& operator=(MoshPacket&& from) noexcept {
98  if (GetArena() == from.GetArena()) {
99  if (this != &from) 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 GetMetadataStatic().descriptor;
118  }
119  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
120  return GetMetadataStatic().reflection;
121  }
122  static const MoshPacket& default_instance();
123 
124  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
125  static inline const MoshPacket* internal_default_instance() {
126  return reinterpret_cast<const MoshPacket*>(
128  }
129  static constexpr int kIndexInFileMessages =
130  0;
131 
132  friend void swap(MoshPacket& a, MoshPacket& b) {
133  a.Swap(&b);
134  }
135  inline void Swap(MoshPacket* other) {
136  if (other == this) return;
137  if (GetArena() == other->GetArena()) {
138  InternalSwap(other);
139  } else {
140  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
141  }
142  }
143  void UnsafeArenaSwap(MoshPacket* other) {
144  if (other == this) return;
145  GOOGLE_DCHECK(GetArena() == other->GetArena());
146  InternalSwap(other);
147  }
148 
149  // implements Message ----------------------------------------------
150 
151  inline MoshPacket* New() const final {
152  return CreateMaybeMessage<MoshPacket>(nullptr);
153  }
154 
155  MoshPacket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
156  return CreateMaybeMessage<MoshPacket>(arena);
157  }
158  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
159  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
160  void CopyFrom(const MoshPacket& from);
161  void MergeFrom(const MoshPacket& from);
162  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
163  bool IsInitialized() const final;
164 
165  size_t ByteSizeLong() const final;
166  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
167  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
168  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
169  int GetCachedSize() const final { return _cached_size_.Get(); }
170 
171  private:
172  inline void SharedCtor();
173  inline void SharedDtor();
174  void SetCachedSize(int size) const final;
175  void InternalSwap(MoshPacket* other);
176  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
177  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
178  return "goby.acomms.protobuf.MoshPacket";
179  }
180  protected:
181  explicit MoshPacket(::PROTOBUF_NAMESPACE_ID::Arena* arena);
182  private:
183  static void ArenaDtor(void* object);
184  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
185  public:
186 
187  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
188  private:
189  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
190  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto);
191  return ::descriptor_table_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto.file_level_metadata[kIndexInFileMessages];
192  }
193 
194  public:
195 
196  // nested types ----------------------------------------------------
197 
198  // accessors -------------------------------------------------------
199 
200  enum : int {
201  kFragmentFieldNumber = 6,
202  kSrcFieldNumber = 1,
203  kDestFieldNumber = 2,
204  kFragNumFieldNumber = 3,
205  kFragLenFieldNumber = 4,
206  kIsLastFragFieldNumber = 5,
207  };
208  // required bytes fragment = 6 [(.dccl.field) = {
209  bool has_fragment() const;
210  private:
211  bool _internal_has_fragment() const;
212  public:
214  const std::string& fragment() const;
215  void set_fragment(const std::string& value);
216  void set_fragment(std::string&& value);
217  void set_fragment(const char* value);
218  void set_fragment(const void* value, size_t size);
219  std::string* mutable_fragment();
220  std::string* release_fragment();
221  void set_allocated_fragment(std::string* fragment);
222  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
223  " string fields are deprecated and will be removed in a"
224  " future release.")
225  std::string* unsafe_arena_release_fragment();
226  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
227  " string fields are deprecated and will be removed in a"
228  " future release.")
229  void unsafe_arena_set_allocated_fragment(
230  std::string* fragment);
231  private:
232  const std::string& _internal_fragment() const;
233  void _internal_set_fragment(const std::string& value);
234  std::string* _internal_mutable_fragment();
235  public:
236 
237  // required int32 src = 1 [(.dccl.field) = {
238  bool has_src() const;
239  private:
240  bool _internal_has_src() const;
241  public:
242  void clear_src();
243  ::PROTOBUF_NAMESPACE_ID::int32 src() const;
244  void set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
245  private:
246  ::PROTOBUF_NAMESPACE_ID::int32 _internal_src() const;
247  void _internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value);
248  public:
249 
250  // required int32 dest = 2 [(.dccl.field) = {
251  bool has_dest() const;
252  private:
253  bool _internal_has_dest() const;
254  public:
255  void clear_dest();
256  ::PROTOBUF_NAMESPACE_ID::int32 dest() const;
257  void set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
258  private:
259  ::PROTOBUF_NAMESPACE_ID::int32 _internal_dest() const;
260  void _internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value);
261  public:
262 
263  // required int32 frag_num = 3 [(.dccl.field) = {
264  bool has_frag_num() const;
265  private:
266  bool _internal_has_frag_num() const;
267  public:
268  void clear_frag_num();
269  ::PROTOBUF_NAMESPACE_ID::int32 frag_num() const;
270  void set_frag_num(::PROTOBUF_NAMESPACE_ID::int32 value);
271  private:
272  ::PROTOBUF_NAMESPACE_ID::int32 _internal_frag_num() const;
273  void _internal_set_frag_num(::PROTOBUF_NAMESPACE_ID::int32 value);
274  public:
275 
276  // required int32 frag_len = 4 [(.dccl.field) = {
277  bool has_frag_len() const;
278  private:
279  bool _internal_has_frag_len() const;
280  public:
281  void clear_frag_len();
282  ::PROTOBUF_NAMESPACE_ID::int32 frag_len() const;
283  void set_frag_len(::PROTOBUF_NAMESPACE_ID::int32 value);
284  private:
285  ::PROTOBUF_NAMESPACE_ID::int32 _internal_frag_len() const;
286  void _internal_set_frag_len(::PROTOBUF_NAMESPACE_ID::int32 value);
287  public:
288 
289  // required bool is_last_frag = 5 [(.dccl.field) = {
290  bool has_is_last_frag() const;
291  private:
292  bool _internal_has_is_last_frag() const;
293  public:
294  void clear_is_last_frag();
295  bool is_last_frag() const;
296  void set_is_last_frag(bool value);
297  private:
298  bool _internal_is_last_frag() const;
299  void _internal_set_is_last_frag(bool value);
300  public:
301 
302  enum DCCLParameters { DCCL_ID = 512, DCCL_MAX_BYTES = 64 };
303  // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.MoshPacket)
304  private:
305  class _Internal;
306 
307  // helper for ByteSizeLong()
308  size_t RequiredFieldsByteSizeFallback() const;
309 
310  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
311  typedef void InternalArenaConstructable_;
312  typedef void DestructorSkippable_;
313  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
314  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
315  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr fragment_;
320  bool is_last_frag_;
321  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto;
322 };
323 // ===================================================================
324 
325 
326 // ===================================================================
327 
328 #ifdef __GNUC__
329  #pragma GCC diagnostic push
330  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
331 #endif // __GNUC__
332 // MoshPacket
333 
334 // required int32 src = 1 [(.dccl.field) = {
335 inline bool MoshPacket::_internal_has_src() const {
336  bool value = (_has_bits_[0] & 0x00000002u) != 0;
337  return value;
338 }
339 inline bool MoshPacket::has_src() const {
340  return _internal_has_src();
341 }
342 inline void MoshPacket::clear_src() {
343  src_ = 0;
344  _has_bits_[0] &= ~0x00000002u;
345 }
346 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::_internal_src() const {
347  return src_;
348 }
349 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::src() const {
350  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.src)
351  return _internal_src();
352 }
353 inline void MoshPacket::_internal_set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
354  _has_bits_[0] |= 0x00000002u;
355  src_ = value;
356 }
357 inline void MoshPacket::set_src(::PROTOBUF_NAMESPACE_ID::int32 value) {
358  _internal_set_src(value);
359  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.src)
360 }
361 
362 // required int32 dest = 2 [(.dccl.field) = {
363 inline bool MoshPacket::_internal_has_dest() const {
364  bool value = (_has_bits_[0] & 0x00000004u) != 0;
365  return value;
366 }
367 inline bool MoshPacket::has_dest() const {
368  return _internal_has_dest();
369 }
370 inline void MoshPacket::clear_dest() {
371  dest_ = 0;
372  _has_bits_[0] &= ~0x00000004u;
373 }
374 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::_internal_dest() const {
375  return dest_;
376 }
377 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::dest() const {
378  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.dest)
379  return _internal_dest();
380 }
381 inline void MoshPacket::_internal_set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
382  _has_bits_[0] |= 0x00000004u;
383  dest_ = value;
384 }
385 inline void MoshPacket::set_dest(::PROTOBUF_NAMESPACE_ID::int32 value) {
386  _internal_set_dest(value);
387  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.dest)
388 }
389 
390 // required int32 frag_num = 3 [(.dccl.field) = {
391 inline bool MoshPacket::_internal_has_frag_num() const {
392  bool value = (_has_bits_[0] & 0x00000008u) != 0;
393  return value;
394 }
395 inline bool MoshPacket::has_frag_num() const {
396  return _internal_has_frag_num();
397 }
398 inline void MoshPacket::clear_frag_num() {
399  frag_num_ = 0;
400  _has_bits_[0] &= ~0x00000008u;
401 }
402 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::_internal_frag_num() const {
403  return frag_num_;
404 }
405 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::frag_num() const {
406  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.frag_num)
407  return _internal_frag_num();
408 }
409 inline void MoshPacket::_internal_set_frag_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
410  _has_bits_[0] |= 0x00000008u;
411  frag_num_ = value;
412 }
413 inline void MoshPacket::set_frag_num(::PROTOBUF_NAMESPACE_ID::int32 value) {
414  _internal_set_frag_num(value);
415  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.frag_num)
416 }
417 
418 // required int32 frag_len = 4 [(.dccl.field) = {
419 inline bool MoshPacket::_internal_has_frag_len() const {
420  bool value = (_has_bits_[0] & 0x00000010u) != 0;
421  return value;
422 }
423 inline bool MoshPacket::has_frag_len() const {
424  return _internal_has_frag_len();
425 }
426 inline void MoshPacket::clear_frag_len() {
427  frag_len_ = 0;
428  _has_bits_[0] &= ~0x00000010u;
429 }
430 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::_internal_frag_len() const {
431  return frag_len_;
432 }
433 inline ::PROTOBUF_NAMESPACE_ID::int32 MoshPacket::frag_len() const {
434  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.frag_len)
435  return _internal_frag_len();
436 }
437 inline void MoshPacket::_internal_set_frag_len(::PROTOBUF_NAMESPACE_ID::int32 value) {
438  _has_bits_[0] |= 0x00000010u;
439  frag_len_ = value;
440 }
441 inline void MoshPacket::set_frag_len(::PROTOBUF_NAMESPACE_ID::int32 value) {
442  _internal_set_frag_len(value);
443  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.frag_len)
444 }
445 
446 // required bool is_last_frag = 5 [(.dccl.field) = {
447 inline bool MoshPacket::_internal_has_is_last_frag() const {
448  bool value = (_has_bits_[0] & 0x00000020u) != 0;
449  return value;
450 }
451 inline bool MoshPacket::has_is_last_frag() const {
452  return _internal_has_is_last_frag();
453 }
454 inline void MoshPacket::clear_is_last_frag() {
455  is_last_frag_ = false;
456  _has_bits_[0] &= ~0x00000020u;
457 }
458 inline bool MoshPacket::_internal_is_last_frag() const {
459  return is_last_frag_;
460 }
461 inline bool MoshPacket::is_last_frag() const {
462  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.is_last_frag)
463  return _internal_is_last_frag();
464 }
465 inline void MoshPacket::_internal_set_is_last_frag(bool value) {
466  _has_bits_[0] |= 0x00000020u;
467  is_last_frag_ = value;
468 }
469 inline void MoshPacket::set_is_last_frag(bool value) {
470  _internal_set_is_last_frag(value);
471  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.is_last_frag)
472 }
473 
474 // required bytes fragment = 6 [(.dccl.field) = {
475 inline bool MoshPacket::_internal_has_fragment() const {
476  bool value = (_has_bits_[0] & 0x00000001u) != 0;
477  return value;
478 }
479 inline bool MoshPacket::has_fragment() const {
480  return _internal_has_fragment();
481 }
482 inline void MoshPacket::clear_fragment() {
483  fragment_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
484  _has_bits_[0] &= ~0x00000001u;
485 }
486 inline const std::string& MoshPacket::fragment() const {
487  // @@protoc_insertion_point(field_get:goby.acomms.protobuf.MoshPacket.fragment)
488  return _internal_fragment();
489 }
490 inline void MoshPacket::set_fragment(const std::string& value) {
491  _internal_set_fragment(value);
492  // @@protoc_insertion_point(field_set:goby.acomms.protobuf.MoshPacket.fragment)
493 }
494 inline std::string* MoshPacket::mutable_fragment() {
495  // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.MoshPacket.fragment)
496  return _internal_mutable_fragment();
497 }
498 inline const std::string& MoshPacket::_internal_fragment() const {
499  return fragment_.Get();
500 }
501 inline void MoshPacket::_internal_set_fragment(const std::string& value) {
502  _has_bits_[0] |= 0x00000001u;
503  fragment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
504 }
505 inline void MoshPacket::set_fragment(std::string&& value) {
506  _has_bits_[0] |= 0x00000001u;
507  fragment_.Set(
508  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
509  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.protobuf.MoshPacket.fragment)
510 }
511 inline void MoshPacket::set_fragment(const char* value) {
512  GOOGLE_DCHECK(value != nullptr);
513  _has_bits_[0] |= 0x00000001u;
514  fragment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
515  GetArena());
516  // @@protoc_insertion_point(field_set_char:goby.acomms.protobuf.MoshPacket.fragment)
517 }
518 inline void MoshPacket::set_fragment(const void* value,
519  size_t size) {
520  _has_bits_[0] |= 0x00000001u;
521  fragment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
522  reinterpret_cast<const char*>(value), size), GetArena());
523  // @@protoc_insertion_point(field_set_pointer:goby.acomms.protobuf.MoshPacket.fragment)
524 }
525 inline std::string* MoshPacket::_internal_mutable_fragment() {
526  _has_bits_[0] |= 0x00000001u;
527  return fragment_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
528 }
529 inline std::string* MoshPacket::release_fragment() {
530  // @@protoc_insertion_point(field_release:goby.acomms.protobuf.MoshPacket.fragment)
531  if (!_internal_has_fragment()) {
532  return nullptr;
533  }
534  _has_bits_[0] &= ~0x00000001u;
535  return fragment_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
536 }
537 inline void MoshPacket::set_allocated_fragment(std::string* fragment) {
538  if (fragment != nullptr) {
539  _has_bits_[0] |= 0x00000001u;
540  } else {
541  _has_bits_[0] &= ~0x00000001u;
542  }
543  fragment_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fragment,
544  GetArena());
545  // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.MoshPacket.fragment)
546 }
547 inline std::string* MoshPacket::unsafe_arena_release_fragment() {
548  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.protobuf.MoshPacket.fragment)
549  GOOGLE_DCHECK(GetArena() != nullptr);
550  _has_bits_[0] &= ~0x00000001u;
551  return fragment_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
552  GetArena());
553 }
554 inline void MoshPacket::unsafe_arena_set_allocated_fragment(
555  std::string* fragment) {
556  GOOGLE_DCHECK(GetArena() != nullptr);
557  if (fragment != nullptr) {
558  _has_bits_[0] |= 0x00000001u;
559  } else {
560  _has_bits_[0] &= ~0x00000001u;
561  }
562  fragment_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
563  fragment, GetArena());
564  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.protobuf.MoshPacket.fragment)
565 }
566 
567 #ifdef __GNUC__
568  #pragma GCC diagnostic pop
569 #endif // __GNUC__
570 
571 // @@protoc_insertion_point(namespace_scope)
572 
573 } // namespace protobuf
574 } // namespace acomms
575 } // namespace goby
576 
577 // @@protoc_insertion_point(global_scope)
578 
579 #include <google/protobuf/port_undef.inc>
580 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
void UnsafeArenaSwap(MoshPacket *other)
MoshPacket & operator=(MoshPacket &&from) noexcept
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
MoshPacket(MoshPacket &&from) noexcept
void CopyFrom(const MoshPacket &from)
void set_fragment(const void *value, size_t size)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const MoshPacket * internal_default_instance()
void set_fragment(std::string &&value)
MoshPacket(const MoshPacket &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
MoshPacket(::PROTOBUF_NAMESPACE_ID::Arena *arena)
MoshPacket * New() const final
MoshPacket & operator=(const MoshPacket &from)
const std::string & fragment() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void MergeFrom(const MoshPacket &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
friend void swap(MoshPacket &a, MoshPacket &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const MoshPacket & default_instance()
void set_fragment(const std::string &value)
void set_allocated_fragment(std::string *fragment)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_fragment(const char *value)
MoshPacket * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fmosh_5fpacket_2eproto
@ value
the parser finished reading a JSON value
MoshPacketDefaultTypeInternal _MoshPacket_default_instance_
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]