Goby3  3.1.5
2024.05.14
udp_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/middleware/protobuf/udp_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_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 
42 #include <boost/units/systems/si.hpp>
43 // @@protoc_insertion_point(includes)
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
46 PROTOBUF_NAMESPACE_OPEN
47 namespace internal {
48 class AnyMetadata;
49 } // namespace internal
50 PROTOBUF_NAMESPACE_CLOSE
51 
52 // Internal implementation detail -- do not use these members.
54  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
61  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
63 };
64 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto;
65 namespace goby {
66 namespace middleware {
67 namespace protobuf {
68 class UDPOneToManyConfig;
69 class UDPOneToManyConfigDefaultTypeInternal;
70 extern UDPOneToManyConfigDefaultTypeInternal _UDPOneToManyConfig_default_instance_;
71 class UDPPointToPointConfig;
72 class UDPPointToPointConfigDefaultTypeInternal;
73 extern UDPPointToPointConfigDefaultTypeInternal _UDPPointToPointConfig_default_instance_;
74 } // namespace protobuf
75 } // namespace middleware
76 } // namespace goby
77 PROTOBUF_NAMESPACE_OPEN
78 template<> ::goby::middleware::protobuf::UDPOneToManyConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::UDPOneToManyConfig>(Arena*);
79 template<> ::goby::middleware::protobuf::UDPPointToPointConfig* Arena::CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace goby {
82 namespace middleware {
83 namespace protobuf {
84 
85 // ===================================================================
86 
87 class UDPOneToManyConfig PROTOBUF_FINAL :
88  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.UDPOneToManyConfig) */ {
89  public:
90  inline UDPOneToManyConfig() : UDPOneToManyConfig(nullptr) {};
92 
93  UDPOneToManyConfig(const UDPOneToManyConfig& from);
94  UDPOneToManyConfig(UDPOneToManyConfig&& from) noexcept
95  : UDPOneToManyConfig() {
96  *this = ::std::move(from);
97  }
98 
99  inline UDPOneToManyConfig& operator=(const UDPOneToManyConfig& from) {
100  CopyFrom(from);
101  return *this;
102  }
103  inline UDPOneToManyConfig& operator=(UDPOneToManyConfig&& from) noexcept {
104  if (GetArena() == from.GetArena()) {
105  if (this != &from) InternalSwap(&from);
106  } else {
107  CopyFrom(from);
108  }
109  return *this;
110  }
111 
112  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
113  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
114  }
115  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
116  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
117  }
118 
119  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
120  return GetDescriptor();
121  }
122  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
123  return GetMetadataStatic().descriptor;
124  }
125  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
126  return GetMetadataStatic().reflection;
127  }
128  static const UDPOneToManyConfig& default_instance();
129 
130  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
131  static inline const UDPOneToManyConfig* internal_default_instance() {
132  return reinterpret_cast<const UDPOneToManyConfig*>(
134  }
135  static constexpr int kIndexInFileMessages =
136  0;
137 
138  friend void swap(UDPOneToManyConfig& a, UDPOneToManyConfig& b) {
139  a.Swap(&b);
140  }
141  inline void Swap(UDPOneToManyConfig* other) {
142  if (other == this) return;
143  if (GetArena() == other->GetArena()) {
144  InternalSwap(other);
145  } else {
146  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
147  }
148  }
149  void UnsafeArenaSwap(UDPOneToManyConfig* other) {
150  if (other == this) return;
151  GOOGLE_DCHECK(GetArena() == other->GetArena());
152  InternalSwap(other);
153  }
154 
155  // implements Message ----------------------------------------------
156 
157  inline UDPOneToManyConfig* New() const final {
158  return CreateMaybeMessage<UDPOneToManyConfig>(nullptr);
159  }
160 
161  UDPOneToManyConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
162  return CreateMaybeMessage<UDPOneToManyConfig>(arena);
163  }
164  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
165  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
166  void CopyFrom(const UDPOneToManyConfig& from);
167  void MergeFrom(const UDPOneToManyConfig& from);
168  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169  bool IsInitialized() const final;
170 
171  size_t ByteSizeLong() const final;
172  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
174  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175  int GetCachedSize() const final { return _cached_size_.Get(); }
176 
177  private:
178  inline void SharedCtor();
179  inline void SharedDtor();
180  void SetCachedSize(int size) const final;
181  void InternalSwap(UDPOneToManyConfig* other);
182  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
183  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
184  return "goby.middleware.protobuf.UDPOneToManyConfig";
185  }
186  protected:
187  explicit UDPOneToManyConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
188  private:
189  static void ArenaDtor(void* object);
190  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
191  public:
192 
193  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
194  private:
195  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
196  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto);
198  }
199 
200  public:
201 
202  // nested types ----------------------------------------------------
203 
204  // accessors -------------------------------------------------------
205 
206  enum : int {
207  kBindPortFieldNumber = 2,
208  kSetReuseaddrFieldNumber = 10,
209  kSetBroadcastFieldNumber = 11,
210  kIpv6FieldNumber = 12,
211  };
212  // required uint32 bind_port = 2 [(.goby.field) = {
213  bool has_bind_port() const;
214  private:
215  bool _internal_has_bind_port() const;
216  public:
220  private:
221  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_bind_port() const;
222  void _internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
223  public:
224 
225  // optional bool set_reuseaddr = 10 [default = false];
226  bool has_set_reuseaddr() const;
227  private:
228  bool _internal_has_set_reuseaddr() const;
229  public:
231  bool set_reuseaddr() const;
232  void set_set_reuseaddr(bool value);
233  private:
234  bool _internal_set_reuseaddr() const;
235  void _internal_set_set_reuseaddr(bool value);
236  public:
237 
238  // optional bool set_broadcast = 11 [default = false];
239  bool has_set_broadcast() const;
240  private:
241  bool _internal_has_set_broadcast() const;
242  public:
244  bool set_broadcast() const;
245  void set_set_broadcast(bool value);
246  private:
247  bool _internal_set_broadcast() const;
248  void _internal_set_set_broadcast(bool value);
249  public:
250 
251  // optional bool ipv6 = 12 [default = false];
252  bool has_ipv6() const;
253  private:
254  bool _internal_has_ipv6() const;
255  public:
256  void clear_ipv6();
257  bool ipv6() const;
258  void set_ipv6(bool value);
259  private:
260  bool _internal_ipv6() const;
261  void _internal_set_ipv6(bool value);
262  public:
263 
264  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.UDPOneToManyConfig)
265  private:
266  class _Internal;
267 
268  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
269  typedef void InternalArenaConstructable_;
270  typedef void DestructorSkippable_;
271  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
272  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
274  bool set_reuseaddr_;
275  bool set_broadcast_;
276  bool ipv6_;
277  friend struct ::TableStruct_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto;
278 };
279 // -------------------------------------------------------------------
280 
281 class UDPPointToPointConfig PROTOBUF_FINAL :
282  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.protobuf.UDPPointToPointConfig) */ {
283  public:
284  inline UDPPointToPointConfig() : UDPPointToPointConfig(nullptr) {};
286 
287  UDPPointToPointConfig(const UDPPointToPointConfig& from);
288  UDPPointToPointConfig(UDPPointToPointConfig&& from) noexcept
289  : UDPPointToPointConfig() {
290  *this = ::std::move(from);
291  }
292 
293  inline UDPPointToPointConfig& operator=(const UDPPointToPointConfig& from) {
294  CopyFrom(from);
295  return *this;
296  }
297  inline UDPPointToPointConfig& operator=(UDPPointToPointConfig&& from) noexcept {
298  if (GetArena() == from.GetArena()) {
299  if (this != &from) InternalSwap(&from);
300  } else {
301  CopyFrom(from);
302  }
303  return *this;
304  }
305 
306  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
307  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
308  }
309  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
310  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
311  }
312 
313  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
314  return GetDescriptor();
315  }
316  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
317  return GetMetadataStatic().descriptor;
318  }
319  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
320  return GetMetadataStatic().reflection;
321  }
322  static const UDPPointToPointConfig& default_instance();
323 
324  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
325  static inline const UDPPointToPointConfig* internal_default_instance() {
326  return reinterpret_cast<const UDPPointToPointConfig*>(
328  }
329  static constexpr int kIndexInFileMessages =
330  1;
331 
332  friend void swap(UDPPointToPointConfig& a, UDPPointToPointConfig& b) {
333  a.Swap(&b);
334  }
335  inline void Swap(UDPPointToPointConfig* other) {
336  if (other == this) return;
337  if (GetArena() == other->GetArena()) {
338  InternalSwap(other);
339  } else {
340  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
341  }
342  }
343  void UnsafeArenaSwap(UDPPointToPointConfig* other) {
344  if (other == this) return;
345  GOOGLE_DCHECK(GetArena() == other->GetArena());
346  InternalSwap(other);
347  }
348 
349  // implements Message ----------------------------------------------
350 
351  inline UDPPointToPointConfig* New() const final {
352  return CreateMaybeMessage<UDPPointToPointConfig>(nullptr);
353  }
354 
355  UDPPointToPointConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
356  return CreateMaybeMessage<UDPPointToPointConfig>(arena);
357  }
358  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
359  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
360  void CopyFrom(const UDPPointToPointConfig& from);
361  void MergeFrom(const UDPPointToPointConfig& from);
362  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
363  bool IsInitialized() const final;
364 
365  size_t ByteSizeLong() const final;
366  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
367  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
368  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
369  int GetCachedSize() const final { return _cached_size_.Get(); }
370 
371  private:
372  inline void SharedCtor();
373  inline void SharedDtor();
374  void SetCachedSize(int size) const final;
375  void InternalSwap(UDPPointToPointConfig* other);
376  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
377  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
378  return "goby.middleware.protobuf.UDPPointToPointConfig";
379  }
380  protected:
381  explicit UDPPointToPointConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
382  private:
383  static void ArenaDtor(void* object);
384  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
385  public:
386 
387  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
388  private:
389  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
390  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto);
392  }
393 
394  public:
395 
396  // nested types ----------------------------------------------------
397 
398  // accessors -------------------------------------------------------
399 
400  enum : int {
401  kRemoteAddressFieldNumber = 5,
402  kBindPortFieldNumber = 2,
403  kRemotePortFieldNumber = 6,
404  kSetReuseaddrFieldNumber = 10,
405  kSetBroadcastFieldNumber = 11,
406  kIpv6FieldNumber = 12,
407  };
408  // required string remote_address = 5 [(.goby.field) = {
409  bool has_remote_address() const;
410  private:
411  bool _internal_has_remote_address() const;
412  public:
414  const std::string& remote_address() const;
415  void set_remote_address(const std::string& value);
416  void set_remote_address(std::string&& value);
417  void set_remote_address(const char* value);
418  void set_remote_address(const char* value, size_t size);
419  std::string* mutable_remote_address();
420  std::string* release_remote_address();
421  void set_allocated_remote_address(std::string* remote_address);
422  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
423  " string fields are deprecated and will be removed in a"
424  " future release.")
425  std::string* unsafe_arena_release_remote_address();
426  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
427  " string fields are deprecated and will be removed in a"
428  " future release.")
429  void unsafe_arena_set_allocated_remote_address(
430  std::string* remote_address);
431  private:
432  const std::string& _internal_remote_address() const;
433  void _internal_set_remote_address(const std::string& value);
434  std::string* _internal_mutable_remote_address();
435  public:
436 
437  // optional uint32 bind_port = 2 [default = 0, (.goby.field) = {
438  bool has_bind_port() const;
439  private:
440  bool _internal_has_bind_port() const;
441  public:
442  void clear_bind_port();
443  ::PROTOBUF_NAMESPACE_ID::uint32 bind_port() const;
444  void set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
445  private:
446  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_bind_port() const;
447  void _internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
448  public:
449 
450  // required uint32 remote_port = 6 [(.goby.field) = {
451  bool has_remote_port() const;
452  private:
453  bool _internal_has_remote_port() const;
454  public:
455  void clear_remote_port();
456  ::PROTOBUF_NAMESPACE_ID::uint32 remote_port() const;
457  void set_remote_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
458  private:
459  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_remote_port() const;
460  void _internal_set_remote_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
461  public:
462 
463  // optional bool set_reuseaddr = 10 [default = false];
464  bool has_set_reuseaddr() const;
465  private:
466  bool _internal_has_set_reuseaddr() const;
467  public:
468  void clear_set_reuseaddr();
469  bool set_reuseaddr() const;
470  void set_set_reuseaddr(bool value);
471  private:
472  bool _internal_set_reuseaddr() const;
473  void _internal_set_set_reuseaddr(bool value);
474  public:
475 
476  // optional bool set_broadcast = 11 [default = false];
477  bool has_set_broadcast() const;
478  private:
479  bool _internal_has_set_broadcast() const;
480  public:
481  void clear_set_broadcast();
482  bool set_broadcast() const;
483  void set_set_broadcast(bool value);
484  private:
485  bool _internal_set_broadcast() const;
486  void _internal_set_set_broadcast(bool value);
487  public:
488 
489  // optional bool ipv6 = 12 [default = false];
490  bool has_ipv6() const;
491  private:
492  bool _internal_has_ipv6() const;
493  public:
494  void clear_ipv6();
495  bool ipv6() const;
496  void set_ipv6(bool value);
497  private:
498  bool _internal_ipv6() const;
499  void _internal_set_ipv6(bool value);
500  public:
501 
502  // @@protoc_insertion_point(class_scope:goby.middleware.protobuf.UDPPointToPointConfig)
503  private:
504  class _Internal;
505 
506  // helper for ByteSizeLong()
507  size_t RequiredFieldsByteSizeFallback() const;
508 
509  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
510  typedef void InternalArenaConstructable_;
511  typedef void DestructorSkippable_;
512  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
513  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
514  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr remote_address_;
515  ::PROTOBUF_NAMESPACE_ID::uint32 bind_port_;
516  ::PROTOBUF_NAMESPACE_ID::uint32 remote_port_;
517  bool set_reuseaddr_;
518  bool set_broadcast_;
519  bool ipv6_;
521 };
522 // ===================================================================
523 
524 
525 // ===================================================================
526 
527 #ifdef __GNUC__
528  #pragma GCC diagnostic push
529  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
530 #endif // __GNUC__
531 // UDPOneToManyConfig
532 
533 // required uint32 bind_port = 2 [(.goby.field) = {
534 inline bool UDPOneToManyConfig::_internal_has_bind_port() const {
535  bool value = (_has_bits_[0] & 0x00000001u) != 0;
536  return value;
537 }
538 inline bool UDPOneToManyConfig::has_bind_port() const {
539  return _internal_has_bind_port();
540 }
541 inline void UDPOneToManyConfig::clear_bind_port() {
542  bind_port_ = 0u;
543  _has_bits_[0] &= ~0x00000001u;
544 }
545 inline ::PROTOBUF_NAMESPACE_ID::uint32 UDPOneToManyConfig::_internal_bind_port() const {
546  return bind_port_;
547 }
548 inline ::PROTOBUF_NAMESPACE_ID::uint32 UDPOneToManyConfig::bind_port() const {
549  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.bind_port)
550  return _internal_bind_port();
551 }
552 inline void UDPOneToManyConfig::_internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
553  _has_bits_[0] |= 0x00000001u;
554  bind_port_ = value;
555 }
556 inline void UDPOneToManyConfig::set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
557  _internal_set_bind_port(value);
558  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.bind_port)
559 }
560 
561 // optional bool set_reuseaddr = 10 [default = false];
562 inline bool UDPOneToManyConfig::_internal_has_set_reuseaddr() const {
563  bool value = (_has_bits_[0] & 0x00000002u) != 0;
564  return value;
565 }
566 inline bool UDPOneToManyConfig::has_set_reuseaddr() const {
567  return _internal_has_set_reuseaddr();
568 }
569 inline void UDPOneToManyConfig::clear_set_reuseaddr() {
570  set_reuseaddr_ = false;
571  _has_bits_[0] &= ~0x00000002u;
572 }
573 inline bool UDPOneToManyConfig::_internal_set_reuseaddr() const {
574  return set_reuseaddr_;
575 }
576 inline bool UDPOneToManyConfig::set_reuseaddr() const {
577  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.set_reuseaddr)
578  return _internal_set_reuseaddr();
579 }
580 inline void UDPOneToManyConfig::_internal_set_set_reuseaddr(bool value) {
581  _has_bits_[0] |= 0x00000002u;
582  set_reuseaddr_ = value;
583 }
584 inline void UDPOneToManyConfig::set_set_reuseaddr(bool value) {
585  _internal_set_set_reuseaddr(value);
586  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.set_reuseaddr)
587 }
588 
589 // optional bool set_broadcast = 11 [default = false];
590 inline bool UDPOneToManyConfig::_internal_has_set_broadcast() const {
591  bool value = (_has_bits_[0] & 0x00000004u) != 0;
592  return value;
593 }
594 inline bool UDPOneToManyConfig::has_set_broadcast() const {
595  return _internal_has_set_broadcast();
596 }
597 inline void UDPOneToManyConfig::clear_set_broadcast() {
598  set_broadcast_ = false;
599  _has_bits_[0] &= ~0x00000004u;
600 }
601 inline bool UDPOneToManyConfig::_internal_set_broadcast() const {
602  return set_broadcast_;
603 }
604 inline bool UDPOneToManyConfig::set_broadcast() const {
605  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.set_broadcast)
606  return _internal_set_broadcast();
607 }
608 inline void UDPOneToManyConfig::_internal_set_set_broadcast(bool value) {
609  _has_bits_[0] |= 0x00000004u;
610  set_broadcast_ = value;
611 }
612 inline void UDPOneToManyConfig::set_set_broadcast(bool value) {
613  _internal_set_set_broadcast(value);
614  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.set_broadcast)
615 }
616 
617 // optional bool ipv6 = 12 [default = false];
618 inline bool UDPOneToManyConfig::_internal_has_ipv6() const {
619  bool value = (_has_bits_[0] & 0x00000008u) != 0;
620  return value;
621 }
622 inline bool UDPOneToManyConfig::has_ipv6() const {
623  return _internal_has_ipv6();
624 }
625 inline void UDPOneToManyConfig::clear_ipv6() {
626  ipv6_ = false;
627  _has_bits_[0] &= ~0x00000008u;
628 }
629 inline bool UDPOneToManyConfig::_internal_ipv6() const {
630  return ipv6_;
631 }
632 inline bool UDPOneToManyConfig::ipv6() const {
633  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPOneToManyConfig.ipv6)
634  return _internal_ipv6();
635 }
636 inline void UDPOneToManyConfig::_internal_set_ipv6(bool value) {
637  _has_bits_[0] |= 0x00000008u;
638  ipv6_ = value;
639 }
640 inline void UDPOneToManyConfig::set_ipv6(bool value) {
641  _internal_set_ipv6(value);
642  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPOneToManyConfig.ipv6)
643 }
644 
645 // -------------------------------------------------------------------
646 
647 // UDPPointToPointConfig
648 
649 // optional uint32 bind_port = 2 [default = 0, (.goby.field) = {
650 inline bool UDPPointToPointConfig::_internal_has_bind_port() const {
651  bool value = (_has_bits_[0] & 0x00000002u) != 0;
652  return value;
653 }
654 inline bool UDPPointToPointConfig::has_bind_port() const {
655  return _internal_has_bind_port();
656 }
657 inline void UDPPointToPointConfig::clear_bind_port() {
658  bind_port_ = 0u;
659  _has_bits_[0] &= ~0x00000002u;
660 }
661 inline ::PROTOBUF_NAMESPACE_ID::uint32 UDPPointToPointConfig::_internal_bind_port() const {
662  return bind_port_;
663 }
664 inline ::PROTOBUF_NAMESPACE_ID::uint32 UDPPointToPointConfig::bind_port() const {
665  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.bind_port)
666  return _internal_bind_port();
667 }
668 inline void UDPPointToPointConfig::_internal_set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
669  _has_bits_[0] |= 0x00000002u;
670  bind_port_ = value;
671 }
672 inline void UDPPointToPointConfig::set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
673  _internal_set_bind_port(value);
674  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.bind_port)
675 }
676 
677 // required string remote_address = 5 [(.goby.field) = {
678 inline bool UDPPointToPointConfig::_internal_has_remote_address() const {
679  bool value = (_has_bits_[0] & 0x00000001u) != 0;
680  return value;
681 }
682 inline bool UDPPointToPointConfig::has_remote_address() const {
683  return _internal_has_remote_address();
684 }
685 inline void UDPPointToPointConfig::clear_remote_address() {
686  remote_address_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
687  _has_bits_[0] &= ~0x00000001u;
688 }
689 inline const std::string& UDPPointToPointConfig::remote_address() const {
690  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
691  return _internal_remote_address();
692 }
693 inline void UDPPointToPointConfig::set_remote_address(const std::string& value) {
694  _internal_set_remote_address(value);
695  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
696 }
697 inline std::string* UDPPointToPointConfig::mutable_remote_address() {
698  // @@protoc_insertion_point(field_mutable:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
699  return _internal_mutable_remote_address();
700 }
701 inline const std::string& UDPPointToPointConfig::_internal_remote_address() const {
702  return remote_address_.Get();
703 }
704 inline void UDPPointToPointConfig::_internal_set_remote_address(const std::string& value) {
705  _has_bits_[0] |= 0x00000001u;
706  remote_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
707 }
708 inline void UDPPointToPointConfig::set_remote_address(std::string&& value) {
709  _has_bits_[0] |= 0x00000001u;
710  remote_address_.Set(
711  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
712  // @@protoc_insertion_point(field_set_rvalue:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
713 }
714 inline void UDPPointToPointConfig::set_remote_address(const char* value) {
715  GOOGLE_DCHECK(value != nullptr);
716  _has_bits_[0] |= 0x00000001u;
717  remote_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
718  GetArena());
719  // @@protoc_insertion_point(field_set_char:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
720 }
721 inline void UDPPointToPointConfig::set_remote_address(const char* value,
722  size_t size) {
723  _has_bits_[0] |= 0x00000001u;
724  remote_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
725  reinterpret_cast<const char*>(value), size), GetArena());
726  // @@protoc_insertion_point(field_set_pointer:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
727 }
728 inline std::string* UDPPointToPointConfig::_internal_mutable_remote_address() {
729  _has_bits_[0] |= 0x00000001u;
730  return remote_address_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
731 }
732 inline std::string* UDPPointToPointConfig::release_remote_address() {
733  // @@protoc_insertion_point(field_release:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
734  if (!_internal_has_remote_address()) {
735  return nullptr;
736  }
737  _has_bits_[0] &= ~0x00000001u;
738  return remote_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
739 }
740 inline void UDPPointToPointConfig::set_allocated_remote_address(std::string* remote_address) {
741  if (remote_address != nullptr) {
742  _has_bits_[0] |= 0x00000001u;
743  } else {
744  _has_bits_[0] &= ~0x00000001u;
745  }
746  remote_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), remote_address,
747  GetArena());
748  // @@protoc_insertion_point(field_set_allocated:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
749 }
750 inline std::string* UDPPointToPointConfig::unsafe_arena_release_remote_address() {
751  // @@protoc_insertion_point(field_unsafe_arena_release:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
752  GOOGLE_DCHECK(GetArena() != nullptr);
753  _has_bits_[0] &= ~0x00000001u;
754  return remote_address_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
755  GetArena());
756 }
757 inline void UDPPointToPointConfig::unsafe_arena_set_allocated_remote_address(
758  std::string* remote_address) {
759  GOOGLE_DCHECK(GetArena() != nullptr);
760  if (remote_address != nullptr) {
761  _has_bits_[0] |= 0x00000001u;
762  } else {
763  _has_bits_[0] &= ~0x00000001u;
764  }
765  remote_address_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
766  remote_address, GetArena());
767  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.middleware.protobuf.UDPPointToPointConfig.remote_address)
768 }
769 
770 // required uint32 remote_port = 6 [(.goby.field) = {
771 inline bool UDPPointToPointConfig::_internal_has_remote_port() const {
772  bool value = (_has_bits_[0] & 0x00000004u) != 0;
773  return value;
774 }
775 inline bool UDPPointToPointConfig::has_remote_port() const {
776  return _internal_has_remote_port();
777 }
778 inline void UDPPointToPointConfig::clear_remote_port() {
779  remote_port_ = 0u;
780  _has_bits_[0] &= ~0x00000004u;
781 }
782 inline ::PROTOBUF_NAMESPACE_ID::uint32 UDPPointToPointConfig::_internal_remote_port() const {
783  return remote_port_;
784 }
785 inline ::PROTOBUF_NAMESPACE_ID::uint32 UDPPointToPointConfig::remote_port() const {
786  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.remote_port)
787  return _internal_remote_port();
788 }
789 inline void UDPPointToPointConfig::_internal_set_remote_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
790  _has_bits_[0] |= 0x00000004u;
791  remote_port_ = value;
792 }
793 inline void UDPPointToPointConfig::set_remote_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
794  _internal_set_remote_port(value);
795  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.remote_port)
796 }
797 
798 // optional bool set_reuseaddr = 10 [default = false];
799 inline bool UDPPointToPointConfig::_internal_has_set_reuseaddr() const {
800  bool value = (_has_bits_[0] & 0x00000008u) != 0;
801  return value;
802 }
803 inline bool UDPPointToPointConfig::has_set_reuseaddr() const {
804  return _internal_has_set_reuseaddr();
805 }
806 inline void UDPPointToPointConfig::clear_set_reuseaddr() {
807  set_reuseaddr_ = false;
808  _has_bits_[0] &= ~0x00000008u;
809 }
810 inline bool UDPPointToPointConfig::_internal_set_reuseaddr() const {
811  return set_reuseaddr_;
812 }
813 inline bool UDPPointToPointConfig::set_reuseaddr() const {
814  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.set_reuseaddr)
815  return _internal_set_reuseaddr();
816 }
817 inline void UDPPointToPointConfig::_internal_set_set_reuseaddr(bool value) {
818  _has_bits_[0] |= 0x00000008u;
819  set_reuseaddr_ = value;
820 }
821 inline void UDPPointToPointConfig::set_set_reuseaddr(bool value) {
822  _internal_set_set_reuseaddr(value);
823  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.set_reuseaddr)
824 }
825 
826 // optional bool set_broadcast = 11 [default = false];
827 inline bool UDPPointToPointConfig::_internal_has_set_broadcast() const {
828  bool value = (_has_bits_[0] & 0x00000010u) != 0;
829  return value;
830 }
831 inline bool UDPPointToPointConfig::has_set_broadcast() const {
832  return _internal_has_set_broadcast();
833 }
834 inline void UDPPointToPointConfig::clear_set_broadcast() {
835  set_broadcast_ = false;
836  _has_bits_[0] &= ~0x00000010u;
837 }
838 inline bool UDPPointToPointConfig::_internal_set_broadcast() const {
839  return set_broadcast_;
840 }
841 inline bool UDPPointToPointConfig::set_broadcast() const {
842  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.set_broadcast)
843  return _internal_set_broadcast();
844 }
845 inline void UDPPointToPointConfig::_internal_set_set_broadcast(bool value) {
846  _has_bits_[0] |= 0x00000010u;
847  set_broadcast_ = value;
848 }
849 inline void UDPPointToPointConfig::set_set_broadcast(bool value) {
850  _internal_set_set_broadcast(value);
851  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.set_broadcast)
852 }
853 
854 // optional bool ipv6 = 12 [default = false];
855 inline bool UDPPointToPointConfig::_internal_has_ipv6() const {
856  bool value = (_has_bits_[0] & 0x00000020u) != 0;
857  return value;
858 }
859 inline bool UDPPointToPointConfig::has_ipv6() const {
860  return _internal_has_ipv6();
861 }
862 inline void UDPPointToPointConfig::clear_ipv6() {
863  ipv6_ = false;
864  _has_bits_[0] &= ~0x00000020u;
865 }
866 inline bool UDPPointToPointConfig::_internal_ipv6() const {
867  return ipv6_;
868 }
869 inline bool UDPPointToPointConfig::ipv6() const {
870  // @@protoc_insertion_point(field_get:goby.middleware.protobuf.UDPPointToPointConfig.ipv6)
871  return _internal_ipv6();
872 }
873 inline void UDPPointToPointConfig::_internal_set_ipv6(bool value) {
874  _has_bits_[0] |= 0x00000020u;
875  ipv6_ = value;
876 }
877 inline void UDPPointToPointConfig::set_ipv6(bool value) {
878  _internal_set_ipv6(value);
879  // @@protoc_insertion_point(field_set:goby.middleware.protobuf.UDPPointToPointConfig.ipv6)
880 }
881 
882 #ifdef __GNUC__
883  #pragma GCC diagnostic pop
884 #endif // __GNUC__
885 // -------------------------------------------------------------------
886 
887 
888 // @@protoc_insertion_point(namespace_scope)
889 
890 } // namespace protobuf
891 } // namespace middleware
892 } // namespace goby
893 
894 // @@protoc_insertion_point(global_scope)
895 
896 #include <google/protobuf/port_undef.inc>
897 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto
UDPOneToManyConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void MergeFrom(const UDPOneToManyConfig &from)
const std::string & remote_address() const
friend void swap(UDPPointToPointConfig &a, UDPPointToPointConfig &b)
void Swap(UDPOneToManyConfig *other)
void set_allocated_remote_address(std::string *remote_address)
void set_remote_address(const char *value, size_t size)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
UDPPointToPointConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void Swap(UDPPointToPointConfig *other)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
UDPOneToManyConfig(const UDPOneToManyConfig &from)
UDPOneToManyConfig * New() const final
UDPPointToPointConfig * New() const final
friend void swap(UDPOneToManyConfig &a, UDPOneToManyConfig &b)
UDPOneToManyConfig & operator=(UDPOneToManyConfig &&from) noexcept
static const UDPPointToPointConfig & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
UDPPointToPointConfig(const UDPPointToPointConfig &from)
void set_remote_address(const std::string &value)
void CopyFrom(const UDPPointToPointConfig &from)
UDPPointToPointConfig & operator=(UDPPointToPointConfig &&from) noexcept
static const UDPOneToManyConfig & default_instance()
void CopyFrom(const UDPOneToManyConfig &from)
::PROTOBUF_NAMESPACE_ID::uint32 bind_port() const
void MergeFrom(const UDPPointToPointConfig &from)
void UnsafeArenaSwap(UDPOneToManyConfig *other)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void UnsafeArenaSwap(UDPPointToPointConfig *other)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
UDPPointToPointConfig(UDPPointToPointConfig &&from) noexcept
void set_remote_address(const char *value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
UDPOneToManyConfig & operator=(const UDPOneToManyConfig &from)
Definition: udp_config.pb.h:99
UDPOneToManyConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
UDPPointToPointConfig & operator=(const UDPPointToPointConfig &from)
static const UDPOneToManyConfig * internal_default_instance()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
UDPPointToPointConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static const UDPPointToPointConfig * internal_default_instance()
void set_remote_address(std::string &&value)
void set_bind_port(::PROTOBUF_NAMESPACE_ID::uint32 value)
UDPOneToManyConfig(UDPOneToManyConfig &&from) noexcept
Definition: udp_config.pb.h:94
@ value
the parser finished reading a JSON value
UDPPointToPointConfigDefaultTypeInternal _UDPPointToPointConfig_default_instance_
UDPOneToManyConfigDefaultTypeInternal _UDPOneToManyConfig_default_instance_
The global namespace for the Goby project.
std::uint32_t uint32
PROTOBUF_EXPORT const std::string & GetEmptyStringAlreadyInited()
Definition: message_lite.h:154
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: udp_config.pb.h:60
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: udp_config.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: udp_config.pb.h:62
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2fprotobuf_2fudp_5fconfig_2eproto