4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_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.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
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>
44 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto
49 static const ::google::protobuf::internal::ParseTableField
entries[];
50 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
51 static const ::google::protobuf::internal::ParseTable
schema[1];
62 class MAVLinkGatewayConfig;
63 class MAVLinkGatewayConfigDefaultTypeInternal;
90 return ::google::protobuf::internal::NameOfEnum(
95 return ::google::protobuf::internal::ParseNamedEnum<MAVLinkGatewayConfig_ConnectionType>(
114 *
this = ::std::move(from);
118 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
119 if (
this != &from) InternalSwap(&from);
127 return _internal_metadata_.unknown_fields();
130 return _internal_metadata_.mutable_unknown_fields();
133 static const ::google::protobuf::Descriptor*
descriptor();
152 return CreateMaybeMessage<MAVLinkGatewayConfig>(NULL);
156 return CreateMaybeMessage<MAVLinkGatewayConfig>(arena);
158 void CopyFrom(const ::google::protobuf::Message& from)
final;
159 void MergeFrom(const ::google::protobuf::Message& from)
final;
167 ::
google::protobuf::io::CodedInputStream* input) final;
169 ::
google::protobuf::io::CodedOutputStream* output) const final;
171 bool deterministic, ::
google::protobuf::uint8* target) const final;
177 void SetCachedSize(
int size)
const final;
180 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
183 inline void* MaybeArenaPtr()
const {
206 static inline const ::google::protobuf::EnumDescriptor*
225 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
227 const ::goby::middleware::protobuf::AppConfig&
app()
const;
237 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
239 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
249 const ::goby::middleware::protobuf::SerialConfig& _internal_serial()
const;
251 const ::goby::middleware::protobuf::SerialConfig&
serial()
const;
261 const ::goby::middleware::protobuf::UDPPointToPointConfig& _internal_udp()
const;
263 const ::goby::middleware::protobuf::UDPPointToPointConfig&
udp()
const;
278 void clear_has_app();
279 void set_has_interprocess();
280 void clear_has_interprocess();
281 void set_has_connection_type();
282 void clear_has_connection_type();
283 void set_has_serial();
284 void clear_has_serial();
286 void clear_has_udp();
288 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
289 ::google::protobuf::internal::HasBits<1> _has_bits_;
290 mutable ::google::protobuf::internal::CachedSize _cached_size_;
295 int connection_type_;
296 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto::TableStruct;
304 #pragma GCC diagnostic push
305 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
311 return (_has_bits_[0] & 0x00000001u) != 0;
313 inline void MAVLinkGatewayConfig::set_has_app() {
314 _has_bits_[0] |= 0x00000001u;
316 inline void MAVLinkGatewayConfig::clear_has_app() {
317 _has_bits_[0] &= ~0x00000001u;
319 inline const ::goby::middleware::protobuf::AppConfig& MAVLinkGatewayConfig::_internal_app()
const {
323 const ::goby::middleware::protobuf::AppConfig* p = app_;
338 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
346 if (message_arena == NULL) {
351 if (message_arena != submessage_arena) {
352 app = ::google::protobuf::internal::GetOwnedMessage(
353 message_arena,
app, submessage_arena);
365 return (_has_bits_[0] & 0x00000002u) != 0;
367 inline void MAVLinkGatewayConfig::set_has_interprocess() {
368 _has_bits_[0] |= 0x00000002u;
370 inline void MAVLinkGatewayConfig::clear_has_interprocess() {
371 _has_bits_[0] &= ~0x00000002u;
373 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MAVLinkGatewayConfig::_internal_interprocess()
const {
374 return *interprocess_;
377 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
384 clear_has_interprocess();
386 interprocess_ = NULL;
390 set_has_interprocess();
391 if (interprocess_ == NULL) {
392 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
396 return interprocess_;
400 if (message_arena == NULL) {
405 if (message_arena != submessage_arena) {
406 interprocess = ::google::protobuf::internal::GetOwnedMessage(
409 set_has_interprocess();
411 clear_has_interprocess();
419 return (_has_bits_[0] & 0x00000010u) != 0;
421 inline void MAVLinkGatewayConfig::set_has_connection_type() {
422 _has_bits_[0] |= 0x00000010u;
424 inline void MAVLinkGatewayConfig::clear_has_connection_type() {
425 _has_bits_[0] &= ~0x00000010u;
428 connection_type_ = 1;
429 clear_has_connection_type();
437 set_has_connection_type();
438 connection_type_ = value;
444 return (_has_bits_[0] & 0x00000004u) != 0;
446 inline void MAVLinkGatewayConfig::set_has_serial() {
447 _has_bits_[0] |= 0x00000004u;
449 inline void MAVLinkGatewayConfig::clear_has_serial() {
450 _has_bits_[0] &= ~0x00000004u;
452 inline const ::goby::middleware::protobuf::SerialConfig& MAVLinkGatewayConfig::_internal_serial()
const {
456 const ::goby::middleware::protobuf::SerialConfig* p = serial_;
470 if (serial_ == NULL) {
471 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::SerialConfig>(GetArenaNoVirtual());
479 if (message_arena == NULL) {
484 if (message_arena != submessage_arena) {
485 serial = ::google::protobuf::internal::GetOwnedMessage(
486 message_arena,
serial, submessage_arena);
498 return (_has_bits_[0] & 0x00000008u) != 0;
500 inline void MAVLinkGatewayConfig::set_has_udp() {
501 _has_bits_[0] |= 0x00000008u;
503 inline void MAVLinkGatewayConfig::clear_has_udp() {
504 _has_bits_[0] &= ~0x00000008u;
506 inline const ::goby::middleware::protobuf::UDPPointToPointConfig& MAVLinkGatewayConfig::_internal_udp()
const {
510 const ::goby::middleware::protobuf::UDPPointToPointConfig* p = udp_;
525 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::UDPPointToPointConfig>(GetArenaNoVirtual());
533 if (message_arena == NULL) {
538 if (message_arena != submessage_arena) {
539 udp = ::google::protobuf::internal::GetOwnedMessage(
540 message_arena,
udp, submessage_arena);
551 #pragma GCC diagnostic pop
566 inline const EnumDescriptor* GetEnumDescriptor< ::goby::apps::zeromq::protobuf::MAVLinkGatewayConfig_ConnectionType>() {
575 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmavlink_5fgateway_5fconfig_2eproto