Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
opencpn_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/opencpn_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fopencpn_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/unknown_field_set.h>
37#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
44#include <boost/units/systems/si.hpp>
45// @@protoc_insertion_point(includes)
46#include <google/protobuf/port_def.inc>
47#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
48PROTOBUF_NAMESPACE_OPEN
49namespace internal {
50class AnyMetadata;
51} // namespace internal
52PROTOBUF_NAMESPACE_CLOSE
53
54// Internal implementation detail -- do not use these members.
58extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto;
59namespace goby {
60namespace apps {
61namespace zeromq {
62namespace protobuf {
63class OpenCPNInterfaceConfig;
64struct OpenCPNInterfaceConfigDefaultTypeInternal;
65extern OpenCPNInterfaceConfigDefaultTypeInternal _OpenCPNInterfaceConfig_default_instance_;
66} // namespace protobuf
67} // namespace zeromq
68} // namespace apps
69} // namespace goby
70PROTOBUF_NAMESPACE_OPEN
71template<> ::goby::apps::zeromq::protobuf::OpenCPNInterfaceConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::protobuf::OpenCPNInterfaceConfig>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace goby {
74namespace apps {
75namespace zeromq {
76namespace protobuf {
77
78// ===================================================================
79
81 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig) */ {
82 public:
85 explicit PROTOBUF_CONSTEXPR OpenCPNInterfaceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86
90 *this = ::std::move(from);
91 }
92
94 CopyFrom(from);
95 return *this;
96 }
98 if (this == &from) return *this;
99 if (GetOwningArena() == from.GetOwningArena()
100 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
101 && GetOwningArena() != nullptr
102 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
103 ) {
104 InternalSwap(&from);
105 } else {
106 CopyFrom(from);
107 }
108 return *this;
109 }
110
111 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
112 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
113 }
114 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
115 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
116 }
117
118 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
119 return GetDescriptor();
120 }
121 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
122 return default_instance().GetMetadata().descriptor;
123 }
124 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
125 return default_instance().GetMetadata().reflection;
126 }
135
137 return reinterpret_cast<const OpenCPNInterfaceConfig*>(
139 }
140 static constexpr int kIndexInFileMessages =
141 0;
142
144 a.Swap(&b);
145 }
146 inline void Swap(OpenCPNInterfaceConfig* other) {
147 if (other == this) return;
148 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
149 if (GetOwningArena() != nullptr &&
150 GetOwningArena() == other->GetOwningArena()) {
151 #else // PROTOBUF_FORCE_COPY_IN_SWAP
152 if (GetOwningArena() == other->GetOwningArena()) {
153 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
154 InternalSwap(other);
155 } else {
156 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
157 }
158 }
160 if (other == this) return;
161 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
162 InternalSwap(other);
163 }
164
165 // implements Message ----------------------------------------------
166
167 OpenCPNInterfaceConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
168 return CreateMaybeMessage<OpenCPNInterfaceConfig>(arena);
169 }
170 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
172 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
174 OpenCPNInterfaceConfig::MergeImpl(*this, from);
175 }
176 private:
177 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
178 public:
179 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
180 bool IsInitialized() const final;
181
182 size_t ByteSizeLong() const final;
183 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
185 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
186 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
187
188 private:
189 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
190 void SharedDtor();
191 void SetCachedSize(int size) const final;
192 void InternalSwap(OpenCPNInterfaceConfig* other);
193
194 private:
195 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
196 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
197 return "goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig";
198 }
199 protected:
200 explicit OpenCPNInterfaceConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
201 bool is_message_owned = false);
202 public:
203
204 static const ClassData _class_data_;
205 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
206
207 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
208
209 // nested types ----------------------------------------------------
210
211 // accessors -------------------------------------------------------
212
213 enum : int {
222 };
223 // optional .goby.middleware.protobuf.AppConfig app = 1;
224 bool has_app() const;
225 private:
226 bool _internal_has_app() const;
227 public:
228 void clear_app();
229 const ::goby::middleware::protobuf::AppConfig& app() const;
230 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
233 private:
234 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
235 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
236 public:
240
241 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
242 bool has_interprocess() const;
243 private:
244 bool _internal_has_interprocess() const;
245 public:
247 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
248 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
251 private:
252 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
253 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
254 public:
258
259 // optional int32 mmsi_start = 10 [default = 988700000];
260 bool has_mmsi_start() const;
261 private:
262 bool _internal_has_mmsi_start() const;
263 public:
264 void clear_mmsi_start();
265 int32_t mmsi_start() const;
266 void set_mmsi_start(int32_t value);
267 private:
268 int32_t _internal_mmsi_start() const;
269 void _internal_set_mmsi_start(int32_t value);
270 public:
271
272 // optional int32 filter_length = 11 [default = 2];
273 bool has_filter_length() const;
274 private:
275 bool _internal_has_filter_length() const;
276 public:
277 void clear_filter_length();
278 int32_t filter_length() const;
279 void set_filter_length(int32_t value);
280 private:
281 int32_t _internal_filter_length() const;
282 void _internal_set_filter_length(int32_t value);
283 public:
284
285 // optional double position_report_interval = 12 [default = 1, (.dccl.field) = {
286 bool has_position_report_interval() const;
287 private:
288 bool _internal_has_position_report_interval() const;
289 public:
291 double position_report_interval() const;
292 void set_position_report_interval(double value);
293 private:
294 double _internal_position_report_interval() const;
295 void _internal_set_position_report_interval(double value);
296 public:
297
298 // optional double voyage_report_interval = 13 [default = 30, (.dccl.field) = {
299 bool has_voyage_report_interval() const;
300 private:
301 bool _internal_has_voyage_report_interval() const;
302 public:
304 double voyage_report_interval() const;
305 void set_voyage_report_interval(double value);
306 private:
307 double _internal_voyage_report_interval() const;
308 void _internal_set_voyage_report_interval(double value);
309 public:
310
311 // .goby.middleware.protobuf.TCPServerConfig ais_server = 5;
312 bool has_ais_server() const;
313 private:
314 bool _internal_has_ais_server() const;
315 public:
317 const ::goby::middleware::protobuf::TCPServerConfig& ais_server() const;
318 PROTOBUF_NODISCARD ::goby::middleware::protobuf::TCPServerConfig* release_ais_server();
321 private:
322 const ::goby::middleware::protobuf::TCPServerConfig& _internal_ais_server() const;
323 ::goby::middleware::protobuf::TCPServerConfig* _internal_mutable_ais_server();
324 public:
328
329 // .goby.middleware.protobuf.PTYConfig ais_serial = 6;
330 bool has_ais_serial() const;
331 private:
332 bool _internal_has_ais_serial() const;
333 public:
335 const ::goby::middleware::protobuf::PTYConfig& ais_serial() const;
336 PROTOBUF_NODISCARD ::goby::middleware::protobuf::PTYConfig* release_ais_serial();
339 private:
340 const ::goby::middleware::protobuf::PTYConfig& _internal_ais_serial() const;
341 ::goby::middleware::protobuf::PTYConfig* _internal_mutable_ais_serial();
342 public:
346
347 void clear_io();
348 IoCase io_case() const;
349 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type position_report_interval_dimension;
350
351 typedef boost::units::unit<position_report_interval_dimension,boost::units::si::system> position_report_interval_unit;
352
353 template<typename Quantity >
354 void set_position_report_interval_with_units(Quantity value_w_units)
355 { set_position_report_interval(boost::units::quantity<position_report_interval_unit,double >(value_w_units).value() ); };
356
357 template<typename Quantity >
360
361 boost::units::quantity< position_report_interval_unit,double > position_report_interval_with_units() const
362 { return position_report_interval_with_units<boost::units::quantity< position_report_interval_unit,double > >(); };
363
364 typedef boost::units::derived_dimension< boost::units::time_base_dimension,1 >::type voyage_report_interval_dimension;
365
366 typedef boost::units::unit<voyage_report_interval_dimension,boost::units::si::system> voyage_report_interval_unit;
367
368 template<typename Quantity >
369 void set_voyage_report_interval_with_units(Quantity value_w_units)
370 { set_voyage_report_interval(boost::units::quantity<voyage_report_interval_unit,double >(value_w_units).value() ); };
371
372 template<typename Quantity >
375
376 boost::units::quantity< voyage_report_interval_unit,double > voyage_report_interval_with_units() const
377 { return voyage_report_interval_with_units<boost::units::quantity< voyage_report_interval_unit,double > >(); };
378
379 // @@protoc_insertion_point(class_scope:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig)
380 private:
381 class _Internal;
382 void set_has_ais_server();
383 void set_has_ais_serial();
384
385 inline bool has_io() const;
386 inline void clear_has_io();
387
388 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
389 typedef void InternalArenaConstructable_;
390 typedef void DestructorSkippable_;
391 struct Impl_ {
392 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
393 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
396 int32_t mmsi_start_;
397 int32_t filter_length_;
398 double position_report_interval_;
399 double voyage_report_interval_;
406 uint32_t _oneof_case_[1];
407
408 };
409 union { Impl_ _impl_; };
410 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto;
411};
412// ===================================================================
413
414
415// ===================================================================
416
417#ifdef __GNUC__
418 #pragma GCC diagnostic push
419 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
420#endif // __GNUC__
421// OpenCPNInterfaceConfig
422
423// optional .goby.middleware.protobuf.AppConfig app = 1;
424inline bool OpenCPNInterfaceConfig::_internal_has_app() const {
425 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
426 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
427 return value;
428}
430 return _internal_has_app();
431}
432inline const ::goby::middleware::protobuf::AppConfig& OpenCPNInterfaceConfig::_internal_app() const {
433 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
434 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
436}
437inline const ::goby::middleware::protobuf::AppConfig& OpenCPNInterfaceConfig::app() const {
438 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.app)
439 return _internal_app();
440}
443 if (GetArenaForAllocation() == nullptr) {
444 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
445 }
446 _impl_.app_ = app;
447 if (app) {
448 _impl_._has_bits_[0] |= 0x00000001u;
449 } else {
450 _impl_._has_bits_[0] &= ~0x00000001u;
451 }
452 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.app)
453}
454inline ::goby::middleware::protobuf::AppConfig* OpenCPNInterfaceConfig::release_app() {
455 _impl_._has_bits_[0] &= ~0x00000001u;
457 _impl_.app_ = nullptr;
458#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
459 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
460 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
461 if (GetArenaForAllocation() == nullptr) { delete old; }
462#else // PROTOBUF_FORCE_COPY_IN_RELEASE
463 if (GetArenaForAllocation() != nullptr) {
464 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
465 }
466#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
467 return temp;
468}
469inline ::goby::middleware::protobuf::AppConfig* OpenCPNInterfaceConfig::unsafe_arena_release_app() {
470 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.app)
471 _impl_._has_bits_[0] &= ~0x00000001u;
473 _impl_.app_ = nullptr;
474 return temp;
475}
476inline ::goby::middleware::protobuf::AppConfig* OpenCPNInterfaceConfig::_internal_mutable_app() {
477 _impl_._has_bits_[0] |= 0x00000001u;
478 if (_impl_.app_ == nullptr) {
479 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
480 _impl_.app_ = p;
481 }
482 return _impl_.app_;
483}
484inline ::goby::middleware::protobuf::AppConfig* OpenCPNInterfaceConfig::mutable_app() {
485 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
486 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.app)
487 return _msg;
488}
490 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
491 if (message_arena == nullptr) {
492 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
493 }
494 if (app) {
495 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
496 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
497 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
498 if (message_arena != submessage_arena) {
499 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
500 message_arena, app, submessage_arena);
501 }
502 _impl_._has_bits_[0] |= 0x00000001u;
503 } else {
504 _impl_._has_bits_[0] &= ~0x00000001u;
505 }
506 _impl_.app_ = app;
507 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.app)
508}
509
510// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
511inline bool OpenCPNInterfaceConfig::_internal_has_interprocess() const {
512 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
513 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
514 return value;
515}
517 return _internal_has_interprocess();
518}
519inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& OpenCPNInterfaceConfig::_internal_interprocess() const {
520 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
521 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
523}
524inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& OpenCPNInterfaceConfig::interprocess() const {
525 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.interprocess)
526 return _internal_interprocess();
527}
530 if (GetArenaForAllocation() == nullptr) {
531 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
532 }
533 _impl_.interprocess_ = interprocess;
534 if (interprocess) {
535 _impl_._has_bits_[0] |= 0x00000002u;
536 } else {
537 _impl_._has_bits_[0] &= ~0x00000002u;
538 }
539 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.interprocess)
540}
541inline ::goby::zeromq::protobuf::InterProcessPortalConfig* OpenCPNInterfaceConfig::release_interprocess() {
542 _impl_._has_bits_[0] &= ~0x00000002u;
544 _impl_.interprocess_ = nullptr;
545#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
546 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
547 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
548 if (GetArenaForAllocation() == nullptr) { delete old; }
549#else // PROTOBUF_FORCE_COPY_IN_RELEASE
550 if (GetArenaForAllocation() != nullptr) {
551 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
552 }
553#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
554 return temp;
555}
556inline ::goby::zeromq::protobuf::InterProcessPortalConfig* OpenCPNInterfaceConfig::unsafe_arena_release_interprocess() {
557 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.interprocess)
558 _impl_._has_bits_[0] &= ~0x00000002u;
560 _impl_.interprocess_ = nullptr;
561 return temp;
562}
563inline ::goby::zeromq::protobuf::InterProcessPortalConfig* OpenCPNInterfaceConfig::_internal_mutable_interprocess() {
564 _impl_._has_bits_[0] |= 0x00000002u;
565 if (_impl_.interprocess_ == nullptr) {
567 _impl_.interprocess_ = p;
568 }
569 return _impl_.interprocess_;
570}
571inline ::goby::zeromq::protobuf::InterProcessPortalConfig* OpenCPNInterfaceConfig::mutable_interprocess() {
572 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
573 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.interprocess)
574 return _msg;
575}
577 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
578 if (message_arena == nullptr) {
579 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
580 }
581 if (interprocess) {
582 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
583 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
584 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
585 if (message_arena != submessage_arena) {
586 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
587 message_arena, interprocess, submessage_arena);
588 }
589 _impl_._has_bits_[0] |= 0x00000002u;
590 } else {
591 _impl_._has_bits_[0] &= ~0x00000002u;
592 }
593 _impl_.interprocess_ = interprocess;
594 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.interprocess)
595}
596
597// .goby.middleware.protobuf.TCPServerConfig ais_server = 5;
598inline bool OpenCPNInterfaceConfig::_internal_has_ais_server() const {
599 return io_case() == kAisServer;
600}
602 return _internal_has_ais_server();
603}
604inline void OpenCPNInterfaceConfig::set_has_ais_server() {
605 _impl_._oneof_case_[0] = kAisServer;
606}
607inline ::goby::middleware::protobuf::TCPServerConfig* OpenCPNInterfaceConfig::release_ais_server() {
608 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_server)
609 if (_internal_has_ais_server()) {
610 clear_has_io();
612 if (GetArenaForAllocation() != nullptr) {
613 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
614 }
615 _impl_.io_.ais_server_ = nullptr;
616 return temp;
617 } else {
618 return nullptr;
619 }
620}
621inline const ::goby::middleware::protobuf::TCPServerConfig& OpenCPNInterfaceConfig::_internal_ais_server() const {
622 return _internal_has_ais_server()
623 ? *_impl_.io_.ais_server_
625}
626inline const ::goby::middleware::protobuf::TCPServerConfig& OpenCPNInterfaceConfig::ais_server() const {
627 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_server)
628 return _internal_ais_server();
629}
630inline ::goby::middleware::protobuf::TCPServerConfig* OpenCPNInterfaceConfig::unsafe_arena_release_ais_server() {
631 // @@protoc_insertion_point(field_unsafe_arena_release:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_server)
632 if (_internal_has_ais_server()) {
633 clear_has_io();
635 _impl_.io_.ais_server_ = nullptr;
636 return temp;
637 } else {
638 return nullptr;
639 }
640}
642 clear_io();
643 if (ais_server) {
644 set_has_ais_server();
645 _impl_.io_.ais_server_ = ais_server;
646 }
647 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_server)
648}
649inline ::goby::middleware::protobuf::TCPServerConfig* OpenCPNInterfaceConfig::_internal_mutable_ais_server() {
650 if (!_internal_has_ais_server()) {
651 clear_io();
652 set_has_ais_server();
653 _impl_.io_.ais_server_ = CreateMaybeMessage< ::goby::middleware::protobuf::TCPServerConfig >(GetArenaForAllocation());
654 }
655 return _impl_.io_.ais_server_;
656}
657inline ::goby::middleware::protobuf::TCPServerConfig* OpenCPNInterfaceConfig::mutable_ais_server() {
658 ::goby::middleware::protobuf::TCPServerConfig* _msg = _internal_mutable_ais_server();
659 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_server)
660 return _msg;
661}
662
663// .goby.middleware.protobuf.PTYConfig ais_serial = 6;
664inline bool OpenCPNInterfaceConfig::_internal_has_ais_serial() const {
665 return io_case() == kAisSerial;
666}
668 return _internal_has_ais_serial();
669}
670inline void OpenCPNInterfaceConfig::set_has_ais_serial() {
671 _impl_._oneof_case_[0] = kAisSerial;
672}
673inline ::goby::middleware::protobuf::PTYConfig* OpenCPNInterfaceConfig::release_ais_serial() {
674 // @@protoc_insertion_point(field_release:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_serial)
675 if (_internal_has_ais_serial()) {
676 clear_has_io();
677 ::goby::middleware::protobuf::PTYConfig* temp = _impl_.io_.ais_serial_;
678 if (GetArenaForAllocation() != nullptr) {
679 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
680 }
681 _impl_.io_.ais_serial_ = nullptr;
682 return temp;
683 } else {
684 return nullptr;
685 }
686}
687inline const ::goby::middleware::protobuf::PTYConfig& OpenCPNInterfaceConfig::_internal_ais_serial() const {
688 return _internal_has_ais_serial()
689 ? *_impl_.io_.ais_serial_
691}
692inline const ::goby::middleware::protobuf::PTYConfig& OpenCPNInterfaceConfig::ais_serial() const {
693 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_serial)
694 return _internal_ais_serial();
695}
696inline ::goby::middleware::protobuf::PTYConfig* OpenCPNInterfaceConfig::unsafe_arena_release_ais_serial() {
697 // @@protoc_insertion_point(field_unsafe_arena_release:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_serial)
698 if (_internal_has_ais_serial()) {
699 clear_has_io();
700 ::goby::middleware::protobuf::PTYConfig* temp = _impl_.io_.ais_serial_;
701 _impl_.io_.ais_serial_ = nullptr;
702 return temp;
703 } else {
704 return nullptr;
705 }
706}
708 clear_io();
709 if (ais_serial) {
710 set_has_ais_serial();
711 _impl_.io_.ais_serial_ = ais_serial;
712 }
713 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_serial)
714}
715inline ::goby::middleware::protobuf::PTYConfig* OpenCPNInterfaceConfig::_internal_mutable_ais_serial() {
716 if (!_internal_has_ais_serial()) {
717 clear_io();
718 set_has_ais_serial();
719 _impl_.io_.ais_serial_ = CreateMaybeMessage< ::goby::middleware::protobuf::PTYConfig >(GetArenaForAllocation());
720 }
721 return _impl_.io_.ais_serial_;
722}
723inline ::goby::middleware::protobuf::PTYConfig* OpenCPNInterfaceConfig::mutable_ais_serial() {
724 ::goby::middleware::protobuf::PTYConfig* _msg = _internal_mutable_ais_serial();
725 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.ais_serial)
726 return _msg;
727}
728
729// optional int32 mmsi_start = 10 [default = 988700000];
730inline bool OpenCPNInterfaceConfig::_internal_has_mmsi_start() const {
731 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
732 return value;
733}
735 return _internal_has_mmsi_start();
736}
738 _impl_.mmsi_start_ = 988700000;
739 _impl_._has_bits_[0] &= ~0x00000004u;
740}
741inline int32_t OpenCPNInterfaceConfig::_internal_mmsi_start() const {
742 return _impl_.mmsi_start_;
743}
745 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.mmsi_start)
746 return _internal_mmsi_start();
747}
748inline void OpenCPNInterfaceConfig::_internal_set_mmsi_start(int32_t value) {
749 _impl_._has_bits_[0] |= 0x00000004u;
750 _impl_.mmsi_start_ = value;
751}
752inline void OpenCPNInterfaceConfig::set_mmsi_start(int32_t value) {
753 _internal_set_mmsi_start(value);
754 // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.mmsi_start)
755}
756
757// optional int32 filter_length = 11 [default = 2];
758inline bool OpenCPNInterfaceConfig::_internal_has_filter_length() const {
759 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
760 return value;
761}
763 return _internal_has_filter_length();
764}
766 _impl_.filter_length_ = 2;
767 _impl_._has_bits_[0] &= ~0x00000008u;
768}
769inline int32_t OpenCPNInterfaceConfig::_internal_filter_length() const {
770 return _impl_.filter_length_;
771}
773 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.filter_length)
774 return _internal_filter_length();
775}
776inline void OpenCPNInterfaceConfig::_internal_set_filter_length(int32_t value) {
777 _impl_._has_bits_[0] |= 0x00000008u;
778 _impl_.filter_length_ = value;
779}
781 _internal_set_filter_length(value);
782 // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.filter_length)
783}
784
785// optional double position_report_interval = 12 [default = 1, (.dccl.field) = {
786inline bool OpenCPNInterfaceConfig::_internal_has_position_report_interval() const {
787 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
788 return value;
789}
791 return _internal_has_position_report_interval();
792}
794 _impl_.position_report_interval_ = 1;
795 _impl_._has_bits_[0] &= ~0x00000010u;
796}
797inline double OpenCPNInterfaceConfig::_internal_position_report_interval() const {
798 return _impl_.position_report_interval_;
799}
801 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.position_report_interval)
802 return _internal_position_report_interval();
803}
804inline void OpenCPNInterfaceConfig::_internal_set_position_report_interval(double value) {
805 _impl_._has_bits_[0] |= 0x00000010u;
806 _impl_.position_report_interval_ = value;
807}
809 _internal_set_position_report_interval(value);
810 // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.position_report_interval)
811}
812
813// optional double voyage_report_interval = 13 [default = 30, (.dccl.field) = {
814inline bool OpenCPNInterfaceConfig::_internal_has_voyage_report_interval() const {
815 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
816 return value;
817}
819 return _internal_has_voyage_report_interval();
820}
822 _impl_.voyage_report_interval_ = 30;
823 _impl_._has_bits_[0] &= ~0x00000020u;
824}
825inline double OpenCPNInterfaceConfig::_internal_voyage_report_interval() const {
826 return _impl_.voyage_report_interval_;
827}
829 // @@protoc_insertion_point(field_get:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.voyage_report_interval)
830 return _internal_voyage_report_interval();
831}
832inline void OpenCPNInterfaceConfig::_internal_set_voyage_report_interval(double value) {
833 _impl_._has_bits_[0] |= 0x00000020u;
834 _impl_.voyage_report_interval_ = value;
835}
837 _internal_set_voyage_report_interval(value);
838 // @@protoc_insertion_point(field_set:goby.apps.zeromq.protobuf.OpenCPNInterfaceConfig.voyage_report_interval)
839}
840
841inline bool OpenCPNInterfaceConfig::has_io() const {
842 return io_case() != IO_NOT_SET;
843}
844inline void OpenCPNInterfaceConfig::clear_has_io() {
845 _impl_._oneof_case_[0] = IO_NOT_SET;
846}
850#ifdef __GNUC__
851 #pragma GCC diagnostic pop
852#endif // __GNUC__
853
854// @@protoc_insertion_point(namespace_scope)
855
856} // namespace protobuf
857} // namespace zeromq
858} // namespace apps
859} // namespace goby
860
861// @@protoc_insertion_point(global_scope)
862
863#include <google/protobuf/port_undef.inc>
864#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
OpenCPNInterfaceConfig & operator=(OpenCPNInterfaceConfig &&from) noexcept
OpenCPNInterfaceConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
::goby::middleware::protobuf::TCPServerConfig * mutable_ais_server()
::goby::middleware::protobuf::TCPServerConfig * unsafe_arena_release_ais_server()
void set_voyage_report_interval_with_units(Quantity value_w_units)
void set_allocated_ais_server(::goby::middleware::protobuf::TCPServerConfig *ais_server)
void unsafe_arena_set_allocated_ais_server(::goby::middleware::protobuf::TCPServerConfig *ais_server)
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
OpenCPNInterfaceConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const OpenCPNInterfaceConfig & default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void unsafe_arena_set_allocated_ais_serial(::goby::middleware::protobuf::PTYConfig *ais_serial)
OpenCPNInterfaceConfig(const OpenCPNInterfaceConfig &from)
boost::units::quantity< position_report_interval_unit, double > position_report_interval_with_units() const
const ::goby::middleware::protobuf::PTYConfig & ais_serial() const
static const OpenCPNInterfaceConfig * internal_default_instance()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
void set_allocated_ais_serial(::goby::middleware::protobuf::PTYConfig *ais_serial)
PROTOBUF_CONSTEXPR OpenCPNInterfaceConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type position_report_interval_dimension
boost::units::unit< voyage_report_interval_dimension, boost::units::si::system > voyage_report_interval_unit
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
const ::goby::middleware::protobuf::TCPServerConfig & ais_server() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
friend void swap(OpenCPNInterfaceConfig &a, OpenCPNInterfaceConfig &b)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void MergeFrom(const OpenCPNInterfaceConfig &from)
PROTOBUF_NODISCARD::goby::middleware::protobuf::TCPServerConfig * release_ais_server()
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
void CopyFrom(const OpenCPNInterfaceConfig &from)
::goby::middleware::protobuf::PTYConfig * mutable_ais_serial()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
boost::units::unit< position_report_interval_dimension, boost::units::si::system > position_report_interval_unit
::goby::middleware::protobuf::AppConfig * mutable_app()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
PROTOBUF_NODISCARD::goby::middleware::protobuf::PTYConfig * release_ais_serial()
::goby::middleware::protobuf::PTYConfig * unsafe_arena_release_ais_serial()
const ::goby::middleware::protobuf::AppConfig & app() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
boost::units::derived_dimension< boost::units::time_base_dimension, 1 >::type voyage_report_interval_dimension
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
OpenCPNInterfaceConfig(OpenCPNInterfaceConfig &&from) noexcept
boost::units::quantity< voyage_report_interval_unit, double > voyage_report_interval_with_units() const
OpenCPNInterfaceConfig & operator=(const OpenCPNInterfaceConfig &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_position_report_interval_with_units(Quantity value_w_units)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void UnsafeArenaSwap(OpenCPNInterfaceConfig *other)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
OpenCPNInterfaceConfigDefaultTypeInternal _OpenCPNInterfaceConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
TCPServerConfigDefaultTypeInternal _TCPServerConfig_default_instance_
PTYConfigDefaultTypeInternal _PTYConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fopencpn_5fconfig_2eproto
::goby::middleware::protobuf::TCPServerConfig * ais_server_
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_