Gazebo Msgs

API Reference

9.5.1
world_control.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/world_control.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
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
14 #error your headers.
15 #endif
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.
20 #endif
21 
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> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "gz/msgs/world_reset.pb.h"
34 #include "gz/msgs/header.pb.h"
35 #include "gz/msgs/time.pb.h"
36 // @@protoc_insertion_point(includes)
37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fworld_5fcontrol_2eproto GZ_MSGS_VISIBLE
38 
40 // Internal implementation detail -- do not use these members.
41 struct GZ_MSGS_VISIBLE TableStruct {
42  static const ::google::protobuf::internal::ParseTableField entries[];
43  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
44  static const ::google::protobuf::internal::ParseTable schema[1];
45  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
46  static const ::google::protobuf::internal::SerializationTable serialization_table[];
47  static const ::google::protobuf::uint32 offsets[];
48 };
49 void GZ_MSGS_VISIBLE AddDescriptors();
50 } // namespace protobuf_gz_2fmsgs_2fworld_5fcontrol_2eproto
51 namespace gz {
52 namespace msgs {
53 class WorldControl;
54 class WorldControlDefaultTypeInternal;
55 GZ_MSGS_VISIBLE extern WorldControlDefaultTypeInternal _WorldControl_default_instance_;
56 } // namespace msgs
57 } // namespace gz
58 namespace google {
59 namespace protobuf {
60 template<> GZ_MSGS_VISIBLE ::gz::msgs::WorldControl* Arena::CreateMaybeMessage<::gz::msgs::WorldControl>(Arena*);
61 } // namespace protobuf
62 } // namespace google
63 namespace gz {
64 namespace msgs {
65 
66 // ===================================================================
67 
68 class GZ_MSGS_VISIBLE WorldControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.WorldControl) */ {
69  public:
70  WorldControl();
71  virtual ~WorldControl();
72 
73  WorldControl(const WorldControl& from);
74 
75  inline WorldControl& operator=(const WorldControl& from) {
76  CopyFrom(from);
77  return *this;
78  }
79  #if LANG_CXX11
80  WorldControl(WorldControl&& from) noexcept
81  : WorldControl() {
82  *this = ::std::move(from);
83  }
84 
85  inline WorldControl& operator=(WorldControl&& from) noexcept {
86  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
87  if (this != &from) InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93  #endif
94  static const ::google::protobuf::Descriptor* descriptor();
95  static const WorldControl& default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const WorldControl* internal_default_instance() {
99  return reinterpret_cast<const WorldControl*>(
101  }
102  static constexpr int kIndexInFileMessages =
103  0;
104 
105  void Swap(WorldControl* other);
106  friend void swap(WorldControl& a, WorldControl& b) {
107  a.Swap(&b);
108  }
109 
110  // implements Message ----------------------------------------------
111 
112  inline WorldControl* New() const final {
113  return CreateMaybeMessage<WorldControl>(NULL);
114  }
115 
116  WorldControl* New(::google::protobuf::Arena* arena) const final {
117  return CreateMaybeMessage<WorldControl>(arena);
118  }
119  void CopyFrom(const ::google::protobuf::Message& from) final;
120  void MergeFrom(const ::google::protobuf::Message& from) final;
121  void CopyFrom(const WorldControl& from);
122  void MergeFrom(const WorldControl& from);
123  void Clear() final;
124  bool IsInitialized() const final;
125 
126  size_t ByteSizeLong() const final;
127  bool MergePartialFromCodedStream(
128  ::google::protobuf::io::CodedInputStream* input) final;
129  void SerializeWithCachedSizes(
130  ::google::protobuf::io::CodedOutputStream* output) const final;
131  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
132  bool deterministic, ::google::protobuf::uint8* target) const final;
133  int GetCachedSize() const final { return _cached_size_.Get(); }
134 
135  private:
136  void SharedCtor();
137  void SharedDtor();
138  void SetCachedSize(int size) const final;
139  void InternalSwap(WorldControl* other);
140  private:
141  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
142  return NULL;
143  }
144  inline void* MaybeArenaPtr() const {
145  return NULL;
146  }
147  public:
148 
149  ::google::protobuf::Metadata GetMetadata() const final;
150 
151  // nested types ----------------------------------------------------
152 
153  // accessors -------------------------------------------------------
154 
155  // .gz.msgs.Header header = 1;
156  bool has_header() const;
157  void clear_header();
158  static const int kHeaderFieldNumber = 1;
159  private:
160  const ::gz::msgs::Header& _internal_header() const;
161  public:
162  const ::gz::msgs::Header& header() const;
163  ::gz::msgs::Header* release_header();
164  ::gz::msgs::Header* mutable_header();
165  void set_allocated_header(::gz::msgs::Header* header);
166 
167  // .gz.msgs.WorldReset reset = 5;
168  bool has_reset() const;
169  void clear_reset();
170  static const int kResetFieldNumber = 5;
171  private:
172  const ::gz::msgs::WorldReset& _internal_reset() const;
173  public:
174  const ::gz::msgs::WorldReset& reset() const;
175  ::gz::msgs::WorldReset* release_reset();
176  ::gz::msgs::WorldReset* mutable_reset();
177  void set_allocated_reset(::gz::msgs::WorldReset* reset);
178 
179  // .gz.msgs.Time run_to_sim_time = 7;
180  bool has_run_to_sim_time() const;
181  void clear_run_to_sim_time();
182  static const int kRunToSimTimeFieldNumber = 7;
183  private:
184  const ::gz::msgs::Time& _internal_run_to_sim_time() const;
185  public:
186  const ::gz::msgs::Time& run_to_sim_time() const;
187  ::gz::msgs::Time* release_run_to_sim_time();
188  ::gz::msgs::Time* mutable_run_to_sim_time();
189  void set_allocated_run_to_sim_time(::gz::msgs::Time* run_to_sim_time);
190 
191  // bool pause = 2;
192  void clear_pause();
193  static const int kPauseFieldNumber = 2;
194  bool pause() const;
195  void set_pause(bool value);
196 
197  // bool step = 3;
198  void clear_step();
199  static const int kStepFieldNumber = 3;
200  bool step() const;
201  void set_step(bool value);
202 
203  // uint32 multi_step = 4;
204  void clear_multi_step();
205  static const int kMultiStepFieldNumber = 4;
206  ::google::protobuf::uint32 multi_step() const;
207  void set_multi_step(::google::protobuf::uint32 value);
208 
209  // uint32 seed = 6;
210  void clear_seed();
211  static const int kSeedFieldNumber = 6;
212  ::google::protobuf::uint32 seed() const;
213  void set_seed(::google::protobuf::uint32 value);
214 
215  // @@protoc_insertion_point(class_scope:gz.msgs.WorldControl)
216  private:
217 
218  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
219  ::gz::msgs::Header* header_;
220  ::gz::msgs::WorldReset* reset_;
221  ::gz::msgs::Time* run_to_sim_time_;
222  bool pause_;
223  bool step_;
224  ::google::protobuf::uint32 multi_step_;
225  ::google::protobuf::uint32 seed_;
226  mutable ::google::protobuf::internal::CachedSize _cached_size_;
227  friend struct ::protobuf_gz_2fmsgs_2fworld_5fcontrol_2eproto::TableStruct;
228 };
229 // ===================================================================
230 
231 
232 // ===================================================================
233 
234 #ifdef __GNUC__
235  #pragma GCC diagnostic push
236  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
237 #endif // __GNUC__
238 // WorldControl
239 
240 // .gz.msgs.Header header = 1;
241 inline bool WorldControl::has_header() const {
242  return this != internal_default_instance() && header_ != NULL;
243 }
244 inline const ::gz::msgs::Header& WorldControl::_internal_header() const {
245  return *header_;
246 }
247 inline const ::gz::msgs::Header& WorldControl::header() const {
248  const ::gz::msgs::Header* p = header_;
249  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.header)
250  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
252 }
253 inline ::gz::msgs::Header* WorldControl::release_header() {
254  // @@protoc_insertion_point(field_release:gz.msgs.WorldControl.header)
255 
256  ::gz::msgs::Header* temp = header_;
257  header_ = NULL;
258  return temp;
259 }
260 inline ::gz::msgs::Header* WorldControl::mutable_header() {
261 
262  if (header_ == NULL) {
263  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
264  header_ = p;
265  }
266  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldControl.header)
267  return header_;
268 }
270  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
271  if (message_arena == NULL) {
272  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
273  }
274  if (header) {
275  ::google::protobuf::Arena* submessage_arena = NULL;
276  if (message_arena != submessage_arena) {
277  header = ::google::protobuf::internal::GetOwnedMessage(
278  message_arena, header, submessage_arena);
279  }
280 
281  } else {
282 
283  }
284  header_ = header;
285  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldControl.header)
286 }
287 
288 // bool pause = 2;
290  pause_ = false;
291 }
292 inline bool WorldControl::pause() const {
293  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.pause)
294  return pause_;
295 }
296 inline void WorldControl::set_pause(bool value) {
297 
298  pause_ = value;
299  // @@protoc_insertion_point(field_set:gz.msgs.WorldControl.pause)
300 }
301 
302 // bool step = 3;
304  step_ = false;
305 }
306 inline bool WorldControl::step() const {
307  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.step)
308  return step_;
309 }
310 inline void WorldControl::set_step(bool value) {
311 
312  step_ = value;
313  // @@protoc_insertion_point(field_set:gz.msgs.WorldControl.step)
314 }
315 
316 // uint32 multi_step = 4;
318  multi_step_ = 0u;
319 }
320 inline ::google::protobuf::uint32 WorldControl::multi_step() const {
321  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.multi_step)
322  return multi_step_;
323 }
324 inline void WorldControl::set_multi_step(::google::protobuf::uint32 value) {
325 
326  multi_step_ = value;
327  // @@protoc_insertion_point(field_set:gz.msgs.WorldControl.multi_step)
328 }
329 
330 // .gz.msgs.WorldReset reset = 5;
331 inline bool WorldControl::has_reset() const {
332  return this != internal_default_instance() && reset_ != NULL;
333 }
334 inline const ::gz::msgs::WorldReset& WorldControl::_internal_reset() const {
335  return *reset_;
336 }
337 inline const ::gz::msgs::WorldReset& WorldControl::reset() const {
338  const ::gz::msgs::WorldReset* p = reset_;
339  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.reset)
340  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::WorldReset*>(
342 }
343 inline ::gz::msgs::WorldReset* WorldControl::release_reset() {
344  // @@protoc_insertion_point(field_release:gz.msgs.WorldControl.reset)
345 
346  ::gz::msgs::WorldReset* temp = reset_;
347  reset_ = NULL;
348  return temp;
349 }
350 inline ::gz::msgs::WorldReset* WorldControl::mutable_reset() {
351 
352  if (reset_ == NULL) {
353  auto* p = CreateMaybeMessage<::gz::msgs::WorldReset>(GetArenaNoVirtual());
354  reset_ = p;
355  }
356  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldControl.reset)
357  return reset_;
358 }
360  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
361  if (message_arena == NULL) {
362  delete reinterpret_cast< ::google::protobuf::MessageLite*>(reset_);
363  }
364  if (reset) {
365  ::google::protobuf::Arena* submessage_arena = NULL;
366  if (message_arena != submessage_arena) {
367  reset = ::google::protobuf::internal::GetOwnedMessage(
368  message_arena, reset, submessage_arena);
369  }
370 
371  } else {
372 
373  }
374  reset_ = reset;
375  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldControl.reset)
376 }
377 
378 // uint32 seed = 6;
380  seed_ = 0u;
381 }
382 inline ::google::protobuf::uint32 WorldControl::seed() const {
383  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.seed)
384  return seed_;
385 }
386 inline void WorldControl::set_seed(::google::protobuf::uint32 value) {
387 
388  seed_ = value;
389  // @@protoc_insertion_point(field_set:gz.msgs.WorldControl.seed)
390 }
391 
392 // .gz.msgs.Time run_to_sim_time = 7;
394  return this != internal_default_instance() && run_to_sim_time_ != NULL;
395 }
396 inline const ::gz::msgs::Time& WorldControl::_internal_run_to_sim_time() const {
397  return *run_to_sim_time_;
398 }
399 inline const ::gz::msgs::Time& WorldControl::run_to_sim_time() const {
400  const ::gz::msgs::Time* p = run_to_sim_time_;
401  // @@protoc_insertion_point(field_get:gz.msgs.WorldControl.run_to_sim_time)
402  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Time*>(
404 }
405 inline ::gz::msgs::Time* WorldControl::release_run_to_sim_time() {
406  // @@protoc_insertion_point(field_release:gz.msgs.WorldControl.run_to_sim_time)
407 
408  ::gz::msgs::Time* temp = run_to_sim_time_;
409  run_to_sim_time_ = NULL;
410  return temp;
411 }
412 inline ::gz::msgs::Time* WorldControl::mutable_run_to_sim_time() {
413 
414  if (run_to_sim_time_ == NULL) {
415  auto* p = CreateMaybeMessage<::gz::msgs::Time>(GetArenaNoVirtual());
416  run_to_sim_time_ = p;
417  }
418  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldControl.run_to_sim_time)
419  return run_to_sim_time_;
420 }
422  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
423  if (message_arena == NULL) {
424  delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_to_sim_time_);
425  }
426  if (run_to_sim_time) {
427  ::google::protobuf::Arena* submessage_arena = NULL;
428  if (message_arena != submessage_arena) {
429  run_to_sim_time = ::google::protobuf::internal::GetOwnedMessage(
430  message_arena, run_to_sim_time, submessage_arena);
431  }
432 
433  } else {
434 
435  }
436  run_to_sim_time_ = run_to_sim_time;
437  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldControl.run_to_sim_time)
438 }
439 
440 #ifdef __GNUC__
441  #pragma GCC diagnostic pop
442 #endif // __GNUC__
443 
444 // @@protoc_insertion_point(namespace_scope)
445 
446 } // namespace msgs
447 } // namespace gz
448 
449 // @@protoc_insertion_point(global_scope)
450 
451 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fcontrol_2eproto