4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fsim_5fevent_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fsim_5fevent_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/world_stats.pb.h"
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fsim_5fevent_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[1];
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[];
53 class SimEventDefaultTypeInternal;
59 template<> GZ_MSGS_VISIBLE ::gz::msgs::SimEvent* Arena::CreateMaybeMessage<::gz::msgs::SimEvent>(Arena*);
67 class GZ_MSGS_VISIBLE
SimEvent :
public ::google::protobuf::Message {
81 *
this = ::std::move(from);
84 inline SimEvent& operator=(SimEvent&& from) noexcept {
85 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86 if (
this != &from) InternalSwap(&from);
93 static const ::google::protobuf::Descriptor* descriptor();
94 static const SimEvent& default_instance();
96 static void InitAsDefaultInstance();
98 return reinterpret_cast<const SimEvent*
>(
101 static constexpr
int kIndexInFileMessages =
112 return CreateMaybeMessage<SimEvent>(NULL);
116 return CreateMaybeMessage<SimEvent>(arena);
118 void CopyFrom(const ::google::protobuf::Message& from)
final;
119 void MergeFrom(const ::google::protobuf::Message& from)
final;
120 void CopyFrom(
const SimEvent& from);
121 void MergeFrom(
const SimEvent& from);
123 bool IsInitialized() const final;
125 size_t ByteSizeLong() const final;
126 bool MergePartialFromCodedStream(
127 ::
google::protobuf::io::CodedInputStream* input) final;
128 void SerializeWithCachedSizes(
129 ::
google::protobuf::io::CodedOutputStream* output) const final;
130 ::
google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
131 bool deterministic, ::
google::protobuf::uint8* target) const final;
132 int GetCachedSize() const final {
return _cached_size_.Get(); }
137 void SetCachedSize(
int size)
const final;
140 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
143 inline void* MaybeArenaPtr()
const {
148 ::google::protobuf::Metadata GetMetadata() const final;
156 static const
int kTypeFieldNumber = 3;
157 const ::
std::
string& type() const;
158 void set_type(const ::
std::
string& value);
162 void set_type(
const char* value);
163 void set_type(
const char* value,
size_t size);
170 static const int kNameFieldNumber = 4;
171 const ::std::string& name()
const;
172 void set_name(const ::std::string& value);
176 void set_name(
const char* value);
177 void set_name(
const char* value,
size_t size);
184 static const int kDataFieldNumber = 6;
185 const ::std::string& data()
const;
186 void set_data(const ::std::string& value);
190 void set_data(
const char* value);
191 void set_data(
const char* value,
size_t size);
197 bool has_header()
const;
199 static const int kHeaderFieldNumber = 1;
201 const ::gz::msgs::Header& _internal_header()
const;
203 const ::gz::msgs::Header& header()
const;
209 bool has_world_statistics()
const;
210 void clear_world_statistics();
211 static const int kWorldStatisticsFieldNumber = 5;
213 const ::gz::msgs::WorldStatistics& _internal_world_statistics()
const;
215 const ::gz::msgs::WorldStatistics& world_statistics()
const;
222 static const int kIdFieldNumber = 2;
223 ::google::protobuf::uint32 id()
const;
224 void set_id(::google::protobuf::uint32 value);
229 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
230 ::google::protobuf::internal::ArenaStringPtr type_;
231 ::google::protobuf::internal::ArenaStringPtr name_;
232 ::google::protobuf::internal::ArenaStringPtr data_;
235 ::google::protobuf::uint32 id_;
236 mutable ::google::protobuf::internal::CachedSize _cached_size_;
237 friend struct ::protobuf_gz_2fmsgs_2fsim_5fevent_2eproto::TableStruct;
245 #pragma GCC diagnostic push
246 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
254 inline const ::gz::msgs::Header& SimEvent::_internal_header()
const {
258 const ::gz::msgs::Header* p = header_;
272 if (header_ == NULL) {
273 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
280 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
281 if (message_arena == NULL) {
282 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(header_);
285 ::google::protobuf::Arena* submessage_arena = NULL;
286 if (message_arena != submessage_arena) {
287 header = ::google::protobuf::internal::GetOwnedMessage(
288 message_arena,
header, submessage_arena);
314 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
318 return type_.GetNoArena();
322 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
329 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
334 GOOGLE_DCHECK(value != NULL);
336 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
341 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
342 ::
std::string(
reinterpret_cast<const char*
>(value), size));
348 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
353 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
type);
367 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
371 return name_.GetNoArena();
375 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
382 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
387 GOOGLE_DCHECK(value != NULL);
389 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
394 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
395 ::
std::string(
reinterpret_cast<const char*
>(value), size));
401 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
406 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
414 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
422 inline const ::gz::msgs::WorldStatistics& SimEvent::_internal_world_statistics()
const {
423 return *world_statistics_;
426 const ::gz::msgs::WorldStatistics* p = world_statistics_;
435 world_statistics_ = NULL;
440 if (world_statistics_ == NULL) {
441 auto* p = CreateMaybeMessage<::gz::msgs::WorldStatistics>(GetArenaNoVirtual());
442 world_statistics_ = p;
445 return world_statistics_;
448 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
449 if (message_arena == NULL) {
450 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(world_statistics_);
453 ::google::protobuf::Arena* submessage_arena = NULL;
454 if (message_arena != submessage_arena) {
468 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
472 return data_.GetNoArena();
476 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
483 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
488 GOOGLE_DCHECK(value != NULL);
490 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
495 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
496 ::
std::string(
reinterpret_cast<const char*
>(value), size));
502 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
507 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
515 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
data);
520 #pragma GCC diagnostic pop
530 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fsim_5fevent_2eproto