Gazebo Msgs

API Reference

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