Gazebo Msgs

API Reference

9.5.0
web_request.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/web_request.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fweb_5frequest_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fweb_5frequest_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_2fweb_5frequest_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_2fweb_5frequest_2eproto
49 namespace gz {
50 namespace msgs {
51 class WebRequest;
52 class WebRequestDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern WebRequestDefaultTypeInternal _WebRequest_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::WebRequest* Arena::CreateMaybeMessage<::gz::msgs::WebRequest>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE WebRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.WebRequest) */ {
67  public:
68  WebRequest();
69  virtual ~WebRequest();
70 
71  WebRequest(const WebRequest& from);
72 
73  inline WebRequest& operator=(const WebRequest& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  WebRequest(WebRequest&& from) noexcept
79  : WebRequest() {
80  *this = ::std::move(from);
81  }
82 
83  inline WebRequest& operator=(WebRequest&& 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 WebRequest& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const WebRequest* internal_default_instance() {
97  return reinterpret_cast<const WebRequest*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(WebRequest* other);
104  friend void swap(WebRequest& a, WebRequest& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline WebRequest* New() const final {
111  return CreateMaybeMessage<WebRequest>(NULL);
112  }
113 
114  WebRequest* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<WebRequest>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const WebRequest& from);
120  void MergeFrom(const WebRequest& 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(WebRequest* 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 operation = 2;
154  void clear_operation();
155  static const int kOperationFieldNumber = 2;
156  const ::std::string& operation() const;
157  void set_operation(const ::std::string& value);
158  #if LANG_CXX11
159  void set_operation(::std::string&& value);
160  #endif
161  void set_operation(const char* value);
162  void set_operation(const char* value, size_t size);
163  ::std::string* mutable_operation();
164  ::std::string* release_operation();
165  void set_allocated_operation(::std::string* operation);
166 
167  // string topic = 3;
168  void clear_topic();
169  static const int kTopicFieldNumber = 3;
170  const ::std::string& topic() const;
171  void set_topic(const ::std::string& value);
172  #if LANG_CXX11
173  void set_topic(::std::string&& value);
174  #endif
175  void set_topic(const char* value);
176  void set_topic(const char* value, size_t size);
177  ::std::string* mutable_topic();
178  ::std::string* release_topic();
179  void set_allocated_topic(::std::string* topic);
180 
181  // string msg_type = 4;
182  void clear_msg_type();
183  static const int kMsgTypeFieldNumber = 4;
184  const ::std::string& msg_type() const;
185  void set_msg_type(const ::std::string& value);
186  #if LANG_CXX11
187  void set_msg_type(::std::string&& value);
188  #endif
189  void set_msg_type(const char* value);
190  void set_msg_type(const char* value, size_t size);
191  ::std::string* mutable_msg_type();
192  ::std::string* release_msg_type();
193  void set_allocated_msg_type(::std::string* msg_type);
194 
195  // string compression = 5;
196  void clear_compression();
197  static const int kCompressionFieldNumber = 5;
198  const ::std::string& compression() const;
199  void set_compression(const ::std::string& value);
200  #if LANG_CXX11
201  void set_compression(::std::string&& value);
202  #endif
203  void set_compression(const char* value);
204  void set_compression(const char* value, size_t size);
205  ::std::string* mutable_compression();
206  ::std::string* release_compression();
207  void set_allocated_compression(::std::string* compression);
208 
209  // .gz.msgs.Header header = 1;
210  bool has_header() const;
211  void clear_header();
212  static const int kHeaderFieldNumber = 1;
213  private:
214  const ::gz::msgs::Header& _internal_header() const;
215  public:
216  const ::gz::msgs::Header& header() const;
217  ::gz::msgs::Header* release_header();
218  ::gz::msgs::Header* mutable_header();
219  void set_allocated_header(::gz::msgs::Header* header);
220 
221  // double hz = 6;
222  void clear_hz();
223  static const int kHzFieldNumber = 6;
224  double hz() const;
225  void set_hz(double value);
226 
227  // @@protoc_insertion_point(class_scope:gz.msgs.WebRequest)
228  private:
229 
230  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
231  ::google::protobuf::internal::ArenaStringPtr operation_;
232  ::google::protobuf::internal::ArenaStringPtr topic_;
233  ::google::protobuf::internal::ArenaStringPtr msg_type_;
234  ::google::protobuf::internal::ArenaStringPtr compression_;
235  ::gz::msgs::Header* header_;
236  double hz_;
237  mutable ::google::protobuf::internal::CachedSize _cached_size_;
238  friend struct ::protobuf_gz_2fmsgs_2fweb_5frequest_2eproto::TableStruct;
239 };
240 // ===================================================================
241 
242 
243 // ===================================================================
244 
245 #ifdef __GNUC__
246  #pragma GCC diagnostic push
247  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
248 #endif // __GNUC__
249 // WebRequest
250 
251 // .gz.msgs.Header header = 1;
252 inline bool WebRequest::has_header() const {
253  return this != internal_default_instance() && header_ != NULL;
254 }
255 inline const ::gz::msgs::Header& WebRequest::_internal_header() const {
256  return *header_;
257 }
258 inline const ::gz::msgs::Header& WebRequest::header() const {
259  const ::gz::msgs::Header* p = header_;
260  // @@protoc_insertion_point(field_get:gz.msgs.WebRequest.header)
261  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
263 }
264 inline ::gz::msgs::Header* WebRequest::release_header() {
265  // @@protoc_insertion_point(field_release:gz.msgs.WebRequest.header)
266 
267  ::gz::msgs::Header* temp = header_;
268  header_ = NULL;
269  return temp;
270 }
271 inline ::gz::msgs::Header* WebRequest::mutable_header() {
272 
273  if (header_ == NULL) {
274  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
275  header_ = p;
276  }
277  // @@protoc_insertion_point(field_mutable:gz.msgs.WebRequest.header)
278  return header_;
279 }
281  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
282  if (message_arena == NULL) {
283  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
284  }
285  if (header) {
286  ::google::protobuf::Arena* submessage_arena = NULL;
287  if (message_arena != submessage_arena) {
288  header = ::google::protobuf::internal::GetOwnedMessage(
289  message_arena, header, submessage_arena);
290  }
291 
292  } else {
293 
294  }
295  header_ = header;
296  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WebRequest.header)
297 }
298 
299 // string operation = 2;
301  operation_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
302 }
303 inline const ::std::string& WebRequest::operation() const {
304  // @@protoc_insertion_point(field_get:gz.msgs.WebRequest.operation)
305  return operation_.GetNoArena();
306 }
307 inline void WebRequest::set_operation(const ::std::string& value) {
308 
309  operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
310  // @@protoc_insertion_point(field_set:gz.msgs.WebRequest.operation)
311 }
312 #if LANG_CXX11
313 inline void WebRequest::set_operation(::std::string&& value) {
314 
315  operation_.SetNoArena(
316  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
317  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.WebRequest.operation)
318 }
319 #endif
320 inline void WebRequest::set_operation(const char* value) {
321  GOOGLE_DCHECK(value != NULL);
322 
323  operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
324  // @@protoc_insertion_point(field_set_char:gz.msgs.WebRequest.operation)
325 }
326 inline void WebRequest::set_operation(const char* value, size_t size) {
327 
328  operation_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
329  ::std::string(reinterpret_cast<const char*>(value), size));
330  // @@protoc_insertion_point(field_set_pointer:gz.msgs.WebRequest.operation)
331 }
332 inline ::std::string* WebRequest::mutable_operation() {
333 
334  // @@protoc_insertion_point(field_mutable:gz.msgs.WebRequest.operation)
335  return operation_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
336 }
337 inline ::std::string* WebRequest::release_operation() {
338  // @@protoc_insertion_point(field_release:gz.msgs.WebRequest.operation)
339 
340  return operation_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
341 }
343  if (operation != NULL) {
344 
345  } else {
346 
347  }
348  operation_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation);
349  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WebRequest.operation)
350 }
351 
352 // string topic = 3;
353 inline void WebRequest::clear_topic() {
354  topic_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
355 }
356 inline const ::std::string& WebRequest::topic() const {
357  // @@protoc_insertion_point(field_get:gz.msgs.WebRequest.topic)
358  return topic_.GetNoArena();
359 }
360 inline void WebRequest::set_topic(const ::std::string& value) {
361 
362  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
363  // @@protoc_insertion_point(field_set:gz.msgs.WebRequest.topic)
364 }
365 #if LANG_CXX11
366 inline void WebRequest::set_topic(::std::string&& value) {
367 
368  topic_.SetNoArena(
369  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
370  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.WebRequest.topic)
371 }
372 #endif
373 inline void WebRequest::set_topic(const char* value) {
374  GOOGLE_DCHECK(value != NULL);
375 
376  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
377  // @@protoc_insertion_point(field_set_char:gz.msgs.WebRequest.topic)
378 }
379 inline void WebRequest::set_topic(const char* value, size_t size) {
380 
381  topic_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
382  ::std::string(reinterpret_cast<const char*>(value), size));
383  // @@protoc_insertion_point(field_set_pointer:gz.msgs.WebRequest.topic)
384 }
385 inline ::std::string* WebRequest::mutable_topic() {
386 
387  // @@protoc_insertion_point(field_mutable:gz.msgs.WebRequest.topic)
388  return topic_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
389 }
390 inline ::std::string* WebRequest::release_topic() {
391  // @@protoc_insertion_point(field_release:gz.msgs.WebRequest.topic)
392 
393  return topic_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
394 }
396  if (topic != NULL) {
397 
398  } else {
399 
400  }
401  topic_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), topic);
402  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WebRequest.topic)
403 }
404 
405 // string msg_type = 4;
407  msg_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 }
409 inline const ::std::string& WebRequest::msg_type() const {
410  // @@protoc_insertion_point(field_get:gz.msgs.WebRequest.msg_type)
411  return msg_type_.GetNoArena();
412 }
413 inline void WebRequest::set_msg_type(const ::std::string& value) {
414 
415  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
416  // @@protoc_insertion_point(field_set:gz.msgs.WebRequest.msg_type)
417 }
418 #if LANG_CXX11
419 inline void WebRequest::set_msg_type(::std::string&& value) {
420 
421  msg_type_.SetNoArena(
422  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
423  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.WebRequest.msg_type)
424 }
425 #endif
426 inline void WebRequest::set_msg_type(const char* value) {
427  GOOGLE_DCHECK(value != NULL);
428 
429  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
430  // @@protoc_insertion_point(field_set_char:gz.msgs.WebRequest.msg_type)
431 }
432 inline void WebRequest::set_msg_type(const char* value, size_t size) {
433 
434  msg_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
435  ::std::string(reinterpret_cast<const char*>(value), size));
436  // @@protoc_insertion_point(field_set_pointer:gz.msgs.WebRequest.msg_type)
437 }
438 inline ::std::string* WebRequest::mutable_msg_type() {
439 
440  // @@protoc_insertion_point(field_mutable:gz.msgs.WebRequest.msg_type)
441  return msg_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
442 }
443 inline ::std::string* WebRequest::release_msg_type() {
444  // @@protoc_insertion_point(field_release:gz.msgs.WebRequest.msg_type)
445 
446  return msg_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
447 }
449  if (msg_type != NULL) {
450 
451  } else {
452 
453  }
454  msg_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg_type);
455  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WebRequest.msg_type)
456 }
457 
458 // string compression = 5;
460  compression_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
461 }
462 inline const ::std::string& WebRequest::compression() const {
463  // @@protoc_insertion_point(field_get:gz.msgs.WebRequest.compression)
464  return compression_.GetNoArena();
465 }
466 inline void WebRequest::set_compression(const ::std::string& value) {
467 
468  compression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
469  // @@protoc_insertion_point(field_set:gz.msgs.WebRequest.compression)
470 }
471 #if LANG_CXX11
472 inline void WebRequest::set_compression(::std::string&& value) {
473 
474  compression_.SetNoArena(
475  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
476  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.WebRequest.compression)
477 }
478 #endif
479 inline void WebRequest::set_compression(const char* value) {
480  GOOGLE_DCHECK(value != NULL);
481 
482  compression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
483  // @@protoc_insertion_point(field_set_char:gz.msgs.WebRequest.compression)
484 }
485 inline void WebRequest::set_compression(const char* value, size_t size) {
486 
487  compression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
488  ::std::string(reinterpret_cast<const char*>(value), size));
489  // @@protoc_insertion_point(field_set_pointer:gz.msgs.WebRequest.compression)
490 }
491 inline ::std::string* WebRequest::mutable_compression() {
492 
493  // @@protoc_insertion_point(field_mutable:gz.msgs.WebRequest.compression)
494  return compression_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
495 }
496 inline ::std::string* WebRequest::release_compression() {
497  // @@protoc_insertion_point(field_release:gz.msgs.WebRequest.compression)
498 
499  return compression_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
500 }
502  if (compression != NULL) {
503 
504  } else {
505 
506  }
507  compression_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), compression);
508  // @@protoc_insertion_point(field_set_allocated:gz.msgs.WebRequest.compression)
509 }
510 
511 // double hz = 6;
512 inline void WebRequest::clear_hz() {
513  hz_ = 0;
514 }
515 inline double WebRequest::hz() const {
516  // @@protoc_insertion_point(field_get:gz.msgs.WebRequest.hz)
517  return hz_;
518 }
519 inline void WebRequest::set_hz(double value) {
520 
521  hz_ = value;
522  // @@protoc_insertion_point(field_set:gz.msgs.WebRequest.hz)
523 }
524 
525 #ifdef __GNUC__
526  #pragma GCC diagnostic pop
527 #endif // __GNUC__
528 
529 // @@protoc_insertion_point(namespace_scope)
530 
531 } // namespace msgs
532 } // namespace gz
533 
534 // @@protoc_insertion_point(global_scope)
535 
536 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fweb_5frequest_2eproto