4 #ifndef PROTOBUF_ignition_2fmsgs_2fsim_5fevent_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fsim_5fevent_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> 57 class IGNITION_MSGS_VISIBLE
SimEvent :
public ::google::protobuf::Message {
69 static const ::google::protobuf::Descriptor* descriptor();
70 static const SimEvent& default_instance();
78 SimEvent* New(::google::protobuf::Arena* arena)
const;
79 void CopyFrom(const ::google::protobuf::Message& from);
80 void MergeFrom(const ::google::protobuf::Message& from);
82 void MergeFrom(
const SimEvent& from);
84 bool IsInitialized()
const;
87 bool MergePartialFromCodedStream(
88 ::google::protobuf::io::CodedInputStream* input);
89 void SerializeWithCachedSizes(
90 ::google::protobuf::io::CodedOutputStream* output)
const;
91 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
92 bool deterministic, ::google::protobuf::uint8* output)
const;
94 return InternalSerializeWithCachedSizesToArray(
false, output);
100 void SetCachedSize(
int size)
const;
103 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
104 return _internal_metadata_.arena();
106 inline void* MaybeArenaPtr()
const {
107 return _internal_metadata_.raw_arena_ptr();
111 ::google::protobuf::Metadata GetMetadata()
const;
118 bool has_header()
const;
120 static const int kHeaderFieldNumber = 1;
121 const ::ignition::msgs::Header& header()
const;
128 static const int kIdFieldNumber = 2;
129 ::google::protobuf::uint32 id()
const;
130 void set_id(::google::protobuf::uint32 value);
134 static const int kTypeFieldNumber = 3;
135 const ::std::string& type()
const;
136 void set_type(const ::std::string& value);
137 void set_type(
const char* value);
138 void set_type(
const char* value,
size_t size);
145 static const int kNameFieldNumber = 4;
146 const ::std::string& name()
const;
147 void set_name(const ::std::string& value);
148 void set_name(
const char* value);
149 void set_name(
const char* value,
size_t size);
155 bool has_world_statistics()
const;
156 void clear_world_statistics();
157 static const int kWorldStatisticsFieldNumber = 5;
158 const ::ignition::msgs::WorldStatistics& world_statistics()
const;
165 static const int kDataFieldNumber = 6;
166 const ::std::string& data()
const;
167 void set_data(const ::std::string& value);
168 void set_data(
const char* value);
169 void set_data(
const char* value,
size_t size);
177 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
178 bool _is_default_instance_;
180 ::google::protobuf::internal::ArenaStringPtr type_;
181 ::google::protobuf::internal::ArenaStringPtr name_;
183 ::google::protobuf::internal::ArenaStringPtr data_;
184 ::google::protobuf::uint32 id_;
185 mutable int _cached_size_;
190 void InitAsDefaultInstance();
198 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 203 return !_is_default_instance_ && header_ != NULL;
206 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
211 return header_ != NULL ? *header_ : *default_instance_->header_;
215 if (header_ == NULL) {
216 header_ = new ::ignition::msgs::Header;
255 type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
259 return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
263 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
268 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
273 type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
274 ::
std::string(reinterpret_cast<const char*>(value), size));
280 return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
285 return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293 type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
299 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
303 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
312 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
317 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
318 ::
std::string(reinterpret_cast<const char*>(value), size));
324 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
329 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
343 return !_is_default_instance_ && world_statistics_ != NULL;
346 if (GetArenaNoVirtual() == NULL && world_statistics_ != NULL)
delete world_statistics_;
347 world_statistics_ = NULL;
351 return world_statistics_ != NULL ? *world_statistics_ : *default_instance_->world_statistics_;
355 if (world_statistics_ == NULL) {
356 world_statistics_ = new ::ignition::msgs::WorldStatistics;
359 return world_statistics_;
365 world_statistics_ = NULL;
369 delete world_statistics_;
370 world_statistics_ = world_statistics;
371 if (world_statistics) {
381 data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
385 return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
394 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
399 data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
400 ::
std::string(reinterpret_cast<const char*>(value), size));
406 return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
411 return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
419 data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
423 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 439 #endif // PROTOBUF_ignition_2fmsgs_2fsim_5fevent_2eproto__INCLUDED void set_data(const ::std::string &value)
Definition: sim_event.pb.h:387
const ::std::string & type() const
Definition: sim_event.pb.h:257
const ::std::string & name() const
Definition: sim_event.pb.h:301
void set_allocated_name(::std::string *name)
Definition: sim_event.pb.h:331
void set_allocated_header(::ignition::msgs::Header *header)
Definition: sim_event.pb.h:228
::std::string * mutable_name()
Definition: sim_event.pb.h:321
::google::protobuf::uint32 id() const
Definition: sim_event.pb.h:243
void clear_id()
Definition: sim_event.pb.h:240
Definition: world_stats.pb.h:58
void clear_name()
Definition: sim_event.pb.h:298
SimEvent * New() const
Definition: sim_event.pb.h:76
std::unique_ptr< const SimEvent > ConstSimEventUniquePtr
Definition: sim_event.pb.h:426
std::shared_ptr< SimEvent > SimEventSharedPtr
Definition: sim_event.pb.h:427
std::shared_ptr< const SimEvent > ConstSimEventSharedPtr
Definition: sim_event.pb.h:428
SimEvent & operator=(const SimEvent &from)
Definition: sim_event.pb.h:64
void clear_header()
Definition: sim_event.pb.h:205
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: sim_event.pb.h:93
void set_allocated_data(::std::string *data)
Definition: sim_event.pb.h:413
int GetCachedSize() const
Definition: sim_event.pb.h:96
void set_type(const ::std::string &value)
Definition: sim_event.pb.h:261
bool has_world_statistics() const
Definition: sim_event.pb.h:342
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsim_5fevent_2eproto()
void clear_world_statistics()
Definition: sim_event.pb.h:345
Definition: sim_event.pb.h:57
const ::std::string & data() const
Definition: sim_event.pb.h:383
void clear_data()
Definition: sim_event.pb.h:380
void protobuf_ShutdownFile_ignition_2fmsgs_2fsim_5fevent_2eproto()
void set_id(::google::protobuf::uint32 value)
Definition: sim_event.pb.h:247
const ::ignition::msgs::WorldStatistics & world_statistics() const
Definition: sim_event.pb.h:349
const ::ignition::msgs::Header & header() const
Definition: sim_event.pb.h:209
void set_name(const ::std::string &value)
Definition: sim_event.pb.h:305
void set_allocated_type(::std::string *type)
Definition: sim_event.pb.h:287
void protobuf_AssignDesc_ignition_2fmsgs_2fsim_5fevent_2eproto()
::std::string * release_type()
Definition: sim_event.pb.h:282
::ignition::msgs::WorldStatistics * mutable_world_statistics()
Definition: sim_event.pb.h:353
::std::string * mutable_type()
Definition: sim_event.pb.h:277
::std::string * release_name()
Definition: sim_event.pb.h:326
::std::string * mutable_data()
Definition: sim_event.pb.h:403
void set_allocated_world_statistics(::ignition::msgs::WorldStatistics *world_statistics)
Definition: sim_event.pb.h:368
::std::string * release_data()
Definition: sim_event.pb.h:408
::ignition::msgs::Header * mutable_header()
Definition: sim_event.pb.h:213
void clear_type()
Definition: sim_event.pb.h:254
std::unique_ptr< SimEvent > SimEventUniquePtr
Definition: sim_event.pb.h:425
::ignition::msgs::WorldStatistics * release_world_statistics()
Definition: sim_event.pb.h:361
::ignition::msgs::Header * release_header()
Definition: sim_event.pb.h:221
bool has_header() const
Definition: sim_event.pb.h:202