JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
motor.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: jaiabot/messages/motor.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmotor_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmotor_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/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>
39
40#include <boost/units/systems/temperature/celsius.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fmotor_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
52 static const uint32_t offsets[];
53};
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fmotor_2eproto;
55namespace jaiabot {
56namespace protobuf {
57class Motor;
58struct MotorDefaultTypeInternal;
59extern MotorDefaultTypeInternal _Motor_default_instance_;
60class Motor_Thermistor;
61struct Motor_ThermistorDefaultTypeInternal;
62extern Motor_ThermistorDefaultTypeInternal _Motor_Thermistor_default_instance_;
63} // namespace protobuf
64} // namespace jaiabot
65PROTOBUF_NAMESPACE_OPEN
66template<> ::jaiabot::protobuf::Motor* Arena::CreateMaybeMessage<::jaiabot::protobuf::Motor>(Arena*);
67template<> ::jaiabot::protobuf::Motor_Thermistor* Arena::CreateMaybeMessage<::jaiabot::protobuf::Motor_Thermistor>(Arena*);
68PROTOBUF_NAMESPACE_CLOSE
69namespace jaiabot {
70namespace protobuf {
71
80
81const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MotorHarnessType_descriptor();
82template<typename T>
83inline const std::string& MotorHarnessType_Name(T enum_t_value) {
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(
88 MotorHarnessType_descriptor(), enum_t_value);
89}
91 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MotorHarnessType* value) {
92 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MotorHarnessType>(
93 MotorHarnessType_descriptor(), name, value);
94}
95// ===================================================================
96
97class Motor_Thermistor final :
98 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.Motor.Thermistor) */ {
99 public:
100 inline Motor_Thermistor() : Motor_Thermistor(nullptr) {}
102 explicit PROTOBUF_CONSTEXPR Motor_Thermistor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
103
106 : Motor_Thermistor() {
107 *this = ::std::move(from);
108 }
109
111 CopyFrom(from);
112 return *this;
113 }
114 inline Motor_Thermistor& operator=(Motor_Thermistor&& from) noexcept {
115 if (this == &from) return *this;
116 if (GetOwningArena() == from.GetOwningArena()
117 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
118 && GetOwningArena() != nullptr
119 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
120 ) {
121 InternalSwap(&from);
122 } else {
123 CopyFrom(from);
124 }
125 return *this;
126 }
127
128 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
129 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
130 }
131 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
132 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
133 }
134
135 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
136 return GetDescriptor();
137 }
138 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
139 return default_instance().GetMetadata().descriptor;
140 }
141 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
142 return default_instance().GetMetadata().reflection;
143 }
146 }
148 return reinterpret_cast<const Motor_Thermistor*>(
150 }
151 static constexpr int kIndexInFileMessages =
152 0;
153
155 a.Swap(&b);
156 }
157 inline void Swap(Motor_Thermistor* other) {
158 if (other == this) return;
159 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
160 if (GetOwningArena() != nullptr &&
161 GetOwningArena() == other->GetOwningArena()) {
162 #else // PROTOBUF_FORCE_COPY_IN_SWAP
163 if (GetOwningArena() == other->GetOwningArena()) {
164 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
165 InternalSwap(other);
166 } else {
167 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
168 }
169 }
171 if (other == this) return;
172 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
173 InternalSwap(other);
174 }
175
176 // implements Message ----------------------------------------------
177
178 Motor_Thermistor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
179 return CreateMaybeMessage<Motor_Thermistor>(arena);
180 }
181 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
182 void CopyFrom(const Motor_Thermistor& from);
183 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
184 void MergeFrom( const Motor_Thermistor& from) {
185 Motor_Thermistor::MergeImpl(*this, from);
186 }
187 private:
188 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
189 public:
190 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
191 bool IsInitialized() const final;
192
193 size_t ByteSizeLong() const final;
194 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
196 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
197 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
198
199 private:
200 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
201 void SharedDtor();
202 void SetCachedSize(int size) const final;
203 void InternalSwap(Motor_Thermistor* other);
204
205 private:
206 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
207 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
208 return "jaiabot.protobuf.Motor.Thermistor";
209 }
210 protected:
211 explicit Motor_Thermistor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
212 bool is_message_owned = false);
213 public:
214
215 static const ClassData _class_data_;
216 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
217
218 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
219
220 // nested types ----------------------------------------------------
221
222 // accessors -------------------------------------------------------
223
224 enum : int {
228 };
229 // optional float temperature = 1 [(.dccl.field) = {
230 bool has_temperature() const;
231 private:
232 bool _internal_has_temperature() const;
233 public:
234 void clear_temperature();
235 float temperature() const;
236 void set_temperature(float value);
237 private:
238 float _internal_temperature() const;
239 void _internal_set_temperature(float value);
240 public:
241
242 // optional float resistance = 2;
243 bool has_resistance() const;
244 private:
245 bool _internal_has_resistance() const;
246 public:
247 void clear_resistance();
248 float resistance() const;
249 void set_resistance(float value);
250 private:
251 float _internal_resistance() const;
252 void _internal_set_resistance(float value);
253 public:
254
255 // optional float voltage = 3;
256 bool has_voltage() const;
257 private:
258 bool _internal_has_voltage() const;
259 public:
260 void clear_voltage();
261 float voltage() const;
262 void set_voltage(float value);
263 private:
264 float _internal_voltage() const;
265 void _internal_set_voltage(float value);
266 public:
267
268 typedef boost::units::temperature_dimension temperature_dimension;
269
270 typedef boost::units::absolute<boost::units::unit<temperature_dimension,boost::units::celsius::system> > temperature_unit;
271
272 template<typename Quantity >
273 void set_temperature_with_units(Quantity value_w_units)
274 { set_temperature(boost::units::quantity<temperature_unit,float >(value_w_units).value() ); };
275
276 template<typename Quantity >
277 Quantity temperature_with_units() const
278 { return Quantity(temperature() * temperature_unit()); };
279
280 boost::units::quantity< temperature_unit,float > temperature_with_units() const
281 { return temperature_with_units<boost::units::quantity< temperature_unit,float > >(); };
282
283 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.Motor.Thermistor)
284 private:
285 class _Internal;
286
287 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
288 typedef void InternalArenaConstructable_;
289 typedef void DestructorSkippable_;
290 struct Impl_ {
291 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
292 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
293 float temperature_;
294 float resistance_;
295 float voltage_;
296 };
297 union { Impl_ _impl_; };
298 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
299};
300// -------------------------------------------------------------------
301
302class Motor final :
303 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.protobuf.Motor) */ {
304 public:
305 inline Motor() : Motor(nullptr) {}
306 ~Motor() override;
307 explicit PROTOBUF_CONSTEXPR Motor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
308
309 Motor(const Motor& from);
310 Motor(Motor&& from) noexcept
311 : Motor() {
312 *this = ::std::move(from);
313 }
314
315 inline Motor& operator=(const Motor& from) {
316 CopyFrom(from);
317 return *this;
318 }
319 inline Motor& operator=(Motor&& from) noexcept {
320 if (this == &from) return *this;
321 if (GetOwningArena() == from.GetOwningArena()
322 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
323 && GetOwningArena() != nullptr
324 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
325 ) {
326 InternalSwap(&from);
327 } else {
328 CopyFrom(from);
329 }
330 return *this;
331 }
332
333 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
334 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
335 }
336 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
337 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
338 }
339
340 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
341 return GetDescriptor();
342 }
343 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
344 return default_instance().GetMetadata().descriptor;
345 }
346 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
347 return default_instance().GetMetadata().reflection;
348 }
349 static const Motor& default_instance() {
350 return *internal_default_instance();
351 }
352 static inline const Motor* internal_default_instance() {
353 return reinterpret_cast<const Motor*>(
355 }
356 static constexpr int kIndexInFileMessages =
357 1;
358
359 friend void swap(Motor& a, Motor& b) {
360 a.Swap(&b);
361 }
362 inline void Swap(Motor* other) {
363 if (other == this) return;
364 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
365 if (GetOwningArena() != nullptr &&
366 GetOwningArena() == other->GetOwningArena()) {
367 #else // PROTOBUF_FORCE_COPY_IN_SWAP
368 if (GetOwningArena() == other->GetOwningArena()) {
369 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
370 InternalSwap(other);
371 } else {
372 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
373 }
374 }
375 void UnsafeArenaSwap(Motor* other) {
376 if (other == this) return;
377 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
378 InternalSwap(other);
379 }
380
381 // implements Message ----------------------------------------------
382
383 Motor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
384 return CreateMaybeMessage<Motor>(arena);
385 }
386 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
387 void CopyFrom(const Motor& from);
388 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
389 void MergeFrom( const Motor& from) {
390 Motor::MergeImpl(*this, from);
391 }
392 private:
393 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
394 public:
395 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
396 bool IsInitialized() const final;
397
398 size_t ByteSizeLong() const final;
399 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
400 uint8_t* _InternalSerialize(
401 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
402 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
403
404 private:
405 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
406 void SharedDtor();
407 void SetCachedSize(int size) const final;
408 void InternalSwap(Motor* other);
409
410 private:
411 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
412 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
413 return "jaiabot.protobuf.Motor";
414 }
415 protected:
416 explicit Motor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
417 bool is_message_owned = false);
418 public:
419
420 static const ClassData _class_data_;
421 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
422
423 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
424
425 // nested types ----------------------------------------------------
426
428
429 // accessors -------------------------------------------------------
430
431 enum : int {
432 kThermistorFieldNumber = 2,
433 kRpmFieldNumber = 1,
434 kMotorHarnessTypeFieldNumber = 3,
435 };
436 // optional .jaiabot.protobuf.Motor.Thermistor thermistor = 2;
437 bool has_thermistor() const;
438 private:
439 bool _internal_has_thermistor() const;
440 public:
441 void clear_thermistor();
442 const ::jaiabot::protobuf::Motor_Thermistor& thermistor() const;
443 PROTOBUF_NODISCARD ::jaiabot::protobuf::Motor_Thermistor* release_thermistor();
444 ::jaiabot::protobuf::Motor_Thermistor* mutable_thermistor();
445 void set_allocated_thermistor(::jaiabot::protobuf::Motor_Thermistor* thermistor);
446 private:
447 const ::jaiabot::protobuf::Motor_Thermistor& _internal_thermistor() const;
448 ::jaiabot::protobuf::Motor_Thermistor* _internal_mutable_thermistor();
449 public:
450 void unsafe_arena_set_allocated_thermistor(
452 ::jaiabot::protobuf::Motor_Thermistor* unsafe_arena_release_thermistor();
453
454 // optional double rpm = 1;
455 bool has_rpm() const;
456 private:
457 bool _internal_has_rpm() const;
458 public:
459 void clear_rpm();
460 double rpm() const;
461 void set_rpm(double value);
462 private:
463 double _internal_rpm() const;
464 void _internal_set_rpm(double value);
465 public:
466
467 // optional .jaiabot.protobuf.MotorHarnessType motor_harness_type = 3 [default = NONE];
468 bool has_motor_harness_type() const;
469 private:
470 bool _internal_has_motor_harness_type() const;
471 public:
472 void clear_motor_harness_type();
473 ::jaiabot::protobuf::MotorHarnessType motor_harness_type() const;
474 void set_motor_harness_type(::jaiabot::protobuf::MotorHarnessType value);
475 private:
476 ::jaiabot::protobuf::MotorHarnessType _internal_motor_harness_type() const;
477 void _internal_set_motor_harness_type(::jaiabot::protobuf::MotorHarnessType value);
478 public:
479
480 // @@protoc_insertion_point(class_scope:jaiabot.protobuf.Motor)
481 private:
482 class _Internal;
483
484 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
485 typedef void InternalArenaConstructable_;
486 typedef void DestructorSkippable_;
487 struct Impl_ {
488 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
489 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
491 double rpm_;
492 int motor_harness_type_;
493 };
494 union { Impl_ _impl_; };
495 friend struct ::TableStruct_jaiabot_2fmessages_2fmotor_2eproto;
496};
497// ===================================================================
498
499
500// ===================================================================
501
502#ifdef __GNUC__
503 #pragma GCC diagnostic push
504 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
505#endif // __GNUC__
506// Motor_Thermistor
507
508// optional float temperature = 1 [(.dccl.field) = {
509inline bool Motor_Thermistor::_internal_has_temperature() const {
510 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
511 return value;
512}
513inline bool Motor_Thermistor::has_temperature() const {
514 return _internal_has_temperature();
515}
516inline void Motor_Thermistor::clear_temperature() {
517 _impl_.temperature_ = 0;
518 _impl_._has_bits_[0] &= ~0x00000001u;
519}
520inline float Motor_Thermistor::_internal_temperature() const {
521 return _impl_.temperature_;
522}
523inline float Motor_Thermistor::temperature() const {
524 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Motor.Thermistor.temperature)
525 return _internal_temperature();
526}
527inline void Motor_Thermistor::_internal_set_temperature(float value) {
528 _impl_._has_bits_[0] |= 0x00000001u;
529 _impl_.temperature_ = value;
530}
531inline void Motor_Thermistor::set_temperature(float value) {
532 _internal_set_temperature(value);
533 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Motor.Thermistor.temperature)
534}
535
536// optional float resistance = 2;
537inline bool Motor_Thermistor::_internal_has_resistance() const {
538 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
539 return value;
540}
541inline bool Motor_Thermistor::has_resistance() const {
542 return _internal_has_resistance();
543}
544inline void Motor_Thermistor::clear_resistance() {
545 _impl_.resistance_ = 0;
546 _impl_._has_bits_[0] &= ~0x00000002u;
547}
548inline float Motor_Thermistor::_internal_resistance() const {
549 return _impl_.resistance_;
550}
551inline float Motor_Thermistor::resistance() const {
552 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Motor.Thermistor.resistance)
553 return _internal_resistance();
554}
555inline void Motor_Thermistor::_internal_set_resistance(float value) {
556 _impl_._has_bits_[0] |= 0x00000002u;
557 _impl_.resistance_ = value;
558}
559inline void Motor_Thermistor::set_resistance(float value) {
560 _internal_set_resistance(value);
561 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Motor.Thermistor.resistance)
562}
563
564// optional float voltage = 3;
565inline bool Motor_Thermistor::_internal_has_voltage() const {
566 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
567 return value;
568}
569inline bool Motor_Thermistor::has_voltage() const {
570 return _internal_has_voltage();
571}
572inline void Motor_Thermistor::clear_voltage() {
573 _impl_.voltage_ = 0;
574 _impl_._has_bits_[0] &= ~0x00000004u;
575}
576inline float Motor_Thermistor::_internal_voltage() const {
577 return _impl_.voltage_;
578}
579inline float Motor_Thermistor::voltage() const {
580 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Motor.Thermistor.voltage)
581 return _internal_voltage();
582}
583inline void Motor_Thermistor::_internal_set_voltage(float value) {
584 _impl_._has_bits_[0] |= 0x00000004u;
585 _impl_.voltage_ = value;
586}
587inline void Motor_Thermistor::set_voltage(float value) {
588 _internal_set_voltage(value);
589 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Motor.Thermistor.voltage)
590}
591
592// -------------------------------------------------------------------
593
594// Motor
595
596// optional double rpm = 1;
597inline bool Motor::_internal_has_rpm() const {
598 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
599 return value;
600}
601inline bool Motor::has_rpm() const {
602 return _internal_has_rpm();
603}
604inline void Motor::clear_rpm() {
605 _impl_.rpm_ = 0;
606 _impl_._has_bits_[0] &= ~0x00000002u;
607}
608inline double Motor::_internal_rpm() const {
609 return _impl_.rpm_;
610}
611inline double Motor::rpm() const {
612 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Motor.rpm)
613 return _internal_rpm();
614}
615inline void Motor::_internal_set_rpm(double value) {
616 _impl_._has_bits_[0] |= 0x00000002u;
617 _impl_.rpm_ = value;
618}
619inline void Motor::set_rpm(double value) {
620 _internal_set_rpm(value);
621 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Motor.rpm)
622}
623
624// optional .jaiabot.protobuf.Motor.Thermistor thermistor = 2;
625inline bool Motor::_internal_has_thermistor() const {
626 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
627 PROTOBUF_ASSUME(!value || _impl_.thermistor_ != nullptr);
628 return value;
629}
630inline bool Motor::has_thermistor() const {
631 return _internal_has_thermistor();
632}
633inline void Motor::clear_thermistor() {
634 if (_impl_.thermistor_ != nullptr) _impl_.thermistor_->Clear();
635 _impl_._has_bits_[0] &= ~0x00000001u;
636}
637inline const ::jaiabot::protobuf::Motor_Thermistor& Motor::_internal_thermistor() const {
638 const ::jaiabot::protobuf::Motor_Thermistor* p = _impl_.thermistor_;
639 return p != nullptr ? *p : reinterpret_cast<const ::jaiabot::protobuf::Motor_Thermistor&>(
641}
642inline const ::jaiabot::protobuf::Motor_Thermistor& Motor::thermistor() const {
643 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Motor.thermistor)
644 return _internal_thermistor();
645}
646inline void Motor::unsafe_arena_set_allocated_thermistor(
648 if (GetArenaForAllocation() == nullptr) {
649 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.thermistor_);
650 }
651 _impl_.thermistor_ = thermistor;
652 if (thermistor) {
653 _impl_._has_bits_[0] |= 0x00000001u;
654 } else {
655 _impl_._has_bits_[0] &= ~0x00000001u;
656 }
657 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.protobuf.Motor.thermistor)
658}
659inline ::jaiabot::protobuf::Motor_Thermistor* Motor::release_thermistor() {
660 _impl_._has_bits_[0] &= ~0x00000001u;
661 ::jaiabot::protobuf::Motor_Thermistor* temp = _impl_.thermistor_;
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; }
667#else // PROTOBUF_FORCE_COPY_IN_RELEASE
668 if (GetArenaForAllocation() != nullptr) {
669 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
670 }
671#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
672 return temp;
673}
674inline ::jaiabot::protobuf::Motor_Thermistor* Motor::unsafe_arena_release_thermistor() {
675 // @@protoc_insertion_point(field_release:jaiabot.protobuf.Motor.thermistor)
676 _impl_._has_bits_[0] &= ~0x00000001u;
677 ::jaiabot::protobuf::Motor_Thermistor* temp = _impl_.thermistor_;
678 _impl_.thermistor_ = nullptr;
679 return temp;
680}
681inline ::jaiabot::protobuf::Motor_Thermistor* Motor::_internal_mutable_thermistor() {
682 _impl_._has_bits_[0] |= 0x00000001u;
683 if (_impl_.thermistor_ == nullptr) {
684 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Motor_Thermistor>(GetArenaForAllocation());
685 _impl_.thermistor_ = p;
686 }
687 return _impl_.thermistor_;
688}
689inline ::jaiabot::protobuf::Motor_Thermistor* Motor::mutable_thermistor() {
690 ::jaiabot::protobuf::Motor_Thermistor* _msg = _internal_mutable_thermistor();
691 // @@protoc_insertion_point(field_mutable:jaiabot.protobuf.Motor.thermistor)
692 return _msg;
693}
694inline void Motor::set_allocated_thermistor(::jaiabot::protobuf::Motor_Thermistor* thermistor) {
695 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
696 if (message_arena == nullptr) {
697 delete _impl_.thermistor_;
698 }
699 if (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);
705 }
706 _impl_._has_bits_[0] |= 0x00000001u;
707 } else {
708 _impl_._has_bits_[0] &= ~0x00000001u;
709 }
710 _impl_.thermistor_ = thermistor;
711 // @@protoc_insertion_point(field_set_allocated:jaiabot.protobuf.Motor.thermistor)
712}
713
714// optional .jaiabot.protobuf.MotorHarnessType motor_harness_type = 3 [default = NONE];
715inline bool Motor::_internal_has_motor_harness_type() const {
716 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
717 return value;
718}
719inline bool Motor::has_motor_harness_type() const {
720 return _internal_has_motor_harness_type();
721}
722inline void Motor::clear_motor_harness_type() {
723 _impl_.motor_harness_type_ = 1;
724 _impl_._has_bits_[0] &= ~0x00000004u;
725}
726inline ::jaiabot::protobuf::MotorHarnessType Motor::_internal_motor_harness_type() const {
727 return static_cast< ::jaiabot::protobuf::MotorHarnessType >(_impl_.motor_harness_type_);
728}
729inline ::jaiabot::protobuf::MotorHarnessType Motor::motor_harness_type() const {
730 // @@protoc_insertion_point(field_get:jaiabot.protobuf.Motor.motor_harness_type)
731 return _internal_motor_harness_type();
732}
733inline void Motor::_internal_set_motor_harness_type(::jaiabot::protobuf::MotorHarnessType value) {
735 _impl_._has_bits_[0] |= 0x00000004u;
736 _impl_.motor_harness_type_ = value;
737}
738inline void Motor::set_motor_harness_type(::jaiabot::protobuf::MotorHarnessType value) {
739 _internal_set_motor_harness_type(value);
740 // @@protoc_insertion_point(field_set:jaiabot.protobuf.Motor.motor_harness_type)
741}
742
743#ifdef __GNUC__
744 #pragma GCC diagnostic pop
745#endif // __GNUC__
746// -------------------------------------------------------------------
747
748
749// @@protoc_insertion_point(namespace_scope)
750
751} // namespace protobuf
752} // namespace jaiabot
753
754PROTOBUF_NAMESPACE_OPEN
755
756template <> struct is_proto_enum< ::jaiabot::protobuf::MotorHarnessType> : ::std::true_type {};
757template <>
759 return ::jaiabot::protobuf::MotorHarnessType_descriptor();
760}
761
762PROTOBUF_NAMESPACE_CLOSE
763
764// @@protoc_insertion_point(global_scope)
765
766#include <google/protobuf/port_undef.inc>
767#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fmotor_2eproto
static const Motor_Thermistor & default_instance()
Definition motor.pb.h:144
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
Definition motor.pb.h:270
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void Swap(Motor_Thermistor *other)
Definition motor.pb.h:157
Motor_Thermistor * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition motor.pb.h:178
Motor_Thermistor & operator=(const Motor_Thermistor &from)
Definition motor.pb.h:110
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void UnsafeArenaSwap(Motor_Thermistor *other)
Definition motor.pb.h:170
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition motor.pb.h:131
static const Motor_Thermistor * internal_default_instance()
Definition motor.pb.h:147
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition motor.pb.h:138
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition motor.pb.h:128
static constexpr int kIndexInFileMessages
Definition motor.pb.h:151
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition motor.pb.h:141
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition motor.pb.h:135
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
Definition motor.pb.h:114
friend void swap(Motor_Thermistor &a, Motor_Thermistor &b)
Definition motor.pb.h:154
static const ClassData _class_data_
Definition motor.pb.h:215
void set_temperature_with_units(Quantity value_w_units)
Definition motor.pb.h:273
void MergeFrom(const Motor_Thermistor &from)
Definition motor.pb.h:184
boost::units::temperature_dimension temperature_dimension
Definition motor.pb.h:268
Quantity temperature_with_units() const
Definition motor.pb.h:277
Motor_Thermistor(Motor_Thermistor &&from) noexcept
Definition motor.pb.h:105
void set_temperature(float value)
Definition motor.pb.h:531
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
Definition motor.pb.h:280
void CopyFrom(const Motor_Thermistor &from)
void MergeFrom(const Motor &from)
Definition motor.pb.h:389
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition motor.pb.h:340
void UnsafeArenaSwap(Motor *other)
Definition motor.pb.h:375
static const Motor * internal_default_instance()
Definition motor.pb.h:352
Motor(const Motor &from)
PROTOBUF_CONSTEXPR Motor(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
Motor & operator=(const Motor &from)
Definition motor.pb.h:315
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition motor.pb.h:346
static const Motor & default_instance()
Definition motor.pb.h:349
Motor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
Motor * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition motor.pb.h:383
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition motor.pb.h:343
void CopyFrom(const Motor &from)
static const ClassData _class_data_
Definition motor.pb.h:420
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
Motor & operator=(Motor &&from) noexcept
Definition motor.pb.h:319
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Motor(Motor &&from) noexcept
Definition motor.pb.h:310
friend void swap(Motor &a, Motor &b)
Definition motor.pb.h:359
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition motor.pb.h:333
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition motor.pb.h:336
void Swap(Motor *other)
Definition motor.pb.h:362
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 >()
Definition motor.pb.h:758
constexpr int MotorHarnessType_ARRAYSIZE
Definition motor.pb.h:79
constexpr MotorHarnessType MotorHarnessType_MIN
Definition motor.pb.h:77
bool MotorHarnessType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MotorHarnessType *value)
Definition motor.pb.h:90
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * MotorHarnessType_descriptor()
constexpr MotorHarnessType MotorHarnessType_MAX
Definition motor.pb.h:78
MotorDefaultTypeInternal _Motor_default_instance_
Motor_ThermistorDefaultTypeInternal _Motor_Thermistor_default_instance_
bool MotorHarnessType_IsValid(int value)
const std::string & MotorHarnessType_Name(T enum_t_value)
Definition motor.pb.h:83