Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/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 PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_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/unknown_field_set.h>
34 #ifndef _MSC_VER
35 #pragma GCC system_header
36 #else
37 #pragma warning(push)
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
39 #endif
40 #ifdef __linux__
41 #include <sys/sysmacros.h>
42 #endif
43 #include <memory>
44 #include <ignition/msgs/Export.hh>
45 // @@protoc_insertion_point(includes)
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2fbattery_2eproto IGNITION_MSGS_VISIBLE
47 
49 // Internal implementation detail -- do not use these members.
50 struct IGNITION_MSGS_VISIBLE TableStruct {
51  static const ::google::protobuf::internal::ParseTableField entries[];
52  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
53  static const ::google::protobuf::internal::ParseTable schema[1];
54  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
55  static const ::google::protobuf::internal::SerializationTable serialization_table[];
56  static const ::google::protobuf::uint32 offsets[];
57 };
58 void IGNITION_MSGS_VISIBLE AddDescriptors();
59 } // namespace protobuf_ignition_2fmsgs_2fbattery_2eproto
60 namespace ignition {
61 namespace msgs {
62 class Battery;
63 class BatteryDefaultTypeInternal;
64 IGNITION_MSGS_VISIBLE extern BatteryDefaultTypeInternal _Battery_default_instance_;
65 } // namespace msgs
66 } // namespace ignition
67 namespace google {
68 namespace protobuf {
69 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Battery* Arena::CreateMaybeMessage<::ignition::msgs::Battery>(Arena*);
70 } // namespace protobuf
71 } // namespace google
72 namespace ignition {
73 namespace msgs {
74 
75 // ===================================================================
76 
77 class IGNITION_MSGS_VISIBLE Battery : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Battery) */ {
78  public:
79  Battery();
80  virtual ~Battery();
81 
82  Battery(const Battery& from);
83 
84  inline Battery& operator=(const Battery& from) {
85  CopyFrom(from);
86  return *this;
87  }
88  #if LANG_CXX11
89  Battery(Battery&& from) noexcept
90  : Battery() {
91  *this = ::std::move(from);
92  }
93 
94  inline Battery& operator=(Battery&& from) noexcept {
95  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96  if (this != &from) InternalSwap(&from);
97  } else {
98  CopyFrom(from);
99  }
100  return *this;
101  }
102  #endif
103  static const ::google::protobuf::Descriptor* descriptor();
104  static const Battery& default_instance();
105 
106  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107  static inline const Battery* internal_default_instance() {
108  return reinterpret_cast<const Battery*>(
110  }
111  static constexpr int kIndexInFileMessages =
112  0;
113 
114  void Swap(Battery* other);
115  friend void swap(Battery& a, Battery& b) {
116  a.Swap(&b);
117  }
118 
119  // implements Message ----------------------------------------------
120 
121  inline Battery* New() const final {
122  return CreateMaybeMessage<Battery>(NULL);
123  }
124 
125  Battery* New(::google::protobuf::Arena* arena) const final {
126  return CreateMaybeMessage<Battery>(arena);
127  }
128  void CopyFrom(const ::google::protobuf::Message& from) final;
129  void MergeFrom(const ::google::protobuf::Message& from) final;
130  void CopyFrom(const Battery& from);
131  void MergeFrom(const Battery& from);
132  void Clear() final;
133  bool IsInitialized() const final;
134 
135  size_t ByteSizeLong() const final;
136  bool MergePartialFromCodedStream(
137  ::google::protobuf::io::CodedInputStream* input) final;
138  void SerializeWithCachedSizes(
139  ::google::protobuf::io::CodedOutputStream* output) const final;
140  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
141  bool deterministic, ::google::protobuf::uint8* target) const final;
142  int GetCachedSize() const final { return _cached_size_.Get(); }
143 
144  private:
145  void SharedCtor();
146  void SharedDtor();
147  void SetCachedSize(int size) const final;
148  void InternalSwap(Battery* other);
149  private:
150  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
151  return NULL;
152  }
153  inline void* MaybeArenaPtr() const {
154  return NULL;
155  }
156  public:
157 
158  ::google::protobuf::Metadata GetMetadata() const final;
159 
160  // nested types ----------------------------------------------------
161 
162  // accessors -------------------------------------------------------
163 
164  // string name = 2;
165  void clear_name();
166  static const int kNameFieldNumber = 2;
167  const ::std::string& name() const;
168  void set_name(const ::std::string& value);
169  #if LANG_CXX11
170  void set_name(::std::string&& value);
171  #endif
172  void set_name(const char* value);
173  void set_name(const char* value, size_t size);
174  ::std::string* mutable_name();
175  ::std::string* release_name();
176  void set_allocated_name(::std::string* name);
177 
178  // .ignition.msgs.Header header = 1;
179  bool has_header() const;
180  void clear_header();
181  static const int kHeaderFieldNumber = 1;
182  private:
183  const ::ignition::msgs::Header& _internal_header() const;
184  public:
185  const ::ignition::msgs::Header& header() const;
186  ::ignition::msgs::Header* release_header();
187  ::ignition::msgs::Header* mutable_header();
188  void set_allocated_header(::ignition::msgs::Header* header);
189 
190  // double voltage = 3;
191  void clear_voltage();
192  static const int kVoltageFieldNumber = 3;
193  double voltage() const;
194  void set_voltage(double value);
195 
196  // @@protoc_insertion_point(class_scope:ignition.msgs.Battery)
197  private:
198 
199  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
200  ::google::protobuf::internal::ArenaStringPtr name_;
201  ::ignition::msgs::Header* header_;
202  double voltage_;
203  mutable ::google::protobuf::internal::CachedSize _cached_size_;
204  friend struct ::protobuf_ignition_2fmsgs_2fbattery_2eproto::TableStruct;
205 };
206 // ===================================================================
207 
208 
209 // ===================================================================
210 
211 #ifdef __GNUC__
212  #pragma GCC diagnostic push
213  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
214 #endif // __GNUC__
215 // Battery
216 
217 // .ignition.msgs.Header header = 1;
218 inline bool Battery::has_header() const {
219  return this != internal_default_instance() && header_ != NULL;
220 }
221 inline const ::ignition::msgs::Header& Battery::_internal_header() const {
222  return *header_;
223 }
224 inline const ::ignition::msgs::Header& Battery::header() const {
225  const ::ignition::msgs::Header* p = header_;
226  // @@protoc_insertion_point(field_get:ignition.msgs.Battery.header)
227  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
229 }
230 inline ::ignition::msgs::Header* Battery::release_header() {
231  // @@protoc_insertion_point(field_release:ignition.msgs.Battery.header)
232 
233  ::ignition::msgs::Header* temp = header_;
234  header_ = NULL;
235  return temp;
236 }
237 inline ::ignition::msgs::Header* Battery::mutable_header() {
238 
239  if (header_ == NULL) {
240  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
241  header_ = p;
242  }
243  // @@protoc_insertion_point(field_mutable:ignition.msgs.Battery.header)
244  return header_;
245 }
247  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
248  if (message_arena == NULL) {
249  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
250  }
251  if (header) {
252  ::google::protobuf::Arena* submessage_arena = NULL;
253  if (message_arena != submessage_arena) {
254  header = ::google::protobuf::internal::GetOwnedMessage(
255  message_arena, header, submessage_arena);
256  }
257 
258  } else {
259 
260  }
261  header_ = header;
262  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Battery.header)
263 }
264 
265 // string name = 2;
266 inline void Battery::clear_name() {
267  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
268 }
269 inline const ::std::string& Battery::name() const {
270  // @@protoc_insertion_point(field_get:ignition.msgs.Battery.name)
271  return name_.GetNoArena();
272 }
273 inline void Battery::set_name(const ::std::string& value) {
274 
275  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
276  // @@protoc_insertion_point(field_set:ignition.msgs.Battery.name)
277 }
278 #if LANG_CXX11
279 inline void Battery::set_name(::std::string&& value) {
280 
281  name_.SetNoArena(
282  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
283  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Battery.name)
284 }
285 #endif
286 inline void Battery::set_name(const char* value) {
287  GOOGLE_DCHECK(value != NULL);
288 
289  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
290  // @@protoc_insertion_point(field_set_char:ignition.msgs.Battery.name)
291 }
292 inline void Battery::set_name(const char* value, size_t size) {
293 
294  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
295  ::std::string(reinterpret_cast<const char*>(value), size));
296  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Battery.name)
297 }
298 inline ::std::string* Battery::mutable_name() {
299 
300  // @@protoc_insertion_point(field_mutable:ignition.msgs.Battery.name)
301  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
302 }
303 inline ::std::string* Battery::release_name() {
304  // @@protoc_insertion_point(field_release:ignition.msgs.Battery.name)
305 
306  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 }
309  if (name != NULL) {
310 
311  } else {
312 
313  }
314  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
315  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Battery.name)
316 }
317 
318 // double voltage = 3;
319 inline void Battery::clear_voltage() {
320  voltage_ = 0;
321 }
322 inline double Battery::voltage() const {
323  // @@protoc_insertion_point(field_get:ignition.msgs.Battery.voltage)
324  return voltage_;
325 }
326 inline void Battery::set_voltage(double value) {
327 
328  voltage_ = value;
329  // @@protoc_insertion_point(field_set:ignition.msgs.Battery.voltage)
330 }
331 
332 #ifdef __GNUC__
333  #pragma GCC diagnostic pop
334 #endif // __GNUC__
335 
340 // @@protoc_insertion_point(namespace_scope)
341 
342 } // namespace msgs
343 } // namespace ignition
344 
345 #ifdef _MSC_VER
346 #pragma warning(pop)
347 #endif
348 // @@protoc_insertion_point(global_scope)
349 
350 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2fbattery_2eproto
Battery & operator=(const Battery &from)
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:84
void set_name(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:273
STL class.
STL class.
IGNITION_MSGS_VISIBLE BatteryDefaultTypeInternal _Battery_default_instance_
double voltage() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:322
T move(T... args)
void clear_name()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:266
const ::std::string & name() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:269
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:237
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:230
void set_allocated_name(::std::string *name)
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:308
void clear_voltage()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:319
std::unique_ptr< const Battery > ConstBatteryUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:337
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:224
std::shared_ptr< Battery > BatterySharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:338
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:246
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:77
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:48
std::unique_ptr< Battery > BatteryUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:336
Battery * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:121
std::shared_ptr< const Battery > ConstBatterySharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:339
void set_voltage(double value)
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:326
friend void swap(Battery &a, Battery &b)
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:115
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:218
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
STL namespace.
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:50
void Swap(Battery *other)
Battery * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:125
void IGNITION_MSGS_VISIBLE AddDescriptors()
::std::string * release_name()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:303
STL class.
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
static const Battery * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:107
::std::string * mutable_name()
Definition: build/ignition-msgs5/include/ignition/msgs/battery.pb.h:298