4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_5fmap_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_5fmap_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/map.h>
33 #include <google/protobuf/map_entry.h>
34 #include <google/protobuf/map_field_inl.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include "gz/msgs/header.pb.h"
37 #include "gz/msgs/world_stats.pb.h"
38 #include "gz/msgs/serialized.pb.h"
40 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fserialized_5fmap_2eproto GZ_MSGS_VISIBLE
45 static const ::google::protobuf::internal::ParseTableField entries[];
46 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
47 static const ::google::protobuf::internal::ParseTable schema[5];
48 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
49 static const ::google::protobuf::internal::SerializationTable serialization_table[];
50 static const ::google::protobuf::uint32 offsets[];
56 class SerializedEntityMap;
57 class SerializedEntityMapDefaultTypeInternal;
59 class SerializedEntityMap_ComponentsEntry_DoNotUse;
60 class SerializedEntityMap_ComponentsEntry_DoNotUseDefaultTypeInternal;
62 class SerializedStateMap;
63 class SerializedStateMapDefaultTypeInternal;
65 class SerializedStateMap_EntitiesEntry_DoNotUse;
66 class SerializedStateMap_EntitiesEntry_DoNotUseDefaultTypeInternal;
68 class SerializedStepMap;
69 class SerializedStepMapDefaultTypeInternal;
75 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedEntityMap* Arena::CreateMaybeMessage<::gz::msgs::SerializedEntityMap>(Arena*);
76 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedEntityMap_ComponentsEntry_DoNotUse* Arena::CreateMaybeMessage<::gz::msgs::SerializedEntityMap_ComponentsEntry_DoNotUse>(Arena*);
77 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedStateMap* Arena::CreateMaybeMessage<::gz::msgs::SerializedStateMap>(Arena*);
78 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedStateMap_EntitiesEntry_DoNotUse* Arena::CreateMaybeMessage<::gz::msgs::SerializedStateMap_EntitiesEntry_DoNotUse>(Arena*);
79 template<> GZ_MSGS_VISIBLE ::gz::msgs::SerializedStepMap* Arena::CreateMaybeMessage<::gz::msgs::SerializedStepMap>(Arena*);
88 ::google::protobuf::int64, ::gz::msgs::SerializedComponent,
89 ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
90 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
95 ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
96 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
102 void MergeFrom(const ::google::protobuf::Message& other)
final;
122 *
this = ::std::move(from);
125 inline SerializedEntityMap& operator=(SerializedEntityMap&& from) noexcept {
126 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
127 if (
this != &from) InternalSwap(&from);
134 static const ::google::protobuf::Descriptor* descriptor();
135 static const SerializedEntityMap& default_instance();
137 static void InitAsDefaultInstance();
142 static constexpr
int kIndexInFileMessages =
153 return CreateMaybeMessage<SerializedEntityMap>(NULL);
157 return CreateMaybeMessage<SerializedEntityMap>(arena);
159 void CopyFrom(const ::google::protobuf::Message& from)
final;
160 void MergeFrom(const ::google::protobuf::Message& from)
final;
164 bool IsInitialized() const final;
166 size_t ByteSizeLong() const final;
167 bool MergePartialFromCodedStream(
168 ::
google::protobuf::io::CodedInputStream* input) final;
169 void SerializeWithCachedSizes(
170 ::
google::protobuf::io::CodedOutputStream* output) const final;
171 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
172 bool deterministic, ::
google::protobuf::uint8* target) const final;
173 int GetCachedSize() const final {
return _cached_size_.Get(); }
178 void SetCachedSize(
int size)
const final;
181 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
184 inline void* MaybeArenaPtr()
const {
189 ::google::protobuf::Metadata GetMetadata() const final;
197 int components_size() const;
198 void clear_components();
199 static const
int kComponentsFieldNumber = 2;
203 mutable_components();
207 static const
int kIdFieldNumber = 1;
208 ::
google::protobuf::uint64
id() const;
209 void set_id(::
google::protobuf::uint64 value);
213 static const
int kRemoveFieldNumber = 3;
215 void set_remove(
bool value);
220 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221 ::
google::protobuf::internal::MapField<
224 ::
google::protobuf::internal::WireFormatLite::TYPE_INT64,
225 ::
google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
227 ::
google::protobuf::uint64 id_;
229 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
236 ::
google::protobuf::internal::WireFormatLite::TYPE_UINT64,
237 ::
google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
242 ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
243 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
249 void MergeFrom(const ::google::protobuf::Message& other)
final;
250 ::google::protobuf::Metadata GetMetadata()
const;
269 *
this = ::std::move(from);
272 inline SerializedStateMap& operator=(SerializedStateMap&& from) noexcept {
273 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
274 if (
this != &from) InternalSwap(&from);
281 static const ::google::protobuf::Descriptor* descriptor();
282 static const SerializedStateMap& default_instance();
284 static void InitAsDefaultInstance();
289 static constexpr
int kIndexInFileMessages =
300 return CreateMaybeMessage<SerializedStateMap>(NULL);
304 return CreateMaybeMessage<SerializedStateMap>(arena);
306 void CopyFrom(const ::google::protobuf::Message& from)
final;
307 void MergeFrom(const ::google::protobuf::Message& from)
final;
311 bool IsInitialized() const final;
313 size_t ByteSizeLong() const final;
314 bool MergePartialFromCodedStream(
315 ::
google::protobuf::io::CodedInputStream* input) final;
316 void SerializeWithCachedSizes(
317 ::
google::protobuf::io::CodedOutputStream* output) const final;
318 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
319 bool deterministic, ::
google::protobuf::uint8* target) const final;
320 int GetCachedSize() const final {
return _cached_size_.Get(); }
325 void SetCachedSize(
int size)
const final;
328 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
331 inline void* MaybeArenaPtr()
const {
336 ::google::protobuf::Metadata GetMetadata() const final;
344 int entities_size() const;
345 void clear_entities();
346 static const
int kEntitiesFieldNumber = 2;
353 bool has_header() const;
355 static const
int kHeaderFieldNumber = 1;
357 const ::
gz::msgs::
Header& _internal_header() const;
359 const ::
gz::msgs::
Header& header() const;
360 ::
gz::msgs::
Header* release_header();
361 ::
gz::msgs::
Header* mutable_header();
362 void set_allocated_header(::
gz::msgs::
Header* header);
365 void clear_has_one_time_component_changes();
366 static const
int kHasOneTimeComponentChangesFieldNumber = 3;
367 bool has_one_time_component_changes() const;
368 void set_has_one_time_component_changes(
bool value);
373 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
374 ::
google::protobuf::internal::MapField<
377 ::
google::protobuf::internal::WireFormatLite::TYPE_UINT64,
378 ::
google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
381 bool has_one_time_component_changes_;
382 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
401 *
this = ::std::move(from);
404 inline SerializedStepMap& operator=(SerializedStepMap&& from) noexcept {
405 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
406 if (
this != &from) InternalSwap(&from);
413 static const ::google::protobuf::Descriptor* descriptor();
414 static const SerializedStepMap& default_instance();
416 static void InitAsDefaultInstance();
421 static constexpr
int kIndexInFileMessages =
432 return CreateMaybeMessage<SerializedStepMap>(NULL);
436 return CreateMaybeMessage<SerializedStepMap>(arena);
438 void CopyFrom(const ::google::protobuf::Message& from)
final;
439 void MergeFrom(const ::google::protobuf::Message& from)
final;
443 bool IsInitialized() const final;
445 size_t ByteSizeLong() const final;
446 bool MergePartialFromCodedStream(
447 ::
google::protobuf::io::CodedInputStream* input) final;
448 void SerializeWithCachedSizes(
449 ::
google::protobuf::io::CodedOutputStream* output) const final;
450 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
451 bool deterministic, ::
google::protobuf::uint8* target) const final;
452 int GetCachedSize() const final {
return _cached_size_.Get(); }
457 void SetCachedSize(
int size)
const final;
460 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
463 inline void* MaybeArenaPtr()
const {
468 ::google::protobuf::Metadata GetMetadata() const final;
475 bool has_stats() const;
477 static const
int kStatsFieldNumber = 1;
487 bool has_state() const;
489 static const
int kStateFieldNumber = 2;
501 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
504 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
513 #pragma GCC diagnostic push
514 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
522 id_ = GOOGLE_ULONGLONG(0);
536 return components_.size();
538 inline const ::google::protobuf::Map< ::google::protobuf::int64, ::gz::msgs::SerializedComponent >&
541 return components_.GetMap();
543 inline ::google::protobuf::Map< ::google::protobuf::int64, ::gz::msgs::SerializedComponent >*
546 return components_.MutableMap();
571 return this != internal_default_instance() && header_ != NULL;
573 inline const ::gz::msgs::Header& SerializedStateMap::_internal_header()
const {
577 const ::gz::msgs::Header* p = header_;
591 if (header_ == NULL) {
592 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
599 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
600 if (message_arena == NULL) {
601 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
604 ::google::protobuf::Arena* submessage_arena = NULL;
605 if (message_arena != submessage_arena) {
606 header = ::google::protobuf::internal::GetOwnedMessage(
607 message_arena, header, submessage_arena);
619 return entities_.size();
624 inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::gz::msgs::SerializedEntityMap >&
627 return entities_.GetMap();
629 inline ::google::protobuf::Map< ::google::protobuf::uint64, ::gz::msgs::SerializedEntityMap >*
632 return entities_.MutableMap();
637 has_one_time_component_changes_ =
false;
641 return has_one_time_component_changes_;
645 has_one_time_component_changes_ = value;
655 return this != internal_default_instance() && stats_ != NULL;
657 inline const ::gz::msgs::WorldStatistics& SerializedStepMap::_internal_stats()
const {
661 const ::gz::msgs::WorldStatistics* p = stats_;
675 if (stats_ == NULL) {
676 auto* p = CreateMaybeMessage<::gz::msgs::WorldStatistics>(GetArenaNoVirtual());
683 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
684 if (message_arena == NULL) {
685 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(stats_);
688 ::google::protobuf::Arena* submessage_arena = NULL;
689 if (message_arena != submessage_arena) {
690 stats = ::google::protobuf::internal::GetOwnedMessage(
691 message_arena, stats, submessage_arena);
703 return this != internal_default_instance() && state_ != NULL;
706 if (GetArenaNoVirtual() == NULL && state_ != NULL) {
711 inline const ::gz::msgs::SerializedStateMap& SerializedStepMap::_internal_state()
const {
715 const ::gz::msgs::SerializedStateMap* p = state_;
729 if (state_ == NULL) {
730 auto* p = CreateMaybeMessage<::gz::msgs::SerializedStateMap>(GetArenaNoVirtual());
737 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
738 if (message_arena == NULL) {
742 ::google::protobuf::Arena* submessage_arena = NULL;
743 if (message_arena != submessage_arena) {
744 state = ::google::protobuf::internal::GetOwnedMessage(
745 message_arena, state, submessage_arena);
756 #pragma GCC diagnostic pop
774 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_5fmap_2eproto