Ignition Msgs

API Reference

8.1.0
sim_event.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/sim_event.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fsim_5fevent_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fsim_5fevent_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class SimEvent;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE SimEvent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.SimEvent) */ {
58  public:
59  SimEvent();
60  virtual ~SimEvent();
61 
62  SimEvent(const SimEvent& from);
63 
64  inline SimEvent& operator=(const SimEvent& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const SimEvent& default_instance();
71 
72  void Swap(SimEvent* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline SimEvent* New() const { return New(NULL); }
77 
78  SimEvent* New(::google::protobuf::Arena* arena) const;
79  void CopyFrom(const ::google::protobuf::Message& from);
80  void MergeFrom(const ::google::protobuf::Message& from);
81  void CopyFrom(const SimEvent& from);
82  void MergeFrom(const SimEvent& from);
83  void Clear();
84  bool IsInitialized() const;
85 
86  int ByteSize() 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;
93  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
94  return InternalSerializeWithCachedSizesToArray(false, output);
95  }
96  int GetCachedSize() const { return _cached_size_; }
97  private:
98  void SharedCtor();
99  void SharedDtor();
100  void SetCachedSize(int size) const;
101  void InternalSwap(SimEvent* other);
102  private:
103  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
104  return _internal_metadata_.arena();
105  }
106  inline void* MaybeArenaPtr() const {
107  return _internal_metadata_.raw_arena_ptr();
108  }
109  public:
110 
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .ignition.msgs.Header header = 1;
118  bool has_header() const;
119  void clear_header();
120  static const int kHeaderFieldNumber = 1;
121  const ::ignition::msgs::Header& header() const;
122  ::ignition::msgs::Header* mutable_header();
123  ::ignition::msgs::Header* release_header();
124  void set_allocated_header(::ignition::msgs::Header* header);
125 
126  // optional uint32 id = 2;
127  void clear_id();
128  static const int kIdFieldNumber = 2;
129  ::google::protobuf::uint32 id() const;
130  void set_id(::google::protobuf::uint32 value);
131 
132  // optional string type = 3;
133  void clear_type();
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);
139  ::std::string* mutable_type();
140  ::std::string* release_type();
141  void set_allocated_type(::std::string* type);
142 
143  // optional string name = 4;
144  void clear_name();
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);
150  ::std::string* mutable_name();
151  ::std::string* release_name();
152  void set_allocated_name(::std::string* name);
153 
154  // optional .ignition.msgs.WorldStatistics world_statistics = 5;
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;
159  ::ignition::msgs::WorldStatistics* mutable_world_statistics();
160  ::ignition::msgs::WorldStatistics* release_world_statistics();
161  void set_allocated_world_statistics(::ignition::msgs::WorldStatistics* world_statistics);
162 
163  // optional string data = 6;
164  void clear_data();
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);
170  ::std::string* mutable_data();
171  ::std::string* release_data();
172  void set_allocated_data(::std::string* data);
173 
174  // @@protoc_insertion_point(class_scope:ignition.msgs.SimEvent)
175  private:
176 
177  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
178  bool _is_default_instance_;
179  ::ignition::msgs::Header* header_;
180  ::google::protobuf::internal::ArenaStringPtr type_;
181  ::google::protobuf::internal::ArenaStringPtr name_;
182  ::ignition::msgs::WorldStatistics* world_statistics_;
183  ::google::protobuf::internal::ArenaStringPtr data_;
184  ::google::protobuf::uint32 id_;
185  mutable int _cached_size_;
186  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fsim_5fevent_2eproto();
189 
190  void InitAsDefaultInstance();
191  static SimEvent* default_instance_;
192 };
193 // ===================================================================
194 
195 
196 // ===================================================================
197 
198 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
199 // SimEvent
200 
201 // optional .ignition.msgs.Header header = 1;
202 inline bool SimEvent::has_header() const {
203  return !_is_default_instance_ && header_ != NULL;
204 }
205 inline void SimEvent::clear_header() {
206  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
207  header_ = NULL;
208 }
209 inline const ::ignition::msgs::Header& SimEvent::header() const {
210  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.header)
211  return header_ != NULL ? *header_ : *default_instance_->header_;
212 }
213 inline ::ignition::msgs::Header* SimEvent::mutable_header() {
214 
215  if (header_ == NULL) {
216  header_ = new ::ignition::msgs::Header;
217  }
218  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.header)
219  return header_;
220 }
221 inline ::ignition::msgs::Header* SimEvent::release_header() {
222  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.header)
223 
224  ::ignition::msgs::Header* temp = header_;
225  header_ = NULL;
226  return temp;
227 }
229  delete header_;
230  header_ = header;
231  if (header) {
232 
233  } else {
234 
235  }
236  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.header)
237 }
238 
239 // optional uint32 id = 2;
240 inline void SimEvent::clear_id() {
241  id_ = 0u;
242 }
243 inline ::google::protobuf::uint32 SimEvent::id() const {
244  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.id)
245  return id_;
246 }
247 inline void SimEvent::set_id(::google::protobuf::uint32 value) {
248 
249  id_ = value;
250  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.id)
251 }
252 
253 // optional string type = 3;
254 inline void SimEvent::clear_type() {
255  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
256 }
257 inline const ::std::string& SimEvent::type() const {
258  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.type)
259  return type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
260 }
261 inline void SimEvent::set_type(const ::std::string& value) {
262 
263  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
264  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.type)
265 }
266 inline void SimEvent::set_type(const char* value) {
267 
268  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
269  // @@protoc_insertion_point(field_set_char:ignition.msgs.SimEvent.type)
270 }
271 inline void SimEvent::set_type(const char* value, size_t size) {
272 
273  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
274  ::std::string(reinterpret_cast<const char*>(value), size));
275  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.SimEvent.type)
276 }
277 inline ::std::string* SimEvent::mutable_type() {
278 
279  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.type)
280  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
281 }
282 inline ::std::string* SimEvent::release_type() {
283  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.type)
284 
285  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
286 }
288  if (type != NULL) {
289 
290  } else {
291 
292  }
293  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
294  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.type)
295 }
296 
297 // optional string name = 4;
298 inline void SimEvent::clear_name() {
299  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 }
301 inline const ::std::string& SimEvent::name() const {
302  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.name)
303  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
304 }
305 inline void SimEvent::set_name(const ::std::string& value) {
306 
307  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
308  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.name)
309 }
310 inline void SimEvent::set_name(const char* value) {
311 
312  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
313  // @@protoc_insertion_point(field_set_char:ignition.msgs.SimEvent.name)
314 }
315 inline void SimEvent::set_name(const char* value, size_t size) {
316 
317  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
318  ::std::string(reinterpret_cast<const char*>(value), size));
319  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.SimEvent.name)
320 }
321 inline ::std::string* SimEvent::mutable_name() {
322 
323  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.name)
324  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325 }
326 inline ::std::string* SimEvent::release_name() {
327  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.name)
328 
329  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
330 }
332  if (name != NULL) {
333 
334  } else {
335 
336  }
337  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
338  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.name)
339 }
340 
341 // optional .ignition.msgs.WorldStatistics world_statistics = 5;
342 inline bool SimEvent::has_world_statistics() const {
343  return !_is_default_instance_ && world_statistics_ != NULL;
344 }
346  if (GetArenaNoVirtual() == NULL && world_statistics_ != NULL) delete world_statistics_;
347  world_statistics_ = NULL;
348 }
349 inline const ::ignition::msgs::WorldStatistics& SimEvent::world_statistics() const {
350  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.world_statistics)
351  return world_statistics_ != NULL ? *world_statistics_ : *default_instance_->world_statistics_;
352 }
353 inline ::ignition::msgs::WorldStatistics* SimEvent::mutable_world_statistics() {
354 
355  if (world_statistics_ == NULL) {
356  world_statistics_ = new ::ignition::msgs::WorldStatistics;
357  }
358  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.world_statistics)
359  return world_statistics_;
360 }
361 inline ::ignition::msgs::WorldStatistics* SimEvent::release_world_statistics() {
362  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.world_statistics)
363 
364  ::ignition::msgs::WorldStatistics* temp = world_statistics_;
365  world_statistics_ = NULL;
366  return temp;
367 }
369  delete world_statistics_;
370  world_statistics_ = world_statistics;
371  if (world_statistics) {
372 
373  } else {
374 
375  }
376  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.world_statistics)
377 }
378 
379 // optional string data = 6;
380 inline void SimEvent::clear_data() {
381  data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
382 }
383 inline const ::std::string& SimEvent::data() const {
384  // @@protoc_insertion_point(field_get:ignition.msgs.SimEvent.data)
385  return data_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
386 }
387 inline void SimEvent::set_data(const ::std::string& value) {
388 
389  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
390  // @@protoc_insertion_point(field_set:ignition.msgs.SimEvent.data)
391 }
392 inline void SimEvent::set_data(const char* value) {
393 
394  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
395  // @@protoc_insertion_point(field_set_char:ignition.msgs.SimEvent.data)
396 }
397 inline void SimEvent::set_data(const char* value, size_t size) {
398 
399  data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
400  ::std::string(reinterpret_cast<const char*>(value), size));
401  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.SimEvent.data)
402 }
403 inline ::std::string* SimEvent::mutable_data() {
404 
405  // @@protoc_insertion_point(field_mutable:ignition.msgs.SimEvent.data)
406  return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
407 }
408 inline ::std::string* SimEvent::release_data() {
409  // @@protoc_insertion_point(field_release:ignition.msgs.SimEvent.data)
410 
411  return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
412 }
414  if (data != NULL) {
415 
416  } else {
417 
418  }
419  data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
420  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.SimEvent.data)
421 }
422 
423 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
424 
429 // @@protoc_insertion_point(namespace_scope)
430 
431 } // namespace msgs
432 } // namespace ignition
433 
434 #ifdef _MSC_VER
435 #pragma warning(pop)
436 #endif
437 // @@protoc_insertion_point(global_scope)
438 
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
Definition: header.pb.h:161
STL class.
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
STL class.
::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