Gazebo Msgs

API Reference

9.5.0
sim_event.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/sim_event.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsim_5fevent_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsim_5fevent_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>
33 #include "gz/msgs/world_stats.pb.h"
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsim_5fevent_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[1];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fsim_5fevent_2eproto
50 namespace gz {
51 namespace msgs {
52 class SimEvent;
53 class SimEventDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern SimEventDefaultTypeInternal _SimEvent_default_instance_;
55 } // namespace msgs
56 } // namespace gz
57 namespace google {
58 namespace protobuf {
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::SimEvent* Arena::CreateMaybeMessage<::gz::msgs::SimEvent>(Arena*);
60 } // namespace protobuf
61 } // namespace google
62 namespace gz {
63 namespace msgs {
64 
65 // ===================================================================
66 
67 class GZ_MSGS_VISIBLE SimEvent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.SimEvent) */ {
68  public:
69  SimEvent();
70  virtual ~SimEvent();
71 
72  SimEvent(const SimEvent& from);
73 
74  inline SimEvent& operator=(const SimEvent& from) {
75  CopyFrom(from);
76  return *this;
77  }
78  #if LANG_CXX11
79  SimEvent(SimEvent&& from) noexcept
80  : SimEvent() {
81  *this = ::std::move(from);
82  }
83 
84  inline SimEvent& operator=(SimEvent&& from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from) InternalSwap(&from);
87  } else {
88  CopyFrom(from);
89  }
90  return *this;
91  }
92  #endif
93  static const ::google::protobuf::Descriptor* descriptor();
94  static const SimEvent& default_instance();
95 
96  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
97  static inline const SimEvent* internal_default_instance() {
98  return reinterpret_cast<const SimEvent*>(
100  }
101  static constexpr int kIndexInFileMessages =
102  0;
103 
104  void Swap(SimEvent* other);
105  friend void swap(SimEvent& a, SimEvent& b) {
106  a.Swap(&b);
107  }
108 
109  // implements Message ----------------------------------------------
110 
111  inline SimEvent* New() const final {
112  return CreateMaybeMessage<SimEvent>(NULL);
113  }
114 
115  SimEvent* New(::google::protobuf::Arena* arena) const final {
116  return CreateMaybeMessage<SimEvent>(arena);
117  }
118  void CopyFrom(const ::google::protobuf::Message& from) final;
119  void MergeFrom(const ::google::protobuf::Message& from) final;
120  void CopyFrom(const SimEvent& from);
121  void MergeFrom(const SimEvent& from);
122  void Clear() final;
123  bool IsInitialized() const final;
124 
125  size_t ByteSizeLong() const final;
126  bool MergePartialFromCodedStream(
127  ::google::protobuf::io::CodedInputStream* input) final;
128  void SerializeWithCachedSizes(
129  ::google::protobuf::io::CodedOutputStream* output) const final;
130  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131  bool deterministic, ::google::protobuf::uint8* target) const final;
132  int GetCachedSize() const final { return _cached_size_.Get(); }
133 
134  private:
135  void SharedCtor();
136  void SharedDtor();
137  void SetCachedSize(int size) const final;
138  void InternalSwap(SimEvent* other);
139  private:
140  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void* MaybeArenaPtr() const {
144  return NULL;
145  }
146  public:
147 
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // string type = 3;
155  void clear_type();
156  static const int kTypeFieldNumber = 3;
157  const ::std::string& type() const;
158  void set_type(const ::std::string& value);
159  #if LANG_CXX11
160  void set_type(::std::string&& value);
161  #endif
162  void set_type(const char* value);
163  void set_type(const char* value, size_t size);
164  ::std::string* mutable_type();
165  ::std::string* release_type();
166  void set_allocated_type(::std::string* type);
167 
168  // string name = 4;
169  void clear_name();
170  static const int kNameFieldNumber = 4;
171  const ::std::string& name() const;
172  void set_name(const ::std::string& value);
173  #if LANG_CXX11
174  void set_name(::std::string&& value);
175  #endif
176  void set_name(const char* value);
177  void set_name(const char* value, size_t size);
178  ::std::string* mutable_name();
179  ::std::string* release_name();
180  void set_allocated_name(::std::string* name);
181 
182  // string data = 6;
183  void clear_data();
184  static const int kDataFieldNumber = 6;
185  const ::std::string& data() const;
186  void set_data(const ::std::string& value);
187  #if LANG_CXX11
188  void set_data(::std::string&& value);
189  #endif
190  void set_data(const char* value);
191  void set_data(const char* value, size_t size);
192  ::std::string* mutable_data();
193  ::std::string* release_data();
194  void set_allocated_data(::std::string* data);
195 
196  // .gz.msgs.Header header = 1;
197  bool has_header() const;
198  void clear_header();
199  static const int kHeaderFieldNumber = 1;
200  private:
201  const ::gz::msgs::Header& _internal_header() const;
202  public:
203  const ::gz::msgs::Header& header() const;
204  ::gz::msgs::Header* release_header();
205  ::gz::msgs::Header* mutable_header();
206  void set_allocated_header(::gz::msgs::Header* header);
207 
208  // .gz.msgs.WorldStatistics world_statistics = 5;
209  bool has_world_statistics() const;
210  void clear_world_statistics();
211  static const int kWorldStatisticsFieldNumber = 5;
212  private:
213  const ::gz::msgs::WorldStatistics& _internal_world_statistics() const;
214  public:
215  const ::gz::msgs::WorldStatistics& world_statistics() const;
216  ::gz::msgs::WorldStatistics* release_world_statistics();
217  ::gz::msgs::WorldStatistics* mutable_world_statistics();
218  void set_allocated_world_statistics(::gz::msgs::WorldStatistics* world_statistics);
219 
220  // uint32 id = 2;
221  void clear_id();
222  static const int kIdFieldNumber = 2;
223  ::google::protobuf::uint32 id() const;
224  void set_id(::google::protobuf::uint32 value);
225 
226  // @@protoc_insertion_point(class_scope:gz.msgs.SimEvent)
227  private:
228 
229  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
230  ::google::protobuf::internal::ArenaStringPtr type_;
231  ::google::protobuf::internal::ArenaStringPtr name_;
232  ::google::protobuf::internal::ArenaStringPtr data_;
233  ::gz::msgs::Header* header_;
234  ::gz::msgs::WorldStatistics* world_statistics_;
235  ::google::protobuf::uint32 id_;
236  mutable ::google::protobuf::internal::CachedSize _cached_size_;
237  friend struct ::protobuf_gz_2fmsgs_2fsim_5fevent_2eproto::TableStruct;
238 };
239 // ===================================================================
240 
241 
242 // ===================================================================
243 
244 #ifdef __GNUC__
245  #pragma GCC diagnostic push
246  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
247 #endif // __GNUC__
248 // SimEvent
249 
250 // .gz.msgs.Header header = 1;
251 inline bool SimEvent::has_header() const {
252  return this != internal_default_instance() && header_ != NULL;
253 }
254 inline const ::gz::msgs::Header& SimEvent::_internal_header() const {
255  return *header_;
256 }
257 inline const ::gz::msgs::Header& SimEvent::header() const {
258  const ::gz::msgs::Header* p = header_;
259  // @@protoc_insertion_point(field_get:gz.msgs.SimEvent.header)
260  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
262 }
263 inline ::gz::msgs::Header* SimEvent::release_header() {
264  // @@protoc_insertion_point(field_release:gz.msgs.SimEvent.header)
265 
266  ::gz::msgs::Header* temp = header_;
267  header_ = NULL;
268  return temp;
269 }
270 inline ::gz::msgs::Header* SimEvent::mutable_header() {
271 
272  if (header_ == NULL) {
273  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
274  header_ = p;
275  }
276  // @@protoc_insertion_point(field_mutable:gz.msgs.SimEvent.header)
277  return header_;
278 }
280  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
281  if (message_arena == NULL) {
282  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
283  }
284  if (header) {
285  ::google::protobuf::Arena* submessage_arena = NULL;
286  if (message_arena != submessage_arena) {
287  header = ::google::protobuf::internal::GetOwnedMessage(
288  message_arena, header, submessage_arena);
289  }
290 
291  } else {
292 
293  }
294  header_ = header;
295  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SimEvent.header)
296 }
297 
298 // uint32 id = 2;
299 inline void SimEvent::clear_id() {
300  id_ = 0u;
301 }
302 inline ::google::protobuf::uint32 SimEvent::id() const {
303  // @@protoc_insertion_point(field_get:gz.msgs.SimEvent.id)
304  return id_;
305 }
306 inline void SimEvent::set_id(::google::protobuf::uint32 value) {
307 
308  id_ = value;
309  // @@protoc_insertion_point(field_set:gz.msgs.SimEvent.id)
310 }
311 
312 // string type = 3;
313 inline void SimEvent::clear_type() {
314  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
315 }
316 inline const ::std::string& SimEvent::type() const {
317  // @@protoc_insertion_point(field_get:gz.msgs.SimEvent.type)
318  return type_.GetNoArena();
319 }
320 inline void SimEvent::set_type(const ::std::string& value) {
321 
322  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
323  // @@protoc_insertion_point(field_set:gz.msgs.SimEvent.type)
324 }
325 #if LANG_CXX11
326 inline void SimEvent::set_type(::std::string&& value) {
327 
328  type_.SetNoArena(
329  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
330  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.SimEvent.type)
331 }
332 #endif
333 inline void SimEvent::set_type(const char* value) {
334  GOOGLE_DCHECK(value != NULL);
335 
336  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
337  // @@protoc_insertion_point(field_set_char:gz.msgs.SimEvent.type)
338 }
339 inline void SimEvent::set_type(const char* value, size_t size) {
340 
341  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
342  ::std::string(reinterpret_cast<const char*>(value), size));
343  // @@protoc_insertion_point(field_set_pointer:gz.msgs.SimEvent.type)
344 }
345 inline ::std::string* SimEvent::mutable_type() {
346 
347  // @@protoc_insertion_point(field_mutable:gz.msgs.SimEvent.type)
348  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
349 }
350 inline ::std::string* SimEvent::release_type() {
351  // @@protoc_insertion_point(field_release:gz.msgs.SimEvent.type)
352 
353  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
354 }
356  if (type != NULL) {
357 
358  } else {
359 
360  }
361  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
362  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SimEvent.type)
363 }
364 
365 // string name = 4;
366 inline void SimEvent::clear_name() {
367  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
368 }
369 inline const ::std::string& SimEvent::name() const {
370  // @@protoc_insertion_point(field_get:gz.msgs.SimEvent.name)
371  return name_.GetNoArena();
372 }
373 inline void SimEvent::set_name(const ::std::string& value) {
374 
375  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
376  // @@protoc_insertion_point(field_set:gz.msgs.SimEvent.name)
377 }
378 #if LANG_CXX11
379 inline void SimEvent::set_name(::std::string&& value) {
380 
381  name_.SetNoArena(
382  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
383  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.SimEvent.name)
384 }
385 #endif
386 inline void SimEvent::set_name(const char* value) {
387  GOOGLE_DCHECK(value != NULL);
388 
389  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
390  // @@protoc_insertion_point(field_set_char:gz.msgs.SimEvent.name)
391 }
392 inline void SimEvent::set_name(const char* value, size_t size) {
393 
394  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
395  ::std::string(reinterpret_cast<const char*>(value), size));
396  // @@protoc_insertion_point(field_set_pointer:gz.msgs.SimEvent.name)
397 }
398 inline ::std::string* SimEvent::mutable_name() {
399 
400  // @@protoc_insertion_point(field_mutable:gz.msgs.SimEvent.name)
401  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
402 }
403 inline ::std::string* SimEvent::release_name() {
404  // @@protoc_insertion_point(field_release:gz.msgs.SimEvent.name)
405 
406  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 }
409  if (name != NULL) {
410 
411  } else {
412 
413  }
414  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
415  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SimEvent.name)
416 }
417 
418 // .gz.msgs.WorldStatistics world_statistics = 5;
419 inline bool SimEvent::has_world_statistics() const {
420  return this != internal_default_instance() && world_statistics_ != NULL;
421 }
422 inline const ::gz::msgs::WorldStatistics& SimEvent::_internal_world_statistics() const {
423  return *world_statistics_;
424 }
425 inline const ::gz::msgs::WorldStatistics& SimEvent::world_statistics() const {
426  const ::gz::msgs::WorldStatistics* p = world_statistics_;
427  // @@protoc_insertion_point(field_get:gz.msgs.SimEvent.world_statistics)
428  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::WorldStatistics*>(
430 }
431 inline ::gz::msgs::WorldStatistics* SimEvent::release_world_statistics() {
432  // @@protoc_insertion_point(field_release:gz.msgs.SimEvent.world_statistics)
433 
434  ::gz::msgs::WorldStatistics* temp = world_statistics_;
435  world_statistics_ = NULL;
436  return temp;
437 }
438 inline ::gz::msgs::WorldStatistics* SimEvent::mutable_world_statistics() {
439 
440  if (world_statistics_ == NULL) {
441  auto* p = CreateMaybeMessage<::gz::msgs::WorldStatistics>(GetArenaNoVirtual());
442  world_statistics_ = p;
443  }
444  // @@protoc_insertion_point(field_mutable:gz.msgs.SimEvent.world_statistics)
445  return world_statistics_;
446 }
448  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
449  if (message_arena == NULL) {
450  delete reinterpret_cast< ::google::protobuf::MessageLite*>(world_statistics_);
451  }
452  if (world_statistics) {
453  ::google::protobuf::Arena* submessage_arena = NULL;
454  if (message_arena != submessage_arena) {
455  world_statistics = ::google::protobuf::internal::GetOwnedMessage(
456  message_arena, world_statistics, submessage_arena);
457  }
458 
459  } else {
460 
461  }
462  world_statistics_ = world_statistics;
463  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SimEvent.world_statistics)
464 }
465 
466 // string data = 6;
467 inline void SimEvent::clear_data() {
468  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469 }
470 inline const ::std::string& SimEvent::data() const {
471  // @@protoc_insertion_point(field_get:gz.msgs.SimEvent.data)
472  return data_.GetNoArena();
473 }
474 inline void SimEvent::set_data(const ::std::string& value) {
475 
476  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
477  // @@protoc_insertion_point(field_set:gz.msgs.SimEvent.data)
478 }
479 #if LANG_CXX11
480 inline void SimEvent::set_data(::std::string&& value) {
481 
482  data_.SetNoArena(
483  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
484  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.SimEvent.data)
485 }
486 #endif
487 inline void SimEvent::set_data(const char* value) {
488  GOOGLE_DCHECK(value != NULL);
489 
490  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
491  // @@protoc_insertion_point(field_set_char:gz.msgs.SimEvent.data)
492 }
493 inline void SimEvent::set_data(const char* value, size_t size) {
494 
495  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
496  ::std::string(reinterpret_cast<const char*>(value), size));
497  // @@protoc_insertion_point(field_set_pointer:gz.msgs.SimEvent.data)
498 }
499 inline ::std::string* SimEvent::mutable_data() {
500 
501  // @@protoc_insertion_point(field_mutable:gz.msgs.SimEvent.data)
502  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
503 }
504 inline ::std::string* SimEvent::release_data() {
505  // @@protoc_insertion_point(field_release:gz.msgs.SimEvent.data)
506 
507  return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
508 }
510  if (data != NULL) {
511 
512  } else {
513 
514  }
515  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
516  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SimEvent.data)
517 }
518 
519 #ifdef __GNUC__
520  #pragma GCC diagnostic pop
521 #endif // __GNUC__
522 
523 // @@protoc_insertion_point(namespace_scope)
524 
525 } // namespace msgs
526 } // namespace gz
527 
528 // @@protoc_insertion_point(global_scope)
529 
530 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsim_5fevent_2eproto