Gazebo Msgs

API Reference

9.5.0
serialized.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/serialized.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_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/header.pb.h"
34 #include "gz/msgs/world_stats.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fserialized_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[4];
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_2fserialized_2eproto
50 namespace gz {
51 namespace msgs {
52 class SerializedComponent;
53 class SerializedComponentDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern SerializedComponentDefaultTypeInternal _SerializedComponent_default_instance_;
55 class SerializedEntity;
56 class SerializedEntityDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern SerializedEntityDefaultTypeInternal _SerializedEntity_default_instance_;
58 class SerializedState;
59 class SerializedStateDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern SerializedStateDefaultTypeInternal _SerializedState_default_instance_;
61 class SerializedStep;
62 class SerializedStepDefaultTypeInternal;
63 GZ_MSGS_VISIBLE extern SerializedStepDefaultTypeInternal _SerializedStep_default_instance_;
64 } // namespace msgs
65 } // namespace gz
66 namespace google {
67 namespace protobuf {
68 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedComponent* Arena::CreateMaybeMessage<::gz::msgs::SerializedComponent>(Arena*);
69 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedEntity* Arena::CreateMaybeMessage<::gz::msgs::SerializedEntity>(Arena*);
70 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedState* Arena::CreateMaybeMessage<::gz::msgs::SerializedState>(Arena*);
71 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedStep* Arena::CreateMaybeMessage<::gz::msgs::SerializedStep>(Arena*);
72 } // namespace protobuf
73 } // namespace google
74 namespace gz {
75 namespace msgs {
76 
77 // ===================================================================
78 
79 class GZ_MSGS_VISIBLE SerializedComponent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.SerializedComponent) */ {
80  public:
82  virtual ~SerializedComponent();
83 
85 
87  CopyFrom(from);
88  return *this;
89  }
90  #if LANG_CXX11
93  *this = ::std::move(from);
94  }
95 
96  inline SerializedComponent& operator=(SerializedComponent&& from) noexcept {
97  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98  if (this != &from) InternalSwap(&from);
99  } else {
100  CopyFrom(from);
101  }
102  return *this;
103  }
104  #endif
105  static const ::google::protobuf::Descriptor* descriptor();
106  static const SerializedComponent& default_instance();
107 
108  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
110  return reinterpret_cast<const SerializedComponent*>(
112  }
113  static constexpr int kIndexInFileMessages =
114  0;
115 
116  void Swap(SerializedComponent* other);
118  a.Swap(&b);
119  }
120 
121  // implements Message ----------------------------------------------
122 
123  inline SerializedComponent* New() const final {
124  return CreateMaybeMessage<SerializedComponent>(NULL);
125  }
126 
127  SerializedComponent* New(::google::protobuf::Arena* arena) const final {
128  return CreateMaybeMessage<SerializedComponent>(arena);
129  }
130  void CopyFrom(const ::google::protobuf::Message& from) final;
131  void MergeFrom(const ::google::protobuf::Message& from) final;
132  void CopyFrom(const SerializedComponent& from);
133  void MergeFrom(const SerializedComponent& from);
134  void Clear() final;
135  bool IsInitialized() const final;
136 
137  size_t ByteSizeLong() const final;
138  bool MergePartialFromCodedStream(
139  ::google::protobuf::io::CodedInputStream* input) final;
140  void SerializeWithCachedSizes(
141  ::google::protobuf::io::CodedOutputStream* output) const final;
142  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
143  bool deterministic, ::google::protobuf::uint8* target) const final;
144  int GetCachedSize() const final { return _cached_size_.Get(); }
145 
146  private:
147  void SharedCtor();
148  void SharedDtor();
149  void SetCachedSize(int size) const final;
150  void InternalSwap(SerializedComponent* other);
151  private:
152  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
153  return NULL;
154  }
155  inline void* MaybeArenaPtr() const {
156  return NULL;
157  }
158  public:
159 
160  ::google::protobuf::Metadata GetMetadata() const final;
161 
162  // nested types ----------------------------------------------------
163 
164  // accessors -------------------------------------------------------
165 
166  // bytes component = 2;
167  void clear_component();
168  static const int kComponentFieldNumber = 2;
169  const ::std::string& component() const;
170  void set_component(const ::std::string& value);
171  #if LANG_CXX11
172  void set_component(::std::string&& value);
173  #endif
174  void set_component(const char* value);
175  void set_component(const void* value, size_t size);
176  ::std::string* mutable_component();
177  ::std::string* release_component();
178  void set_allocated_component(::std::string* component);
179 
180  // uint64 type = 1;
181  void clear_type();
182  static const int kTypeFieldNumber = 1;
183  ::google::protobuf::uint64 type() const;
184  void set_type(::google::protobuf::uint64 value);
185 
186  // bool remove = 3;
187  void clear_remove();
188  static const int kRemoveFieldNumber = 3;
189  bool remove() const;
190  void set_remove(bool value);
191 
192  // @@protoc_insertion_point(class_scope:gz.msgs.SerializedComponent)
193  private:
194 
195  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
196  ::google::protobuf::internal::ArenaStringPtr component_;
197  ::google::protobuf::uint64 type_;
198  bool remove_;
199  mutable ::google::protobuf::internal::CachedSize _cached_size_;
200  friend struct ::protobuf_gz_2fmsgs_2fserialized_2eproto::TableStruct;
201 };
202 // -------------------------------------------------------------------
203 
204 class GZ_MSGS_VISIBLE SerializedEntity : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.SerializedEntity) */ {
205  public:
207  virtual ~SerializedEntity();
208 
209  SerializedEntity(const SerializedEntity& from);
210 
212  CopyFrom(from);
213  return *this;
214  }
215  #if LANG_CXX11
216  SerializedEntity(SerializedEntity&& from) noexcept
217  : SerializedEntity() {
218  *this = ::std::move(from);
219  }
220 
221  inline SerializedEntity& operator=(SerializedEntity&& from) noexcept {
222  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
223  if (this != &from) InternalSwap(&from);
224  } else {
225  CopyFrom(from);
226  }
227  return *this;
228  }
229  #endif
230  static const ::google::protobuf::Descriptor* descriptor();
231  static const SerializedEntity& default_instance();
232 
233  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
235  return reinterpret_cast<const SerializedEntity*>(
237  }
238  static constexpr int kIndexInFileMessages =
239  1;
240 
241  void Swap(SerializedEntity* other);
242  friend void swap(SerializedEntity& a, SerializedEntity& b) {
243  a.Swap(&b);
244  }
245 
246  // implements Message ----------------------------------------------
247 
248  inline SerializedEntity* New() const final {
249  return CreateMaybeMessage<SerializedEntity>(NULL);
250  }
251 
252  SerializedEntity* New(::google::protobuf::Arena* arena) const final {
253  return CreateMaybeMessage<SerializedEntity>(arena);
254  }
255  void CopyFrom(const ::google::protobuf::Message& from) final;
256  void MergeFrom(const ::google::protobuf::Message& from) final;
257  void CopyFrom(const SerializedEntity& from);
258  void MergeFrom(const SerializedEntity& from);
259  void Clear() final;
260  bool IsInitialized() const final;
261 
262  size_t ByteSizeLong() const final;
263  bool MergePartialFromCodedStream(
264  ::google::protobuf::io::CodedInputStream* input) final;
265  void SerializeWithCachedSizes(
266  ::google::protobuf::io::CodedOutputStream* output) const final;
267  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
268  bool deterministic, ::google::protobuf::uint8* target) const final;
269  int GetCachedSize() const final { return _cached_size_.Get(); }
270 
271  private:
272  void SharedCtor();
273  void SharedDtor();
274  void SetCachedSize(int size) const final;
275  void InternalSwap(SerializedEntity* other);
276  private:
277  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
278  return NULL;
279  }
280  inline void* MaybeArenaPtr() const {
281  return NULL;
282  }
283  public:
284 
285  ::google::protobuf::Metadata GetMetadata() const final;
286 
287  // nested types ----------------------------------------------------
288 
289  // accessors -------------------------------------------------------
290 
291  // repeated .gz.msgs.SerializedComponent components = 2;
292  int components_size() const;
293  void clear_components();
294  static const int kComponentsFieldNumber = 2;
295  ::gz::msgs::SerializedComponent* mutable_components(int index);
296  ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent >*
297  mutable_components();
298  const ::gz::msgs::SerializedComponent& components(int index) const;
299  ::gz::msgs::SerializedComponent* add_components();
300  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent >&
301  components() const;
302 
303  // uint64 id = 1;
304  void clear_id();
305  static const int kIdFieldNumber = 1;
306  ::google::protobuf::uint64 id() const;
307  void set_id(::google::protobuf::uint64 value);
308 
309  // bool remove = 3;
310  void clear_remove();
311  static const int kRemoveFieldNumber = 3;
312  bool remove() const;
313  void set_remove(bool value);
314 
315  // @@protoc_insertion_point(class_scope:gz.msgs.SerializedEntity)
316  private:
317 
318  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
319  ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent > components_;
320  ::google::protobuf::uint64 id_;
321  bool remove_;
322  mutable ::google::protobuf::internal::CachedSize _cached_size_;
323  friend struct ::protobuf_gz_2fmsgs_2fserialized_2eproto::TableStruct;
324 };
325 // -------------------------------------------------------------------
326 
327 class GZ_MSGS_VISIBLE SerializedState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.SerializedState) */ {
328  public:
329  SerializedState();
330  virtual ~SerializedState();
331 
332  SerializedState(const SerializedState& from);
333 
335  CopyFrom(from);
336  return *this;
337  }
338  #if LANG_CXX11
339  SerializedState(SerializedState&& from) noexcept
340  : SerializedState() {
341  *this = ::std::move(from);
342  }
343 
344  inline SerializedState& operator=(SerializedState&& from) noexcept {
345  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
346  if (this != &from) InternalSwap(&from);
347  } else {
348  CopyFrom(from);
349  }
350  return *this;
351  }
352  #endif
353  static const ::google::protobuf::Descriptor* descriptor();
354  static const SerializedState& default_instance();
355 
356  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
358  return reinterpret_cast<const SerializedState*>(
360  }
361  static constexpr int kIndexInFileMessages =
362  2;
363 
364  void Swap(SerializedState* other);
365  friend void swap(SerializedState& a, SerializedState& b) {
366  a.Swap(&b);
367  }
368 
369  // implements Message ----------------------------------------------
370 
371  inline SerializedState* New() const final {
372  return CreateMaybeMessage<SerializedState>(NULL);
373  }
374 
375  SerializedState* New(::google::protobuf::Arena* arena) const final {
376  return CreateMaybeMessage<SerializedState>(arena);
377  }
378  void CopyFrom(const ::google::protobuf::Message& from) final;
379  void MergeFrom(const ::google::protobuf::Message& from) final;
380  void CopyFrom(const SerializedState& from);
381  void MergeFrom(const SerializedState& from);
382  void Clear() final;
383  bool IsInitialized() const final;
384 
385  size_t ByteSizeLong() const final;
386  bool MergePartialFromCodedStream(
387  ::google::protobuf::io::CodedInputStream* input) final;
388  void SerializeWithCachedSizes(
389  ::google::protobuf::io::CodedOutputStream* output) const final;
390  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
391  bool deterministic, ::google::protobuf::uint8* target) const final;
392  int GetCachedSize() const final { return _cached_size_.Get(); }
393 
394  private:
395  void SharedCtor();
396  void SharedDtor();
397  void SetCachedSize(int size) const final;
398  void InternalSwap(SerializedState* other);
399  private:
400  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
401  return NULL;
402  }
403  inline void* MaybeArenaPtr() const {
404  return NULL;
405  }
406  public:
407 
408  ::google::protobuf::Metadata GetMetadata() const final;
409 
410  // nested types ----------------------------------------------------
411 
412  // accessors -------------------------------------------------------
413 
414  // repeated .gz.msgs.SerializedEntity entities = 2;
415  int entities_size() const;
416  void clear_entities();
417  static const int kEntitiesFieldNumber = 2;
418  ::gz::msgs::SerializedEntity* mutable_entities(int index);
419  ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity >*
420  mutable_entities();
421  const ::gz::msgs::SerializedEntity& entities(int index) const;
422  ::gz::msgs::SerializedEntity* add_entities();
423  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity >&
424  entities() const;
425 
426  // .gz.msgs.Header header = 1;
427  bool has_header() const;
428  void clear_header();
429  static const int kHeaderFieldNumber = 1;
430  private:
431  const ::gz::msgs::Header& _internal_header() const;
432  public:
433  const ::gz::msgs::Header& header() const;
434  ::gz::msgs::Header* release_header();
435  ::gz::msgs::Header* mutable_header();
436  void set_allocated_header(::gz::msgs::Header* header);
437 
438  // @@protoc_insertion_point(class_scope:gz.msgs.SerializedState)
439  private:
440 
441  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
442  ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity > entities_;
443  ::gz::msgs::Header* header_;
444  mutable ::google::protobuf::internal::CachedSize _cached_size_;
445  friend struct ::protobuf_gz_2fmsgs_2fserialized_2eproto::TableStruct;
446 };
447 // -------------------------------------------------------------------
448 
449 class GZ_MSGS_VISIBLE SerializedStep : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.SerializedStep) */ {
450  public:
451  SerializedStep();
452  virtual ~SerializedStep();
453 
454  SerializedStep(const SerializedStep& from);
455 
456  inline SerializedStep& operator=(const SerializedStep& from) {
457  CopyFrom(from);
458  return *this;
459  }
460  #if LANG_CXX11
461  SerializedStep(SerializedStep&& from) noexcept
462  : SerializedStep() {
463  *this = ::std::move(from);
464  }
465 
466  inline SerializedStep& operator=(SerializedStep&& from) noexcept {
467  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
468  if (this != &from) InternalSwap(&from);
469  } else {
470  CopyFrom(from);
471  }
472  return *this;
473  }
474  #endif
475  static const ::google::protobuf::Descriptor* descriptor();
476  static const SerializedStep& default_instance();
477 
478  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
479  static inline const SerializedStep* internal_default_instance() {
480  return reinterpret_cast<const SerializedStep*>(
482  }
483  static constexpr int kIndexInFileMessages =
484  3;
485 
486  void Swap(SerializedStep* other);
487  friend void swap(SerializedStep& a, SerializedStep& b) {
488  a.Swap(&b);
489  }
490 
491  // implements Message ----------------------------------------------
492 
493  inline SerializedStep* New() const final {
494  return CreateMaybeMessage<SerializedStep>(NULL);
495  }
496 
497  SerializedStep* New(::google::protobuf::Arena* arena) const final {
498  return CreateMaybeMessage<SerializedStep>(arena);
499  }
500  void CopyFrom(const ::google::protobuf::Message& from) final;
501  void MergeFrom(const ::google::protobuf::Message& from) final;
502  void CopyFrom(const SerializedStep& from);
503  void MergeFrom(const SerializedStep& from);
504  void Clear() final;
505  bool IsInitialized() const final;
506 
507  size_t ByteSizeLong() const final;
508  bool MergePartialFromCodedStream(
509  ::google::protobuf::io::CodedInputStream* input) final;
510  void SerializeWithCachedSizes(
511  ::google::protobuf::io::CodedOutputStream* output) const final;
512  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
513  bool deterministic, ::google::protobuf::uint8* target) const final;
514  int GetCachedSize() const final { return _cached_size_.Get(); }
515 
516  private:
517  void SharedCtor();
518  void SharedDtor();
519  void SetCachedSize(int size) const final;
520  void InternalSwap(SerializedStep* other);
521  private:
522  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
523  return NULL;
524  }
525  inline void* MaybeArenaPtr() const {
526  return NULL;
527  }
528  public:
529 
530  ::google::protobuf::Metadata GetMetadata() const final;
531 
532  // nested types ----------------------------------------------------
533 
534  // accessors -------------------------------------------------------
535 
536  // .gz.msgs.WorldStatistics stats = 1;
537  bool has_stats() const;
538  void clear_stats();
539  static const int kStatsFieldNumber = 1;
540  private:
541  const ::gz::msgs::WorldStatistics& _internal_stats() const;
542  public:
543  const ::gz::msgs::WorldStatistics& stats() const;
544  ::gz::msgs::WorldStatistics* release_stats();
545  ::gz::msgs::WorldStatistics* mutable_stats();
546  void set_allocated_stats(::gz::msgs::WorldStatistics* stats);
547 
548  // .gz.msgs.SerializedState state = 2;
549  bool has_state() const;
550  void clear_state();
551  static const int kStateFieldNumber = 2;
552  private:
553  const ::gz::msgs::SerializedState& _internal_state() const;
554  public:
555  const ::gz::msgs::SerializedState& state() const;
556  ::gz::msgs::SerializedState* release_state();
557  ::gz::msgs::SerializedState* mutable_state();
558  void set_allocated_state(::gz::msgs::SerializedState* state);
559 
560  // @@protoc_insertion_point(class_scope:gz.msgs.SerializedStep)
561  private:
562 
563  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
564  ::gz::msgs::WorldStatistics* stats_;
565  ::gz::msgs::SerializedState* state_;
566  mutable ::google::protobuf::internal::CachedSize _cached_size_;
567  friend struct ::protobuf_gz_2fmsgs_2fserialized_2eproto::TableStruct;
568 };
569 // ===================================================================
570 
571 
572 // ===================================================================
573 
574 #ifdef __GNUC__
575  #pragma GCC diagnostic push
576  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
577 #endif // __GNUC__
578 // SerializedComponent
579 
580 // uint64 type = 1;
582  type_ = GOOGLE_ULONGLONG(0);
583 }
584 inline ::google::protobuf::uint64 SerializedComponent::type() const {
585  // @@protoc_insertion_point(field_get:gz.msgs.SerializedComponent.type)
586  return type_;
587 }
588 inline void SerializedComponent::set_type(::google::protobuf::uint64 value) {
589 
590  type_ = value;
591  // @@protoc_insertion_point(field_set:gz.msgs.SerializedComponent.type)
592 }
593 
594 // bytes component = 2;
596  component_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
597 }
598 inline const ::std::string& SerializedComponent::component() const {
599  // @@protoc_insertion_point(field_get:gz.msgs.SerializedComponent.component)
600  return component_.GetNoArena();
601 }
602 inline void SerializedComponent::set_component(const ::std::string& value) {
603 
604  component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
605  // @@protoc_insertion_point(field_set:gz.msgs.SerializedComponent.component)
606 }
607 #if LANG_CXX11
608 inline void SerializedComponent::set_component(::std::string&& value) {
609 
610  component_.SetNoArena(
611  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
612  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.SerializedComponent.component)
613 }
614 #endif
615 inline void SerializedComponent::set_component(const char* value) {
616  GOOGLE_DCHECK(value != NULL);
617 
618  component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
619  // @@protoc_insertion_point(field_set_char:gz.msgs.SerializedComponent.component)
620 }
621 inline void SerializedComponent::set_component(const void* value, size_t size) {
622 
623  component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
624  ::std::string(reinterpret_cast<const char*>(value), size));
625  // @@protoc_insertion_point(field_set_pointer:gz.msgs.SerializedComponent.component)
626 }
627 inline ::std::string* SerializedComponent::mutable_component() {
628 
629  // @@protoc_insertion_point(field_mutable:gz.msgs.SerializedComponent.component)
630  return component_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
631 }
632 inline ::std::string* SerializedComponent::release_component() {
633  // @@protoc_insertion_point(field_release:gz.msgs.SerializedComponent.component)
634 
635  return component_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
636 }
638  if (component != NULL) {
639 
640  } else {
641 
642  }
643  component_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), component);
644  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SerializedComponent.component)
645 }
646 
647 // bool remove = 3;
649  remove_ = false;
650 }
651 inline bool SerializedComponent::remove() const {
652  // @@protoc_insertion_point(field_get:gz.msgs.SerializedComponent.remove)
653  return remove_;
654 }
655 inline void SerializedComponent::set_remove(bool value) {
656 
657  remove_ = value;
658  // @@protoc_insertion_point(field_set:gz.msgs.SerializedComponent.remove)
659 }
660 
661 // -------------------------------------------------------------------
662 
663 // SerializedEntity
664 
665 // uint64 id = 1;
667  id_ = GOOGLE_ULONGLONG(0);
668 }
669 inline ::google::protobuf::uint64 SerializedEntity::id() const {
670  // @@protoc_insertion_point(field_get:gz.msgs.SerializedEntity.id)
671  return id_;
672 }
673 inline void SerializedEntity::set_id(::google::protobuf::uint64 value) {
674 
675  id_ = value;
676  // @@protoc_insertion_point(field_set:gz.msgs.SerializedEntity.id)
677 }
678 
679 // repeated .gz.msgs.SerializedComponent components = 2;
681  return components_.size();
682 }
684  components_.Clear();
685 }
686 inline ::gz::msgs::SerializedComponent* SerializedEntity::mutable_components(int index) {
687  // @@protoc_insertion_point(field_mutable:gz.msgs.SerializedEntity.components)
688  return components_.Mutable(index);
689 }
690 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent >*
692  // @@protoc_insertion_point(field_mutable_list:gz.msgs.SerializedEntity.components)
693  return &components_;
694 }
695 inline const ::gz::msgs::SerializedComponent& SerializedEntity::components(int index) const {
696  // @@protoc_insertion_point(field_get:gz.msgs.SerializedEntity.components)
697  return components_.Get(index);
698 }
699 inline ::gz::msgs::SerializedComponent* SerializedEntity::add_components() {
700  // @@protoc_insertion_point(field_add:gz.msgs.SerializedEntity.components)
701  return components_.Add();
702 }
703 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent >&
705  // @@protoc_insertion_point(field_list:gz.msgs.SerializedEntity.components)
706  return components_;
707 }
708 
709 // bool remove = 3;
711  remove_ = false;
712 }
713 inline bool SerializedEntity::remove() const {
714  // @@protoc_insertion_point(field_get:gz.msgs.SerializedEntity.remove)
715  return remove_;
716 }
717 inline void SerializedEntity::set_remove(bool value) {
718 
719  remove_ = value;
720  // @@protoc_insertion_point(field_set:gz.msgs.SerializedEntity.remove)
721 }
722 
723 // -------------------------------------------------------------------
724 
725 // SerializedState
726 
727 // .gz.msgs.Header header = 1;
728 inline bool SerializedState::has_header() const {
729  return this != internal_default_instance() && header_ != NULL;
730 }
731 inline const ::gz::msgs::Header& SerializedState::_internal_header() const {
732  return *header_;
733 }
734 inline const ::gz::msgs::Header& SerializedState::header() const {
735  const ::gz::msgs::Header* p = header_;
736  // @@protoc_insertion_point(field_get:gz.msgs.SerializedState.header)
737  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
739 }
740 inline ::gz::msgs::Header* SerializedState::release_header() {
741  // @@protoc_insertion_point(field_release:gz.msgs.SerializedState.header)
742 
743  ::gz::msgs::Header* temp = header_;
744  header_ = NULL;
745  return temp;
746 }
747 inline ::gz::msgs::Header* SerializedState::mutable_header() {
748 
749  if (header_ == NULL) {
750  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
751  header_ = p;
752  }
753  // @@protoc_insertion_point(field_mutable:gz.msgs.SerializedState.header)
754  return header_;
755 }
757  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
758  if (message_arena == NULL) {
759  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
760  }
761  if (header) {
762  ::google::protobuf::Arena* submessage_arena = NULL;
763  if (message_arena != submessage_arena) {
764  header = ::google::protobuf::internal::GetOwnedMessage(
765  message_arena, header, submessage_arena);
766  }
767 
768  } else {
769 
770  }
771  header_ = header;
772  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SerializedState.header)
773 }
774 
775 // repeated .gz.msgs.SerializedEntity entities = 2;
776 inline int SerializedState::entities_size() const {
777  return entities_.size();
778 }
780  entities_.Clear();
781 }
782 inline ::gz::msgs::SerializedEntity* SerializedState::mutable_entities(int index) {
783  // @@protoc_insertion_point(field_mutable:gz.msgs.SerializedState.entities)
784  return entities_.Mutable(index);
785 }
786 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity >*
788  // @@protoc_insertion_point(field_mutable_list:gz.msgs.SerializedState.entities)
789  return &entities_;
790 }
791 inline const ::gz::msgs::SerializedEntity& SerializedState::entities(int index) const {
792  // @@protoc_insertion_point(field_get:gz.msgs.SerializedState.entities)
793  return entities_.Get(index);
794 }
795 inline ::gz::msgs::SerializedEntity* SerializedState::add_entities() {
796  // @@protoc_insertion_point(field_add:gz.msgs.SerializedState.entities)
797  return entities_.Add();
798 }
799 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity >&
801  // @@protoc_insertion_point(field_list:gz.msgs.SerializedState.entities)
802  return entities_;
803 }
804 
805 // -------------------------------------------------------------------
806 
807 // SerializedStep
808 
809 // .gz.msgs.WorldStatistics stats = 1;
810 inline bool SerializedStep::has_stats() const {
811  return this != internal_default_instance() && stats_ != NULL;
812 }
813 inline const ::gz::msgs::WorldStatistics& SerializedStep::_internal_stats() const {
814  return *stats_;
815 }
816 inline const ::gz::msgs::WorldStatistics& SerializedStep::stats() const {
817  const ::gz::msgs::WorldStatistics* p = stats_;
818  // @@protoc_insertion_point(field_get:gz.msgs.SerializedStep.stats)
819  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::WorldStatistics*>(
821 }
822 inline ::gz::msgs::WorldStatistics* SerializedStep::release_stats() {
823  // @@protoc_insertion_point(field_release:gz.msgs.SerializedStep.stats)
824 
825  ::gz::msgs::WorldStatistics* temp = stats_;
826  stats_ = NULL;
827  return temp;
828 }
829 inline ::gz::msgs::WorldStatistics* SerializedStep::mutable_stats() {
830 
831  if (stats_ == NULL) {
832  auto* p = CreateMaybeMessage<::gz::msgs::WorldStatistics>(GetArenaNoVirtual());
833  stats_ = p;
834  }
835  // @@protoc_insertion_point(field_mutable:gz.msgs.SerializedStep.stats)
836  return stats_;
837 }
839  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
840  if (message_arena == NULL) {
841  delete reinterpret_cast< ::google::protobuf::MessageLite*>(stats_);
842  }
843  if (stats) {
844  ::google::protobuf::Arena* submessage_arena = NULL;
845  if (message_arena != submessage_arena) {
846  stats = ::google::protobuf::internal::GetOwnedMessage(
847  message_arena, stats, submessage_arena);
848  }
849 
850  } else {
851 
852  }
853  stats_ = stats;
854  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SerializedStep.stats)
855 }
856 
857 // .gz.msgs.SerializedState state = 2;
858 inline bool SerializedStep::has_state() const {
859  return this != internal_default_instance() && state_ != NULL;
860 }
862  if (GetArenaNoVirtual() == NULL && state_ != NULL) {
863  delete state_;
864  }
865  state_ = NULL;
866 }
867 inline const ::gz::msgs::SerializedState& SerializedStep::_internal_state() const {
868  return *state_;
869 }
870 inline const ::gz::msgs::SerializedState& SerializedStep::state() const {
871  const ::gz::msgs::SerializedState* p = state_;
872  // @@protoc_insertion_point(field_get:gz.msgs.SerializedStep.state)
873  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::SerializedState*>(
875 }
876 inline ::gz::msgs::SerializedState* SerializedStep::release_state() {
877  // @@protoc_insertion_point(field_release:gz.msgs.SerializedStep.state)
878 
879  ::gz::msgs::SerializedState* temp = state_;
880  state_ = NULL;
881  return temp;
882 }
883 inline ::gz::msgs::SerializedState* SerializedStep::mutable_state() {
884 
885  if (state_ == NULL) {
886  auto* p = CreateMaybeMessage<::gz::msgs::SerializedState>(GetArenaNoVirtual());
887  state_ = p;
888  }
889  // @@protoc_insertion_point(field_mutable:gz.msgs.SerializedStep.state)
890  return state_;
891 }
893  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
894  if (message_arena == NULL) {
895  delete state_;
896  }
897  if (state) {
898  ::google::protobuf::Arena* submessage_arena = NULL;
899  if (message_arena != submessage_arena) {
900  state = ::google::protobuf::internal::GetOwnedMessage(
901  message_arena, state, submessage_arena);
902  }
903 
904  } else {
905 
906  }
907  state_ = state;
908  // @@protoc_insertion_point(field_set_allocated:gz.msgs.SerializedStep.state)
909 }
910 
911 #ifdef __GNUC__
912  #pragma GCC diagnostic pop
913 #endif // __GNUC__
914 // -------------------------------------------------------------------
915 
916 // -------------------------------------------------------------------
917 
918 // -------------------------------------------------------------------
919 
920 
921 // @@protoc_insertion_point(namespace_scope)
922 
923 } // namespace msgs
924 } // namespace gz
925 
926 // @@protoc_insertion_point(global_scope)
927 
928 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_2eproto