Ignition Msgs

API Reference

5.8.1
battery_state.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/battery_state.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_5fstate_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_5fstate_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3019000
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 3019000 < 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/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fbattery_5fstate_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
51 namespace internal {
52 class AnyMetadata;
53 } // namespace internal
54 PROTOBUF_NAMESPACE_CLOSE
55 
56 // Internal implementation detail -- do not use these members.
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66  static const uint32_t offsets[];
67 };
68 IGNITION_MSGS_VISIBLE extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fbattery_5fstate_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class BatteryState;
72 struct BatteryStateDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern BatteryStateDefaultTypeInternal _BatteryState_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::BatteryState* Arena::CreateMaybeMessage<::ignition::msgs::BatteryState>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
90 };
91 IGNITION_MSGS_VISIBLE bool BatteryState_PowerSupplyStatus_IsValid(int value);
95 
96 IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BatteryState_PowerSupplyStatus_descriptor();
97 template<typename T>
98 inline const std::string& BatteryState_PowerSupplyStatus_Name(T enum_t_value) {
101  "Incorrect type passed to function BatteryState_PowerSupplyStatus_Name.");
102  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
104 }
106  ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BatteryState_PowerSupplyStatus* value) {
107  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<BatteryState_PowerSupplyStatus>(
109 }
110 // ===================================================================
111 
112 class IGNITION_MSGS_VISIBLE BatteryState final :
113  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.BatteryState) */ {
114  public:
115  inline BatteryState() : BatteryState(nullptr) {}
116  ~BatteryState() override;
117  explicit constexpr BatteryState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
118 
120  BatteryState(BatteryState&& from) noexcept
121  : BatteryState() {
122  *this = ::std::move(from);
123  }
124 
125  inline BatteryState& operator=(const BatteryState& from) {
126  CopyFrom(from);
127  return *this;
128  }
129  inline BatteryState& operator=(BatteryState&& from) noexcept {
130  if (this == &from) return *this;
131  if (GetOwningArena() == from.GetOwningArena()
132  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
133  && GetOwningArena() != nullptr
134  #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
135  ) {
136  InternalSwap(&from);
137  } else {
138  CopyFrom(from);
139  }
140  return *this;
141  }
142 
143  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
144  return GetDescriptor();
145  }
146  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
147  return default_instance().GetMetadata().descriptor;
148  }
149  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
150  return default_instance().GetMetadata().reflection;
151  }
152  static const BatteryState& default_instance() {
153  return *internal_default_instance();
154  }
155  static inline const BatteryState* internal_default_instance() {
156  return reinterpret_cast<const BatteryState*>(
158  }
159  static constexpr int kIndexInFileMessages =
160  0;
161 
162  friend void swap(BatteryState& a, BatteryState& b) {
163  a.Swap(&b);
164  }
165  inline void Swap(BatteryState* other) {
166  if (other == this) return;
167  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168  if (GetOwningArena() != nullptr &&
169  GetOwningArena() == other->GetOwningArena()) {
170  #else // PROTOBUF_FORCE_COPY_IN_SWAP
171  if (GetOwningArena() == other->GetOwningArena()) {
172  #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
173  InternalSwap(other);
174  } else {
175  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
176  }
177  }
179  if (other == this) return;
180  GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
181  InternalSwap(other);
182  }
183 
184  // implements Message ----------------------------------------------
185 
186  BatteryState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
187  return CreateMaybeMessage<BatteryState>(arena);
188  }
189  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
190  void CopyFrom(const BatteryState& from);
191  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
192  void MergeFrom(const BatteryState& from);
193  private:
194  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
195  public:
196  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
197  bool IsInitialized() const final;
198 
199  size_t ByteSizeLong() const final;
200  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
201  uint8_t* _InternalSerialize(
202  uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
203  int GetCachedSize() const final { return _cached_size_.Get(); }
204 
205  private:
206  void SharedCtor();
207  void SharedDtor();
208  void SetCachedSize(int size) const final;
209  void InternalSwap(BatteryState* other);
210 
211  private:
212  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
213  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
214  return "ignition.msgs.BatteryState";
215  }
216  protected:
217  explicit BatteryState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
218  bool is_message_owned = false);
219  private:
220  static void ArenaDtor(void* object);
221  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
222  public:
223 
224  static const ClassData _class_data_;
225  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
226 
227  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
228 
229  // nested types ----------------------------------------------------
230 
232  static constexpr PowerSupplyStatus UNKNOWN =
234  static constexpr PowerSupplyStatus CHARGING =
236  static constexpr PowerSupplyStatus DISCHARGING =
238  static constexpr PowerSupplyStatus NOT_CHARGING =
240  static constexpr PowerSupplyStatus FULL =
242  static inline bool PowerSupplyStatus_IsValid(int value) {
244  }
245  static constexpr PowerSupplyStatus PowerSupplyStatus_MIN =
247  static constexpr PowerSupplyStatus PowerSupplyStatus_MAX =
249  static constexpr int PowerSupplyStatus_ARRAYSIZE =
251  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
254  }
255  template<typename T>
256  static inline const std::string& PowerSupplyStatus_Name(T enum_t_value) {
259  "Incorrect type passed to function PowerSupplyStatus_Name.");
260  return BatteryState_PowerSupplyStatus_Name(enum_t_value);
261  }
262  static inline bool PowerSupplyStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
263  PowerSupplyStatus* value) {
264  return BatteryState_PowerSupplyStatus_Parse(name, value);
265  }
266 
267  // accessors -------------------------------------------------------
268 
269  enum : int {
270  kHeaderFieldNumber = 1,
271  kVoltageFieldNumber = 2,
272  kCurrentFieldNumber = 3,
273  kChargeFieldNumber = 4,
274  kCapacityFieldNumber = 5,
275  kPercentageFieldNumber = 6,
276  kPowerSupplyStatusFieldNumber = 7,
277  };
278  // .ignition.msgs.Header header = 1;
279  bool has_header() const;
280  private:
281  bool _internal_has_header() const;
282  public:
283  void clear_header();
284  const ::ignition::msgs::Header& header() const;
285  PROTOBUF_NODISCARD ::ignition::msgs::Header* release_header();
286  ::ignition::msgs::Header* mutable_header();
287  void set_allocated_header(::ignition::msgs::Header* header);
288  private:
289  const ::ignition::msgs::Header& _internal_header() const;
290  ::ignition::msgs::Header* _internal_mutable_header();
291  public:
292  void unsafe_arena_set_allocated_header(
293  ::ignition::msgs::Header* header);
294  ::ignition::msgs::Header* unsafe_arena_release_header();
295 
296  // double voltage = 2;
297  void clear_voltage();
298  double voltage() const;
299  void set_voltage(double value);
300  private:
301  double _internal_voltage() const;
302  void _internal_set_voltage(double value);
303  public:
304 
305  // double current = 3;
306  void clear_current();
307  double current() const;
308  void set_current(double value);
309  private:
310  double _internal_current() const;
311  void _internal_set_current(double value);
312  public:
313 
314  // double charge = 4;
315  void clear_charge();
316  double charge() const;
317  void set_charge(double value);
318  private:
319  double _internal_charge() const;
320  void _internal_set_charge(double value);
321  public:
322 
323  // double capacity = 5;
324  void clear_capacity();
325  double capacity() const;
326  void set_capacity(double value);
327  private:
328  double _internal_capacity() const;
329  void _internal_set_capacity(double value);
330  public:
331 
332  // double percentage = 6;
333  void clear_percentage();
334  double percentage() const;
335  void set_percentage(double value);
336  private:
337  double _internal_percentage() const;
338  void _internal_set_percentage(double value);
339  public:
340 
341  // .ignition.msgs.BatteryState.PowerSupplyStatus power_supply_status = 7;
342  void clear_power_supply_status();
343  ::ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status() const;
344  void set_power_supply_status(::ignition::msgs::BatteryState_PowerSupplyStatus value);
345  private:
346  ::ignition::msgs::BatteryState_PowerSupplyStatus _internal_power_supply_status() const;
347  void _internal_set_power_supply_status(::ignition::msgs::BatteryState_PowerSupplyStatus value);
348  public:
349 
350  // @@protoc_insertion_point(class_scope:ignition.msgs.BatteryState)
351  private:
352  class _Internal;
353 
354  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
355  typedef void InternalArenaConstructable_;
356  typedef void DestructorSkippable_;
357  ::ignition::msgs::Header* header_;
358  double voltage_;
359  double current_;
360  double charge_;
361  double capacity_;
362  double percentage_;
363  int power_supply_status_;
364  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
365  friend struct ::TableStruct_ignition_2fmsgs_2fbattery_5fstate_2eproto;
366 };
367 // ===================================================================
368 
369 
370 // ===================================================================
371 
372 #ifdef __GNUC__
373  #pragma GCC diagnostic push
374  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
375 #endif // __GNUC__
376 // BatteryState
377 
378 // .ignition.msgs.Header header = 1;
379 inline bool BatteryState::_internal_has_header() const {
380  return this != internal_default_instance() && header_ != nullptr;
381 }
382 inline bool BatteryState::has_header() const {
383  return _internal_has_header();
384 }
385 inline const ::ignition::msgs::Header& BatteryState::_internal_header() const {
386  const ::ignition::msgs::Header* p = header_;
387  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
389 }
390 inline const ::ignition::msgs::Header& BatteryState::header() const {
391  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.header)
392  return _internal_header();
393 }
395  ::ignition::msgs::Header* header) {
396  if (GetArenaForAllocation() == nullptr) {
397  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
398  }
399  header_ = header;
400  if (header) {
401 
402  } else {
403 
404  }
405  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.BatteryState.header)
406 }
407 inline ::ignition::msgs::Header* BatteryState::release_header() {
408 
409  ::ignition::msgs::Header* temp = header_;
410  header_ = nullptr;
411 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
412  auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
413  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
414  if (GetArenaForAllocation() == nullptr) { delete old; }
415 #else // PROTOBUF_FORCE_COPY_IN_RELEASE
416  if (GetArenaForAllocation() != nullptr) {
417  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
418  }
419 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
420  return temp;
421 }
422 inline ::ignition::msgs::Header* BatteryState::unsafe_arena_release_header() {
423  // @@protoc_insertion_point(field_release:ignition.msgs.BatteryState.header)
424 
425  ::ignition::msgs::Header* temp = header_;
426  header_ = nullptr;
427  return temp;
428 }
429 inline ::ignition::msgs::Header* BatteryState::_internal_mutable_header() {
430 
431  if (header_ == nullptr) {
432  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaForAllocation());
433  header_ = p;
434  }
435  return header_;
436 }
437 inline ::ignition::msgs::Header* BatteryState::mutable_header() {
438  ::ignition::msgs::Header* _msg = _internal_mutable_header();
439  // @@protoc_insertion_point(field_mutable:ignition.msgs.BatteryState.header)
440  return _msg;
441 }
443  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
444  if (message_arena == nullptr) {
445  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
446  }
447  if (header) {
448  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
449  ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
450  ::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
451  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header));
452  if (message_arena != submessage_arena) {
453  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
454  message_arena, header, submessage_arena);
455  }
456 
457  } else {
458 
459  }
460  header_ = header;
461  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.BatteryState.header)
462 }
463 
464 // double voltage = 2;
466  voltage_ = 0;
467 }
468 inline double BatteryState::_internal_voltage() const {
469  return voltage_;
470 }
471 inline double BatteryState::voltage() const {
472  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.voltage)
473  return _internal_voltage();
474 }
475 inline void BatteryState::_internal_set_voltage(double value) {
476 
477  voltage_ = value;
478 }
479 inline void BatteryState::set_voltage(double value) {
480  _internal_set_voltage(value);
481  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.voltage)
482 }
483 
484 // double current = 3;
486  current_ = 0;
487 }
488 inline double BatteryState::_internal_current() const {
489  return current_;
490 }
491 inline double BatteryState::current() const {
492  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.current)
493  return _internal_current();
494 }
495 inline void BatteryState::_internal_set_current(double value) {
496 
497  current_ = value;
498 }
499 inline void BatteryState::set_current(double value) {
500  _internal_set_current(value);
501  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.current)
502 }
503 
504 // double charge = 4;
506  charge_ = 0;
507 }
508 inline double BatteryState::_internal_charge() const {
509  return charge_;
510 }
511 inline double BatteryState::charge() const {
512  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.charge)
513  return _internal_charge();
514 }
515 inline void BatteryState::_internal_set_charge(double value) {
516 
517  charge_ = value;
518 }
519 inline void BatteryState::set_charge(double value) {
520  _internal_set_charge(value);
521  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.charge)
522 }
523 
524 // double capacity = 5;
526  capacity_ = 0;
527 }
528 inline double BatteryState::_internal_capacity() const {
529  return capacity_;
530 }
531 inline double BatteryState::capacity() const {
532  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.capacity)
533  return _internal_capacity();
534 }
535 inline void BatteryState::_internal_set_capacity(double value) {
536 
537  capacity_ = value;
538 }
539 inline void BatteryState::set_capacity(double value) {
540  _internal_set_capacity(value);
541  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.capacity)
542 }
543 
544 // double percentage = 6;
546  percentage_ = 0;
547 }
548 inline double BatteryState::_internal_percentage() const {
549  return percentage_;
550 }
551 inline double BatteryState::percentage() const {
552  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.percentage)
553  return _internal_percentage();
554 }
555 inline void BatteryState::_internal_set_percentage(double value) {
556 
557  percentage_ = value;
558 }
559 inline void BatteryState::set_percentage(double value) {
560  _internal_set_percentage(value);
561  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.percentage)
562 }
563 
564 // .ignition.msgs.BatteryState.PowerSupplyStatus power_supply_status = 7;
566  power_supply_status_ = 0;
567 }
568 inline ::ignition::msgs::BatteryState_PowerSupplyStatus BatteryState::_internal_power_supply_status() const {
569  return static_cast< ::ignition::msgs::BatteryState_PowerSupplyStatus >(power_supply_status_);
570 }
572  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.power_supply_status)
573  return _internal_power_supply_status();
574 }
575 inline void BatteryState::_internal_set_power_supply_status(::ignition::msgs::BatteryState_PowerSupplyStatus value) {
576 
577  power_supply_status_ = value;
578 }
580  _internal_set_power_supply_status(value);
581  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.power_supply_status)
582 }
583 
584 #ifdef __GNUC__
585  #pragma GCC diagnostic pop
586 #endif // __GNUC__
587 
592 // @@protoc_insertion_point(namespace_scope)
593 
594 } // namespace msgs
595 } // namespace ignition
596 
597 PROTOBUF_NAMESPACE_OPEN
598 
599 template <> struct is_proto_enum< ::ignition::msgs::BatteryState_PowerSupplyStatus> : ::std::true_type {};
600 template <>
601 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::BatteryState_PowerSupplyStatus>() {
603 }
604 
605 PROTOBUF_NAMESPACE_CLOSE
606 
607 #ifdef _MSC_VER
608 #pragma warning(pop)
609 #endif
610 // @@protoc_insertion_point(global_scope)
611 
612 #include <google/protobuf/port_undef.inc>
613 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_5fstate_2eproto
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fbattery_5fstate_2eproto
Definition: battery_state.pb.h:113
::ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status() const
Definition: battery_state.pb.h:571
void set_voltage(double value)
Definition: battery_state.pb.h:479
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: battery_state.pb.h:149
double capacity() const
Definition: battery_state.pb.h:531
static const BatteryState & default_instance()
Definition: battery_state.pb.h:152
void UnsafeArenaSwap(BatteryState *other)
Definition: battery_state.pb.h:178
bool has_header() const
Definition: battery_state.pb.h:382
::ignition::msgs::Header * mutable_header()
Definition: battery_state.pb.h:437
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_charge(double value)
Definition: battery_state.pb.h:519
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: battery_state.pb.h:143
BatteryState(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void clear_charge()
Definition: battery_state.pb.h:505
double voltage() const
Definition: battery_state.pb.h:471
void clear_current()
Definition: battery_state.pb.h:485
void set_current(double value)
Definition: battery_state.pb.h:499
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * PowerSupplyStatus_descriptor()
Definition: battery_state.pb.h:252
friend void swap(BatteryState &a, BatteryState &b)
Definition: battery_state.pb.h:162
constexpr BatteryState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
BatteryState & operator=(const BatteryState &from)
Definition: battery_state.pb.h:125
BatteryState & operator=(BatteryState &&from) noexcept
Definition: battery_state.pb.h:129
void clear_percentage()
Definition: battery_state.pb.h:545
void clear_capacity()
Definition: battery_state.pb.h:525
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
Definition: battery_state.pb.h:394
BatteryState(const BatteryState &from)
void Swap(BatteryState *other)
Definition: battery_state.pb.h:165
BatteryState(BatteryState &&from) noexcept
Definition: battery_state.pb.h:120
void set_capacity(double value)
Definition: battery_state.pb.h:539
static const BatteryState * internal_default_instance()
Definition: battery_state.pb.h:155
void CopyFrom(const BatteryState &from)
BatteryState * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition: battery_state.pb.h:186
double percentage() const
Definition: battery_state.pb.h:551
void set_allocated_header(::ignition::msgs::Header *header)
Definition: battery_state.pb.h:442
PROTOBUF_NODISCARD ::ignition::msgs::Header * release_header()
Definition: battery_state.pb.h:407
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
double current() const
Definition: battery_state.pb.h:491
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: battery_state.pb.h:146
void MergeFrom(const BatteryState &from)
const ::ignition::msgs::Header & header() const
Definition: battery_state.pb.h:390
BatteryState()
Definition: battery_state.pb.h:115
void clear_voltage()
Definition: battery_state.pb.h:465
double charge() const
Definition: battery_state.pb.h:511
static bool PowerSupplyStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerSupplyStatus *value)
Definition: battery_state.pb.h:262
static const ClassData _class_data_
Definition: battery_state.pb.h:224
void clear_power_supply_status()
Definition: battery_state.pb.h:565
::ignition::msgs::Header * unsafe_arena_release_header()
Definition: battery_state.pb.h:422
void set_power_supply_status(::ignition::msgs::BatteryState_PowerSupplyStatus value)
Definition: battery_state.pb.h:579
static const std::string & PowerSupplyStatus_Name(T enum_t_value)
Definition: battery_state.pb.h:256
void set_percentage(double value)
Definition: battery_state.pb.h:559
Definition: header.pb.h:265
T max(T... args)
T min(T... args)
constexpr int BatteryState_PowerSupplyStatus_PowerSupplyStatus_ARRAYSIZE
Definition: battery_state.pb.h:94
std::unique_ptr< BatteryState > BatteryStateUniquePtr
Definition: battery_state.pb.h:588
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * BatteryState_PowerSupplyStatus_descriptor()
std::shared_ptr< const BatteryState > ConstBatteryStateSharedPtr
Definition: battery_state.pb.h:591
const std::string & BatteryState_PowerSupplyStatus_Name(T enum_t_value)
Definition: battery_state.pb.h:98
std::unique_ptr< const BatteryState > ConstBatteryStateUniquePtr
Definition: battery_state.pb.h:589
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
constexpr BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MAX
Definition: battery_state.pb.h:93
IGNITION_MSGS_VISIBLE bool BatteryState_PowerSupplyStatus_IsValid(int value)
constexpr BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MIN
Definition: battery_state.pb.h:92
std::shared_ptr< BatteryState > BatteryStateSharedPtr
Definition: battery_state.pb.h:590
bool BatteryState_PowerSupplyStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BatteryState_PowerSupplyStatus *value)
Definition: battery_state.pb.h:105
IGNITION_MSGS_VISIBLE BatteryStateDefaultTypeInternal _BatteryState_default_instance_
BatteryState_PowerSupplyStatus
Definition: battery_state.pb.h:82
@ BatteryState_PowerSupplyStatus_NOT_CHARGING
Definition: battery_state.pb.h:86
@ BatteryState_PowerSupplyStatus_BatteryState_PowerSupplyStatus_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: battery_state.pb.h:89
@ BatteryState_PowerSupplyStatus_UNKNOWN
Definition: battery_state.pb.h:83
@ BatteryState_PowerSupplyStatus_FULL
Definition: battery_state.pb.h:87
@ BatteryState_PowerSupplyStatus_BatteryState_PowerSupplyStatus_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: battery_state.pb.h:88
@ BatteryState_PowerSupplyStatus_CHARGING
Definition: battery_state.pb.h:84
@ BatteryState_PowerSupplyStatus_DISCHARGING
Definition: battery_state.pb.h:85
Definition: actor.pb.h:52
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)