Goby3  3.1.5
2024.05.14
header.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/test/acomms/dccl3/header.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_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/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
37 #include "dccl/option_extensions.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
42 
43 #include <boost/units/systems/si.hpp>
44 // @@protoc_insertion_point(includes)
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
47 PROTOBUF_NAMESPACE_OPEN
48 namespace internal {
49 class AnyMetadata;
50 } // namespace internal
51 PROTOBUF_NAMESPACE_CLOSE
52 
53 // Internal implementation detail -- do not use these members.
55  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
60  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
61  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
62  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
64 };
65 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto;
66 namespace goby {
67 namespace test {
68 namespace acomms {
69 namespace protobuf {
70 class Header;
71 class HeaderDefaultTypeInternal;
72 extern HeaderDefaultTypeInternal _Header_default_instance_;
73 } // namespace protobuf
74 } // namespace acomms
75 } // namespace test
76 } // namespace goby
77 PROTOBUF_NAMESPACE_OPEN
78 template<> ::goby::test::acomms::protobuf::Header* Arena::CreateMaybeMessage<::goby::test::acomms::protobuf::Header>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
80 namespace goby {
81 namespace test {
82 namespace acomms {
83 namespace protobuf {
84 
89 };
94 
95 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Header_PublishDestination_descriptor();
96 template<typename T>
97 inline const std::string& Header_PublishDestination_Name(T enum_t_value) {
98  static_assert(::std::is_same<T, Header_PublishDestination>::value ||
99  ::std::is_integral<T>::value,
100  "Incorrect type passed to function Header_PublishDestination_Name.");
101  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
102  Header_PublishDestination_descriptor(), enum_t_value);
103 }
105  const std::string& name, Header_PublishDestination* value) {
106  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Header_PublishDestination>(
107  Header_PublishDestination_descriptor(), name, value);
108 }
109 // ===================================================================
110 
111 class Header PROTOBUF_FINAL :
112  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.test.acomms.protobuf.Header) */ {
113  public:
114  inline Header() : Header(nullptr) {};
115  virtual ~Header();
116 
117  Header(const Header& from);
118  Header(Header&& from) noexcept
119  : Header() {
120  *this = ::std::move(from);
121  }
122 
123  inline Header& operator=(const Header& from) {
124  CopyFrom(from);
125  return *this;
126  }
127  inline Header& operator=(Header&& from) noexcept {
128  if (GetArena() == from.GetArena()) {
129  if (this != &from) InternalSwap(&from);
130  } else {
131  CopyFrom(from);
132  }
133  return *this;
134  }
135 
136  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
137  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
138  }
139  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
140  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
141  }
142 
143  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
144  return GetDescriptor();
145  }
146  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
147  return GetMetadataStatic().descriptor;
148  }
149  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
150  return GetMetadataStatic().reflection;
151  }
152  static const Header& default_instance();
153 
154  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
155  static inline const Header* internal_default_instance() {
156  return reinterpret_cast<const Header*>(
158  }
159  static constexpr int kIndexInFileMessages =
160  0;
161 
162  friend void swap(Header& a, Header& b) {
163  a.Swap(&b);
164  }
165  inline void Swap(Header* other) {
166  if (other == this) return;
167  if (GetArena() == other->GetArena()) {
168  InternalSwap(other);
169  } else {
170  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
171  }
172  }
173  void UnsafeArenaSwap(Header* other) {
174  if (other == this) return;
175  GOOGLE_DCHECK(GetArena() == other->GetArena());
176  InternalSwap(other);
177  }
178 
179  // implements Message ----------------------------------------------
180 
181  inline Header* New() const final {
182  return CreateMaybeMessage<Header>(nullptr);
183  }
184 
185  Header* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
186  return CreateMaybeMessage<Header>(arena);
187  }
188  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
189  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
190  void CopyFrom(const Header& from);
191  void MergeFrom(const Header& from);
192  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
193  bool IsInitialized() const final;
194 
195  size_t ByteSizeLong() const final;
196  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
197  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
198  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
199  int GetCachedSize() const final { return _cached_size_.Get(); }
200 
201  private:
202  inline void SharedCtor();
203  inline void SharedDtor();
204  void SetCachedSize(int size) const final;
205  void InternalSwap(Header* other);
206  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208  return "goby.test.acomms.protobuf.Header";
209  }
210  protected:
211  explicit Header(::PROTOBUF_NAMESPACE_ID::Arena* arena);
212  private:
213  static void ArenaDtor(void* object);
214  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
215  public:
216 
217  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
218  private:
219  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
220  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto);
221  return ::descriptor_table_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto.file_level_metadata[kIndexInFileMessages];
222  }
223 
224  public:
225 
226  // nested types ----------------------------------------------------
227 
229  static constexpr PublishDestination PUBLISH_SELF =
231  static constexpr PublishDestination PUBLISH_OTHER =
233  static constexpr PublishDestination PUBLISH_ALL =
235  static inline bool PublishDestination_IsValid(int value) {
236  return Header_PublishDestination_IsValid(value);
237  }
238  static constexpr PublishDestination PublishDestination_MIN =
240  static constexpr PublishDestination PublishDestination_MAX =
242  static constexpr int PublishDestination_ARRAYSIZE =
244  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247  }
248  template<typename T>
249  static inline const std::string& PublishDestination_Name(T enum_t_value) {
250  static_assert(::std::is_same<T, PublishDestination>::value ||
251  ::std::is_integral<T>::value,
252  "Incorrect type passed to function PublishDestination_Name.");
253  return Header_PublishDestination_Name(enum_t_value);
254  }
255  static inline bool PublishDestination_Parse(const std::string& name,
256  PublishDestination* value) {
257  return Header_PublishDestination_Parse(name, value);
258  }
259 
260  // accessors -------------------------------------------------------
261 
262  enum : int {
263  kSourceAppFieldNumber = 12,
264  kTimeFieldNumber = 10,
265  kSourcePlatformFieldNumber = 11,
266  kDestPlatformFieldNumber = 14,
267  kDestTypeFieldNumber = 13,
268  };
269  // optional string source_app = 12 [(.dccl.field) = {
270  bool has_source_app() const;
271  private:
272  bool _internal_has_source_app() const;
273  public:
275  const std::string& source_app() const;
276  void set_source_app(const std::string& value);
277  void set_source_app(std::string&& value);
278  void set_source_app(const char* value);
279  void set_source_app(const char* value, size_t size);
280  std::string* mutable_source_app();
281  std::string* release_source_app();
282  void set_allocated_source_app(std::string* source_app);
283  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
284  " string fields are deprecated and will be removed in a"
285  " future release.")
286  std::string* unsafe_arena_release_source_app();
287  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
288  " string fields are deprecated and will be removed in a"
289  " future release.")
290  void unsafe_arena_set_allocated_source_app(
291  std::string* source_app);
292  private:
293  const std::string& _internal_source_app() const;
294  void _internal_set_source_app(const std::string& value);
295  std::string* _internal_mutable_source_app();
296  public:
297 
298  // required uint64 time = 10 [(.dccl.field) = {
299  bool has_time() const;
300  private:
301  bool _internal_has_time() const;
302  public:
303  void clear_time();
304  ::PROTOBUF_NAMESPACE_ID::uint64 time() const;
305  void set_time(::PROTOBUF_NAMESPACE_ID::uint64 value);
306  private:
307  ::PROTOBUF_NAMESPACE_ID::uint64 _internal_time() const;
308  void _internal_set_time(::PROTOBUF_NAMESPACE_ID::uint64 value);
309  public:
310 
311  // required uint32 source_platform = 11 [(.dccl.field) = {
312  bool has_source_platform() const;
313  private:
314  bool _internal_has_source_platform() const;
315  public:
316  void clear_source_platform();
317  ::PROTOBUF_NAMESPACE_ID::uint32 source_platform() const;
318  void set_source_platform(::PROTOBUF_NAMESPACE_ID::uint32 value);
319  private:
320  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_source_platform() const;
321  void _internal_set_source_platform(::PROTOBUF_NAMESPACE_ID::uint32 value);
322  public:
323 
324  // optional uint32 dest_platform = 14 [(.dccl.field) = {
325  bool has_dest_platform() const;
326  private:
327  bool _internal_has_dest_platform() const;
328  public:
329  void clear_dest_platform();
330  ::PROTOBUF_NAMESPACE_ID::uint32 dest_platform() const;
331  void set_dest_platform(::PROTOBUF_NAMESPACE_ID::uint32 value);
332  private:
333  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_dest_platform() const;
334  void _internal_set_dest_platform(::PROTOBUF_NAMESPACE_ID::uint32 value);
335  public:
336 
337  // optional .goby.test.acomms.protobuf.Header.PublishDestination dest_type = 13 [default = PUBLISH_SELF, (.dccl.field) = {
338  bool has_dest_type() const;
339  private:
340  bool _internal_has_dest_type() const;
341  public:
342  void clear_dest_type();
343  ::goby::test::acomms::protobuf::Header_PublishDestination dest_type() const;
344  void set_dest_type(::goby::test::acomms::protobuf::Header_PublishDestination value);
345  private:
346  ::goby::test::acomms::protobuf::Header_PublishDestination _internal_dest_type() const;
347  void _internal_set_dest_type(::goby::test::acomms::protobuf::Header_PublishDestination value);
348  public:
349 
350  typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type time_dimension;
351 
352  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;
353 
354  template<typename Quantity >
355  void set_time_with_units(Quantity value_w_units)
356  { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
357 
358  template<typename Quantity >
359  Quantity time_with_units() const
360  { return Quantity(time() * time_unit()); };
361 
362  boost::units::quantity< time_unit,google::protobuf::uint64 > time_with_units() const
363  { return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
364 
365  // @@protoc_insertion_point(class_scope:goby.test.acomms.protobuf.Header)
366  private:
367  class _Internal;
368 
369  // helper for ByteSizeLong()
370  size_t RequiredFieldsByteSizeFallback() const;
371 
372  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
373  typedef void InternalArenaConstructable_;
374  typedef void DestructorSkippable_;
375  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
376  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
377  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_app_;
379  ::PROTOBUF_NAMESPACE_ID::uint32 source_platform_;
380  ::PROTOBUF_NAMESPACE_ID::uint32 dest_platform_;
381  int dest_type_;
382  friend struct ::TableStruct_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto;
383 };
384 // ===================================================================
385 
386 
387 // ===================================================================
388 
389 #ifdef __GNUC__
390  #pragma GCC diagnostic push
391  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
392 #endif // __GNUC__
393 // Header
394 
395 // required uint64 time = 10 [(.dccl.field) = {
396 inline bool Header::_internal_has_time() const {
397  bool value = (_has_bits_[0] & 0x00000002u) != 0;
398  return value;
399 }
400 inline bool Header::has_time() const {
401  return _internal_has_time();
402 }
403 inline void Header::clear_time() {
404  time_ = PROTOBUF_ULONGLONG(0);
405  _has_bits_[0] &= ~0x00000002u;
406 }
407 inline ::PROTOBUF_NAMESPACE_ID::uint64 Header::_internal_time() const {
408  return time_;
409 }
411  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.Header.time)
412  return _internal_time();
413 }
414 inline void Header::_internal_set_time(::PROTOBUF_NAMESPACE_ID::uint64 value) {
415  _has_bits_[0] |= 0x00000002u;
416  time_ = value;
417 }
418 inline void Header::set_time(::PROTOBUF_NAMESPACE_ID::uint64 value) {
419  _internal_set_time(value);
420  // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.Header.time)
421 }
422 
423 // required uint32 source_platform = 11 [(.dccl.field) = {
424 inline bool Header::_internal_has_source_platform() const {
425  bool value = (_has_bits_[0] & 0x00000004u) != 0;
426  return value;
427 }
428 inline bool Header::has_source_platform() const {
429  return _internal_has_source_platform();
430 }
431 inline void Header::clear_source_platform() {
432  source_platform_ = 0u;
433  _has_bits_[0] &= ~0x00000004u;
434 }
435 inline ::PROTOBUF_NAMESPACE_ID::uint32 Header::_internal_source_platform() const {
436  return source_platform_;
437 }
438 inline ::PROTOBUF_NAMESPACE_ID::uint32 Header::source_platform() const {
439  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.Header.source_platform)
440  return _internal_source_platform();
441 }
442 inline void Header::_internal_set_source_platform(::PROTOBUF_NAMESPACE_ID::uint32 value) {
443  _has_bits_[0] |= 0x00000004u;
444  source_platform_ = value;
445 }
446 inline void Header::set_source_platform(::PROTOBUF_NAMESPACE_ID::uint32 value) {
447  _internal_set_source_platform(value);
448  // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.Header.source_platform)
449 }
450 
451 // optional string source_app = 12 [(.dccl.field) = {
452 inline bool Header::_internal_has_source_app() const {
453  bool value = (_has_bits_[0] & 0x00000001u) != 0;
454  return value;
455 }
456 inline bool Header::has_source_app() const {
457  return _internal_has_source_app();
458 }
459 inline void Header::clear_source_app() {
460  source_app_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
461  _has_bits_[0] &= ~0x00000001u;
462 }
463 inline const std::string& Header::source_app() const {
464  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.Header.source_app)
465  return _internal_source_app();
466 }
467 inline void Header::set_source_app(const std::string& value) {
468  _internal_set_source_app(value);
469  // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.Header.source_app)
470 }
471 inline std::string* Header::mutable_source_app() {
472  // @@protoc_insertion_point(field_mutable:goby.test.acomms.protobuf.Header.source_app)
473  return _internal_mutable_source_app();
474 }
475 inline const std::string& Header::_internal_source_app() const {
476  return source_app_.Get();
477 }
478 inline void Header::_internal_set_source_app(const std::string& value) {
479  _has_bits_[0] |= 0x00000001u;
480  source_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
481 }
482 inline void Header::set_source_app(std::string&& value) {
483  _has_bits_[0] |= 0x00000001u;
484  source_app_.Set(
485  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
486  // @@protoc_insertion_point(field_set_rvalue:goby.test.acomms.protobuf.Header.source_app)
487 }
488 inline void Header::set_source_app(const char* value) {
489  GOOGLE_DCHECK(value != nullptr);
490  _has_bits_[0] |= 0x00000001u;
491  source_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
492  GetArena());
493  // @@protoc_insertion_point(field_set_char:goby.test.acomms.protobuf.Header.source_app)
494 }
495 inline void Header::set_source_app(const char* value,
496  size_t size) {
497  _has_bits_[0] |= 0x00000001u;
498  source_app_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
499  reinterpret_cast<const char*>(value), size), GetArena());
500  // @@protoc_insertion_point(field_set_pointer:goby.test.acomms.protobuf.Header.source_app)
501 }
502 inline std::string* Header::_internal_mutable_source_app() {
503  _has_bits_[0] |= 0x00000001u;
504  return source_app_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
505 }
506 inline std::string* Header::release_source_app() {
507  // @@protoc_insertion_point(field_release:goby.test.acomms.protobuf.Header.source_app)
508  if (!_internal_has_source_app()) {
509  return nullptr;
510  }
511  _has_bits_[0] &= ~0x00000001u;
512  return source_app_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
513 }
514 inline void Header::set_allocated_source_app(std::string* source_app) {
515  if (source_app != nullptr) {
516  _has_bits_[0] |= 0x00000001u;
517  } else {
518  _has_bits_[0] &= ~0x00000001u;
519  }
520  source_app_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_app,
521  GetArena());
522  // @@protoc_insertion_point(field_set_allocated:goby.test.acomms.protobuf.Header.source_app)
523 }
524 inline std::string* Header::unsafe_arena_release_source_app() {
525  // @@protoc_insertion_point(field_unsafe_arena_release:goby.test.acomms.protobuf.Header.source_app)
526  GOOGLE_DCHECK(GetArena() != nullptr);
527  _has_bits_[0] &= ~0x00000001u;
528  return source_app_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
529  GetArena());
530 }
531 inline void Header::unsafe_arena_set_allocated_source_app(
532  std::string* source_app) {
533  GOOGLE_DCHECK(GetArena() != nullptr);
534  if (source_app != nullptr) {
535  _has_bits_[0] |= 0x00000001u;
536  } else {
537  _has_bits_[0] &= ~0x00000001u;
538  }
539  source_app_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
540  source_app, GetArena());
541  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.test.acomms.protobuf.Header.source_app)
542 }
543 
544 // optional .goby.test.acomms.protobuf.Header.PublishDestination dest_type = 13 [default = PUBLISH_SELF, (.dccl.field) = {
545 inline bool Header::_internal_has_dest_type() const {
546  bool value = (_has_bits_[0] & 0x00000010u) != 0;
547  return value;
548 }
549 inline bool Header::has_dest_type() const {
550  return _internal_has_dest_type();
551 }
552 inline void Header::clear_dest_type() {
553  dest_type_ = 1;
554  _has_bits_[0] &= ~0x00000010u;
555 }
556 inline ::goby::test::acomms::protobuf::Header_PublishDestination Header::_internal_dest_type() const {
557  return static_cast< ::goby::test::acomms::protobuf::Header_PublishDestination >(dest_type_);
558 }
560  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.Header.dest_type)
561  return _internal_dest_type();
562 }
563 inline void Header::_internal_set_dest_type(::goby::test::acomms::protobuf::Header_PublishDestination value) {
565  _has_bits_[0] |= 0x00000010u;
566  dest_type_ = value;
567 }
568 inline void Header::set_dest_type(::goby::test::acomms::protobuf::Header_PublishDestination value) {
569  _internal_set_dest_type(value);
570  // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.Header.dest_type)
571 }
572 
573 // optional uint32 dest_platform = 14 [(.dccl.field) = {
574 inline bool Header::_internal_has_dest_platform() const {
575  bool value = (_has_bits_[0] & 0x00000008u) != 0;
576  return value;
577 }
578 inline bool Header::has_dest_platform() const {
579  return _internal_has_dest_platform();
580 }
581 inline void Header::clear_dest_platform() {
582  dest_platform_ = 0u;
583  _has_bits_[0] &= ~0x00000008u;
584 }
585 inline ::PROTOBUF_NAMESPACE_ID::uint32 Header::_internal_dest_platform() const {
586  return dest_platform_;
587 }
588 inline ::PROTOBUF_NAMESPACE_ID::uint32 Header::dest_platform() const {
589  // @@protoc_insertion_point(field_get:goby.test.acomms.protobuf.Header.dest_platform)
590  return _internal_dest_platform();
591 }
592 inline void Header::_internal_set_dest_platform(::PROTOBUF_NAMESPACE_ID::uint32 value) {
593  _has_bits_[0] |= 0x00000008u;
594  dest_platform_ = value;
595 }
596 inline void Header::set_dest_platform(::PROTOBUF_NAMESPACE_ID::uint32 value) {
597  _internal_set_dest_platform(value);
598  // @@protoc_insertion_point(field_set:goby.test.acomms.protobuf.Header.dest_platform)
599 }
600 
601 #ifdef __GNUC__
602  #pragma GCC diagnostic pop
603 #endif // __GNUC__
604 
605 // @@protoc_insertion_point(namespace_scope)
606 
607 } // namespace protobuf
608 } // namespace acomms
609 } // namespace test
610 } // namespace goby
611 
612 PROTOBUF_NAMESPACE_OPEN
613 
614 template <> struct is_proto_enum< ::goby::test::acomms::protobuf::Header_PublishDestination> : ::std::true_type {};
615 template <>
616 inline const EnumDescriptor* GetEnumDescriptor< ::goby::test::acomms::protobuf::Header_PublishDestination>() {
618 }
619 
620 PROTOBUF_NAMESPACE_CLOSE
621 
622 // @@protoc_insertion_point(global_scope)
623 
624 #include <google/protobuf/port_undef.inc>
625 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
void set_source_app(const char *value, size_t size)
void set_source_app(std::string &&value)
Header_PublishDestination PublishDestination
Definition: header.pb.h:228
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PublishDestination_descriptor()
Definition: header.pb.h:245
static const std::string & PublishDestination_Name(T enum_t_value)
Definition: header.pb.h:249
void set_allocated_source_app(std::string *source_app)
static bool PublishDestination_IsValid(int value)
Definition: header.pb.h:235
Header & operator=(Header &&from) noexcept
Definition: header.pb.h:127
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const Header * internal_default_instance()
Definition: header.pb.h:155
Header(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Header * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: header.pb.h:185
void set_source_app(const std::string &value)
friend void swap(Header &a, Header &b)
Definition: header.pb.h:162
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: header.pb.h:352
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type time_dimension
Definition: header.pb.h:350
Header & operator=(const Header &from)
Definition: header.pb.h:123
boost::units::quantity< time_unit, google::protobuf::uint64 > time_with_units() const
Definition: header.pb.h:362
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: header.pb.h:149
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: header.pb.h:136
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: header.pb.h:139
static bool PublishDestination_Parse(const std::string &name, PublishDestination *value)
Definition: header.pb.h:255
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: header.pb.h:143
const std::string & source_app() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: header.pb.h:146
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2facomms_2fdccl3_2fheader_2eproto
unit< time_dimension, si::system > time
Definition: time.hpp:22
@ value
the parser finished reading a JSON value
HeaderDefaultTypeInternal _Header_default_instance_
constexpr Header_PublishDestination Header_PublishDestination_PublishDestination_MAX
Definition: header.pb.h:92
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Header_PublishDestination_descriptor()
constexpr Header_PublishDestination Header_PublishDestination_PublishDestination_MIN
Definition: header.pb.h:91
bool Header_PublishDestination_IsValid(int value)
bool Header_PublishDestination_Parse(const std::string &name, Header_PublishDestination *value)
Definition: header.pb.h:104
const std::string & Header_PublishDestination_Name(T enum_t_value)
Definition: header.pb.h:97
constexpr int Header_PublishDestination_PublishDestination_ARRAYSIZE
Definition: header.pb.h:93
boost::units::make_system< boost::units::angle::revolution_base_unit, boost::units::metric::minute_base_unit >::type system
Definition: system.hpp:45
The global namespace for the Goby project.
std::uint32_t uint32
std::uint64_t uint64
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
type
Generic JSON types used in JWTs.
Definition: jwt.h:2072
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: header.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: header.pb.h:63
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: header.pb.h:62