Ignition Msgs

API Reference

8.1.0
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_ignition_2fmsgs_2frest_5fpost_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2frest_5fpost_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 RestPost;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE RestPost : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.RestPost) */ {
57  public:
58  RestPost();
59  virtual ~RestPost();
60 
61  RestPost(const RestPost& from);
62 
63  inline RestPost& operator=(const RestPost& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const RestPost& default_instance();
70 
71  void Swap(RestPost* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline RestPost* New() const { return New(NULL); }
76 
77  RestPost* 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 RestPost& from);
81  void MergeFrom(const RestPost& 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(RestPost* 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 uint32 id = 2;
126  void clear_id();
127  static const int kIdFieldNumber = 2;
128  ::google::protobuf::uint32 id() const;
129  void set_id(::google::protobuf::uint32 value);
130 
131  // optional string route = 3;
132  void clear_route();
133  static const int kRouteFieldNumber = 3;
134  const ::std::string& route() const;
135  void set_route(const ::std::string& value);
136  void set_route(const char* value);
137  void set_route(const char* value, size_t size);
138  ::std::string* mutable_route();
139  ::std::string* release_route();
140  void set_allocated_route(::std::string* route);
141 
142  // optional string json = 4;
143  void clear_json();
144  static const int kJsonFieldNumber = 4;
145  const ::std::string& json() const;
146  void set_json(const ::std::string& value);
147  void set_json(const char* value);
148  void set_json(const char* value, size_t size);
149  ::std::string* mutable_json();
150  ::std::string* release_json();
151  void set_allocated_json(::std::string* json);
152 
153  // @@protoc_insertion_point(class_scope:ignition.msgs.RestPost)
154  private:
155 
156  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
157  bool _is_default_instance_;
158  ::ignition::msgs::Header* header_;
159  ::google::protobuf::internal::ArenaStringPtr route_;
160  ::google::protobuf::internal::ArenaStringPtr json_;
161  ::google::protobuf::uint32 id_;
162  mutable int _cached_size_;
163  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5fpost_2eproto();
166 
167  void InitAsDefaultInstance();
168  static RestPost* default_instance_;
169 };
170 // ===================================================================
171 
172 
173 // ===================================================================
174 
175 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
176 // RestPost
177 
178 // optional .ignition.msgs.Header header = 1;
179 inline bool RestPost::has_header() const {
180  return !_is_default_instance_ && header_ != NULL;
181 }
182 inline void RestPost::clear_header() {
183  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
184  header_ = NULL;
185 }
186 inline const ::ignition::msgs::Header& RestPost::header() const {
187  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.header)
188  return header_ != NULL ? *header_ : *default_instance_->header_;
189 }
190 inline ::ignition::msgs::Header* RestPost::mutable_header() {
191 
192  if (header_ == NULL) {
193  header_ = new ::ignition::msgs::Header;
194  }
195  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestPost.header)
196  return header_;
197 }
198 inline ::ignition::msgs::Header* RestPost::release_header() {
199  // @@protoc_insertion_point(field_release:ignition.msgs.RestPost.header)
200 
201  ::ignition::msgs::Header* temp = header_;
202  header_ = NULL;
203  return temp;
204 }
206  delete header_;
207  header_ = header;
208  if (header) {
209 
210  } else {
211 
212  }
213  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestPost.header)
214 }
215 
216 // optional uint32 id = 2;
217 inline void RestPost::clear_id() {
218  id_ = 0u;
219 }
220 inline ::google::protobuf::uint32 RestPost::id() const {
221  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.id)
222  return id_;
223 }
224 inline void RestPost::set_id(::google::protobuf::uint32 value) {
225 
226  id_ = value;
227  // @@protoc_insertion_point(field_set:ignition.msgs.RestPost.id)
228 }
229 
230 // optional string route = 3;
231 inline void RestPost::clear_route() {
232  route_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
233 }
234 inline const ::std::string& RestPost::route() const {
235  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.route)
236  return route_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
237 }
238 inline void RestPost::set_route(const ::std::string& value) {
239 
240  route_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
241  // @@protoc_insertion_point(field_set:ignition.msgs.RestPost.route)
242 }
243 inline void RestPost::set_route(const char* value) {
244 
245  route_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
246  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestPost.route)
247 }
248 inline void RestPost::set_route(const char* value, size_t size) {
249 
250  route_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
251  ::std::string(reinterpret_cast<const char*>(value), size));
252  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestPost.route)
253 }
254 inline ::std::string* RestPost::mutable_route() {
255 
256  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestPost.route)
257  return route_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
258 }
259 inline ::std::string* RestPost::release_route() {
260  // @@protoc_insertion_point(field_release:ignition.msgs.RestPost.route)
261 
262  return route_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
263 }
265  if (route != NULL) {
266 
267  } else {
268 
269  }
270  route_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), route);
271  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestPost.route)
272 }
273 
274 // optional string json = 4;
275 inline void RestPost::clear_json() {
276  json_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
277 }
278 inline const ::std::string& RestPost::json() const {
279  // @@protoc_insertion_point(field_get:ignition.msgs.RestPost.json)
280  return json_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
281 }
282 inline void RestPost::set_json(const ::std::string& value) {
283 
284  json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
285  // @@protoc_insertion_point(field_set:ignition.msgs.RestPost.json)
286 }
287 inline void RestPost::set_json(const char* value) {
288 
289  json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
290  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestPost.json)
291 }
292 inline void RestPost::set_json(const char* value, size_t size) {
293 
294  json_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
295  ::std::string(reinterpret_cast<const char*>(value), size));
296  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestPost.json)
297 }
298 inline ::std::string* RestPost::mutable_json() {
299 
300  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestPost.json)
301  return json_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
302 }
303 inline ::std::string* RestPost::release_json() {
304  // @@protoc_insertion_point(field_release:ignition.msgs.RestPost.json)
305 
306  return json_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
307 }
309  if (json != NULL) {
310 
311  } else {
312 
313  }
314  json_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json);
315  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestPost.json)
316 }
317 
318 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
319 
324 // @@protoc_insertion_point(namespace_scope)
325 
326 } // namespace msgs
327 } // namespace ignition
328 
329 #ifdef _MSC_VER
330 #pragma warning(pop)
331 #endif
332 // @@protoc_insertion_point(global_scope)
333 
334 #endif // PROTOBUF_ignition_2fmsgs_2frest_5fpost_2eproto__INCLUDED
Definition: rest_post.pb.h:56
void set_allocated_json(::std::string *json)
Definition: rest_post.pb.h:308
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: rest_post.pb.h:92
::google::protobuf::uint32 id() const
Definition: rest_post.pb.h:220
int GetCachedSize() const
Definition: rest_post.pb.h:95
void clear_route()
Definition: rest_post.pb.h:231
const ::std::string & json() const
Definition: rest_post.pb.h:278
void protobuf_AssignDesc_ignition_2fmsgs_2frest_5fpost_2eproto()
void set_allocated_route(::std::string *route)
Definition: rest_post.pb.h:264
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5fpost_2eproto()
::ignition::msgs::Header * release_header()
Definition: rest_post.pb.h:198
void set_id(::google::protobuf::uint32 value)
Definition: rest_post.pb.h:224
std::unique_ptr< RestPost > RestPostUniquePtr
Definition: rest_post.pb.h:320
::ignition::msgs::Header * mutable_header()
Definition: rest_post.pb.h:190
Definition: header.pb.h:161
STL class.
std::shared_ptr< RestPost > RestPostSharedPtr
Definition: rest_post.pb.h:322
const ::std::string & route() const
Definition: rest_post.pb.h:234
::std::string * mutable_json()
Definition: rest_post.pb.h:298
const ::ignition::msgs::Header & header() const
Definition: rest_post.pb.h:186
std::shared_ptr< const RestPost > ConstRestPostSharedPtr
Definition: rest_post.pb.h:323
void set_route(const ::std::string &value)
Definition: rest_post.pb.h:238
RestPost * New() const
Definition: rest_post.pb.h:75
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_post.pb.h:205
void clear_json()
Definition: rest_post.pb.h:275
::std::string * release_json()
Definition: rest_post.pb.h:303
RestPost & operator=(const RestPost &from)
Definition: rest_post.pb.h:63
std::unique_ptr< const RestPost > ConstRestPostUniquePtr
Definition: rest_post.pb.h:321
::std::string * release_route()
Definition: rest_post.pb.h:259
void protobuf_ShutdownFile_ignition_2fmsgs_2frest_5fpost_2eproto()
void clear_header()
Definition: rest_post.pb.h:182
STL class.
::std::string * mutable_route()
Definition: rest_post.pb.h:254
bool has_header() const
Definition: rest_post.pb.h:179
void set_json(const ::std::string &value)
Definition: rest_post.pb.h:282
void clear_id()
Definition: rest_post.pb.h:217