Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
driver_base.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/acomms/protobuf/driver_base.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_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>
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
39// @@protoc_insertion_point(includes)
40#include <google/protobuf/port_def.inc>
41#define PROTOBUF_INTERNAL_EXPORT_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
52extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto;
53namespace goby {
54namespace acomms {
55namespace protobuf {
56class DriverConfig;
57struct DriverConfigDefaultTypeInternal;
58extern DriverConfigDefaultTypeInternal _DriverConfig_default_instance_;
59} // namespace protobuf
60} // namespace acomms
61} // namespace goby
62PROTOBUF_NAMESPACE_OPEN
63template<> ::goby::acomms::protobuf::DriverConfig* Arena::CreateMaybeMessage<::goby::acomms::protobuf::DriverConfig>(Arena*);
64PROTOBUF_NAMESPACE_CLOSE
65namespace goby {
66namespace acomms {
67namespace protobuf {
68
78
79const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DriverConfig_ConnectionType_descriptor();
80template<typename T>
81inline const std::string& DriverConfig_ConnectionType_Name(T enum_t_value) {
82 static_assert(::std::is_same<T, DriverConfig_ConnectionType>::value ||
83 ::std::is_integral<T>::value,
84 "Incorrect type passed to function DriverConfig_ConnectionType_Name.");
85 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
87}
89 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DriverConfig_ConnectionType* value) {
90 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverConfig_ConnectionType>(
92}
108bool DriverType_IsValid(int value);
112
113const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DriverType_descriptor();
114template<typename T>
115inline const std::string& DriverType_Name(T enum_t_value) {
116 static_assert(::std::is_same<T, DriverType>::value ||
117 ::std::is_integral<T>::value,
118 "Incorrect type passed to function DriverType_Name.");
119 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
120 DriverType_descriptor(), enum_t_value);
121}
123 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DriverType* value) {
124 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DriverType>(
125 DriverType_descriptor(), name, value);
126}
127// ===================================================================
128
129class DriverConfig final :
130 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.acomms.protobuf.DriverConfig) */ {
131 public:
132 inline DriverConfig() : DriverConfig(nullptr) {}
133 ~DriverConfig() override;
134 explicit PROTOBUF_CONSTEXPR DriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
135
137 DriverConfig(DriverConfig&& from) noexcept
138 : DriverConfig() {
139 *this = ::std::move(from);
140 }
141
142 inline DriverConfig& operator=(const DriverConfig& from) {
143 CopyFrom(from);
144 return *this;
145 }
146 inline DriverConfig& operator=(DriverConfig&& from) noexcept {
147 if (this == &from) return *this;
148 if (GetOwningArena() == from.GetOwningArena()
149 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
150 && GetOwningArena() != nullptr
151 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
152 ) {
153 InternalSwap(&from);
154 } else {
155 CopyFrom(from);
156 }
157 return *this;
158 }
159
160 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
161 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
162 }
163 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
164 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
165 }
166
167 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
168 return GetDescriptor();
169 }
170 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
171 return default_instance().GetMetadata().descriptor;
172 }
173 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
174 return default_instance().GetMetadata().reflection;
175 }
178 }
184
186 return reinterpret_cast<const DriverConfig*>(
188 }
189 static constexpr int kIndexInFileMessages =
190 0;
191
192 friend void swap(DriverConfig& a, DriverConfig& b) {
193 a.Swap(&b);
194 }
195 inline void Swap(DriverConfig* other) {
196 if (other == this) return;
197 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
198 if (GetOwningArena() != nullptr &&
199 GetOwningArena() == other->GetOwningArena()) {
200 #else // PROTOBUF_FORCE_COPY_IN_SWAP
201 if (GetOwningArena() == other->GetOwningArena()) {
202 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
203 InternalSwap(other);
204 } else {
205 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
206 }
207 }
209 if (other == this) return;
210 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
211 InternalSwap(other);
212 }
213
214 // implements Message ----------------------------------------------
215
216 DriverConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
217 return CreateMaybeMessage<DriverConfig>(arena);
218 }
219 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
220 void CopyFrom(const DriverConfig& from);
221 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
222 void MergeFrom( const DriverConfig& from) {
223 DriverConfig::MergeImpl(*this, from);
224 }
225 private:
226 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
227 public:
228 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
229 bool IsInitialized() const final;
230
231 size_t ByteSizeLong() const final;
232 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
234 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
235 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
236
237 private:
238 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
239 void SharedDtor();
240 void SetCachedSize(int size) const final;
241 void InternalSwap(DriverConfig* other);
242
243 private:
244 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
245 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
246 return "goby.acomms.protobuf.DriverConfig";
247 }
248 protected:
249 explicit DriverConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
250 bool is_message_owned = false);
251 public:
252
253 static const ClassData _class_data_;
254 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
255
256 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
257
258 // nested types ----------------------------------------------------
259
267 static inline bool ConnectionType_IsValid(int value) {
269 }
274 static constexpr int ConnectionType_ARRAYSIZE =
276 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
280 template<typename T>
281 static inline const std::string& ConnectionType_Name(T enum_t_value) {
282 static_assert(::std::is_same<T, ConnectionType>::value ||
283 ::std::is_integral<T>::value,
284 "Incorrect type passed to function ConnectionType_Name.");
285 return DriverConfig_ConnectionType_Name(enum_t_value);
286 }
287 static inline bool ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
288 ConnectionType* value) {
289 return DriverConfig_ConnectionType_Parse(name, value);
290 }
291
292 // accessors -------------------------------------------------------
293
294 enum : int {
306 };
307 // optional string line_delimiter = 21 [default = "\r\n", (.goby.field) = {
308 bool has_line_delimiter() const;
309 private:
310 bool _internal_has_line_delimiter() const;
311 public:
313 const std::string& line_delimiter() const;
314 template <typename ArgT0 = const std::string&, typename... ArgT>
315 void set_line_delimiter(ArgT0&& arg0, ArgT... args);
316 std::string* mutable_line_delimiter();
317 PROTOBUF_NODISCARD std::string* release_line_delimiter();
319 private:
320 const std::string& _internal_line_delimiter() const;
321 inline PROTOBUF_ALWAYS_INLINE void _internal_set_line_delimiter(const std::string& value);
322 std::string* _internal_mutable_line_delimiter();
323 public:
324
325 // optional string serial_port = 22 [(.goby.field) = {
326 bool has_serial_port() const;
327 private:
328 bool _internal_has_serial_port() const;
329 public:
330 void clear_serial_port();
331 const std::string& serial_port() const;
332 template <typename ArgT0 = const std::string&, typename... ArgT>
333 void set_serial_port(ArgT0&& arg0, ArgT... args);
334 std::string* mutable_serial_port();
335 PROTOBUF_NODISCARD std::string* release_serial_port();
336 void set_allocated_serial_port(std::string* serial_port);
337 private:
338 const std::string& _internal_serial_port() const;
339 inline PROTOBUF_ALWAYS_INLINE void _internal_set_serial_port(const std::string& value);
340 std::string* _internal_mutable_serial_port();
341 public:
342
343 // optional string tcp_server = 24 [(.goby.field) = {
344 bool has_tcp_server() const;
345 private:
346 bool _internal_has_tcp_server() const;
347 public:
348 void clear_tcp_server();
349 const std::string& tcp_server() const;
350 template <typename ArgT0 = const std::string&, typename... ArgT>
351 void set_tcp_server(ArgT0&& arg0, ArgT... args);
352 std::string* mutable_tcp_server();
353 PROTOBUF_NODISCARD std::string* release_tcp_server();
354 void set_allocated_tcp_server(std::string* tcp_server);
355 private:
356 const std::string& _internal_tcp_server() const;
357 inline PROTOBUF_ALWAYS_INLINE void _internal_set_tcp_server(const std::string& value);
358 std::string* _internal_mutable_tcp_server();
359 public:
360
361 // optional string raw_log = 30 [(.goby.field) = {
362 bool has_raw_log() const;
363 private:
364 bool _internal_has_raw_log() const;
365 public:
366 void clear_raw_log();
367 const std::string& raw_log() const;
368 template <typename ArgT0 = const std::string&, typename... ArgT>
369 void set_raw_log(ArgT0&& arg0, ArgT... args);
370 std::string* mutable_raw_log();
371 PROTOBUF_NODISCARD std::string* release_raw_log();
372 void set_allocated_raw_log(std::string* raw_log);
373 private:
374 const std::string& _internal_raw_log() const;
375 inline PROTOBUF_ALWAYS_INLINE void _internal_set_raw_log(const std::string& value);
376 std::string* _internal_mutable_raw_log();
377 public:
378
379 // optional int32 modem_id = 10 [(.goby.field) = {
380 bool has_modem_id() const;
381 private:
382 bool _internal_has_modem_id() const;
383 public:
384 void clear_modem_id();
385 int32_t modem_id() const;
386 void set_modem_id(int32_t value);
387 private:
388 int32_t _internal_modem_id() const;
389 void _internal_set_modem_id(int32_t value);
390 public:
391
392 // optional uint32 serial_baud = 23 [(.goby.field) = {
393 bool has_serial_baud() const;
394 private:
395 bool _internal_has_serial_baud() const;
396 public:
397 void clear_serial_baud();
398 uint32_t serial_baud() const;
399 void set_serial_baud(uint32_t value);
400 private:
401 uint32_t _internal_serial_baud() const;
402 void _internal_set_serial_baud(uint32_t value);
403 public:
404
405 // optional uint32 tcp_port = 25 [(.goby.field) = {
406 bool has_tcp_port() const;
407 private:
408 bool _internal_has_tcp_port() const;
409 public:
410 void clear_tcp_port();
411 uint32_t tcp_port() const;
412 void set_tcp_port(uint32_t value);
413 private:
414 uint32_t _internal_tcp_port() const;
415 void _internal_set_tcp_port(uint32_t value);
416 public:
417
418 // optional .goby.acomms.protobuf.DriverConfig.ConnectionType connection_type = 20 [default = CONNECTION_SERIAL, (.goby.field) = {
419 bool has_connection_type() const;
420 private:
421 bool _internal_has_connection_type() const;
422 public:
426 private:
427 ::goby::acomms::protobuf::DriverConfig_ConnectionType _internal_connection_type() const;
428 void _internal_set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value);
429 public:
430
431 // optional uint32 reconnect_interval = 26 [default = 10, (.goby.field) = {
432 bool has_reconnect_interval() const;
433 private:
434 bool _internal_has_reconnect_interval() const;
435 public:
437 uint32_t reconnect_interval() const;
438 void set_reconnect_interval(uint32_t value);
439 private:
440 uint32_t _internal_reconnect_interval() const;
441 void _internal_set_reconnect_interval(uint32_t value);
442 public:
443
444 // .goby.acomms.protobuf.DriverType driver_type = 1 [default = DRIVER_NONE, (.goby.field) = {
445 bool has_driver_type() const;
446 private:
447 bool _internal_has_driver_type() const;
448 public:
449 void clear_driver_type();
452 private:
453 ::goby::acomms::protobuf::DriverType _internal_driver_type() const;
454 void _internal_set_driver_type(::goby::acomms::protobuf::DriverType value);
455 public:
456
457 // string driver_name = 2 [(.goby.field) = {
458 bool has_driver_name() const;
459 private:
460 bool _internal_has_driver_name() const;
461 public:
462 void clear_driver_name();
463 const std::string& driver_name() const;
464 template <typename ArgT0 = const std::string&, typename... ArgT>
465 void set_driver_name(ArgT0&& arg0, ArgT... args);
466 std::string* mutable_driver_name();
467 PROTOBUF_NODISCARD std::string* release_driver_name();
468 void set_allocated_driver_name(std::string* driver_name);
469 private:
470 const std::string& _internal_driver_name() const;
471 inline PROTOBUF_ALWAYS_INLINE void _internal_set_driver_name(const std::string& value);
472 std::string* _internal_mutable_driver_name();
473 public:
474
475
476 template <typename _proto_TypeTraits,
477 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
478 bool _is_packed>
479 inline bool HasExtension(
480 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
481 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) const {
482
483 return _impl_._extensions_.Has(id.number());
484 }
485
486 template <typename _proto_TypeTraits,
487 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
488 bool _is_packed>
489 inline void ClearExtension(
490 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
491 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) {
492 _impl_._extensions_.ClearExtension(id.number());
493
494 }
495
496 template <typename _proto_TypeTraits,
497 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
498 bool _is_packed>
499 inline int ExtensionSize(
500 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
501 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) const {
502
503 return _impl_._extensions_.ExtensionSize(id.number());
504 }
505
506 template <typename _proto_TypeTraits,
507 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
508 bool _is_packed>
509 inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
510 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
511 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) const {
512
513 return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
514 id.default_value());
515 }
516
517 template <typename _proto_TypeTraits,
518 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
519 bool _is_packed>
520 inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
521 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
522 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) {
523
524 return _proto_TypeTraits::Mutable(id.number(), _field_type,
525 &_impl_._extensions_);
526 }
527
528 template <typename _proto_TypeTraits,
529 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
530 bool _is_packed>
531 inline void SetExtension(
532 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
533 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
534 typename _proto_TypeTraits::Singular::ConstType value) {
535 _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
536
537 }
538
539 template <typename _proto_TypeTraits,
540 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
541 bool _is_packed>
543 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
544 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
545 typename _proto_TypeTraits::Singular::MutableType value) {
546 _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
547 &_impl_._extensions_);
548
549 }
550 template <typename _proto_TypeTraits,
551 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
552 bool _is_packed>
554 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
555 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
556 typename _proto_TypeTraits::Singular::MutableType value) {
557 _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
558 value, &_impl_._extensions_);
559
560 }
561 template <typename _proto_TypeTraits,
562 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
563 bool _is_packed>
564 PROTOBUF_NODISCARD inline
565 typename _proto_TypeTraits::Singular::MutableType
567 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
568 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) {
569
570 return _proto_TypeTraits::Release(id.number(), _field_type,
571 &_impl_._extensions_);
572 }
573 template <typename _proto_TypeTraits,
574 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
575 bool _is_packed>
576 inline typename _proto_TypeTraits::Singular::MutableType
578 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
579 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) {
580
581 return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
582 &_impl_._extensions_);
583 }
584
585 template <typename _proto_TypeTraits,
586 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
587 bool _is_packed>
588 inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
589 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
590 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
591 int index) const {
592
593 return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
594 }
595
596 template <typename _proto_TypeTraits,
597 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
598 bool _is_packed>
599 inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
600 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
601 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
602 int index) {
603
604 return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
605 }
606
607 template <typename _proto_TypeTraits,
608 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
609 bool _is_packed>
610 inline void SetExtension(
611 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
612 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
613 int index, typename _proto_TypeTraits::Repeated::ConstType value) {
614 _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
615
616 }
617
618 template <typename _proto_TypeTraits,
619 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
620 bool _is_packed>
621 inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
622 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
623 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) {
624 typename _proto_TypeTraits::Repeated::MutableType to_add =
625 _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
626
627 return to_add;
628 }
629
630 template <typename _proto_TypeTraits,
631 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
632 bool _is_packed>
633 inline void AddExtension(
634 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
635 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id,
636 typename _proto_TypeTraits::Repeated::ConstType value) {
637 _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
638 &_impl_._extensions_);
639
640 }
641
642 template <typename _proto_TypeTraits,
643 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
644 bool _is_packed>
645 inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
647 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
648 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) const {
649
650 return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
651 }
652
653 template <typename _proto_TypeTraits,
654 ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
655 bool _is_packed>
656 inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
658 const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
659 DriverConfig, _proto_TypeTraits, _field_type, _is_packed>& id) {
660
661 return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
662 _is_packed, &_impl_._extensions_);
663 }
664
666 DriverCase driver_case() const;
667 // @@protoc_insertion_point(class_scope:goby.acomms.protobuf.DriverConfig)
668 private:
669 class _Internal;
670 void set_has_driver_type();
671 void set_has_driver_name();
672
673 inline bool has_driver() const;
674 inline void clear_has_driver();
675
676 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
677 typedef void InternalArenaConstructable_;
678 typedef void DestructorSkippable_;
679 struct Impl_ {
680 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
681
682 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
683 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
684 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_line_delimiter_;
685 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr line_delimiter_;
686 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serial_port_;
687 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tcp_server_;
688 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_log_;
689 int32_t modem_id_;
690 uint32_t serial_baud_;
691 uint32_t tcp_port_;
692 int connection_type_;
693 uint32_t reconnect_interval_;
695 constexpr DriverUnion() : _constinit_{} {}
696 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
698 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr driver_name_;
699 } driver_;
700 uint32_t _oneof_case_[1];
701
702 };
703 union { Impl_ _impl_; };
704 friend struct ::TableStruct_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto;
705};
706// ===================================================================
707
708
709// ===================================================================
710
711#ifdef __GNUC__
712 #pragma GCC diagnostic push
713 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
714#endif // __GNUC__
715// DriverConfig
716
717// .goby.acomms.protobuf.DriverType driver_type = 1 [default = DRIVER_NONE, (.goby.field) = {
718inline bool DriverConfig::_internal_has_driver_type() const {
719 return driver_case() == kDriverType;
720}
721inline bool DriverConfig::has_driver_type() const {
722 return _internal_has_driver_type();
723}
724inline void DriverConfig::set_has_driver_type() {
725 _impl_._oneof_case_[0] = kDriverType;
726}
728 if (_internal_has_driver_type()) {
729 _impl_.driver_.driver_type_ = 1;
730 clear_has_driver();
731 }
732}
733inline ::goby::acomms::protobuf::DriverType DriverConfig::_internal_driver_type() const {
734 if (_internal_has_driver_type()) {
735 return static_cast< ::goby::acomms::protobuf::DriverType >(_impl_.driver_.driver_type_);
736 }
737 return static_cast< ::goby::acomms::protobuf::DriverType >(1);
738}
739inline ::goby::acomms::protobuf::DriverType DriverConfig::driver_type() const {
740 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.driver_type)
741 return _internal_driver_type();
742}
743inline void DriverConfig::_internal_set_driver_type(::goby::acomms::protobuf::DriverType value) {
745 if (!_internal_has_driver_type()) {
746 clear_driver();
747 set_has_driver_type();
748 }
749 _impl_.driver_.driver_type_ = value;
750}
752 _internal_set_driver_type(value);
753 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.driver_type)
754}
755
756// string driver_name = 2 [(.goby.field) = {
757inline bool DriverConfig::_internal_has_driver_name() const {
758 return driver_case() == kDriverName;
759}
760inline bool DriverConfig::has_driver_name() const {
761 return _internal_has_driver_name();
762}
763inline void DriverConfig::set_has_driver_name() {
764 _impl_._oneof_case_[0] = kDriverName;
765}
767 if (_internal_has_driver_name()) {
768 _impl_.driver_.driver_name_.Destroy();
769 clear_has_driver();
770 }
771}
772inline const std::string& DriverConfig::driver_name() const {
773 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.driver_name)
774 return _internal_driver_name();
775}
776template <typename ArgT0, typename... ArgT>
777inline void DriverConfig::set_driver_name(ArgT0&& arg0, ArgT... args) {
778 if (!_internal_has_driver_name()) {
779 clear_driver();
780 set_has_driver_name();
781 _impl_.driver_.driver_name_.InitDefault();
782 }
783 _impl_.driver_.driver_name_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
784 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.driver_name)
785}
787 std::string* _s = _internal_mutable_driver_name();
788 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.driver_name)
789 return _s;
790}
791inline const std::string& DriverConfig::_internal_driver_name() const {
792 if (_internal_has_driver_name()) {
793 return _impl_.driver_.driver_name_.Get();
794 }
795 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
796}
797inline void DriverConfig::_internal_set_driver_name(const std::string& value) {
798 if (!_internal_has_driver_name()) {
799 clear_driver();
800 set_has_driver_name();
801 _impl_.driver_.driver_name_.InitDefault();
802 }
803 _impl_.driver_.driver_name_.Set(value, GetArenaForAllocation());
804}
805inline std::string* DriverConfig::_internal_mutable_driver_name() {
806 if (!_internal_has_driver_name()) {
807 clear_driver();
808 set_has_driver_name();
809 _impl_.driver_.driver_name_.InitDefault();
810 }
811 return _impl_.driver_.driver_name_.Mutable( GetArenaForAllocation());
812}
814 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.driver_name)
815 if (_internal_has_driver_name()) {
816 clear_has_driver();
817 return _impl_.driver_.driver_name_.Release();
818 } else {
819 return nullptr;
820 }
821}
823 if (has_driver()) {
824 clear_driver();
825 }
826 if (driver_name != nullptr) {
827 set_has_driver_name();
828 _impl_.driver_.driver_name_.InitAllocated(driver_name, GetArenaForAllocation());
829 }
830 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.driver_name)
831}
832
833// optional int32 modem_id = 10 [(.goby.field) = {
834inline bool DriverConfig::_internal_has_modem_id() const {
835 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
836 return value;
837}
838inline bool DriverConfig::has_modem_id() const {
839 return _internal_has_modem_id();
840}
842 _impl_.modem_id_ = 0;
843 _impl_._has_bits_[0] &= ~0x00000010u;
844}
845inline int32_t DriverConfig::_internal_modem_id() const {
846 return _impl_.modem_id_;
847}
848inline int32_t DriverConfig::modem_id() const {
849 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.modem_id)
850 return _internal_modem_id();
851}
852inline void DriverConfig::_internal_set_modem_id(int32_t value) {
853 _impl_._has_bits_[0] |= 0x00000010u;
854 _impl_.modem_id_ = value;
855}
856inline void DriverConfig::set_modem_id(int32_t value) {
857 _internal_set_modem_id(value);
858 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.modem_id)
859}
860
861// optional .goby.acomms.protobuf.DriverConfig.ConnectionType connection_type = 20 [default = CONNECTION_SERIAL, (.goby.field) = {
862inline bool DriverConfig::_internal_has_connection_type() const {
863 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
864 return value;
865}
867 return _internal_has_connection_type();
868}
870 _impl_.connection_type_ = 1;
871 _impl_._has_bits_[0] &= ~0x00000080u;
872}
873inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::_internal_connection_type() const {
874 return static_cast< ::goby::acomms::protobuf::DriverConfig_ConnectionType >(_impl_.connection_type_);
875}
876inline ::goby::acomms::protobuf::DriverConfig_ConnectionType DriverConfig::connection_type() const {
877 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.connection_type)
878 return _internal_connection_type();
879}
880inline void DriverConfig::_internal_set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value) {
882 _impl_._has_bits_[0] |= 0x00000080u;
883 _impl_.connection_type_ = value;
884}
886 _internal_set_connection_type(value);
887 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.connection_type)
888}
889
890// optional string line_delimiter = 21 [default = "\r\n", (.goby.field) = {
891inline bool DriverConfig::_internal_has_line_delimiter() const {
892 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
893 return value;
894}
896 return _internal_has_line_delimiter();
897}
899 _impl_.line_delimiter_.ClearToDefault(::goby::acomms::protobuf::DriverConfig::Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_, GetArenaForAllocation());
900 _impl_._has_bits_[0] &= ~0x00000001u;
901}
902inline const std::string& DriverConfig::line_delimiter() const {
903 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.line_delimiter)
904 if (_impl_.line_delimiter_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_.get();
905 return _internal_line_delimiter();
906}
907template <typename ArgT0, typename... ArgT>
908inline PROTOBUF_ALWAYS_INLINE
909void DriverConfig::set_line_delimiter(ArgT0&& arg0, ArgT... args) {
910 _impl_._has_bits_[0] |= 0x00000001u;
911 _impl_.line_delimiter_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
912 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.line_delimiter)
913}
915 std::string* _s = _internal_mutable_line_delimiter();
916 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.line_delimiter)
917 return _s;
918}
919inline const std::string& DriverConfig::_internal_line_delimiter() const {
920 return _impl_.line_delimiter_.Get();
921}
922inline void DriverConfig::_internal_set_line_delimiter(const std::string& value) {
923 _impl_._has_bits_[0] |= 0x00000001u;
924 _impl_.line_delimiter_.Set(value, GetArenaForAllocation());
925}
926inline std::string* DriverConfig::_internal_mutable_line_delimiter() {
927 _impl_._has_bits_[0] |= 0x00000001u;
928 return _impl_.line_delimiter_.Mutable(::goby::acomms::protobuf::DriverConfig::Impl_::_i_give_permission_to_break_this_code_default_line_delimiter_, GetArenaForAllocation());
929}
931 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.line_delimiter)
932 if (!_internal_has_line_delimiter()) {
933 return nullptr;
934 }
935 _impl_._has_bits_[0] &= ~0x00000001u;
936 auto* p = _impl_.line_delimiter_.Release();
937 return p;
938}
940 if (line_delimiter != nullptr) {
941 _impl_._has_bits_[0] |= 0x00000001u;
942 } else {
943 _impl_._has_bits_[0] &= ~0x00000001u;
944 }
945 _impl_.line_delimiter_.SetAllocated(line_delimiter, GetArenaForAllocation());
946 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.line_delimiter)
947}
948
949// optional string serial_port = 22 [(.goby.field) = {
950inline bool DriverConfig::_internal_has_serial_port() const {
951 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
952 return value;
953}
954inline bool DriverConfig::has_serial_port() const {
955 return _internal_has_serial_port();
956}
958 _impl_.serial_port_.ClearToEmpty();
959 _impl_._has_bits_[0] &= ~0x00000002u;
960}
961inline const std::string& DriverConfig::serial_port() const {
962 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.serial_port)
963 return _internal_serial_port();
964}
965template <typename ArgT0, typename... ArgT>
966inline PROTOBUF_ALWAYS_INLINE
967void DriverConfig::set_serial_port(ArgT0&& arg0, ArgT... args) {
968 _impl_._has_bits_[0] |= 0x00000002u;
969 _impl_.serial_port_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
970 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.serial_port)
971}
973 std::string* _s = _internal_mutable_serial_port();
974 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.serial_port)
975 return _s;
976}
977inline const std::string& DriverConfig::_internal_serial_port() const {
978 return _impl_.serial_port_.Get();
979}
980inline void DriverConfig::_internal_set_serial_port(const std::string& value) {
981 _impl_._has_bits_[0] |= 0x00000002u;
982 _impl_.serial_port_.Set(value, GetArenaForAllocation());
983}
984inline std::string* DriverConfig::_internal_mutable_serial_port() {
985 _impl_._has_bits_[0] |= 0x00000002u;
986 return _impl_.serial_port_.Mutable(GetArenaForAllocation());
987}
989 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.serial_port)
990 if (!_internal_has_serial_port()) {
991 return nullptr;
992 }
993 _impl_._has_bits_[0] &= ~0x00000002u;
994 auto* p = _impl_.serial_port_.Release();
995#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
996 if (_impl_.serial_port_.IsDefault()) {
997 _impl_.serial_port_.Set("", GetArenaForAllocation());
998 }
999#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1000 return p;
1001}
1003 if (serial_port != nullptr) {
1004 _impl_._has_bits_[0] |= 0x00000002u;
1005 } else {
1006 _impl_._has_bits_[0] &= ~0x00000002u;
1007 }
1008 _impl_.serial_port_.SetAllocated(serial_port, GetArenaForAllocation());
1009#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1010 if (_impl_.serial_port_.IsDefault()) {
1011 _impl_.serial_port_.Set("", GetArenaForAllocation());
1012 }
1013#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1014 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.serial_port)
1015}
1016
1017// optional uint32 serial_baud = 23 [(.goby.field) = {
1018inline bool DriverConfig::_internal_has_serial_baud() const {
1019 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1020 return value;
1021}
1023 return _internal_has_serial_baud();
1024}
1026 _impl_.serial_baud_ = 0u;
1027 _impl_._has_bits_[0] &= ~0x00000020u;
1028}
1029inline uint32_t DriverConfig::_internal_serial_baud() const {
1030 return _impl_.serial_baud_;
1031}
1032inline uint32_t DriverConfig::serial_baud() const {
1033 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.serial_baud)
1034 return _internal_serial_baud();
1035}
1036inline void DriverConfig::_internal_set_serial_baud(uint32_t value) {
1037 _impl_._has_bits_[0] |= 0x00000020u;
1038 _impl_.serial_baud_ = value;
1039}
1040inline void DriverConfig::set_serial_baud(uint32_t value) {
1041 _internal_set_serial_baud(value);
1042 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.serial_baud)
1043}
1044
1045// optional string tcp_server = 24 [(.goby.field) = {
1046inline bool DriverConfig::_internal_has_tcp_server() const {
1047 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1048 return value;
1049}
1050inline bool DriverConfig::has_tcp_server() const {
1051 return _internal_has_tcp_server();
1052}
1054 _impl_.tcp_server_.ClearToEmpty();
1055 _impl_._has_bits_[0] &= ~0x00000004u;
1056}
1057inline const std::string& DriverConfig::tcp_server() const {
1058 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.tcp_server)
1059 return _internal_tcp_server();
1060}
1061template <typename ArgT0, typename... ArgT>
1062inline PROTOBUF_ALWAYS_INLINE
1063void DriverConfig::set_tcp_server(ArgT0&& arg0, ArgT... args) {
1064 _impl_._has_bits_[0] |= 0x00000004u;
1065 _impl_.tcp_server_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1066 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.tcp_server)
1067}
1069 std::string* _s = _internal_mutable_tcp_server();
1070 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.tcp_server)
1071 return _s;
1072}
1073inline const std::string& DriverConfig::_internal_tcp_server() const {
1074 return _impl_.tcp_server_.Get();
1075}
1076inline void DriverConfig::_internal_set_tcp_server(const std::string& value) {
1077 _impl_._has_bits_[0] |= 0x00000004u;
1078 _impl_.tcp_server_.Set(value, GetArenaForAllocation());
1079}
1080inline std::string* DriverConfig::_internal_mutable_tcp_server() {
1081 _impl_._has_bits_[0] |= 0x00000004u;
1082 return _impl_.tcp_server_.Mutable(GetArenaForAllocation());
1083}
1085 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.tcp_server)
1086 if (!_internal_has_tcp_server()) {
1087 return nullptr;
1088 }
1089 _impl_._has_bits_[0] &= ~0x00000004u;
1090 auto* p = _impl_.tcp_server_.Release();
1091#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1092 if (_impl_.tcp_server_.IsDefault()) {
1093 _impl_.tcp_server_.Set("", GetArenaForAllocation());
1094 }
1095#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1096 return p;
1097}
1099 if (tcp_server != nullptr) {
1100 _impl_._has_bits_[0] |= 0x00000004u;
1101 } else {
1102 _impl_._has_bits_[0] &= ~0x00000004u;
1103 }
1104 _impl_.tcp_server_.SetAllocated(tcp_server, GetArenaForAllocation());
1105#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1106 if (_impl_.tcp_server_.IsDefault()) {
1107 _impl_.tcp_server_.Set("", GetArenaForAllocation());
1108 }
1109#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1110 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.tcp_server)
1111}
1112
1113// optional uint32 tcp_port = 25 [(.goby.field) = {
1114inline bool DriverConfig::_internal_has_tcp_port() const {
1115 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1116 return value;
1117}
1118inline bool DriverConfig::has_tcp_port() const {
1119 return _internal_has_tcp_port();
1120}
1122 _impl_.tcp_port_ = 0u;
1123 _impl_._has_bits_[0] &= ~0x00000040u;
1124}
1125inline uint32_t DriverConfig::_internal_tcp_port() const {
1126 return _impl_.tcp_port_;
1127}
1128inline uint32_t DriverConfig::tcp_port() const {
1129 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.tcp_port)
1130 return _internal_tcp_port();
1131}
1132inline void DriverConfig::_internal_set_tcp_port(uint32_t value) {
1133 _impl_._has_bits_[0] |= 0x00000040u;
1134 _impl_.tcp_port_ = value;
1135}
1136inline void DriverConfig::set_tcp_port(uint32_t value) {
1137 _internal_set_tcp_port(value);
1138 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.tcp_port)
1139}
1140
1141// optional uint32 reconnect_interval = 26 [default = 10, (.goby.field) = {
1142inline bool DriverConfig::_internal_has_reconnect_interval() const {
1143 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1144 return value;
1145}
1147 return _internal_has_reconnect_interval();
1148}
1150 _impl_.reconnect_interval_ = 10u;
1151 _impl_._has_bits_[0] &= ~0x00000100u;
1152}
1153inline uint32_t DriverConfig::_internal_reconnect_interval() const {
1154 return _impl_.reconnect_interval_;
1155}
1156inline uint32_t DriverConfig::reconnect_interval() const {
1157 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.reconnect_interval)
1158 return _internal_reconnect_interval();
1159}
1160inline void DriverConfig::_internal_set_reconnect_interval(uint32_t value) {
1161 _impl_._has_bits_[0] |= 0x00000100u;
1162 _impl_.reconnect_interval_ = value;
1163}
1164inline void DriverConfig::set_reconnect_interval(uint32_t value) {
1165 _internal_set_reconnect_interval(value);
1166 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.reconnect_interval)
1167}
1168
1169// optional string raw_log = 30 [(.goby.field) = {
1170inline bool DriverConfig::_internal_has_raw_log() const {
1171 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1172 return value;
1173}
1174inline bool DriverConfig::has_raw_log() const {
1175 return _internal_has_raw_log();
1176}
1178 _impl_.raw_log_.ClearToEmpty();
1179 _impl_._has_bits_[0] &= ~0x00000008u;
1180}
1181inline const std::string& DriverConfig::raw_log() const {
1182 // @@protoc_insertion_point(field_get:goby.acomms.protobuf.DriverConfig.raw_log)
1183 return _internal_raw_log();
1184}
1185template <typename ArgT0, typename... ArgT>
1186inline PROTOBUF_ALWAYS_INLINE
1187void DriverConfig::set_raw_log(ArgT0&& arg0, ArgT... args) {
1188 _impl_._has_bits_[0] |= 0x00000008u;
1189 _impl_.raw_log_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1190 // @@protoc_insertion_point(field_set:goby.acomms.protobuf.DriverConfig.raw_log)
1191}
1192inline std::string* DriverConfig::mutable_raw_log() {
1193 std::string* _s = _internal_mutable_raw_log();
1194 // @@protoc_insertion_point(field_mutable:goby.acomms.protobuf.DriverConfig.raw_log)
1195 return _s;
1196}
1197inline const std::string& DriverConfig::_internal_raw_log() const {
1198 return _impl_.raw_log_.Get();
1199}
1200inline void DriverConfig::_internal_set_raw_log(const std::string& value) {
1201 _impl_._has_bits_[0] |= 0x00000008u;
1202 _impl_.raw_log_.Set(value, GetArenaForAllocation());
1203}
1204inline std::string* DriverConfig::_internal_mutable_raw_log() {
1205 _impl_._has_bits_[0] |= 0x00000008u;
1206 return _impl_.raw_log_.Mutable(GetArenaForAllocation());
1207}
1208inline std::string* DriverConfig::release_raw_log() {
1209 // @@protoc_insertion_point(field_release:goby.acomms.protobuf.DriverConfig.raw_log)
1210 if (!_internal_has_raw_log()) {
1211 return nullptr;
1212 }
1213 _impl_._has_bits_[0] &= ~0x00000008u;
1214 auto* p = _impl_.raw_log_.Release();
1215#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1216 if (_impl_.raw_log_.IsDefault()) {
1217 _impl_.raw_log_.Set("", GetArenaForAllocation());
1218 }
1219#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1220 return p;
1221}
1223 if (raw_log != nullptr) {
1224 _impl_._has_bits_[0] |= 0x00000008u;
1225 } else {
1226 _impl_._has_bits_[0] &= ~0x00000008u;
1227 }
1228 _impl_.raw_log_.SetAllocated(raw_log, GetArenaForAllocation());
1229#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1230 if (_impl_.raw_log_.IsDefault()) {
1231 _impl_.raw_log_.Set("", GetArenaForAllocation());
1232 }
1233#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1234 // @@protoc_insertion_point(field_set_allocated:goby.acomms.protobuf.DriverConfig.raw_log)
1235}
1236
1237inline bool DriverConfig::has_driver() const {
1238 return driver_case() != DRIVER_NOT_SET;
1239}
1240inline void DriverConfig::clear_has_driver() {
1241 _impl_._oneof_case_[0] = DRIVER_NOT_SET;
1242}
1244 return DriverConfig::DriverCase(_impl_._oneof_case_[0]);
1245}
1246#ifdef __GNUC__
1247 #pragma GCC diagnostic pop
1248#endif // __GNUC__
1249
1250// @@protoc_insertion_point(namespace_scope)
1251
1252} // namespace protobuf
1253} // namespace acomms
1254} // namespace goby
1255
1256PROTOBUF_NAMESPACE_OPEN
1257
1258template <> struct is_proto_enum< ::goby::acomms::protobuf::DriverConfig_ConnectionType> : ::std::true_type {};
1259template <>
1261 return ::goby::acomms::protobuf::DriverConfig_ConnectionType_descriptor();
1262}
1263template <> struct is_proto_enum< ::goby::acomms::protobuf::DriverType> : ::std::true_type {};
1264template <>
1266 return ::goby::acomms::protobuf::DriverType_descriptor();
1267}
1268
1269PROTOBUF_NAMESPACE_CLOSE
1270
1271// @@protoc_insertion_point(global_scope)
1272
1273#include <google/protobuf/port_undef.inc>
1274#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
_proto_TypeTraits::Singular::MutableType MutableExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id)
void SetExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, int index, typename _proto_TypeTraits::Repeated::ConstType value)
::goby::acomms::protobuf::DriverType driver_type() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
DriverConfig & operator=(const DriverConfig &from)
const std::string & line_delimiter() const
void set_reconnect_interval(uint32_t value)
void set_allocated_serial_port(std::string *serial_port)
void set_driver_name(ArgT0 &&arg0, ArgT... args)
void set_connection_type(::goby::acomms::protobuf::DriverConfig_ConnectionType value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const DriverConfig & default_instance()
const _proto_TypeTraits::Repeated::RepeatedFieldType & GetRepeatedExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id) const
_proto_TypeTraits::Repeated::MutableType AddExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id)
int ExtensionSize(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id) const
void SetExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, typename _proto_TypeTraits::Singular::ConstType value)
_proto_TypeTraits::Repeated::ConstType GetExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, int index) const
void UnsafeArenaSetAllocatedExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, typename _proto_TypeTraits::Singular::MutableType value)
PROTOBUF_NODISCARD std::string * release_driver_name()
void set_raw_log(ArgT0 &&arg0, ArgT... args)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void AddExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, typename _proto_TypeTraits::Repeated::ConstType value)
PROTOBUF_CONSTEXPR DriverConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const std::string & ConnectionType_Name(T enum_t_value)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ConnectionType_descriptor()
void set_serial_port(ArgT0 &&arg0, ArgT... args)
void CopyFrom(const DriverConfig &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
friend void swap(DriverConfig &a, DriverConfig &b)
const std::string & tcp_server() const
const std::string & raw_log() const
static constexpr ConnectionType CONNECTION_SERIAL
void set_allocated_driver_name(std::string *driver_name)
void set_allocated_line_delimiter(std::string *line_delimiter)
DriverConfig & operator=(DriverConfig &&from) noexcept
void set_tcp_server(ArgT0 &&arg0, ArgT... args)
void set_allocated_tcp_server(std::string *tcp_server)
static constexpr ConnectionType ConnectionType_MAX
DriverConfig(DriverConfig &&from) noexcept
PROTOBUF_NODISCARD std::string * release_raw_log()
static constexpr ConnectionType CONNECTION_TCP_AS_CLIENT
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void set_line_delimiter(ArgT0 &&arg0, ArgT... args)
PROTOBUF_NODISCARD std::string * release_serial_port()
static bool ConnectionType_IsValid(int value)
DriverConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
_proto_TypeTraits::Repeated::RepeatedFieldType * MutableRepeatedExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id)
::goby::acomms::protobuf::DriverConfig_ConnectionType connection_type() const
PROTOBUF_NODISCARD std::string * release_line_delimiter()
static constexpr ConnectionType CONNECTION_TCP_AS_SERVER
_proto_TypeTraits::Singular::ConstType GetExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id) const
void SetAllocatedExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, typename _proto_TypeTraits::Singular::MutableType value)
void UnsafeArenaSwap(DriverConfig *other)
const std::string & driver_name() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_driver_type(::goby::acomms::protobuf::DriverType value)
void ClearExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id)
static const DriverConfig * internal_default_instance()
void MergeFrom(const DriverConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
DriverConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
_proto_TypeTraits::Repeated::MutableType MutableExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id, int index)
DriverConfig(const DriverConfig &from)
static constexpr int ConnectionType_ARRAYSIZE
static constexpr int kIndexInFileMessages
PROTOBUF_NODISCARD _proto_TypeTraits::Singular::MutableType ReleaseExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id)
_proto_TypeTraits::Singular::MutableType UnsafeArenaReleaseExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id)
bool HasExtension(const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< DriverConfig, _proto_TypeTraits, _field_type, _is_packed > &id) const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const std::string & serial_port() const
PROTOBUF_NODISCARD std::string * release_tcp_server()
void set_allocated_raw_log(std::string *raw_log)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static bool ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionType *value)
static constexpr ConnectionType ConnectionType_MIN
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::protobuf::DriverConfig_ConnectionType >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2facomms_2fprotobuf_2fdriver_5fbase_2eproto
const EnumDescriptor * GetEnumDescriptor< ::goby::acomms::protobuf::DriverType >()
constexpr int DriverConfig_ConnectionType_ConnectionType_ARRAYSIZE
constexpr DriverType DriverType_MIN
bool DriverConfig_ConnectionType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DriverConfig_ConnectionType *value)
bool DriverType_IsValid(int value)
const std::string & DriverType_Name(T enum_t_value)
constexpr int DriverType_ARRAYSIZE
bool DriverType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DriverType *value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DriverConfig_ConnectionType_descriptor()
constexpr DriverType DriverType_MAX
constexpr DriverConfig_ConnectionType DriverConfig_ConnectionType_ConnectionType_MIN
constexpr DriverConfig_ConnectionType DriverConfig_ConnectionType_ConnectionType_MAX
const std::string & DriverConfig_ConnectionType_Name(T enum_t_value)
bool DriverConfig_ConnectionType_IsValid(int value)
DriverConfigDefaultTypeInternal _DriverConfig_default_instance_
@ DriverConfig_ConnectionType_CONNECTION_TCP_AS_SERVER
@ DriverConfig_ConnectionType_CONNECTION_TCP_AS_CLIENT
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DriverType_descriptor()
The global namespace for the Goby project.
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr driver_name_