Ignition Msgs

API Reference

5.6.0
web_request.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/web_request.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2fweb_5frequest_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2fweb_5frequest_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 WebRequest;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE WebRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.WebRequest) */ {
57  public:
58  WebRequest();
59  virtual ~WebRequest();
60 
61  WebRequest(const WebRequest& from);
62 
63  inline WebRequest& operator=(const WebRequest& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const WebRequest& default_instance();
70 
71  void Swap(WebRequest* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline WebRequest* New() const { return New(NULL); }
76 
77  WebRequest* 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 WebRequest& from);
81  void MergeFrom(const WebRequest& 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(WebRequest* 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 operation = 2;
126  void clear_operation();
127  static const int kOperationFieldNumber = 2;
128  const ::std::string& operation() const;
129  void set_operation(const ::std::string& value);
130  void set_operation(const char* value);
131  void set_operation(const char* value, size_t size);
132  ::std::string* mutable_operation();
133  ::std::string* release_operation();
134  void set_allocated_operation(::std::string* operation);
135 
136  // optional string topic = 3;
137  void clear_topic();
138  static const int kTopicFieldNumber = 3;
139  const ::std::string& topic() const;
140  void set_topic(const ::std::string& value);
141  void set_topic(const char* value);
142  void set_topic(const char* value, size_t size);
143  ::std::string* mutable_topic();
144  ::std::string* release_topic();
145  void set_allocated_topic(::std::string* topic);
146 
147  // optional string msg_type = 4;
148  void clear_msg_type();
149  static const int kMsgTypeFieldNumber = 4;
150  const ::std::string& msg_type() const;
151  void set_msg_type(const ::std::string& value);
152  void set_msg_type(const char* value);
153  void set_msg_type(const char* value, size_t size);
154  ::std::string* mutable_msg_type();
155  ::std::string* release_msg_type();
156  void set_allocated_msg_type(::std::string* msg_type);
157 
158  // optional string compression = 5;
159  void clear_compression();
160  static const int kCompressionFieldNumber = 5;
161  const ::std::string& compression() const;
162  void set_compression(const ::std::string& value);
163  void set_compression(const char* value);
164  void set_compression(const char* value, size_t size);
165  ::std::string* mutable_compression();
166  ::std::string* release_compression();
167  void set_allocated_compression(::std::string* compression);
168 
169  // optional double hz = 6;
170  void clear_hz();
171  static const int kHzFieldNumber = 6;
172  double hz() const;
173  void set_hz(double value);
174 
175  // @@protoc_insertion_point(class_scope:ignition.msgs.WebRequest)
176  private:
177 
178  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
179  bool _is_default_instance_;
180  ::ignition::msgs::Header* header_;
181  ::google::protobuf::internal::ArenaStringPtr operation_;
182  ::google::protobuf::internal::ArenaStringPtr topic_;
183  ::google::protobuf::internal::ArenaStringPtr msg_type_;
184  ::google::protobuf::internal::ArenaStringPtr compression_;
185  double hz_;
186  mutable int _cached_size_;
187  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fweb_5frequest_2eproto();
190 
191  void InitAsDefaultInstance();
192  static WebRequest* default_instance_;
193 };
194 // ===================================================================
195 
196 
197 // ===================================================================
198 
199 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
200 // WebRequest
201 
202 // optional .ignition.msgs.Header header = 1;
203 inline bool WebRequest::has_header() const {
204  return !_is_default_instance_ && header_ != NULL;
205 }
207  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
208  header_ = NULL;
209 }
210 inline const ::ignition::msgs::Header& WebRequest::header() const {
211  // @@protoc_insertion_point(field_get:ignition.msgs.WebRequest.header)
212  return header_ != NULL ? *header_ : *default_instance_->header_;
213 }
214 inline ::ignition::msgs::Header* WebRequest::mutable_header() {
215 
216  if (header_ == NULL) {
217  header_ = new ::ignition::msgs::Header;
218  }
219  // @@protoc_insertion_point(field_mutable:ignition.msgs.WebRequest.header)
220  return header_;
221 }
222 inline ::ignition::msgs::Header* WebRequest::release_header() {
223  // @@protoc_insertion_point(field_release:ignition.msgs.WebRequest.header)
224 
225  ::ignition::msgs::Header* temp = header_;
226  header_ = NULL;
227  return temp;
228 }
230  delete header_;
231  header_ = header;
232  if (header) {
233 
234  } else {
235 
236  }
237  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WebRequest.header)
238 }
239 
240 // optional string operation = 2;
242  operation_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
243 }
244 inline const ::std::string& WebRequest::operation() const {
245  // @@protoc_insertion_point(field_get:ignition.msgs.WebRequest.operation)
246  return operation_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
247 }
248 inline void WebRequest::set_operation(const ::std::string& value) {
249 
250  operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
251  // @@protoc_insertion_point(field_set:ignition.msgs.WebRequest.operation)
252 }
253 inline void WebRequest::set_operation(const char* value) {
254 
255  operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
256  // @@protoc_insertion_point(field_set_char:ignition.msgs.WebRequest.operation)
257 }
258 inline void WebRequest::set_operation(const char* value, size_t size) {
259 
260  operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
261  ::std::string(reinterpret_cast<const char*>(value), size));
262  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WebRequest.operation)
263 }
264 inline ::std::string* WebRequest::mutable_operation() {
265 
266  // @@protoc_insertion_point(field_mutable:ignition.msgs.WebRequest.operation)
267  return operation_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
268 }
269 inline ::std::string* WebRequest::release_operation() {
270  // @@protoc_insertion_point(field_release:ignition.msgs.WebRequest.operation)
271 
272  return operation_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
273 }
275  if (operation != NULL) {
276 
277  } else {
278 
279  }
280  operation_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation);
281  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WebRequest.operation)
282 }
283 
284 // optional string topic = 3;
285 inline void WebRequest::clear_topic() {
286  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
287 }
288 inline const ::std::string& WebRequest::topic() const {
289  // @@protoc_insertion_point(field_get:ignition.msgs.WebRequest.topic)
290  return topic_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
291 }
292 inline void WebRequest::set_topic(const ::std::string& value) {
293 
294  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
295  // @@protoc_insertion_point(field_set:ignition.msgs.WebRequest.topic)
296 }
297 inline void WebRequest::set_topic(const char* value) {
298 
299  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
300  // @@protoc_insertion_point(field_set_char:ignition.msgs.WebRequest.topic)
301 }
302 inline void WebRequest::set_topic(const char* value, size_t size) {
303 
304  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
305  ::std::string(reinterpret_cast<const char*>(value), size));
306  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WebRequest.topic)
307 }
308 inline ::std::string* WebRequest::mutable_topic() {
309 
310  // @@protoc_insertion_point(field_mutable:ignition.msgs.WebRequest.topic)
311  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
312 }
313 inline ::std::string* WebRequest::release_topic() {
314  // @@protoc_insertion_point(field_release:ignition.msgs.WebRequest.topic)
315 
316  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
317 }
319  if (topic != NULL) {
320 
321  } else {
322 
323  }
324  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
325  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WebRequest.topic)
326 }
327 
328 // optional string msg_type = 4;
330  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
331 }
332 inline const ::std::string& WebRequest::msg_type() const {
333  // @@protoc_insertion_point(field_get:ignition.msgs.WebRequest.msg_type)
334  return msg_type_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
335 }
336 inline void WebRequest::set_msg_type(const ::std::string& value) {
337 
338  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
339  // @@protoc_insertion_point(field_set:ignition.msgs.WebRequest.msg_type)
340 }
341 inline void WebRequest::set_msg_type(const char* value) {
342 
343  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
344  // @@protoc_insertion_point(field_set_char:ignition.msgs.WebRequest.msg_type)
345 }
346 inline void WebRequest::set_msg_type(const char* value, size_t size) {
347 
348  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
349  ::std::string(reinterpret_cast<const char*>(value), size));
350  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WebRequest.msg_type)
351 }
352 inline ::std::string* WebRequest::mutable_msg_type() {
353 
354  // @@protoc_insertion_point(field_mutable:ignition.msgs.WebRequest.msg_type)
355  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
356 }
357 inline ::std::string* WebRequest::release_msg_type() {
358  // @@protoc_insertion_point(field_release:ignition.msgs.WebRequest.msg_type)
359 
360  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
361 }
363  if (msg_type != NULL) {
364 
365  } else {
366 
367  }
368  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
369  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WebRequest.msg_type)
370 }
371 
372 // optional string compression = 5;
374  compression_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
375 }
376 inline const ::std::string& WebRequest::compression() const {
377  // @@protoc_insertion_point(field_get:ignition.msgs.WebRequest.compression)
378  return compression_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
379 }
380 inline void WebRequest::set_compression(const ::std::string& value) {
381 
382  compression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
383  // @@protoc_insertion_point(field_set:ignition.msgs.WebRequest.compression)
384 }
385 inline void WebRequest::set_compression(const char* value) {
386 
387  compression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
388  // @@protoc_insertion_point(field_set_char:ignition.msgs.WebRequest.compression)
389 }
390 inline void WebRequest::set_compression(const char* value, size_t size) {
391 
392  compression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
393  ::std::string(reinterpret_cast<const char*>(value), size));
394  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.WebRequest.compression)
395 }
396 inline ::std::string* WebRequest::mutable_compression() {
397 
398  // @@protoc_insertion_point(field_mutable:ignition.msgs.WebRequest.compression)
399  return compression_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
400 }
401 inline ::std::string* WebRequest::release_compression() {
402  // @@protoc_insertion_point(field_release:ignition.msgs.WebRequest.compression)
403 
404  return compression_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
405 }
407  if (compression != NULL) {
408 
409  } else {
410 
411  }
412  compression_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), compression);
413  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.WebRequest.compression)
414 }
415 
416 // optional double hz = 6;
417 inline void WebRequest::clear_hz() {
418  hz_ = 0;
419 }
420 inline double WebRequest::hz() const {
421  // @@protoc_insertion_point(field_get:ignition.msgs.WebRequest.hz)
422  return hz_;
423 }
424 inline void WebRequest::set_hz(double value) {
425 
426  hz_ = value;
427  // @@protoc_insertion_point(field_set:ignition.msgs.WebRequest.hz)
428 }
429 
430 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
431 
436 // @@protoc_insertion_point(namespace_scope)
437 
438 } // namespace msgs
439 } // namespace ignition
440 
441 #ifdef _MSC_VER
442 #pragma warning(pop)
443 #endif
444 // @@protoc_insertion_point(global_scope)
445 
446 #endif // PROTOBUF_ignition_2fmsgs_2fweb_5frequest_2eproto__INCLUDED
void set_topic(const ::std::string &value)
Definition: web_request.pb.h:292
void clear_topic()
Definition: web_request.pb.h:285
const ::std::string & operation() const
Definition: web_request.pb.h:244
void set_allocated_operation(::std::string *operation)
Definition: web_request.pb.h:274
::std::string * mutable_operation()
Definition: web_request.pb.h:264
::std::string * release_msg_type()
Definition: web_request.pb.h:357
const ::std::string & compression() const
Definition: web_request.pb.h:376
::std::string * mutable_msg_type()
Definition: web_request.pb.h:352
std::shared_ptr< WebRequest > WebRequestSharedPtr
Definition: web_request.pb.h:434
const ::std::string & topic() const
Definition: web_request.pb.h:288
::std::string * release_compression()
Definition: web_request.pb.h:401
void clear_operation()
Definition: web_request.pb.h:241
Definition: header.pb.h:161
STL class.
void set_msg_type(const ::std::string &value)
Definition: web_request.pb.h:336
void set_allocated_msg_type(::std::string *msg_type)
Definition: web_request.pb.h:362
void protobuf_AssignDesc_ignition_2fmsgs_2fweb_5frequest_2eproto()
void clear_header()
Definition: web_request.pb.h:206
::std::string * mutable_topic()
Definition: web_request.pb.h:308
::ignition::msgs::Header * release_header()
Definition: web_request.pb.h:222
const ::std::string & msg_type() const
Definition: web_request.pb.h:332
void set_operation(const ::std::string &value)
Definition: web_request.pb.h:248
void set_compression(const ::std::string &value)
Definition: web_request.pb.h:380
void set_allocated_compression(::std::string *compression)
Definition: web_request.pb.h:406
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fweb_5frequest_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2fweb_5frequest_2eproto()
std::unique_ptr< const WebRequest > ConstWebRequestUniquePtr
Definition: web_request.pb.h:433
WebRequest & operator=(const WebRequest &from)
Definition: web_request.pb.h:63
::std::string * release_operation()
Definition: web_request.pb.h:269
const ::ignition::msgs::Header & header() const
Definition: web_request.pb.h:210
void clear_compression()
Definition: web_request.pb.h:373
::ignition::msgs::Header * mutable_header()
Definition: web_request.pb.h:214
double hz() const
Definition: web_request.pb.h:420
void set_hz(double value)
Definition: web_request.pb.h:424
bool has_header() const
Definition: web_request.pb.h:203
STL class.
std::unique_ptr< WebRequest > WebRequestUniquePtr
Definition: web_request.pb.h:432
void set_allocated_topic(::std::string *topic)
Definition: web_request.pb.h:318
std::shared_ptr< const WebRequest > ConstWebRequestSharedPtr
Definition: web_request.pb.h:435
::std::string * release_topic()
Definition: web_request.pb.h:313
::std::string * mutable_compression()
Definition: web_request.pb.h:396
WebRequest * New() const
Definition: web_request.pb.h:75
Definition: web_request.pb.h:56
void set_allocated_header(::ignition::msgs::Header *header)
Definition: web_request.pb.h:229
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: web_request.pb.h:92
void clear_hz()
Definition: web_request.pb.h:417
void clear_msg_type()
Definition: web_request.pb.h:329
int GetCachedSize() const
Definition: web_request.pb.h:95