Gazebo Msgs

API Reference

5.11.0
build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/rest_post.proto
3 
4 #ifndef PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_2eproto
5 #define PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_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>
34 #ifndef _MSC_VER
35 #pragma GCC system_header
36 #else
37 #pragma warning(push)
38 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
39 #endif
40 #ifdef __linux__
41 #include <sys/sysmacros.h>
42 #endif
43 #include <memory>
44 #include <ignition/msgs/Export.hh>
45 // @@protoc_insertion_point(includes)
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ignition_2fmsgs_2frest_5fpost_2eproto IGNITION_MSGS_VISIBLE
47 
49 // Internal implementation detail -- do not use these members.
50 struct IGNITION_MSGS_VISIBLE TableStruct {
51  static const ::google::protobuf::internal::ParseTableField entries[];
52  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
53  static const ::google::protobuf::internal::ParseTable schema[1];
54  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
55  static const ::google::protobuf::internal::SerializationTable serialization_table[];
56  static const ::google::protobuf::uint32 offsets[];
57 };
58 void IGNITION_MSGS_VISIBLE AddDescriptors();
59 } // namespace protobuf_ignition_2fmsgs_2frest_5fpost_2eproto
60 namespace ignition {
61 namespace msgs {
62 class RestPost;
63 class RestPostDefaultTypeInternal;
64 IGNITION_MSGS_VISIBLE extern RestPostDefaultTypeInternal _RestPost_default_instance_;
65 } // namespace msgs
66 } // namespace ignition
67 namespace google {
68 namespace protobuf {
69 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::RestPost* Arena::CreateMaybeMessage<::ignition::msgs::RestPost>(Arena*);
70 } // namespace protobuf
71 } // namespace google
72 namespace ignition {
73 namespace msgs {
74 
75 // ===================================================================
76 
77 class IGNITION_MSGS_VISIBLE RestPost : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.RestPost) */ {
78  public:
79  RestPost();
80  virtual ~RestPost();
81 
82  RestPost(const RestPost& from);
83 
84  inline RestPost& operator=(const RestPost& from) {
85  CopyFrom(from);
86  return *this;
87  }
88  #if LANG_CXX11
89  RestPost(RestPost&& from) noexcept
90  : RestPost() {
91  *this = ::std::move(from);
92  }
93 
94  inline RestPost& operator=(RestPost&& from) noexcept {
95  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
96  if (this != &from) InternalSwap(&from);
97  } else {
98  CopyFrom(from);
99  }
100  return *this;
101  }
102  #endif
103  static const ::google::protobuf::Descriptor* descriptor();
104  static const RestPost& default_instance();
105 
106  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107  static inline const RestPost* internal_default_instance() {
108  return reinterpret_cast<const RestPost*>(
110  }
111  static constexpr int kIndexInFileMessages =
112  0;
113 
114  void Swap(RestPost* other);
115  friend void swap(RestPost& a, RestPost& b) {
116  a.Swap(&b);
117  }
118 
119  // implements Message ----------------------------------------------
120 
121  inline RestPost* New() const final {
122  return CreateMaybeMessage<RestPost>(NULL);
123  }
124 
125  RestPost* New(::google::protobuf::Arena* arena) const final {
126  return CreateMaybeMessage<RestPost>(arena);
127  }
128  void CopyFrom(const ::google::protobuf::Message& from) final;
129  void MergeFrom(const ::google::protobuf::Message& from) final;
130  void CopyFrom(const RestPost& from);
131  void MergeFrom(const RestPost& from);
132  void Clear() final;
133  bool IsInitialized() const final;
134 
135  size_t ByteSizeLong() const final;
136  bool MergePartialFromCodedStream(
137  ::google::protobuf::io::CodedInputStream* input) final;
138  void SerializeWithCachedSizes(
139  ::google::protobuf::io::CodedOutputStream* output) const final;
140  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
141  bool deterministic, ::google::protobuf::uint8* target) const final;
142  int GetCachedSize() const final { return _cached_size_.Get(); }
143 
144  private:
145  void SharedCtor();
146  void SharedDtor();
147  void SetCachedSize(int size) const final;
148  void InternalSwap(RestPost* other);
149  private:
150  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
151  return NULL;
152  }
153  inline void* MaybeArenaPtr() const {
154  return NULL;
155  }
156  public:
157 
158  ::google::protobuf::Metadata GetMetadata() const final;
159 
160  // nested types ----------------------------------------------------
161 
162  // accessors -------------------------------------------------------
163 
164  // string route = 3;
165  void clear_route();
166  static const int kRouteFieldNumber = 3;
167  const ::std::string& route() const;
168  void set_route(const ::std::string& value);
169  #if LANG_CXX11
170  void set_route(::std::string&& value);
171  #endif
172  void set_route(const char* value);
173  void set_route(const char* value, size_t size);
174  ::std::string* mutable_route();
175  ::std::string* release_route();
176  void set_allocated_route(::std::string* route);
177 
178  // string json = 4;
179  void clear_json();
180  static const int kJsonFieldNumber = 4;
181  const ::std::string& json() const;
182  void set_json(const ::std::string& value);
183  #if LANG_CXX11
184  void set_json(::std::string&& value);
185  #endif
186  void set_json(const char* value);
187  void set_json(const char* value, size_t size);
188  ::std::string* mutable_json();
189  ::std::string* release_json();
190  void set_allocated_json(::std::string* json);
191 
192  // .ignition.msgs.Header header = 1;
193  bool has_header() const;
194  void clear_header();
195  static const int kHeaderFieldNumber = 1;
196  private:
197  const ::ignition::msgs::Header& _internal_header() const;
198  public:
199  const ::ignition::msgs::Header& header() const;
200  ::ignition::msgs::Header* release_header();
201  ::ignition::msgs::Header* mutable_header();
202  void set_allocated_header(::ignition::msgs::Header* header);
203 
204  // uint32 id = 2;
205  void clear_id();
206  static const int kIdFieldNumber = 2;
207  ::google::protobuf::uint32 id() const;
208  void set_id(::google::protobuf::uint32 value);
209 
210  // @@protoc_insertion_point(class_scope:ignition.msgs.RestPost)
211  private:
212 
213  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
214  ::google::protobuf::internal::ArenaStringPtr route_;
215  ::google::protobuf::internal::ArenaStringPtr json_;
216  ::ignition::msgs::Header* header_;
217  ::google::protobuf::uint32 id_;
218  mutable ::google::protobuf::internal::CachedSize _cached_size_;
219  friend struct ::protobuf_ignition_2fmsgs_2frest_5fpost_2eproto::TableStruct;
220 };
221 // ===================================================================
222 
223 
224 // ===================================================================
225 
226 #ifdef __GNUC__
227  #pragma GCC diagnostic push
228  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
229 #endif // __GNUC__
230 // RestPost
231 
232 // .ignition.msgs.Header header = 1;
233 inline bool RestPost::has_header() const {
234  return this != internal_default_instance() && header_ != NULL;
235 }
236 inline const ::ignition::msgs::Header& RestPost::_internal_header() const {
237  return *header_;
238 }
239 inline const ::ignition::msgs::Header& RestPost::header() const {
240  const ::ignition::msgs::Header* p = header_;
241  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.header)
242  return p != NULL ? *p : *reinterpret_cast<const ::ignition::msgs::Header*>(
244 }
245 inline ::ignition::msgs::Header* RestPost::release_header() {
246  // @@protoc_insertion_point(field_release:ignition.msgs.RestPost.header)
247 
248  ::ignition::msgs::Header* temp = header_;
249  header_ = NULL;
250  return temp;
251 }
252 inline ::ignition::msgs::Header* RestPost::mutable_header() {
253 
254  if (header_ == NULL) {
255  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArenaNoVirtual());
256  header_ = p;
257  }
258  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestPost.header)
259  return header_;
260 }
262  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
263  if (message_arena == NULL) {
264  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
265  }
266  if (header) {
267  ::google::protobuf::Arena* submessage_arena = NULL;
268  if (message_arena != submessage_arena) {
269  header = ::google::protobuf::internal::GetOwnedMessage(
270  message_arena, header, submessage_arena);
271  }
272 
273  } else {
274 
275  }
276  header_ = header;
277  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestPost.header)
278 }
279 
280 // uint32 id = 2;
281 inline void RestPost::clear_id() {
282  id_ = 0u;
283 }
284 inline ::google::protobuf::uint32 RestPost::id() const {
285  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.id)
286  return id_;
287 }
288 inline void RestPost::set_id(::google::protobuf::uint32 value) {
289 
290  id_ = value;
291  // @@protoc_insertion_point(field_set:ignition.msgs.RestPost.id)
292 }
293 
294 // string route = 3;
295 inline void RestPost::clear_route() {
296  route_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
297 }
298 inline const ::std::string& RestPost::route() const {
299  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.route)
300  return route_.GetNoArena();
301 }
302 inline void RestPost::set_route(const ::std::string& value) {
303 
304  route_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
305  // @@protoc_insertion_point(field_set:ignition.msgs.RestPost.route)
306 }
307 #if LANG_CXX11
308 inline void RestPost::set_route(::std::string&& value) {
309 
310  route_.SetNoArena(
311  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
312  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.RestPost.route)
313 }
314 #endif
315 inline void RestPost::set_route(const char* value) {
316  GOOGLE_DCHECK(value != NULL);
317 
318  route_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
319  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestPost.route)
320 }
321 inline void RestPost::set_route(const char* value, size_t size) {
322 
323  route_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
324  ::std::string(reinterpret_cast<const char*>(value), size));
325  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestPost.route)
326 }
327 inline ::std::string* RestPost::mutable_route() {
328 
329  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestPost.route)
330  return route_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331 }
332 inline ::std::string* RestPost::release_route() {
333  // @@protoc_insertion_point(field_release:ignition.msgs.RestPost.route)
334 
335  return route_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
336 }
338  if (route != NULL) {
339 
340  } else {
341 
342  }
343  route_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), route);
344  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestPost.route)
345 }
346 
347 // string json = 4;
348 inline void RestPost::clear_json() {
349  json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
350 }
351 inline const ::std::string& RestPost::json() const {
352  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.json)
353  return json_.GetNoArena();
354 }
355 inline void RestPost::set_json(const ::std::string& value) {
356 
357  json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
358  // @@protoc_insertion_point(field_set:ignition.msgs.RestPost.json)
359 }
360 #if LANG_CXX11
361 inline void RestPost::set_json(::std::string&& value) {
362 
363  json_.SetNoArena(
364  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
365  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.RestPost.json)
366 }
367 #endif
368 inline void RestPost::set_json(const char* value) {
369  GOOGLE_DCHECK(value != NULL);
370 
371  json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
372  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestPost.json)
373 }
374 inline void RestPost::set_json(const char* value, size_t size) {
375 
376  json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
377  ::std::string(reinterpret_cast<const char*>(value), size));
378  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestPost.json)
379 }
380 inline ::std::string* RestPost::mutable_json() {
381 
382  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestPost.json)
383  return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
384 }
385 inline ::std::string* RestPost::release_json() {
386  // @@protoc_insertion_point(field_release:ignition.msgs.RestPost.json)
387 
388  return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389 }
391  if (json != NULL) {
392 
393  } else {
394 
395  }
396  json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json);
397  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestPost.json)
398 }
399 
400 #ifdef __GNUC__
401  #pragma GCC diagnostic pop
402 #endif // __GNUC__
403 
408 // @@protoc_insertion_point(namespace_scope)
409 
410 } // namespace msgs
411 } // namespace ignition
412 
413 #ifdef _MSC_VER
414 #pragma warning(pop)
415 #endif
416 // @@protoc_insertion_point(global_scope)
417 
418 #endif // PROTOBUF_INCLUDED_ignition_2fmsgs_2frest_5fpost_2eproto
void set_route(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:302
void Swap(RestPost *other)
RestPost & operator=(const RestPost &from)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:84
STL class.
STL class.
::std::string * mutable_json()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:380
RestPost * New() const final
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:121
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:50
::std::string * mutable_route()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:327
T move(T... args)
void set_allocated_header(::ignition::msgs::Header *header)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:261
void set_json(const ::std::string &value)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:355
std::shared_ptr< const RestPost > ConstRestPostSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:407
std::unique_ptr< RestPost > RestPostUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:404
::std::string * release_route()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:332
bool has_header() const
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:233
static const RestPost * internal_default_instance()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:107
friend void swap(RestPost &a, RestPost &b)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:115
void clear_id()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:281
std::shared_ptr< RestPost > RestPostSharedPtr
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:406
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:48
const ::std::string & json() const
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:351
::ignition::msgs::Header * release_header()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:245
::google::protobuf::uint32 id() const
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:284
void set_allocated_json(::std::string *json)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:390
std::unique_ptr< const RestPost > ConstRestPostUniquePtr
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:405
void set_allocated_route(::std::string *route)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:337
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
STL namespace.
Definition: build/ignition-msgs5/include/ignition/msgs/header.pb.h:215
void clear_route()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:295
::ignition::msgs::Header * mutable_header()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:252
const ::ignition::msgs::Header & header() const
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:239
void set_id(::google::protobuf::uint32 value)
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:288
void IGNITION_MSGS_VISIBLE AddDescriptors()
IGNITION_MSGS_VISIBLE RestPostDefaultTypeInternal _RestPost_default_instance_
RestPost * New(::google::protobuf::Arena *arena) const final
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:125
void clear_json()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:348
STL class.
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:77
Definition: build/ignition-msgs5/include/ignition/msgs/actor.pb.h:78
const ::std::string & route() const
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:298
::std::string * release_json()
Definition: build/ignition-msgs5/include/ignition/msgs/rest_post.pb.h:385