Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
modemdriver_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/modemdriver_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmodemdriver_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 <boost/units/quantity.hpp>
38#include <boost/units/absolute.hpp>
39#include <boost/units/dimensionless_type.hpp>
40#include <boost/units/make_scaled_unit.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto;
55namespace goby {
56namespace apps {
57namespace zeromq {
58namespace acomms {
59namespace protobuf {
60class ModemDriverConfig;
61struct ModemDriverConfigDefaultTypeInternal;
62extern ModemDriverConfigDefaultTypeInternal _ModemDriverConfig_default_instance_;
63} // namespace protobuf
64} // namespace acomms
65} // namespace zeromq
66} // namespace apps
67} // namespace goby
68PROTOBUF_NAMESPACE_OPEN
69template<> ::goby::apps::zeromq::acomms::protobuf::ModemDriverConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::acomms::protobuf::ModemDriverConfig>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace apps {
73namespace zeromq {
74namespace acomms {
75namespace protobuf {
76
77// ===================================================================
78
79class ModemDriverConfig final :
80 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig) */ {
81 public:
82 inline ModemDriverConfig() : ModemDriverConfig(nullptr) {}
84 explicit PROTOBUF_CONSTEXPR ModemDriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85
89 *this = ::std::move(from);
90 }
91
93 CopyFrom(from);
94 return *this;
95 }
97 if (this == &from) return *this;
98 if (GetOwningArena() == from.GetOwningArena()
99 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
100 && GetOwningArena() != nullptr
101 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
102 ) {
103 InternalSwap(&from);
104 } else {
105 CopyFrom(from);
106 }
107 return *this;
108 }
109
110 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
111 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
112 }
113 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
114 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
115 }
116
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
118 return GetDescriptor();
119 }
120 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
121 return default_instance().GetMetadata().descriptor;
122 }
123 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
124 return default_instance().GetMetadata().reflection;
125 }
128 }
130 return reinterpret_cast<const ModemDriverConfig*>(
132 }
133 static constexpr int kIndexInFileMessages =
134 0;
135
137 a.Swap(&b);
138 }
139 inline void Swap(ModemDriverConfig* other) {
140 if (other == this) return;
141 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() != nullptr &&
143 GetOwningArena() == other->GetOwningArena()) {
144 #else // PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() == other->GetOwningArena()) {
146 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
147 InternalSwap(other);
148 } else {
149 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
150 }
151 }
153 if (other == this) return;
154 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
155 InternalSwap(other);
156 }
157
158 // implements Message ----------------------------------------------
159
160 ModemDriverConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
161 return CreateMaybeMessage<ModemDriverConfig>(arena);
162 }
163 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 void CopyFrom(const ModemDriverConfig& from);
165 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 void MergeFrom( const ModemDriverConfig& from) {
167 ModemDriverConfig::MergeImpl(*this, from);
168 }
169 private:
170 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
171 public:
172 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
173 bool IsInitialized() const final;
174
175 size_t ByteSizeLong() const final;
176 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
178 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
179 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
180
181 private:
182 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
183 void SharedDtor();
184 void SetCachedSize(int size) const final;
185 void InternalSwap(ModemDriverConfig* other);
186
187 private:
188 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
189 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
190 return "goby.apps.zeromq.acomms.protobuf.ModemDriverConfig";
191 }
192 protected:
193 explicit ModemDriverConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
194 bool is_message_owned = false);
195 public:
196
197 static const ClassData _class_data_;
198 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
199
200 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
201
202 // nested types ----------------------------------------------------
203
204 // accessors -------------------------------------------------------
205
206 enum : int {
212 };
213 // optional .goby.middleware.protobuf.AppConfig app = 1;
214 bool has_app() const;
215 private:
216 bool _internal_has_app() const;
217 public:
218 void clear_app();
219 const ::goby::middleware::protobuf::AppConfig& app() const;
220 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
223 private:
224 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
225 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
226 public:
230
231 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
232 bool has_interprocess() const;
233 private:
234 bool _internal_has_interprocess() const;
235 public:
237 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
238 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
241 private:
242 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
243 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
244 public:
248
249 // required .goby.acomms.protobuf.DriverConfig driver_cfg = 3;
250 bool has_driver_cfg() const;
251 private:
252 bool _internal_has_driver_cfg() const;
253 public:
255 const ::goby::acomms::protobuf::DriverConfig& driver_cfg() const;
256 PROTOBUF_NODISCARD ::goby::acomms::protobuf::DriverConfig* release_driver_cfg();
259 private:
260 const ::goby::acomms::protobuf::DriverConfig& _internal_driver_cfg() const;
261 ::goby::acomms::protobuf::DriverConfig* _internal_mutable_driver_cfg();
262 public:
266
267 // optional float data_request_timeout = 5 [default = 1, (.goby.field) = {
268 bool has_data_request_timeout() const;
269 private:
270 bool _internal_has_data_request_timeout() const;
271 public:
273 float data_request_timeout() const;
274 void set_data_request_timeout(float value);
275 private:
276 float _internal_data_request_timeout() const;
277 void _internal_set_data_request_timeout(float value);
278 public:
279
280 // optional int32 status_period_s = 6 [default = 300, (.goby.field) = {
281 bool has_status_period_s() const;
282 private:
283 bool _internal_has_status_period_s() const;
284 public:
286 int32_t status_period_s() const;
287 void set_status_period_s(int32_t value);
288 private:
289 int32_t _internal_status_period_s() const;
290 void _internal_set_status_period_s(int32_t value);
291 public:
292
293 // @@protoc_insertion_point(class_scope:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig)
294 private:
295 class _Internal;
296
297 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
298 typedef void InternalArenaConstructable_;
299 typedef void DestructorSkippable_;
300 struct Impl_ {
301 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
302 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
306 float data_request_timeout_;
307 int32_t status_period_s_;
308 };
309 union { Impl_ _impl_; };
310 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto;
311};
312// ===================================================================
313
314
315// ===================================================================
316
317#ifdef __GNUC__
318 #pragma GCC diagnostic push
319 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
320#endif // __GNUC__
321// ModemDriverConfig
322
323// optional .goby.middleware.protobuf.AppConfig app = 1;
324inline bool ModemDriverConfig::_internal_has_app() const {
325 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
326 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
327 return value;
328}
329inline bool ModemDriverConfig::has_app() const {
330 return _internal_has_app();
331}
332inline const ::goby::middleware::protobuf::AppConfig& ModemDriverConfig::_internal_app() const {
333 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
334 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
336}
337inline const ::goby::middleware::protobuf::AppConfig& ModemDriverConfig::app() const {
338 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.app)
339 return _internal_app();
340}
343 if (GetArenaForAllocation() == nullptr) {
344 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
345 }
346 _impl_.app_ = app;
347 if (app) {
348 _impl_._has_bits_[0] |= 0x00000001u;
349 } else {
350 _impl_._has_bits_[0] &= ~0x00000001u;
351 }
352 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.app)
353}
354inline ::goby::middleware::protobuf::AppConfig* ModemDriverConfig::release_app() {
355 _impl_._has_bits_[0] &= ~0x00000001u;
357 _impl_.app_ = nullptr;
358#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
359 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
360 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
361 if (GetArenaForAllocation() == nullptr) { delete old; }
362#else // PROTOBUF_FORCE_COPY_IN_RELEASE
363 if (GetArenaForAllocation() != nullptr) {
364 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
365 }
366#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
367 return temp;
368}
369inline ::goby::middleware::protobuf::AppConfig* ModemDriverConfig::unsafe_arena_release_app() {
370 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.app)
371 _impl_._has_bits_[0] &= ~0x00000001u;
373 _impl_.app_ = nullptr;
374 return temp;
375}
376inline ::goby::middleware::protobuf::AppConfig* ModemDriverConfig::_internal_mutable_app() {
377 _impl_._has_bits_[0] |= 0x00000001u;
378 if (_impl_.app_ == nullptr) {
379 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
380 _impl_.app_ = p;
381 }
382 return _impl_.app_;
383}
384inline ::goby::middleware::protobuf::AppConfig* ModemDriverConfig::mutable_app() {
385 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
386 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.app)
387 return _msg;
388}
390 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
391 if (message_arena == nullptr) {
392 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
393 }
394 if (app) {
395 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
396 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
397 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
398 if (message_arena != submessage_arena) {
399 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
400 message_arena, app, submessage_arena);
401 }
402 _impl_._has_bits_[0] |= 0x00000001u;
403 } else {
404 _impl_._has_bits_[0] &= ~0x00000001u;
405 }
406 _impl_.app_ = app;
407 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.app)
408}
409
410// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
411inline bool ModemDriverConfig::_internal_has_interprocess() const {
412 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
413 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
414 return value;
415}
417 return _internal_has_interprocess();
418}
419inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& ModemDriverConfig::_internal_interprocess() const {
420 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
421 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
423}
424inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& ModemDriverConfig::interprocess() const {
425 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.interprocess)
426 return _internal_interprocess();
427}
430 if (GetArenaForAllocation() == nullptr) {
431 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
432 }
433 _impl_.interprocess_ = interprocess;
434 if (interprocess) {
435 _impl_._has_bits_[0] |= 0x00000002u;
436 } else {
437 _impl_._has_bits_[0] &= ~0x00000002u;
438 }
439 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.interprocess)
440}
441inline ::goby::zeromq::protobuf::InterProcessPortalConfig* ModemDriverConfig::release_interprocess() {
442 _impl_._has_bits_[0] &= ~0x00000002u;
444 _impl_.interprocess_ = nullptr;
445#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
446 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
447 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
448 if (GetArenaForAllocation() == nullptr) { delete old; }
449#else // PROTOBUF_FORCE_COPY_IN_RELEASE
450 if (GetArenaForAllocation() != nullptr) {
451 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
452 }
453#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
454 return temp;
455}
456inline ::goby::zeromq::protobuf::InterProcessPortalConfig* ModemDriverConfig::unsafe_arena_release_interprocess() {
457 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.interprocess)
458 _impl_._has_bits_[0] &= ~0x00000002u;
460 _impl_.interprocess_ = nullptr;
461 return temp;
462}
463inline ::goby::zeromq::protobuf::InterProcessPortalConfig* ModemDriverConfig::_internal_mutable_interprocess() {
464 _impl_._has_bits_[0] |= 0x00000002u;
465 if (_impl_.interprocess_ == nullptr) {
467 _impl_.interprocess_ = p;
468 }
469 return _impl_.interprocess_;
470}
471inline ::goby::zeromq::protobuf::InterProcessPortalConfig* ModemDriverConfig::mutable_interprocess() {
472 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
473 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.interprocess)
474 return _msg;
475}
477 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
478 if (message_arena == nullptr) {
479 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
480 }
481 if (interprocess) {
482 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
483 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
484 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
485 if (message_arena != submessage_arena) {
486 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
487 message_arena, interprocess, submessage_arena);
488 }
489 _impl_._has_bits_[0] |= 0x00000002u;
490 } else {
491 _impl_._has_bits_[0] &= ~0x00000002u;
492 }
493 _impl_.interprocess_ = interprocess;
494 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.interprocess)
495}
496
497// required .goby.acomms.protobuf.DriverConfig driver_cfg = 3;
498inline bool ModemDriverConfig::_internal_has_driver_cfg() const {
499 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
500 PROTOBUF_ASSUME(!value || _impl_.driver_cfg_ != nullptr);
501 return value;
502}
504 return _internal_has_driver_cfg();
505}
506inline const ::goby::acomms::protobuf::DriverConfig& ModemDriverConfig::_internal_driver_cfg() const {
507 const ::goby::acomms::protobuf::DriverConfig* p = _impl_.driver_cfg_;
508 return p != nullptr ? *p : reinterpret_cast<const ::goby::acomms::protobuf::DriverConfig&>(
510}
511inline const ::goby::acomms::protobuf::DriverConfig& ModemDriverConfig::driver_cfg() const {
512 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.driver_cfg)
513 return _internal_driver_cfg();
514}
517 if (GetArenaForAllocation() == nullptr) {
518 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.driver_cfg_);
519 }
520 _impl_.driver_cfg_ = driver_cfg;
521 if (driver_cfg) {
522 _impl_._has_bits_[0] |= 0x00000004u;
523 } else {
524 _impl_._has_bits_[0] &= ~0x00000004u;
525 }
526 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.driver_cfg)
527}
528inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::release_driver_cfg() {
529 _impl_._has_bits_[0] &= ~0x00000004u;
531 _impl_.driver_cfg_ = nullptr;
532#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
533 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
534 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
535 if (GetArenaForAllocation() == nullptr) { delete old; }
536#else // PROTOBUF_FORCE_COPY_IN_RELEASE
537 if (GetArenaForAllocation() != nullptr) {
538 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
539 }
540#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
541 return temp;
542}
543inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::unsafe_arena_release_driver_cfg() {
544 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.driver_cfg)
545 _impl_._has_bits_[0] &= ~0x00000004u;
547 _impl_.driver_cfg_ = nullptr;
548 return temp;
549}
550inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::_internal_mutable_driver_cfg() {
551 _impl_._has_bits_[0] |= 0x00000004u;
552 if (_impl_.driver_cfg_ == nullptr) {
553 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::DriverConfig>(GetArenaForAllocation());
554 _impl_.driver_cfg_ = p;
555 }
556 return _impl_.driver_cfg_;
557}
558inline ::goby::acomms::protobuf::DriverConfig* ModemDriverConfig::mutable_driver_cfg() {
559 ::goby::acomms::protobuf::DriverConfig* _msg = _internal_mutable_driver_cfg();
560 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.driver_cfg)
561 return _msg;
562}
564 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
565 if (message_arena == nullptr) {
566 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.driver_cfg_);
567 }
568 if (driver_cfg) {
569 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
570 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
571 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(driver_cfg));
572 if (message_arena != submessage_arena) {
573 driver_cfg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
574 message_arena, driver_cfg, submessage_arena);
575 }
576 _impl_._has_bits_[0] |= 0x00000004u;
577 } else {
578 _impl_._has_bits_[0] &= ~0x00000004u;
579 }
580 _impl_.driver_cfg_ = driver_cfg;
581 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.driver_cfg)
582}
583
584// optional float data_request_timeout = 5 [default = 1, (.goby.field) = {
585inline bool ModemDriverConfig::_internal_has_data_request_timeout() const {
586 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
587 return value;
588}
590 return _internal_has_data_request_timeout();
591}
593 _impl_.data_request_timeout_ = 1;
594 _impl_._has_bits_[0] &= ~0x00000008u;
595}
596inline float ModemDriverConfig::_internal_data_request_timeout() const {
597 return _impl_.data_request_timeout_;
598}
600 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.data_request_timeout)
601 return _internal_data_request_timeout();
602}
603inline void ModemDriverConfig::_internal_set_data_request_timeout(float value) {
604 _impl_._has_bits_[0] |= 0x00000008u;
605 _impl_.data_request_timeout_ = value;
606}
608 _internal_set_data_request_timeout(value);
609 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.data_request_timeout)
610}
611
612// optional int32 status_period_s = 6 [default = 300, (.goby.field) = {
613inline bool ModemDriverConfig::_internal_has_status_period_s() const {
614 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
615 return value;
616}
618 return _internal_has_status_period_s();
619}
621 _impl_.status_period_s_ = 300;
622 _impl_._has_bits_[0] &= ~0x00000010u;
623}
624inline int32_t ModemDriverConfig::_internal_status_period_s() const {
625 return _impl_.status_period_s_;
626}
628 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.status_period_s)
629 return _internal_status_period_s();
630}
631inline void ModemDriverConfig::_internal_set_status_period_s(int32_t value) {
632 _impl_._has_bits_[0] |= 0x00000010u;
633 _impl_.status_period_s_ = value;
634}
635inline void ModemDriverConfig::set_status_period_s(int32_t value) {
636 _internal_set_status_period_s(value);
637 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.ModemDriverConfig.status_period_s)
638}
639
640#ifdef __GNUC__
641 #pragma GCC diagnostic pop
642#endif // __GNUC__
643
644// @@protoc_insertion_point(namespace_scope)
645
646} // namespace protobuf
647} // namespace acomms
648} // namespace zeromq
649} // namespace apps
650} // namespace goby
651
652// @@protoc_insertion_point(global_scope)
653
654#include <google/protobuf/port_undef.inc>
655#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
ModemDriverConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
ModemDriverConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::acomms::protobuf::DriverConfig * mutable_driver_cfg()
void set_allocated_driver_cfg(::goby::acomms::protobuf::DriverConfig *driver_cfg)
::goby::acomms::protobuf::DriverConfig * unsafe_arena_release_driver_cfg()
const ::goby::middleware::protobuf::AppConfig & app() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
PROTOBUF_NODISCARD::goby::acomms::protobuf::DriverConfig * release_driver_cfg()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
ModemDriverConfig & operator=(const ModemDriverConfig &from)
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void unsafe_arena_set_allocated_driver_cfg(::goby::acomms::protobuf::DriverConfig *driver_cfg)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
void CopyFrom(const ModemDriverConfig &from)
::goby::middleware::protobuf::AppConfig * mutable_app()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_CONSTEXPR ModemDriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
friend void swap(ModemDriverConfig &a, ModemDriverConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
ModemDriverConfig & operator=(ModemDriverConfig &&from) noexcept
const ::goby::acomms::protobuf::DriverConfig & driver_cfg() const
PROTOBUF_NAMESPACE_OPEN ::goby::acomms::protobuf::DriverConfig * Arena::CreateMaybeMessage<::goby::acomms::protobuf::DriverConfig >(Arena *)
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmodemdriver_5fconfig_2eproto
DriverConfigDefaultTypeInternal _DriverConfig_default_instance_
ModemDriverConfigDefaultTypeInternal _ModemDriverConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.