Gazebo Msgs

API Reference

8.7.1
build/ignition-msgs8/include/ignition/msgs/battery.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/battery.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_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/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_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.
57 struct IGNITION_MSGS_VISIBLE TableStruct_ignition_2fmsgs_2fbattery_2eproto {
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField 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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
67 };
68 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fbattery_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Battery;
72 class BatteryDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern BatteryDefaultTypeInternal _Battery_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Battery* Arena::CreateMaybeMessage<::ignition::msgs::Battery>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE Battery PROTOBUF_FINAL :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Battery) */ {
86  public:
87  inline Battery() : Battery(nullptr) {};
88  virtual ~Battery();
89 
90  Battery(const Battery& from);
91  Battery(Battery&& from) noexcept
92  : Battery() {
93  *this = ::std::move(from);
94  }
95 
96  inline Battery& operator=(const Battery& from) {
97  CopyFrom(from);
98  return *this;
99  }
100  inline Battery& operator=(Battery&& from) noexcept {
101  if (GetArena() == from.GetArena()) {
102  if (this != &from) InternalSwap(&from);
103  } else {
104  CopyFrom(from);
105  }
106  return *this;
107  }
108 
109  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
110  return GetDescriptor();
111  }
112  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
113  return GetMetadataStatic().descriptor;
114  }
115  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
116  return GetMetadataStatic().reflection;
117  }
118  static const Battery& default_instance();
119 
120  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
121  static inline const Battery* internal_default_instance() {
122  return reinterpret_cast<const Battery*>(
124  }
125  static constexpr int kIndexInFileMessages =
126  0;
127 
128  friend void swap(Battery& a, Battery& b) {
129  a.Swap(&b);
130  }
131  inline void Swap(Battery* other) {
132  if (other == this) return;
133  if (GetArena() == other->GetArena()) {
134  InternalSwap(other);
135  } else {
136  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
137  }
138  }
139  void UnsafeArenaSwap(Battery* other) {
140  if (other == this) return;
141  GOOGLE_DCHECK(GetArena() == other->GetArena());
142  InternalSwap(other);
143  }
144 
145  // implements Message ----------------------------------------------
146 
147  inline Battery* New() const final {
148  return CreateMaybeMessage<Battery>(nullptr);
149  }
150 
151  Battery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
152  return CreateMaybeMessage<Battery>(arena);
153  }
154  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
155  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
156  void CopyFrom(const Battery& from);
157  void MergeFrom(const Battery& from);
158  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
159  bool IsInitialized() const final;
160 
161  size_t ByteSizeLong() const final;
162  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
163  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
164  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165  int GetCachedSize() const final { return _cached_size_.Get(); }
166 
167  private:
168  inline void SharedCtor();
169  inline void SharedDtor();
170  void SetCachedSize(int size) const final;
171  void InternalSwap(Battery* other);
172  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
174  return "ignition.msgs.Battery";
175  }
176  protected:
177  explicit Battery(::PROTOBUF_NAMESPACE_ID::Arena* arena);
178  private:
179  static void ArenaDtor(void* object);
180  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181  public:
182 
183  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
184  private:
185  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
186  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fbattery_2eproto);
187  return ::descriptor_table_ignition_2fmsgs_2fbattery_2eproto.file_level_metadata[kIndexInFileMessages];
188  }
189 
190  public:
191 
192  // nested types ----------------------------------------------------
193 
194  // accessors -------------------------------------------------------
195 
196  enum : int {
197  kNameFieldNumber = 2,
198  kHeaderFieldNumber = 1,
199  kVoltageFieldNumber = 3,
200  };
201  // string name = 2;
202  void clear_name();
203  const std::string& name() const;
204  void set_name(const std::string& value);
205  void set_name(std::string&& value);
206  void set_name(const char* value);
207  void set_name(const char* value, size_t size);
211  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
212  " string fields are deprecated and will be removed in a"
213  " future release.")
214  std::string* unsafe_arena_release_name();
215  GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
216  " string fields are deprecated and will be removed in a"
217  " future release.")
218  void unsafe_arena_set_allocated_name(
219  std::string* name);
220  private:
221  const std::string& _internal_name() const;
222  void _internal_set_name(const std::string& value);
223  std::string* _internal_mutable_name();
224  public:
225 
226  // .ignition.msgs.Header header = 1;
227  bool has_header() const;
228  private:
229  bool _internal_has_header() const;
230  public:
231  void clear_header();
232  const ::ignition::msgs::Header& header() const;
233  ::ignition::msgs::Header* release_header();
234  ::ignition::msgs::Header* mutable_header();
235  void set_allocated_header(::ignition::msgs::Header* header);
236  private:
237  const ::ignition::msgs::Header& _internal_header() const;
238  ::ignition::msgs::Header* _internal_mutable_header();
239  public:
240  void unsafe_arena_set_allocated_header(
241  ::ignition::msgs::Header* header);
242  ::ignition::msgs::Header* unsafe_arena_release_header();
243 
244  // double voltage = 3;
245  void clear_voltage();
246  double voltage() const;
247  void set_voltage(double value);
248  private:
249  double _internal_voltage() const;
250  void _internal_set_voltage(double value);
251  public:
252 
253  // @@protoc_insertion_point(class_scope:ignition.msgs.Battery)
254  private:
255  class _Internal;
256 
257  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
258  typedef void InternalArenaConstructable_;
259  typedef void DestructorSkippable_;
260  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
261  ::ignition::msgs::Header* header_;
262  double voltage_;
263  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
265 };
266 // ===================================================================
267 
268 
269 // ===================================================================
270 
271 #ifdef __GNUC__
272  #pragma GCC diagnostic push
273  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
274 #endif // __GNUC__
275 // Battery
276 
277 // .ignition.msgs.Header header = 1;
278 inline bool Battery::_internal_has_header() const {
279  return this != internal_default_instance() && header_ != nullptr;
280 }
281 inline bool Battery::has_header() const {
282  return _internal_has_header();
283 }
284 inline const ::ignition::msgs::Header& Battery::_internal_header() const {
285  const ::ignition::msgs::Header* p = header_;
286  return p != nullptr ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
288 }
289 inline const ::ignition::msgs::Header& Battery::header() const {
290  // @@protoc_insertion_point(field_get:ignition.msgs.Battery.header)
291  return _internal_header();
292 }
293 inline void Battery::unsafe_arena_set_allocated_header(
294  ::ignition::msgs::Header* header) {
295  if (GetArena() == nullptr) {
296  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
297  }
298  header_ = header;
299  if (header) {
300 
301  } else {
302 
303  }
304  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Battery.header)
305 }
306 inline ::ignition::msgs::Header* Battery::release_header() {
307  auto temp = unsafe_arena_release_header();
308  if (GetArena() != nullptr) {
309  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
310  }
311  return temp;
312 }
313 inline ::ignition::msgs::Header* Battery::unsafe_arena_release_header() {
314  // @@protoc_insertion_point(field_release:ignition.msgs.Battery.header)
315 
316  ::ignition::msgs::Header* temp = header_;
317  header_ = nullptr;
318  return temp;
319 }
320 inline ::ignition::msgs::Header* Battery::_internal_mutable_header() {
321 
322  if (header_ == nullptr) {
323  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
324  header_ = p;
325  }
326  return header_;
327 }
328 inline ::ignition::msgs::Header* Battery::mutable_header() {
329  // @@protoc_insertion_point(field_mutable:ignition.msgs.Battery.header)
330  return _internal_mutable_header();
331 }
332 inline void Battery::set_allocated_header(::ignition::msgs::Header* header) {
333  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
334  if (message_arena == nullptr) {
335  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
336  }
337  if (header) {
338  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
339  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
340  if (message_arena != submessage_arena) {
341  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
342  message_arena, header, submessage_arena);
343  }
344 
345  } else {
346 
347  }
348  header_ = header;
349  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Battery.header)
350 }
351 
352 // string name = 2;
353 inline void Battery::clear_name() {
354  name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
355 }
356 inline const std::string& Battery::name() const {
357  // @@protoc_insertion_point(field_get:ignition.msgs.Battery.name)
358  return _internal_name();
359 }
360 inline void Battery::set_name(const std::string& value) {
361  _internal_set_name(value);
362  // @@protoc_insertion_point(field_set:ignition.msgs.Battery.name)
363 }
364 inline std::string* Battery::mutable_name() {
365  // @@protoc_insertion_point(field_mutable:ignition.msgs.Battery.name)
366  return _internal_mutable_name();
367 }
368 inline const std::string& Battery::_internal_name() const {
369  return name_.Get();
370 }
371 inline void Battery::_internal_set_name(const std::string& value) {
372 
373  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
374 }
375 inline void Battery::set_name(std::string&& value) {
376 
377  name_.Set(
378  &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
379  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Battery.name)
380 }
381 inline void Battery::set_name(const char* value) {
382  GOOGLE_DCHECK(value != nullptr);
383 
384  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
385  GetArena());
386  // @@protoc_insertion_point(field_set_char:ignition.msgs.Battery.name)
387 }
388 inline void Battery::set_name(const char* value,
389  size_t size) {
390 
391  name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
392  reinterpret_cast<const char*>(value), size), GetArena());
393  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Battery.name)
394 }
395 inline std::string* Battery::_internal_mutable_name() {
396 
397  return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
398 }
399 inline std::string* Battery::release_name() {
400  // @@protoc_insertion_point(field_release:ignition.msgs.Battery.name)
401  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
402 }
403 inline void Battery::set_allocated_name(std::string* name) {
404  if (name != nullptr) {
405 
406  } else {
407 
408  }
409  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
410  GetArena());
411  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Battery.name)
412 }
413 inline std::string* Battery::unsafe_arena_release_name() {
414  // @@protoc_insertion_point(field_unsafe_arena_release:ignition.msgs.Battery.name)
415  GOOGLE_DCHECK(GetArena() != nullptr);
416 
417  return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
418  GetArena());
419 }
420 inline void Battery::unsafe_arena_set_allocated_name(
421  std::string* name) {
422  GOOGLE_DCHECK(GetArena() != nullptr);
423  if (name != nullptr) {
424 
425  } else {
426 
427  }
428  name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
429  name, GetArena());
430  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Battery.name)
431 }
432 
433 // double voltage = 3;
434 inline void Battery::clear_voltage() {
435  voltage_ = 0;
436 }
437 inline double Battery::_internal_voltage() const {
438  return voltage_;
439 }
440 inline double Battery::voltage() const {
441  // @@protoc_insertion_point(field_get:ignition.msgs.Battery.voltage)
442  return _internal_voltage();
443 }
444 inline void Battery::_internal_set_voltage(double value) {
445 
446  voltage_ = value;
447 }
448 inline void Battery::set_voltage(double value) {
449  _internal_set_voltage(value);
450  // @@protoc_insertion_point(field_set:ignition.msgs.Battery.voltage)
451 }
452 
453 #ifdef __GNUC__
454  #pragma GCC diagnostic pop
455 #endif // __GNUC__
456 
461 // @@protoc_insertion_point(namespace_scope)
462 
463 } // namespace msgs
464 } // namespace ignition
465 
466 #ifdef _MSC_VER
467 #pragma warning(pop)
468 #endif
469 // @@protoc_insertion_point(global_scope)
470 
471 #include <google/protobuf/port_undef.inc>
472 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_2eproto
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fbattery_2eproto
Battery * New() const final
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:147
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:115
static const Battery * internal_default_instance()
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:121
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_name(const char *value, size_t size)
Battery()
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:87
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:109
void set_name(const std::string &value)
Battery & operator=(const Battery &from)
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:96
friend void swap(Battery &a, Battery &b)
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:128
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const Battery &from)
static const Battery & default_instance()
void Swap(Battery *other)
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:131
Battery * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:151
Battery(Battery &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:91
Battery & operator=(Battery &&from) noexcept
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:100
Battery(const Battery &from)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:112
Battery(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void UnsafeArenaSwap(Battery *other)
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:139
const std::string & name() const
void set_name(const char *value)
void set_name(std::string &&value)
void set_allocated_name(std::string *name)
void CopyFrom(const Battery &from)
T move(T... args)
std::unique_ptr< const Battery > ConstBatteryUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:458
std::shared_ptr< Battery > BatterySharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:459
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
std::unique_ptr< Battery > BatteryUniquePtr
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:457
IGNITION_MSGS_VISIBLE BatteryDefaultTypeInternal _Battery_default_instance_
std::shared_ptr< const Battery > ConstBatterySharedPtr
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:460
Definition: build/ignition-msgs8/include/ignition/msgs/actor.pb.h:53
STL namespace.
Definition: build/ignition-msgs8/include/ignition/msgs/battery.pb.h:57
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)