Gazebo Msgs

API Reference

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