JaiaBot 3.0.0
JaiaBot micro-AUV software
Loading...
Searching...
No Matches
metadata.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/sensor/metadata.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_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>
24#include <google/protobuf/arena.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>
29#include <google/protobuf/message.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>
34#include "jaiabot/messages/sensor/catalog.pb.h"
35#include "nanopb.pb.h"
36#include <boost/units/quantity.hpp>
37#include <boost/units/absolute.hpp>
38#include <boost/units/dimensionless_type.hpp>
39#include <boost/units/make_scaled_unit.hpp>
40
41#include <boost/units/systems/si.hpp>
42// @@protoc_insertion_point(includes)
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
45PROTOBUF_NAMESPACE_OPEN
46namespace internal {
47class AnyMetadata;
48} // namespace internal
49PROTOBUF_NAMESPACE_CLOSE
50
51// Internal implementation detail -- do not use these members.
53 static const uint32_t offsets[];
54};
55extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
56namespace jaiabot {
57namespace sensor {
58namespace protobuf {
59class Metadata;
60struct MetadataDefaultTypeInternal;
61extern MetadataDefaultTypeInternal _Metadata_default_instance_;
63struct Metadata_CalibrationDefaultTypeInternal;
64extern Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_;
66struct Metadata_MetadataValueDefaultTypeInternal;
67extern Metadata_MetadataValueDefaultTypeInternal _Metadata_MetadataValue_default_instance_;
68} // namespace protobuf
69} // namespace sensor
70} // namespace jaiabot
71PROTOBUF_NAMESPACE_OPEN
72template<> ::jaiabot::sensor::protobuf::Metadata* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata>(Arena*);
73template<> ::jaiabot::sensor::protobuf::Metadata_Calibration* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata_Calibration>(Arena*);
74template<> ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata_MetadataValue>(Arena*);
75PROTOBUF_NAMESPACE_CLOSE
76namespace jaiabot {
77namespace sensor {
78namespace protobuf {
79
80// ===================================================================
81
82class Metadata_Calibration final :
83 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Metadata.Calibration) */ {
84 public:
85 inline Metadata_Calibration() : Metadata_Calibration(nullptr) {}
86 ~Metadata_Calibration() override;
87 explicit PROTOBUF_CONSTEXPR Metadata_Calibration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
88
92 *this = ::std::move(from);
93 }
94
96 CopyFrom(from);
97 return *this;
98 }
99 inline Metadata_Calibration& operator=(Metadata_Calibration&& from) noexcept {
100 if (this == &from) return *this;
101 if (GetOwningArena() == from.GetOwningArena()
102 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
103 && GetOwningArena() != nullptr
104 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
105 ) {
106 InternalSwap(&from);
107 } else {
108 CopyFrom(from);
109 }
110 return *this;
111 }
112
113 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
114 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
115 }
116 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
117 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
118 }
119
120 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
121 return GetDescriptor();
122 }
123 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
124 return default_instance().GetMetadata().descriptor;
125 }
126 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
127 return default_instance().GetMetadata().reflection;
128 }
129 static const Metadata_Calibration& default_instance() {
131 }
132 static inline const Metadata_Calibration* internal_default_instance() {
133 return reinterpret_cast<const Metadata_Calibration*>(
135 }
136 static constexpr int kIndexInFileMessages =
137 0;
138
140 a.Swap(&b);
141 }
142 inline void Swap(Metadata_Calibration* other) {
143 if (other == this) return;
144 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() != nullptr &&
146 GetOwningArena() == other->GetOwningArena()) {
147 #else // PROTOBUF_FORCE_COPY_IN_SWAP
148 if (GetOwningArena() == other->GetOwningArena()) {
149 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
150 InternalSwap(other);
151 } else {
152 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
153 }
154 }
156 if (other == this) return;
157 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 InternalSwap(other);
159 }
160
161 // implements Message ----------------------------------------------
162
163 Metadata_Calibration* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
164 return CreateMaybeMessage<Metadata_Calibration>(arena);
165 }
166 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
167 void CopyFrom(const Metadata_Calibration& from);
168 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
169 void MergeFrom( const Metadata_Calibration& from) {
170 Metadata_Calibration::MergeImpl(*this, from);
171 }
172 private:
173 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
174 public:
175 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
176 bool IsInitialized() const final;
177
178 size_t ByteSizeLong() const final;
179 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
180 uint8_t* _InternalSerialize(
181 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
182 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
183
184 private:
185 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
186 void SharedDtor();
187 void SetCachedSize(int size) const final;
188 void InternalSwap(Metadata_Calibration* other);
189
190 private:
191 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
192 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
193 return "jaiabot.sensor.protobuf.Metadata.Calibration";
194 }
195 protected:
196 explicit Metadata_Calibration(::PROTOBUF_NAMESPACE_ID::Arena* arena,
197 bool is_message_owned = false);
198 public:
199
200 static const ClassData _class_data_;
201 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
202
203 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
204
205 // nested types ----------------------------------------------------
206
207 // accessors -------------------------------------------------------
208
209 enum : int {
213 };
214 // optional uint64 time_performed = 1 [(.dccl.field) = {
215 bool has_time_performed() const;
216 private:
217 bool _internal_has_time_performed() const;
218 public:
220 uint64_t time_performed() const;
221 void set_time_performed(uint64_t value);
222 private:
223 uint64_t _internal_time_performed() const;
224 void _internal_set_time_performed(uint64_t value);
225 public:
226
227 // optional uint64 time_to_recalibrate = 2 [(.dccl.field) = {
228 bool has_time_to_recalibrate() const;
229 private:
230 bool _internal_has_time_to_recalibrate() const;
231 public:
233 uint64_t time_to_recalibrate() const;
234 void set_time_to_recalibrate(uint64_t value);
235 private:
236 uint64_t _internal_time_to_recalibrate() const;
237 void _internal_set_time_to_recalibrate(uint64_t value);
238 public:
239
240 // optional int32 confirmation = 3;
241 bool has_confirmation() const;
242 private:
243 bool _internal_has_confirmation() const;
244 public:
245 void clear_confirmation();
246 int32_t confirmation() const;
247 void set_confirmation(int32_t value);
248 private:
249 int32_t _internal_confirmation() const;
250 void _internal_set_confirmation(int32_t value);
251 public:
252
253 typedef boost::units::time_dimension time_performed_dimension;
254
255 typedef boost::units::make_scaled_unit<boost::units::unit<time_performed_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_performed_unit;
256
257 template<typename Quantity >
258 void set_time_performed_with_units(Quantity value_w_units)
259 { set_time_performed(boost::units::quantity<time_performed_unit,google::protobuf::uint64 >(value_w_units).value() ); };
260
261 template<typename Quantity >
262 Quantity time_performed_with_units() const
263 { return Quantity(time_performed() * time_performed_unit()); };
264
265 boost::units::quantity< time_performed_unit,google::protobuf::uint64 > time_performed_with_units() const
267
268 typedef boost::units::time_dimension time_to_recalibrate_dimension;
269
270 typedef boost::units::make_scaled_unit<boost::units::unit<time_to_recalibrate_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_to_recalibrate_unit;
271
272 template<typename Quantity >
273 void set_time_to_recalibrate_with_units(Quantity value_w_units)
274 { set_time_to_recalibrate(boost::units::quantity<time_to_recalibrate_unit,google::protobuf::uint64 >(value_w_units).value() ); };
275
276 template<typename Quantity >
277 Quantity time_to_recalibrate_with_units() const
278 { return Quantity(time_to_recalibrate() * time_to_recalibrate_unit()); };
279
280 boost::units::quantity< time_to_recalibrate_unit,google::protobuf::uint64 > time_to_recalibrate_with_units() const
282
283 // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata.Calibration)
284 private:
285 class _Internal;
286
287 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288 typedef void InternalArenaConstructable_;
289 typedef void DestructorSkippable_;
290 struct Impl_ {
291 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
292 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
293 uint64_t time_performed_;
294 uint64_t time_to_recalibrate_;
295 int32_t confirmation_;
296 };
297 union { Impl_ _impl_; };
298 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
299};
300// -------------------------------------------------------------------
301
302class Metadata_MetadataValue final :
303 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Metadata.MetadataValue) */ {
304 public:
305 inline Metadata_MetadataValue() : Metadata_MetadataValue(nullptr) {}
306 ~Metadata_MetadataValue() override;
307 explicit PROTOBUF_CONSTEXPR Metadata_MetadataValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
308
309 Metadata_MetadataValue(const Metadata_MetadataValue& from);
310 Metadata_MetadataValue(Metadata_MetadataValue&& from) noexcept
311 : Metadata_MetadataValue() {
312 *this = ::std::move(from);
313 }
314
315 inline Metadata_MetadataValue& operator=(const Metadata_MetadataValue& from) {
316 CopyFrom(from);
317 return *this;
318 }
319 inline Metadata_MetadataValue& operator=(Metadata_MetadataValue&& from) noexcept {
320 if (this == &from) return *this;
321 if (GetOwningArena() == from.GetOwningArena()
322 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
323 && GetOwningArena() != nullptr
324 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
325 ) {
326 InternalSwap(&from);
327 } else {
328 CopyFrom(from);
329 }
330 return *this;
331 }
332
333 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
334 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
335 }
336 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
337 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
338 }
339
340 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
341 return GetDescriptor();
342 }
343 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
344 return default_instance().GetMetadata().descriptor;
345 }
346 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
347 return default_instance().GetMetadata().reflection;
348 }
349 static const Metadata_MetadataValue& default_instance() {
350 return *internal_default_instance();
351 }
352 static inline const Metadata_MetadataValue* internal_default_instance() {
353 return reinterpret_cast<const Metadata_MetadataValue*>(
355 }
356 static constexpr int kIndexInFileMessages =
357 1;
358
359 friend void swap(Metadata_MetadataValue& a, Metadata_MetadataValue& b) {
360 a.Swap(&b);
361 }
362 inline void Swap(Metadata_MetadataValue* other) {
363 if (other == this) return;
364 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
365 if (GetOwningArena() != nullptr &&
366 GetOwningArena() == other->GetOwningArena()) {
367 #else // PROTOBUF_FORCE_COPY_IN_SWAP
368 if (GetOwningArena() == other->GetOwningArena()) {
369 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
370 InternalSwap(other);
371 } else {
372 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
373 }
374 }
375 void UnsafeArenaSwap(Metadata_MetadataValue* other) {
376 if (other == this) return;
377 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
378 InternalSwap(other);
379 }
380
381 // implements Message ----------------------------------------------
382
383 Metadata_MetadataValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
384 return CreateMaybeMessage<Metadata_MetadataValue>(arena);
385 }
386 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
387 void CopyFrom(const Metadata_MetadataValue& from);
388 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
389 void MergeFrom( const Metadata_MetadataValue& from) {
390 Metadata_MetadataValue::MergeImpl(*this, from);
391 }
392 private:
393 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
394 public:
395 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
396 bool IsInitialized() const final;
397
398 size_t ByteSizeLong() const final;
399 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
400 uint8_t* _InternalSerialize(
401 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
402 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
403
404 private:
405 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
406 void SharedDtor();
407 void SetCachedSize(int size) const final;
408 void InternalSwap(Metadata_MetadataValue* other);
409
410 private:
411 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
412 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
413 return "jaiabot.sensor.protobuf.Metadata.MetadataValue";
414 }
415 protected:
416 explicit Metadata_MetadataValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
417 bool is_message_owned = false);
418 public:
419
420 static const ClassData _class_data_;
421 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
422
423 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
424
425 // nested types ----------------------------------------------------
426
427 // accessors -------------------------------------------------------
428
429 enum : int {
430 kKeyFieldNumber = 1,
431 kValueFieldNumber = 2,
432 };
433 // required string key = 1 [(.nanopb) = {
434 bool has_key() const;
435 private:
436 bool _internal_has_key() const;
437 public:
438 void clear_key();
439 const std::string& key() const;
440 template <typename ArgT0 = const std::string&, typename... ArgT>
441 void set_key(ArgT0&& arg0, ArgT... args);
442 std::string* mutable_key();
443 PROTOBUF_NODISCARD std::string* release_key();
444 void set_allocated_key(std::string* key);
445 private:
446 const std::string& _internal_key() const;
447 inline PROTOBUF_ALWAYS_INLINE void _internal_set_key(const std::string& value);
448 std::string* _internal_mutable_key();
449 public:
450
451 // required string value = 2 [(.nanopb) = {
452 bool has_value() const;
453 private:
454 bool _internal_has_value() const;
455 public:
456 void clear_value();
457 const std::string& value() const;
458 template <typename ArgT0 = const std::string&, typename... ArgT>
459 void set_value(ArgT0&& arg0, ArgT... args);
460 std::string* mutable_value();
461 PROTOBUF_NODISCARD std::string* release_value();
462 void set_allocated_value(std::string* value);
463 private:
464 const std::string& _internal_value() const;
465 inline PROTOBUF_ALWAYS_INLINE void _internal_set_value(const std::string& value);
466 std::string* _internal_mutable_value();
467 public:
468
469 // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata.MetadataValue)
470 private:
471 class _Internal;
472
473 // helper for ByteSizeLong()
474 size_t RequiredFieldsByteSizeFallback() const;
475
476 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
477 typedef void InternalArenaConstructable_;
478 typedef void DestructorSkippable_;
479 struct Impl_ {
480 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
481 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
482 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
483 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_;
484 };
485 union { Impl_ _impl_; };
486 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
487};
488// -------------------------------------------------------------------
489
490class Metadata final :
491 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.sensor.protobuf.Metadata) */ {
492 public:
493 inline Metadata() : Metadata(nullptr) {}
494 ~Metadata() override;
495 explicit PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
496
497 Metadata(const Metadata& from);
498 Metadata(Metadata&& from) noexcept
499 : Metadata() {
500 *this = ::std::move(from);
501 }
502
503 inline Metadata& operator=(const Metadata& from) {
504 CopyFrom(from);
505 return *this;
506 }
507 inline Metadata& operator=(Metadata&& from) noexcept {
508 if (this == &from) return *this;
509 if (GetOwningArena() == from.GetOwningArena()
510 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
511 && GetOwningArena() != nullptr
512 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
513 ) {
514 InternalSwap(&from);
515 } else {
516 CopyFrom(from);
517 }
518 return *this;
519 }
520
521 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
522 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
523 }
524 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
525 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
526 }
527
528 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
529 return GetDescriptor();
530 }
531 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
532 return default_instance().GetMetadata().descriptor;
533 }
534 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
535 return default_instance().GetMetadata().reflection;
536 }
537 static const Metadata& default_instance() {
538 return *internal_default_instance();
539 }
540 static inline const Metadata* internal_default_instance() {
541 return reinterpret_cast<const Metadata*>(
543 }
544 static constexpr int kIndexInFileMessages =
545 2;
546
547 friend void swap(Metadata& a, Metadata& b) {
548 a.Swap(&b);
549 }
550 inline void Swap(Metadata* other) {
551 if (other == this) return;
552 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
553 if (GetOwningArena() != nullptr &&
554 GetOwningArena() == other->GetOwningArena()) {
555 #else // PROTOBUF_FORCE_COPY_IN_SWAP
556 if (GetOwningArena() == other->GetOwningArena()) {
557 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
558 InternalSwap(other);
559 } else {
560 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
561 }
562 }
563 void UnsafeArenaSwap(Metadata* other) {
564 if (other == this) return;
565 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
566 InternalSwap(other);
567 }
568
569 // implements Message ----------------------------------------------
570
571 Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
572 return CreateMaybeMessage<Metadata>(arena);
573 }
574 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
575 void CopyFrom(const Metadata& from);
576 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
577 void MergeFrom( const Metadata& from) {
578 Metadata::MergeImpl(*this, from);
579 }
580 private:
581 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
582 public:
583 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
584 bool IsInitialized() const final;
585
586 size_t ByteSizeLong() const final;
587 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
588 uint8_t* _InternalSerialize(
589 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
590 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
591
592 private:
593 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
594 void SharedDtor();
595 void SetCachedSize(int size) const final;
596 void InternalSwap(Metadata* other);
597
598 private:
599 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
600 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
601 return "jaiabot.sensor.protobuf.Metadata";
602 }
603 protected:
604 explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
605 bool is_message_owned = false);
606 public:
607
608 static const ClassData _class_data_;
609 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
610
611 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
612
613 // nested types ----------------------------------------------------
614
615 typedef Metadata_Calibration Calibration;
616 typedef Metadata_MetadataValue MetadataValue;
617
618 // accessors -------------------------------------------------------
619
620 enum : int {
621 kMetadataFieldNumber = 5,
622 kCalibrationFieldNumber = 3,
623 kTimePurchasedFieldNumber = 4,
624 kSensorVersionFieldNumber = 2,
625 kPayloadBoardVersionFieldNumber = 6,
626 kInitFailedFieldNumber = 7,
627 kSensorFieldNumber = 1,
628 kInstanceFieldNumber = 8,
629 };
630 // repeated .jaiabot.sensor.protobuf.Metadata.MetadataValue metadata = 5 [(.nanopb) = {
631 int metadata_size() const;
632 private:
633 int _internal_metadata_size() const;
634 public:
635 void clear_metadata();
636 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* mutable_metadata(int index);
637 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
638 mutable_metadata();
639 private:
640 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& _internal_metadata(int index) const;
641 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* _internal_add_metadata();
642 public:
643 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& metadata(int index) const;
644 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* add_metadata();
645 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
646 metadata() const;
647
648 // optional .jaiabot.sensor.protobuf.Metadata.Calibration calibration = 3;
649 bool has_calibration() const;
650 private:
651 bool _internal_has_calibration() const;
652 public:
653 void clear_calibration();
654 const ::jaiabot::sensor::protobuf::Metadata_Calibration& calibration() const;
655 PROTOBUF_NODISCARD ::jaiabot::sensor::protobuf::Metadata_Calibration* release_calibration();
656 ::jaiabot::sensor::protobuf::Metadata_Calibration* mutable_calibration();
657 void set_allocated_calibration(::jaiabot::sensor::protobuf::Metadata_Calibration* calibration);
658 private:
659 const ::jaiabot::sensor::protobuf::Metadata_Calibration& _internal_calibration() const;
660 ::jaiabot::sensor::protobuf::Metadata_Calibration* _internal_mutable_calibration();
661 public:
662 void unsafe_arena_set_allocated_calibration(
663 ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration);
664 ::jaiabot::sensor::protobuf::Metadata_Calibration* unsafe_arena_release_calibration();
665
666 // optional uint64 time_purchased = 4 [(.dccl.field) = {
667 bool has_time_purchased() const;
668 private:
669 bool _internal_has_time_purchased() const;
670 public:
671 void clear_time_purchased();
672 uint64_t time_purchased() const;
673 void set_time_purchased(uint64_t value);
674 private:
675 uint64_t _internal_time_purchased() const;
676 void _internal_set_time_purchased(uint64_t value);
677 public:
678
679 // optional int32 sensor_version = 2;
680 bool has_sensor_version() const;
681 private:
682 bool _internal_has_sensor_version() const;
683 public:
684 void clear_sensor_version();
685 int32_t sensor_version() const;
686 void set_sensor_version(int32_t value);
687 private:
688 int32_t _internal_sensor_version() const;
689 void _internal_set_sensor_version(int32_t value);
690 public:
691
692 // optional int32 payload_board_version = 6;
693 bool has_payload_board_version() const;
694 private:
695 bool _internal_has_payload_board_version() const;
696 public:
697 void clear_payload_board_version();
698 int32_t payload_board_version() const;
699 void set_payload_board_version(int32_t value);
700 private:
701 int32_t _internal_payload_board_version() const;
702 void _internal_set_payload_board_version(int32_t value);
703 public:
704
705 // optional bool init_failed = 7;
706 bool has_init_failed() const;
707 private:
708 bool _internal_has_init_failed() const;
709 public:
710 void clear_init_failed();
711 bool init_failed() const;
712 void set_init_failed(bool value);
713 private:
714 bool _internal_init_failed() const;
715 void _internal_set_init_failed(bool value);
716 public:
717
718 // required .jaiabot.sensor.protobuf.Sensor sensor = 1;
719 bool has_sensor() const;
720 private:
721 bool _internal_has_sensor() const;
722 public:
723 void clear_sensor();
725 void set_sensor(::jaiabot::sensor::protobuf::Sensor value);
726 private:
727 ::jaiabot::sensor::protobuf::Sensor _internal_sensor() const;
728 void _internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value);
729 public:
730
731 // optional .jaiabot.sensor.protobuf.SensorInstance instance = 8 [default = INSTANCE_1];
732 bool has_instance() const;
733 private:
734 bool _internal_has_instance() const;
735 public:
736 void clear_instance();
738 void set_instance(::jaiabot::sensor::protobuf::SensorInstance value);
739 private:
740 ::jaiabot::sensor::protobuf::SensorInstance _internal_instance() const;
741 void _internal_set_instance(::jaiabot::sensor::protobuf::SensorInstance value);
742 public:
743
744 typedef boost::units::time_dimension time_purchased_dimension;
745
746 typedef boost::units::make_scaled_unit<boost::units::unit<time_purchased_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type time_purchased_unit;
747
748 template<typename Quantity >
749 void set_time_purchased_with_units(Quantity value_w_units)
750 { set_time_purchased(boost::units::quantity<time_purchased_unit,google::protobuf::uint64 >(value_w_units).value() ); };
751
752 template<typename Quantity >
753 Quantity time_purchased_with_units() const
754 { return Quantity(time_purchased() * time_purchased_unit()); };
755
756 boost::units::quantity< time_purchased_unit,google::protobuf::uint64 > time_purchased_with_units() const
757 { return time_purchased_with_units<boost::units::quantity< time_purchased_unit,google::protobuf::uint64 > >(); };
758
759 // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata)
760 private:
761 class _Internal;
762
763 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
764 typedef void InternalArenaConstructable_;
765 typedef void DestructorSkippable_;
766 struct Impl_ {
767 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
768 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
769 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue > metadata_;
770 ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration_;
771 uint64_t time_purchased_;
772 int32_t sensor_version_;
773 int32_t payload_board_version_;
774 bool init_failed_;
775 int sensor_;
776 int instance_;
777 };
778 union { Impl_ _impl_; };
779 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
780};
781// ===================================================================
782
783
784// ===================================================================
785
786#ifdef __GNUC__
787 #pragma GCC diagnostic push
788 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
789#endif // __GNUC__
790// Metadata_Calibration
791
792// optional uint64 time_performed = 1 [(.dccl.field) = {
793inline bool Metadata_Calibration::_internal_has_time_performed() const {
794 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
795 return value;
796}
797inline bool Metadata_Calibration::has_time_performed() const {
798 return _internal_has_time_performed();
799}
800inline void Metadata_Calibration::clear_time_performed() {
801 _impl_.time_performed_ = uint64_t{0u};
802 _impl_._has_bits_[0] &= ~0x00000001u;
803}
804inline uint64_t Metadata_Calibration::_internal_time_performed() const {
805 return _impl_.time_performed_;
806}
807inline uint64_t Metadata_Calibration::time_performed() const {
808 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.time_performed)
809 return _internal_time_performed();
810}
811inline void Metadata_Calibration::_internal_set_time_performed(uint64_t value) {
812 _impl_._has_bits_[0] |= 0x00000001u;
813 _impl_.time_performed_ = value;
814}
815inline void Metadata_Calibration::set_time_performed(uint64_t value) {
816 _internal_set_time_performed(value);
817 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.time_performed)
818}
819
820// optional uint64 time_to_recalibrate = 2 [(.dccl.field) = {
821inline bool Metadata_Calibration::_internal_has_time_to_recalibrate() const {
822 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
823 return value;
824}
825inline bool Metadata_Calibration::has_time_to_recalibrate() const {
826 return _internal_has_time_to_recalibrate();
827}
828inline void Metadata_Calibration::clear_time_to_recalibrate() {
829 _impl_.time_to_recalibrate_ = uint64_t{0u};
830 _impl_._has_bits_[0] &= ~0x00000002u;
831}
832inline uint64_t Metadata_Calibration::_internal_time_to_recalibrate() const {
833 return _impl_.time_to_recalibrate_;
834}
835inline uint64_t Metadata_Calibration::time_to_recalibrate() const {
836 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.time_to_recalibrate)
837 return _internal_time_to_recalibrate();
838}
839inline void Metadata_Calibration::_internal_set_time_to_recalibrate(uint64_t value) {
840 _impl_._has_bits_[0] |= 0x00000002u;
841 _impl_.time_to_recalibrate_ = value;
842}
843inline void Metadata_Calibration::set_time_to_recalibrate(uint64_t value) {
844 _internal_set_time_to_recalibrate(value);
845 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.time_to_recalibrate)
846}
847
848// optional int32 confirmation = 3;
849inline bool Metadata_Calibration::_internal_has_confirmation() const {
850 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
851 return value;
852}
853inline bool Metadata_Calibration::has_confirmation() const {
854 return _internal_has_confirmation();
855}
856inline void Metadata_Calibration::clear_confirmation() {
857 _impl_.confirmation_ = 0;
858 _impl_._has_bits_[0] &= ~0x00000004u;
859}
860inline int32_t Metadata_Calibration::_internal_confirmation() const {
861 return _impl_.confirmation_;
862}
863inline int32_t Metadata_Calibration::confirmation() const {
864 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.confirmation)
865 return _internal_confirmation();
866}
867inline void Metadata_Calibration::_internal_set_confirmation(int32_t value) {
868 _impl_._has_bits_[0] |= 0x00000004u;
869 _impl_.confirmation_ = value;
870}
871inline void Metadata_Calibration::set_confirmation(int32_t value) {
872 _internal_set_confirmation(value);
873 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.confirmation)
874}
875
876// -------------------------------------------------------------------
877
878// Metadata_MetadataValue
879
880// required string key = 1 [(.nanopb) = {
881inline bool Metadata_MetadataValue::_internal_has_key() const {
882 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
883 return value;
884}
885inline bool Metadata_MetadataValue::has_key() const {
886 return _internal_has_key();
887}
888inline void Metadata_MetadataValue::clear_key() {
889 _impl_.key_.ClearToEmpty();
890 _impl_._has_bits_[0] &= ~0x00000001u;
891}
892inline const std::string& Metadata_MetadataValue::key() const {
893 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
894 return _internal_key();
895}
896template <typename ArgT0, typename... ArgT>
897inline PROTOBUF_ALWAYS_INLINE
898void Metadata_MetadataValue::set_key(ArgT0&& arg0, ArgT... args) {
899 _impl_._has_bits_[0] |= 0x00000001u;
900 _impl_.key_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
901 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
902}
903inline std::string* Metadata_MetadataValue::mutable_key() {
904 std::string* _s = _internal_mutable_key();
905 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
906 return _s;
907}
908inline const std::string& Metadata_MetadataValue::_internal_key() const {
909 return _impl_.key_.Get();
910}
911inline void Metadata_MetadataValue::_internal_set_key(const std::string& value) {
912 _impl_._has_bits_[0] |= 0x00000001u;
913 _impl_.key_.Set(value, GetArenaForAllocation());
914}
915inline std::string* Metadata_MetadataValue::_internal_mutable_key() {
916 _impl_._has_bits_[0] |= 0x00000001u;
917 return _impl_.key_.Mutable(GetArenaForAllocation());
918}
919inline std::string* Metadata_MetadataValue::release_key() {
920 // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
921 if (!_internal_has_key()) {
922 return nullptr;
923 }
924 _impl_._has_bits_[0] &= ~0x00000001u;
925 auto* p = _impl_.key_.Release();
926#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
927 if (_impl_.key_.IsDefault()) {
928 _impl_.key_.Set("", GetArenaForAllocation());
929 }
930#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
931 return p;
932}
933inline void Metadata_MetadataValue::set_allocated_key(std::string* key) {
934 if (key != nullptr) {
935 _impl_._has_bits_[0] |= 0x00000001u;
936 } else {
937 _impl_._has_bits_[0] &= ~0x00000001u;
938 }
939 _impl_.key_.SetAllocated(key, GetArenaForAllocation());
940#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
941 if (_impl_.key_.IsDefault()) {
942 _impl_.key_.Set("", GetArenaForAllocation());
943 }
944#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
945 // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
946}
947
948// required string value = 2 [(.nanopb) = {
949inline bool Metadata_MetadataValue::_internal_has_value() const {
950 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
951 return value;
952}
953inline bool Metadata_MetadataValue::has_value() const {
954 return _internal_has_value();
955}
956inline void Metadata_MetadataValue::clear_value() {
957 _impl_.value_.ClearToEmpty();
958 _impl_._has_bits_[0] &= ~0x00000002u;
959}
960inline const std::string& Metadata_MetadataValue::value() const {
961 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
962 return _internal_value();
963}
964template <typename ArgT0, typename... ArgT>
965inline PROTOBUF_ALWAYS_INLINE
966void Metadata_MetadataValue::set_value(ArgT0&& arg0, ArgT... args) {
967 _impl_._has_bits_[0] |= 0x00000002u;
968 _impl_.value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
969 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
970}
971inline std::string* Metadata_MetadataValue::mutable_value() {
972 std::string* _s = _internal_mutable_value();
973 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
974 return _s;
975}
976inline const std::string& Metadata_MetadataValue::_internal_value() const {
977 return _impl_.value_.Get();
978}
979inline void Metadata_MetadataValue::_internal_set_value(const std::string& value) {
980 _impl_._has_bits_[0] |= 0x00000002u;
981 _impl_.value_.Set(value, GetArenaForAllocation());
982}
983inline std::string* Metadata_MetadataValue::_internal_mutable_value() {
984 _impl_._has_bits_[0] |= 0x00000002u;
985 return _impl_.value_.Mutable(GetArenaForAllocation());
986}
987inline std::string* Metadata_MetadataValue::release_value() {
988 // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
989 if (!_internal_has_value()) {
990 return nullptr;
991 }
992 _impl_._has_bits_[0] &= ~0x00000002u;
993 auto* p = _impl_.value_.Release();
994#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
995 if (_impl_.value_.IsDefault()) {
996 _impl_.value_.Set("", GetArenaForAllocation());
997 }
998#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
999 return p;
1000}
1001inline void Metadata_MetadataValue::set_allocated_value(std::string* value) {
1002 if (value != nullptr) {
1003 _impl_._has_bits_[0] |= 0x00000002u;
1004 } else {
1005 _impl_._has_bits_[0] &= ~0x00000002u;
1006 }
1007 _impl_.value_.SetAllocated(value, GetArenaForAllocation());
1008#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1009 if (_impl_.value_.IsDefault()) {
1010 _impl_.value_.Set("", GetArenaForAllocation());
1011 }
1012#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1013 // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
1014}
1015
1016// -------------------------------------------------------------------
1017
1018// Metadata
1019
1020// required .jaiabot.sensor.protobuf.Sensor sensor = 1;
1021inline bool Metadata::_internal_has_sensor() const {
1022 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1023 return value;
1024}
1025inline bool Metadata::has_sensor() const {
1026 return _internal_has_sensor();
1027}
1028inline void Metadata::clear_sensor() {
1029 _impl_.sensor_ = 1;
1030 _impl_._has_bits_[0] &= ~0x00000020u;
1031}
1032inline ::jaiabot::sensor::protobuf::Sensor Metadata::_internal_sensor() const {
1033 return static_cast< ::jaiabot::sensor::protobuf::Sensor >(_impl_.sensor_);
1034}
1035inline ::jaiabot::sensor::protobuf::Sensor Metadata::sensor() const {
1036 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.sensor)
1037 return _internal_sensor();
1038}
1039inline void Metadata::_internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
1041 _impl_._has_bits_[0] |= 0x00000020u;
1042 _impl_.sensor_ = value;
1043}
1044inline void Metadata::set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
1045 _internal_set_sensor(value);
1046 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.sensor)
1047}
1048
1049// optional int32 sensor_version = 2;
1050inline bool Metadata::_internal_has_sensor_version() const {
1051 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1052 return value;
1053}
1054inline bool Metadata::has_sensor_version() const {
1055 return _internal_has_sensor_version();
1056}
1057inline void Metadata::clear_sensor_version() {
1058 _impl_.sensor_version_ = 0;
1059 _impl_._has_bits_[0] &= ~0x00000004u;
1060}
1061inline int32_t Metadata::_internal_sensor_version() const {
1062 return _impl_.sensor_version_;
1063}
1064inline int32_t Metadata::sensor_version() const {
1065 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.sensor_version)
1066 return _internal_sensor_version();
1067}
1068inline void Metadata::_internal_set_sensor_version(int32_t value) {
1069 _impl_._has_bits_[0] |= 0x00000004u;
1070 _impl_.sensor_version_ = value;
1071}
1072inline void Metadata::set_sensor_version(int32_t value) {
1073 _internal_set_sensor_version(value);
1074 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.sensor_version)
1075}
1076
1077// optional int32 payload_board_version = 6;
1078inline bool Metadata::_internal_has_payload_board_version() const {
1079 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1080 return value;
1081}
1082inline bool Metadata::has_payload_board_version() const {
1083 return _internal_has_payload_board_version();
1084}
1085inline void Metadata::clear_payload_board_version() {
1086 _impl_.payload_board_version_ = 0;
1087 _impl_._has_bits_[0] &= ~0x00000008u;
1088}
1089inline int32_t Metadata::_internal_payload_board_version() const {
1090 return _impl_.payload_board_version_;
1091}
1092inline int32_t Metadata::payload_board_version() const {
1093 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.payload_board_version)
1094 return _internal_payload_board_version();
1095}
1096inline void Metadata::_internal_set_payload_board_version(int32_t value) {
1097 _impl_._has_bits_[0] |= 0x00000008u;
1098 _impl_.payload_board_version_ = value;
1099}
1100inline void Metadata::set_payload_board_version(int32_t value) {
1101 _internal_set_payload_board_version(value);
1102 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.payload_board_version)
1103}
1104
1105// optional .jaiabot.sensor.protobuf.Metadata.Calibration calibration = 3;
1106inline bool Metadata::_internal_has_calibration() const {
1107 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1108 PROTOBUF_ASSUME(!value || _impl_.calibration_ != nullptr);
1109 return value;
1110}
1111inline bool Metadata::has_calibration() const {
1112 return _internal_has_calibration();
1113}
1114inline void Metadata::clear_calibration() {
1115 if (_impl_.calibration_ != nullptr) _impl_.calibration_->Clear();
1116 _impl_._has_bits_[0] &= ~0x00000001u;
1117}
1118inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::_internal_calibration() const {
1119 const ::jaiabot::sensor::protobuf::Metadata_Calibration* p = _impl_.calibration_;
1120 return p != nullptr ? *p : reinterpret_cast<const ::jaiabot::sensor::protobuf::Metadata_Calibration&>(
1122}
1123inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::calibration() const {
1124 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.calibration)
1125 return _internal_calibration();
1126}
1127inline void Metadata::unsafe_arena_set_allocated_calibration(
1128 ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration) {
1129 if (GetArenaForAllocation() == nullptr) {
1130 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_);
1131 }
1132 _impl_.calibration_ = calibration;
1133 if (calibration) {
1134 _impl_._has_bits_[0] |= 0x00000001u;
1135 } else {
1136 _impl_._has_bits_[0] &= ~0x00000001u;
1137 }
1138 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Metadata.calibration)
1139}
1140inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::release_calibration() {
1141 _impl_._has_bits_[0] &= ~0x00000001u;
1142 ::jaiabot::sensor::protobuf::Metadata_Calibration* temp = _impl_.calibration_;
1143 _impl_.calibration_ = nullptr;
1144#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1145 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1146 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1147 if (GetArenaForAllocation() == nullptr) { delete old; }
1148#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1149 if (GetArenaForAllocation() != nullptr) {
1150 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1151 }
1152#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1153 return temp;
1154}
1155inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::unsafe_arena_release_calibration() {
1156 // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.calibration)
1157 _impl_._has_bits_[0] &= ~0x00000001u;
1158 ::jaiabot::sensor::protobuf::Metadata_Calibration* temp = _impl_.calibration_;
1159 _impl_.calibration_ = nullptr;
1160 return temp;
1161}
1162inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::_internal_mutable_calibration() {
1163 _impl_._has_bits_[0] |= 0x00000001u;
1164 if (_impl_.calibration_ == nullptr) {
1166 _impl_.calibration_ = p;
1167 }
1168 return _impl_.calibration_;
1169}
1170inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::mutable_calibration() {
1171 ::jaiabot::sensor::protobuf::Metadata_Calibration* _msg = _internal_mutable_calibration();
1172 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.calibration)
1173 return _msg;
1174}
1175inline void Metadata::set_allocated_calibration(::jaiabot::sensor::protobuf::Metadata_Calibration* calibration) {
1176 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1177 if (message_arena == nullptr) {
1178 delete _impl_.calibration_;
1179 }
1180 if (calibration) {
1181 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1182 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration);
1183 if (message_arena != submessage_arena) {
1184 calibration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1185 message_arena, calibration, submessage_arena);
1186 }
1187 _impl_._has_bits_[0] |= 0x00000001u;
1188 } else {
1189 _impl_._has_bits_[0] &= ~0x00000001u;
1190 }
1191 _impl_.calibration_ = calibration;
1192 // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.calibration)
1193}
1194
1195// optional uint64 time_purchased = 4 [(.dccl.field) = {
1196inline bool Metadata::_internal_has_time_purchased() const {
1197 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1198 return value;
1199}
1200inline bool Metadata::has_time_purchased() const {
1201 return _internal_has_time_purchased();
1202}
1203inline void Metadata::clear_time_purchased() {
1204 _impl_.time_purchased_ = uint64_t{0u};
1205 _impl_._has_bits_[0] &= ~0x00000002u;
1206}
1207inline uint64_t Metadata::_internal_time_purchased() const {
1208 return _impl_.time_purchased_;
1209}
1210inline uint64_t Metadata::time_purchased() const {
1211 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.time_purchased)
1212 return _internal_time_purchased();
1213}
1214inline void Metadata::_internal_set_time_purchased(uint64_t value) {
1215 _impl_._has_bits_[0] |= 0x00000002u;
1216 _impl_.time_purchased_ = value;
1217}
1218inline void Metadata::set_time_purchased(uint64_t value) {
1219 _internal_set_time_purchased(value);
1220 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.time_purchased)
1221}
1222
1223// repeated .jaiabot.sensor.protobuf.Metadata.MetadataValue metadata = 5 [(.nanopb) = {
1224inline int Metadata::_internal_metadata_size() const {
1225 return _impl_.metadata_.size();
1226}
1227inline int Metadata::metadata_size() const {
1228 return _internal_metadata_size();
1229}
1230inline void Metadata::clear_metadata() {
1231 _impl_.metadata_.Clear();
1232}
1233inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::mutable_metadata(int index) {
1234 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.metadata)
1235 return _impl_.metadata_.Mutable(index);
1236}
1237inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
1238Metadata::mutable_metadata() {
1239 // @@protoc_insertion_point(field_mutable_list:jaiabot.sensor.protobuf.Metadata.metadata)
1240 return &_impl_.metadata_;
1241}
1242inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::_internal_metadata(int index) const {
1243 return _impl_.metadata_.Get(index);
1244}
1245inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::metadata(int index) const {
1246 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.metadata)
1247 return _internal_metadata(index);
1248}
1249inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::_internal_add_metadata() {
1250 return _impl_.metadata_.Add();
1251}
1252inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::add_metadata() {
1253 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* _add = _internal_add_metadata();
1254 // @@protoc_insertion_point(field_add:jaiabot.sensor.protobuf.Metadata.metadata)
1255 return _add;
1256}
1257inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
1258Metadata::metadata() const {
1259 // @@protoc_insertion_point(field_list:jaiabot.sensor.protobuf.Metadata.metadata)
1260 return _impl_.metadata_;
1261}
1262
1263// optional bool init_failed = 7;
1264inline bool Metadata::_internal_has_init_failed() const {
1265 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1266 return value;
1267}
1268inline bool Metadata::has_init_failed() const {
1269 return _internal_has_init_failed();
1270}
1271inline void Metadata::clear_init_failed() {
1272 _impl_.init_failed_ = false;
1273 _impl_._has_bits_[0] &= ~0x00000010u;
1274}
1275inline bool Metadata::_internal_init_failed() const {
1276 return _impl_.init_failed_;
1277}
1278inline bool Metadata::init_failed() const {
1279 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.init_failed)
1280 return _internal_init_failed();
1281}
1282inline void Metadata::_internal_set_init_failed(bool value) {
1283 _impl_._has_bits_[0] |= 0x00000010u;
1284 _impl_.init_failed_ = value;
1285}
1286inline void Metadata::set_init_failed(bool value) {
1287 _internal_set_init_failed(value);
1288 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.init_failed)
1289}
1290
1291// optional .jaiabot.sensor.protobuf.SensorInstance instance = 8 [default = INSTANCE_1];
1292inline bool Metadata::_internal_has_instance() const {
1293 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1294 return value;
1295}
1296inline bool Metadata::has_instance() const {
1297 return _internal_has_instance();
1298}
1299inline void Metadata::clear_instance() {
1300 _impl_.instance_ = 1;
1301 _impl_._has_bits_[0] &= ~0x00000040u;
1302}
1303inline ::jaiabot::sensor::protobuf::SensorInstance Metadata::_internal_instance() const {
1304 return static_cast< ::jaiabot::sensor::protobuf::SensorInstance >(_impl_.instance_);
1305}
1306inline ::jaiabot::sensor::protobuf::SensorInstance Metadata::instance() const {
1307 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.instance)
1308 return _internal_instance();
1309}
1310inline void Metadata::_internal_set_instance(::jaiabot::sensor::protobuf::SensorInstance value) {
1312 _impl_._has_bits_[0] |= 0x00000040u;
1313 _impl_.instance_ = value;
1314}
1315inline void Metadata::set_instance(::jaiabot::sensor::protobuf::SensorInstance value) {
1316 _internal_set_instance(value);
1317 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.instance)
1318}
1319
1320#ifdef __GNUC__
1321 #pragma GCC diagnostic pop
1322#endif // __GNUC__
1323// -------------------------------------------------------------------
1324
1325// -------------------------------------------------------------------
1326
1327
1328// @@protoc_insertion_point(namespace_scope)
1329
1330} // namespace protobuf
1331} // namespace sensor
1332} // namespace jaiabot
1333
1334// @@protoc_insertion_point(global_scope)
1335
1336#include <google/protobuf/port_undef.inc>
1337#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void UnsafeArenaSwap(Metadata_Calibration *other)
void set_time_to_recalibrate_with_units(Quantity value_w_units)
boost::units::time_dimension time_performed_dimension
static const Metadata_Calibration & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void Swap(Metadata_Calibration *other)
static const Metadata_Calibration * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_time_performed_with_units(Quantity value_w_units)
boost::units::time_dimension time_to_recalibrate_dimension
boost::units::make_scaled_unit< boost::units::unit< time_to_recalibrate_dimension, boost::units::si::system >, boost::units::scale< 10, boost::units::static_rational<-6 > > >::type time_to_recalibrate_unit
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
boost::units::make_scaled_unit< boost::units::unit< time_performed_dimension, boost::units::si::system >, boost::units::scale< 10, boost::units::static_rational<-6 > > >::type time_performed_unit
friend void swap(Metadata_Calibration &a, Metadata_Calibration &b)
void CopyFrom(const Metadata_Calibration &from)
void MergeFrom(const Metadata_Calibration &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Metadata_Calibration * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Metadata_Calibration & operator=(const Metadata_Calibration &from)
Definition metadata.pb.h:95
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
constexpr goby::middleware::Group metadata
Definition groups.h:132
Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_
bool Sensor_IsValid(int value)
Metadata_MetadataValueDefaultTypeInternal _Metadata_MetadataValue_default_instance_
bool SensorInstance_IsValid(int value)
MetadataDefaultTypeInternal _Metadata_default_instance_
::jaiabot::sensor::protobuf::Metadata_Calibration * Arena::CreateMaybeMessage<::jaiabot::sensor::protobuf::Metadata_Calibration >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto