Ignition Msgs

API Reference

7.1.0
world_modify.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/world_modify.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fworld_5fmodify_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fworld_5fmodify_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 WorldModify;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE WorldModify : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WorldModify) */ {
57  public:
58  WorldModify();
59  virtual ~WorldModify();
60 
61  WorldModify(const WorldModify& from);
62 
63  inline WorldModify& operator=(const WorldModify& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const WorldModify& default_instance();
70 
71  void Swap(WorldModify* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline WorldModify* New() const { return New(NULL); }
76 
77  WorldModify* 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 WorldModify& from);
81  void MergeFrom(const WorldModify& 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(WorldModify* 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 world_name = 2;
126  void clear_world_name();
127  static const int kWorldNameFieldNumber = 2;
128  const ::std::string& world_name() const;
129  void set_world_name(const ::std::string& value);
130  void set_world_name(const char* value);
131  void set_world_name(const char* value, size_t size);
132  ::std::string* mutable_world_name();
133  ::std::string* release_world_name();
134  void set_allocated_world_name(::std::string* world_name);
135 
136  // optional bool remove = 3;
137  void clear_remove();
138  static const int kRemoveFieldNumber = 3;
139  bool remove() const;
140  void set_remove(bool value);
141 
142  // optional bool create = 4;
143  void clear_create();
144  static const int kCreateFieldNumber = 4;
145  bool create() const;
146  void set_create(bool value);
147 
148  // optional bool cloned = 5;
149  void clear_cloned();
150  static const int kClonedFieldNumber = 5;
151  bool cloned() const;
152  void set_cloned(bool value);
153 
154  // optional string cloned_uri = 6;
155  void clear_cloned_uri();
156  static const int kClonedUriFieldNumber = 6;
157  const ::std::string& cloned_uri() const;
158  void set_cloned_uri(const ::std::string& value);
159  void set_cloned_uri(const char* value);
160  void set_cloned_uri(const char* value, size_t size);
161  ::std::string* mutable_cloned_uri();
162  ::std::string* release_cloned_uri();
163  void set_allocated_cloned_uri(::std::string* cloned_uri);
164 
165  // @@protoc_insertion_point(class_scope:ignition.msgs.WorldModify)
166  private:
167 
168  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
169  bool _is_default_instance_;
170  ::ignition::msgs::Header* header_;
171  ::google::protobuf::internal::ArenaStringPtr world_name_;
172  ::google::protobuf::internal::ArenaStringPtr cloned_uri_;
173  bool remove_;
174  bool create_;
175  bool cloned_;
176  mutable int _cached_size_;
177  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fmodify_2eproto();
180 
181  void InitAsDefaultInstance();
182  static WorldModify* default_instance_;
183 };
184 // ===================================================================
185 
186 
187 // ===================================================================
188 
189 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
190 // WorldModify
191 
192 // optional .ignition.msgs.Header header = 1;
193 inline bool WorldModify::has_header() const {
194  return !_is_default_instance_ && header_ != NULL;
195 }
197  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
198  header_ = NULL;
199 }
200 inline const ::ignition::msgs::Header& WorldModify::header() const {
201  // @@protoc_insertion_point(field_get:ignition.msgs.WorldModify.header)
202  return header_ != NULL ? *header_ : *default_instance_->header_;
203 }
204 inline ::ignition::msgs::Header* WorldModify::mutable_header() {
205 
206  if (header_ == NULL) {
207  header_ = new ::ignition::msgs::Header;
208  }
209  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldModify.header)
210  return header_;
211 }
212 inline ::ignition::msgs::Header* WorldModify::release_header() {
213  // @@protoc_insertion_point(field_release:ignition.msgs.WorldModify.header)
214 
215  ::ignition::msgs::Header* temp = header_;
216  header_ = NULL;
217  return temp;
218 }
220  delete header_;
221  header_ = header;
222  if (header) {
223 
224  } else {
225 
226  }
227  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldModify.header)
228 }
229 
230 // optional string world_name = 2;
232  world_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
233 }
234 inline const ::std::string& WorldModify::world_name() const {
235  // @@protoc_insertion_point(field_get:ignition.msgs.WorldModify.world_name)
236  return world_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
237 }
238 inline void WorldModify::set_world_name(const ::std::string& value) {
239 
240  world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
241  // @@protoc_insertion_point(field_set:ignition.msgs.WorldModify.world_name)
242 }
243 inline void WorldModify::set_world_name(const char* value) {
244 
245  world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
246  // @@protoc_insertion_point(field_set_char:ignition.msgs.WorldModify.world_name)
247 }
248 inline void WorldModify::set_world_name(const char* value, size_t size) {
249 
250  world_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
251  ::std::string(reinterpret_cast<const char*>(value), size));
252  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WorldModify.world_name)
253 }
254 inline ::std::string* WorldModify::mutable_world_name() {
255 
256  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldModify.world_name)
257  return world_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 }
259 inline ::std::string* WorldModify::release_world_name() {
260  // @@protoc_insertion_point(field_release:ignition.msgs.WorldModify.world_name)
261 
262  return world_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
263 }
265  if (world_name != NULL) {
266 
267  } else {
268 
269  }
270  world_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), world_name);
271  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldModify.world_name)
272 }
273 
274 // optional bool remove = 3;
276  remove_ = false;
277 }
278 inline bool WorldModify::remove() const {
279  // @@protoc_insertion_point(field_get:ignition.msgs.WorldModify.remove)
280  return remove_;
281 }
282 inline void WorldModify::set_remove(bool value) {
283 
284  remove_ = value;
285  // @@protoc_insertion_point(field_set:ignition.msgs.WorldModify.remove)
286 }
287 
288 // optional bool create = 4;
290  create_ = false;
291 }
292 inline bool WorldModify::create() const {
293  // @@protoc_insertion_point(field_get:ignition.msgs.WorldModify.create)
294  return create_;
295 }
296 inline void WorldModify::set_create(bool value) {
297 
298  create_ = value;
299  // @@protoc_insertion_point(field_set:ignition.msgs.WorldModify.create)
300 }
301 
302 // optional bool cloned = 5;
304  cloned_ = false;
305 }
306 inline bool WorldModify::cloned() const {
307  // @@protoc_insertion_point(field_get:ignition.msgs.WorldModify.cloned)
308  return cloned_;
309 }
310 inline void WorldModify::set_cloned(bool value) {
311 
312  cloned_ = value;
313  // @@protoc_insertion_point(field_set:ignition.msgs.WorldModify.cloned)
314 }
315 
316 // optional string cloned_uri = 6;
318  cloned_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 }
320 inline const ::std::string& WorldModify::cloned_uri() const {
321  // @@protoc_insertion_point(field_get:ignition.msgs.WorldModify.cloned_uri)
322  return cloned_uri_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
323 }
324 inline void WorldModify::set_cloned_uri(const ::std::string& value) {
325 
326  cloned_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
327  // @@protoc_insertion_point(field_set:ignition.msgs.WorldModify.cloned_uri)
328 }
329 inline void WorldModify::set_cloned_uri(const char* value) {
330 
331  cloned_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
332  // @@protoc_insertion_point(field_set_char:ignition.msgs.WorldModify.cloned_uri)
333 }
334 inline void WorldModify::set_cloned_uri(const char* value, size_t size) {
335 
336  cloned_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
337  ::std::string(reinterpret_cast<const char*>(value), size));
338  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WorldModify.cloned_uri)
339 }
340 inline ::std::string* WorldModify::mutable_cloned_uri() {
341 
342  // @@protoc_insertion_point(field_mutable:ignition.msgs.WorldModify.cloned_uri)
343  return cloned_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
344 }
345 inline ::std::string* WorldModify::release_cloned_uri() {
346  // @@protoc_insertion_point(field_release:ignition.msgs.WorldModify.cloned_uri)
347 
348  return cloned_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
349 }
351  if (cloned_uri != NULL) {
352 
353  } else {
354 
355  }
356  cloned_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cloned_uri);
357  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WorldModify.cloned_uri)
358 }
359 
360 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
361 
366 // @@protoc_insertion_point(namespace_scope)
367 
368 } // namespace msgs
369 } // namespace ignition
370 
371 #ifdef _MSC_VER
372 #pragma warning(pop)
373 #endif
374 // @@protoc_insertion_point(global_scope)
375 
376 #endif // PROTOBUF_ignition_2fmsgs_2fworld_5fmodify_2eproto__INCLUDED
const ::ignition::msgs::Header & header() const
Definition: world_modify.pb.h:200
std::shared_ptr< const WorldModify > ConstWorldModifySharedPtr
Definition: world_modify.pb.h:365
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: world_modify.pb.h:92
void clear_cloned_uri()
Definition: world_modify.pb.h:317
void set_world_name(const ::std::string &value)
Definition: world_modify.pb.h:238
void set_allocated_header(::ignition::msgs::Header *header)
Definition: world_modify.pb.h:219
const ::std::string & world_name() const
Definition: world_modify.pb.h:234
void set_cloned(bool value)
Definition: world_modify.pb.h:310
void clear_world_name()
Definition: world_modify.pb.h:231
void clear_create()
Definition: world_modify.pb.h:289
void clear_header()
Definition: world_modify.pb.h:196
WorldModify * New() const
Definition: world_modify.pb.h:75
void protobuf_AssignDesc_ignition_2fmsgs_2fworld_5fmodify_2eproto()
::std::string * release_world_name()
Definition: world_modify.pb.h:259
Definition: world_modify.pb.h:56
Definition: header.pb.h:161
STL class.
std::unique_ptr< WorldModify > WorldModifyUniquePtr
Definition: world_modify.pb.h:362
int GetCachedSize() const
Definition: world_modify.pb.h:95
std::shared_ptr< WorldModify > WorldModifySharedPtr
Definition: world_modify.pb.h:364
void set_cloned_uri(const ::std::string &value)
Definition: world_modify.pb.h:324
::std::string * release_cloned_uri()
Definition: world_modify.pb.h:345
void clear_cloned()
Definition: world_modify.pb.h:303
void set_allocated_cloned_uri(::std::string *cloned_uri)
Definition: world_modify.pb.h:350
bool remove() const
Definition: world_modify.pb.h:278
void clear_remove()
Definition: world_modify.pb.h:275
::ignition::msgs::Header * mutable_header()
Definition: world_modify.pb.h:204
WorldModify & operator=(const WorldModify &from)
Definition: world_modify.pb.h:63
STL class.
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fworld_5fmodify_2eproto()
const ::std::string & cloned_uri() const
Definition: world_modify.pb.h:320
bool create() const
Definition: world_modify.pb.h:292
bool has_header() const
Definition: world_modify.pb.h:193
::std::string * mutable_world_name()
Definition: world_modify.pb.h:254
bool cloned() const
Definition: world_modify.pb.h:306
void protobuf_ShutdownFile_ignition_2fmsgs_2fworld_5fmodify_2eproto()
std::unique_ptr< const WorldModify > ConstWorldModifyUniquePtr
Definition: world_modify.pb.h:363
::ignition::msgs::Header * release_header()
Definition: world_modify.pb.h:212
void set_allocated_world_name(::std::string *world_name)
Definition: world_modify.pb.h:264
::std::string * mutable_cloned_uri()
Definition: world_modify.pb.h:340
void set_remove(bool value)
Definition: world_modify.pb.h:282
void set_create(bool value)
Definition: world_modify.pb.h:296