Goby3  3.1.5
2024.05.14
udp_multicast_driver.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/acomms/protobuf/udp_multicast_driver.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_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>
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_2fudp_5fmulticast_5fdriver_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[2]
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_2fudp_5fmulticast_5fdriver_2eproto;
63 namespace goby {
64 namespace acomms {
65 namespace udp_multicast {
66 namespace protobuf {
67 class Config;
68 class ConfigDefaultTypeInternal;
69 extern ConfigDefaultTypeInternal _Config_default_instance_;
70 class Config_RateBytesPair;
71 class Config_RateBytesPairDefaultTypeInternal;
72 extern Config_RateBytesPairDefaultTypeInternal _Config_RateBytesPair_default_instance_;
73 } // namespace protobuf
74 } // namespace udp_multicast
75 } // namespace acomms
76 } // namespace goby
77 PROTOBUF_NAMESPACE_OPEN
78 template<> ::goby::acomms::udp_multicast::protobuf::Config* Arena::CreateMaybeMessage<::goby::acomms::udp_multicast::protobuf::Config>(Arena*);
79 template<> ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Arena::CreateMaybeMessage<::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace goby {
82 namespace acomms {
83 namespace udp_multicast {
84 namespace protobuf {
85 
86 // ===================================================================
87 
88 class Config_RateBytesPair PROTOBUF_FINAL :
89  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair) */ {
90  public:
91  inline Config_RateBytesPair() : Config_RateBytesPair(nullptr) {};
93 
94  Config_RateBytesPair(const Config_RateBytesPair& from);
95  Config_RateBytesPair(Config_RateBytesPair&& from) noexcept
96  : Config_RateBytesPair() {
97  *this = ::std::move(from);
98  }
99 
100  inline Config_RateBytesPair& operator=(const Config_RateBytesPair& from) {
101  CopyFrom(from);
102  return *this;
103  }
104  inline Config_RateBytesPair& operator=(Config_RateBytesPair&& from) noexcept {
105  if (GetArena() == from.GetArena()) {
106  if (this != &from) InternalSwap(&from);
107  } else {
108  CopyFrom(from);
109  }
110  return *this;
111  }
112 
113  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
114  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
115  }
116  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
117  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
118  }
119 
120  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
121  return GetDescriptor();
122  }
123  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
124  return GetMetadataStatic().descriptor;
125  }
126  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
127  return GetMetadataStatic().reflection;
128  }
129  static const Config_RateBytesPair& default_instance();
130 
131  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  static inline const Config_RateBytesPair* internal_default_instance() {
133  return reinterpret_cast<const Config_RateBytesPair*>(
135  }
136  static constexpr int kIndexInFileMessages =
137  0;
138 
139  friend void swap(Config_RateBytesPair& a, Config_RateBytesPair& b) {
140  a.Swap(&b);
141  }
142  inline void Swap(Config_RateBytesPair* other) {
143  if (other == this) return;
144  if (GetArena() == other->GetArena()) {
145  InternalSwap(other);
146  } else {
147  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
148  }
149  }
150  void UnsafeArenaSwap(Config_RateBytesPair* other) {
151  if (other == this) return;
152  GOOGLE_DCHECK(GetArena() == other->GetArena());
153  InternalSwap(other);
154  }
155 
156  // implements Message ----------------------------------------------
157 
158  inline Config_RateBytesPair* New() const final {
159  return CreateMaybeMessage<Config_RateBytesPair>(nullptr);
160  }
161 
162  Config_RateBytesPair* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
163  return CreateMaybeMessage<Config_RateBytesPair>(arena);
164  }
165  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
166  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
167  void CopyFrom(const Config_RateBytesPair& from);
168  void MergeFrom(const Config_RateBytesPair& from);
169  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
170  bool IsInitialized() const final;
171 
172  size_t ByteSizeLong() const final;
173  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
175  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
176  int GetCachedSize() const final { return _cached_size_.Get(); }
177 
178  private:
179  inline void SharedCtor();
180  inline void SharedDtor();
181  void SetCachedSize(int size) const final;
182  void InternalSwap(Config_RateBytesPair* other);
183  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185  return "goby.acomms.udp_multicast.protobuf.Config.RateBytesPair";
186  }
187  protected:
188  explicit Config_RateBytesPair(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189  private:
190  static void ArenaDtor(void* object);
191  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
192  public:
193 
194  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
195  private:
196  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
197  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto);
199  }
200 
201  public:
202 
203  // nested types ----------------------------------------------------
204 
205  // accessors -------------------------------------------------------
206 
207  enum : int {
208  kRateFieldNumber = 1,
209  kBytesFieldNumber = 2,
210  };
211  // required int32 rate = 1;
212  bool has_rate() const;
213  private:
214  bool _internal_has_rate() const;
215  public:
216  void clear_rate();
219  private:
220  ::PROTOBUF_NAMESPACE_ID::int32 _internal_rate() const;
221  void _internal_set_rate(::PROTOBUF_NAMESPACE_ID::int32 value);
222  public:
223 
224  // required int32 bytes = 2;
225  bool has_bytes() const;
226  private:
227  bool _internal_has_bytes() const;
228  public:
229  void clear_bytes();
232  private:
233  ::PROTOBUF_NAMESPACE_ID::int32 _internal_bytes() const;
234  void _internal_set_bytes(::PROTOBUF_NAMESPACE_ID::int32 value);
235  public:
236 
237  // @@protoc_insertion_point(class_scope:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair)
238  private:
239  class _Internal;
240 
241  // helper for ByteSizeLong()
242  size_t RequiredFieldsByteSizeFallback() const;
243 
244  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
245  typedef void InternalArenaConstructable_;
246  typedef void DestructorSkippable_;
247  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
248  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
251  friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto;
252 };
253 // -------------------------------------------------------------------
254 
255 class Config PROTOBUF_FINAL :
256  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.udp_multicast.protobuf.Config) */ {
257  public:
258  inline Config() : Config(nullptr) {};
259  virtual ~Config();
260 
261  Config(const Config& from);
262  Config(Config&& from) noexcept
263  : Config() {
264  *this = ::std::move(from);
265  }
266 
267  inline Config& operator=(const Config& from) {
268  CopyFrom(from);
269  return *this;
270  }
271  inline Config& operator=(Config&& from) noexcept {
272  if (GetArena() == from.GetArena()) {
273  if (this != &from) InternalSwap(&from);
274  } else {
275  CopyFrom(from);
276  }
277  return *this;
278  }
279 
280  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
281  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
282  }
283  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
284  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
285  }
286 
287  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
288  return GetDescriptor();
289  }
290  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
291  return GetMetadataStatic().descriptor;
292  }
293  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
294  return GetMetadataStatic().reflection;
295  }
296  static const Config& default_instance();
297 
298  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
299  static inline const Config* internal_default_instance() {
300  return reinterpret_cast<const Config*>(
302  }
303  static constexpr int kIndexInFileMessages =
304  1;
305 
306  friend void swap(Config& a, Config& b) {
307  a.Swap(&b);
308  }
309  inline void Swap(Config* other) {
310  if (other == this) return;
311  if (GetArena() == other->GetArena()) {
312  InternalSwap(other);
313  } else {
314  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
315  }
316  }
317  void UnsafeArenaSwap(Config* other) {
318  if (other == this) return;
319  GOOGLE_DCHECK(GetArena() == other->GetArena());
320  InternalSwap(other);
321  }
322 
323  // implements Message ----------------------------------------------
324 
325  inline Config* New() const final {
326  return CreateMaybeMessage<Config>(nullptr);
327  }
328 
329  Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
330  return CreateMaybeMessage<Config>(arena);
331  }
332  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
333  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
334  void CopyFrom(const Config& from);
335  void MergeFrom(const Config& from);
336  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
337  bool IsInitialized() const final;
338 
339  size_t ByteSizeLong() const final;
340  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
341  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
342  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
343  int GetCachedSize() const final { return _cached_size_.Get(); }
344 
345  private:
346  inline void SharedCtor();
347  inline void SharedDtor();
348  void SetCachedSize(int size) const final;
349  void InternalSwap(Config* other);
350  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
351  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
352  return "goby.acomms.udp_multicast.protobuf.Config";
353  }
354  protected:
355  explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena);
356  private:
357  static void ArenaDtor(void* object);
358  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
359  public:
360 
361  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
362  private:
363  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
364  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto);
366  }
367 
368  public:
369 
370  // nested types ----------------------------------------------------
371 
372  typedef Config_RateBytesPair RateBytesPair;
373 
374  // accessors -------------------------------------------------------
375 
376  enum : int {
377  kRateToBytesFieldNumber = 5,
378  kListenAddressFieldNumber = 1,
379  kMulticastAddressFieldNumber = 2,
380  kMulticastPortFieldNumber = 3,
381  kMaxFrameSizeFieldNumber = 4,
382  };
383  // repeated .goby.acomms.udp_multicast.protobuf.Config.RateBytesPair rate_to_bytes = 5 [(.goby.field) = {
384  int rate_to_bytes_size() const;
385  private:
386  int _internal_rate_to_bytes_size() const;
387  public:
389  ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* mutable_rate_to_bytes(int index);
390  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >*
392  private:
393  const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& _internal_rate_to_bytes(int index) const;
394  ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* _internal_add_rate_to_bytes();
395  public:
396  const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& rate_to_bytes(int index) const;
397  ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* add_rate_to_bytes();
398  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >&
399  rate_to_bytes() const;
400 
401  // optional string listen_address = 1 [default = "0.0.0.0"];
402  bool has_listen_address() const;
403  private:
404  bool _internal_has_listen_address() const;
405  public:
407  const std::string& listen_address() const;
408  void set_listen_address(const std::string& value);
409  void set_listen_address(std::string&& value);
410  void set_listen_address(const char* value);
411  void set_listen_address(const char* value, size_t size);
412  std::string* mutable_listen_address();
413  std::string* release_listen_address();
414  void set_allocated_listen_address(std::string* listen_address);
415  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
416  " string fields are deprecated and will be removed in a"
417  " future release.")
418  std::string* unsafe_arena_release_listen_address();
419  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
420  " string fields are deprecated and will be removed in a"
421  " future release.")
422  void unsafe_arena_set_allocated_listen_address(
423  std::string* listen_address);
424  private:
425  const std::string& _internal_listen_address() const;
426  void _internal_set_listen_address(const std::string& value);
427  std::string* _internal_mutable_listen_address();
428  public:
429 
430  // optional string multicast_address = 2 [default = "239.142.0.1"];
431  bool has_multicast_address() const;
432  private:
433  bool _internal_has_multicast_address() const;
434  public:
435  void clear_multicast_address();
436  const std::string& multicast_address() const;
437  void set_multicast_address(const std::string& value);
438  void set_multicast_address(std::string&& value);
439  void set_multicast_address(const char* value);
440  void set_multicast_address(const char* value, size_t size);
441  std::string* mutable_multicast_address();
442  std::string* release_multicast_address();
443  void set_allocated_multicast_address(std::string* multicast_address);
444  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
445  " string fields are deprecated and will be removed in a"
446  " future release.")
447  std::string* unsafe_arena_release_multicast_address();
448  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
449  " string fields are deprecated and will be removed in a"
450  " future release.")
451  void unsafe_arena_set_allocated_multicast_address(
452  std::string* multicast_address);
453  private:
454  const std::string& _internal_multicast_address() const;
455  void _internal_set_multicast_address(const std::string& value);
456  std::string* _internal_mutable_multicast_address();
457  public:
458 
459  // optional uint32 multicast_port = 3 [default = 50021];
460  bool has_multicast_port() const;
461  private:
462  bool _internal_has_multicast_port() const;
463  public:
464  void clear_multicast_port();
465  ::PROTOBUF_NAMESPACE_ID::uint32 multicast_port() const;
466  void set_multicast_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
467  private:
468  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_multicast_port() const;
469  void _internal_set_multicast_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
470  public:
471 
472  // optional int32 max_frame_size = 4 [default = 1400];
473  bool has_max_frame_size() const;
474  private:
475  bool _internal_has_max_frame_size() const;
476  public:
477  void clear_max_frame_size();
478  ::PROTOBUF_NAMESPACE_ID::int32 max_frame_size() const;
479  void set_max_frame_size(::PROTOBUF_NAMESPACE_ID::int32 value);
480  private:
481  ::PROTOBUF_NAMESPACE_ID::int32 _internal_max_frame_size() const;
482  void _internal_set_max_frame_size(::PROTOBUF_NAMESPACE_ID::int32 value);
483  public:
484 
485  // @@protoc_insertion_point(class_scope:goby.acomms.udp_multicast.protobuf.Config)
486  private:
487  class _Internal;
488 
489  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
490  typedef void InternalArenaConstructable_;
491  typedef void DestructorSkippable_;
492  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
493  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
494  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair > rate_to_bytes_;
495  public:
496  static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_listen_address_;
497  private:
498  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr listen_address_;
499  public:
500  static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_multicast_address_;
501  private:
502  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr multicast_address_;
503  ::PROTOBUF_NAMESPACE_ID::uint32 multicast_port_;
504  ::PROTOBUF_NAMESPACE_ID::int32 max_frame_size_;
506 };
507 // ===================================================================
508 
509 static const int kConfigFieldNumber = 1342;
510 extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
511  ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::udp_multicast::protobuf::Config >, 11, false >
513 
514 // ===================================================================
515 
516 #ifdef __GNUC__
517  #pragma GCC diagnostic push
518  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
519 #endif // __GNUC__
520 // Config_RateBytesPair
521 
522 // required int32 rate = 1;
523 inline bool Config_RateBytesPair::_internal_has_rate() const {
524  bool value = (_has_bits_[0] & 0x00000001u) != 0;
525  return value;
526 }
527 inline bool Config_RateBytesPair::has_rate() const {
528  return _internal_has_rate();
529 }
530 inline void Config_RateBytesPair::clear_rate() {
531  rate_ = 0;
532  _has_bits_[0] &= ~0x00000001u;
533 }
534 inline ::PROTOBUF_NAMESPACE_ID::int32 Config_RateBytesPair::_internal_rate() const {
535  return rate_;
536 }
537 inline ::PROTOBUF_NAMESPACE_ID::int32 Config_RateBytesPair::rate() const {
538  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.rate)
539  return _internal_rate();
540 }
541 inline void Config_RateBytesPair::_internal_set_rate(::PROTOBUF_NAMESPACE_ID::int32 value) {
542  _has_bits_[0] |= 0x00000001u;
543  rate_ = value;
544 }
545 inline void Config_RateBytesPair::set_rate(::PROTOBUF_NAMESPACE_ID::int32 value) {
546  _internal_set_rate(value);
547  // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.rate)
548 }
549 
550 // required int32 bytes = 2;
551 inline bool Config_RateBytesPair::_internal_has_bytes() const {
552  bool value = (_has_bits_[0] & 0x00000002u) != 0;
553  return value;
554 }
555 inline bool Config_RateBytesPair::has_bytes() const {
556  return _internal_has_bytes();
557 }
558 inline void Config_RateBytesPair::clear_bytes() {
559  bytes_ = 0;
560  _has_bits_[0] &= ~0x00000002u;
561 }
562 inline ::PROTOBUF_NAMESPACE_ID::int32 Config_RateBytesPair::_internal_bytes() const {
563  return bytes_;
564 }
565 inline ::PROTOBUF_NAMESPACE_ID::int32 Config_RateBytesPair::bytes() const {
566  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.bytes)
567  return _internal_bytes();
568 }
569 inline void Config_RateBytesPair::_internal_set_bytes(::PROTOBUF_NAMESPACE_ID::int32 value) {
570  _has_bits_[0] |= 0x00000002u;
571  bytes_ = value;
572 }
573 inline void Config_RateBytesPair::set_bytes(::PROTOBUF_NAMESPACE_ID::int32 value) {
574  _internal_set_bytes(value);
575  // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.RateBytesPair.bytes)
576 }
577 
578 // -------------------------------------------------------------------
579 
580 // Config
581 
582 // optional string listen_address = 1 [default = "0.0.0.0"];
583 inline bool Config::_internal_has_listen_address() const {
584  bool value = (_has_bits_[0] & 0x00000001u) != 0;
585  return value;
586 }
587 inline bool Config::has_listen_address() const {
588  return _internal_has_listen_address();
589 }
590 inline void Config::clear_listen_address() {
591  listen_address_.ClearToDefault(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), GetArena());
592  _has_bits_[0] &= ~0x00000001u;
593 }
594 inline const std::string& Config::listen_address() const {
595  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.listen_address)
596  return _internal_listen_address();
597 }
598 inline void Config::set_listen_address(const std::string& value) {
599  _internal_set_listen_address(value);
600  // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.listen_address)
601 }
602 inline std::string* Config::mutable_listen_address() {
603  // @@protoc_insertion_point(field_mutable:goby.acomms.udp_multicast.protobuf.Config.listen_address)
604  return _internal_mutable_listen_address();
605 }
606 inline const std::string& Config::_internal_listen_address() const {
607  return listen_address_.Get();
608 }
609 inline void Config::_internal_set_listen_address(const std::string& value) {
610  _has_bits_[0] |= 0x00000001u;
611  listen_address_.Set(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), value, GetArena());
612 }
613 inline void Config::set_listen_address(std::string&& value) {
614  _has_bits_[0] |= 0x00000001u;
615  listen_address_.Set(
616  &::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), ::std::move(value), GetArena());
617  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.udp_multicast.protobuf.Config.listen_address)
618 }
619 inline void Config::set_listen_address(const char* value) {
620  GOOGLE_DCHECK(value != nullptr);
621  _has_bits_[0] |= 0x00000001u;
622  listen_address_.Set(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), ::std::string(value),
623  GetArena());
624  // @@protoc_insertion_point(field_set_char:goby.acomms.udp_multicast.protobuf.Config.listen_address)
625 }
626 inline void Config::set_listen_address(const char* value,
627  size_t size) {
628  _has_bits_[0] |= 0x00000001u;
629  listen_address_.Set(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), ::std::string(
630  reinterpret_cast<const char*>(value), size), GetArena());
631  // @@protoc_insertion_point(field_set_pointer:goby.acomms.udp_multicast.protobuf.Config.listen_address)
632 }
633 inline std::string* Config::_internal_mutable_listen_address() {
634  _has_bits_[0] |= 0x00000001u;
635  return listen_address_.Mutable(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), GetArena());
636 }
637 inline std::string* Config::release_listen_address() {
638  // @@protoc_insertion_point(field_release:goby.acomms.udp_multicast.protobuf.Config.listen_address)
639  if (!_internal_has_listen_address()) {
640  return nullptr;
641  }
642  _has_bits_[0] &= ~0x00000001u;
643  return listen_address_.ReleaseNonDefault(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), GetArena());
644 }
645 inline void Config::set_allocated_listen_address(std::string* listen_address) {
646  if (listen_address != nullptr) {
647  _has_bits_[0] |= 0x00000001u;
648  } else {
649  _has_bits_[0] &= ~0x00000001u;
650  }
651  listen_address_.SetAllocated(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(), listen_address,
652  GetArena());
653  // @@protoc_insertion_point(field_set_allocated:goby.acomms.udp_multicast.protobuf.Config.listen_address)
654 }
655 inline std::string* Config::unsafe_arena_release_listen_address() {
656  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.udp_multicast.protobuf.Config.listen_address)
657  GOOGLE_DCHECK(GetArena() != nullptr);
658  _has_bits_[0] &= ~0x00000001u;
659  return listen_address_.UnsafeArenaRelease(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(),
660  GetArena());
661 }
662 inline void Config::unsafe_arena_set_allocated_listen_address(
663  std::string* listen_address) {
664  GOOGLE_DCHECK(GetArena() != nullptr);
665  if (listen_address != nullptr) {
666  _has_bits_[0] |= 0x00000001u;
667  } else {
668  _has_bits_[0] &= ~0x00000001u;
669  }
670  listen_address_.UnsafeArenaSetAllocated(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_listen_address_.get(),
671  listen_address, GetArena());
672  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.udp_multicast.protobuf.Config.listen_address)
673 }
674 
675 // optional string multicast_address = 2 [default = "239.142.0.1"];
676 inline bool Config::_internal_has_multicast_address() const {
677  bool value = (_has_bits_[0] & 0x00000002u) != 0;
678  return value;
679 }
680 inline bool Config::has_multicast_address() const {
681  return _internal_has_multicast_address();
682 }
683 inline void Config::clear_multicast_address() {
684  multicast_address_.ClearToDefault(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), GetArena());
685  _has_bits_[0] &= ~0x00000002u;
686 }
687 inline const std::string& Config::multicast_address() const {
688  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
689  return _internal_multicast_address();
690 }
691 inline void Config::set_multicast_address(const std::string& value) {
692  _internal_set_multicast_address(value);
693  // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
694 }
695 inline std::string* Config::mutable_multicast_address() {
696  // @@protoc_insertion_point(field_mutable:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
697  return _internal_mutable_multicast_address();
698 }
699 inline const std::string& Config::_internal_multicast_address() const {
700  return multicast_address_.Get();
701 }
702 inline void Config::_internal_set_multicast_address(const std::string& value) {
703  _has_bits_[0] |= 0x00000002u;
704  multicast_address_.Set(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), value, GetArena());
705 }
706 inline void Config::set_multicast_address(std::string&& value) {
707  _has_bits_[0] |= 0x00000002u;
708  multicast_address_.Set(
709  &::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), ::std::move(value), GetArena());
710  // @@protoc_insertion_point(field_set_rvalue:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
711 }
712 inline void Config::set_multicast_address(const char* value) {
713  GOOGLE_DCHECK(value != nullptr);
714  _has_bits_[0] |= 0x00000002u;
715  multicast_address_.Set(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), ::std::string(value),
716  GetArena());
717  // @@protoc_insertion_point(field_set_char:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
718 }
719 inline void Config::set_multicast_address(const char* value,
720  size_t size) {
721  _has_bits_[0] |= 0x00000002u;
722  multicast_address_.Set(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), ::std::string(
723  reinterpret_cast<const char*>(value), size), GetArena());
724  // @@protoc_insertion_point(field_set_pointer:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
725 }
726 inline std::string* Config::_internal_mutable_multicast_address() {
727  _has_bits_[0] |= 0x00000002u;
728  return multicast_address_.Mutable(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), GetArena());
729 }
730 inline std::string* Config::release_multicast_address() {
731  // @@protoc_insertion_point(field_release:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
732  if (!_internal_has_multicast_address()) {
733  return nullptr;
734  }
735  _has_bits_[0] &= ~0x00000002u;
736  return multicast_address_.ReleaseNonDefault(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), GetArena());
737 }
738 inline void Config::set_allocated_multicast_address(std::string* multicast_address) {
739  if (multicast_address != nullptr) {
740  _has_bits_[0] |= 0x00000002u;
741  } else {
742  _has_bits_[0] &= ~0x00000002u;
743  }
744  multicast_address_.SetAllocated(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(), multicast_address,
745  GetArena());
746  // @@protoc_insertion_point(field_set_allocated:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
747 }
748 inline std::string* Config::unsafe_arena_release_multicast_address() {
749  // @@protoc_insertion_point(field_unsafe_arena_release:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
750  GOOGLE_DCHECK(GetArena() != nullptr);
751  _has_bits_[0] &= ~0x00000002u;
752  return multicast_address_.UnsafeArenaRelease(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(),
753  GetArena());
754 }
755 inline void Config::unsafe_arena_set_allocated_multicast_address(
756  std::string* multicast_address) {
757  GOOGLE_DCHECK(GetArena() != nullptr);
758  if (multicast_address != nullptr) {
759  _has_bits_[0] |= 0x00000002u;
760  } else {
761  _has_bits_[0] &= ~0x00000002u;
762  }
763  multicast_address_.UnsafeArenaSetAllocated(&::goby::acomms::udp_multicast::protobuf::Config::_i_give_permission_to_break_this_code_default_multicast_address_.get(),
764  multicast_address, GetArena());
765  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.acomms.udp_multicast.protobuf.Config.multicast_address)
766 }
767 
768 // optional uint32 multicast_port = 3 [default = 50021];
769 inline bool Config::_internal_has_multicast_port() const {
770  bool value = (_has_bits_[0] & 0x00000004u) != 0;
771  return value;
772 }
773 inline bool Config::has_multicast_port() const {
774  return _internal_has_multicast_port();
775 }
776 inline void Config::clear_multicast_port() {
777  multicast_port_ = 50021u;
778  _has_bits_[0] &= ~0x00000004u;
779 }
780 inline ::PROTOBUF_NAMESPACE_ID::uint32 Config::_internal_multicast_port() const {
781  return multicast_port_;
782 }
783 inline ::PROTOBUF_NAMESPACE_ID::uint32 Config::multicast_port() const {
784  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.multicast_port)
785  return _internal_multicast_port();
786 }
787 inline void Config::_internal_set_multicast_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
788  _has_bits_[0] |= 0x00000004u;
789  multicast_port_ = value;
790 }
791 inline void Config::set_multicast_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
792  _internal_set_multicast_port(value);
793  // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.multicast_port)
794 }
795 
796 // optional int32 max_frame_size = 4 [default = 1400];
797 inline bool Config::_internal_has_max_frame_size() const {
798  bool value = (_has_bits_[0] & 0x00000008u) != 0;
799  return value;
800 }
801 inline bool Config::has_max_frame_size() const {
802  return _internal_has_max_frame_size();
803 }
804 inline void Config::clear_max_frame_size() {
805  max_frame_size_ = 1400;
806  _has_bits_[0] &= ~0x00000008u;
807 }
808 inline ::PROTOBUF_NAMESPACE_ID::int32 Config::_internal_max_frame_size() const {
809  return max_frame_size_;
810 }
811 inline ::PROTOBUF_NAMESPACE_ID::int32 Config::max_frame_size() const {
812  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.max_frame_size)
813  return _internal_max_frame_size();
814 }
815 inline void Config::_internal_set_max_frame_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
816  _has_bits_[0] |= 0x00000008u;
817  max_frame_size_ = value;
818 }
819 inline void Config::set_max_frame_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
820  _internal_set_max_frame_size(value);
821  // @@protoc_insertion_point(field_set:goby.acomms.udp_multicast.protobuf.Config.max_frame_size)
822 }
823 
824 // repeated .goby.acomms.udp_multicast.protobuf.Config.RateBytesPair rate_to_bytes = 5 [(.goby.field) = {
825 inline int Config::_internal_rate_to_bytes_size() const {
826  return rate_to_bytes_.size();
827 }
828 inline int Config::rate_to_bytes_size() const {
829  return _internal_rate_to_bytes_size();
830 }
831 inline void Config::clear_rate_to_bytes() {
832  rate_to_bytes_.Clear();
833 }
834 inline ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Config::mutable_rate_to_bytes(int index) {
835  // @@protoc_insertion_point(field_mutable:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
836  return rate_to_bytes_.Mutable(index);
837 }
838 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >*
839 Config::mutable_rate_to_bytes() {
840  // @@protoc_insertion_point(field_mutable_list:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
841  return &rate_to_bytes_;
842 }
843 inline const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& Config::_internal_rate_to_bytes(int index) const {
844  return rate_to_bytes_.Get(index);
845 }
846 inline const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair& Config::rate_to_bytes(int index) const {
847  // @@protoc_insertion_point(field_get:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
848  return _internal_rate_to_bytes(index);
849 }
850 inline ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Config::_internal_add_rate_to_bytes() {
851  return rate_to_bytes_.Add();
852 }
853 inline ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair* Config::add_rate_to_bytes() {
854  // @@protoc_insertion_point(field_add:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
855  return _internal_add_rate_to_bytes();
856 }
857 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair >&
858 Config::rate_to_bytes() const {
859  // @@protoc_insertion_point(field_list:goby.acomms.udp_multicast.protobuf.Config.rate_to_bytes)
860  return rate_to_bytes_;
861 }
862 
863 #ifdef __GNUC__
864  #pragma GCC diagnostic pop
865 #endif // __GNUC__
866 // -------------------------------------------------------------------
867 
868 
869 // @@protoc_insertion_point(namespace_scope)
870 
871 } // namespace protobuf
872 } // namespace udp_multicast
873 } // namespace acomms
874 } // namespace goby
875 
876 // @@protoc_insertion_point(global_scope)
877 
878 #include <google/protobuf/port_undef.inc>
879 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto
friend void swap(Config_RateBytesPair &a, Config_RateBytesPair &b)
static const Config_RateBytesPair * internal_default_instance()
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_rate(::PROTOBUF_NAMESPACE_ID::int32 value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Config_RateBytesPair(::PROTOBUF_NAMESPACE_ID::Arena *arena)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const Config_RateBytesPair &from)
void set_allocated_listen_address(std::string *listen_address)
static const Config_RateBytesPair & default_instance()
void set_bytes(::PROTOBUF_NAMESPACE_ID::int32 value)
Config_RateBytesPair * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair > & rate_to_bytes() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
Config_RateBytesPair(const Config_RateBytesPair &from)
Config_RateBytesPair(Config_RateBytesPair &&from) noexcept
::PROTOBUF_NAMESPACE_ID::int32 rate() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Config_RateBytesPair & operator=(Config_RateBytesPair &&from) noexcept
void set_listen_address(const char *value, size_t size)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair > * mutable_rate_to_bytes()
::PROTOBUF_NAMESPACE_ID::int32 bytes() const
Config_RateBytesPair & operator=(const Config_RateBytesPair &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair * add_rate_to_bytes()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair & rate_to_bytes(int index) const
void set_listen_address(const std::string &value)
::goby::acomms::udp_multicast::protobuf::Config_RateBytesPair * mutable_rate_to_bytes(int index)
void MergeFrom(const Config_RateBytesPair &from)
@ value
the parser finished reading a JSON value
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
Definition: json.hpp:5271
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::acomms::udp_multicast::protobuf::Config >, 11, false > config
ConfigDefaultTypeInternal _Config_default_instance_
Config_RateBytesPairDefaultTypeInternal _Config_RateBytesPair_default_instance_
The global namespace for the Goby project.
std::int32_t int32
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fudp_5fmulticast_5fdriver_2eproto