4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
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
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.
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>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
34#include "jaiabot/messages/sensor/catalog.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>
41#include <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
53 static const uint32_t
offsets[];
60struct MetadataDefaultTypeInternal;
62class Metadata_Calibration;
63struct Metadata_CalibrationDefaultTypeInternal;
65class Metadata_MetadataValue;
66struct Metadata_MetadataValueDefaultTypeInternal;
71PROTOBUF_NAMESPACE_OPEN
75PROTOBUF_NAMESPACE_CLOSE
82class Metadata_Calibration final :
83 public ::PROTOBUF_NAMESPACE_ID::Message {
87 explicit PROTOBUF_CONSTEXPR
Metadata_Calibration(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
92 *
this = ::std::move(from);
100 if (
this == &from)
return *
this;
101 if (GetOwningArena() == from.GetOwningArena()
102 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
103 && GetOwningArena() !=
nullptr
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);
117 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
120 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
123 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
GetDescriptor() {
126 static const ::PROTOBUF_NAMESPACE_ID::Reflection*
GetReflection() {
143 if (other ==
this)
return;
144 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() !=
nullptr &&
146 GetOwningArena() == other->GetOwningArena()) {
148 if (GetOwningArena() == other->GetOwningArena()) {
152 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
156 if (other ==
this)
return;
157 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
164 return CreateMaybeMessage<Metadata_Calibration>(arena);
166 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
168 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
170 Metadata_Calibration::MergeImpl(*
this, from);
173 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
175 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
181 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
185 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
187 void SetCachedSize(
int size)
const final;
191 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
192 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
193 return "jaiabot.sensor.protobuf.Metadata.Calibration";
197 bool is_message_owned =
false);
201 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
203 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
217 bool _internal_has_time_performed()
const;
223 uint64_t _internal_time_performed()
const;
224 void _internal_set_time_performed(uint64_t value);
230 bool _internal_has_time_to_recalibrate()
const;
236 uint64_t _internal_time_to_recalibrate()
const;
237 void _internal_set_time_to_recalibrate(uint64_t value);
243 bool _internal_has_confirmation()
const;
249 int32_t _internal_confirmation()
const;
250 void _internal_set_confirmation(int32_t value);
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;
257 template<
typename Quantity >
259 {
set_time_performed(boost::units::quantity<time_performed_unit,google::protobuf::uint64 >(value_w_units).value() ); };
261 template<
typename Quantity >
266 {
return time_performed_with_units<boost::units::quantity< time_performed_unit,google::protobuf::uint64 > >(); };
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;
272 template<
typename Quantity >
274 {
set_time_to_recalibrate(boost::units::quantity<time_to_recalibrate_unit,google::protobuf::uint64 >(value_w_units).value() ); };
276 template<
typename Quantity >
281 {
return time_to_recalibrate_with_units<boost::units::quantity< time_to_recalibrate_unit,google::protobuf::uint64 > >(); };
287 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288 typedef void InternalArenaConstructable_;
289 typedef void DestructorSkippable_;
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_;
298 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
302class Metadata_MetadataValue final :
303 public ::PROTOBUF_NAMESPACE_ID::Message {
305 inline Metadata_MetadataValue() : Metadata_MetadataValue(nullptr) {}
306 ~Metadata_MetadataValue()
override;
307 explicit PROTOBUF_CONSTEXPR Metadata_MetadataValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
309 Metadata_MetadataValue(
const Metadata_MetadataValue& from);
310 Metadata_MetadataValue(Metadata_MetadataValue&& from) noexcept
311 : Metadata_MetadataValue() {
312 *
this = ::std::move(from);
315 inline Metadata_MetadataValue& operator=(
const Metadata_MetadataValue& from) {
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
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);
336 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
337 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
340 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
341 return GetDescriptor();
343 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
344 return default_instance().GetMetadata().descriptor;
346 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
347 return default_instance().GetMetadata().reflection;
349 static const Metadata_MetadataValue& default_instance() {
350 return *internal_default_instance();
352 static inline const Metadata_MetadataValue* internal_default_instance() {
353 return reinterpret_cast<const Metadata_MetadataValue*
>(
356 static constexpr int kIndexInFileMessages =
359 friend void swap(Metadata_MetadataValue& a, Metadata_MetadataValue& b) {
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()) {
368 if (GetOwningArena() == other->GetOwningArena()) {
372 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
375 void UnsafeArenaSwap(Metadata_MetadataValue* other) {
376 if (other ==
this)
return;
377 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
383 Metadata_MetadataValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
384 return CreateMaybeMessage<Metadata_MetadataValue>(arena);
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);
393 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
395 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
396 bool IsInitialized() const final;
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(); }
405 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
407 void SetCachedSize(
int size)
const final;
408 void InternalSwap(Metadata_MetadataValue* other);
411 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
412 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
413 return "jaiabot.sensor.protobuf.Metadata.MetadataValue";
416 explicit Metadata_MetadataValue(::PROTOBUF_NAMESPACE_ID::Arena* arena,
417 bool is_message_owned =
false);
420 static const ClassData _class_data_;
421 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
423 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
431 kValueFieldNumber = 2,
434 bool has_key()
const;
436 bool _internal_has_key()
const;
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);
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();
452 bool has_value()
const;
454 bool _internal_has_value()
const;
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);
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();
474 size_t RequiredFieldsByteSizeFallback()
const;
476 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
477 typedef void InternalArenaConstructable_;
478 typedef void DestructorSkippable_;
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_;
485 union { Impl_ _impl_; };
486 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
490class Metadata final :
491 public ::PROTOBUF_NAMESPACE_ID::Message {
493 inline Metadata() : Metadata(nullptr) {}
494 ~Metadata()
override;
495 explicit PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
497 Metadata(
const Metadata& from);
498 Metadata(Metadata&& from) noexcept
500 *
this = ::std::move(from);
503 inline Metadata& operator=(
const Metadata& from) {
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
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);
524 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
525 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
528 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
529 return GetDescriptor();
531 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
532 return default_instance().GetMetadata().descriptor;
534 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
535 return default_instance().GetMetadata().reflection;
537 static const Metadata& default_instance() {
538 return *internal_default_instance();
540 static inline const Metadata* internal_default_instance() {
541 return reinterpret_cast<const Metadata*
>(
544 static constexpr int kIndexInFileMessages =
547 friend void swap(Metadata& a, Metadata& b) {
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()) {
556 if (GetOwningArena() == other->GetOwningArena()) {
560 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
563 void UnsafeArenaSwap(Metadata* other) {
564 if (other ==
this)
return;
565 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
571 Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
572 return CreateMaybeMessage<Metadata>(arena);
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);
581 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
583 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
584 bool IsInitialized() const final;
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(); }
593 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
595 void SetCachedSize(
int size)
const final;
596 void InternalSwap(Metadata* other);
599 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
600 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
601 return "jaiabot.sensor.protobuf.Metadata";
604 explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
605 bool is_message_owned =
false);
608 static const ClassData _class_data_;
609 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
611 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
615 typedef Metadata_Calibration Calibration;
616 typedef Metadata_MetadataValue MetadataValue;
621 kMetadataFieldNumber = 5,
622 kCalibrationFieldNumber = 3,
623 kTimePurchasedFieldNumber = 4,
624 kSensorVersionFieldNumber = 2,
625 kPayloadBoardVersionFieldNumber = 6,
626 kInitFailedFieldNumber = 7,
627 kSensorFieldNumber = 1,
630 int metadata_size()
const;
632 int _internal_metadata_size()
const;
634 void clear_metadata();
636 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
639 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& _internal_metadata(
int index)
const;
642 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue&
metadata(
int index)
const;
644 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
648 bool has_calibration()
const;
650 bool _internal_has_calibration()
const;
652 void clear_calibration();
653 const ::jaiabot::sensor::protobuf::Metadata_Calibration& calibration()
const;
654 PROTOBUF_NODISCARD ::jaiabot::sensor::protobuf::Metadata_Calibration* release_calibration();
658 const ::jaiabot::sensor::protobuf::Metadata_Calibration& _internal_calibration()
const;
661 void unsafe_arena_set_allocated_calibration(
666 bool has_time_purchased()
const;
668 bool _internal_has_time_purchased()
const;
670 void clear_time_purchased();
671 uint64_t time_purchased()
const;
672 void set_time_purchased(uint64_t value);
674 uint64_t _internal_time_purchased()
const;
675 void _internal_set_time_purchased(uint64_t value);
679 bool has_sensor_version()
const;
681 bool _internal_has_sensor_version()
const;
683 void clear_sensor_version();
684 int32_t sensor_version()
const;
685 void set_sensor_version(int32_t value);
687 int32_t _internal_sensor_version()
const;
688 void _internal_set_sensor_version(int32_t value);
692 bool has_payload_board_version()
const;
694 bool _internal_has_payload_board_version()
const;
696 void clear_payload_board_version();
697 int32_t payload_board_version()
const;
698 void set_payload_board_version(int32_t value);
700 int32_t _internal_payload_board_version()
const;
701 void _internal_set_payload_board_version(int32_t value);
705 bool has_init_failed()
const;
707 bool _internal_has_init_failed()
const;
709 void clear_init_failed();
710 bool init_failed()
const;
711 void set_init_failed(
bool value);
713 bool _internal_init_failed()
const;
714 void _internal_set_init_failed(
bool value);
718 bool has_sensor()
const;
720 bool _internal_has_sensor()
const;
730 typedef boost::units::time_dimension time_purchased_dimension;
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;
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() ); };
738 template<
typename Quantity >
739 Quantity time_purchased_with_units()
const
740 {
return Quantity(time_purchased() * time_purchased_unit()); };
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 > >(); };
749 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
750 typedef void InternalArenaConstructable_;
751 typedef void DestructorSkippable_;
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_;
763 union { Impl_ _impl_; };
764 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
772 #pragma GCC diagnostic push
773 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
778inline bool Metadata_Calibration::_internal_has_time_performed()
const {
779 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
782inline bool Metadata_Calibration::has_time_performed()
const {
783 return _internal_has_time_performed();
785inline void Metadata_Calibration::clear_time_performed() {
786 _impl_.time_performed_ = uint64_t{0u};
787 _impl_._has_bits_[0] &= ~0x00000001u;
789inline uint64_t Metadata_Calibration::_internal_time_performed()
const {
790 return _impl_.time_performed_;
792inline uint64_t Metadata_Calibration::time_performed()
const {
794 return _internal_time_performed();
796inline void Metadata_Calibration::_internal_set_time_performed(uint64_t value) {
797 _impl_._has_bits_[0] |= 0x00000001u;
798 _impl_.time_performed_ = value;
800inline void Metadata_Calibration::set_time_performed(uint64_t value) {
801 _internal_set_time_performed(value);
806inline bool Metadata_Calibration::_internal_has_time_to_recalibrate()
const {
807 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
810inline bool Metadata_Calibration::has_time_to_recalibrate()
const {
811 return _internal_has_time_to_recalibrate();
813inline void Metadata_Calibration::clear_time_to_recalibrate() {
814 _impl_.time_to_recalibrate_ = uint64_t{0u};
815 _impl_._has_bits_[0] &= ~0x00000002u;
817inline uint64_t Metadata_Calibration::_internal_time_to_recalibrate()
const {
818 return _impl_.time_to_recalibrate_;
820inline uint64_t Metadata_Calibration::time_to_recalibrate()
const {
822 return _internal_time_to_recalibrate();
824inline void Metadata_Calibration::_internal_set_time_to_recalibrate(uint64_t value) {
825 _impl_._has_bits_[0] |= 0x00000002u;
826 _impl_.time_to_recalibrate_ = value;
828inline void Metadata_Calibration::set_time_to_recalibrate(uint64_t value) {
829 _internal_set_time_to_recalibrate(value);
834inline bool Metadata_Calibration::_internal_has_confirmation()
const {
835 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
838inline bool Metadata_Calibration::has_confirmation()
const {
839 return _internal_has_confirmation();
841inline void Metadata_Calibration::clear_confirmation() {
842 _impl_.confirmation_ = 0;
843 _impl_._has_bits_[0] &= ~0x00000004u;
845inline int32_t Metadata_Calibration::_internal_confirmation()
const {
846 return _impl_.confirmation_;
848inline int32_t Metadata_Calibration::confirmation()
const {
850 return _internal_confirmation();
852inline void Metadata_Calibration::_internal_set_confirmation(int32_t value) {
853 _impl_._has_bits_[0] |= 0x00000004u;
854 _impl_.confirmation_ = value;
856inline void Metadata_Calibration::set_confirmation(int32_t value) {
857 _internal_set_confirmation(value);
866inline bool Metadata_MetadataValue::_internal_has_key()
const {
867 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
870inline bool Metadata_MetadataValue::has_key()
const {
871 return _internal_has_key();
873inline void Metadata_MetadataValue::clear_key() {
874 _impl_.key_.ClearToEmpty();
875 _impl_._has_bits_[0] &= ~0x00000001u;
877inline const std::string& Metadata_MetadataValue::key()
const {
879 return _internal_key();
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());
888inline std::string* Metadata_MetadataValue::mutable_key() {
889 std::string* _s = _internal_mutable_key();
893inline const std::string& Metadata_MetadataValue::_internal_key()
const {
894 return _impl_.key_.Get();
896inline void Metadata_MetadataValue::_internal_set_key(
const std::string& value) {
897 _impl_._has_bits_[0] |= 0x00000001u;
898 _impl_.key_.Set(value, GetArenaForAllocation());
900inline std::string* Metadata_MetadataValue::_internal_mutable_key() {
901 _impl_._has_bits_[0] |= 0x00000001u;
902 return _impl_.key_.Mutable(GetArenaForAllocation());
904inline std::string* Metadata_MetadataValue::release_key() {
906 if (!_internal_has_key()) {
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());
918inline void Metadata_MetadataValue::set_allocated_key(std::string* key) {
919 if (key !=
nullptr) {
920 _impl_._has_bits_[0] |= 0x00000001u;
922 _impl_._has_bits_[0] &= ~0x00000001u;
924 _impl_.key_.SetAllocated(key, GetArenaForAllocation());
925#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
926 if (_impl_.key_.IsDefault()) {
927 _impl_.key_.Set(
"", GetArenaForAllocation());
934inline bool Metadata_MetadataValue::_internal_has_value()
const {
935 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
938inline bool Metadata_MetadataValue::has_value()
const {
939 return _internal_has_value();
941inline void Metadata_MetadataValue::clear_value() {
942 _impl_.value_.ClearToEmpty();
943 _impl_._has_bits_[0] &= ~0x00000002u;
945inline const std::string& Metadata_MetadataValue::value()
const {
947 return _internal_value();
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());
956inline std::string* Metadata_MetadataValue::mutable_value() {
957 std::string* _s = _internal_mutable_value();
961inline const std::string& Metadata_MetadataValue::_internal_value()
const {
962 return _impl_.value_.Get();
964inline void Metadata_MetadataValue::_internal_set_value(
const std::string& value) {
965 _impl_._has_bits_[0] |= 0x00000002u;
966 _impl_.value_.Set(value, GetArenaForAllocation());
968inline std::string* Metadata_MetadataValue::_internal_mutable_value() {
969 _impl_._has_bits_[0] |= 0x00000002u;
970 return _impl_.value_.Mutable(GetArenaForAllocation());
972inline std::string* Metadata_MetadataValue::release_value() {
974 if (!_internal_has_value()) {
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());
986inline void Metadata_MetadataValue::set_allocated_value(std::string* value) {
987 if (value !=
nullptr) {
988 _impl_._has_bits_[0] |= 0x00000002u;
990 _impl_._has_bits_[0] &= ~0x00000002u;
992 _impl_.value_.SetAllocated(value, GetArenaForAllocation());
993#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
994 if (_impl_.value_.IsDefault()) {
995 _impl_.value_.Set(
"", GetArenaForAllocation());
1006inline bool Metadata::_internal_has_sensor()
const {
1007 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1010inline bool Metadata::has_sensor()
const {
1011 return _internal_has_sensor();
1013inline void Metadata::clear_sensor() {
1015 _impl_._has_bits_[0] &= ~0x00000020u;
1017inline ::jaiabot::sensor::protobuf::Sensor Metadata::_internal_sensor()
const {
1020inline ::jaiabot::sensor::protobuf::Sensor Metadata::sensor()
const {
1022 return _internal_sensor();
1026 _impl_._has_bits_[0] |= 0x00000020u;
1027 _impl_.sensor_ = value;
1030 _internal_set_sensor(value);
1035inline bool Metadata::_internal_has_sensor_version()
const {
1036 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1039inline bool Metadata::has_sensor_version()
const {
1040 return _internal_has_sensor_version();
1042inline void Metadata::clear_sensor_version() {
1043 _impl_.sensor_version_ = 0;
1044 _impl_._has_bits_[0] &= ~0x00000004u;
1046inline int32_t Metadata::_internal_sensor_version()
const {
1047 return _impl_.sensor_version_;
1049inline int32_t Metadata::sensor_version()
const {
1051 return _internal_sensor_version();
1053inline void Metadata::_internal_set_sensor_version(int32_t value) {
1054 _impl_._has_bits_[0] |= 0x00000004u;
1055 _impl_.sensor_version_ = value;
1057inline void Metadata::set_sensor_version(int32_t value) {
1058 _internal_set_sensor_version(value);
1063inline bool Metadata::_internal_has_payload_board_version()
const {
1064 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1067inline bool Metadata::has_payload_board_version()
const {
1068 return _internal_has_payload_board_version();
1070inline void Metadata::clear_payload_board_version() {
1071 _impl_.payload_board_version_ = 0;
1072 _impl_._has_bits_[0] &= ~0x00000008u;
1074inline int32_t Metadata::_internal_payload_board_version()
const {
1075 return _impl_.payload_board_version_;
1077inline int32_t Metadata::payload_board_version()
const {
1079 return _internal_payload_board_version();
1081inline void Metadata::_internal_set_payload_board_version(int32_t value) {
1082 _impl_._has_bits_[0] |= 0x00000008u;
1083 _impl_.payload_board_version_ = value;
1085inline void Metadata::set_payload_board_version(int32_t value) {
1086 _internal_set_payload_board_version(value);
1091inline bool Metadata::_internal_has_calibration()
const {
1092 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1093 PROTOBUF_ASSUME(!value || _impl_.calibration_ !=
nullptr);
1096inline bool Metadata::has_calibration()
const {
1097 return _internal_has_calibration();
1099inline void Metadata::clear_calibration() {
1100 if (_impl_.calibration_ !=
nullptr) _impl_.calibration_->Clear();
1101 _impl_._has_bits_[0] &= ~0x00000001u;
1103inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::_internal_calibration()
const {
1104 const ::jaiabot::sensor::protobuf::Metadata_Calibration* p = _impl_.calibration_;
1108inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::calibration()
const {
1110 return _internal_calibration();
1112inline void Metadata::unsafe_arena_set_allocated_calibration(
1114 if (GetArenaForAllocation() ==
nullptr) {
1115 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.calibration_);
1117 _impl_.calibration_ = calibration;
1119 _impl_._has_bits_[0] |= 0x00000001u;
1121 _impl_._has_bits_[0] &= ~0x00000001u;
1125inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::release_calibration() {
1126 _impl_._has_bits_[0] &= ~0x00000001u;
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; }
1134 if (GetArenaForAllocation() !=
nullptr) {
1135 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1140inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::unsafe_arena_release_calibration() {
1142 _impl_._has_bits_[0] &= ~0x00000001u;
1144 _impl_.calibration_ =
nullptr;
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;
1153 return _impl_.calibration_;
1155inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::mutable_calibration() {
1161 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1162 if (message_arena ==
nullptr) {
1163 delete _impl_.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);
1172 _impl_._has_bits_[0] |= 0x00000001u;
1174 _impl_._has_bits_[0] &= ~0x00000001u;
1176 _impl_.calibration_ = calibration;
1181inline bool Metadata::_internal_has_time_purchased()
const {
1182 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1185inline bool Metadata::has_time_purchased()
const {
1186 return _internal_has_time_purchased();
1188inline void Metadata::clear_time_purchased() {
1189 _impl_.time_purchased_ = uint64_t{0u};
1190 _impl_._has_bits_[0] &= ~0x00000002u;
1192inline uint64_t Metadata::_internal_time_purchased()
const {
1193 return _impl_.time_purchased_;
1195inline uint64_t Metadata::time_purchased()
const {
1197 return _internal_time_purchased();
1199inline void Metadata::_internal_set_time_purchased(uint64_t value) {
1200 _impl_._has_bits_[0] |= 0x00000002u;
1201 _impl_.time_purchased_ = value;
1203inline void Metadata::set_time_purchased(uint64_t value) {
1204 _internal_set_time_purchased(value);
1209inline int Metadata::_internal_metadata_size()
const {
1210 return _impl_.metadata_.size();
1212inline int Metadata::metadata_size()
const {
1213 return _internal_metadata_size();
1215inline void Metadata::clear_metadata() {
1216 _impl_.metadata_.Clear();
1218inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::mutable_metadata(
int index) {
1220 return _impl_.metadata_.Mutable(index);
1222inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
1223Metadata::mutable_metadata() {
1225 return &_impl_.metadata_;
1227inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::_internal_metadata(
int index)
const {
1228 return _impl_.metadata_.Get(index);
1230inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::metadata(
int index)
const {
1232 return _internal_metadata(index);
1234inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::_internal_add_metadata() {
1235 return _impl_.metadata_.Add();
1237inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::add_metadata() {
1242inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
1243Metadata::metadata()
const {
1245 return _impl_.metadata_;
1249inline bool Metadata::_internal_has_init_failed()
const {
1250 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1253inline bool Metadata::has_init_failed()
const {
1254 return _internal_has_init_failed();
1256inline void Metadata::clear_init_failed() {
1257 _impl_.init_failed_ =
false;
1258 _impl_._has_bits_[0] &= ~0x00000010u;
1260inline bool Metadata::_internal_init_failed()
const {
1261 return _impl_.init_failed_;
1263inline bool Metadata::init_failed()
const {
1265 return _internal_init_failed();
1267inline void Metadata::_internal_set_init_failed(
bool value) {
1268 _impl_._has_bits_[0] |= 0x00000010u;
1269 _impl_.init_failed_ = value;
1271inline void Metadata::set_init_failed(
bool value) {
1272 _internal_set_init_failed(value);
1277 #pragma GCC diagnostic pop
1292#include <google/protobuf/port_undef.inc>
MetadataDefaultTypeInternal _Metadata_default_instance_
constexpr goby::middleware::Group metadata
Metadata_CalibrationDefaultTypeInternal _Metadata_Calibration_default_instance_
bool Sensor_IsValid(int value)
Metadata_MetadataValueDefaultTypeInternal _Metadata_MetadataValue_default_instance_
MetadataDefaultTypeInternal _Metadata_default_instance_