Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
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 < 3021000
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 3021012 < 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>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.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_2fmavlink_5fgateway_5fconfig_2eproto
46PROTOBUF_NAMESPACE_OPEN
47namespace internal {
48class AnyMetadata;
49} // namespace internal
50PROTOBUF_NAMESPACE_CLOSE
51
52// Internal implementation detail -- do not use these members.
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto;
57namespace goby {
58namespace apps {
59namespace zeromq {
60namespace protobuf {
61class MAVLinkGatewayConfig;
62struct MAVLinkGatewayConfigDefaultTypeInternal;
63extern MAVLinkGatewayConfigDefaultTypeInternal _MAVLinkGatewayConfig_default_instance_;
64} // namespace protobuf
65} // namespace zeromq
66} // namespace apps
67} // namespace goby
68PROTOBUF_NAMESPACE_OPEN
69template<> ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace apps {
73namespace zeromq {
74namespace protobuf {
75
84
85const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MAVLinkGatewayConfig_ConnectionType_descriptor();
86template<typename T>
87inline const std::string& MAVLinkGatewayConfig_ConnectionType_Name(T enum_t_value) {
88 static_assert(::std::is_same<T, MAVLinkGatewayConfig_ConnectionType>::value ||
89 ::std::is_integral<T>::value,
90 "Incorrect type passed to function MAVLinkGatewayConfig_ConnectionType_Name.");
91 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
93}
95 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MAVLinkGatewayConfig_ConnectionType* value) {
96 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MAVLinkGatewayConfig_ConnectionType>(
98}
99// ===================================================================
100
102 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig) */ {
103 public:
106 explicit PROTOBUF_CONSTEXPR MAVLinkGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
107
111 *this = ::std::move(from);
112 }
113
115 CopyFrom(from);
116 return *this;
117 }
119 if (this == &from) return *this;
120 if (GetOwningArena() == from.GetOwningArena()
121 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
122 && GetOwningArena() != nullptr
123 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
124 ) {
125 InternalSwap(&from);
126 } else {
127 CopyFrom(from);
128 }
129 return *this;
130 }
131
132 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
133 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
134 }
135 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
136 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
137 }
138
139 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
140 return GetDescriptor();
141 }
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
143 return default_instance().GetMetadata().descriptor;
144 }
145 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
146 return default_instance().GetMetadata().reflection;
147 }
152 return reinterpret_cast<const MAVLinkGatewayConfig*>(
154 }
155 static constexpr int kIndexInFileMessages =
156 0;
157
159 a.Swap(&b);
160 }
161 inline void Swap(MAVLinkGatewayConfig* other) {
162 if (other == this) return;
163 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
164 if (GetOwningArena() != nullptr &&
165 GetOwningArena() == other->GetOwningArena()) {
166 #else // PROTOBUF_FORCE_COPY_IN_SWAP
167 if (GetOwningArena() == other->GetOwningArena()) {
168 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
169 InternalSwap(other);
170 } else {
171 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
172 }
173 }
175 if (other == this) return;
176 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
177 InternalSwap(other);
178 }
179
180 // implements Message ----------------------------------------------
181
182 MAVLinkGatewayConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
183 return CreateMaybeMessage<MAVLinkGatewayConfig>(arena);
184 }
185 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
187 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
188 void MergeFrom( const MAVLinkGatewayConfig& from) {
189 MAVLinkGatewayConfig::MergeImpl(*this, from);
190 }
191 private:
192 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
193 public:
194 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
195 bool IsInitialized() const final;
196
197 size_t ByteSizeLong() const final;
198 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
200 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
201 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
202
203 private:
204 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
205 void SharedDtor();
206 void SetCachedSize(int size) const final;
207 void InternalSwap(MAVLinkGatewayConfig* other);
208
209 private:
210 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
211 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
212 return "goby.apps.zeromq.protobuf.MAVLinkGatewayConfig";
213 }
214 protected:
215 explicit MAVLinkGatewayConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
216 bool is_message_owned = false);
217 public:
218
219 static const ClassData _class_data_;
220 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
221
222 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
223
224 // nested types ----------------------------------------------------
225
231 static inline bool ConnectionType_IsValid(int value) {
233 }
238 static constexpr int ConnectionType_ARRAYSIZE =
240 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
244 template<typename T>
245 static inline const std::string& ConnectionType_Name(T enum_t_value) {
246 static_assert(::std::is_same<T, ConnectionType>::value ||
247 ::std::is_integral<T>::value,
248 "Incorrect type passed to function ConnectionType_Name.");
249 return MAVLinkGatewayConfig_ConnectionType_Name(enum_t_value);
250 }
251 static inline bool ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
252 ConnectionType* value) {
254 }
255
256 // accessors -------------------------------------------------------
257
258 enum : int {
264 };
265 // optional .goby.middleware.protobuf.AppConfig app = 1;
266 bool has_app() const;
267 private:
268 bool _internal_has_app() const;
269 public:
270 void clear_app();
271 const ::goby::middleware::protobuf::AppConfig& app() const;
272 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
275 private:
276 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
277 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
278 public:
282
283 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
284 bool has_interprocess() const;
285 private:
286 bool _internal_has_interprocess() const;
287 public:
289 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
290 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
293 private:
294 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
295 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
296 public:
300
301 // optional .goby.middleware.protobuf.SerialConfig serial = 10;
302 bool has_serial() const;
303 private:
304 bool _internal_has_serial() const;
305 public:
307 const ::goby::middleware::protobuf::SerialConfig& serial() const;
308 PROTOBUF_NODISCARD ::goby::middleware::protobuf::SerialConfig* release_serial();
311 private:
312 const ::goby::middleware::protobuf::SerialConfig& _internal_serial() const;
313 ::goby::middleware::protobuf::SerialConfig* _internal_mutable_serial();
314 public:
318
319 // optional .goby.middleware.protobuf.UDPPointToPointConfig udp = 11;
320 bool has_udp() const;
321 private:
322 bool _internal_has_udp() const;
323 public:
324 void clear_udp();
325 const ::goby::middleware::protobuf::UDPPointToPointConfig& udp() const;
326 PROTOBUF_NODISCARD ::goby::middleware::protobuf::UDPPointToPointConfig* release_udp();
329 private:
330 const ::goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp() const;
332 public:
336
337 // optional .goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.ConnectionType connection_type = 5 [default = CONNECTION_SERIAL];
338 bool has_connection_type() const;
339 private:
340 bool _internal_has_connection_type() const;
341 public:
345 private:
347 void _internal_set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value);
348 public:
349
350 // @@protoc_insertion_point(class_scope:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig)
351 private:
352 class _Internal;
353
354 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
355 typedef void InternalArenaConstructable_;
356 typedef void DestructorSkippable_;
357 struct Impl_ {
358 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
359 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
364 int connection_type_;
365 };
366 union { Impl_ _impl_; };
367 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto;
368};
369// ===================================================================
370
371
372// ===================================================================
373
374#ifdef __GNUC__
375 #pragma GCC diagnostic push
376 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
377#endif // __GNUC__
378// MAVLinkGatewayConfig
379
380// optional .goby.middleware.protobuf.AppConfig app = 1;
381inline bool MAVLinkGatewayConfig::_internal_has_app() const {
382 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
383 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
384 return value;
385}
386inline bool MAVLinkGatewayConfig::has_app() const {
387 return _internal_has_app();
388}
389inline const ::goby::middleware::protobuf::AppConfig& MAVLinkGatewayConfig::_internal_app() const {
390 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
391 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
393}
394inline const ::goby::middleware::protobuf::AppConfig& MAVLinkGatewayConfig::app() const {
395 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
396 return _internal_app();
397}
400 if (GetArenaForAllocation() == nullptr) {
401 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
402 }
403 _impl_.app_ = app;
404 if (app) {
405 _impl_._has_bits_[0] |= 0x00000001u;
406 } else {
407 _impl_._has_bits_[0] &= ~0x00000001u;
408 }
409 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
410}
411inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::release_app() {
412 _impl_._has_bits_[0] &= ~0x00000001u;
414 _impl_.app_ = nullptr;
415#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
416 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
417 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
418 if (GetArenaForAllocation() == nullptr) { delete old; }
419#else // PROTOBUF_FORCE_COPY_IN_RELEASE
420 if (GetArenaForAllocation() != nullptr) {
421 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
422 }
423#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
424 return temp;
425}
426inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::unsafe_arena_release_app() {
427 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
428 _impl_._has_bits_[0] &= ~0x00000001u;
430 _impl_.app_ = nullptr;
431 return temp;
432}
433inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::_internal_mutable_app() {
434 _impl_._has_bits_[0] |= 0x00000001u;
435 if (_impl_.app_ == nullptr) {
436 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
437 _impl_.app_ = p;
438 }
439 return _impl_.app_;
440}
441inline ::goby::middleware::protobuf::AppConfig* MAVLinkGatewayConfig::mutable_app() {
442 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
443 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
444 return _msg;
445}
447 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
448 if (message_arena == nullptr) {
449 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
450 }
451 if (app) {
452 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
453 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
454 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
455 if (message_arena != submessage_arena) {
456 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
457 message_arena, app, submessage_arena);
458 }
459 _impl_._has_bits_[0] |= 0x00000001u;
460 } else {
461 _impl_._has_bits_[0] &= ~0x00000001u;
462 }
463 _impl_.app_ = app;
464 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.app)
465}
466
467// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
468inline bool MAVLinkGatewayConfig::_internal_has_interprocess() const {
469 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
470 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
471 return value;
472}
474 return _internal_has_interprocess();
475}
476inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MAVLinkGatewayConfig::_internal_interprocess() const {
477 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
478 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
480}
481inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MAVLinkGatewayConfig::interprocess() const {
482 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
483 return _internal_interprocess();
484}
487 if (GetArenaForAllocation() == nullptr) {
488 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
489 }
490 _impl_.interprocess_ = interprocess;
491 if (interprocess) {
492 _impl_._has_bits_[0] |= 0x00000002u;
493 } else {
494 _impl_._has_bits_[0] &= ~0x00000002u;
495 }
496 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
497}
498inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::release_interprocess() {
499 _impl_._has_bits_[0] &= ~0x00000002u;
501 _impl_.interprocess_ = nullptr;
502#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
503 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
504 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
505 if (GetArenaForAllocation() == nullptr) { delete old; }
506#else // PROTOBUF_FORCE_COPY_IN_RELEASE
507 if (GetArenaForAllocation() != nullptr) {
508 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
509 }
510#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
511 return temp;
512}
513inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::unsafe_arena_release_interprocess() {
514 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
515 _impl_._has_bits_[0] &= ~0x00000002u;
517 _impl_.interprocess_ = nullptr;
518 return temp;
519}
520inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::_internal_mutable_interprocess() {
521 _impl_._has_bits_[0] |= 0x00000002u;
522 if (_impl_.interprocess_ == nullptr) {
524 _impl_.interprocess_ = p;
525 }
526 return _impl_.interprocess_;
527}
528inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MAVLinkGatewayConfig::mutable_interprocess() {
529 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
530 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
531 return _msg;
532}
534 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
535 if (message_arena == nullptr) {
536 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
537 }
538 if (interprocess) {
539 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
540 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
541 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
542 if (message_arena != submessage_arena) {
543 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
544 message_arena, interprocess, submessage_arena);
545 }
546 _impl_._has_bits_[0] |= 0x00000002u;
547 } else {
548 _impl_._has_bits_[0] &= ~0x00000002u;
549 }
550 _impl_.interprocess_ = interprocess;
551 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.interprocess)
552}
553
554// optional .goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.ConnectionType connection_type = 5 [default = CONNECTION_SERIAL];
555inline bool MAVLinkGatewayConfig::_internal_has_connection_type() const {
556 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
557 return value;
558}
560 return _internal_has_connection_type();
561}
563 _impl_.connection_type_ = 1;
564 _impl_._has_bits_[0] &= ~0x00000010u;
565}
566inline ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType MAVLinkGatewayConfig::_internal_connection_type() const {
567 return static_cast< ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType >(_impl_.connection_type_);
568}
569inline ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType MAVLinkGatewayConfig::connection_type() const {
570 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.connection_type)
571 return _internal_connection_type();
572}
573inline void MAVLinkGatewayConfig::_internal_set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value) {
575 _impl_._has_bits_[0] |= 0x00000010u;
576 _impl_.connection_type_ = value;
577}
579 _internal_set_connection_type(value);
580 // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.connection_type)
581}
582
583// optional .goby.middleware.protobuf.SerialConfig serial = 10;
584inline bool MAVLinkGatewayConfig::_internal_has_serial() const {
585 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
586 PROTOBUF_ASSUME(!value || _impl_.serial_ != nullptr);
587 return value;
588}
590 return _internal_has_serial();
591}
592inline const ::goby::middleware::protobuf::SerialConfig& MAVLinkGatewayConfig::_internal_serial() const {
593 const ::goby::middleware::protobuf::SerialConfig* p = _impl_.serial_;
594 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::SerialConfig&>(
596}
597inline const ::goby::middleware::protobuf::SerialConfig& MAVLinkGatewayConfig::serial() const {
598 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
599 return _internal_serial();
600}
603 if (GetArenaForAllocation() == nullptr) {
604 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.serial_);
605 }
606 _impl_.serial_ = serial;
607 if (serial) {
608 _impl_._has_bits_[0] |= 0x00000004u;
609 } else {
610 _impl_._has_bits_[0] &= ~0x00000004u;
611 }
612 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
613}
614inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::release_serial() {
615 _impl_._has_bits_[0] &= ~0x00000004u;
617 _impl_.serial_ = nullptr;
618#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
619 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
620 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
621 if (GetArenaForAllocation() == nullptr) { delete old; }
622#else // PROTOBUF_FORCE_COPY_IN_RELEASE
623 if (GetArenaForAllocation() != nullptr) {
624 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
625 }
626#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
627 return temp;
628}
629inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::unsafe_arena_release_serial() {
630 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
631 _impl_._has_bits_[0] &= ~0x00000004u;
633 _impl_.serial_ = nullptr;
634 return temp;
635}
636inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::_internal_mutable_serial() {
637 _impl_._has_bits_[0] |= 0x00000004u;
638 if (_impl_.serial_ == nullptr) {
640 _impl_.serial_ = p;
641 }
642 return _impl_.serial_;
643}
644inline ::goby::middleware::protobuf::SerialConfig* MAVLinkGatewayConfig::mutable_serial() {
645 ::goby::middleware::protobuf::SerialConfig* _msg = _internal_mutable_serial();
646 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
647 return _msg;
648}
650 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
651 if (message_arena == nullptr) {
652 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.serial_);
653 }
654 if (serial) {
655 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
656 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
657 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(serial));
658 if (message_arena != submessage_arena) {
659 serial = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
660 message_arena, serial, submessage_arena);
661 }
662 _impl_._has_bits_[0] |= 0x00000004u;
663 } else {
664 _impl_._has_bits_[0] &= ~0x00000004u;
665 }
666 _impl_.serial_ = serial;
667 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.serial)
668}
669
670// optional .goby.middleware.protobuf.UDPPointToPointConfig udp = 11;
671inline bool MAVLinkGatewayConfig::_internal_has_udp() const {
672 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
673 PROTOBUF_ASSUME(!value || _impl_.udp_ != nullptr);
674 return value;
675}
676inline bool MAVLinkGatewayConfig::has_udp() const {
677 return _internal_has_udp();
678}
679inline const ::goby::middleware::protobuf::UDPPointToPointConfig& MAVLinkGatewayConfig::_internal_udp() const {
680 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = _impl_.udp_;
681 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::UDPPointToPointConfig&>(
683}
684inline const ::goby::middleware::protobuf::UDPPointToPointConfig& MAVLinkGatewayConfig::udp() const {
685 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
686 return _internal_udp();
687}
690 if (GetArenaForAllocation() == nullptr) {
691 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.udp_);
692 }
693 _impl_.udp_ = udp;
694 if (udp) {
695 _impl_._has_bits_[0] |= 0x00000008u;
696 } else {
697 _impl_._has_bits_[0] &= ~0x00000008u;
698 }
699 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
700}
701inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::release_udp() {
702 _impl_._has_bits_[0] &= ~0x00000008u;
704 _impl_.udp_ = nullptr;
705#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
706 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
707 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
708 if (GetArenaForAllocation() == nullptr) { delete old; }
709#else // PROTOBUF_FORCE_COPY_IN_RELEASE
710 if (GetArenaForAllocation() != nullptr) {
711 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
712 }
713#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
714 return temp;
715}
716inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::unsafe_arena_release_udp() {
717 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
718 _impl_._has_bits_[0] &= ~0x00000008u;
720 _impl_.udp_ = nullptr;
721 return temp;
722}
723inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::_internal_mutable_udp() {
724 _impl_._has_bits_[0] |= 0x00000008u;
725 if (_impl_.udp_ == nullptr) {
727 _impl_.udp_ = p;
728 }
729 return _impl_.udp_;
730}
731inline ::goby::middleware::protobuf::UDPPointToPointConfig* MAVLinkGatewayConfig::mutable_udp() {
732 ::goby::middleware::protobuf::UDPPointToPointConfig* _msg = _internal_mutable_udp();
733 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
734 return _msg;
735}
737 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
738 if (message_arena == nullptr) {
739 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.udp_);
740 }
741 if (udp) {
742 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
743 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
744 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(udp));
745 if (message_arena != submessage_arena) {
746 udp = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
747 message_arena, udp, submessage_arena);
748 }
749 _impl_._has_bits_[0] |= 0x00000008u;
750 } else {
751 _impl_._has_bits_[0] &= ~0x00000008u;
752 }
753 _impl_.udp_ = udp;
754 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.MAVLinkGatewayConfig.udp)
755}
756
757#ifdef __GNUC__
758 #pragma GCC diagnostic pop
759#endif // __GNUC__
760
761// @@protoc_insertion_point(namespace_scope)
762
763} // namespace protobuf
764} // namespace zeromq
765} // namespace apps
766} // namespace goby
767
768PROTOBUF_NAMESPACE_OPEN
769
770template <> struct is_proto_enum< ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType> : ::std::true_type {};
771template <>
773 return ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType_descriptor();
774}
775
776PROTOBUF_NAMESPACE_CLOSE
777
778// @@protoc_insertion_point(global_scope)
779
780#include <google/protobuf/port_undef.inc>
781#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
static const MAVLinkGatewayConfig * internal_default_instance()
::goby::middleware::protobuf::SerialConfig * mutable_serial()
MAVLinkGatewayConfig(const MAVLinkGatewayConfig &from)
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
::goby::middleware::protobuf::SerialConfig * unsafe_arena_release_serial()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void set_allocated_serial(::goby::middleware::protobuf::SerialConfig *serial)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_CONSTEXPR MAVLinkGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::goby::middleware::protobuf::UDPPointToPointConfig * unsafe_arena_release_udp()
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
const ::goby::middleware::protobuf::AppConfig & app() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::UDPPointToPointConfig * release_udp()
friend void swap(MAVLinkGatewayConfig &a, MAVLinkGatewayConfig &b)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void unsafe_arena_set_allocated_udp(::goby::middleware::protobuf::UDPPointToPointConfig *udp)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::goby::middleware::protobuf::UDPPointToPointConfig * mutable_udp()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::goby::middleware::protobuf::AppConfig * mutable_app()
PROTOBUF_NODISCARD::goby::middleware::protobuf::SerialConfig * release_serial()
static const std::string & ConnectionType_Name(T enum_t_value)
void unsafe_arena_set_allocated_serial(::goby::middleware::protobuf::SerialConfig *serial)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
MAVLinkGatewayConfig(MAVLinkGatewayConfig &&from) noexcept
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
MAVLinkGatewayConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
MAVLinkGatewayConfig & operator=(const MAVLinkGatewayConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
void set_connection_type(::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType value)
const ::goby::middleware::protobuf::SerialConfig & serial() const
void set_allocated_udp(::goby::middleware::protobuf::UDPPointToPointConfig *udp)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
MAVLinkGatewayConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static bool ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionType *value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConnectionType_descriptor()
const ::goby::middleware::protobuf::UDPPointToPointConfig & udp() const
void CopyFrom(const MAVLinkGatewayConfig &from)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType connection_type() const
MAVLinkGatewayConfig & operator=(MAVLinkGatewayConfig &&from) noexcept
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
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
bool MAVLinkGatewayConfig_ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MAVLinkGatewayConfig_ConnectionType *value)
MAVLinkGatewayConfigDefaultTypeInternal _MAVLinkGatewayConfig_default_instance_
const std::string & MAVLinkGatewayConfig_ConnectionType_Name(T enum_t_value)
UDPPointToPointConfigDefaultTypeInternal _UDPPointToPointConfig_default_instance_
SerialConfigDefaultTypeInternal _SerialConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::SerialConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig >(Arena *)
::goby::middleware::protobuf::UDPPointToPointConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig >(Arena *)