Gazebo Msgs

API Reference

9.5.1
server_control.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/server_control.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fserver_5fcontrol_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fserver_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/header.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fserver_5fcontrol_2eproto GZ_MSGS_VISIBLE
36 
38 // Internal implementation detail -- do not use these members.
39 struct GZ_MSGS_VISIBLE TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void GZ_MSGS_VISIBLE AddDescriptors();
48 } // namespace protobuf_gz_2fmsgs_2fserver_5fcontrol_2eproto
49 namespace gz {
50 namespace msgs {
51 class ServerControl;
52 class ServerControlDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern ServerControlDefaultTypeInternal _ServerControl_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::ServerControl* Arena::CreateMaybeMessage<::gz::msgs::ServerControl>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE ServerControl : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.ServerControl) */ {
67  public:
68  ServerControl();
69  virtual ~ServerControl();
70 
71  ServerControl(const ServerControl& from);
72 
73  inline ServerControl& operator=(const ServerControl& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  ServerControl(ServerControl&& from) noexcept
79  : ServerControl() {
80  *this = ::std::move(from);
81  }
82 
83  inline ServerControl& operator=(ServerControl&& from) noexcept {
84  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
85  if (this != &from) InternalSwap(&from);
86  } else {
87  CopyFrom(from);
88  }
89  return *this;
90  }
91  #endif
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const ServerControl& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const ServerControl* internal_default_instance() {
97  return reinterpret_cast<const ServerControl*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(ServerControl* other);
104  friend void swap(ServerControl& a, ServerControl& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline ServerControl* New() const final {
111  return CreateMaybeMessage<ServerControl>(NULL);
112  }
113 
114  ServerControl* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<ServerControl>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const ServerControl& from);
120  void MergeFrom(const ServerControl& from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(
126  ::google::protobuf::io::CodedInputStream* input) final;
127  void SerializeWithCachedSizes(
128  ::google::protobuf::io::CodedOutputStream* output) const final;
129  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
130  bool deterministic, ::google::protobuf::uint8* target) const final;
131  int GetCachedSize() const final { return _cached_size_.Get(); }
132 
133  private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(ServerControl* other);
138  private:
139  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
140  return NULL;
141  }
142  inline void* MaybeArenaPtr() const {
143  return NULL;
144  }
145  public:
146 
147  ::google::protobuf::Metadata GetMetadata() const final;
148 
149  // nested types ----------------------------------------------------
150 
151  // accessors -------------------------------------------------------
152 
153  // string save_world_name = 2;
154  void clear_save_world_name();
155  static const int kSaveWorldNameFieldNumber = 2;
156  const ::std::string& save_world_name() const;
157  void set_save_world_name(const ::std::string& value);
158  #if LANG_CXX11
159  void set_save_world_name(::std::string&& value);
160  #endif
161  void set_save_world_name(const char* value);
162  void set_save_world_name(const char* value, size_t size);
163  ::std::string* mutable_save_world_name();
164  ::std::string* release_save_world_name();
165  void set_allocated_save_world_name(::std::string* save_world_name);
166 
167  // string save_filename = 3;
168  void clear_save_filename();
169  static const int kSaveFilenameFieldNumber = 3;
170  const ::std::string& save_filename() const;
171  void set_save_filename(const ::std::string& value);
172  #if LANG_CXX11
173  void set_save_filename(::std::string&& value);
174  #endif
175  void set_save_filename(const char* value);
176  void set_save_filename(const char* value, size_t size);
177  ::std::string* mutable_save_filename();
178  ::std::string* release_save_filename();
179  void set_allocated_save_filename(::std::string* save_filename);
180 
181  // string open_filename = 4;
182  void clear_open_filename();
183  static const int kOpenFilenameFieldNumber = 4;
184  const ::std::string& open_filename() const;
185  void set_open_filename(const ::std::string& value);
186  #if LANG_CXX11
187  void set_open_filename(::std::string&& value);
188  #endif
189  void set_open_filename(const char* value);
190  void set_open_filename(const char* value, size_t size);
191  ::std::string* mutable_open_filename();
192  ::std::string* release_open_filename();
193  void set_allocated_open_filename(::std::string* open_filename);
194 
195  // .gz.msgs.Header header = 1;
196  bool has_header() const;
197  void clear_header();
198  static const int kHeaderFieldNumber = 1;
199  private:
200  const ::gz::msgs::Header& _internal_header() const;
201  public:
202  const ::gz::msgs::Header& header() const;
203  ::gz::msgs::Header* release_header();
204  ::gz::msgs::Header* mutable_header();
205  void set_allocated_header(::gz::msgs::Header* header);
206 
207  // bool new_world = 5;
208  void clear_new_world();
209  static const int kNewWorldFieldNumber = 5;
210  bool new_world() const;
211  void set_new_world(bool value);
212 
213  // bool stop = 6;
214  void clear_stop();
215  static const int kStopFieldNumber = 6;
216  bool stop() const;
217  void set_stop(bool value);
218 
219  // bool clone = 7;
220  void clear_clone();
221  static const int kCloneFieldNumber = 7;
222  bool clone() const;
223  void set_clone(bool value);
224 
225  // uint32 new_port = 8;
226  void clear_new_port();
227  static const int kNewPortFieldNumber = 8;
228  ::google::protobuf::uint32 new_port() const;
229  void set_new_port(::google::protobuf::uint32 value);
230 
231  // @@protoc_insertion_point(class_scope:gz.msgs.ServerControl)
232  private:
233 
234  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
235  ::google::protobuf::internal::ArenaStringPtr save_world_name_;
236  ::google::protobuf::internal::ArenaStringPtr save_filename_;
237  ::google::protobuf::internal::ArenaStringPtr open_filename_;
238  ::gz::msgs::Header* header_;
239  bool new_world_;
240  bool stop_;
241  bool clone_;
242  ::google::protobuf::uint32 new_port_;
243  mutable ::google::protobuf::internal::CachedSize _cached_size_;
244  friend struct ::protobuf_gz_2fmsgs_2fserver_5fcontrol_2eproto::TableStruct;
245 };
246 // ===================================================================
247 
248 
249 // ===================================================================
250 
251 #ifdef __GNUC__
252  #pragma GCC diagnostic push
253  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
254 #endif // __GNUC__
255 // ServerControl
256 
257 // .gz.msgs.Header header = 1;
258 inline bool ServerControl::has_header() const {
259  return this != internal_default_instance() && header_ != NULL;
260 }
261 inline const ::gz::msgs::Header& ServerControl::_internal_header() const {
262  return *header_;
263 }
264 inline const ::gz::msgs::Header& ServerControl::header() const {
265  const ::gz::msgs::Header* p = header_;
266  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.header)
267  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
269 }
270 inline ::gz::msgs::Header* ServerControl::release_header() {
271  // @@protoc_insertion_point(field_release:gz.msgs.ServerControl.header)
272 
273  ::gz::msgs::Header* temp = header_;
274  header_ = NULL;
275  return temp;
276 }
277 inline ::gz::msgs::Header* ServerControl::mutable_header() {
278 
279  if (header_ == NULL) {
280  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
281  header_ = p;
282  }
283  // @@protoc_insertion_point(field_mutable:gz.msgs.ServerControl.header)
284  return header_;
285 }
287  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
288  if (message_arena == NULL) {
289  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
290  }
291  if (header) {
292  ::google::protobuf::Arena* submessage_arena = NULL;
293  if (message_arena != submessage_arena) {
294  header = ::google::protobuf::internal::GetOwnedMessage(
295  message_arena, header, submessage_arena);
296  }
297 
298  } else {
299 
300  }
301  header_ = header;
302  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ServerControl.header)
303 }
304 
305 // string save_world_name = 2;
307  save_world_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
308 }
309 inline const ::std::string& ServerControl::save_world_name() const {
310  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.save_world_name)
311  return save_world_name_.GetNoArena();
312 }
313 inline void ServerControl::set_save_world_name(const ::std::string& value) {
314 
315  save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
316  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.save_world_name)
317 }
318 #if LANG_CXX11
319 inline void ServerControl::set_save_world_name(::std::string&& value) {
320 
321  save_world_name_.SetNoArena(
322  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
323  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.ServerControl.save_world_name)
324 }
325 #endif
326 inline void ServerControl::set_save_world_name(const char* value) {
327  GOOGLE_DCHECK(value != NULL);
328 
329  save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
330  // @@protoc_insertion_point(field_set_char:gz.msgs.ServerControl.save_world_name)
331 }
332 inline void ServerControl::set_save_world_name(const char* value, size_t size) {
333 
334  save_world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
335  ::std::string(reinterpret_cast<const char*>(value), size));
336  // @@protoc_insertion_point(field_set_pointer:gz.msgs.ServerControl.save_world_name)
337 }
338 inline ::std::string* ServerControl::mutable_save_world_name() {
339 
340  // @@protoc_insertion_point(field_mutable:gz.msgs.ServerControl.save_world_name)
341  return save_world_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
342 }
343 inline ::std::string* ServerControl::release_save_world_name() {
344  // @@protoc_insertion_point(field_release:gz.msgs.ServerControl.save_world_name)
345 
346  return save_world_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
347 }
349  if (save_world_name != NULL) {
350 
351  } else {
352 
353  }
354  save_world_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_world_name);
355  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ServerControl.save_world_name)
356 }
357 
358 // string save_filename = 3;
360  save_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 }
362 inline const ::std::string& ServerControl::save_filename() const {
363  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.save_filename)
364  return save_filename_.GetNoArena();
365 }
366 inline void ServerControl::set_save_filename(const ::std::string& value) {
367 
368  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
369  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.save_filename)
370 }
371 #if LANG_CXX11
372 inline void ServerControl::set_save_filename(::std::string&& value) {
373 
374  save_filename_.SetNoArena(
375  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
376  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.ServerControl.save_filename)
377 }
378 #endif
379 inline void ServerControl::set_save_filename(const char* value) {
380  GOOGLE_DCHECK(value != NULL);
381 
382  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
383  // @@protoc_insertion_point(field_set_char:gz.msgs.ServerControl.save_filename)
384 }
385 inline void ServerControl::set_save_filename(const char* value, size_t size) {
386 
387  save_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
388  ::std::string(reinterpret_cast<const char*>(value), size));
389  // @@protoc_insertion_point(field_set_pointer:gz.msgs.ServerControl.save_filename)
390 }
391 inline ::std::string* ServerControl::mutable_save_filename() {
392 
393  // @@protoc_insertion_point(field_mutable:gz.msgs.ServerControl.save_filename)
394  return save_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
395 }
396 inline ::std::string* ServerControl::release_save_filename() {
397  // @@protoc_insertion_point(field_release:gz.msgs.ServerControl.save_filename)
398 
399  return save_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 }
402  if (save_filename != NULL) {
403 
404  } else {
405 
406  }
407  save_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), save_filename);
408  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ServerControl.save_filename)
409 }
410 
411 // string open_filename = 4;
413  open_filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
414 }
415 inline const ::std::string& ServerControl::open_filename() const {
416  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.open_filename)
417  return open_filename_.GetNoArena();
418 }
419 inline void ServerControl::set_open_filename(const ::std::string& value) {
420 
421  open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
422  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.open_filename)
423 }
424 #if LANG_CXX11
425 inline void ServerControl::set_open_filename(::std::string&& value) {
426 
427  open_filename_.SetNoArena(
428  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
429  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.ServerControl.open_filename)
430 }
431 #endif
432 inline void ServerControl::set_open_filename(const char* value) {
433  GOOGLE_DCHECK(value != NULL);
434 
435  open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
436  // @@protoc_insertion_point(field_set_char:gz.msgs.ServerControl.open_filename)
437 }
438 inline void ServerControl::set_open_filename(const char* value, size_t size) {
439 
440  open_filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
441  ::std::string(reinterpret_cast<const char*>(value), size));
442  // @@protoc_insertion_point(field_set_pointer:gz.msgs.ServerControl.open_filename)
443 }
444 inline ::std::string* ServerControl::mutable_open_filename() {
445 
446  // @@protoc_insertion_point(field_mutable:gz.msgs.ServerControl.open_filename)
447  return open_filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
448 }
449 inline ::std::string* ServerControl::release_open_filename() {
450  // @@protoc_insertion_point(field_release:gz.msgs.ServerControl.open_filename)
451 
452  return open_filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
453 }
455  if (open_filename != NULL) {
456 
457  } else {
458 
459  }
460  open_filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), open_filename);
461  // @@protoc_insertion_point(field_set_allocated:gz.msgs.ServerControl.open_filename)
462 }
463 
464 // bool new_world = 5;
466  new_world_ = false;
467 }
468 inline bool ServerControl::new_world() const {
469  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.new_world)
470  return new_world_;
471 }
472 inline void ServerControl::set_new_world(bool value) {
473 
474  new_world_ = value;
475  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.new_world)
476 }
477 
478 // bool stop = 6;
480  stop_ = false;
481 }
482 inline bool ServerControl::stop() const {
483  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.stop)
484  return stop_;
485 }
486 inline void ServerControl::set_stop(bool value) {
487 
488  stop_ = value;
489  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.stop)
490 }
491 
492 // bool clone = 7;
494  clone_ = false;
495 }
496 inline bool ServerControl::clone() const {
497  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.clone)
498  return clone_;
499 }
500 inline void ServerControl::set_clone(bool value) {
501 
502  clone_ = value;
503  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.clone)
504 }
505 
506 // uint32 new_port = 8;
508  new_port_ = 0u;
509 }
510 inline ::google::protobuf::uint32 ServerControl::new_port() const {
511  // @@protoc_insertion_point(field_get:gz.msgs.ServerControl.new_port)
512  return new_port_;
513 }
514 inline void ServerControl::set_new_port(::google::protobuf::uint32 value) {
515 
516  new_port_ = value;
517  // @@protoc_insertion_point(field_set:gz.msgs.ServerControl.new_port)
518 }
519 
520 #ifdef __GNUC__
521  #pragma GCC diagnostic pop
522 #endif // __GNUC__
523 
524 // @@protoc_insertion_point(namespace_scope)
525 
526 } // namespace msgs
527 } // namespace gz
528 
529 // @@protoc_insertion_point(global_scope)
530 
531 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fserver_5fcontrol_2eproto