Ignition Msgs

API Reference

5.6.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 #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 WorldControl;
54 
55 // ===================================================================
56 
57 class IGNITION_MSGS_VISIBLE WorldControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldControl) */ {
58  public:
59  WorldControl();
60  virtual ~WorldControl();
61 
62  WorldControl(const WorldControl& from);
63 
64  inline WorldControl& operator=(const WorldControl& from) {
65  CopyFrom(from);
66  return *this;
67  }
68 
69  static const ::google::protobuf::Descriptor* descriptor();
70  static const WorldControl& default_instance();
71 
72  void Swap(WorldControl* other);
73 
74  // implements Message ----------------------------------------------
75 
76  inline WorldControl* New() const { return New(NULL); }
77 
78  WorldControl* 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 WorldControl& from);
82  void MergeFrom(const WorldControl& 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(WorldControl* 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 bool pause = 2;
127  void clear_pause();
128  static const int kPauseFieldNumber = 2;
129  bool pause() const;
130  void set_pause(bool value);
131 
132  // optional bool step = 3;
133  void clear_step();
134  static const int kStepFieldNumber = 3;
135  bool step() const;
136  void set_step(bool value);
137 
138  // optional uint32 multi_step = 4;
139  void clear_multi_step();
140  static const int kMultiStepFieldNumber = 4;
141  ::google::protobuf::uint32 multi_step() const;
142  void set_multi_step(::google::protobuf::uint32 value);
143 
144  // optional .ignition.msgs.WorldReset reset = 5;
145  bool has_reset() const;
146  void clear_reset();
147  static const int kResetFieldNumber = 5;
148  const ::ignition::msgs::WorldReset& reset() const;
149  ::ignition::msgs::WorldReset* mutable_reset();
150  ::ignition::msgs::WorldReset* release_reset();
151  void set_allocated_reset(::ignition::msgs::WorldReset* reset);
152 
153  // optional uint32 seed = 6;
154  void clear_seed();
155  static const int kSeedFieldNumber = 6;
156  ::google::protobuf::uint32 seed() const;
157  void set_seed(::google::protobuf::uint32 value);
158 
159  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldControl)
160  private:
161 
162  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
163  bool _is_default_instance_;
164  ::ignition::msgs::Header* header_;
165  bool pause_;
166  bool step_;
167  ::google::protobuf::uint32 multi_step_;
169  ::google::protobuf::uint32 seed_;
170  mutable int _cached_size_;
171  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fcontrol_2eproto();
174 
175  void InitAsDefaultInstance();
176  static WorldControl* default_instance_;
177 };
178 // ===================================================================
179 
180 
181 // ===================================================================
182 
183 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
184 // WorldControl
185 
186 // optional .ignition.msgs.Header header = 1;
187 inline bool WorldControl::has_header() const {
188  return !_is_default_instance_ && header_ != NULL;
189 }
191  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
192  header_ = NULL;
193 }
194 inline const ::ignition::msgs::Header& WorldControl::header() const {
195  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.header)
196  return header_ != NULL ? *header_ : *default_instance_->header_;
197 }
198 inline ::ignition::msgs::Header* WorldControl::mutable_header() {
199 
200  if (header_ == NULL) {
201  header_ = new ::ignition::msgs::Header;
202  }
203  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControl.header)
204  return header_;
205 }
206 inline ::ignition::msgs::Header* WorldControl::release_header() {
207  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControl.header)
208 
209  ::ignition::msgs::Header* temp = header_;
210  header_ = NULL;
211  return temp;
212 }
214  delete header_;
215  header_ = header;
216  if (header) {
217 
218  } else {
219 
220  }
221  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControl.header)
222 }
223 
224 // optional bool pause = 2;
226  pause_ = false;
227 }
228 inline bool WorldControl::pause() const {
229  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.pause)
230  return pause_;
231 }
232 inline void WorldControl::set_pause(bool value) {
233 
234  pause_ = value;
235  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.pause)
236 }
237 
238 // optional bool step = 3;
240  step_ = false;
241 }
242 inline bool WorldControl::step() const {
243  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.step)
244  return step_;
245 }
246 inline void WorldControl::set_step(bool value) {
247 
248  step_ = value;
249  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.step)
250 }
251 
252 // optional uint32 multi_step = 4;
254  multi_step_ = 0u;
255 }
256 inline ::google::protobuf::uint32 WorldControl::multi_step() const {
257  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.multi_step)
258  return multi_step_;
259 }
260 inline void WorldControl::set_multi_step(::google::protobuf::uint32 value) {
261 
262  multi_step_ = value;
263  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.multi_step)
264 }
265 
266 // optional .ignition.msgs.WorldReset reset = 5;
267 inline bool WorldControl::has_reset() const {
268  return !_is_default_instance_ && reset_ != NULL;
269 }
271  if (GetArenaNoVirtual() == NULL && reset_ != NULL) delete reset_;
272  reset_ = NULL;
273 }
274 inline const ::ignition::msgs::WorldReset& WorldControl::reset() const {
275  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.reset)
276  return reset_ != NULL ? *reset_ : *default_instance_->reset_;
277 }
278 inline ::ignition::msgs::WorldReset* WorldControl::mutable_reset() {
279 
280  if (reset_ == NULL) {
281  reset_ = new ::ignition::msgs::WorldReset;
282  }
283  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldControl.reset)
284  return reset_;
285 }
286 inline ::ignition::msgs::WorldReset* WorldControl::release_reset() {
287  // @@protoc_insertion_point(field_release:ignition.msgs.WorldControl.reset)
288 
289  ::ignition::msgs::WorldReset* temp = reset_;
290  reset_ = NULL;
291  return temp;
292 }
294  delete reset_;
295  reset_ = reset;
296  if (reset) {
297 
298  } else {
299 
300  }
301  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldControl.reset)
302 }
303 
304 // optional uint32 seed = 6;
306  seed_ = 0u;
307 }
308 inline ::google::protobuf::uint32 WorldControl::seed() const {
309  // @@protoc_insertion_point(field_get:ignition.msgs.WorldControl.seed)
310  return seed_;
311 }
312 inline void WorldControl::set_seed(::google::protobuf::uint32 value) {
313 
314  seed_ = value;
315  // @@protoc_insertion_point(field_set:ignition.msgs.WorldControl.seed)
316 }
317 
318 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
319 
324 // @@protoc_insertion_point(namespace_scope)
325 
326 } // namespace msgs
327 } // namespace ignition
328 
329 #ifdef _MSC_VER
330 #pragma warning(pop)
331 #endif
332 // @@protoc_insertion_point(global_scope)
333 
334 #endif // PROTOBUF_ignition_2fmsgs_2fworld_5fcontrol_2eproto__INCLUDED
bool has_header() const
Definition: world_control.pb.h:187
void clear_pause()
Definition: world_control.pb.h:225
std::shared_ptr< WorldControl > WorldControlSharedPtr
Definition: world_control.pb.h:322
void set_multi_step(::google::protobuf::uint32 value)
Definition: world_control.pb.h:260
::google::protobuf::uint32 seed() const
Definition: world_control.pb.h:308
::ignition::msgs::WorldReset * release_reset()
Definition: world_control.pb.h:286
::ignition::msgs::Header * release_header()
Definition: world_control.pb.h:206
void protobuf_ShutdownFile_ignition_2fmsgs_2fworld_5fcontrol_2eproto()
void clear_step()
Definition: world_control.pb.h:239
::google::protobuf::uint32 multi_step() const
Definition: world_control.pb.h:256
WorldControl * New() const
Definition: world_control.pb.h:76
bool pause() const
Definition: world_control.pb.h:228
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: world_control.pb.h:93
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fcontrol_2eproto()
void set_seed(::google::protobuf::uint32 value)
Definition: world_control.pb.h:312
Definition: header.pb.h:161
Definition: world_reset.pb.h:56
void set_pause(bool value)
Definition: world_control.pb.h:232
void set_allocated_reset(::ignition::msgs::WorldReset *reset)
Definition: world_control.pb.h:293
::ignition::msgs::WorldReset * mutable_reset()
Definition: world_control.pb.h:278
const ::ignition::msgs::Header & header() const
Definition: world_control.pb.h:194
void protobuf_AssignDesc_ignition_2fmsgs_2fworld_5fcontrol_2eproto()
bool step() const
Definition: world_control.pb.h:242
void clear_seed()
Definition: world_control.pb.h:305
std::unique_ptr< const WorldControl > ConstWorldControlUniquePtr
Definition: world_control.pb.h:321
Definition: world_control.pb.h:57
WorldControl & operator=(const WorldControl &from)
Definition: world_control.pb.h:64
void clear_header()
Definition: world_control.pb.h:190
int GetCachedSize() const
Definition: world_control.pb.h:96
::ignition::msgs::Header * mutable_header()
Definition: world_control.pb.h:198
STL class.
bool has_reset() const
Definition: world_control.pb.h:267
std::unique_ptr< WorldControl > WorldControlUniquePtr
Definition: world_control.pb.h:320
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_control.pb.h:213
void set_step(bool value)
Definition: world_control.pb.h:246
void clear_reset()
Definition: world_control.pb.h:270
void clear_multi_step()
Definition: world_control.pb.h:253
const ::ignition::msgs::WorldReset & reset() const
Definition: world_control.pb.h:274
std::shared_ptr< const WorldControl > ConstWorldControlSharedPtr
Definition: world_control.pb.h:323