JaiaBot 2.1.1
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_;
62class Metadata_Calibration;
63struct Metadata_CalibrationDefaultTypeInternal;
64extern Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_;
65class Metadata_MetadataValue;
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
266 { return time_performed_with_units<boost::units::quantity< time_performed_unit,google::protobuf::uint64 > >(); };
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
281 { return time_to_recalibrate_with_units<boost::units::quantity< time_to_recalibrate_unit,google::protobuf::uint64 > >(); };
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 };
629 // repeated .jaiabot.sensor.protobuf.Metadata.MetadataValue metadata = 5 [(.nanopb) = {
630 int metadata_size() const;
631 private:
632 int _internal_metadata_size() const;
633 public:
634 void clear_metadata();
635 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* mutable_metadata(int index);
636 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
637 mutable_metadata();
638 private:
639 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& _internal_metadata(int index) const;
641 public:
642 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& metadata(int index) const;
644 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
645 metadata() const;
646
647 // optional .jaiabot.sensor.protobuf.Metadata.Calibration calibration = 3;
648 bool has_calibration() const;
649 private:
650 bool _internal_has_calibration() const;
651 public:
652 void clear_calibration();
653 const ::jaiabot::sensor::protobuf::Metadata_Calibration& calibration() const;
654 PROTOBUF_NODISCARD ::jaiabot::sensor::protobuf::Metadata_Calibration* release_calibration();
656 void set_allocated_calibration(::jaiabot::sensor::protobuf::Metadata_Calibration* calibration);
657 private:
658 const ::jaiabot::sensor::protobuf::Metadata_Calibration& _internal_calibration() const;
659 ::jaiabot::sensor::protobuf::Metadata_Calibration* _internal_mutable_calibration();
660 public:
661 void unsafe_arena_set_allocated_calibration(
663 ::jaiabot::sensor::protobuf::Metadata_Calibration* unsafe_arena_release_calibration();
664
665 // optional uint64 time_purchased = 4 [(.dccl.field) = {
666 bool has_time_purchased() const;
667 private:
668 bool _internal_has_time_purchased() const;
669 public:
670 void clear_time_purchased();
671 uint64_t time_purchased() const;
672 void set_time_purchased(uint64_t value);
673 private:
674 uint64_t _internal_time_purchased() const;
675 void _internal_set_time_purchased(uint64_t value);
676 public:
677
678 // optional int32 sensor_version = 2;
679 bool has_sensor_version() const;
680 private:
681 bool _internal_has_sensor_version() const;
682 public:
683 void clear_sensor_version();
684 int32_t sensor_version() const;
685 void set_sensor_version(int32_t value);
686 private:
687 int32_t _internal_sensor_version() const;
688 void _internal_set_sensor_version(int32_t value);
689 public:
690
691 // optional int32 payload_board_version = 6;
692 bool has_payload_board_version() const;
693 private:
694 bool _internal_has_payload_board_version() const;
695 public:
696 void clear_payload_board_version();
697 int32_t payload_board_version() const;
698 void set_payload_board_version(int32_t value);
699 private:
700 int32_t _internal_payload_board_version() const;
701 void _internal_set_payload_board_version(int32_t value);
702 public:
703
704 // optional bool init_failed = 7;
705 bool has_init_failed() const;
706 private:
707 bool _internal_has_init_failed() const;
708 public:
709 void clear_init_failed();
710 bool init_failed() const;
711 void set_init_failed(bool value);
712 private:
713 bool _internal_init_failed() const;
714 void _internal_set_init_failed(bool value);
715 public:
716
717 // required .jaiabot.sensor.protobuf.Sensor sensor = 1;
718 bool has_sensor() const;
719 private:
720 bool _internal_has_sensor() const;
721 public:
722 void clear_sensor();
724 void set_sensor(::jaiabot::sensor::protobuf::Sensor value);
725 private:
726 ::jaiabot::sensor::protobuf::Sensor _internal_sensor() const;
727 void _internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value);
728 public:
729
730 typedef boost::units::time_dimension time_purchased_dimension;
731
732 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;
733
734 template<typename Quantity >
735 void set_time_purchased_with_units(Quantity value_w_units)
736 { set_time_purchased(boost::units::quantity<time_purchased_unit,google::protobuf::uint64 >(value_w_units).value() ); };
737
738 template<typename Quantity >
739 Quantity time_purchased_with_units() const
740 { return Quantity(time_purchased() * time_purchased_unit()); };
741
742 boost::units::quantity< time_purchased_unit,google::protobuf::uint64 > time_purchased_with_units() const
743 { return time_purchased_with_units<boost::units::quantity< time_purchased_unit,google::protobuf::uint64 > >(); };
744
745 // @@protoc_insertion_point(class_scope:jaiabot.sensor.protobuf.Metadata)
746 private:
747 class _Internal;
748
749 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
750 typedef void InternalArenaConstructable_;
751 typedef void DestructorSkippable_;
752 struct Impl_ {
753 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
754 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
755 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue > metadata_;
757 uint64_t time_purchased_;
758 int32_t sensor_version_;
759 int32_t payload_board_version_;
760 bool init_failed_;
761 int sensor_;
762 };
763 union { Impl_ _impl_; };
764 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
765};
766// ===================================================================
767
768
769// ===================================================================
770
771#ifdef __GNUC__
772 #pragma GCC diagnostic push
773 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
774#endif // __GNUC__
775// Metadata_Calibration
776
777// optional uint64 time_performed = 1 [(.dccl.field) = {
778inline bool Metadata_Calibration::_internal_has_time_performed() const {
779 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
780 return value;
781}
782inline bool Metadata_Calibration::has_time_performed() const {
783 return _internal_has_time_performed();
784}
785inline void Metadata_Calibration::clear_time_performed() {
786 _impl_.time_performed_ = uint64_t{0u};
787 _impl_._has_bits_[0] &= ~0x00000001u;
788}
789inline uint64_t Metadata_Calibration::_internal_time_performed() const {
790 return _impl_.time_performed_;
791}
792inline uint64_t Metadata_Calibration::time_performed() const {
793 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.time_performed)
794 return _internal_time_performed();
795}
796inline void Metadata_Calibration::_internal_set_time_performed(uint64_t value) {
797 _impl_._has_bits_[0] |= 0x00000001u;
798 _impl_.time_performed_ = value;
799}
800inline void Metadata_Calibration::set_time_performed(uint64_t value) {
801 _internal_set_time_performed(value);
802 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.time_performed)
803}
804
805// optional uint64 time_to_recalibrate = 2 [(.dccl.field) = {
806inline bool Metadata_Calibration::_internal_has_time_to_recalibrate() const {
807 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
808 return value;
809}
810inline bool Metadata_Calibration::has_time_to_recalibrate() const {
811 return _internal_has_time_to_recalibrate();
812}
813inline void Metadata_Calibration::clear_time_to_recalibrate() {
814 _impl_.time_to_recalibrate_ = uint64_t{0u};
815 _impl_._has_bits_[0] &= ~0x00000002u;
816}
817inline uint64_t Metadata_Calibration::_internal_time_to_recalibrate() const {
818 return _impl_.time_to_recalibrate_;
819}
820inline uint64_t Metadata_Calibration::time_to_recalibrate() const {
821 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.time_to_recalibrate)
822 return _internal_time_to_recalibrate();
823}
824inline void Metadata_Calibration::_internal_set_time_to_recalibrate(uint64_t value) {
825 _impl_._has_bits_[0] |= 0x00000002u;
826 _impl_.time_to_recalibrate_ = value;
827}
828inline void Metadata_Calibration::set_time_to_recalibrate(uint64_t value) {
829 _internal_set_time_to_recalibrate(value);
830 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.time_to_recalibrate)
831}
832
833// optional int32 confirmation = 3;
834inline bool Metadata_Calibration::_internal_has_confirmation() const {
835 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
836 return value;
837}
838inline bool Metadata_Calibration::has_confirmation() const {
839 return _internal_has_confirmation();
840}
841inline void Metadata_Calibration::clear_confirmation() {
842 _impl_.confirmation_ = 0;
843 _impl_._has_bits_[0] &= ~0x00000004u;
844}
845inline int32_t Metadata_Calibration::_internal_confirmation() const {
846 return _impl_.confirmation_;
847}
848inline int32_t Metadata_Calibration::confirmation() const {
849 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.Calibration.confirmation)
850 return _internal_confirmation();
851}
852inline void Metadata_Calibration::_internal_set_confirmation(int32_t value) {
853 _impl_._has_bits_[0] |= 0x00000004u;
854 _impl_.confirmation_ = value;
855}
856inline void Metadata_Calibration::set_confirmation(int32_t value) {
857 _internal_set_confirmation(value);
858 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.Calibration.confirmation)
859}
860
861// -------------------------------------------------------------------
862
863// Metadata_MetadataValue
864
865// required string key = 1 [(.nanopb) = {
866inline bool Metadata_MetadataValue::_internal_has_key() const {
867 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
868 return value;
869}
870inline bool Metadata_MetadataValue::has_key() const {
871 return _internal_has_key();
872}
873inline void Metadata_MetadataValue::clear_key() {
874 _impl_.key_.ClearToEmpty();
875 _impl_._has_bits_[0] &= ~0x00000001u;
876}
877inline const std::string& Metadata_MetadataValue::key() const {
878 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
879 return _internal_key();
880}
881template <typename ArgT0, typename... ArgT>
882inline PROTOBUF_ALWAYS_INLINE
883void Metadata_MetadataValue::set_key(ArgT0&& arg0, ArgT... args) {
884 _impl_._has_bits_[0] |= 0x00000001u;
885 _impl_.key_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
886 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
887}
888inline std::string* Metadata_MetadataValue::mutable_key() {
889 std::string* _s = _internal_mutable_key();
890 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
891 return _s;
892}
893inline const std::string& Metadata_MetadataValue::_internal_key() const {
894 return _impl_.key_.Get();
895}
896inline void Metadata_MetadataValue::_internal_set_key(const std::string& value) {
897 _impl_._has_bits_[0] |= 0x00000001u;
898 _impl_.key_.Set(value, GetArenaForAllocation());
899}
900inline std::string* Metadata_MetadataValue::_internal_mutable_key() {
901 _impl_._has_bits_[0] |= 0x00000001u;
902 return _impl_.key_.Mutable(GetArenaForAllocation());
903}
904inline std::string* Metadata_MetadataValue::release_key() {
905 // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
906 if (!_internal_has_key()) {
907 return nullptr;
908 }
909 _impl_._has_bits_[0] &= ~0x00000001u;
910 auto* p = _impl_.key_.Release();
911#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
912 if (_impl_.key_.IsDefault()) {
913 _impl_.key_.Set("", GetArenaForAllocation());
914 }
915#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
916 return p;
917}
918inline void Metadata_MetadataValue::set_allocated_key(std::string* key) {
919 if (key != nullptr) {
920 _impl_._has_bits_[0] |= 0x00000001u;
921 } else {
922 _impl_._has_bits_[0] &= ~0x00000001u;
923 }
924 _impl_.key_.SetAllocated(key, GetArenaForAllocation());
925#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
926 if (_impl_.key_.IsDefault()) {
927 _impl_.key_.Set("", GetArenaForAllocation());
928 }
929#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
930 // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.key)
931}
932
933// required string value = 2 [(.nanopb) = {
934inline bool Metadata_MetadataValue::_internal_has_value() const {
935 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
936 return value;
937}
938inline bool Metadata_MetadataValue::has_value() const {
939 return _internal_has_value();
940}
941inline void Metadata_MetadataValue::clear_value() {
942 _impl_.value_.ClearToEmpty();
943 _impl_._has_bits_[0] &= ~0x00000002u;
944}
945inline const std::string& Metadata_MetadataValue::value() const {
946 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
947 return _internal_value();
948}
949template <typename ArgT0, typename... ArgT>
950inline PROTOBUF_ALWAYS_INLINE
951void Metadata_MetadataValue::set_value(ArgT0&& arg0, ArgT... args) {
952 _impl_._has_bits_[0] |= 0x00000002u;
953 _impl_.value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
954 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
955}
956inline std::string* Metadata_MetadataValue::mutable_value() {
957 std::string* _s = _internal_mutable_value();
958 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
959 return _s;
960}
961inline const std::string& Metadata_MetadataValue::_internal_value() const {
962 return _impl_.value_.Get();
963}
964inline void Metadata_MetadataValue::_internal_set_value(const std::string& value) {
965 _impl_._has_bits_[0] |= 0x00000002u;
966 _impl_.value_.Set(value, GetArenaForAllocation());
967}
968inline std::string* Metadata_MetadataValue::_internal_mutable_value() {
969 _impl_._has_bits_[0] |= 0x00000002u;
970 return _impl_.value_.Mutable(GetArenaForAllocation());
971}
972inline std::string* Metadata_MetadataValue::release_value() {
973 // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
974 if (!_internal_has_value()) {
975 return nullptr;
976 }
977 _impl_._has_bits_[0] &= ~0x00000002u;
978 auto* p = _impl_.value_.Release();
979#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
980 if (_impl_.value_.IsDefault()) {
981 _impl_.value_.Set("", GetArenaForAllocation());
982 }
983#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
984 return p;
985}
986inline void Metadata_MetadataValue::set_allocated_value(std::string* value) {
987 if (value != nullptr) {
988 _impl_._has_bits_[0] |= 0x00000002u;
989 } else {
990 _impl_._has_bits_[0] &= ~0x00000002u;
991 }
992 _impl_.value_.SetAllocated(value, GetArenaForAllocation());
993#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
994 if (_impl_.value_.IsDefault()) {
995 _impl_.value_.Set("", GetArenaForAllocation());
996 }
997#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
998 // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.MetadataValue.value)
999}
1000
1001// -------------------------------------------------------------------
1002
1003// Metadata
1004
1005// required .jaiabot.sensor.protobuf.Sensor sensor = 1;
1006inline bool Metadata::_internal_has_sensor() const {
1007 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1008 return value;
1009}
1010inline bool Metadata::has_sensor() const {
1011 return _internal_has_sensor();
1012}
1013inline void Metadata::clear_sensor() {
1014 _impl_.sensor_ = 1;
1015 _impl_._has_bits_[0] &= ~0x00000020u;
1016}
1017inline ::jaiabot::sensor::protobuf::Sensor Metadata::_internal_sensor() const {
1018 return static_cast< ::jaiabot::sensor::protobuf::Sensor >(_impl_.sensor_);
1019}
1020inline ::jaiabot::sensor::protobuf::Sensor Metadata::sensor() const {
1021 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.sensor)
1022 return _internal_sensor();
1023}
1024inline void Metadata::_internal_set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
1026 _impl_._has_bits_[0] |= 0x00000020u;
1027 _impl_.sensor_ = value;
1028}
1029inline void Metadata::set_sensor(::jaiabot::sensor::protobuf::Sensor value) {
1030 _internal_set_sensor(value);
1031 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.sensor)
1032}
1033
1034// optional int32 sensor_version = 2;
1035inline bool Metadata::_internal_has_sensor_version() const {
1036 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1037 return value;
1038}
1039inline bool Metadata::has_sensor_version() const {
1040 return _internal_has_sensor_version();
1041}
1042inline void Metadata::clear_sensor_version() {
1043 _impl_.sensor_version_ = 0;
1044 _impl_._has_bits_[0] &= ~0x00000004u;
1045}
1046inline int32_t Metadata::_internal_sensor_version() const {
1047 return _impl_.sensor_version_;
1048}
1049inline int32_t Metadata::sensor_version() const {
1050 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.sensor_version)
1051 return _internal_sensor_version();
1052}
1053inline void Metadata::_internal_set_sensor_version(int32_t value) {
1054 _impl_._has_bits_[0] |= 0x00000004u;
1055 _impl_.sensor_version_ = value;
1056}
1057inline void Metadata::set_sensor_version(int32_t value) {
1058 _internal_set_sensor_version(value);
1059 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.sensor_version)
1060}
1061
1062// optional int32 payload_board_version = 6;
1063inline bool Metadata::_internal_has_payload_board_version() const {
1064 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1065 return value;
1066}
1067inline bool Metadata::has_payload_board_version() const {
1068 return _internal_has_payload_board_version();
1069}
1070inline void Metadata::clear_payload_board_version() {
1071 _impl_.payload_board_version_ = 0;
1072 _impl_._has_bits_[0] &= ~0x00000008u;
1073}
1074inline int32_t Metadata::_internal_payload_board_version() const {
1075 return _impl_.payload_board_version_;
1076}
1077inline int32_t Metadata::payload_board_version() const {
1078 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.payload_board_version)
1079 return _internal_payload_board_version();
1080}
1081inline void Metadata::_internal_set_payload_board_version(int32_t value) {
1082 _impl_._has_bits_[0] |= 0x00000008u;
1083 _impl_.payload_board_version_ = value;
1084}
1085inline void Metadata::set_payload_board_version(int32_t value) {
1086 _internal_set_payload_board_version(value);
1087 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.payload_board_version)
1088}
1089
1090// optional .jaiabot.sensor.protobuf.Metadata.Calibration calibration = 3;
1091inline bool Metadata::_internal_has_calibration() const {
1092 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1093 PROTOBUF_ASSUME(!value || _impl_.calibration_ != nullptr);
1094 return value;
1095}
1096inline bool Metadata::has_calibration() const {
1097 return _internal_has_calibration();
1098}
1099inline void Metadata::clear_calibration() {
1100 if (_impl_.calibration_ != nullptr) _impl_.calibration_->Clear();
1101 _impl_._has_bits_[0] &= ~0x00000001u;
1102}
1103inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::_internal_calibration() const {
1104 const ::jaiabot::sensor::protobuf::Metadata_Calibration* p = _impl_.calibration_;
1105 return p != nullptr ? *p : reinterpret_cast<const ::jaiabot::sensor::protobuf::Metadata_Calibration&>(
1107}
1108inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::calibration() const {
1109 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.calibration)
1110 return _internal_calibration();
1111}
1112inline void Metadata::unsafe_arena_set_allocated_calibration(
1114 if (GetArenaForAllocation() == nullptr) {
1115 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.calibration_);
1116 }
1117 _impl_.calibration_ = calibration;
1118 if (calibration) {
1119 _impl_._has_bits_[0] |= 0x00000001u;
1120 } else {
1121 _impl_._has_bits_[0] &= ~0x00000001u;
1122 }
1123 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.sensor.protobuf.Metadata.calibration)
1124}
1125inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::release_calibration() {
1126 _impl_._has_bits_[0] &= ~0x00000001u;
1127 ::jaiabot::sensor::protobuf::Metadata_Calibration* temp = _impl_.calibration_;
1128 _impl_.calibration_ = nullptr;
1129#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1130 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1131 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1132 if (GetArenaForAllocation() == nullptr) { delete old; }
1133#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1134 if (GetArenaForAllocation() != nullptr) {
1135 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1136 }
1137#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1138 return temp;
1139}
1140inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::unsafe_arena_release_calibration() {
1141 // @@protoc_insertion_point(field_release:jaiabot.sensor.protobuf.Metadata.calibration)
1142 _impl_._has_bits_[0] &= ~0x00000001u;
1143 ::jaiabot::sensor::protobuf::Metadata_Calibration* temp = _impl_.calibration_;
1144 _impl_.calibration_ = nullptr;
1145 return temp;
1146}
1147inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::_internal_mutable_calibration() {
1148 _impl_._has_bits_[0] |= 0x00000001u;
1149 if (_impl_.calibration_ == nullptr) {
1151 _impl_.calibration_ = p;
1152 }
1153 return _impl_.calibration_;
1154}
1155inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::mutable_calibration() {
1156 ::jaiabot::sensor::protobuf::Metadata_Calibration* _msg = _internal_mutable_calibration();
1157 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.calibration)
1158 return _msg;
1159}
1160inline void Metadata::set_allocated_calibration(::jaiabot::sensor::protobuf::Metadata_Calibration* calibration) {
1161 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1162 if (message_arena == nullptr) {
1163 delete _impl_.calibration_;
1164 }
1165 if (calibration) {
1166 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1167 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(calibration);
1168 if (message_arena != submessage_arena) {
1169 calibration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1170 message_arena, calibration, submessage_arena);
1171 }
1172 _impl_._has_bits_[0] |= 0x00000001u;
1173 } else {
1174 _impl_._has_bits_[0] &= ~0x00000001u;
1175 }
1176 _impl_.calibration_ = calibration;
1177 // @@protoc_insertion_point(field_set_allocated:jaiabot.sensor.protobuf.Metadata.calibration)
1178}
1179
1180// optional uint64 time_purchased = 4 [(.dccl.field) = {
1181inline bool Metadata::_internal_has_time_purchased() const {
1182 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1183 return value;
1184}
1185inline bool Metadata::has_time_purchased() const {
1186 return _internal_has_time_purchased();
1187}
1188inline void Metadata::clear_time_purchased() {
1189 _impl_.time_purchased_ = uint64_t{0u};
1190 _impl_._has_bits_[0] &= ~0x00000002u;
1191}
1192inline uint64_t Metadata::_internal_time_purchased() const {
1193 return _impl_.time_purchased_;
1194}
1195inline uint64_t Metadata::time_purchased() const {
1196 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.time_purchased)
1197 return _internal_time_purchased();
1198}
1199inline void Metadata::_internal_set_time_purchased(uint64_t value) {
1200 _impl_._has_bits_[0] |= 0x00000002u;
1201 _impl_.time_purchased_ = value;
1202}
1203inline void Metadata::set_time_purchased(uint64_t value) {
1204 _internal_set_time_purchased(value);
1205 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.time_purchased)
1206}
1207
1208// repeated .jaiabot.sensor.protobuf.Metadata.MetadataValue metadata = 5 [(.nanopb) = {
1209inline int Metadata::_internal_metadata_size() const {
1210 return _impl_.metadata_.size();
1211}
1212inline int Metadata::metadata_size() const {
1213 return _internal_metadata_size();
1214}
1215inline void Metadata::clear_metadata() {
1216 _impl_.metadata_.Clear();
1217}
1218inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::mutable_metadata(int index) {
1219 // @@protoc_insertion_point(field_mutable:jaiabot.sensor.protobuf.Metadata.metadata)
1220 return _impl_.metadata_.Mutable(index);
1221}
1222inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
1223Metadata::mutable_metadata() {
1224 // @@protoc_insertion_point(field_mutable_list:jaiabot.sensor.protobuf.Metadata.metadata)
1225 return &_impl_.metadata_;
1226}
1227inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::_internal_metadata(int index) const {
1228 return _impl_.metadata_.Get(index);
1229}
1230inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::metadata(int index) const {
1231 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.metadata)
1232 return _internal_metadata(index);
1233}
1234inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::_internal_add_metadata() {
1235 return _impl_.metadata_.Add();
1236}
1237inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::add_metadata() {
1238 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* _add = _internal_add_metadata();
1239 // @@protoc_insertion_point(field_add:jaiabot.sensor.protobuf.Metadata.metadata)
1240 return _add;
1241}
1242inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
1243Metadata::metadata() const {
1244 // @@protoc_insertion_point(field_list:jaiabot.sensor.protobuf.Metadata.metadata)
1245 return _impl_.metadata_;
1246}
1247
1248// optional bool init_failed = 7;
1249inline bool Metadata::_internal_has_init_failed() const {
1250 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1251 return value;
1252}
1253inline bool Metadata::has_init_failed() const {
1254 return _internal_has_init_failed();
1255}
1256inline void Metadata::clear_init_failed() {
1257 _impl_.init_failed_ = false;
1258 _impl_._has_bits_[0] &= ~0x00000010u;
1259}
1260inline bool Metadata::_internal_init_failed() const {
1261 return _impl_.init_failed_;
1262}
1263inline bool Metadata::init_failed() const {
1264 // @@protoc_insertion_point(field_get:jaiabot.sensor.protobuf.Metadata.init_failed)
1265 return _internal_init_failed();
1266}
1267inline void Metadata::_internal_set_init_failed(bool value) {
1268 _impl_._has_bits_[0] |= 0x00000010u;
1269 _impl_.init_failed_ = value;
1270}
1271inline void Metadata::set_init_failed(bool value) {
1272 _internal_set_init_failed(value);
1273 // @@protoc_insertion_point(field_set:jaiabot.sensor.protobuf.Metadata.init_failed)
1274}
1275
1276#ifdef __GNUC__
1277 #pragma GCC diagnostic pop
1278#endif // __GNUC__
1279// -------------------------------------------------------------------
1280
1281// -------------------------------------------------------------------
1282
1283
1284// @@protoc_insertion_point(namespace_scope)
1285
1286} // namespace protobuf
1287} // namespace sensor
1288} // namespace jaiabot
1289
1290// @@protoc_insertion_point(global_scope)
1291
1292#include <google/protobuf/port_undef.inc>
1293#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
MetadataDefaultTypeInternal _Metadata_default_instance_
constexpr goby::middleware::Group metadata
Definition groups.h:116
Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_
bool Sensor_IsValid(int value)
Metadata_MetadataValueDefaultTypeInternal _Metadata_MetadataValue_default_instance_
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