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;
63struct Metadata_CalibrationDefaultTypeInternal;
66struct Metadata_MetadataValueDefaultTypeInternal;
71PROTOBUF_NAMESPACE_OPEN
75PROTOBUF_NAMESPACE_CLOSE
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;
179 const
char*
_InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) 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 >
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 >
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,
628 kInstanceFieldNumber = 8,
631 int metadata_size()
const;
633 int _internal_metadata_size()
const;
635 void clear_metadata();
636 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* mutable_metadata(
int index);
637 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
640 const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& _internal_metadata(
int index)
const;
641 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* _internal_add_metadata();
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 >&
649 bool has_calibration()
const;
651 bool _internal_has_calibration()
const;
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);
659 const ::jaiabot::sensor::protobuf::Metadata_Calibration& _internal_calibration()
const;
660 ::jaiabot::sensor::protobuf::Metadata_Calibration* _internal_mutable_calibration();
662 void unsafe_arena_set_allocated_calibration(
663 ::jaiabot::sensor::protobuf::Metadata_Calibration* calibration);
664 ::jaiabot::sensor::protobuf::Metadata_Calibration* unsafe_arena_release_calibration();
667 bool has_time_purchased()
const;
669 bool _internal_has_time_purchased()
const;
671 void clear_time_purchased();
672 uint64_t time_purchased()
const;
673 void set_time_purchased(uint64_t value);
675 uint64_t _internal_time_purchased()
const;
676 void _internal_set_time_purchased(uint64_t value);
680 bool has_sensor_version()
const;
682 bool _internal_has_sensor_version()
const;
684 void clear_sensor_version();
685 int32_t sensor_version()
const;
686 void set_sensor_version(int32_t value);
688 int32_t _internal_sensor_version()
const;
689 void _internal_set_sensor_version(int32_t value);
693 bool has_payload_board_version()
const;
695 bool _internal_has_payload_board_version()
const;
697 void clear_payload_board_version();
698 int32_t payload_board_version()
const;
699 void set_payload_board_version(int32_t value);
701 int32_t _internal_payload_board_version()
const;
702 void _internal_set_payload_board_version(int32_t value);
706 bool has_init_failed()
const;
708 bool _internal_has_init_failed()
const;
710 void clear_init_failed();
711 bool init_failed()
const;
712 void set_init_failed(
bool value);
714 bool _internal_init_failed()
const;
715 void _internal_set_init_failed(
bool value);
719 bool has_sensor()
const;
721 bool _internal_has_sensor()
const;
732 bool has_instance()
const;
734 bool _internal_has_instance()
const;
736 void clear_instance();
744 typedef boost::units::time_dimension time_purchased_dimension;
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;
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() ); };
752 template<
typename Quantity >
753 Quantity time_purchased_with_units()
const
754 {
return Quantity(time_purchased() * time_purchased_unit()); };
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 > >(); };
763 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
764 typedef void InternalArenaConstructable_;
765 typedef void DestructorSkippable_;
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_;
778 union { Impl_ _impl_; };
779 friend struct ::TableStruct_jaiabot_2fmessages_2fsensor_2fmetadata_2eproto;
787 #pragma GCC diagnostic push
788 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
793inline bool Metadata_Calibration::_internal_has_time_performed()
const {
794 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
797inline bool Metadata_Calibration::has_time_performed()
const {
798 return _internal_has_time_performed();
800inline void Metadata_Calibration::clear_time_performed() {
801 _impl_.time_performed_ = uint64_t{0u};
802 _impl_._has_bits_[0] &= ~0x00000001u;
804inline uint64_t Metadata_Calibration::_internal_time_performed()
const {
805 return _impl_.time_performed_;
807inline uint64_t Metadata_Calibration::time_performed()
const {
809 return _internal_time_performed();
811inline void Metadata_Calibration::_internal_set_time_performed(uint64_t value) {
812 _impl_._has_bits_[0] |= 0x00000001u;
813 _impl_.time_performed_ = value;
815inline void Metadata_Calibration::set_time_performed(uint64_t value) {
816 _internal_set_time_performed(value);
821inline bool Metadata_Calibration::_internal_has_time_to_recalibrate()
const {
822 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
825inline bool Metadata_Calibration::has_time_to_recalibrate()
const {
826 return _internal_has_time_to_recalibrate();
828inline void Metadata_Calibration::clear_time_to_recalibrate() {
829 _impl_.time_to_recalibrate_ = uint64_t{0u};
830 _impl_._has_bits_[0] &= ~0x00000002u;
832inline uint64_t Metadata_Calibration::_internal_time_to_recalibrate()
const {
833 return _impl_.time_to_recalibrate_;
835inline uint64_t Metadata_Calibration::time_to_recalibrate()
const {
837 return _internal_time_to_recalibrate();
839inline void Metadata_Calibration::_internal_set_time_to_recalibrate(uint64_t value) {
840 _impl_._has_bits_[0] |= 0x00000002u;
841 _impl_.time_to_recalibrate_ = value;
843inline void Metadata_Calibration::set_time_to_recalibrate(uint64_t value) {
844 _internal_set_time_to_recalibrate(value);
849inline bool Metadata_Calibration::_internal_has_confirmation()
const {
850 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
853inline bool Metadata_Calibration::has_confirmation()
const {
854 return _internal_has_confirmation();
856inline void Metadata_Calibration::clear_confirmation() {
857 _impl_.confirmation_ = 0;
858 _impl_._has_bits_[0] &= ~0x00000004u;
860inline int32_t Metadata_Calibration::_internal_confirmation()
const {
861 return _impl_.confirmation_;
863inline int32_t Metadata_Calibration::confirmation()
const {
865 return _internal_confirmation();
867inline void Metadata_Calibration::_internal_set_confirmation(int32_t value) {
868 _impl_._has_bits_[0] |= 0x00000004u;
869 _impl_.confirmation_ = value;
871inline void Metadata_Calibration::set_confirmation(int32_t value) {
872 _internal_set_confirmation(value);
881inline bool Metadata_MetadataValue::_internal_has_key()
const {
882 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
885inline bool Metadata_MetadataValue::has_key()
const {
886 return _internal_has_key();
888inline void Metadata_MetadataValue::clear_key() {
889 _impl_.key_.ClearToEmpty();
890 _impl_._has_bits_[0] &= ~0x00000001u;
892inline const std::string& Metadata_MetadataValue::key()
const {
894 return _internal_key();
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());
903inline std::string* Metadata_MetadataValue::mutable_key() {
904 std::string* _s = _internal_mutable_key();
908inline const std::string& Metadata_MetadataValue::_internal_key()
const {
909 return _impl_.key_.Get();
911inline void Metadata_MetadataValue::_internal_set_key(
const std::string& value) {
912 _impl_._has_bits_[0] |= 0x00000001u;
913 _impl_.key_.Set(value, GetArenaForAllocation());
915inline std::string* Metadata_MetadataValue::_internal_mutable_key() {
916 _impl_._has_bits_[0] |= 0x00000001u;
917 return _impl_.key_.Mutable(GetArenaForAllocation());
919inline std::string* Metadata_MetadataValue::release_key() {
921 if (!_internal_has_key()) {
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());
933inline void Metadata_MetadataValue::set_allocated_key(std::string* key) {
934 if (key !=
nullptr) {
935 _impl_._has_bits_[0] |= 0x00000001u;
937 _impl_._has_bits_[0] &= ~0x00000001u;
939 _impl_.key_.SetAllocated(key, GetArenaForAllocation());
940#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
941 if (_impl_.key_.IsDefault()) {
942 _impl_.key_.Set(
"", GetArenaForAllocation());
949inline bool Metadata_MetadataValue::_internal_has_value()
const {
950 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
953inline bool Metadata_MetadataValue::has_value()
const {
954 return _internal_has_value();
956inline void Metadata_MetadataValue::clear_value() {
957 _impl_.value_.ClearToEmpty();
958 _impl_._has_bits_[0] &= ~0x00000002u;
960inline const std::string& Metadata_MetadataValue::value()
const {
962 return _internal_value();
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());
971inline std::string* Metadata_MetadataValue::mutable_value() {
972 std::string* _s = _internal_mutable_value();
976inline const std::string& Metadata_MetadataValue::_internal_value()
const {
977 return _impl_.value_.Get();
979inline void Metadata_MetadataValue::_internal_set_value(
const std::string& value) {
980 _impl_._has_bits_[0] |= 0x00000002u;
981 _impl_.value_.Set(value, GetArenaForAllocation());
983inline std::string* Metadata_MetadataValue::_internal_mutable_value() {
984 _impl_._has_bits_[0] |= 0x00000002u;
985 return _impl_.value_.Mutable(GetArenaForAllocation());
987inline std::string* Metadata_MetadataValue::release_value() {
989 if (!_internal_has_value()) {
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());
1001inline void Metadata_MetadataValue::set_allocated_value(std::string* value) {
1002 if (value !=
nullptr) {
1003 _impl_._has_bits_[0] |= 0x00000002u;
1005 _impl_._has_bits_[0] &= ~0x00000002u;
1007 _impl_.value_.SetAllocated(value, GetArenaForAllocation());
1008#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1009 if (_impl_.value_.IsDefault()) {
1010 _impl_.value_.Set(
"", GetArenaForAllocation());
1021inline bool Metadata::_internal_has_sensor()
const {
1022 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
1025inline bool Metadata::has_sensor()
const {
1026 return _internal_has_sensor();
1028inline void Metadata::clear_sensor() {
1030 _impl_._has_bits_[0] &= ~0x00000020u;
1032inline ::jaiabot::sensor::protobuf::Sensor Metadata::_internal_sensor()
const {
1035inline ::jaiabot::sensor::protobuf::Sensor Metadata::sensor()
const {
1037 return _internal_sensor();
1041 _impl_._has_bits_[0] |= 0x00000020u;
1042 _impl_.sensor_ = value;
1045 _internal_set_sensor(value);
1050inline bool Metadata::_internal_has_sensor_version()
const {
1051 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1054inline bool Metadata::has_sensor_version()
const {
1055 return _internal_has_sensor_version();
1057inline void Metadata::clear_sensor_version() {
1058 _impl_.sensor_version_ = 0;
1059 _impl_._has_bits_[0] &= ~0x00000004u;
1061inline int32_t Metadata::_internal_sensor_version()
const {
1062 return _impl_.sensor_version_;
1064inline int32_t Metadata::sensor_version()
const {
1066 return _internal_sensor_version();
1068inline void Metadata::_internal_set_sensor_version(int32_t value) {
1069 _impl_._has_bits_[0] |= 0x00000004u;
1070 _impl_.sensor_version_ = value;
1072inline void Metadata::set_sensor_version(int32_t value) {
1073 _internal_set_sensor_version(value);
1078inline bool Metadata::_internal_has_payload_board_version()
const {
1079 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
1082inline bool Metadata::has_payload_board_version()
const {
1083 return _internal_has_payload_board_version();
1085inline void Metadata::clear_payload_board_version() {
1086 _impl_.payload_board_version_ = 0;
1087 _impl_._has_bits_[0] &= ~0x00000008u;
1089inline int32_t Metadata::_internal_payload_board_version()
const {
1090 return _impl_.payload_board_version_;
1092inline int32_t Metadata::payload_board_version()
const {
1094 return _internal_payload_board_version();
1096inline void Metadata::_internal_set_payload_board_version(int32_t value) {
1097 _impl_._has_bits_[0] |= 0x00000008u;
1098 _impl_.payload_board_version_ = value;
1100inline void Metadata::set_payload_board_version(int32_t value) {
1101 _internal_set_payload_board_version(value);
1106inline bool Metadata::_internal_has_calibration()
const {
1107 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1108 PROTOBUF_ASSUME(!value || _impl_.calibration_ !=
nullptr);
1111inline bool Metadata::has_calibration()
const {
1112 return _internal_has_calibration();
1114inline void Metadata::clear_calibration() {
1115 if (_impl_.calibration_ !=
nullptr) _impl_.calibration_->Clear();
1116 _impl_._has_bits_[0] &= ~0x00000001u;
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&
>(
1123inline const ::jaiabot::sensor::protobuf::Metadata_Calibration& Metadata::calibration()
const {
1125 return _internal_calibration();
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_);
1132 _impl_.calibration_ = calibration;
1134 _impl_._has_bits_[0] |= 0x00000001u;
1136 _impl_._has_bits_[0] &= ~0x00000001u;
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; }
1149 if (GetArenaForAllocation() !=
nullptr) {
1150 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1155inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::unsafe_arena_release_calibration() {
1157 _impl_._has_bits_[0] &= ~0x00000001u;
1158 ::jaiabot::sensor::protobuf::Metadata_Calibration* temp = _impl_.calibration_;
1159 _impl_.calibration_ =
nullptr;
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;
1168 return _impl_.calibration_;
1170inline ::jaiabot::sensor::protobuf::Metadata_Calibration* Metadata::mutable_calibration() {
1171 ::jaiabot::sensor::protobuf::Metadata_Calibration* _msg = _internal_mutable_calibration();
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_;
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);
1187 _impl_._has_bits_[0] |= 0x00000001u;
1189 _impl_._has_bits_[0] &= ~0x00000001u;
1191 _impl_.calibration_ = calibration;
1196inline bool Metadata::_internal_has_time_purchased()
const {
1197 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1200inline bool Metadata::has_time_purchased()
const {
1201 return _internal_has_time_purchased();
1203inline void Metadata::clear_time_purchased() {
1204 _impl_.time_purchased_ = uint64_t{0u};
1205 _impl_._has_bits_[0] &= ~0x00000002u;
1207inline uint64_t Metadata::_internal_time_purchased()
const {
1208 return _impl_.time_purchased_;
1210inline uint64_t Metadata::time_purchased()
const {
1212 return _internal_time_purchased();
1214inline void Metadata::_internal_set_time_purchased(uint64_t value) {
1215 _impl_._has_bits_[0] |= 0x00000002u;
1216 _impl_.time_purchased_ = value;
1218inline void Metadata::set_time_purchased(uint64_t value) {
1219 _internal_set_time_purchased(value);
1224inline int Metadata::_internal_metadata_size()
const {
1225 return _impl_.metadata_.size();
1227inline int Metadata::metadata_size()
const {
1228 return _internal_metadata_size();
1230inline void Metadata::clear_metadata() {
1231 _impl_.metadata_.Clear();
1233inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::mutable_metadata(
int index) {
1235 return _impl_.metadata_.Mutable(index);
1237inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >*
1238Metadata::mutable_metadata() {
1240 return &_impl_.metadata_;
1242inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::_internal_metadata(
int index)
const {
1243 return _impl_.metadata_.Get(index);
1245inline const ::jaiabot::sensor::protobuf::Metadata_MetadataValue& Metadata::metadata(
int index)
const {
1247 return _internal_metadata(index);
1249inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::_internal_add_metadata() {
1250 return _impl_.metadata_.Add();
1252inline ::jaiabot::sensor::protobuf::Metadata_MetadataValue* Metadata::add_metadata() {
1253 ::jaiabot::sensor::protobuf::Metadata_MetadataValue* _add = _internal_add_metadata();
1257inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::sensor::protobuf::Metadata_MetadataValue >&
1258Metadata::metadata()
const {
1260 return _impl_.metadata_;
1264inline bool Metadata::_internal_has_init_failed()
const {
1265 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
1268inline bool Metadata::has_init_failed()
const {
1269 return _internal_has_init_failed();
1271inline void Metadata::clear_init_failed() {
1272 _impl_.init_failed_ =
false;
1273 _impl_._has_bits_[0] &= ~0x00000010u;
1275inline bool Metadata::_internal_init_failed()
const {
1276 return _impl_.init_failed_;
1278inline bool Metadata::init_failed()
const {
1280 return _internal_init_failed();
1282inline void Metadata::_internal_set_init_failed(
bool value) {
1283 _impl_._has_bits_[0] |= 0x00000010u;
1284 _impl_.init_failed_ = value;
1286inline void Metadata::set_init_failed(
bool value) {
1287 _internal_set_init_failed(value);
1292inline bool Metadata::_internal_has_instance()
const {
1293 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
1296inline bool Metadata::has_instance()
const {
1297 return _internal_has_instance();
1299inline void Metadata::clear_instance() {
1300 _impl_.instance_ = 1;
1301 _impl_._has_bits_[0] &= ~0x00000040u;
1303inline ::jaiabot::sensor::protobuf::SensorInstance Metadata::_internal_instance()
const {
1306inline ::jaiabot::sensor::protobuf::SensorInstance Metadata::instance()
const {
1308 return _internal_instance();
1312 _impl_._has_bits_[0] |= 0x00000040u;
1313 _impl_.instance_ = value;
1316 _internal_set_instance(value);
1321 #pragma GCC diagnostic pop
1336#include <google/protobuf/port_undef.inc>
constexpr goby::middleware::Group metadata
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_