4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmotor_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmotor_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/generated_enum_reflection.h>
33#include <google/protobuf/unknown_field_set.h>
35#include <boost/units/quantity.hpp>
36#include <boost/units/absolute.hpp>
37#include <boost/units/dimensionless_type.hpp>
38#include <boost/units/make_scaled_unit.hpp>
40#include <boost/units/systems/temperature/celsius.hpp>
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fmotor_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
58struct MotorDefaultTypeInternal;
61struct MotorUsageBinDefaultTypeInternal;
63class MotorUsageReport;
64struct MotorUsageReportDefaultTypeInternal;
66class Motor_Thermistor;
67struct Motor_ThermistorDefaultTypeInternal;
71PROTOBUF_NAMESPACE_OPEN
76PROTOBUF_NAMESPACE_CLOSE
92 static_assert(::std::is_same<T, MotorHarnessType>::value ||
93 ::std::is_integral<T>::value,
94 "Incorrect type passed to function MotorHarnessType_Name.");
95 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
100 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MotorHarnessType>(
106 public ::PROTOBUF_NAMESPACE_ID::Message {
110 explicit PROTOBUF_CONSTEXPR
MotorUsageBin(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
115 *
this = ::std::move(from);
123 if (
this == &from)
return *
this;
124 if (GetOwningArena() == from.GetOwningArena()
125 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
126 && GetOwningArena() !=
nullptr
137 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
140 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
166 if (other ==
this)
return;
167 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() !=
nullptr &&
169 GetOwningArena() == other->GetOwningArena()) {
171 if (GetOwningArena() == other->GetOwningArena()) {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
179 if (other ==
this)
return;
180 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
187 return CreateMaybeMessage<MotorUsageBin>(arena);
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
193 MotorUsageBin::MergeImpl(*
this, from);
196 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
198 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
204 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
208 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
210 void SetCachedSize(
int size)
const final;
214 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216 return "jaiabot.protobuf.MotorUsageBin";
220 bool is_message_owned =
false);
224 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
240 bool _internal_has_average_rpm()
const;
246 double _internal_average_rpm()
const;
247 void _internal_set_average_rpm(
double value);
253 bool _internal_has_usage_time_seconds()
const;
259 double _internal_usage_time_seconds()
const;
260 void _internal_set_usage_time_seconds(
double value);
266 bool _internal_has_motor_micros()
const;
272 int32_t _internal_motor_micros()
const;
273 void _internal_set_motor_micros(int32_t value);
280 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
281 typedef void InternalArenaConstructable_;
282 typedef void DestructorSkippable_;
284 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
285 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
287 double usage_time_seconds_;
288 int32_t motor_micros_;
291 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
296 public ::PROTOBUF_NAMESPACE_ID::Message {
300 explicit PROTOBUF_CONSTEXPR
Motor_Thermistor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
305 *
this = ::std::move(from);
313 if (
this == &from)
return *
this;
314 if (GetOwningArena() == from.GetOwningArena()
315 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
316 && GetOwningArena() !=
nullptr
327 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
330 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
333 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
356 if (other ==
this)
return;
357 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
358 if (GetOwningArena() !=
nullptr &&
359 GetOwningArena() == other->GetOwningArena()) {
361 if (GetOwningArena() == other->GetOwningArena()) {
365 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
369 if (other ==
this)
return;
370 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
377 return CreateMaybeMessage<Motor_Thermistor>(arena);
379 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
381 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
383 Motor_Thermistor::MergeImpl(*
this, from);
386 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
388 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
394 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
398 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
400 void SetCachedSize(
int size)
const final;
404 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
405 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
406 return "jaiabot.protobuf.Motor.Thermistor";
410 bool is_message_owned =
false);
414 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
428 bool has_temperature()
const;
430 bool _internal_has_temperature()
const;
432 void clear_temperature();
433 float temperature()
const;
434 void set_temperature(
float value);
436 float _internal_temperature()
const;
437 void _internal_set_temperature(
float value);
441 bool has_resistance()
const;
443 bool _internal_has_resistance()
const;
445 void clear_resistance();
446 float resistance()
const;
447 void set_resistance(
float value);
449 float _internal_resistance()
const;
450 void _internal_set_resistance(
float value);
454 bool has_voltage()
const;
456 bool _internal_has_voltage()
const;
458 void clear_voltage();
459 float voltage()
const;
460 void set_voltage(
float value);
462 float _internal_voltage()
const;
463 void _internal_set_voltage(
float value);
468 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
470 template<
typename Quantity >
472 {
set_temperature(boost::units::quantity<temperature_unit,float >(value_w_units).value() ); };
474 template<
typename Quantity >
485 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
486 typedef void InternalArenaConstructable_;
487 typedef void DestructorSkippable_;
489 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
490 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
496 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
501 public ::PROTOBUF_NAMESPACE_ID::Message {
505 explicit PROTOBUF_CONSTEXPR
Motor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
510 *
this = ::std::move(from);
518 if (
this == &from)
return *
this;
519 if (GetOwningArena() == from.GetOwningArena()
520 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
521 && GetOwningArena() !=
nullptr
532 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
535 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
538 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
551 return reinterpret_cast<const Motor*
>(
561 if (other ==
this)
return;
562 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
563 if (GetOwningArena() !=
nullptr &&
564 GetOwningArena() == other->GetOwningArena()) {
566 if (GetOwningArena() == other->GetOwningArena()) {
570 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
574 if (other ==
this)
return;
575 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
581 Motor*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
582 return CreateMaybeMessage<Motor>(arena);
584 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
586 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
588 Motor::MergeImpl(*
this, from);
591 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
593 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
599 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
603 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
605 void SetCachedSize(
int size)
const final;
606 void InternalSwap(
Motor* other);
609 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
610 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
611 return "jaiabot.protobuf.Motor";
614 explicit Motor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
615 bool is_message_owned =
false);
619 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
635 bool has_thermistor()
const;
637 bool _internal_has_thermistor()
const;
639 void clear_thermistor();
640 const ::jaiabot::protobuf::Motor_Thermistor& thermistor()
const;
641 PROTOBUF_NODISCARD ::jaiabot::protobuf::Motor_Thermistor* release_thermistor();
645 const ::jaiabot::protobuf::Motor_Thermistor& _internal_thermistor()
const;
648 void unsafe_arena_set_allocated_thermistor(
653 bool has_rpm()
const;
655 bool _internal_has_rpm()
const;
659 void set_rpm(
double value);
661 double _internal_rpm()
const;
662 void _internal_set_rpm(
double value);
666 bool has_motor_harness_type()
const;
668 bool _internal_has_motor_harness_type()
const;
670 void clear_motor_harness_type();
682 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
683 typedef void InternalArenaConstructable_;
684 typedef void DestructorSkippable_;
686 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
687 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
690 int motor_harness_type_;
693 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
698 public ::PROTOBUF_NAMESPACE_ID::Message {
702 explicit PROTOBUF_CONSTEXPR
MotorUsageReport(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
707 *
this = ::std::move(from);
715 if (
this == &from)
return *
this;
716 if (GetOwningArena() == from.GetOwningArena()
717 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
718 && GetOwningArena() !=
nullptr
729 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
732 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
735 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
758 if (other ==
this)
return;
759 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
760 if (GetOwningArena() !=
nullptr &&
761 GetOwningArena() == other->GetOwningArena()) {
763 if (GetOwningArena() == other->GetOwningArena()) {
767 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
771 if (other ==
this)
return;
772 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
779 return CreateMaybeMessage<MotorUsageReport>(arena);
781 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
783 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
785 MotorUsageReport::MergeImpl(*
this, from);
788 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
790 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
796 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
800 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
802 void SetCachedSize(
int size)
const final;
806 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
807 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
808 return "jaiabot.protobuf.MotorUsageReport";
812 bool is_message_owned =
false);
816 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
831 int motor_usage_bins_size()
const;
833 int _internal_motor_usage_bins_size()
const;
835 void clear_motor_usage_bins();
837 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::protobuf::MotorUsageBin >*
838 mutable_motor_usage_bins();
840 const ::jaiabot::protobuf::MotorUsageBin& _internal_motor_usage_bins(
int index)
const;
843 const ::jaiabot::protobuf::MotorUsageBin& motor_usage_bins(
int index)
const;
845 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::protobuf::MotorUsageBin >&
846 motor_usage_bins()
const;
849 bool has_bot_vin()
const;
851 bool _internal_has_bot_vin()
const;
853 void clear_bot_vin();
854 const std::string& bot_vin()
const;
855 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
861 const std::string& _internal_bot_vin()
const;
862 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_bot_vin(
const std::string& value);
863 std::string* _internal_mutable_bot_vin();
869 bool _internal_has_tail_serial_number()
const;
873 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
879 const std::string& _internal_tail_serial_number()
const;
880 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_tail_serial_number(
const std::string& value);
881 std::string* _internal_mutable_tail_serial_number();
887 bool _internal_has_total_running_time_seconds()
const;
893 double _internal_total_running_time_seconds()
const;
894 void _internal_set_total_running_time_seconds(
double value);
901 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
902 typedef void InternalArenaConstructable_;
903 typedef void DestructorSkippable_;
905 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
906 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
907 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::protobuf::MotorUsageBin > motor_usage_bins_;
908 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bot_vin_;
909 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr tail_serial_number_;
910 double total_running_time_seconds_;
913 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
921 #pragma GCC diagnostic push
922 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
927inline bool MotorUsageBin::_internal_has_motor_micros()
const {
928 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
932 return _internal_has_motor_micros();
936 _impl_._has_bits_[0] &= ~0x00000004u;
938inline int32_t MotorUsageBin::_internal_motor_micros()
const {
939 return _impl_.motor_micros_;
943 return _internal_motor_micros();
945inline void MotorUsageBin::_internal_set_motor_micros(int32_t value) {
946 _impl_._has_bits_[0] |= 0x00000004u;
947 _impl_.motor_micros_ = value;
950 _internal_set_motor_micros(value);
955inline bool MotorUsageBin::_internal_has_average_rpm()
const {
956 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
960 return _internal_has_average_rpm();
964 _impl_._has_bits_[0] &= ~0x00000001u;
966inline double MotorUsageBin::_internal_average_rpm()
const {
967 return _impl_.average_rpm_;
971 return _internal_average_rpm();
973inline void MotorUsageBin::_internal_set_average_rpm(
double value) {
974 _impl_._has_bits_[0] |= 0x00000001u;
975 _impl_.average_rpm_ = value;
978 _internal_set_average_rpm(value);
983inline bool MotorUsageBin::_internal_has_usage_time_seconds()
const {
984 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
988 return _internal_has_usage_time_seconds();
991 _impl_.usage_time_seconds_ = 0;
992 _impl_._has_bits_[0] &= ~0x00000002u;
994inline double MotorUsageBin::_internal_usage_time_seconds()
const {
995 return _impl_.usage_time_seconds_;
999 return _internal_usage_time_seconds();
1001inline void MotorUsageBin::_internal_set_usage_time_seconds(
double value) {
1002 _impl_._has_bits_[0] |= 0x00000002u;
1003 _impl_.usage_time_seconds_ = value;
1006 _internal_set_usage_time_seconds(value);
1015inline bool Motor_Thermistor::_internal_has_temperature()
const {
1016 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1020 return _internal_has_temperature();
1024 _impl_._has_bits_[0] &= ~0x00000001u;
1026inline float Motor_Thermistor::_internal_temperature()
const {
1027 return _impl_.temperature_;
1031 return _internal_temperature();
1033inline void Motor_Thermistor::_internal_set_temperature(
float value) {
1034 _impl_._has_bits_[0] |= 0x00000001u;
1035 _impl_.temperature_ = value;
1038 _internal_set_temperature(value);
1043inline bool Motor_Thermistor::_internal_has_resistance()
const {
1044 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1048 return _internal_has_resistance();
1052 _impl_._has_bits_[0] &= ~0x00000002u;
1054inline float Motor_Thermistor::_internal_resistance()
const {
1055 return _impl_.resistance_;
1059 return _internal_resistance();
1061inline void Motor_Thermistor::_internal_set_resistance(
float value) {
1062 _impl_._has_bits_[0] |= 0x00000002u;
1063 _impl_.resistance_ = value;
1066 _internal_set_resistance(value);
1071inline bool Motor_Thermistor::_internal_has_voltage()
const {
1072 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1076 return _internal_has_voltage();
1080 _impl_._has_bits_[0] &= ~0x00000004u;
1082inline float Motor_Thermistor::_internal_voltage()
const {
1083 return _impl_.voltage_;
1087 return _internal_voltage();
1089inline void Motor_Thermistor::_internal_set_voltage(
float value) {
1090 _impl_._has_bits_[0] |= 0x00000004u;
1091 _impl_.voltage_ = value;
1094 _internal_set_voltage(value);
1103inline bool Motor::_internal_has_rpm()
const {
1104 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1108 return _internal_has_rpm();
1112 _impl_._has_bits_[0] &= ~0x00000002u;
1114inline double Motor::_internal_rpm()
const {
1119 return _internal_rpm();
1121inline void Motor::_internal_set_rpm(
double value) {
1122 _impl_._has_bits_[0] |= 0x00000002u;
1123 _impl_.rpm_ = value;
1126 _internal_set_rpm(value);
1131inline bool Motor::_internal_has_thermistor()
const {
1132 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1133 PROTOBUF_ASSUME(!value || _impl_.thermistor_ !=
nullptr);
1137 return _internal_has_thermistor();
1140 if (
_impl_.thermistor_ !=
nullptr)
_impl_.thermistor_->Clear();
1141 _impl_._has_bits_[0] &= ~0x00000001u;
1143inline const ::jaiabot::protobuf::Motor_Thermistor& Motor::_internal_thermistor()
const {
1144 const ::jaiabot::protobuf::Motor_Thermistor* p = _impl_.thermistor_;
1150 return _internal_thermistor();
1154 if (GetArenaForAllocation() ==
nullptr) {
1155 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.thermistor_);
1159 _impl_._has_bits_[0] |= 0x00000001u;
1161 _impl_._has_bits_[0] &= ~0x00000001u;
1166 _impl_._has_bits_[0] &= ~0x00000001u;
1168 _impl_.thermistor_ =
nullptr;
1169#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1170 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1171 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1172 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1174 if (GetArenaForAllocation() !=
nullptr) {
1175 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1182 _impl_._has_bits_[0] &= ~0x00000001u;
1184 _impl_.thermistor_ =
nullptr;
1187inline ::jaiabot::protobuf::Motor_Thermistor* Motor::_internal_mutable_thermistor() {
1188 _impl_._has_bits_[0] |= 0x00000001u;
1189 if (_impl_.thermistor_ ==
nullptr) {
1191 _impl_.thermistor_ = p;
1193 return _impl_.thermistor_;
1201 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1202 if (message_arena ==
nullptr) {
1203 delete _impl_.thermistor_;
1206 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1207 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
thermistor);
1208 if (message_arena != submessage_arena) {
1209 thermistor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1210 message_arena,
thermistor, submessage_arena);
1212 _impl_._has_bits_[0] |= 0x00000001u;
1214 _impl_._has_bits_[0] &= ~0x00000001u;
1221inline bool Motor::_internal_has_motor_harness_type()
const {
1222 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1226 return _internal_has_motor_harness_type();
1229 _impl_.motor_harness_type_ = 1;
1230 _impl_._has_bits_[0] &= ~0x00000004u;
1232inline ::jaiabot::protobuf::MotorHarnessType Motor::_internal_motor_harness_type()
const {
1237 return _internal_motor_harness_type();
1241 _impl_._has_bits_[0] |= 0x00000004u;
1242 _impl_.motor_harness_type_ = value;
1245 _internal_set_motor_harness_type(value);
1254inline bool MotorUsageReport::_internal_has_bot_vin()
const {
1255 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1259 return _internal_has_bot_vin();
1262 _impl_.bot_vin_.ClearToEmpty();
1263 _impl_._has_bits_[0] &= ~0x00000001u;
1267 return _internal_bot_vin();
1269template <
typename ArgT0,
typename... ArgT>
1270inline PROTOBUF_ALWAYS_INLINE
1272 _impl_._has_bits_[0] |= 0x00000001u;
1273 _impl_.bot_vin_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1277 std::string* _s = _internal_mutable_bot_vin();
1281inline const std::string& MotorUsageReport::_internal_bot_vin()
const {
1282 return _impl_.bot_vin_.Get();
1284inline void MotorUsageReport::_internal_set_bot_vin(
const std::string& value) {
1285 _impl_._has_bits_[0] |= 0x00000001u;
1286 _impl_.bot_vin_.Set(value, GetArenaForAllocation());
1288inline std::string* MotorUsageReport::_internal_mutable_bot_vin() {
1289 _impl_._has_bits_[0] |= 0x00000001u;
1290 return _impl_.bot_vin_.Mutable(GetArenaForAllocation());
1294 if (!_internal_has_bot_vin()) {
1297 _impl_._has_bits_[0] &= ~0x00000001u;
1298 auto* p =
_impl_.bot_vin_.Release();
1299#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1300 if (
_impl_.bot_vin_.IsDefault()) {
1301 _impl_.bot_vin_.Set(
"", GetArenaForAllocation());
1308 _impl_._has_bits_[0] |= 0x00000001u;
1310 _impl_._has_bits_[0] &= ~0x00000001u;
1312 _impl_.bot_vin_.SetAllocated(
bot_vin, GetArenaForAllocation());
1313#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1314 if (
_impl_.bot_vin_.IsDefault()) {
1315 _impl_.bot_vin_.Set(
"", GetArenaForAllocation());
1322inline bool MotorUsageReport::_internal_has_tail_serial_number()
const {
1323 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1327 return _internal_has_tail_serial_number();
1330 _impl_.tail_serial_number_.ClearToEmpty();
1331 _impl_._has_bits_[0] &= ~0x00000002u;
1335 return _internal_tail_serial_number();
1337template <
typename ArgT0,
typename... ArgT>
1338inline PROTOBUF_ALWAYS_INLINE
1340 _impl_._has_bits_[0] |= 0x00000002u;
1341 _impl_.tail_serial_number_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1345 std::string* _s = _internal_mutable_tail_serial_number();
1349inline const std::string& MotorUsageReport::_internal_tail_serial_number()
const {
1350 return _impl_.tail_serial_number_.Get();
1352inline void MotorUsageReport::_internal_set_tail_serial_number(
const std::string& value) {
1353 _impl_._has_bits_[0] |= 0x00000002u;
1354 _impl_.tail_serial_number_.Set(value, GetArenaForAllocation());
1356inline std::string* MotorUsageReport::_internal_mutable_tail_serial_number() {
1357 _impl_._has_bits_[0] |= 0x00000002u;
1358 return _impl_.tail_serial_number_.Mutable(GetArenaForAllocation());
1362 if (!_internal_has_tail_serial_number()) {
1365 _impl_._has_bits_[0] &= ~0x00000002u;
1366 auto* p =
_impl_.tail_serial_number_.Release();
1367#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1368 if (
_impl_.tail_serial_number_.IsDefault()) {
1369 _impl_.tail_serial_number_.Set(
"", GetArenaForAllocation());
1376 _impl_._has_bits_[0] |= 0x00000002u;
1378 _impl_._has_bits_[0] &= ~0x00000002u;
1381#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1382 if (
_impl_.tail_serial_number_.IsDefault()) {
1383 _impl_.tail_serial_number_.Set(
"", GetArenaForAllocation());
1390inline bool MotorUsageReport::_internal_has_total_running_time_seconds()
const {
1391 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1395 return _internal_has_total_running_time_seconds();
1398 _impl_.total_running_time_seconds_ = 0;
1399 _impl_._has_bits_[0] &= ~0x00000004u;
1401inline double MotorUsageReport::_internal_total_running_time_seconds()
const {
1402 return _impl_.total_running_time_seconds_;
1406 return _internal_total_running_time_seconds();
1408inline void MotorUsageReport::_internal_set_total_running_time_seconds(
double value) {
1409 _impl_._has_bits_[0] |= 0x00000004u;
1410 _impl_.total_running_time_seconds_ = value;
1413 _internal_set_total_running_time_seconds(value);
1418inline int MotorUsageReport::_internal_motor_usage_bins_size()
const {
1419 return _impl_.motor_usage_bins_.size();
1422 return _internal_motor_usage_bins_size();
1425 _impl_.motor_usage_bins_.Clear();
1429 return _impl_.motor_usage_bins_.Mutable(index);
1431inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::protobuf::MotorUsageBin >*
1434 return &
_impl_.motor_usage_bins_;
1436inline const ::jaiabot::protobuf::MotorUsageBin& MotorUsageReport::_internal_motor_usage_bins(
int index)
const {
1437 return _impl_.motor_usage_bins_.Get(index);
1441 return _internal_motor_usage_bins(index);
1443inline ::jaiabot::protobuf::MotorUsageBin* MotorUsageReport::_internal_add_motor_usage_bins() {
1444 return _impl_.motor_usage_bins_.Add();
1451inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::jaiabot::protobuf::MotorUsageBin >&
1454 return _impl_.motor_usage_bins_;
1458 #pragma GCC diagnostic pop
1472PROTOBUF_NAMESPACE_OPEN
1477 return ::jaiabot::protobuf::MotorHarnessType_descriptor();
1480PROTOBUF_NAMESPACE_CLOSE
1484#include <google/protobuf/port_undef.inc>
void set_voltage(float value)
static const Motor_Thermistor & default_instance()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Motor_Thermistor(const Motor_Thermistor &from)
PROTOBUF_CONSTEXPR Motor_Thermistor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
boost::units::absolute< boost::units::unit< temperature_dimension, boost::units::celsius::system > > temperature_unit
int GetCachedSize() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool has_temperature() const
void Swap(Motor_Thermistor *other)
Motor_Thermistor * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Motor_Thermistor & operator=(const Motor_Thermistor &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void UnsafeArenaSwap(Motor_Thermistor *other)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const Motor_Thermistor * internal_default_instance()
bool IsInitialized() const final
float temperature() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static constexpr int kIndexInFileMessages
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Motor_Thermistor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Motor_Thermistor & operator=(Motor_Thermistor &&from) noexcept
friend void swap(Motor_Thermistor &a, Motor_Thermistor &b)
static const ClassData _class_data_
bool has_resistance() const
void set_resistance(float value)
void set_temperature_with_units(Quantity value_w_units)
void MergeFrom(const Motor_Thermistor &from)
@ kTemperatureFieldNumber
boost::units::temperature_dimension temperature_dimension
Quantity temperature_with_units() const
Motor_Thermistor(Motor_Thermistor &&from) noexcept
void set_temperature(float value)
~Motor_Thermistor() override
size_t ByteSizeLong() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
boost::units::quantity< temperature_unit, float > temperature_with_units() const
void CopyFrom(const Motor_Thermistor &from)
void MergeFrom(const Motor &from)
static constexpr int kIndexInFileMessages
@ kMotorHarnessTypeFieldNumber
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
int GetCachedSize() const final
bool has_motor_harness_type() const
void unsafe_arena_set_allocated_thermistor(::jaiabot::protobuf::Motor_Thermistor *thermistor)
void UnsafeArenaSwap(Motor *other)
void set_motor_harness_type(::jaiabot::protobuf::MotorHarnessType value)
static const Motor * internal_default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_CONSTEXPR Motor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_allocated_thermistor(::jaiabot::protobuf::Motor_Thermistor *thermistor)
PROTOBUF_NODISCARD::jaiabot::protobuf::Motor_Thermistor * release_thermistor()
Motor & operator=(const Motor &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool has_thermistor() const
static const Motor & default_instance()
Motor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Motor * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
void CopyFrom(const Motor &from)
static const ClassData _class_data_
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::jaiabot::protobuf::Motor_Thermistor * unsafe_arena_release_thermistor()
Motor & operator=(Motor &&from) noexcept
Motor_Thermistor Thermistor
bool IsInitialized() const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::jaiabot::protobuf::Motor_Thermistor & thermistor() const
size_t ByteSizeLong() const final
Motor(Motor &&from) noexcept
void clear_motor_harness_type()
::jaiabot::protobuf::MotorHarnessType motor_harness_type() const
::jaiabot::protobuf::Motor_Thermistor * mutable_thermistor()
friend void swap(Motor &a, Motor &b)
void set_rpm(double value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const MotorUsageBin * internal_default_instance()
void MergeFrom(const MotorUsageBin &from)
MotorUsageBin(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
@ kUsageTimeSecondsFieldNumber
@ kMotorMicrosFieldNumber
void clear_usage_time_seconds()
friend void swap(MotorUsageBin &a, MotorUsageBin &b)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
bool has_motor_micros() const
MotorUsageBin & operator=(const MotorUsageBin &from)
void UnsafeArenaSwap(MotorUsageBin *other)
bool IsInitialized() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_usage_time_seconds() const
MotorUsageBin * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
MotorUsageBin(MotorUsageBin &&from) noexcept
void clear_motor_micros()
int GetCachedSize() const final
void Swap(MotorUsageBin *other)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_average_rpm(double value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
int32_t motor_micros() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
double usage_time_seconds() const
static const ClassData _class_data_
MotorUsageBin(const MotorUsageBin &from)
~MotorUsageBin() override
void set_usage_time_seconds(double value)
double average_rpm() const
PROTOBUF_CONSTEXPR MotorUsageBin(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void CopyFrom(const MotorUsageBin &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
size_t ByteSizeLong() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool has_average_rpm() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const MotorUsageBin & default_instance()
void set_motor_micros(int32_t value)
static constexpr int kIndexInFileMessages
MotorUsageBin & operator=(MotorUsageBin &&from) noexcept
bool has_total_running_time_seconds() const
void clear_total_running_time_seconds()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
double total_running_time_seconds() const
const ::jaiabot::protobuf::MotorUsageBin & motor_usage_bins(int index) const
void set_allocated_bot_vin(std::string *bot_vin)
MotorUsageReport * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
::jaiabot::protobuf::MotorUsageBin * add_motor_usage_bins()
int GetCachedSize() const final
MotorUsageReport(MotorUsageReport &&from) noexcept
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
static const ClassData _class_data_
const std::string & bot_vin() const
MotorUsageReport(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
MotorUsageReport & operator=(const MotorUsageReport &from)
~MotorUsageReport() override
void set_allocated_tail_serial_number(std::string *tail_serial_number)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void clear_tail_serial_number()
::jaiabot::protobuf::MotorUsageBin * mutable_motor_usage_bins(int index)
MotorUsageReport(const MotorUsageReport &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const MotorUsageReport &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static constexpr int kIndexInFileMessages
void Swap(MotorUsageReport *other)
MotorUsageReport & operator=(MotorUsageReport &&from) noexcept
@ kTailSerialNumberFieldNumber
@ kMotorUsageBinsFieldNumber
@ kTotalRunningTimeSecondsFieldNumber
void set_bot_vin(ArgT0 &&arg0, ArgT... args)
friend void swap(MotorUsageReport &a, MotorUsageReport &b)
PROTOBUF_CONSTEXPR MotorUsageReport(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
std::string * mutable_bot_vin()
void set_total_running_time_seconds(double value)
void UnsafeArenaSwap(MotorUsageReport *other)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
int motor_usage_bins_size() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const final
static const MotorUsageReport * internal_default_instance()
bool has_tail_serial_number() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
bool IsInitialized() const final
PROTOBUF_NODISCARD std::string * release_tail_serial_number()
std::string * mutable_tail_serial_number()
PROTOBUF_NODISCARD std::string * release_bot_vin()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const MotorUsageReport & default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_tail_serial_number(ArgT0 &&arg0, ArgT... args)
void MergeFrom(const MotorUsageReport &from)
const std::string & tail_serial_number() const
void clear_motor_usage_bins()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fmotor_2eproto
::jaiabot::protobuf::Motor_Thermistor * Arena::CreateMaybeMessage<::jaiabot::protobuf::Motor_Thermistor >(Arena *)
const EnumDescriptor * GetEnumDescriptor< ::jaiabot::protobuf::MotorHarnessType >()
constexpr int MotorHarnessType_ARRAYSIZE
constexpr MotorHarnessType MotorHarnessType_MIN
bool MotorHarnessType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MotorHarnessType *value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MotorHarnessType_descriptor()
constexpr MotorHarnessType MotorHarnessType_MAX
MotorDefaultTypeInternal _Motor_default_instance_
Motor_ThermistorDefaultTypeInternal _Motor_Thermistor_default_instance_
MotorUsageReportDefaultTypeInternal _MotorUsageReport_default_instance_
bool MotorHarnessType_IsValid(int value)
MotorUsageBinDefaultTypeInternal _MotorUsageBin_default_instance_
const std::string & MotorHarnessType_Name(T enum_t_value)
static const uint32_t offsets[]