4 #ifndef PROTOBUF_ignition_2fmsgs_2fserialized_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fserialized_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3000000 < 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. 22 #include <google/protobuf/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/unknown_field_set.h> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 53 class SerializedComponent;
54 class SerializedEntity;
55 class SerializedState;
72 static const ::google::protobuf::Descriptor* descriptor();
82 void CopyFrom(const ::google::protobuf::Message& from);
83 void MergeFrom(const ::google::protobuf::Message& from);
87 bool IsInitialized()
const;
90 bool MergePartialFromCodedStream(
91 ::google::protobuf::io::CodedInputStream* input);
92 void SerializeWithCachedSizes(
93 ::google::protobuf::io::CodedOutputStream* output)
const;
94 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
95 bool deterministic, ::google::protobuf::uint8* output)
const;
97 return InternalSerializeWithCachedSizesToArray(
false, output);
103 void SetCachedSize(
int size)
const;
106 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
107 return _internal_metadata_.arena();
109 inline void* MaybeArenaPtr()
const {
110 return _internal_metadata_.raw_arena_ptr();
114 ::google::protobuf::Metadata GetMetadata()
const;
122 static const int kTypeFieldNumber = 1;
123 ::google::protobuf::uint64 type()
const;
124 void set_type(::google::protobuf::uint64 value);
127 void clear_component();
128 static const int kComponentFieldNumber = 2;
129 const ::std::string& component()
const;
130 void set_component(const ::std::string& value);
131 void set_component(
const char* value);
132 void set_component(
const void* value,
size_t size);
135 void set_allocated_component(::
std::string* component);
139 static const int kRemoveFieldNumber = 3;
141 void set_remove(
bool value);
146 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
147 bool _is_default_instance_;
148 ::google::protobuf::uint64 type_;
149 ::google::protobuf::internal::ArenaStringPtr component_;
151 mutable int _cached_size_;
156 void InitAsDefaultInstance();
173 static const ::google::protobuf::Descriptor* descriptor();
183 void CopyFrom(const ::google::protobuf::Message& from);
184 void MergeFrom(const ::google::protobuf::Message& from);
188 bool IsInitialized()
const;
190 int ByteSize()
const;
191 bool MergePartialFromCodedStream(
192 ::google::protobuf::io::CodedInputStream* input);
193 void SerializeWithCachedSizes(
194 ::google::protobuf::io::CodedOutputStream* output)
const;
195 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
196 bool deterministic, ::google::protobuf::uint8* output)
const;
198 return InternalSerializeWithCachedSizesToArray(
false, output);
204 void SetCachedSize(
int size)
const;
207 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
208 return _internal_metadata_.arena();
210 inline void* MaybeArenaPtr()
const {
211 return _internal_metadata_.raw_arena_ptr();
215 ::google::protobuf::Metadata GetMetadata()
const;
223 static const int kIdFieldNumber = 1;
224 ::google::protobuf::uint64 id()
const;
225 void set_id(::google::protobuf::uint64 value);
228 int components_size()
const;
229 void clear_components();
230 static const int kComponentsFieldNumber = 2;
231 const ::ignition::msgs::SerializedComponent& components(
int index)
const;
234 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent >*
235 mutable_components();
236 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent >&
241 static const int kRemoveFieldNumber = 3;
243 void set_remove(
bool value);
248 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
249 bool _is_default_instance_;
250 ::google::protobuf::uint64 id_;
251 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent > components_;
253 mutable int _cached_size_;
258 void InitAsDefaultInstance();
275 static const ::google::protobuf::Descriptor* descriptor();
285 void CopyFrom(const ::google::protobuf::Message& from);
286 void MergeFrom(const ::google::protobuf::Message& from);
290 bool IsInitialized()
const;
292 int ByteSize()
const;
293 bool MergePartialFromCodedStream(
294 ::google::protobuf::io::CodedInputStream* input);
295 void SerializeWithCachedSizes(
296 ::google::protobuf::io::CodedOutputStream* output)
const;
297 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
298 bool deterministic, ::google::protobuf::uint8* output)
const;
300 return InternalSerializeWithCachedSizesToArray(
false, output);
306 void SetCachedSize(
int size)
const;
309 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
310 return _internal_metadata_.arena();
312 inline void* MaybeArenaPtr()
const {
313 return _internal_metadata_.raw_arena_ptr();
317 ::google::protobuf::Metadata GetMetadata()
const;
324 bool has_header()
const;
326 static const int kHeaderFieldNumber = 1;
327 const ::ignition::msgs::Header& header()
const;
333 int entities_size()
const;
334 void clear_entities();
335 static const int kEntitiesFieldNumber = 2;
336 const ::ignition::msgs::SerializedEntity& entities(
int index)
const;
339 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity >*
341 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity >&
347 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
348 bool _is_default_instance_;
350 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity > entities_;
351 mutable int _cached_size_;
356 void InitAsDefaultInstance();
361 class IGNITION_MSGS_VISIBLE
SerializedStep :
public ::google::protobuf::Message {
373 static const ::google::protobuf::Descriptor* descriptor();
383 void CopyFrom(const ::google::protobuf::Message& from);
384 void MergeFrom(const ::google::protobuf::Message& from);
388 bool IsInitialized()
const;
390 int ByteSize()
const;
391 bool MergePartialFromCodedStream(
392 ::google::protobuf::io::CodedInputStream* input);
393 void SerializeWithCachedSizes(
394 ::google::protobuf::io::CodedOutputStream* output)
const;
395 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
396 bool deterministic, ::google::protobuf::uint8* output)
const;
398 return InternalSerializeWithCachedSizesToArray(
false, output);
404 void SetCachedSize(
int size)
const;
407 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
408 return _internal_metadata_.arena();
410 inline void* MaybeArenaPtr()
const {
411 return _internal_metadata_.raw_arena_ptr();
415 ::google::protobuf::Metadata GetMetadata()
const;
422 bool has_stats()
const;
424 static const int kStatsFieldNumber = 1;
425 const ::ignition::msgs::WorldStatistics& stats()
const;
431 bool has_state()
const;
433 static const int kStateFieldNumber = 2;
434 const ::ignition::msgs::SerializedState& state()
const;
442 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
443 bool _is_default_instance_;
446 mutable int _cached_size_;
451 void InitAsDefaultInstance();
459 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 464 type_ = GOOGLE_ULONGLONG(0);
478 component_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
482 return component_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
486 component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
491 component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
496 component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
497 ::
std::string(reinterpret_cast<const char*>(value), size));
503 return component_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
508 return component_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
511 if (component != NULL) {
516 component_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), component);
540 id_ = GOOGLE_ULONGLONG(0);
554 return components_.size();
561 return components_.Get(index);
565 return components_.Mutable(index);
569 return components_.Add();
571 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent >*
576 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent >&
602 return !_is_default_instance_ && header_ != NULL;
605 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
610 return header_ != NULL ? *header_ : *default_instance_->header_;
614 if (header_ == NULL) {
615 header_ = new ::ignition::msgs::Header;
640 return entities_.size();
647 return entities_.Get(index);
651 return entities_.Mutable(index);
655 return entities_.Add();
657 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity >*
662 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity >&
674 return !_is_default_instance_ && stats_ != NULL;
677 if (GetArenaNoVirtual() == NULL && stats_ != NULL)
delete stats_;
682 return stats_ != NULL ? *stats_ : *default_instance_->stats_;
686 if (stats_ == NULL) {
687 stats_ = new ::ignition::msgs::WorldStatistics;
712 return !_is_default_instance_ && state_ != NULL;
715 if (GetArenaNoVirtual() == NULL && state_ != NULL)
delete state_;
720 return state_ != NULL ? *state_ : *default_instance_->state_;
724 if (state_ == NULL) {
725 state_ = new ::ignition::msgs::SerializedState;
748 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 782 #endif // PROTOBUF_ignition_2fmsgs_2fserialized_2eproto__INCLUDED bool has_stats() const
Definition: serialized.pb.h:673
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fserialized_2eproto()
::ignition::msgs::Header * mutable_header()
Definition: serialized.pb.h:612
::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity > * mutable_entities()
Definition: serialized.pb.h:658
int components_size() const
Definition: serialized.pb.h:553
::google::protobuf::uint64 type() const
Definition: serialized.pb.h:466
void clear_remove()
Definition: serialized.pb.h:521
void set_allocated_stats(::ignition::msgs::WorldStatistics *stats)
Definition: serialized.pb.h:699
SerializedComponent & operator=(const SerializedComponent &from)
Definition: serialized.pb.h:67
std::shared_ptr< SerializedComponent > SerializedComponentSharedPtr
Definition: serialized.pb.h:758
Definition: world_stats.pb.h:58
void set_type(::google::protobuf::uint64 value)
Definition: serialized.pb.h:470
void set_id(::google::protobuf::uint64 value)
Definition: serialized.pb.h:546
SerializedStep & operator=(const SerializedStep &from)
Definition: serialized.pb.h:368
const ::ignition::msgs::SerializedState & state() const
Definition: serialized.pb.h:718
void protobuf_AssignDesc_ignition_2fmsgs_2fserialized_2eproto()
SerializedStep * New() const
Definition: serialized.pb.h:380
std::unique_ptr< SerializedStep > SerializedStepUniquePtr
Definition: serialized.pb.h:768
bool remove() const
Definition: serialized.pb.h:586
std::shared_ptr< const SerializedState > ConstSerializedStateSharedPtr
Definition: serialized.pb.h:767
Definition: serialized.pb.h:161
void set_allocated_state(::ignition::msgs::SerializedState *state)
Definition: serialized.pb.h:737
::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent > * mutable_components()
Definition: serialized.pb.h:572
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedComponent > & components() const
Definition: serialized.pb.h:577
std::unique_ptr< SerializedState > SerializedStateUniquePtr
Definition: serialized.pb.h:764
bool remove() const
Definition: serialized.pb.h:524
void clear_header()
Definition: serialized.pb.h:604
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: serialized.pb.h:96
const ::std::string & component() const
Definition: serialized.pb.h:480
Definition: serialized.pb.h:60
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: serialized.pb.h:397
void set_allocated_header(::ignition::msgs::Header *header)
Definition: serialized.pb.h:627
void clear_id()
Definition: serialized.pb.h:539
void protobuf_ShutdownFile_ignition_2fmsgs_2fserialized_2eproto()
int GetCachedSize() const
Definition: serialized.pb.h:99
std::unique_ptr< SerializedComponent > SerializedComponentUniquePtr
Definition: serialized.pb.h:756
SerializedEntity & operator=(const SerializedEntity &from)
Definition: serialized.pb.h:168
SerializedEntity * New() const
Definition: serialized.pb.h:180
SerializedState * New() const
Definition: serialized.pb.h:282
std::shared_ptr< const SerializedEntity > ConstSerializedEntitySharedPtr
Definition: serialized.pb.h:763
::ignition::msgs::WorldStatistics * mutable_stats()
Definition: serialized.pb.h:684
::ignition::msgs::Header * release_header()
Definition: serialized.pb.h:620
void clear_component()
Definition: serialized.pb.h:477
std::shared_ptr< const SerializedStep > ConstSerializedStepSharedPtr
Definition: serialized.pb.h:771
std::shared_ptr< const SerializedComponent > ConstSerializedComponentSharedPtr
Definition: serialized.pb.h:759
void clear_entities()
Definition: serialized.pb.h:642
std::unique_ptr< SerializedEntity > SerializedEntityUniquePtr
Definition: serialized.pb.h:760
SerializedState & operator=(const SerializedState &from)
Definition: serialized.pb.h:270
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::SerializedEntity > & entities() const
Definition: serialized.pb.h:663
::std::string * release_component()
Definition: serialized.pb.h:505
void set_allocated_component(::std::string *component)
Definition: serialized.pb.h:510
void clear_type()
Definition: serialized.pb.h:463
std::unique_ptr< const SerializedState > ConstSerializedStateUniquePtr
Definition: serialized.pb.h:765
SerializedComponent * New() const
Definition: serialized.pb.h:79
void clear_remove()
Definition: serialized.pb.h:583
::ignition::msgs::WorldStatistics * release_stats()
Definition: serialized.pb.h:692
::google::protobuf::uint64 id() const
Definition: serialized.pb.h:542
::ignition::msgs::SerializedState * mutable_state()
Definition: serialized.pb.h:722
void clear_state()
Definition: serialized.pb.h:714
std::shared_ptr< SerializedEntity > SerializedEntitySharedPtr
Definition: serialized.pb.h:762
void set_remove(bool value)
Definition: serialized.pb.h:528
int GetCachedSize() const
Definition: serialized.pb.h:200
void set_remove(bool value)
Definition: serialized.pb.h:590
bool has_state() const
Definition: serialized.pb.h:711
const ::ignition::msgs::Header & header() const
Definition: serialized.pb.h:608
std::shared_ptr< SerializedState > SerializedStateSharedPtr
Definition: serialized.pb.h:766
int GetCachedSize() const
Definition: serialized.pb.h:400
std::unique_ptr< const SerializedEntity > ConstSerializedEntityUniquePtr
Definition: serialized.pb.h:761
Definition: serialized.pb.h:361
::ignition::msgs::SerializedComponent * add_components()
Definition: serialized.pb.h:567
int GetCachedSize() const
Definition: serialized.pb.h:302
void clear_components()
Definition: serialized.pb.h:556
bool has_header() const
Definition: serialized.pb.h:601
void clear_stats()
Definition: serialized.pb.h:676
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: serialized.pb.h:299
Definition: serialized.pb.h:263
void set_component(const ::std::string &value)
Definition: serialized.pb.h:484
::ignition::msgs::SerializedEntity * add_entities()
Definition: serialized.pb.h:653
std::unique_ptr< const SerializedComponent > ConstSerializedComponentUniquePtr
Definition: serialized.pb.h:757
std::unique_ptr< const SerializedStep > ConstSerializedStepUniquePtr
Definition: serialized.pb.h:769
std::shared_ptr< SerializedStep > SerializedStepSharedPtr
Definition: serialized.pb.h:770
::ignition::msgs::SerializedState * release_state()
Definition: serialized.pb.h:730
const ::ignition::msgs::WorldStatistics & stats() const
Definition: serialized.pb.h:680
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: serialized.pb.h:197
int entities_size() const
Definition: serialized.pb.h:639
::std::string * mutable_component()
Definition: serialized.pb.h:500