Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/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 PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_5fstate_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_5fstate_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #ifndef _MSC_VER
36 #pragma GCC system_header
37 #else
38 #pragma warning(push)
39 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
40 #endif
41 #ifdef __linux__
42 #include <sys/sysmacros.h>
43 #endif
44 #include <memory>
45 #include <ignition/msgs/Export.hh>
46 // @@protoc_insertion_point(includes)
47 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fbattery_5fstate_2eproto IGNITION_MSGS_VISIBLE
48 
50 // Internal implementation detail -- do not use these members.
51 struct IGNITION_MSGS_VISIBLE TableStruct {
52  static const ::google::protobuf::internal::ParseTableField entries[];
53  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
54  static const ::google::protobuf::internal::ParseTable schema[1];
55  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
56  static const ::google::protobuf::internal::SerializationTable serialization_table[];
57  static const ::google::protobuf::uint32 offsets[];
58 };
59 void IGNITION_MSGS_VISIBLE AddDescriptors();
60 } // namespace protobuf_ignition_2fmsgs_2fbattery_5fstate_2eproto
61 namespace ignition {
62 namespace msgs {
63 class BatteryState;
64 class BatteryStateDefaultTypeInternal;
65 IGNITION_MSGS_VISIBLE extern BatteryStateDefaultTypeInternal _BatteryState_default_instance_;
66 } // namespace msgs
67 } // namespace ignition
68 namespace google {
69 namespace protobuf {
70 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::BatteryState* Arena::CreateMaybeMessage<::ignition::msgs::BatteryState>(Arena*);
71 } // namespace protobuf
72 } // namespace google
73 namespace ignition {
74 namespace msgs {
75 
84 };
85 IGNITION_MSGS_VISIBLE bool BatteryState_PowerSupplyStatus_IsValid(int value);
89 
90 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* BatteryState_PowerSupplyStatus_descriptor();
92  return ::google::protobuf::internal::NameOfEnum(
94 }
96  const ::std::string& name, BatteryState_PowerSupplyStatus* value) {
97  return ::google::protobuf::internal::ParseNamedEnum<BatteryState_PowerSupplyStatus>(
99 }
100 // ===================================================================
101 
102 class IGNITION_MSGS_VISIBLE BatteryState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.BatteryState) */ {
103  public:
104  BatteryState();
105  virtual ~BatteryState();
106 
107  BatteryState(const BatteryState& from);
108 
109  inline BatteryState& operator=(const BatteryState& from) {
110  CopyFrom(from);
111  return *this;
112  }
113  #if LANG_CXX11
114  BatteryState(BatteryState&& from) noexcept
115  : BatteryState() {
116  *this = ::std::move(from);
117  }
118 
119  inline BatteryState& operator=(BatteryState&& from) noexcept {
120  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
121  if (this != &from) InternalSwap(&from);
122  } else {
123  CopyFrom(from);
124  }
125  return *this;
126  }
127  #endif
128  static const ::google::protobuf::Descriptor* descriptor();
129  static const BatteryState& default_instance();
130 
131  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
132  static inline const BatteryState* internal_default_instance() {
133  return reinterpret_cast<const BatteryState*>(
135  }
136  static constexpr int kIndexInFileMessages =
137  0;
138 
139  void Swap(BatteryState* other);
140  friend void swap(BatteryState& a, BatteryState& b) {
141  a.Swap(&b);
142  }
143 
144  // implements Message ----------------------------------------------
145 
146  inline BatteryState* New() const final {
147  return CreateMaybeMessage<BatteryState>(NULL);
148  }
149 
150  BatteryState* New(::google::protobuf::Arena* arena) const final {
151  return CreateMaybeMessage<BatteryState>(arena);
152  }
153  void CopyFrom(const ::google::protobuf::Message& from) final;
154  void MergeFrom(const ::google::protobuf::Message& from) final;
155  void CopyFrom(const BatteryState& from);
156  void MergeFrom(const BatteryState& from);
157  void Clear() final;
158  bool IsInitialized() const final;
159 
160  size_t ByteSizeLong() const final;
161  bool MergePartialFromCodedStream(
162  ::google::protobuf::io::CodedInputStream* input) final;
163  void SerializeWithCachedSizes(
164  ::google::protobuf::io::CodedOutputStream* output) const final;
165  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
166  bool deterministic, ::google::protobuf::uint8* target) const final;
167  int GetCachedSize() const final { return _cached_size_.Get(); }
168 
169  private:
170  void SharedCtor();
171  void SharedDtor();
172  void SetCachedSize(int size) const final;
173  void InternalSwap(BatteryState* other);
174  private:
175  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
176  return NULL;
177  }
178  inline void* MaybeArenaPtr() const {
179  return NULL;
180  }
181  public:
182 
183  ::google::protobuf::Metadata GetMetadata() const final;
184 
185  // nested types ----------------------------------------------------
186 
188  static const PowerSupplyStatus UNKNOWN =
190  static const PowerSupplyStatus CHARGING =
192  static const PowerSupplyStatus DISCHARGING =
194  static const PowerSupplyStatus NOT_CHARGING =
196  static const PowerSupplyStatus FULL =
198  static inline bool PowerSupplyStatus_IsValid(int value) {
200  }
201  static const PowerSupplyStatus PowerSupplyStatus_MIN =
203  static const PowerSupplyStatus PowerSupplyStatus_MAX =
205  static const int PowerSupplyStatus_ARRAYSIZE =
207  static inline const ::google::protobuf::EnumDescriptor*
210  }
211  static inline const ::std::string& PowerSupplyStatus_Name(PowerSupplyStatus value) {
213  }
214  static inline bool PowerSupplyStatus_Parse(const ::std::string& name,
215  PowerSupplyStatus* value) {
216  return BatteryState_PowerSupplyStatus_Parse(name, value);
217  }
218 
219  // accessors -------------------------------------------------------
220 
221  // .ignition.msgs.Header header = 1;
222  bool has_header() const;
223  void clear_header();
224  static const int kHeaderFieldNumber = 1;
225  private:
226  const ::ignition::msgs::Header& _internal_header() const;
227  public:
228  const ::ignition::msgs::Header& header() const;
229  ::ignition::msgs::Header* release_header();
230  ::ignition::msgs::Header* mutable_header();
231  void set_allocated_header(::ignition::msgs::Header* header);
232 
233  // double voltage = 2;
234  void clear_voltage();
235  static const int kVoltageFieldNumber = 2;
236  double voltage() const;
237  void set_voltage(double value);
238 
239  // double current = 3;
240  void clear_current();
241  static const int kCurrentFieldNumber = 3;
242  double current() const;
243  void set_current(double value);
244 
245  // double charge = 4;
246  void clear_charge();
247  static const int kChargeFieldNumber = 4;
248  double charge() const;
249  void set_charge(double value);
250 
251  // double capacity = 5;
252  void clear_capacity();
253  static const int kCapacityFieldNumber = 5;
254  double capacity() const;
255  void set_capacity(double value);
256 
257  // double percentage = 6;
258  void clear_percentage();
259  static const int kPercentageFieldNumber = 6;
260  double percentage() const;
261  void set_percentage(double value);
262 
263  // .ignition.msgs.BatteryState.PowerSupplyStatus power_supply_status = 7;
264  void clear_power_supply_status();
265  static const int kPowerSupplyStatusFieldNumber = 7;
266  ::ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status() const;
267  void set_power_supply_status(::ignition::msgs::BatteryState_PowerSupplyStatus value);
268 
269  // @@protoc_insertion_point(class_scope:ignition.msgs.BatteryState)
270  private:
271 
272  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
273  ::ignition::msgs::Header* header_;
274  double voltage_;
275  double current_;
276  double charge_;
277  double capacity_;
278  double percentage_;
279  int power_supply_status_;
280  mutable ::google::protobuf::internal::CachedSize _cached_size_;
281  friend struct ::protobuf_ignition_2fmsgs_2fbattery_5fstate_2eproto::TableStruct;
282 };
283 // ===================================================================
284 
285 
286 // ===================================================================
287 
288 #ifdef __GNUC__
289  #pragma GCC diagnostic push
290  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
291 #endif // __GNUC__
292 // BatteryState
293 
294 // .ignition.msgs.Header header = 1;
295 inline bool BatteryState::has_header() const {
296  return this != internal_default_instance() && header_ != NULL;
297 }
298 inline const ::ignition::msgs::Header& BatteryState::_internal_header() const {
299  return *header_;
300 }
301 inline const ::ignition::msgs::Header& BatteryState::header() const {
302  const ::ignition::msgs::Header* p = header_;
303  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.header)
304  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
306 }
307 inline ::ignition::msgs::Header* BatteryState::release_header() {
308  // @@protoc_insertion_point(field_release:ignition.msgs.BatteryState.header)
309 
310  ::ignition::msgs::Header* temp = header_;
311  header_ = NULL;
312  return temp;
313 }
314 inline ::ignition::msgs::Header* BatteryState::mutable_header() {
315 
316  if (header_ == NULL) {
317  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
318  header_ = p;
319  }
320  // @@protoc_insertion_point(field_mutable:ignition.msgs.BatteryState.header)
321  return header_;
322 }
324  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
325  if (message_arena == NULL) {
326  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
327  }
328  if (header) {
329  ::google::protobuf::Arena* submessage_arena = NULL;
330  if (message_arena != submessage_arena) {
331  header = ::google::protobuf::internal::GetOwnedMessage(
332  message_arena, header, submessage_arena);
333  }
334 
335  } else {
336 
337  }
338  header_ = header;
339  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.BatteryState.header)
340 }
341 
342 // double voltage = 2;
344  voltage_ = 0;
345 }
346 inline double BatteryState::voltage() const {
347  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.voltage)
348  return voltage_;
349 }
350 inline void BatteryState::set_voltage(double value) {
351 
352  voltage_ = value;
353  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.voltage)
354 }
355 
356 // double current = 3;
358  current_ = 0;
359 }
360 inline double BatteryState::current() const {
361  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.current)
362  return current_;
363 }
364 inline void BatteryState::set_current(double value) {
365 
366  current_ = value;
367  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.current)
368 }
369 
370 // double charge = 4;
372  charge_ = 0;
373 }
374 inline double BatteryState::charge() const {
375  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.charge)
376  return charge_;
377 }
378 inline void BatteryState::set_charge(double value) {
379 
380  charge_ = value;
381  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.charge)
382 }
383 
384 // double capacity = 5;
386  capacity_ = 0;
387 }
388 inline double BatteryState::capacity() const {
389  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.capacity)
390  return capacity_;
391 }
392 inline void BatteryState::set_capacity(double value) {
393 
394  capacity_ = value;
395  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.capacity)
396 }
397 
398 // double percentage = 6;
400  percentage_ = 0;
401 }
402 inline double BatteryState::percentage() const {
403  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.percentage)
404  return percentage_;
405 }
406 inline void BatteryState::set_percentage(double value) {
407 
408  percentage_ = value;
409  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.percentage)
410 }
411 
412 // .ignition.msgs.BatteryState.PowerSupplyStatus power_supply_status = 7;
414  power_supply_status_ = 0;
415 }
417  // @@protoc_insertion_point(field_get:ignition.msgs.BatteryState.power_supply_status)
418  return static_cast< ::ignition::msgs::BatteryState_PowerSupplyStatus >(power_supply_status_);
419 }
421 
422  power_supply_status_ = value;
423  // @@protoc_insertion_point(field_set:ignition.msgs.BatteryState.power_supply_status)
424 }
425 
426 #ifdef __GNUC__
427  #pragma GCC diagnostic pop
428 #endif // __GNUC__
429 
434 // @@protoc_insertion_point(namespace_scope)
435 
436 } // namespace msgs
437 } // namespace ignition
438 
439 namespace google {
440 namespace protobuf {
441 
442 template <> struct is_proto_enum< ::ignition::msgs::BatteryState_PowerSupplyStatus> : ::std::true_type {};
443 template <>
444 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::BatteryState_PowerSupplyStatus>() {
446 }
447 
448 } // namespace protobuf
449 } // namespace google
450 
451 #ifdef _MSC_VER
452 #pragma warning(pop)
453 #endif
454 // @@protoc_insertion_point(global_scope)
455 
456 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_5fstate_2eproto
const IGNITION_MSGS_VISIBLE ::google::protobuf::EnumDescriptor * BatteryState_PowerSupplyStatus_descriptor()
IGNITION_MSGS_VISIBLE bool BatteryState_PowerSupplyStatus_IsValid(int value)
void Swap(BatteryState *other)
static bool PowerSupplyStatus_Parse(const ::std::string &name, PowerSupplyStatus *value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:214
STL class.
void clear_voltage()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:343
void set_current(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:364
void set_charge(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:378
std::unique_ptr< const BatteryState > ConstBatteryStateUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:431
double current() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:360
const ::std::string & BatteryState_PowerSupplyStatus_Name(BatteryState_PowerSupplyStatus value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:91
friend void swap(BatteryState &a, BatteryState &b)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:140
void set_capacity(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:392
double percentage() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:402
const int BatteryState_PowerSupplyStatus_PowerSupplyStatus_ARRAYSIZE
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:88
void clear_power_supply_status()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:413
void set_power_supply_status(::ignition::msgs::BatteryState_PowerSupplyStatus value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:420
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:301
@ BatteryState_PowerSupplyStatus_BatteryState_PowerSupplyStatus_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:83
::ignition::msgs::BatteryState_PowerSupplyStatus power_supply_status() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:416
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:295
BatteryState & operator=(const BatteryState &from)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:109
void set_percentage(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:406
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:49
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:314
void set_voltage(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:350
void clear_charge()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:371
const BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MIN
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:86
@ BatteryState_PowerSupplyStatus_NOT_CHARGING
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:80
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:102
BatteryState * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:146
void clear_percentage()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:399
BatteryState_PowerSupplyStatus
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:76
std::shared_ptr< const BatteryState > ConstBatteryStateSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:433
static const ::std::string & PowerSupplyStatus_Name(PowerSupplyStatus value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:211
void clear_capacity()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:385
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
const BatteryState_PowerSupplyStatus BatteryState_PowerSupplyStatus_PowerSupplyStatus_MAX
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:87
void clear_current()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:357
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:51
std::shared_ptr< BatteryState > BatteryStateSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:432
@ BatteryState_PowerSupplyStatus_DISCHARGING
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:79
double charge() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:374
STL class.
@ BatteryState_PowerSupplyStatus_CHARGING
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:78
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:307
static const BatteryState * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:132
static const ::google::protobuf::EnumDescriptor * PowerSupplyStatus_descriptor()
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:208
double voltage() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:346
@ BatteryState_PowerSupplyStatus_FULL
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:81
@ BatteryState_PowerSupplyStatus_BatteryState_PowerSupplyStatus_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:82
double capacity() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:388
@ BatteryState_PowerSupplyStatus_UNKNOWN
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:77
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
std::unique_ptr< BatteryState > BatteryStateUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:430
IGNITION_MSGS_VISIBLE BatteryStateDefaultTypeInternal _BatteryState_default_instance_
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:323
BatteryState * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:150
bool BatteryState_PowerSupplyStatus_Parse(const ::std::string &name, BatteryState_PowerSupplyStatus *value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery_state.pb.h:95