Ignition Msgs

API Reference

8.0.0~pre1
server_control.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/server_control.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fserver_5fcontrol_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fserver_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>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class ServerControl;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE ServerControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.ServerControl) */ {
57  public:
58  ServerControl();
59  virtual ~ServerControl();
60 
61  ServerControl(const ServerControl& from);
62 
63  inline ServerControl& operator=(const ServerControl& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const ServerControl& default_instance();
70 
71  void Swap(ServerControl* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline ServerControl* New() const { return New(NULL); }
76 
77  ServerControl* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const ServerControl& from);
81  void MergeFrom(const ServerControl& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(ServerControl* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional string save_world_name = 2;
126  void clear_save_world_name();
127  static const int kSaveWorldNameFieldNumber = 2;
128  const ::std::string& save_world_name() const;
129  void set_save_world_name(const ::std::string& value);
130  void set_save_world_name(const char* value);
131  void set_save_world_name(const char* value, size_t size);
132  ::std::string* mutable_save_world_name();
133  ::std::string* release_save_world_name();
134  void set_allocated_save_world_name(::std::string* save_world_name);
135 
136  // optional string save_filename = 3;
137  void clear_save_filename();
138  static const int kSaveFilenameFieldNumber = 3;
139  const ::std::string& save_filename() const;
140  void set_save_filename(const ::std::string& value);
141  void set_save_filename(const char* value);
142  void set_save_filename(const char* value, size_t size);
143  ::std::string* mutable_save_filename();
144  ::std::string* release_save_filename();
145  void set_allocated_save_filename(::std::string* save_filename);
146 
147  // optional string open_filename = 4;
148  void clear_open_filename();
149  static const int kOpenFilenameFieldNumber = 4;
150  const ::std::string& open_filename() const;
151  void set_open_filename(const ::std::string& value);
152  void set_open_filename(const char* value);
153  void set_open_filename(const char* value, size_t size);
154  ::std::string* mutable_open_filename();
155  ::std::string* release_open_filename();
156  void set_allocated_open_filename(::std::string* open_filename);
157 
158  // optional bool new_world = 5;
159  void clear_new_world();
160  static const int kNewWorldFieldNumber = 5;
161  bool new_world() const;
162  void set_new_world(bool value);
163 
164  // optional bool stop = 6;
165  void clear_stop();
166  static const int kStopFieldNumber = 6;
167  bool stop() const;
168  void set_stop(bool value);
169 
170  // optional bool clone = 7;
171  void clear_clone();
172  static const int kCloneFieldNumber = 7;
173  bool clone() const;
174  void set_clone(bool value);
175 
176  // optional uint32 new_port = 8;
177  void clear_new_port();
178  static const int kNewPortFieldNumber = 8;
179  ::google::protobuf::uint32 new_port() const;
180  void set_new_port(::google::protobuf::uint32 value);
181 
182  // @@protoc_insertion_point(class_scope:ignition.msgs.ServerControl)
183  private:
184 
185  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
186  bool _is_default_instance_;
187  ::ignition::msgs::Header* header_;
188  ::google::protobuf::internal::ArenaStringPtr save_world_name_;
189  ::google::protobuf::internal::ArenaStringPtr save_filename_;
190  ::google::protobuf::internal::ArenaStringPtr open_filename_;
191  bool new_world_;
192  bool stop_;
193  bool clone_;
194  ::google::protobuf::uint32 new_port_;
195  mutable int _cached_size_;
196  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fserver_5fcontrol_2eproto();
199 
200  void InitAsDefaultInstance();
201  static ServerControl* default_instance_;
202 };
203 // ===================================================================
204 
205 
206 // ===================================================================
207 
208 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
209 // ServerControl
210 
211 // optional .ignition.msgs.Header header = 1;
212 inline bool ServerControl::has_header() const {
213  return !_is_default_instance_ && header_ != NULL;
214 }
216  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
217  header_ = NULL;
218 }
219 inline const ::ignition::msgs::Header& ServerControl::header() const {
220  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.header)
221  return header_ != NULL ? *header_ : *default_instance_->header_;
222 }
223 inline ::ignition::msgs::Header* ServerControl::mutable_header() {
224 
225  if (header_ == NULL) {
226  header_ = new ::ignition::msgs::Header;
227  }
228  // @@protoc_insertion_point(field_mutable:ignition.msgs.ServerControl.header)
229  return header_;
230 }
231 inline ::ignition::msgs::Header* ServerControl::release_header() {
232  // @@protoc_insertion_point(field_release:ignition.msgs.ServerControl.header)
233 
234  ::ignition::msgs::Header* temp = header_;
235  header_ = NULL;
236  return temp;
237 }
239  delete header_;
240  header_ = header;
241  if (header) {
242 
243  } else {
244 
245  }
246  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ServerControl.header)
247 }
248 
249 // optional string save_world_name = 2;
251  save_world_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
252 }
253 inline const ::std::string& ServerControl::save_world_name() const {
254  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.save_world_name)
255  return save_world_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
256 }
257 inline void ServerControl::set_save_world_name(const ::std::string& value) {
258 
259  save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
260  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.save_world_name)
261 }
262 inline void ServerControl::set_save_world_name(const char* value) {
263 
264  save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
265  // @@protoc_insertion_point(field_set_char:ignition.msgs.ServerControl.save_world_name)
266 }
267 inline void ServerControl::set_save_world_name(const char* value, size_t size) {
268 
269  save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
270  ::std::string(reinterpret_cast<const char*>(value), size));
271  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.ServerControl.save_world_name)
272 }
273 inline ::std::string* ServerControl::mutable_save_world_name() {
274 
275  // @@protoc_insertion_point(field_mutable:ignition.msgs.ServerControl.save_world_name)
276  return save_world_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277 }
278 inline ::std::string* ServerControl::release_save_world_name() {
279  // @@protoc_insertion_point(field_release:ignition.msgs.ServerControl.save_world_name)
280 
281  return save_world_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
282 }
284  if (save_world_name != NULL) {
285 
286  } else {
287 
288  }
289  save_world_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_world_name);
290  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ServerControl.save_world_name)
291 }
292 
293 // optional string save_filename = 3;
295  save_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 }
297 inline const ::std::string& ServerControl::save_filename() const {
298  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.save_filename)
299  return save_filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 }
301 inline void ServerControl::set_save_filename(const ::std::string& value) {
302 
303  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
304  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.save_filename)
305 }
306 inline void ServerControl::set_save_filename(const char* value) {
307 
308  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
309  // @@protoc_insertion_point(field_set_char:ignition.msgs.ServerControl.save_filename)
310 }
311 inline void ServerControl::set_save_filename(const char* value, size_t size) {
312 
313  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
314  ::std::string(reinterpret_cast<const char*>(value), size));
315  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.ServerControl.save_filename)
316 }
317 inline ::std::string* ServerControl::mutable_save_filename() {
318 
319  // @@protoc_insertion_point(field_mutable:ignition.msgs.ServerControl.save_filename)
320  return save_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 }
322 inline ::std::string* ServerControl::release_save_filename() {
323  // @@protoc_insertion_point(field_release:ignition.msgs.ServerControl.save_filename)
324 
325  return save_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
326 }
328  if (save_filename != NULL) {
329 
330  } else {
331 
332  }
333  save_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_filename);
334  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ServerControl.save_filename)
335 }
336 
337 // optional string open_filename = 4;
339  open_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
340 }
341 inline const ::std::string& ServerControl::open_filename() const {
342  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.open_filename)
343  return open_filename_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 }
345 inline void ServerControl::set_open_filename(const ::std::string& value) {
346 
347  open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
348  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.open_filename)
349 }
350 inline void ServerControl::set_open_filename(const char* value) {
351 
352  open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
353  // @@protoc_insertion_point(field_set_char:ignition.msgs.ServerControl.open_filename)
354 }
355 inline void ServerControl::set_open_filename(const char* value, size_t size) {
356 
357  open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
358  ::std::string(reinterpret_cast<const char*>(value), size));
359  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.ServerControl.open_filename)
360 }
361 inline ::std::string* ServerControl::mutable_open_filename() {
362 
363  // @@protoc_insertion_point(field_mutable:ignition.msgs.ServerControl.open_filename)
364  return open_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
365 }
366 inline ::std::string* ServerControl::release_open_filename() {
367  // @@protoc_insertion_point(field_release:ignition.msgs.ServerControl.open_filename)
368 
369  return open_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
370 }
372  if (open_filename != NULL) {
373 
374  } else {
375 
376  }
377  open_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), open_filename);
378  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.ServerControl.open_filename)
379 }
380 
381 // optional bool new_world = 5;
383  new_world_ = false;
384 }
385 inline bool ServerControl::new_world() const {
386  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.new_world)
387  return new_world_;
388 }
389 inline void ServerControl::set_new_world(bool value) {
390 
391  new_world_ = value;
392  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.new_world)
393 }
394 
395 // optional bool stop = 6;
397  stop_ = false;
398 }
399 inline bool ServerControl::stop() const {
400  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.stop)
401  return stop_;
402 }
403 inline void ServerControl::set_stop(bool value) {
404 
405  stop_ = value;
406  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.stop)
407 }
408 
409 // optional bool clone = 7;
411  clone_ = false;
412 }
413 inline bool ServerControl::clone() const {
414  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.clone)
415  return clone_;
416 }
417 inline void ServerControl::set_clone(bool value) {
418 
419  clone_ = value;
420  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.clone)
421 }
422 
423 // optional uint32 new_port = 8;
425  new_port_ = 0u;
426 }
427 inline ::google::protobuf::uint32 ServerControl::new_port() const {
428  // @@protoc_insertion_point(field_get:ignition.msgs.ServerControl.new_port)
429  return new_port_;
430 }
431 inline void ServerControl::set_new_port(::google::protobuf::uint32 value) {
432 
433  new_port_ = value;
434  // @@protoc_insertion_point(field_set:ignition.msgs.ServerControl.new_port)
435 }
436 
437 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
438 
443 // @@protoc_insertion_point(namespace_scope)
444 
445 } // namespace msgs
446 } // namespace ignition
447 
448 #ifdef _MSC_VER
449 #pragma warning(pop)
450 #endif
451 // @@protoc_insertion_point(global_scope)
452 
453 #endif // PROTOBUF_ignition_2fmsgs_2fserver_5fcontrol_2eproto__INCLUDED
void set_clone(bool value)
Definition: server_control.pb.h:417
void set_new_port(::google::protobuf::uint32 value)
Definition: server_control.pb.h:431
::std::string * mutable_open_filename()
Definition: server_control.pb.h:361
int GetCachedSize() const
Definition: server_control.pb.h:95
void clear_new_port()
Definition: server_control.pb.h:424
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: server_control.pb.h:92
void clear_save_filename()
Definition: server_control.pb.h:294
void set_allocated_save_world_name(::std::string *save_world_name)
Definition: server_control.pb.h:283
bool clone() const
Definition: server_control.pb.h:413
void set_open_filename(const ::std::string &value)
Definition: server_control.pb.h:345
void set_allocated_save_filename(::std::string *save_filename)
Definition: server_control.pb.h:327
::std::string * mutable_save_world_name()
Definition: server_control.pb.h:273
void protobuf_AssignDesc_ignition_2fmsgs_2fserver_5fcontrol_2eproto()
void clear_clone()
Definition: server_control.pb.h:410
::ignition::msgs::Header * release_header()
Definition: server_control.pb.h:231
void set_new_world(bool value)
Definition: server_control.pb.h:389
void set_save_filename(const ::std::string &value)
Definition: server_control.pb.h:301
const ::std::string & save_filename() const
Definition: server_control.pb.h:297
std::unique_ptr< ServerControl > ServerControlUniquePtr
Definition: server_control.pb.h:439
::ignition::msgs::Header * mutable_header()
Definition: server_control.pb.h:223
const ::std::string & open_filename() const
Definition: server_control.pb.h:341
bool has_header() const
Definition: server_control.pb.h:212
void clear_header()
Definition: server_control.pb.h:215
ServerControl * New() const
Definition: server_control.pb.h:75
bool stop() const
Definition: server_control.pb.h:399
Definition: header.pb.h:161
STL class.
void set_stop(bool value)
Definition: server_control.pb.h:403
const ::std::string & save_world_name() const
Definition: server_control.pb.h:253
Definition: server_control.pb.h:56
::google::protobuf::uint32 new_port() const
Definition: server_control.pb.h:427
void clear_new_world()
Definition: server_control.pb.h:382
::std::string * mutable_save_filename()
Definition: server_control.pb.h:317
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fserver_5fcontrol_2eproto()
void set_allocated_header(::ignition::msgs::Header *header)
Definition: server_control.pb.h:238
bool new_world() const
Definition: server_control.pb.h:385
::std::string * release_save_world_name()
Definition: server_control.pb.h:278
void protobuf_ShutdownFile_ignition_2fmsgs_2fserver_5fcontrol_2eproto()
std::shared_ptr< ServerControl > ServerControlSharedPtr
Definition: server_control.pb.h:441
void set_save_world_name(const ::std::string &value)
Definition: server_control.pb.h:257
ServerControl & operator=(const ServerControl &from)
Definition: server_control.pb.h:63
STL class.
const ::ignition::msgs::Header & header() const
Definition: server_control.pb.h:219
void clear_save_world_name()
Definition: server_control.pb.h:250
std::unique_ptr< const ServerControl > ConstServerControlUniquePtr
Definition: server_control.pb.h:440
void set_allocated_open_filename(::std::string *open_filename)
Definition: server_control.pb.h:371
::std::string * release_save_filename()
Definition: server_control.pb.h:322
void clear_stop()
Definition: server_control.pb.h:396
void clear_open_filename()
Definition: server_control.pb.h:338
std::shared_ptr< const ServerControl > ConstServerControlSharedPtr
Definition: server_control.pb.h:442
::std::string * release_open_filename()
Definition: server_control.pb.h:366