Ignition Msgs

API Reference

5.8.1
sim_event.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/sim_event.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsim_5fevent_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsim_5fevent_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
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 3014000 < 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/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #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_2fsim_5fevent_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.
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField 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_2fsim_5fevent_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class SimEvent;
72 class SimEventDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern SimEventDefaultTypeInternal _SimEvent_default_instance_;
74 } // namespace msgs
75 } // namespace ignition
76 PROTOBUF_NAMESPACE_OPEN
77 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::SimEvent* Arena::CreateMaybeMessage<::ignition::msgs::SimEvent>(Arena*);
78 PROTOBUF_NAMESPACE_CLOSE
79 namespace ignition {
80 namespace msgs {
81 
82 // ===================================================================
83 
84 class IGNITION_MSGS_VISIBLE SimEvent PROTOBUF_FINAL :
85  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.SimEvent) */ {
86  public:
87  inline SimEvent() : SimEvent(nullptr) {}
88  virtual ~SimEvent();
89 
90  SimEvent(const SimEvent& from);
91  SimEvent(SimEvent&& from) noexcept
92  : SimEvent() {
93  *this = ::std::move(from);
94  }
95 
96  inline SimEvent& operator=(const SimEvent& from) {
97  CopyFrom(from);
98  return *this;
99  }
100  inline SimEvent& operator=(SimEvent&& 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 SimEvent& default_instance();
119 
120  static inline const SimEvent* internal_default_instance() {
121  return reinterpret_cast<const SimEvent*>(
123  }
124  static constexpr int kIndexInFileMessages =
125  0;
126 
127  friend void swap(SimEvent& a, SimEvent& b) {
128  a.Swap(&b);
129  }
130  inline void Swap(SimEvent* other) {
131  if (other == this) return;
132  if (GetArena() == other->GetArena()) {
133  InternalSwap(other);
134  } else {
135  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
136  }
137  }
138  void UnsafeArenaSwap(SimEvent* other) {
139  if (other == this) return;
140  GOOGLE_DCHECK(GetArena() == other->GetArena());
141  InternalSwap(other);
142  }
143 
144  // implements Message ----------------------------------------------
145 
146  inline SimEvent* New() const final {
147  return CreateMaybeMessage<SimEvent>(nullptr);
148  }
149 
150  SimEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
151  return CreateMaybeMessage<SimEvent>(arena);
152  }
153  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
154  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
155  void CopyFrom(const SimEvent& from);
156  void MergeFrom(const SimEvent& from);
157  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
158  bool IsInitialized() const final;
159 
160  size_t ByteSizeLong() const final;
161  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
162  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
163  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
164  int GetCachedSize() const final { return _cached_size_.Get(); }
165 
166  private:
167  inline void SharedCtor();
168  inline void SharedDtor();
169  void SetCachedSize(int size) const final;
170  void InternalSwap(SimEvent* other);
171  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173  return "ignition.msgs.SimEvent";
174  }
175  protected:
176  explicit SimEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177  private:
178  static void ArenaDtor(void* object);
179  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
180  public:
181 
182  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
183  private:
184  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
185  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fsim_5fevent_2eproto);
186  return ::descriptor_table_ignition_2fmsgs_2fsim_5fevent_2eproto.file_level_metadata[kIndexInFileMessages];
187  }
188 
189  public:
190 
191  // nested types ----------------------------------------------------
192 
193  // accessors -------------------------------------------------------
194 
195  enum : int {
196  kTypeFieldNumber = 3,
197  kNameFieldNumber = 4,
198  kDataFieldNumber = 6,
199  kHeaderFieldNumber = 1,
200  kWorldStatisticsFieldNumber = 5,
201  kIdFieldNumber = 2,
202  };
203  // string type = 3;
204  void clear_type();
205  const std::string& type() const;
206  void set_type(const std::string& value);
207  void set_type(std::string&& value);
208  void set_type(const char* value);
209  void set_type(const char* value, size_t size);
213  private:
214  const std::string& _internal_type() const;
215  void _internal_set_type(const std::string& value);
216  std::string* _internal_mutable_type();
217  public:
218 
219  // string name = 4;
220  void clear_name();
221  const std::string& name() const;
222  void set_name(const std::string& value);
223  void set_name(std::string&& value);
224  void set_name(const char* value);
225  void set_name(const char* value, size_t size);
229  private:
230  const std::string& _internal_name() const;
231  void _internal_set_name(const std::string& value);
232  std::string* _internal_mutable_name();
233  public:
234 
235  // string data = 6;
236  void clear_data();
237  const std::string& data() const;
238  void set_data(const std::string& value);
239  void set_data(std::string&& value);
240  void set_data(const char* value);
241  void set_data(const char* value, size_t size);
245  private:
246  const std::string& _internal_data() const;
247  void _internal_set_data(const std::string& value);
248  std::string* _internal_mutable_data();
249  public:
250 
251  // .ignition.msgs.Header header = 1;
252  bool has_header() const;
253  private:
254  bool _internal_has_header() const;
255  public:
256  void clear_header();
257  const ::ignition::msgs::Header& header() const;
258  ::ignition::msgs::Header* release_header();
259  ::ignition::msgs::Header* mutable_header();
260  void set_allocated_header(::ignition::msgs::Header* header);
261  private:
262  const ::ignition::msgs::Header& _internal_header() const;
263  ::ignition::msgs::Header* _internal_mutable_header();
264  public:
266  ::ignition::msgs::Header* header);
267  ::ignition::msgs::Header* unsafe_arena_release_header();
268 
269  // .ignition.msgs.WorldStatistics world_statistics = 5;
270  bool has_world_statistics() const;
271  private:
272  bool _internal_has_world_statistics() const;
273  public:
275  const ::ignition::msgs::WorldStatistics& world_statistics() const;
276  ::ignition::msgs::WorldStatistics* release_world_statistics();
277  ::ignition::msgs::WorldStatistics* mutable_world_statistics();
278  void set_allocated_world_statistics(::ignition::msgs::WorldStatistics* world_statistics);
279  private:
280  const ::ignition::msgs::WorldStatistics& _internal_world_statistics() const;
281  ::ignition::msgs::WorldStatistics* _internal_mutable_world_statistics();
282  public:
284  ::ignition::msgs::WorldStatistics* world_statistics);
285  ::ignition::msgs::WorldStatistics* unsafe_arena_release_world_statistics();
286 
287  // uint32 id = 2;
288  void clear_id();
289  ::PROTOBUF_NAMESPACE_ID::uint32 id() const;
290  void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
291  private:
292  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_id() const;
293  void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
294  public:
295 
296  // @@protoc_insertion_point(class_scope:ignition.msgs.SimEvent)
297  private:
298  class _Internal;
299 
300  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
301  typedef void InternalArenaConstructable_;
302  typedef void DestructorSkippable_;
303  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_;
304  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
305  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
306  ::ignition::msgs::Header* header_;
307  ::ignition::msgs::WorldStatistics* world_statistics_;
308  ::PROTOBUF_NAMESPACE_ID::uint32 id_;
309  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
310  friend struct ::TableStruct_ignition_2fmsgs_2fsim_5fevent_2eproto;
311 };
312 // ===================================================================
313 
314 
315 // ===================================================================
316 
317 #ifdef __GNUC__
318  #pragma GCC diagnostic push
319  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
320 #endif // __GNUC__
321 // SimEvent
322 
323 // .ignition.msgs.Header header = 1;
324 inline bool SimEvent::_internal_has_header() const {
325  return this != internal_default_instance() && header_ != nullptr;
326 }
327 inline bool SimEvent::has_header() const {
328  return _internal_has_header();
329 }
330 inline const ::ignition::msgs::Header& SimEvent::_internal_header() const {
331  const ::ignition::msgs::Header* p = header_;
332  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
334 }
335 inline const ::ignition::msgs::Header& SimEvent::header() const {
336  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.header)
337  return _internal_header();
338 }
339 inline void SimEvent::unsafe_arena_set_allocated_header(
340  ::ignition::msgs::Header* header) {
341  if (GetArena() == nullptr) {
342  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
343  }
344  header_ = header;
345  if (header) {
346 
347  } else {
348 
349  }
350  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.SimEvent.header)
351 }
352 inline ::ignition::msgs::Header* SimEvent::release_header() {
353 
354  ::ignition::msgs::Header* temp = header_;
355  header_ = nullptr;
356  if (GetArena() != nullptr) {
357  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
358  }
359  return temp;
360 }
361 inline ::ignition::msgs::Header* SimEvent::unsafe_arena_release_header() {
362  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.header)
363 
364  ::ignition::msgs::Header* temp = header_;
365  header_ = nullptr;
366  return temp;
367 }
368 inline ::ignition::msgs::Header* SimEvent::_internal_mutable_header() {
369 
370  if (header_ == nullptr) {
371  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
372  header_ = p;
373  }
374  return header_;
375 }
376 inline ::ignition::msgs::Header* SimEvent::mutable_header() {
377  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.header)
378  return _internal_mutable_header();
379 }
380 inline void SimEvent::set_allocated_header(::ignition::msgs::Header* header) {
381  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
382  if (message_arena == nullptr) {
383  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
384  }
385  if (header) {
386  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
387  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
388  if (message_arena != submessage_arena) {
389  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
390  message_arena, header, submessage_arena);
391  }
392 
393  } else {
394 
395  }
396  header_ = header;
397  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.header)
398 }
399 
400 // uint32 id = 2;
401 inline void SimEvent::clear_id() {
402  id_ = 0u;
403 }
404 inline ::PROTOBUF_NAMESPACE_ID::uint32 SimEvent::_internal_id() const {
405  return id_;
406 }
407 inline ::PROTOBUF_NAMESPACE_ID::uint32 SimEvent::id() const {
408  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.id)
409  return _internal_id();
410 }
411 inline void SimEvent::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
412 
413  id_ = value;
414 }
415 inline void SimEvent::set_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
416  _internal_set_id(value);
417  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.id)
418 }
419 
420 // string type = 3;
421 inline void SimEvent::clear_type() {
422  type_.ClearToEmpty();
423 }
424 inline const std::string& SimEvent::type() const {
425  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.type)
426  return _internal_type();
427 }
428 inline void SimEvent::set_type(const std::string& value) {
429  _internal_set_type(value);
430  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.type)
431 }
432 inline std::string* SimEvent::mutable_type() {
433  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.type)
434  return _internal_mutable_type();
435 }
436 inline const std::string& SimEvent::_internal_type() const {
437  return type_.Get();
438 }
439 inline void SimEvent::_internal_set_type(const std::string& value) {
440 
441  type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
442 }
443 inline void SimEvent::set_type(std::string&& value) {
444 
445  type_.Set(
446  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
447  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.SimEvent.type)
448 }
449 inline void SimEvent::set_type(const char* value) {
450  GOOGLE_DCHECK(value != nullptr);
451 
452  type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
453  // @@protoc_insertion_point(field_set_char:ignition.msgs.SimEvent.type)
454 }
455 inline void SimEvent::set_type(const char* value,
456  size_t size) {
457 
458  type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
459  reinterpret_cast<const char*>(value), size), GetArena());
460  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.SimEvent.type)
461 }
462 inline std::string* SimEvent::_internal_mutable_type() {
463 
464  return type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
465 }
466 inline std::string* SimEvent::release_type() {
467  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.type)
468  return type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
469 }
470 inline void SimEvent::set_allocated_type(std::string* type) {
471  if (type != nullptr) {
472 
473  } else {
474 
475  }
476  type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type,
477  GetArena());
478  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.type)
479 }
480 
481 // string name = 4;
482 inline void SimEvent::clear_name() {
483  name_.ClearToEmpty();
484 }
485 inline const std::string& SimEvent::name() const {
486  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.name)
487  return _internal_name();
488 }
489 inline void SimEvent::set_name(const std::string& value) {
490  _internal_set_name(value);
491  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.name)
492 }
493 inline std::string* SimEvent::mutable_name() {
494  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.name)
495  return _internal_mutable_name();
496 }
497 inline const std::string& SimEvent::_internal_name() const {
498  return name_.Get();
499 }
500 inline void SimEvent::_internal_set_name(const std::string& value) {
501 
502  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
503 }
504 inline void SimEvent::set_name(std::string&& value) {
505 
506  name_.Set(
507  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
508  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.SimEvent.name)
509 }
510 inline void SimEvent::set_name(const char* value) {
511  GOOGLE_DCHECK(value != nullptr);
512 
513  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
514  // @@protoc_insertion_point(field_set_char:ignition.msgs.SimEvent.name)
515 }
516 inline void SimEvent::set_name(const char* value,
517  size_t size) {
518 
519  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
520  reinterpret_cast<const char*>(value), size), GetArena());
521  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.SimEvent.name)
522 }
523 inline std::string* SimEvent::_internal_mutable_name() {
524 
525  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
526 }
527 inline std::string* SimEvent::release_name() {
528  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.name)
529  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
530 }
531 inline void SimEvent::set_allocated_name(std::string* name) {
532  if (name != nullptr) {
533 
534  } else {
535 
536  }
537  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
538  GetArena());
539  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.name)
540 }
541 
542 // .ignition.msgs.WorldStatistics world_statistics = 5;
543 inline bool SimEvent::_internal_has_world_statistics() const {
544  return this != internal_default_instance() && world_statistics_ != nullptr;
545 }
546 inline bool SimEvent::has_world_statistics() const {
547  return _internal_has_world_statistics();
548 }
549 inline const ::ignition::msgs::WorldStatistics& SimEvent::_internal_world_statistics() const {
550  const ::ignition::msgs::WorldStatistics* p = world_statistics_;
551  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::WorldStatistics&>(
553 }
554 inline const ::ignition::msgs::WorldStatistics& SimEvent::world_statistics() const {
555  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.world_statistics)
556  return _internal_world_statistics();
557 }
558 inline void SimEvent::unsafe_arena_set_allocated_world_statistics(
559  ::ignition::msgs::WorldStatistics* world_statistics) {
560  if (GetArena() == nullptr) {
561  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_statistics_);
562  }
563  world_statistics_ = world_statistics;
564  if (world_statistics) {
565 
566  } else {
567 
568  }
569  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.SimEvent.world_statistics)
570 }
571 inline ::ignition::msgs::WorldStatistics* SimEvent::release_world_statistics() {
572 
573  ::ignition::msgs::WorldStatistics* temp = world_statistics_;
574  world_statistics_ = nullptr;
575  if (GetArena() != nullptr) {
576  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
577  }
578  return temp;
579 }
580 inline ::ignition::msgs::WorldStatistics* SimEvent::unsafe_arena_release_world_statistics() {
581  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.world_statistics)
582 
583  ::ignition::msgs::WorldStatistics* temp = world_statistics_;
584  world_statistics_ = nullptr;
585  return temp;
586 }
587 inline ::ignition::msgs::WorldStatistics* SimEvent::_internal_mutable_world_statistics() {
588 
589  if (world_statistics_ == nullptr) {
590  auto* p = CreateMaybeMessage<::ignition::msgs::WorldStatistics>(GetArena());
591  world_statistics_ = p;
592  }
593  return world_statistics_;
594 }
595 inline ::ignition::msgs::WorldStatistics* SimEvent::mutable_world_statistics() {
596  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.world_statistics)
597  return _internal_mutable_world_statistics();
598 }
599 inline void SimEvent::set_allocated_world_statistics(::ignition::msgs::WorldStatistics* world_statistics) {
600  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
601  if (message_arena == nullptr) {
602  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_statistics_);
603  }
604  if (world_statistics) {
605  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
606  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(world_statistics)->GetArena();
607  if (message_arena != submessage_arena) {
608  world_statistics = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
609  message_arena, world_statistics, submessage_arena);
610  }
611 
612  } else {
613 
614  }
615  world_statistics_ = world_statistics;
616  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.world_statistics)
617 }
618 
619 // string data = 6;
620 inline void SimEvent::clear_data() {
621  data_.ClearToEmpty();
622 }
623 inline const std::string& SimEvent::data() const {
624  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.data)
625  return _internal_data();
626 }
627 inline void SimEvent::set_data(const std::string& value) {
628  _internal_set_data(value);
629  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.data)
630 }
631 inline std::string* SimEvent::mutable_data() {
632  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.data)
633  return _internal_mutable_data();
634 }
635 inline const std::string& SimEvent::_internal_data() const {
636  return data_.Get();
637 }
638 inline void SimEvent::_internal_set_data(const std::string& value) {
639 
640  data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
641 }
642 inline void SimEvent::set_data(std::string&& value) {
643 
644  data_.Set(
645  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
646  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.SimEvent.data)
647 }
648 inline void SimEvent::set_data(const char* value) {
649  GOOGLE_DCHECK(value != nullptr);
650 
651  data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
652  // @@protoc_insertion_point(field_set_char:ignition.msgs.SimEvent.data)
653 }
654 inline void SimEvent::set_data(const char* value,
655  size_t size) {
656 
657  data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
658  reinterpret_cast<const char*>(value), size), GetArena());
659  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.SimEvent.data)
660 }
661 inline std::string* SimEvent::_internal_mutable_data() {
662 
663  return data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
664 }
665 inline std::string* SimEvent::release_data() {
666  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.data)
667  return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
668 }
669 inline void SimEvent::set_allocated_data(std::string* data) {
670  if (data != nullptr) {
671 
672  } else {
673 
674  }
675  data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data,
676  GetArena());
677  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.data)
678 }
679 
680 #ifdef __GNUC__
681  #pragma GCC diagnostic pop
682 #endif // __GNUC__
683 
688 // @@protoc_insertion_point(namespace_scope)
689 
690 } // namespace msgs
691 } // namespace ignition
692 
693 #ifdef _MSC_VER
694 #pragma warning(pop)
695 #endif
696 // @@protoc_insertion_point(global_scope)
697 
698 #include <google/protobuf/port_undef.inc>
699 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fsim_5fevent_2eproto
const ::ignition::msgs::WorldStatistics & world_statistics() const
void set_allocated_data(std::string *data)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: sim_event.pb.h:115
::ignition::msgs::WorldStatistics * release_world_statistics()
void MergeFrom(const SimEvent &from)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const SimEvent & default_instance()
::ignition::msgs::Header * release_header()
void set_name(const char *value, size_t size)
void set_data(const std::string &value)
SimEvent(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: sim_event.pb.h:109
void set_name(const std::string &value)
void set_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
void Swap(SimEvent *other)
Definition: sim_event.pb.h:130
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
SimEvent & operator=(SimEvent &&from) noexcept
Definition: sim_event.pb.h:100
void set_data(std::string &&value)
SimEvent * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: sim_event.pb.h:150
void set_type(const std::string &value)
const std::string & data() const
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
void set_type(const char *value)
::ignition::msgs::WorldStatistics * mutable_world_statistics()
SimEvent(SimEvent &&from) noexcept
Definition: sim_event.pb.h:91
void set_type(std::string &&value)
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void set_data(const char *value, size_t size)
SimEvent & operator=(const SimEvent &from)
Definition: sim_event.pb.h:96
static const SimEvent * internal_default_instance()
Definition: sim_event.pb.h:120
void set_allocated_header(::ignition::msgs::Header *header)
void CopyFrom(const SimEvent &from)
void set_allocated_world_statistics(::ignition::msgs::WorldStatistics *world_statistics)
void UnsafeArenaSwap(SimEvent *other)
Definition: sim_event.pb.h:138
void set_data(const char *value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void unsafe_arena_set_allocated_world_statistics(::ignition::msgs::WorldStatistics *world_statistics)
::PROTOBUF_NAMESPACE_ID::uint32 id() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: sim_event.pb.h:112
void set_allocated_type(std::string *type)
::ignition::msgs::WorldStatistics * unsafe_arena_release_world_statistics()
SimEvent()
Definition: sim_event.pb.h:87
const std::string & name() const
void set_name(const char *value)
void set_name(std::string &&value)
friend void swap(SimEvent &a, SimEvent &b)
Definition: sim_event.pb.h:127
SimEvent * New() const final
Definition: sim_event.pb.h:146
SimEvent(const SimEvent &from)
void set_allocated_name(std::string *name)
void set_type(const char *value, size_t size)
const std::string & type() const
const ::ignition::msgs::Header & header() const
std::unique_ptr< const SimEvent > ConstSimEventUniquePtr
Definition: sim_event.pb.h:685
std::unique_ptr< SimEvent > SimEventUniquePtr
Definition: sim_event.pb.h:684
std::shared_ptr< SimEvent > SimEventSharedPtr
Definition: sim_event.pb.h:686
IGNITION_MSGS_VISIBLE WorldStatisticsDefaultTypeInternal _WorldStatistics_default_instance_
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE SimEventDefaultTypeInternal _SimEvent_default_instance_
std::shared_ptr< const SimEvent > ConstSimEventSharedPtr
Definition: sim_event.pb.h:687
Definition: actor.pb.h:52
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fsim_5fevent_2eproto
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
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)