Goby3  3.1.5
2024.05.14
mosh_relay_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: goby/zeromq/protobuf/mosh_relay_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_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>
38 #include "dccl/option_extensions.pb.h"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
43 // @@protoc_insertion_point(includes)
44 #include <google/protobuf/port_def.inc>
45 #define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_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[1]
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_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto;
65 namespace goby {
66 namespace apps {
67 namespace zeromq {
68 namespace acomms {
69 namespace protobuf {
70 class MoshRelayConfig;
71 class MoshRelayConfigDefaultTypeInternal;
72 extern MoshRelayConfigDefaultTypeInternal _MoshRelayConfig_default_instance_;
73 } // namespace protobuf
74 } // namespace acomms
75 } // namespace zeromq
76 } // namespace apps
77 } // namespace goby
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace goby {
82 namespace apps {
83 namespace zeromq {
84 namespace acomms {
85 namespace protobuf {
86 
87 // ===================================================================
88 
89 class MoshRelayConfig PROTOBUF_FINAL :
90  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig) */ {
91  public:
92  inline MoshRelayConfig() : MoshRelayConfig(nullptr) {};
93  virtual ~MoshRelayConfig();
94 
95  MoshRelayConfig(const MoshRelayConfig& from);
96  MoshRelayConfig(MoshRelayConfig&& from) noexcept
97  : MoshRelayConfig() {
98  *this = ::std::move(from);
99  }
100 
101  inline MoshRelayConfig& operator=(const MoshRelayConfig& from) {
102  CopyFrom(from);
103  return *this;
104  }
105  inline MoshRelayConfig& operator=(MoshRelayConfig&& from) noexcept {
106  if (GetArena() == from.GetArena()) {
107  if (this != &from) InternalSwap(&from);
108  } else {
109  CopyFrom(from);
110  }
111  return *this;
112  }
113 
114  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
115  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
116  }
117  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
118  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
119  }
120 
121  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
122  return GetDescriptor();
123  }
124  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
125  return GetMetadataStatic().descriptor;
126  }
127  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
128  return GetMetadataStatic().reflection;
129  }
130  static const MoshRelayConfig& default_instance();
131 
132  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
133  static inline const MoshRelayConfig* internal_default_instance() {
134  return reinterpret_cast<const MoshRelayConfig*>(
136  }
137  static constexpr int kIndexInFileMessages =
138  0;
139 
140  friend void swap(MoshRelayConfig& a, MoshRelayConfig& b) {
141  a.Swap(&b);
142  }
143  inline void Swap(MoshRelayConfig* other) {
144  if (other == this) return;
145  if (GetArena() == other->GetArena()) {
146  InternalSwap(other);
147  } else {
148  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
149  }
150  }
151  void UnsafeArenaSwap(MoshRelayConfig* other) {
152  if (other == this) return;
153  GOOGLE_DCHECK(GetArena() == other->GetArena());
154  InternalSwap(other);
155  }
156 
157  // implements Message ----------------------------------------------
158 
159  inline MoshRelayConfig* New() const final {
160  return CreateMaybeMessage<MoshRelayConfig>(nullptr);
161  }
162 
163  MoshRelayConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
164  return CreateMaybeMessage<MoshRelayConfig>(arena);
165  }
166  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
167  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
168  void CopyFrom(const MoshRelayConfig& from);
169  void MergeFrom(const MoshRelayConfig& from);
170  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
171  bool IsInitialized() const final;
172 
173  size_t ByteSizeLong() const final;
174  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
175  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
176  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
177  int GetCachedSize() const final { return _cached_size_.Get(); }
178 
179  private:
180  inline void SharedCtor();
181  inline void SharedDtor();
182  void SetCachedSize(int size) const final;
183  void InternalSwap(MoshRelayConfig* other);
184  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186  return "goby.apps.zeromq.acomms.protobuf.MoshRelayConfig";
187  }
188  protected:
189  explicit MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
190  private:
191  static void ArenaDtor(void* object);
192  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193  public:
194 
195  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
196  private:
197  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
198  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto);
200  }
201 
202  public:
203 
204  // nested types ----------------------------------------------------
205 
206  // accessors -------------------------------------------------------
207 
208  enum : int {
209  kIpAddressFieldNumber = 3,
210  kAppFieldNumber = 1,
211  kInterprocessFieldNumber = 2,
212  kUdpPortFieldNumber = 4,
213  kBindFieldNumber = 5,
214  kSrcModemIdFieldNumber = 6,
215  kDestModemIdFieldNumber = 7,
216  };
217  // optional string ip_address = 3 [default = "127.0.0.1"];
218  bool has_ip_address() const;
219  private:
220  bool _internal_has_ip_address() const;
221  public:
223  const std::string& ip_address() const;
224  void set_ip_address(const std::string& value);
225  void set_ip_address(std::string&& value);
226  void set_ip_address(const char* value);
227  void set_ip_address(const char* value, size_t size);
228  std::string* mutable_ip_address();
229  std::string* release_ip_address();
230  void set_allocated_ip_address(std::string* ip_address);
231  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
232  " string fields are deprecated and will be removed in a"
233  " future release.")
234  std::string* unsafe_arena_release_ip_address();
235  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
236  " string fields are deprecated and will be removed in a"
237  " future release.")
238  void unsafe_arena_set_allocated_ip_address(
239  std::string* ip_address);
240  private:
241  const std::string& _internal_ip_address() const;
242  void _internal_set_ip_address(const std::string& value);
243  std::string* _internal_mutable_ip_address();
244  public:
245 
246  // optional .goby.middleware.protobuf.AppConfig app = 1;
247  bool has_app() const;
248  private:
249  bool _internal_has_app() const;
250  public:
251  void clear_app();
252  const ::goby::middleware::protobuf::AppConfig& app() const;
253  ::goby::middleware::protobuf::AppConfig* release_app();
254  ::goby::middleware::protobuf::AppConfig* mutable_app();
255  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
256  private:
257  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
258  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
259  public:
260  void unsafe_arena_set_allocated_app(
261  ::goby::middleware::protobuf::AppConfig* app);
262  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
263 
264  // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
265  bool has_interprocess() const;
266  private:
267  bool _internal_has_interprocess() const;
268  public:
269  void clear_interprocess();
270  const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
271  ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
272  ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
273  void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
274  private:
275  const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
276  ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
277  public:
278  void unsafe_arena_set_allocated_interprocess(
279  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
280  ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
281 
282  // optional uint32 udp_port = 4;
283  bool has_udp_port() const;
284  private:
285  bool _internal_has_udp_port() const;
286  public:
287  void clear_udp_port();
288  ::PROTOBUF_NAMESPACE_ID::uint32 udp_port() const;
289  void set_udp_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
290  private:
291  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_udp_port() const;
292  void _internal_set_udp_port(::PROTOBUF_NAMESPACE_ID::uint32 value);
293  public:
294 
295  // optional bool bind = 5;
296  bool has_bind() const;
297  private:
298  bool _internal_has_bind() const;
299  public:
300  void clear_bind();
301  bool bind() const;
302  void set_bind(bool value);
303  private:
304  bool _internal_bind() const;
305  void _internal_set_bind(bool value);
306  public:
307 
308  // required uint32 src_modem_id = 6;
309  bool has_src_modem_id() const;
310  private:
311  bool _internal_has_src_modem_id() const;
312  public:
313  void clear_src_modem_id();
314  ::PROTOBUF_NAMESPACE_ID::uint32 src_modem_id() const;
315  void set_src_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
316  private:
317  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_src_modem_id() const;
318  void _internal_set_src_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
319  public:
320 
321  // required uint32 dest_modem_id = 7;
322  bool has_dest_modem_id() const;
323  private:
324  bool _internal_has_dest_modem_id() const;
325  public:
326  void clear_dest_modem_id();
327  ::PROTOBUF_NAMESPACE_ID::uint32 dest_modem_id() const;
328  void set_dest_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
329  private:
330  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_dest_modem_id() const;
331  void _internal_set_dest_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
332  public:
333 
334  // @@protoc_insertion_point(class_scope:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig)
335  private:
336  class _Internal;
337 
338  // helper for ByteSizeLong()
339  size_t RequiredFieldsByteSizeFallback() const;
340 
341  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
342  typedef void InternalArenaConstructable_;
343  typedef void DestructorSkippable_;
344  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
345  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
346  public:
347  static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_ip_address_;
348  private:
349  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_;
350  ::goby::middleware::protobuf::AppConfig* app_;
351  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
352  ::PROTOBUF_NAMESPACE_ID::uint32 udp_port_;
353  bool bind_;
354  ::PROTOBUF_NAMESPACE_ID::uint32 src_modem_id_;
355  ::PROTOBUF_NAMESPACE_ID::uint32 dest_modem_id_;
357 };
358 // ===================================================================
359 
360 
361 // ===================================================================
362 
363 #ifdef __GNUC__
364  #pragma GCC diagnostic push
365  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
366 #endif // __GNUC__
367 // MoshRelayConfig
368 
369 // optional .goby.middleware.protobuf.AppConfig app = 1;
370 inline bool MoshRelayConfig::_internal_has_app() const {
371  bool value = (_has_bits_[0] & 0x00000002u) != 0;
372  PROTOBUF_ASSUME(!value || app_ != nullptr);
373  return value;
374 }
375 inline bool MoshRelayConfig::has_app() const {
376  return _internal_has_app();
377 }
378 inline const ::goby::middleware::protobuf::AppConfig& MoshRelayConfig::_internal_app() const {
379  const ::goby::middleware::protobuf::AppConfig* p = app_;
380  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
382 }
383 inline const ::goby::middleware::protobuf::AppConfig& MoshRelayConfig::app() const {
384  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
385  return _internal_app();
386 }
387 inline void MoshRelayConfig::unsafe_arena_set_allocated_app(
388  ::goby::middleware::protobuf::AppConfig* app) {
389  if (GetArena() == nullptr) {
390  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
391  }
392  app_ = app;
393  if (app) {
394  _has_bits_[0] |= 0x00000002u;
395  } else {
396  _has_bits_[0] &= ~0x00000002u;
397  }
398  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
399 }
400 inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::release_app() {
401  auto temp = unsafe_arena_release_app();
402  if (GetArena() != nullptr) {
403  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
404  }
405  return temp;
406 }
407 inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::unsafe_arena_release_app() {
408  // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
409  _has_bits_[0] &= ~0x00000002u;
410  ::goby::middleware::protobuf::AppConfig* temp = app_;
411  app_ = nullptr;
412  return temp;
413 }
414 inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::_internal_mutable_app() {
415  _has_bits_[0] |= 0x00000002u;
416  if (app_ == nullptr) {
417  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
418  app_ = p;
419  }
420  return app_;
421 }
422 inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::mutable_app() {
423  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
424  return _internal_mutable_app();
425 }
426 inline void MoshRelayConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
427  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
428  if (message_arena == nullptr) {
429  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
430  }
431  if (app) {
432  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
433  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
434  if (message_arena != submessage_arena) {
435  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
436  message_arena, app, submessage_arena);
437  }
438  _has_bits_[0] |= 0x00000002u;
439  } else {
440  _has_bits_[0] &= ~0x00000002u;
441  }
442  app_ = app;
443  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
444 }
445 
446 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
447 inline bool MoshRelayConfig::_internal_has_interprocess() const {
448  bool value = (_has_bits_[0] & 0x00000004u) != 0;
449  PROTOBUF_ASSUME(!value || interprocess_ != nullptr);
450  return value;
451 }
452 inline bool MoshRelayConfig::has_interprocess() const {
453  return _internal_has_interprocess();
454 }
455 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MoshRelayConfig::_internal_interprocess() const {
456  const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
457  return p != nullptr ? *p : *reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*>(
459 }
460 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MoshRelayConfig::interprocess() const {
461  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
462  return _internal_interprocess();
463 }
464 inline void MoshRelayConfig::unsafe_arena_set_allocated_interprocess(
465  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
466  if (GetArena() == nullptr) {
467  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
468  }
469  interprocess_ = interprocess;
470  if (interprocess) {
471  _has_bits_[0] |= 0x00000004u;
472  } else {
473  _has_bits_[0] &= ~0x00000004u;
474  }
475  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
476 }
477 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::release_interprocess() {
478  auto temp = unsafe_arena_release_interprocess();
479  if (GetArena() != nullptr) {
480  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
481  }
482  return temp;
483 }
484 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::unsafe_arena_release_interprocess() {
485  // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
486  _has_bits_[0] &= ~0x00000004u;
487  ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
488  interprocess_ = nullptr;
489  return temp;
490 }
491 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::_internal_mutable_interprocess() {
492  _has_bits_[0] |= 0x00000004u;
493  if (interprocess_ == nullptr) {
494  auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
495  interprocess_ = p;
496  }
497  return interprocess_;
498 }
499 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::mutable_interprocess() {
500  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
501  return _internal_mutable_interprocess();
502 }
503 inline void MoshRelayConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
504  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
505  if (message_arena == nullptr) {
506  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
507  }
508  if (interprocess) {
509  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
510  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess)->GetArena();
511  if (message_arena != submessage_arena) {
512  interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
513  message_arena, interprocess, submessage_arena);
514  }
515  _has_bits_[0] |= 0x00000004u;
516  } else {
517  _has_bits_[0] &= ~0x00000004u;
518  }
519  interprocess_ = interprocess;
520  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
521 }
522 
523 // optional string ip_address = 3 [default = "127.0.0.1"];
524 inline bool MoshRelayConfig::_internal_has_ip_address() const {
525  bool value = (_has_bits_[0] & 0x00000001u) != 0;
526  return value;
527 }
528 inline bool MoshRelayConfig::has_ip_address() const {
529  return _internal_has_ip_address();
530 }
531 inline void MoshRelayConfig::clear_ip_address() {
532  ip_address_.ClearToDefault(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), GetArena());
533  _has_bits_[0] &= ~0x00000001u;
534 }
535 inline const std::string& MoshRelayConfig::ip_address() const {
536  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
537  return _internal_ip_address();
538 }
539 inline void MoshRelayConfig::set_ip_address(const std::string& value) {
540  _internal_set_ip_address(value);
541  // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
542 }
543 inline std::string* MoshRelayConfig::mutable_ip_address() {
544  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
545  return _internal_mutable_ip_address();
546 }
547 inline const std::string& MoshRelayConfig::_internal_ip_address() const {
548  return ip_address_.Get();
549 }
550 inline void MoshRelayConfig::_internal_set_ip_address(const std::string& value) {
551  _has_bits_[0] |= 0x00000001u;
552  ip_address_.Set(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), value, GetArena());
553 }
554 inline void MoshRelayConfig::set_ip_address(std::string&& value) {
555  _has_bits_[0] |= 0x00000001u;
556  ip_address_.Set(
557  &::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), ::std::move(value), GetArena());
558  // @@protoc_insertion_point(field_set_rvalue:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
559 }
560 inline void MoshRelayConfig::set_ip_address(const char* value) {
561  GOOGLE_DCHECK(value != nullptr);
562  _has_bits_[0] |= 0x00000001u;
563  ip_address_.Set(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), ::std::string(value),
564  GetArena());
565  // @@protoc_insertion_point(field_set_char:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
566 }
567 inline void MoshRelayConfig::set_ip_address(const char* value,
568  size_t size) {
569  _has_bits_[0] |= 0x00000001u;
570  ip_address_.Set(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), ::std::string(
571  reinterpret_cast<const char*>(value), size), GetArena());
572  // @@protoc_insertion_point(field_set_pointer:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
573 }
574 inline std::string* MoshRelayConfig::_internal_mutable_ip_address() {
575  _has_bits_[0] |= 0x00000001u;
576  return ip_address_.Mutable(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), GetArena());
577 }
578 inline std::string* MoshRelayConfig::release_ip_address() {
579  // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
580  if (!_internal_has_ip_address()) {
581  return nullptr;
582  }
583  _has_bits_[0] &= ~0x00000001u;
584  return ip_address_.ReleaseNonDefault(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), GetArena());
585 }
586 inline void MoshRelayConfig::set_allocated_ip_address(std::string* ip_address) {
587  if (ip_address != nullptr) {
588  _has_bits_[0] |= 0x00000001u;
589  } else {
590  _has_bits_[0] &= ~0x00000001u;
591  }
592  ip_address_.SetAllocated(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(), ip_address,
593  GetArena());
594  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
595 }
596 inline std::string* MoshRelayConfig::unsafe_arena_release_ip_address() {
597  // @@protoc_insertion_point(field_unsafe_arena_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
598  GOOGLE_DCHECK(GetArena() != nullptr);
599  _has_bits_[0] &= ~0x00000001u;
600  return ip_address_.UnsafeArenaRelease(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(),
601  GetArena());
602 }
603 inline void MoshRelayConfig::unsafe_arena_set_allocated_ip_address(
604  std::string* ip_address) {
605  GOOGLE_DCHECK(GetArena() != nullptr);
606  if (ip_address != nullptr) {
607  _has_bits_[0] |= 0x00000001u;
608  } else {
609  _has_bits_[0] &= ~0x00000001u;
610  }
611  ip_address_.UnsafeArenaSetAllocated(&::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::_i_give_permission_to_break_this_code_default_ip_address_.get(),
612  ip_address, GetArena());
613  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
614 }
615 
616 // optional uint32 udp_port = 4;
617 inline bool MoshRelayConfig::_internal_has_udp_port() const {
618  bool value = (_has_bits_[0] & 0x00000008u) != 0;
619  return value;
620 }
621 inline bool MoshRelayConfig::has_udp_port() const {
622  return _internal_has_udp_port();
623 }
624 inline void MoshRelayConfig::clear_udp_port() {
625  udp_port_ = 0u;
626  _has_bits_[0] &= ~0x00000008u;
627 }
628 inline ::PROTOBUF_NAMESPACE_ID::uint32 MoshRelayConfig::_internal_udp_port() const {
629  return udp_port_;
630 }
631 inline ::PROTOBUF_NAMESPACE_ID::uint32 MoshRelayConfig::udp_port() const {
632  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.udp_port)
633  return _internal_udp_port();
634 }
635 inline void MoshRelayConfig::_internal_set_udp_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
636  _has_bits_[0] |= 0x00000008u;
637  udp_port_ = value;
638 }
639 inline void MoshRelayConfig::set_udp_port(::PROTOBUF_NAMESPACE_ID::uint32 value) {
640  _internal_set_udp_port(value);
641  // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.udp_port)
642 }
643 
644 // optional bool bind = 5;
645 inline bool MoshRelayConfig::_internal_has_bind() const {
646  bool value = (_has_bits_[0] & 0x00000010u) != 0;
647  return value;
648 }
649 inline bool MoshRelayConfig::has_bind() const {
650  return _internal_has_bind();
651 }
652 inline void MoshRelayConfig::clear_bind() {
653  bind_ = false;
654  _has_bits_[0] &= ~0x00000010u;
655 }
656 inline bool MoshRelayConfig::_internal_bind() const {
657  return bind_;
658 }
659 inline bool MoshRelayConfig::bind() const {
660  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.bind)
661  return _internal_bind();
662 }
663 inline void MoshRelayConfig::_internal_set_bind(bool value) {
664  _has_bits_[0] |= 0x00000010u;
665  bind_ = value;
666 }
667 inline void MoshRelayConfig::set_bind(bool value) {
668  _internal_set_bind(value);
669  // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.bind)
670 }
671 
672 // required uint32 src_modem_id = 6;
673 inline bool MoshRelayConfig::_internal_has_src_modem_id() const {
674  bool value = (_has_bits_[0] & 0x00000020u) != 0;
675  return value;
676 }
677 inline bool MoshRelayConfig::has_src_modem_id() const {
678  return _internal_has_src_modem_id();
679 }
680 inline void MoshRelayConfig::clear_src_modem_id() {
681  src_modem_id_ = 0u;
682  _has_bits_[0] &= ~0x00000020u;
683 }
684 inline ::PROTOBUF_NAMESPACE_ID::uint32 MoshRelayConfig::_internal_src_modem_id() const {
685  return src_modem_id_;
686 }
687 inline ::PROTOBUF_NAMESPACE_ID::uint32 MoshRelayConfig::src_modem_id() const {
688  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.src_modem_id)
689  return _internal_src_modem_id();
690 }
691 inline void MoshRelayConfig::_internal_set_src_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
692  _has_bits_[0] |= 0x00000020u;
693  src_modem_id_ = value;
694 }
695 inline void MoshRelayConfig::set_src_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
696  _internal_set_src_modem_id(value);
697  // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.src_modem_id)
698 }
699 
700 // required uint32 dest_modem_id = 7;
701 inline bool MoshRelayConfig::_internal_has_dest_modem_id() const {
702  bool value = (_has_bits_[0] & 0x00000040u) != 0;
703  return value;
704 }
705 inline bool MoshRelayConfig::has_dest_modem_id() const {
706  return _internal_has_dest_modem_id();
707 }
708 inline void MoshRelayConfig::clear_dest_modem_id() {
709  dest_modem_id_ = 0u;
710  _has_bits_[0] &= ~0x00000040u;
711 }
712 inline ::PROTOBUF_NAMESPACE_ID::uint32 MoshRelayConfig::_internal_dest_modem_id() const {
713  return dest_modem_id_;
714 }
715 inline ::PROTOBUF_NAMESPACE_ID::uint32 MoshRelayConfig::dest_modem_id() const {
716  // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.dest_modem_id)
717  return _internal_dest_modem_id();
718 }
719 inline void MoshRelayConfig::_internal_set_dest_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
720  _has_bits_[0] |= 0x00000040u;
721  dest_modem_id_ = value;
722 }
723 inline void MoshRelayConfig::set_dest_modem_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
724  _internal_set_dest_modem_id(value);
725  // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.dest_modem_id)
726 }
727 
728 #ifdef __GNUC__
729  #pragma GCC diagnostic pop
730 #endif // __GNUC__
731 
732 // @@protoc_insertion_point(namespace_scope)
733 
734 } // namespace protobuf
735 } // namespace acomms
736 } // namespace zeromq
737 } // namespace apps
738 } // namespace goby
739 
740 // @@protoc_insertion_point(global_scope)
741 
742 #include <google/protobuf/port_undef.inc>
743 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
void CopyFrom(const MoshRelayConfig &from)
friend void swap(MoshRelayConfig &a, MoshRelayConfig &b)
static const MoshRelayConfig & default_instance()
static const MoshRelayConfig * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_allocated_ip_address(std::string *ip_address)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void set_ip_address(const char *value, size_t size)
MoshRelayConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
MoshRelayConfig & operator=(const MoshRelayConfig &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
MoshRelayConfig & operator=(MoshRelayConfig &&from) noexcept
void MergeFrom(const MoshRelayConfig &from)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
@ 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
void bind(ModemDriverBase &driver, QueueManager &queue_manager)
binds the driver link-layer callbacks to the QueueManager
Definition: bind.h:45
MoshRelayConfigDefaultTypeInternal _MoshRelayConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
std::uint32_t uint32
#define ByteSizeLong
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)