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