4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_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/unknown_field_set.h>
33 #include "gz/msgs/header.pb.h"
34 #include "gz/msgs/world_stats.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fserialized_2eproto GZ_MSGS_VISIBLE
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[];
52 class SerializedComponent;
53 class SerializedComponentDefaultTypeInternal;
55 class SerializedEntity;
56 class SerializedEntityDefaultTypeInternal;
58 class SerializedState;
59 class SerializedStateDefaultTypeInternal;
62 class SerializedStepDefaultTypeInternal;
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*);
93 *
this = ::std::move(from);
96 inline SerializedComponent& operator=(SerializedComponent&& from) noexcept {
97 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
98 if (
this != &from) InternalSwap(&from);
105 static const ::google::protobuf::Descriptor* descriptor();
106 static const SerializedComponent& default_instance();
108 static void InitAsDefaultInstance();
113 static constexpr
int kIndexInFileMessages =
124 return CreateMaybeMessage<SerializedComponent>(NULL);
128 return CreateMaybeMessage<SerializedComponent>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
135 bool IsInitialized() const final;
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(); }
149 void SetCachedSize(
int size)
const final;
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata GetMetadata() const final;
167 void clear_component();
168 static const
int kComponentFieldNumber = 2;
169 const ::
std::
string& component() const;
170 void set_component(const ::
std::
string& value);
174 void set_component(
const char* value);
175 void set_component(
const void* value,
size_t size);
178 void set_allocated_component(::
std::string* component);
182 static const int kTypeFieldNumber = 1;
183 ::google::protobuf::uint64 type()
const;
184 void set_type(::google::protobuf::uint64 value);
188 static const int kRemoveFieldNumber = 3;
190 void set_remove(
bool value);
195 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
196 ::google::protobuf::internal::ArenaStringPtr component_;
197 ::google::protobuf::uint64 type_;
199 mutable ::google::protobuf::internal::CachedSize _cached_size_;
200 friend struct ::protobuf_gz_2fmsgs_2fserialized_2eproto::TableStruct;
218 *
this = ::std::move(from);
221 inline SerializedEntity& operator=(SerializedEntity&& from) noexcept {
222 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
223 if (
this != &from) InternalSwap(&from);
230 static const ::google::protobuf::Descriptor* descriptor();
231 static const SerializedEntity& default_instance();
233 static void InitAsDefaultInstance();
238 static constexpr
int kIndexInFileMessages =
249 return CreateMaybeMessage<SerializedEntity>(NULL);
253 return CreateMaybeMessage<SerializedEntity>(arena);
255 void CopyFrom(const ::google::protobuf::Message& from)
final;
256 void MergeFrom(const ::google::protobuf::Message& from)
final;
260 bool IsInitialized() const final;
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(); }
274 void SetCachedSize(
int size)
const final;
277 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
280 inline void* MaybeArenaPtr()
const {
285 ::google::protobuf::Metadata GetMetadata() const final;
292 int components_size() const;
293 void clear_components();
294 static const
int kComponentsFieldNumber = 2;
297 mutable_components();
305 static const
int kIdFieldNumber = 1;
306 ::
google::protobuf::uint64
id() const;
307 void set_id(::
google::protobuf::uint64 value);
311 static const
int kRemoveFieldNumber = 3;
313 void set_remove(
bool value);
318 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
320 ::
google::protobuf::uint64 id_;
322 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
341 *
this = ::std::move(from);
344 inline SerializedState& operator=(SerializedState&& from) noexcept {
345 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
346 if (
this != &from) InternalSwap(&from);
353 static const ::google::protobuf::Descriptor* descriptor();
354 static const SerializedState& default_instance();
356 static void InitAsDefaultInstance();
361 static constexpr
int kIndexInFileMessages =
372 return CreateMaybeMessage<SerializedState>(NULL);
376 return CreateMaybeMessage<SerializedState>(arena);
378 void CopyFrom(const ::google::protobuf::Message& from)
final;
379 void MergeFrom(const ::google::protobuf::Message& from)
final;
383 bool IsInitialized() const final;
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(); }
397 void SetCachedSize(
int size)
const final;
400 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
403 inline void* MaybeArenaPtr()
const {
408 ::google::protobuf::Metadata GetMetadata() const final;
415 int entities_size() const;
416 void clear_entities();
417 static const
int kEntitiesFieldNumber = 2;
427 bool has_header() const;
429 static const
int kHeaderFieldNumber = 1;
431 const ::
gz::msgs::
Header& _internal_header() const;
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);
441 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
444 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
463 *
this = ::std::move(from);
466 inline SerializedStep& operator=(SerializedStep&& from) noexcept {
467 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
468 if (
this != &from) InternalSwap(&from);
475 static const ::google::protobuf::Descriptor* descriptor();
476 static const SerializedStep& default_instance();
478 static void InitAsDefaultInstance();
483 static constexpr
int kIndexInFileMessages =
494 return CreateMaybeMessage<SerializedStep>(NULL);
498 return CreateMaybeMessage<SerializedStep>(arena);
500 void CopyFrom(const ::google::protobuf::Message& from)
final;
501 void MergeFrom(const ::google::protobuf::Message& from)
final;
505 bool IsInitialized() const final;
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(); }
519 void SetCachedSize(
int size)
const final;
522 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
525 inline void* MaybeArenaPtr()
const {
530 ::google::protobuf::Metadata GetMetadata() const final;
537 bool has_stats() const;
539 static const
int kStatsFieldNumber = 1;
549 bool has_state() const;
551 static const
int kStateFieldNumber = 2;
563 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
566 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
575 #pragma GCC diagnostic push
576 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
582 type_ = GOOGLE_ULONGLONG(0);
596 component_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
600 return component_.GetNoArena();
604 component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
610 component_.SetNoArena(
611 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
616 GOOGLE_DCHECK(value != NULL);
618 component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
623 component_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
624 ::
std::string(
reinterpret_cast<const char*
>(value), size));
630 return component_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
635 return component_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
638 if (component != NULL) {
643 component_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), component);
667 id_ = GOOGLE_ULONGLONG(0);
681 return components_.size();
688 return components_.Mutable(index);
690 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent >*
697 return components_.Get(index);
701 return components_.Add();
703 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedComponent >&
729 return this != internal_default_instance() && header_ != NULL;
731 inline const ::gz::msgs::Header& SerializedState::_internal_header()
const {
735 const ::gz::msgs::Header* p = header_;
749 if (header_ == NULL) {
750 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
757 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
758 if (message_arena == NULL) {
759 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
777 return entities_.size();
784 return entities_.Mutable(index);
786 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity >*
793 return entities_.Get(index);
797 return entities_.Add();
799 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::SerializedEntity >&
811 return this != internal_default_instance() && stats_ != NULL;
813 inline const ::gz::msgs::WorldStatistics& SerializedStep::_internal_stats()
const {
817 const ::gz::msgs::WorldStatistics* p = stats_;
831 if (stats_ == NULL) {
832 auto* p = CreateMaybeMessage<::gz::msgs::WorldStatistics>(GetArenaNoVirtual());
839 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
840 if (message_arena == NULL) {
841 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
859 return this != internal_default_instance() && state_ != NULL;
862 if (GetArenaNoVirtual() == NULL && state_ != NULL) {
867 inline const ::gz::msgs::SerializedState& SerializedStep::_internal_state()
const {
871 const ::gz::msgs::SerializedState* p = state_;
885 if (state_ == NULL) {
886 auto* p = CreateMaybeMessage<::gz::msgs::SerializedState>(GetArenaNoVirtual());
893 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
894 if (message_arena == NULL) {
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);
912 #pragma GCC diagnostic pop
928 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fserialized_2eproto