Ignition Msgs

API Reference

8.1.0
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_ignition_2fmsgs_2fworld_5fcontrol_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fworld_5fcontrol_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 #include "ignition/msgs/time.pb.h"
33 #ifndef _MSC_VER
34 #pragma GCC system_header
35 #else
36 #pragma warning(push)
37 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
38 #endif
39 #ifdef __linux__
40 #include <sys/sysmacros.h>
41 #endif
42 #include <memory>
43 #include <ignition/msgs/Export.hh>
44 // @@protoc_insertion_point(includes)
45 
46 namespace ignition {
47 namespace msgs {
48 
49 // Internal implementation detail -- do not call these.
53 
54 class WorldControl;
55 
56 // ===================================================================
57 
58 class IGNITION_MSGS_VISIBLE WorldControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldControl) */ {
59  public:
60  WorldControl();
61  virtual ~WorldControl();
62 
63  WorldControl(const WorldControl& from);
64 
65  inline WorldControl& operator=(const WorldControl& from) {
66  CopyFrom(from);
67  return *this;
68  }
69 
70  static const ::google::protobuf::Descriptor* descriptor();
71  static const WorldControl& default_instance();
72 
73  void Swap(WorldControl* other);
74 
75  // implements Message ----------------------------------------------
76 
77  inline WorldControl* New() const { return New(NULL); }
78 
79  WorldControl* New(::google::protobuf::Arena* arena) const;
80  void CopyFrom(const ::google::protobuf::Message& from);
81  void MergeFrom(const ::google::protobuf::Message& from);
82  void CopyFrom(const WorldControl& from);
83  void MergeFrom(const WorldControl& from);
84  void Clear();
85  bool IsInitialized() const;
86 
87  int ByteSize() const;
88  bool MergePartialFromCodedStream(
89  ::google::protobuf::io::CodedInputStream* input);
90  void SerializeWithCachedSizes(
91  ::google::protobuf::io::CodedOutputStream* output) const;
92  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
93  bool deterministic, ::google::protobuf::uint8* output) const;
94  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
95  return InternalSerializeWithCachedSizesToArray(false, output);
96  }
97  int GetCachedSize() const { return _cached_size_; }
98  private:
99  void SharedCtor();
100  void SharedDtor();
101  void SetCachedSize(int size) const;
102  void InternalSwap(WorldControl* other);
103  private:
104  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
105  return _internal_metadata_.arena();
106  }
107  inline void* MaybeArenaPtr() const {
108  return _internal_metadata_.raw_arena_ptr();
109  }
110  public:
111 
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .ignition.msgs.Header header = 1;
119  bool has_header() const;
120  void clear_header();
121  static const int kHeaderFieldNumber = 1;
122  const ::ignition::msgs::Header& header() const;
123  ::ignition::msgs::Header* mutable_header();
124  ::ignition::msgs::Header* release_header();
125  void set_allocated_header(::ignition::msgs::Header* header);
126 
127  // optional bool pause = 2;
128  void clear_pause();
129  static const int kPauseFieldNumber = 2;
130  bool pause() const;
131  void set_pause(bool value);
132 
133  // optional bool step = 3;
134  void clear_step();
135  static const int kStepFieldNumber = 3;
136  bool step() const;
137  void set_step(bool value);
138 
139  // optional uint32 multi_step = 4;
140  void clear_multi_step();
141  static const int kMultiStepFieldNumber = 4;
142  ::google::protobuf::uint32 multi_step() const;
143  void set_multi_step(::google::protobuf::uint32 value);
144 
145  // optional .ignition.msgs.WorldReset reset = 5;
146  bool has_reset() const;
147  void clear_reset();
148  static const int kResetFieldNumber = 5;
149  const ::ignition::msgs::WorldReset& reset() const;
150  ::ignition::msgs::WorldReset* mutable_reset();
151  ::ignition::msgs::WorldReset* release_reset();
152  void set_allocated_reset(::ignition::msgs::WorldReset* reset);
153 
154  // optional uint32 seed = 6;
155  void clear_seed();
156  static const int kSeedFieldNumber = 6;
157  ::google::protobuf::uint32 seed() const;
158  void set_seed(::google::protobuf::uint32 value);
159 
160  // optional .ignition.msgs.Time run_to_sim_time = 7;
161  bool has_run_to_sim_time() const;
162  void clear_run_to_sim_time();
163  static const int kRunToSimTimeFieldNumber = 7;
164  const ::ignition::msgs::Time& run_to_sim_time() const;
165  ::ignition::msgs::Time* mutable_run_to_sim_time();
166  ::ignition::msgs::Time* release_run_to_sim_time();
167  void set_allocated_run_to_sim_time(::ignition::msgs::Time* run_to_sim_time);
168 
169  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldControl)
170  private:
171 
172  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
173  bool _is_default_instance_;
174  ::ignition::msgs::Header* header_;
175  bool pause_;
176  bool step_;
177  ::google::protobuf::uint32 multi_step_;
179  ::ignition::msgs::Time* run_to_sim_time_;
180  ::google::protobuf::uint32 seed_;
181  mutable int _cached_size_;
182  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fcontrol_2eproto();
185 
186  void InitAsDefaultInstance();
187  static WorldControl* default_instance_;
188 };
189 // ===================================================================
190 
191 
192 // ===================================================================
193 
194 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
195 // WorldControl
196 
197 // optional .ignition.msgs.Header header = 1;
198 inline bool WorldControl::has_header() const {
199  return !_is_default_instance_ && header_ != NULL;
200 }
202  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
203  header_ = NULL;
204 }
205 inline const ::ignition::msgs::Header& WorldControl::header() const {
206  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.header)
207  return header_ != NULL ? *header_ : *default_instance_->header_;
208 }
209 inline ::ignition::msgs::Header* WorldControl::mutable_header() {
210 
211  if (header_ == NULL) {
212  header_ = new ::ignition::msgs::Header;
213  }
214  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControl.header)
215  return header_;
216 }
217 inline ::ignition::msgs::Header* WorldControl::release_header() {
218  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControl.header)
219 
220  ::ignition::msgs::Header* temp = header_;
221  header_ = NULL;
222  return temp;
223 }
225  delete header_;
226  header_ = header;
227  if (header) {
228 
229  } else {
230 
231  }
232  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControl.header)
233 }
234 
235 // optional bool pause = 2;
237  pause_ = false;
238 }
239 inline bool WorldControl::pause() const {
240  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.pause)
241  return pause_;
242 }
243 inline void WorldControl::set_pause(bool value) {
244 
245  pause_ = value;
246  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.pause)
247 }
248 
249 // optional bool step = 3;
251  step_ = false;
252 }
253 inline bool WorldControl::step() const {
254  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.step)
255  return step_;
256 }
257 inline void WorldControl::set_step(bool value) {
258 
259  step_ = value;
260  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.step)
261 }
262 
263 // optional uint32 multi_step = 4;
265  multi_step_ = 0u;
266 }
267 inline ::google::protobuf::uint32 WorldControl::multi_step() const {
268  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.multi_step)
269  return multi_step_;
270 }
271 inline void WorldControl::set_multi_step(::google::protobuf::uint32 value) {
272 
273  multi_step_ = value;
274  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.multi_step)
275 }
276 
277 // optional .ignition.msgs.WorldReset reset = 5;
278 inline bool WorldControl::has_reset() const {
279  return !_is_default_instance_ && reset_ != NULL;
280 }
282  if (GetArenaNoVirtual() == NULL && reset_ != NULL) delete reset_;
283  reset_ = NULL;
284 }
285 inline const ::ignition::msgs::WorldReset& WorldControl::reset() const {
286  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.reset)
287  return reset_ != NULL ? *reset_ : *default_instance_->reset_;
288 }
289 inline ::ignition::msgs::WorldReset* WorldControl::mutable_reset() {
290 
291  if (reset_ == NULL) {
292  reset_ = new ::ignition::msgs::WorldReset;
293  }
294  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControl.reset)
295  return reset_;
296 }
297 inline ::ignition::msgs::WorldReset* WorldControl::release_reset() {
298  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControl.reset)
299 
300  ::ignition::msgs::WorldReset* temp = reset_;
301  reset_ = NULL;
302  return temp;
303 }
305  delete reset_;
306  reset_ = reset;
307  if (reset) {
308 
309  } else {
310 
311  }
312  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControl.reset)
313 }
314 
315 // optional uint32 seed = 6;
317  seed_ = 0u;
318 }
319 inline ::google::protobuf::uint32 WorldControl::seed() const {
320  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.seed)
321  return seed_;
322 }
323 inline void WorldControl::set_seed(::google::protobuf::uint32 value) {
324 
325  seed_ = value;
326  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.seed)
327 }
328 
329 // optional .ignition.msgs.Time run_to_sim_time = 7;
331  return !_is_default_instance_ && run_to_sim_time_ != NULL;
332 }
334  if (GetArenaNoVirtual() == NULL && run_to_sim_time_ != NULL) delete run_to_sim_time_;
335  run_to_sim_time_ = NULL;
336 }
337 inline const ::ignition::msgs::Time& WorldControl::run_to_sim_time() const {
338  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.run_to_sim_time)
339  return run_to_sim_time_ != NULL ? *run_to_sim_time_ : *default_instance_->run_to_sim_time_;
340 }
341 inline ::ignition::msgs::Time* WorldControl::mutable_run_to_sim_time() {
342 
343  if (run_to_sim_time_ == NULL) {
344  run_to_sim_time_ = new ::ignition::msgs::Time;
345  }
346  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControl.run_to_sim_time)
347  return run_to_sim_time_;
348 }
349 inline ::ignition::msgs::Time* WorldControl::release_run_to_sim_time() {
350  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControl.run_to_sim_time)
351 
352  ::ignition::msgs::Time* temp = run_to_sim_time_;
353  run_to_sim_time_ = NULL;
354  return temp;
355 }
357  delete run_to_sim_time_;
358  run_to_sim_time_ = run_to_sim_time;
359  if (run_to_sim_time) {
360 
361  } else {
362 
363  }
364  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControl.run_to_sim_time)
365 }
366 
367 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
368 
373 // @@protoc_insertion_point(namespace_scope)
374 
375 } // namespace msgs
376 } // namespace ignition
377 
378 #ifdef _MSC_VER
379 #pragma warning(pop)
380 #endif
381 // @@protoc_insertion_point(global_scope)
382 
383 #endif // PROTOBUF_ignition_2fmsgs_2fworld_5fcontrol_2eproto__INCLUDED
bool has_header() const
Definition: world_control.pb.h:198
void clear_pause()
Definition: world_control.pb.h:236
std::shared_ptr< WorldControl > WorldControlSharedPtr
Definition: world_control.pb.h:371
void clear_run_to_sim_time()
Definition: world_control.pb.h:333
void set_multi_step(::google::protobuf::uint32 value)
Definition: world_control.pb.h:271
::google::protobuf::uint32 seed() const
Definition: world_control.pb.h:319
::ignition::msgs::WorldReset * release_reset()
Definition: world_control.pb.h:297
::ignition::msgs::Header * release_header()
Definition: world_control.pb.h:217
void protobuf_ShutdownFile_ignition_2fmsgs_2fworld_5fcontrol_2eproto()
void clear_step()
Definition: world_control.pb.h:250
::google::protobuf::uint32 multi_step() const
Definition: world_control.pb.h:267
WorldControl * New() const
Definition: world_control.pb.h:77
void set_allocated_run_to_sim_time(::ignition::msgs::Time *run_to_sim_time)
Definition: world_control.pb.h:356
bool pause() const
Definition: world_control.pb.h:239
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: world_control.pb.h:94
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fcontrol_2eproto()
void set_seed(::google::protobuf::uint32 value)
Definition: world_control.pb.h:323
Definition: header.pb.h:161
Definition: world_reset.pb.h:56
::ignition::msgs::Time * mutable_run_to_sim_time()
Definition: world_control.pb.h:341
void set_pause(bool value)
Definition: world_control.pb.h:243
void set_allocated_reset(::ignition::msgs::WorldReset *reset)
Definition: world_control.pb.h:304
::ignition::msgs::WorldReset * mutable_reset()
Definition: world_control.pb.h:289
const ::ignition::msgs::Header & header() const
Definition: world_control.pb.h:205
void protobuf_AssignDesc_ignition_2fmsgs_2fworld_5fcontrol_2eproto()
::ignition::msgs::Time * release_run_to_sim_time()
Definition: world_control.pb.h:349
bool step() const
Definition: world_control.pb.h:253
void clear_seed()
Definition: world_control.pb.h:316
std::unique_ptr< const WorldControl > ConstWorldControlUniquePtr
Definition: world_control.pb.h:370
const ::ignition::msgs::Time & run_to_sim_time() const
Definition: world_control.pb.h:337
Definition: world_control.pb.h:58
WorldControl & operator=(const WorldControl &from)
Definition: world_control.pb.h:65
void clear_header()
Definition: world_control.pb.h:201
int GetCachedSize() const
Definition: world_control.pb.h:97
::ignition::msgs::Header * mutable_header()
Definition: world_control.pb.h:209
STL class.
bool has_reset() const
Definition: world_control.pb.h:278
std::unique_ptr< WorldControl > WorldControlUniquePtr
Definition: world_control.pb.h:369
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_control.pb.h:224
void set_step(bool value)
Definition: world_control.pb.h:257
void clear_reset()
Definition: world_control.pb.h:281
void clear_multi_step()
Definition: world_control.pb.h:264
const ::ignition::msgs::WorldReset & reset() const
Definition: world_control.pb.h:285
Definition: time.pb.h:55
bool has_run_to_sim_time() const
Definition: world_control.pb.h:330
std::shared_ptr< const WorldControl > ConstWorldControlSharedPtr
Definition: world_control.pb.h:372