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;
60class Motor_Thermistor;
61struct Motor_ThermistorDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
84 static_assert(::std::is_same<T, MotorHarnessType>::value ||
85 ::std::is_integral<T>::value,
86 "Incorrect type passed to function MotorHarnessType_Name.");
87 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
92 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MotorHarnessType>(
98 public ::PROTOBUF_NAMESPACE_ID::Message {
102 explicit PROTOBUF_CONSTEXPR
Motor_Thermistor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
107 *
this = ::std::move(from);
115 if (
this == &from)
return *
this;
116 if (GetOwningArena() == from.GetOwningArena()
117 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
118 && GetOwningArena() !=
nullptr
129 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
132 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
135 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
158 if (other ==
this)
return;
159 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
160 if (GetOwningArena() !=
nullptr &&
161 GetOwningArena() == other->GetOwningArena()) {
163 if (GetOwningArena() == other->GetOwningArena()) {
167 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
171 if (other ==
this)
return;
172 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
179 return CreateMaybeMessage<Motor_Thermistor>(arena);
181 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
183 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
185 Motor_Thermistor::MergeImpl(*
this, from);
188 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
190 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
196 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
200 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
202 void SetCachedSize(
int size)
const final;
206 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208 return "jaiabot.protobuf.Motor.Thermistor";
212 bool is_message_owned =
false);
216 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
232 bool _internal_has_temperature()
const;
238 float _internal_temperature()
const;
239 void _internal_set_temperature(
float value);
245 bool _internal_has_resistance()
const;
251 float _internal_resistance()
const;
252 void _internal_set_resistance(
float value);
258 bool _internal_has_voltage()
const;
264 float _internal_voltage()
const;
265 void _internal_set_voltage(
float value);
270 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> >
temperature_unit;
272 template<
typename Quantity >
274 {
set_temperature(boost::units::quantity<temperature_unit,float >(value_w_units).value() ); };
276 template<
typename Quantity >
281 {
return temperature_with_units<boost::units::quantity< temperature_unit,float > >(); };
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_;
298 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
303 public ::PROTOBUF_NAMESPACE_ID::Message {
307 explicit PROTOBUF_CONSTEXPR
Motor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
312 *
this = ::std::move(from);
320 if (
this == &from)
return *
this;
321 if (GetOwningArena() == from.GetOwningArena()
322 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
323 && GetOwningArena() !=
nullptr
334 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
337 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
340 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
341 return GetDescriptor();
344 return default_instance().GetMetadata().descriptor;
347 return default_instance().GetMetadata().reflection;
350 return *internal_default_instance();
353 return reinterpret_cast<const Motor*
>(
356 static constexpr int kIndexInFileMessages =
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);
376 if (other ==
this)
return;
377 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
383 Motor*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
384 return CreateMaybeMessage<Motor>(arena);
386 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
388 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
390 Motor::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(
Motor* other);
411 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
412 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
413 return "jaiabot.protobuf.Motor";
416 explicit Motor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
417 bool is_message_owned =
false);
421 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
423 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
432 kThermistorFieldNumber = 2,
434 kMotorHarnessTypeFieldNumber = 3,
437 bool has_thermistor()
const;
439 bool _internal_has_thermistor()
const;
441 void clear_thermistor();
442 const ::jaiabot::protobuf::Motor_Thermistor& thermistor()
const;
443 PROTOBUF_NODISCARD ::jaiabot::protobuf::Motor_Thermistor* release_thermistor();
447 const ::jaiabot::protobuf::Motor_Thermistor& _internal_thermistor()
const;
450 void unsafe_arena_set_allocated_thermistor(
455 bool has_rpm()
const;
457 bool _internal_has_rpm()
const;
461 void set_rpm(
double value);
463 double _internal_rpm()
const;
464 void _internal_set_rpm(
double value);
468 bool has_motor_harness_type()
const;
470 bool _internal_has_motor_harness_type()
const;
472 void clear_motor_harness_type();
484 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
485 typedef void InternalArenaConstructable_;
486 typedef void DestructorSkippable_;
488 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
489 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
492 int motor_harness_type_;
495 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
503 #pragma GCC diagnostic push
504 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
509inline bool Motor_Thermistor::_internal_has_temperature()
const {
510 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
513inline bool Motor_Thermistor::has_temperature()
const {
514 return _internal_has_temperature();
516inline void Motor_Thermistor::clear_temperature() {
517 _impl_.temperature_ = 0;
518 _impl_._has_bits_[0] &= ~0x00000001u;
520inline float Motor_Thermistor::_internal_temperature()
const {
521 return _impl_.temperature_;
523inline float Motor_Thermistor::temperature()
const {
525 return _internal_temperature();
527inline void Motor_Thermistor::_internal_set_temperature(
float value) {
528 _impl_._has_bits_[0] |= 0x00000001u;
529 _impl_.temperature_ = value;
531inline void Motor_Thermistor::set_temperature(
float value) {
532 _internal_set_temperature(value);
537inline bool Motor_Thermistor::_internal_has_resistance()
const {
538 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
541inline bool Motor_Thermistor::has_resistance()
const {
542 return _internal_has_resistance();
544inline void Motor_Thermistor::clear_resistance() {
545 _impl_.resistance_ = 0;
546 _impl_._has_bits_[0] &= ~0x00000002u;
548inline float Motor_Thermistor::_internal_resistance()
const {
549 return _impl_.resistance_;
551inline float Motor_Thermistor::resistance()
const {
553 return _internal_resistance();
555inline void Motor_Thermistor::_internal_set_resistance(
float value) {
556 _impl_._has_bits_[0] |= 0x00000002u;
557 _impl_.resistance_ = value;
559inline void Motor_Thermistor::set_resistance(
float value) {
560 _internal_set_resistance(value);
565inline bool Motor_Thermistor::_internal_has_voltage()
const {
566 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
569inline bool Motor_Thermistor::has_voltage()
const {
570 return _internal_has_voltage();
572inline void Motor_Thermistor::clear_voltage() {
574 _impl_._has_bits_[0] &= ~0x00000004u;
576inline float Motor_Thermistor::_internal_voltage()
const {
577 return _impl_.voltage_;
579inline float Motor_Thermistor::voltage()
const {
581 return _internal_voltage();
583inline void Motor_Thermistor::_internal_set_voltage(
float value) {
584 _impl_._has_bits_[0] |= 0x00000004u;
585 _impl_.voltage_ = value;
587inline void Motor_Thermistor::set_voltage(
float value) {
588 _internal_set_voltage(value);
597inline bool Motor::_internal_has_rpm()
const {
598 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
601inline bool Motor::has_rpm()
const {
602 return _internal_has_rpm();
604inline void Motor::clear_rpm() {
606 _impl_._has_bits_[0] &= ~0x00000002u;
608inline double Motor::_internal_rpm()
const {
611inline double Motor::rpm()
const {
613 return _internal_rpm();
615inline void Motor::_internal_set_rpm(
double value) {
616 _impl_._has_bits_[0] |= 0x00000002u;
619inline void Motor::set_rpm(
double value) {
620 _internal_set_rpm(value);
625inline bool Motor::_internal_has_thermistor()
const {
626 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
627 PROTOBUF_ASSUME(!value || _impl_.thermistor_ !=
nullptr);
630inline bool Motor::has_thermistor()
const {
631 return _internal_has_thermistor();
633inline void Motor::clear_thermistor() {
634 if (_impl_.thermistor_ !=
nullptr) _impl_.thermistor_->Clear();
635 _impl_._has_bits_[0] &= ~0x00000001u;
637inline const ::jaiabot::protobuf::Motor_Thermistor& Motor::_internal_thermistor()
const {
638 const ::jaiabot::protobuf::Motor_Thermistor* p = _impl_.thermistor_;
642inline const ::jaiabot::protobuf::Motor_Thermistor& Motor::thermistor()
const {
644 return _internal_thermistor();
646inline void Motor::unsafe_arena_set_allocated_thermistor(
648 if (GetArenaForAllocation() ==
nullptr) {
649 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.thermistor_);
651 _impl_.thermistor_ = thermistor;
653 _impl_._has_bits_[0] |= 0x00000001u;
655 _impl_._has_bits_[0] &= ~0x00000001u;
659inline ::jaiabot::protobuf::Motor_Thermistor* Motor::release_thermistor() {
660 _impl_._has_bits_[0] &= ~0x00000001u;
662 _impl_.thermistor_ =
nullptr;
663#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
664 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
665 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
666 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
668 if (GetArenaForAllocation() !=
nullptr) {
669 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
674inline ::jaiabot::protobuf::Motor_Thermistor* Motor::unsafe_arena_release_thermistor() {
676 _impl_._has_bits_[0] &= ~0x00000001u;
678 _impl_.thermistor_ =
nullptr;
681inline ::jaiabot::protobuf::Motor_Thermistor* Motor::_internal_mutable_thermistor() {
682 _impl_._has_bits_[0] |= 0x00000001u;
683 if (_impl_.thermistor_ ==
nullptr) {
685 _impl_.thermistor_ = p;
687 return _impl_.thermistor_;
689inline ::jaiabot::protobuf::Motor_Thermistor* Motor::mutable_thermistor() {
695 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
696 if (message_arena ==
nullptr) {
697 delete _impl_.thermistor_;
700 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
701 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(thermistor);
702 if (message_arena != submessage_arena) {
703 thermistor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
704 message_arena, thermistor, submessage_arena);
706 _impl_._has_bits_[0] |= 0x00000001u;
708 _impl_._has_bits_[0] &= ~0x00000001u;
710 _impl_.thermistor_ = thermistor;
715inline bool Motor::_internal_has_motor_harness_type()
const {
716 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
719inline bool Motor::has_motor_harness_type()
const {
720 return _internal_has_motor_harness_type();
722inline void Motor::clear_motor_harness_type() {
723 _impl_.motor_harness_type_ = 1;
724 _impl_._has_bits_[0] &= ~0x00000004u;
726inline ::jaiabot::protobuf::MotorHarnessType Motor::_internal_motor_harness_type()
const {
729inline ::jaiabot::protobuf::MotorHarnessType Motor::motor_harness_type()
const {
731 return _internal_motor_harness_type();
735 _impl_._has_bits_[0] |= 0x00000004u;
736 _impl_.motor_harness_type_ = value;
739 _internal_set_motor_harness_type(value);
744 #pragma GCC diagnostic pop
754PROTOBUF_NAMESPACE_OPEN
759 return ::jaiabot::protobuf::MotorHarnessType_descriptor();
762PROTOBUF_NAMESPACE_CLOSE
766#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
@ kTemperatureFieldNumber
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)
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 const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void UnsafeArenaSwap(Motor *other)
static const Motor * internal_default_instance()
PROTOBUF_CONSTEXPR Motor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Motor & operator=(const Motor &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
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
Motor & operator=(Motor &&from) noexcept
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Motor(Motor &&from) noexcept
friend void swap(Motor &a, Motor &b)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
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_
bool MotorHarnessType_IsValid(int value)
const std::string & MotorHarnessType_Name(T enum_t_value)
static const uint32_t offsets[]