Gazebo Msgs

API Reference

9.5.1
world_modify.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/world_modify.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fmodify_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fmodify_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_2fworld_5fmodify_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_2fworld_5fmodify_2eproto
49 namespace gz {
50 namespace msgs {
51 class WorldModify;
52 class WorldModifyDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern WorldModifyDefaultTypeInternal _WorldModify_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::WorldModify* Arena::CreateMaybeMessage<::gz::msgs::WorldModify>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE WorldModify : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.WorldModify) */ {
67  public:
68  WorldModify();
69  virtual ~WorldModify();
70 
71  WorldModify(const WorldModify& from);
72 
73  inline WorldModify& operator=(const WorldModify& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  WorldModify(WorldModify&& from) noexcept
79  : WorldModify() {
80  *this = ::std::move(from);
81  }
82 
83  inline WorldModify& operator=(WorldModify&& 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 WorldModify& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const WorldModify* internal_default_instance() {
97  return reinterpret_cast<const WorldModify*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(WorldModify* other);
104  friend void swap(WorldModify& a, WorldModify& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline WorldModify* New() const final {
111  return CreateMaybeMessage<WorldModify>(NULL);
112  }
113 
114  WorldModify* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<WorldModify>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const WorldModify& from);
120  void MergeFrom(const WorldModify& 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(WorldModify* 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 world_name = 2;
154  void clear_world_name();
155  static const int kWorldNameFieldNumber = 2;
156  const ::std::string& world_name() const;
157  void set_world_name(const ::std::string& value);
158  #if LANG_CXX11
159  void set_world_name(::std::string&& value);
160  #endif
161  void set_world_name(const char* value);
162  void set_world_name(const char* value, size_t size);
163  ::std::string* mutable_world_name();
164  ::std::string* release_world_name();
165  void set_allocated_world_name(::std::string* world_name);
166 
167  // string cloned_uri = 6;
168  void clear_cloned_uri();
169  static const int kClonedUriFieldNumber = 6;
170  const ::std::string& cloned_uri() const;
171  void set_cloned_uri(const ::std::string& value);
172  #if LANG_CXX11
173  void set_cloned_uri(::std::string&& value);
174  #endif
175  void set_cloned_uri(const char* value);
176  void set_cloned_uri(const char* value, size_t size);
177  ::std::string* mutable_cloned_uri();
178  ::std::string* release_cloned_uri();
179  void set_allocated_cloned_uri(::std::string* cloned_uri);
180 
181  // .gz.msgs.Header header = 1;
182  bool has_header() const;
183  void clear_header();
184  static const int kHeaderFieldNumber = 1;
185  private:
186  const ::gz::msgs::Header& _internal_header() const;
187  public:
188  const ::gz::msgs::Header& header() const;
189  ::gz::msgs::Header* release_header();
190  ::gz::msgs::Header* mutable_header();
191  void set_allocated_header(::gz::msgs::Header* header);
192 
193  // bool remove = 3;
194  void clear_remove();
195  static const int kRemoveFieldNumber = 3;
196  bool remove() const;
197  void set_remove(bool value);
198 
199  // bool create = 4;
200  void clear_create();
201  static const int kCreateFieldNumber = 4;
202  bool create() const;
203  void set_create(bool value);
204 
205  // bool cloned = 5;
206  void clear_cloned();
207  static const int kClonedFieldNumber = 5;
208  bool cloned() const;
209  void set_cloned(bool value);
210 
211  // @@protoc_insertion_point(class_scope:gz.msgs.WorldModify)
212  private:
213 
214  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
215  ::google::protobuf::internal::ArenaStringPtr world_name_;
216  ::google::protobuf::internal::ArenaStringPtr cloned_uri_;
217  ::gz::msgs::Header* header_;
218  bool remove_;
219  bool create_;
220  bool cloned_;
221  mutable ::google::protobuf::internal::CachedSize _cached_size_;
222  friend struct ::protobuf_gz_2fmsgs_2fworld_5fmodify_2eproto::TableStruct;
223 };
224 // ===================================================================
225 
226 
227 // ===================================================================
228 
229 #ifdef __GNUC__
230  #pragma GCC diagnostic push
231  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
232 #endif // __GNUC__
233 // WorldModify
234 
235 // .gz.msgs.Header header = 1;
236 inline bool WorldModify::has_header() const {
237  return this != internal_default_instance() && header_ != NULL;
238 }
239 inline const ::gz::msgs::Header& WorldModify::_internal_header() const {
240  return *header_;
241 }
242 inline const ::gz::msgs::Header& WorldModify::header() const {
243  const ::gz::msgs::Header* p = header_;
244  // @@protoc_insertion_point(field_get:gz.msgs.WorldModify.header)
245  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
247 }
248 inline ::gz::msgs::Header* WorldModify::release_header() {
249  // @@protoc_insertion_point(field_release:gz.msgs.WorldModify.header)
250 
251  ::gz::msgs::Header* temp = header_;
252  header_ = NULL;
253  return temp;
254 }
255 inline ::gz::msgs::Header* WorldModify::mutable_header() {
256 
257  if (header_ == NULL) {
258  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
259  header_ = p;
260  }
261  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldModify.header)
262  return header_;
263 }
265  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
266  if (message_arena == NULL) {
267  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
268  }
269  if (header) {
270  ::google::protobuf::Arena* submessage_arena = NULL;
271  if (message_arena != submessage_arena) {
272  header = ::google::protobuf::internal::GetOwnedMessage(
273  message_arena, header, submessage_arena);
274  }
275 
276  } else {
277 
278  }
279  header_ = header;
280  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldModify.header)
281 }
282 
283 // string world_name = 2;
285  world_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
286 }
287 inline const ::std::string& WorldModify::world_name() const {
288  // @@protoc_insertion_point(field_get:gz.msgs.WorldModify.world_name)
289  return world_name_.GetNoArena();
290 }
291 inline void WorldModify::set_world_name(const ::std::string& value) {
292 
293  world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
294  // @@protoc_insertion_point(field_set:gz.msgs.WorldModify.world_name)
295 }
296 #if LANG_CXX11
297 inline void WorldModify::set_world_name(::std::string&& value) {
298 
299  world_name_.SetNoArena(
300  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
301  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.WorldModify.world_name)
302 }
303 #endif
304 inline void WorldModify::set_world_name(const char* value) {
305  GOOGLE_DCHECK(value != NULL);
306 
307  world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
308  // @@protoc_insertion_point(field_set_char:gz.msgs.WorldModify.world_name)
309 }
310 inline void WorldModify::set_world_name(const char* value, size_t size) {
311 
312  world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
313  ::std::string(reinterpret_cast<const char*>(value), size));
314  // @@protoc_insertion_point(field_set_pointer:gz.msgs.WorldModify.world_name)
315 }
316 inline ::std::string* WorldModify::mutable_world_name() {
317 
318  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldModify.world_name)
319  return world_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
320 }
321 inline ::std::string* WorldModify::release_world_name() {
322  // @@protoc_insertion_point(field_release:gz.msgs.WorldModify.world_name)
323 
324  return world_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
325 }
327  if (world_name != NULL) {
328 
329  } else {
330 
331  }
332  world_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), world_name);
333  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldModify.world_name)
334 }
335 
336 // bool remove = 3;
338  remove_ = false;
339 }
340 inline bool WorldModify::remove() const {
341  // @@protoc_insertion_point(field_get:gz.msgs.WorldModify.remove)
342  return remove_;
343 }
344 inline void WorldModify::set_remove(bool value) {
345 
346  remove_ = value;
347  // @@protoc_insertion_point(field_set:gz.msgs.WorldModify.remove)
348 }
349 
350 // bool create = 4;
352  create_ = false;
353 }
354 inline bool WorldModify::create() const {
355  // @@protoc_insertion_point(field_get:gz.msgs.WorldModify.create)
356  return create_;
357 }
358 inline void WorldModify::set_create(bool value) {
359 
360  create_ = value;
361  // @@protoc_insertion_point(field_set:gz.msgs.WorldModify.create)
362 }
363 
364 // bool cloned = 5;
366  cloned_ = false;
367 }
368 inline bool WorldModify::cloned() const {
369  // @@protoc_insertion_point(field_get:gz.msgs.WorldModify.cloned)
370  return cloned_;
371 }
372 inline void WorldModify::set_cloned(bool value) {
373 
374  cloned_ = value;
375  // @@protoc_insertion_point(field_set:gz.msgs.WorldModify.cloned)
376 }
377 
378 // string cloned_uri = 6;
380  cloned_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
381 }
382 inline const ::std::string& WorldModify::cloned_uri() const {
383  // @@protoc_insertion_point(field_get:gz.msgs.WorldModify.cloned_uri)
384  return cloned_uri_.GetNoArena();
385 }
386 inline void WorldModify::set_cloned_uri(const ::std::string& value) {
387 
388  cloned_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
389  // @@protoc_insertion_point(field_set:gz.msgs.WorldModify.cloned_uri)
390 }
391 #if LANG_CXX11
392 inline void WorldModify::set_cloned_uri(::std::string&& value) {
393 
394  cloned_uri_.SetNoArena(
395  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
396  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.WorldModify.cloned_uri)
397 }
398 #endif
399 inline void WorldModify::set_cloned_uri(const char* value) {
400  GOOGLE_DCHECK(value != NULL);
401 
402  cloned_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
403  // @@protoc_insertion_point(field_set_char:gz.msgs.WorldModify.cloned_uri)
404 }
405 inline void WorldModify::set_cloned_uri(const char* value, size_t size) {
406 
407  cloned_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
408  ::std::string(reinterpret_cast<const char*>(value), size));
409  // @@protoc_insertion_point(field_set_pointer:gz.msgs.WorldModify.cloned_uri)
410 }
411 inline ::std::string* WorldModify::mutable_cloned_uri() {
412 
413  // @@protoc_insertion_point(field_mutable:gz.msgs.WorldModify.cloned_uri)
414  return cloned_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
415 }
416 inline ::std::string* WorldModify::release_cloned_uri() {
417  // @@protoc_insertion_point(field_release:gz.msgs.WorldModify.cloned_uri)
418 
419  return cloned_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
420 }
422  if (cloned_uri != NULL) {
423 
424  } else {
425 
426  }
427  cloned_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cloned_uri);
428  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WorldModify.cloned_uri)
429 }
430 
431 #ifdef __GNUC__
432  #pragma GCC diagnostic pop
433 #endif // __GNUC__
434 
435 // @@protoc_insertion_point(namespace_scope)
436 
437 } // namespace msgs
438 } // namespace gz
439 
440 // @@protoc_insertion_point(global_scope)
441 
442 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fworld_5fmodify_2eproto