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