Goby3  3.1.5
2024.05.14
mavlink_gateway_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/mavlink_gateway_config.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_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/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
41 #include <boost/units/quantity.hpp>
42 #include <boost/units/absolute.hpp>
43 #include <boost/units/dimensionless_type.hpp>
44 #include <boost/units/make_scaled_unit.hpp>
45 // @@protoc_insertion_point(includes)
46 #include <google/protobuf/port_def.inc>
47 #define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
48 PROTOBUF_NAMESPACE_OPEN
49 namespace internal {
50 class AnyMetadata;
51 } // namespace internal
52 PROTOBUF_NAMESPACE_CLOSE
53 
54 // Internal implementation detail -- do not use these members.
56  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
63  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
65 };
66 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto;
67 namespace goby {
68 namespace apps {
69 namespace zeromq {
70 namespace protobuf {
71 class MAVLinkGatewayConfig;
72 class MAVLinkGatewayConfigDefaultTypeInternal;
73 extern MAVLinkGatewayConfigDefaultTypeInternal _MAVLinkGatewayConfig_default_instance_;
74 } // namespace protobuf
75 } // namespace zeromq
76 } // namespace apps
77 } // namespace goby
78 PROTOBUF_NAMESPACE_OPEN
79 template<> ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig>(Arena*);
80 PROTOBUF_NAMESPACE_CLOSE
81 namespace goby {
82 namespace apps {
83 namespace zeromq {
84 namespace protobuf {
85 
89 };
94 
95 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MAVLinkGatewayConfig_ConnectionType_descriptor();
96 template<typename T>
97 inline const std::string& MAVLinkGatewayConfig_ConnectionType_Name(T enum_t_value) {
98  static_assert(::std::is_same<T, MAVLinkGatewayConfig_ConnectionType>::value ||
99  ::std::is_integral<T>::value,
100  "Incorrect type passed to function MAVLinkGatewayConfig_ConnectionType_Name.");
101  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
103 }
105  const std::string& name, MAVLinkGatewayConfig_ConnectionType* value) {
106  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MAVLinkGatewayConfig_ConnectionType>(
108 }
109 // ===================================================================
110 
111 class MAVLinkGatewayConfig PROTOBUF_FINAL :
112  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig) */ {
113  public:
114  inline MAVLinkGatewayConfig() : MAVLinkGatewayConfig(nullptr) {};
116 
117  MAVLinkGatewayConfig(const MAVLinkGatewayConfig& from);
118  MAVLinkGatewayConfig(MAVLinkGatewayConfig&& from) noexcept
119  : MAVLinkGatewayConfig() {
120  *this = ::std::move(from);
121  }
122 
123  inline MAVLinkGatewayConfig& operator=(const MAVLinkGatewayConfig& from) {
124  CopyFrom(from);
125  return *this;
126  }
127  inline MAVLinkGatewayConfig& operator=(MAVLinkGatewayConfig&& from) noexcept {
128  if (GetArena() == from.GetArena()) {
129  if (this != &from) InternalSwap(&from);
130  } else {
131  CopyFrom(from);
132  }
133  return *this;
134  }
135 
136  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
137  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
138  }
139  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
140  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
141  }
142 
143  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
144  return GetDescriptor();
145  }
146  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
147  return GetMetadataStatic().descriptor;
148  }
149  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
150  return GetMetadataStatic().reflection;
151  }
152  static const MAVLinkGatewayConfig& default_instance();
153 
154  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
155  static inline const MAVLinkGatewayConfig* internal_default_instance() {
156  return reinterpret_cast<const MAVLinkGatewayConfig*>(
158  }
159  static constexpr int kIndexInFileMessages =
160  0;
161 
162  friend void swap(MAVLinkGatewayConfig& a, MAVLinkGatewayConfig& b) {
163  a.Swap(&b);
164  }
165  inline void Swap(MAVLinkGatewayConfig* other) {
166  if (other == this) return;
167  if (GetArena() == other->GetArena()) {
168  InternalSwap(other);
169  } else {
170  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
171  }
172  }
173  void UnsafeArenaSwap(MAVLinkGatewayConfig* other) {
174  if (other == this) return;
175  GOOGLE_DCHECK(GetArena() == other->GetArena());
176  InternalSwap(other);
177  }
178 
179  // implements Message ----------------------------------------------
180 
181  inline MAVLinkGatewayConfig* New() const final {
182  return CreateMaybeMessage<MAVLinkGatewayConfig>(nullptr);
183  }
184 
185  MAVLinkGatewayConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
186  return CreateMaybeMessage<MAVLinkGatewayConfig>(arena);
187  }
188  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
189  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
190  void CopyFrom(const MAVLinkGatewayConfig& from);
191  void MergeFrom(const MAVLinkGatewayConfig& from);
192  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
193  bool IsInitialized() const final;
194 
195  size_t ByteSizeLong() const final;
196  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
197  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
198  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
199  int GetCachedSize() const final { return _cached_size_.Get(); }
200 
201  private:
202  inline void SharedCtor();
203  inline void SharedDtor();
204  void SetCachedSize(int size) const final;
205  void InternalSwap(MAVLinkGatewayConfig* other);
206  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208  return "goby.apps.zeromq.protobuf.MAVLinkGatewayConfig";
209  }
210  protected:
211  explicit MAVLinkGatewayConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena);
212  private:
213  static void ArenaDtor(void* object);
214  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
215  public:
216 
217  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
218  private:
219  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
220  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto);
222  }
223 
224  public:
225 
226  // nested types ----------------------------------------------------
227 
229  static constexpr ConnectionType CONNECTION_SERIAL =
231  static constexpr ConnectionType CONNECTION_UDP =
233  static inline bool ConnectionType_IsValid(int value) {
235  }
236  static constexpr ConnectionType ConnectionType_MIN =
238  static constexpr ConnectionType ConnectionType_MAX =
240  static constexpr int ConnectionType_ARRAYSIZE =
242  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
245  }
246  template<typename T>
247  static inline const std::string& ConnectionType_Name(T enum_t_value) {
248  static_assert(::std::is_same<T, ConnectionType>::value ||
249  ::std::is_integral<T>::value,
250  "Incorrect type passed to function ConnectionType_Name.");
251  return MAVLinkGatewayConfig_ConnectionType_Name(enum_t_value);
252  }
253  static inline bool ConnectionType_Parse(const std::string& name,
254  ConnectionType* value) {
255  return MAVLinkGatewayConfig_ConnectionType_Parse(name, value);
256  }
257 
258  // accessors -------------------------------------------------------
259 
260  enum : int {
261  kAppFieldNumber = 1,
262  kInterprocessFieldNumber = 2,
263  kSerialFieldNumber = 10,
264  kUdpFieldNumber = 11,
265  kConnectionTypeFieldNumber = 5,
266  };
267  // optional .goby.middleware.protobuf.AppConfig app = 1;
268  bool has_app() const;
269  private:
270  bool _internal_has_app() const;
271  public:
272  void clear_app();
273  const ::goby::middleware::protobuf::AppConfig& app() const;
274  ::goby::middleware::protobuf::AppConfig* release_app();
275  ::goby::middleware::protobuf::AppConfig* mutable_app();
276  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
277  private:
278  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
279  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
280  public:
282  ::goby::middleware::protobuf::AppConfig* app);
283  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
284 
285  // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
286  bool has_interprocess() const;
287  private:
288  bool _internal_has_interprocess() const;
289  public:
291  const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
292  ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
293  ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
294  void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
295  private:
296  const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
297  ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
298  public:
300  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
301  ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
302 
303  // optional .goby.middleware.protobuf.SerialConfig serial = 10;
304  bool has_serial() const;
305  private:
306  bool _internal_has_serial() const;
307  public:
308  void clear_serial();
309  const ::goby::middleware::protobuf::SerialConfig& serial() const;
310  ::goby::middleware::protobuf::SerialConfig* release_serial();
311  ::goby::middleware::protobuf::SerialConfig* mutable_serial();
312  void set_allocated_serial(::goby::middleware::protobuf::SerialConfig* serial);
313  private:
314  const ::goby::middleware::protobuf::SerialConfig& _internal_serial() const;
315  ::goby::middleware::protobuf::SerialConfig* _internal_mutable_serial();
316  public:
318  ::goby::middleware::protobuf::SerialConfig* serial);
319  ::goby::middleware::protobuf::SerialConfig* unsafe_arena_release_serial();
320 
321  // optional .goby.middleware.protobuf.UDPPointToPointConfig udp = 11;
322  bool has_udp() const;
323  private:
324  bool _internal_has_udp() const;
325  public:
326  void clear_udp();
327  const ::goby::middleware::protobuf::UDPPointToPointConfig& udp() const;
328  ::goby::middleware::protobuf::UDPPointToPointConfig* release_udp();
329  ::goby::middleware::protobuf::UDPPointToPointConfig* mutable_udp();
330  void set_allocated_udp(::goby::middleware::protobuf::UDPPointToPointConfig* udp);
331  private:
332  const ::goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp() const;
333  ::goby::middleware::protobuf::UDPPointToPointConfig* _internal_mutable_udp();
334  public:
336  ::goby::middleware::protobuf::UDPPointToPointConfig* udp);
337  ::goby::middleware::protobuf::UDPPointToPointConfig* unsafe_arena_release_udp();
338 
339  // optional .goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.ConnectionType connection_type = 5 [default = CONNECTION_SERIAL];
340  bool has_connection_type() const;
341  private:
342  bool _internal_has_connection_type() const;
343  public:
347  private:
349  void _internal_set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value);
350  public:
351 
352  // @@protoc_insertion_point(class_scope:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig)
353  private:
354  class _Internal;
355 
356  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
357  typedef void InternalArenaConstructable_;
358  typedef void DestructorSkippable_;
359  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
360  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
361  ::goby::middleware::protobuf::AppConfig* app_;
362  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
363  ::goby::middleware::protobuf::SerialConfig* serial_;
364  ::goby::middleware::protobuf::UDPPointToPointConfig* udp_;
365  int connection_type_;
366  friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto;
367 };
368 // ===================================================================
369 
370 
371 // ===================================================================
372 
373 #ifdef __GNUC__
374  #pragma GCC diagnostic push
375  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
376 #endif // __GNUC__
377 // MAVLinkGatewayConfig
378 
379 // optional .goby.middleware.protobuf.AppConfig app = 1;
380 inline bool MAVLinkGatewayConfig::_internal_has_app() const {
381  bool value = (_has_bits_[0] & 0x00000001u) != 0;
382  PROTOBUF_ASSUME(!value || app_ != nullptr);
383  return value;
384 }
385 inline bool MAVLinkGatewayConfig::has_app() const {
386  return _internal_has_app();
387 }
388 inline const ::goby::middleware::protobuf::AppConfig& MAVLinkGatewayConfig::_internal_app() const {
389  const ::goby::middleware::protobuf::AppConfig* p = app_;
390  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
392 }
393 inline const ::goby::middleware::protobuf::AppConfig& MAVLinkGatewayConfig::app() const {
394  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
395  return _internal_app();
396 }
397 inline void MAVLinkGatewayConfig::unsafe_arena_set_allocated_app(
398  ::goby::middleware::protobuf::AppConfig* app) {
399  if (GetArena() == nullptr) {
400  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
401  }
402  app_ = app;
403  if (app) {
404  _has_bits_[0] |= 0x00000001u;
405  } else {
406  _has_bits_[0] &= ~0x00000001u;
407  }
408  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
409 }
410 inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::release_app() {
411  auto temp = unsafe_arena_release_app();
412  if (GetArena() != nullptr) {
413  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
414  }
415  return temp;
416 }
417 inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::unsafe_arena_release_app() {
418  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
419  _has_bits_[0] &= ~0x00000001u;
420  ::goby::middleware::protobuf::AppConfig* temp = app_;
421  app_ = nullptr;
422  return temp;
423 }
424 inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::_internal_mutable_app() {
425  _has_bits_[0] |= 0x00000001u;
426  if (app_ == nullptr) {
427  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
428  app_ = p;
429  }
430  return app_;
431 }
432 inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::mutable_app() {
433  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
434  return _internal_mutable_app();
435 }
436 inline void MAVLinkGatewayConfig::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
437  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
438  if (message_arena == nullptr) {
439  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
440  }
441  if (app) {
442  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
443  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
444  if (message_arena != submessage_arena) {
445  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
446  message_arena, app, submessage_arena);
447  }
448  _has_bits_[0] |= 0x00000001u;
449  } else {
450  _has_bits_[0] &= ~0x00000001u;
451  }
452  app_ = app;
453  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
454 }
455 
456 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
457 inline bool MAVLinkGatewayConfig::_internal_has_interprocess() const {
458  bool value = (_has_bits_[0] & 0x00000002u) != 0;
459  PROTOBUF_ASSUME(!value || interprocess_ != nullptr);
460  return value;
461 }
462 inline bool MAVLinkGatewayConfig::has_interprocess() const {
463  return _internal_has_interprocess();
464 }
465 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MAVLinkGatewayConfig::_internal_interprocess() const {
466  const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
467  return p != nullptr ? *p : *reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*>(
469 }
470 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MAVLinkGatewayConfig::interprocess() const {
471  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
472  return _internal_interprocess();
473 }
474 inline void MAVLinkGatewayConfig::unsafe_arena_set_allocated_interprocess(
475  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
476  if (GetArena() == nullptr) {
477  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
478  }
479  interprocess_ = interprocess;
480  if (interprocess) {
481  _has_bits_[0] |= 0x00000002u;
482  } else {
483  _has_bits_[0] &= ~0x00000002u;
484  }
485  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
486 }
487 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::release_interprocess() {
488  auto temp = unsafe_arena_release_interprocess();
489  if (GetArena() != nullptr) {
490  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
491  }
492  return temp;
493 }
494 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::unsafe_arena_release_interprocess() {
495  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
496  _has_bits_[0] &= ~0x00000002u;
497  ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
498  interprocess_ = nullptr;
499  return temp;
500 }
501 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::_internal_mutable_interprocess() {
502  _has_bits_[0] |= 0x00000002u;
503  if (interprocess_ == nullptr) {
504  auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
505  interprocess_ = p;
506  }
507  return interprocess_;
508 }
509 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::mutable_interprocess() {
510  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
511  return _internal_mutable_interprocess();
512 }
513 inline void MAVLinkGatewayConfig::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
514  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
515  if (message_arena == nullptr) {
516  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
517  }
518  if (interprocess) {
519  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
520  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess)->GetArena();
521  if (message_arena != submessage_arena) {
522  interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
523  message_arena, interprocess, submessage_arena);
524  }
525  _has_bits_[0] |= 0x00000002u;
526  } else {
527  _has_bits_[0] &= ~0x00000002u;
528  }
529  interprocess_ = interprocess;
530  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
531 }
532 
533 // optional .goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.ConnectionType connection_type = 5 [default = CONNECTION_SERIAL];
534 inline bool MAVLinkGatewayConfig::_internal_has_connection_type() const {
535  bool value = (_has_bits_[0] & 0x00000010u) != 0;
536  return value;
537 }
538 inline bool MAVLinkGatewayConfig::has_connection_type() const {
539  return _internal_has_connection_type();
540 }
541 inline void MAVLinkGatewayConfig::clear_connection_type() {
542  connection_type_ = 1;
543  _has_bits_[0] &= ~0x00000010u;
544 }
545 inline ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType MAVLinkGatewayConfig::_internal_connection_type() const {
546  return static_cast< ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType >(connection_type_);
547 }
548 inline ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType MAVLinkGatewayConfig::connection_type() const {
549  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.connection_type)
550  return _internal_connection_type();
551 }
552 inline void MAVLinkGatewayConfig::_internal_set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value) {
554  _has_bits_[0] |= 0x00000010u;
555  connection_type_ = value;
556 }
557 inline void MAVLinkGatewayConfig::set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value) {
558  _internal_set_connection_type(value);
559  // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.connection_type)
560 }
561 
562 // optional .goby.middleware.protobuf.SerialConfig serial = 10;
563 inline bool MAVLinkGatewayConfig::_internal_has_serial() const {
564  bool value = (_has_bits_[0] & 0x00000004u) != 0;
565  PROTOBUF_ASSUME(!value || serial_ != nullptr);
566  return value;
567 }
568 inline bool MAVLinkGatewayConfig::has_serial() const {
569  return _internal_has_serial();
570 }
571 inline const ::goby::middleware::protobuf::SerialConfig& MAVLinkGatewayConfig::_internal_serial() const {
572  const ::goby::middleware::protobuf::SerialConfig* p = serial_;
573  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::SerialConfig*>(
575 }
576 inline const ::goby::middleware::protobuf::SerialConfig& MAVLinkGatewayConfig::serial() const {
577  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
578  return _internal_serial();
579 }
580 inline void MAVLinkGatewayConfig::unsafe_arena_set_allocated_serial(
581  ::goby::middleware::protobuf::SerialConfig* serial) {
582  if (GetArena() == nullptr) {
583  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(serial_);
584  }
585  serial_ = serial;
586  if (serial) {
587  _has_bits_[0] |= 0x00000004u;
588  } else {
589  _has_bits_[0] &= ~0x00000004u;
590  }
591  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
592 }
593 inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::release_serial() {
594  auto temp = unsafe_arena_release_serial();
595  if (GetArena() != nullptr) {
596  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
597  }
598  return temp;
599 }
600 inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::unsafe_arena_release_serial() {
601  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
602  _has_bits_[0] &= ~0x00000004u;
603  ::goby::middleware::protobuf::SerialConfig* temp = serial_;
604  serial_ = nullptr;
605  return temp;
606 }
607 inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::_internal_mutable_serial() {
608  _has_bits_[0] |= 0x00000004u;
609  if (serial_ == nullptr) {
610  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig>(GetArena());
611  serial_ = p;
612  }
613  return serial_;
614 }
615 inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::mutable_serial() {
616  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
617  return _internal_mutable_serial();
618 }
619 inline void MAVLinkGatewayConfig::set_allocated_serial(::goby::middleware::protobuf::SerialConfig* serial) {
620  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
621  if (message_arena == nullptr) {
622  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(serial_);
623  }
624  if (serial) {
625  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
626  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(serial)->GetArena();
627  if (message_arena != submessage_arena) {
628  serial = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
629  message_arena, serial, submessage_arena);
630  }
631  _has_bits_[0] |= 0x00000004u;
632  } else {
633  _has_bits_[0] &= ~0x00000004u;
634  }
635  serial_ = serial;
636  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
637 }
638 
639 // optional .goby.middleware.protobuf.UDPPointToPointConfig udp = 11;
640 inline bool MAVLinkGatewayConfig::_internal_has_udp() const {
641  bool value = (_has_bits_[0] & 0x00000008u) != 0;
642  PROTOBUF_ASSUME(!value || udp_ != nullptr);
643  return value;
644 }
645 inline bool MAVLinkGatewayConfig::has_udp() const {
646  return _internal_has_udp();
647 }
648 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& MAVLinkGatewayConfig::_internal_udp() const {
649  const ::goby::middleware::protobuf::UDPPointToPointConfig* p = udp_;
650  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig*>(
652 }
653 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& MAVLinkGatewayConfig::udp() const {
654  // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
655  return _internal_udp();
656 }
657 inline void MAVLinkGatewayConfig::unsafe_arena_set_allocated_udp(
658  ::goby::middleware::protobuf::UDPPointToPointConfig* udp) {
659  if (GetArena() == nullptr) {
660  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(udp_);
661  }
662  udp_ = udp;
663  if (udp) {
664  _has_bits_[0] |= 0x00000008u;
665  } else {
666  _has_bits_[0] &= ~0x00000008u;
667  }
668  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
669 }
670 inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::release_udp() {
671  auto temp = unsafe_arena_release_udp();
672  if (GetArena() != nullptr) {
673  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
674  }
675  return temp;
676 }
677 inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::unsafe_arena_release_udp() {
678  // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
679  _has_bits_[0] &= ~0x00000008u;
680  ::goby::middleware::protobuf::UDPPointToPointConfig* temp = udp_;
681  udp_ = nullptr;
682  return temp;
683 }
684 inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::_internal_mutable_udp() {
685  _has_bits_[0] |= 0x00000008u;
686  if (udp_ == nullptr) {
687  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArena());
688  udp_ = p;
689  }
690  return udp_;
691 }
692 inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::mutable_udp() {
693  // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
694  return _internal_mutable_udp();
695 }
696 inline void MAVLinkGatewayConfig::set_allocated_udp(::goby::middleware::protobuf::UDPPointToPointConfig* udp) {
697  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
698  if (message_arena == nullptr) {
699  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(udp_);
700  }
701  if (udp) {
702  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
703  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(udp)->GetArena();
704  if (message_arena != submessage_arena) {
705  udp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
706  message_arena, udp, submessage_arena);
707  }
708  _has_bits_[0] |= 0x00000008u;
709  } else {
710  _has_bits_[0] &= ~0x00000008u;
711  }
712  udp_ = udp;
713  // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
714 }
715 
716 #ifdef __GNUC__
717  #pragma GCC diagnostic pop
718 #endif // __GNUC__
719 
720 // @@protoc_insertion_point(namespace_scope)
721 
722 } // namespace protobuf
723 } // namespace zeromq
724 } // namespace apps
725 } // namespace goby
726 
727 PROTOBUF_NAMESPACE_OPEN
728 
729 template <> struct is_proto_enum< ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType> : ::std::true_type {};
730 template <>
731 inline const EnumDescriptor* GetEnumDescriptor< ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType>() {
733 }
734 
735 PROTOBUF_NAMESPACE_CLOSE
736 
737 // @@protoc_insertion_point(global_scope)
738 
739 #include <google/protobuf/port_undef.inc>
740 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
MAVLinkGatewayConfig(MAVLinkGatewayConfig &&from) noexcept
MAVLinkGatewayConfig & operator=(MAVLinkGatewayConfig &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void unsafe_arena_set_allocated_udp(::goby::middleware::protobuf::UDPPointToPointConfig *udp)
::goby::middleware::protobuf::SerialConfig * mutable_serial()
static const MAVLinkGatewayConfig * internal_default_instance()
void set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value)
::goby::middleware::protobuf::AppConfig * mutable_app()
::goby::middleware::protobuf::UDPPointToPointConfig * unsafe_arena_release_udp()
void set_allocated_serial(::goby::middleware::protobuf::SerialConfig *serial)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const MAVLinkGatewayConfig &from)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
MAVLinkGatewayConfig(const MAVLinkGatewayConfig &from)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
friend void swap(MAVLinkGatewayConfig &a, MAVLinkGatewayConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConnectionType_descriptor()
::goby::middleware::protobuf::UDPPointToPointConfig * release_udp()
const ::goby::middleware::protobuf::SerialConfig & serial() const
static const std::string & ConnectionType_Name(T enum_t_value)
::goby::middleware::protobuf::SerialConfig * release_serial()
static const MAVLinkGatewayConfig & default_instance()
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
static bool ConnectionType_Parse(const std::string &name, ConnectionType *value)
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
void unsafe_arena_set_allocated_serial(::goby::middleware::protobuf::SerialConfig *serial)
void MergeFrom(const MAVLinkGatewayConfig &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType connection_type() const
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
const ::goby::middleware::protobuf::UDPPointToPointConfig & udp() const
MAVLinkGatewayConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
const ::goby::middleware::protobuf::AppConfig & app() const
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
MAVLinkGatewayConfig_ConnectionType ConnectionType
::goby::middleware::protobuf::UDPPointToPointConfig * mutable_udp()
::goby::middleware::protobuf::SerialConfig * unsafe_arena_release_serial()
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
MAVLinkGatewayConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_allocated_udp(::goby::middleware::protobuf::UDPPointToPointConfig *udp)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
MAVLinkGatewayConfig & operator=(const MAVLinkGatewayConfig &from)
::goby::middleware::protobuf::AppConfig * release_app()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
@ value
the parser finished reading a JSON value
bool MAVLinkGatewayConfig_ConnectionType_IsValid(int value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MAVLinkGatewayConfig_ConnectionType_descriptor()
constexpr int MAVLinkGatewayConfig_ConnectionType_ConnectionType_ARRAYSIZE
constexpr MAVLinkGatewayConfig_ConnectionType MAVLinkGatewayConfig_ConnectionType_ConnectionType_MIN
constexpr MAVLinkGatewayConfig_ConnectionType MAVLinkGatewayConfig_ConnectionType_ConnectionType_MAX
const std::string & MAVLinkGatewayConfig_ConnectionType_Name(T enum_t_value)
MAVLinkGatewayConfigDefaultTypeInternal _MAVLinkGatewayConfig_default_instance_
bool MAVLinkGatewayConfig_ConnectionType_Parse(const std::string &name, MAVLinkGatewayConfig_ConnectionType *value)
UDPPointToPointConfigDefaultTypeInternal _UDPPointToPointConfig_default_instance_
SerialConfigDefaultTypeInternal _SerialConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
std::uint32_t uint32
#define ByteSizeLong