Goby3 3.1.5a
2024.05.23
Loading...
Searching...
No Matches
waveglider_sv2_frontseat_driver_config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/middleware/frontseat/waveglider/waveglider_sv2_frontseat_driver_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_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>
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_2fmiddleware_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto
42PROTOBUF_NAMESPACE_OPEN
43namespace internal {
44class AnyMetadata;
45} // namespace internal
46PROTOBUF_NAMESPACE_CLOSE
47
48// Internal implementation detail -- do not use these members.
53namespace goby {
54namespace middleware {
55namespace frontseat {
56namespace protobuf {
57class WavegliderSV2Config;
58struct WavegliderSV2ConfigDefaultTypeInternal;
59extern WavegliderSV2ConfigDefaultTypeInternal _WavegliderSV2Config_default_instance_;
60} // namespace protobuf
61} // namespace frontseat
62} // namespace middleware
63} // namespace goby
64PROTOBUF_NAMESPACE_OPEN
65template<> ::goby::middleware::frontseat::protobuf::WavegliderSV2Config* Arena::CreateMaybeMessage<::goby::middleware::frontseat::protobuf::WavegliderSV2Config>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace goby {
68namespace middleware {
69namespace frontseat {
70namespace protobuf {
71
72// ===================================================================
73
75 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.middleware.frontseat.protobuf.WavegliderSV2Config) */ {
76 public:
79 explicit PROTOBUF_CONSTEXPR WavegliderSV2Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
80
84 *this = ::std::move(from);
85 }
86
88 CopyFrom(from);
89 return *this;
90 }
92 if (this == &from) return *this;
93 if (GetOwningArena() == from.GetOwningArena()
94 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
95 && GetOwningArena() != nullptr
96 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
97 ) {
98 InternalSwap(&from);
99 } else {
100 CopyFrom(from);
101 }
102 return *this;
103 }
104
105 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
106 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
107 }
108 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
109 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
110 }
111
112 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
113 return GetDescriptor();
114 }
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
116 return default_instance().GetMetadata().descriptor;
117 }
118 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
119 return default_instance().GetMetadata().reflection;
120 }
123 }
125 return reinterpret_cast<const WavegliderSV2Config*>(
127 }
128 static constexpr int kIndexInFileMessages =
129 0;
130
132 a.Swap(&b);
133 }
134 inline void Swap(WavegliderSV2Config* other) {
135 if (other == this) return;
136 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
137 if (GetOwningArena() != nullptr &&
138 GetOwningArena() == other->GetOwningArena()) {
139 #else // PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() == other->GetOwningArena()) {
141 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
142 InternalSwap(other);
143 } else {
144 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
145 }
146 }
148 if (other == this) return;
149 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
150 InternalSwap(other);
151 }
152
153 // implements Message ----------------------------------------------
154
155 WavegliderSV2Config* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
156 return CreateMaybeMessage<WavegliderSV2Config>(arena);
157 }
158 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
159 void CopyFrom(const WavegliderSV2Config& from);
160 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
161 void MergeFrom( const WavegliderSV2Config& from) {
162 WavegliderSV2Config::MergeImpl(*this, from);
163 }
164 private:
165 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
166 public:
167 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
168 bool IsInitialized() const final;
169
170 size_t ByteSizeLong() const final;
171 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
173 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
174 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
175
176 private:
177 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
178 void SharedDtor();
179 void SetCachedSize(int size) const final;
180 void InternalSwap(WavegliderSV2Config* other);
181
182 private:
183 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
184 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
185 return "goby.middleware.frontseat.protobuf.WavegliderSV2Config";
186 }
187 protected:
188 explicit WavegliderSV2Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
189 bool is_message_owned = false);
190 public:
191
192 static const ClassData _class_data_;
193 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
194
195 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
196
197 // nested types ----------------------------------------------------
198
199 // accessors -------------------------------------------------------
200
201 enum : int {
206 };
207 // required string pm_serial_port = 1;
208 bool has_pm_serial_port() const;
209 private:
210 bool _internal_has_pm_serial_port() const;
211 public:
213 const std::string& pm_serial_port() const;
214 template <typename ArgT0 = const std::string&, typename... ArgT>
215 void set_pm_serial_port(ArgT0&& arg0, ArgT... args);
216 std::string* mutable_pm_serial_port();
217 PROTOBUF_NODISCARD std::string* release_pm_serial_port();
219 private:
220 const std::string& _internal_pm_serial_port() const;
221 inline PROTOBUF_ALWAYS_INLINE void _internal_set_pm_serial_port(const std::string& value);
222 std::string* _internal_mutable_pm_serial_port();
223 public:
224
225 // optional uint32 task_id = 4 [default = 1];
226 bool has_task_id() const;
227 private:
228 bool _internal_has_task_id() const;
229 public:
230 void clear_task_id();
231 uint32_t task_id() const;
232 void set_task_id(uint32_t value);
233 private:
234 uint32_t _internal_task_id() const;
235 void _internal_set_task_id(uint32_t value);
236 public:
237
238 // optional uint32 pm_serial_baud = 2 [default = 115200];
239 bool has_pm_serial_baud() const;
240 private:
241 bool _internal_has_pm_serial_baud() const;
242 public:
244 uint32_t pm_serial_baud() const;
245 void set_pm_serial_baud(uint32_t value);
246 private:
247 uint32_t _internal_pm_serial_baud() const;
248 void _internal_set_pm_serial_baud(uint32_t value);
249 public:
250
251 // optional uint32 board_id = 3 [default = 3];
252 bool has_board_id() const;
253 private:
254 bool _internal_has_board_id() const;
255 public:
256 void clear_board_id();
257 uint32_t board_id() const;
258 void set_board_id(uint32_t value);
259 private:
260 uint32_t _internal_board_id() const;
261 void _internal_set_board_id(uint32_t value);
262 public:
263
264 // @@protoc_insertion_point(class_scope:goby.middleware.frontseat.protobuf.WavegliderSV2Config)
265 private:
266 class _Internal;
267
268 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
269 typedef void InternalArenaConstructable_;
270 typedef void DestructorSkippable_;
271 struct Impl_ {
272 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
273 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
274 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr pm_serial_port_;
275 uint32_t task_id_;
276 uint32_t pm_serial_baud_;
277 uint32_t board_id_;
278 };
279 union { Impl_ _impl_; };
280 friend struct ::TableStruct_goby_2fmiddleware_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto;
281};
282// ===================================================================
283
284static const int kWavegliderSv2ConfigFieldNumber = 1001;
285extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::middleware::frontseat::protobuf::Config,
286 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::WavegliderSV2Config >, 11, false >
288
289// ===================================================================
290
291#ifdef __GNUC__
292 #pragma GCC diagnostic push
293 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
294#endif // __GNUC__
295// WavegliderSV2Config
296
297// required string pm_serial_port = 1;
298inline bool WavegliderSV2Config::_internal_has_pm_serial_port() const {
299 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
300 return value;
301}
303 return _internal_has_pm_serial_port();
304}
306 _impl_.pm_serial_port_.ClearToEmpty();
307 _impl_._has_bits_[0] &= ~0x00000001u;
308}
309inline const std::string& WavegliderSV2Config::pm_serial_port() const {
310 // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_port)
311 return _internal_pm_serial_port();
312}
313template <typename ArgT0, typename... ArgT>
314inline PROTOBUF_ALWAYS_INLINE
315void WavegliderSV2Config::set_pm_serial_port(ArgT0&& arg0, ArgT... args) {
316 _impl_._has_bits_[0] |= 0x00000001u;
317 _impl_.pm_serial_port_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
318 // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_port)
319}
321 std::string* _s = _internal_mutable_pm_serial_port();
322 // @@protoc_insertion_point(field_mutable:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_port)
323 return _s;
324}
325inline const std::string& WavegliderSV2Config::_internal_pm_serial_port() const {
326 return _impl_.pm_serial_port_.Get();
327}
328inline void WavegliderSV2Config::_internal_set_pm_serial_port(const std::string& value) {
329 _impl_._has_bits_[0] |= 0x00000001u;
330 _impl_.pm_serial_port_.Set(value, GetArenaForAllocation());
331}
332inline std::string* WavegliderSV2Config::_internal_mutable_pm_serial_port() {
333 _impl_._has_bits_[0] |= 0x00000001u;
334 return _impl_.pm_serial_port_.Mutable(GetArenaForAllocation());
335}
337 // @@protoc_insertion_point(field_release:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_port)
338 if (!_internal_has_pm_serial_port()) {
339 return nullptr;
340 }
341 _impl_._has_bits_[0] &= ~0x00000001u;
342 auto* p = _impl_.pm_serial_port_.Release();
343#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
344 if (_impl_.pm_serial_port_.IsDefault()) {
345 _impl_.pm_serial_port_.Set("", GetArenaForAllocation());
346 }
347#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
348 return p;
349}
351 if (pm_serial_port != nullptr) {
352 _impl_._has_bits_[0] |= 0x00000001u;
353 } else {
354 _impl_._has_bits_[0] &= ~0x00000001u;
355 }
356 _impl_.pm_serial_port_.SetAllocated(pm_serial_port, GetArenaForAllocation());
357#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
358 if (_impl_.pm_serial_port_.IsDefault()) {
359 _impl_.pm_serial_port_.Set("", GetArenaForAllocation());
360 }
361#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
362 // @@protoc_insertion_point(field_set_allocated:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_port)
363}
364
365// optional uint32 pm_serial_baud = 2 [default = 115200];
366inline bool WavegliderSV2Config::_internal_has_pm_serial_baud() const {
367 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
368 return value;
369}
371 return _internal_has_pm_serial_baud();
372}
374 _impl_.pm_serial_baud_ = 115200u;
375 _impl_._has_bits_[0] &= ~0x00000004u;
376}
377inline uint32_t WavegliderSV2Config::_internal_pm_serial_baud() const {
378 return _impl_.pm_serial_baud_;
379}
380inline uint32_t WavegliderSV2Config::pm_serial_baud() const {
381 // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_baud)
382 return _internal_pm_serial_baud();
383}
384inline void WavegliderSV2Config::_internal_set_pm_serial_baud(uint32_t value) {
385 _impl_._has_bits_[0] |= 0x00000004u;
386 _impl_.pm_serial_baud_ = value;
387}
388inline void WavegliderSV2Config::set_pm_serial_baud(uint32_t value) {
389 _internal_set_pm_serial_baud(value);
390 // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.WavegliderSV2Config.pm_serial_baud)
391}
392
393// optional uint32 board_id = 3 [default = 3];
394inline bool WavegliderSV2Config::_internal_has_board_id() const {
395 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
396 return value;
397}
399 return _internal_has_board_id();
400}
402 _impl_.board_id_ = 3u;
403 _impl_._has_bits_[0] &= ~0x00000008u;
404}
405inline uint32_t WavegliderSV2Config::_internal_board_id() const {
406 return _impl_.board_id_;
407}
408inline uint32_t WavegliderSV2Config::board_id() const {
409 // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.WavegliderSV2Config.board_id)
410 return _internal_board_id();
411}
412inline void WavegliderSV2Config::_internal_set_board_id(uint32_t value) {
413 _impl_._has_bits_[0] |= 0x00000008u;
414 _impl_.board_id_ = value;
415}
416inline void WavegliderSV2Config::set_board_id(uint32_t value) {
417 _internal_set_board_id(value);
418 // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.WavegliderSV2Config.board_id)
419}
420
421// optional uint32 task_id = 4 [default = 1];
422inline bool WavegliderSV2Config::_internal_has_task_id() const {
423 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
424 return value;
425}
427 return _internal_has_task_id();
428}
430 _impl_.task_id_ = 1u;
431 _impl_._has_bits_[0] &= ~0x00000002u;
432}
433inline uint32_t WavegliderSV2Config::_internal_task_id() const {
434 return _impl_.task_id_;
435}
436inline uint32_t WavegliderSV2Config::task_id() const {
437 // @@protoc_insertion_point(field_get:goby.middleware.frontseat.protobuf.WavegliderSV2Config.task_id)
438 return _internal_task_id();
439}
440inline void WavegliderSV2Config::_internal_set_task_id(uint32_t value) {
441 _impl_._has_bits_[0] |= 0x00000002u;
442 _impl_.task_id_ = value;
443}
444inline void WavegliderSV2Config::set_task_id(uint32_t value) {
445 _internal_set_task_id(value);
446 // @@protoc_insertion_point(field_set:goby.middleware.frontseat.protobuf.WavegliderSV2Config.task_id)
447}
448
449#ifdef __GNUC__
450 #pragma GCC diagnostic pop
451#endif // __GNUC__
452
453// @@protoc_insertion_point(namespace_scope)
454
455} // namespace protobuf
456} // namespace frontseat
457} // namespace middleware
458} // namespace goby
459
460// @@protoc_insertion_point(global_scope)
461
462#include <google/protobuf/port_undef.inc>
463#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fmiddleware_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto
WavegliderSV2Config & operator=(WavegliderSV2Config &&from) noexcept
WavegliderSV2Config(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
friend void swap(WavegliderSV2Config &a, WavegliderSV2Config &b)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
WavegliderSV2Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
PROTOBUF_CONSTEXPR WavegliderSV2Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void CopyFrom(const WavegliderSV2Config &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
WavegliderSV2ConfigDefaultTypeInternal _WavegliderSV2Config_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::middleware::frontseat::protobuf::Config, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::goby::middleware::frontseat::protobuf::WavegliderSV2Config >, 11, false > waveglider_sv2_config
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fmiddleware_2ffrontseat_2fwaveglider_2fwaveglider_5fsv2_5ffrontseat_5fdriver_5fconfig_2eproto