Gazebo Msgs

API Reference

9.5.1
response.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/response.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fresponse_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fresponse_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_2fresponse_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_2fresponse_2eproto
49 namespace gz {
50 namespace msgs {
51 class Response;
52 class ResponseDefaultTypeInternal;
53 GZ_MSGS_VISIBLE extern ResponseDefaultTypeInternal _Response_default_instance_;
54 } // namespace msgs
55 } // namespace gz
56 namespace google {
57 namespace protobuf {
58 template<> GZ_MSGS_VISIBLE ::gz::msgs::Response* Arena::CreateMaybeMessage<::gz::msgs::Response>(Arena*);
59 } // namespace protobuf
60 } // namespace google
61 namespace gz {
62 namespace msgs {
63 
64 // ===================================================================
65 
66 class GZ_MSGS_VISIBLE Response : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Response) */ {
67  public:
68  Response();
69  virtual ~Response();
70 
71  Response(const Response& from);
72 
73  inline Response& operator=(const Response& from) {
74  CopyFrom(from);
75  return *this;
76  }
77  #if LANG_CXX11
78  Response(Response&& from) noexcept
79  : Response() {
80  *this = ::std::move(from);
81  }
82 
83  inline Response& operator=(Response&& 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 Response& default_instance();
94 
95  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
96  static inline const Response* internal_default_instance() {
97  return reinterpret_cast<const Response*>(
99  }
100  static constexpr int kIndexInFileMessages =
101  0;
102 
103  void Swap(Response* other);
104  friend void swap(Response& a, Response& b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline Response* New() const final {
111  return CreateMaybeMessage<Response>(NULL);
112  }
113 
114  Response* New(::google::protobuf::Arena* arena) const final {
115  return CreateMaybeMessage<Response>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message& from) final;
118  void MergeFrom(const ::google::protobuf::Message& from) final;
119  void CopyFrom(const Response& from);
120  void MergeFrom(const Response& 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(Response* 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 request = 3;
154  void clear_request();
155  static const int kRequestFieldNumber = 3;
156  const ::std::string& request() const;
157  void set_request(const ::std::string& value);
158  #if LANG_CXX11
159  void set_request(::std::string&& value);
160  #endif
161  void set_request(const char* value);
162  void set_request(const char* value, size_t size);
163  ::std::string* mutable_request();
164  ::std::string* release_request();
165  void set_allocated_request(::std::string* request);
166 
167  // string response = 4;
168  void clear_response();
169  static const int kResponseFieldNumber = 4;
170  const ::std::string& response() const;
171  void set_response(const ::std::string& value);
172  #if LANG_CXX11
173  void set_response(::std::string&& value);
174  #endif
175  void set_response(const char* value);
176  void set_response(const char* value, size_t size);
177  ::std::string* mutable_response();
178  ::std::string* release_response();
179  void set_allocated_response(::std::string* response);
180 
181  // string type = 5;
182  void clear_type();
183  static const int kTypeFieldNumber = 5;
184  const ::std::string& type() const;
185  void set_type(const ::std::string& value);
186  #if LANG_CXX11
187  void set_type(::std::string&& value);
188  #endif
189  void set_type(const char* value);
190  void set_type(const char* value, size_t size);
191  ::std::string* mutable_type();
192  ::std::string* release_type();
193  void set_allocated_type(::std::string* type);
194 
195  // bytes serialized_data = 6;
196  void clear_serialized_data();
197  static const int kSerializedDataFieldNumber = 6;
198  const ::std::string& serialized_data() const;
199  void set_serialized_data(const ::std::string& value);
200  #if LANG_CXX11
201  void set_serialized_data(::std::string&& value);
202  #endif
203  void set_serialized_data(const char* value);
204  void set_serialized_data(const void* value, size_t size);
205  ::std::string* mutable_serialized_data();
206  ::std::string* release_serialized_data();
207  void set_allocated_serialized_data(::std::string* serialized_data);
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  // int32 id = 2;
222  void clear_id();
223  static const int kIdFieldNumber = 2;
224  ::google::protobuf::int32 id() const;
225  void set_id(::google::protobuf::int32 value);
226 
227  // @@protoc_insertion_point(class_scope:gz.msgs.Response)
228  private:
229 
230  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
231  ::google::protobuf::internal::ArenaStringPtr request_;
232  ::google::protobuf::internal::ArenaStringPtr response_;
233  ::google::protobuf::internal::ArenaStringPtr type_;
234  ::google::protobuf::internal::ArenaStringPtr serialized_data_;
235  ::gz::msgs::Header* header_;
236  ::google::protobuf::int32 id_;
237  mutable ::google::protobuf::internal::CachedSize _cached_size_;
238  friend struct ::protobuf_gz_2fmsgs_2fresponse_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 // Response
250 
251 // .gz.msgs.Header header = 1;
252 inline bool Response::has_header() const {
253  return this != internal_default_instance() && header_ != NULL;
254 }
255 inline const ::gz::msgs::Header& Response::_internal_header() const {
256  return *header_;
257 }
258 inline const ::gz::msgs::Header& Response::header() const {
259  const ::gz::msgs::Header* p = header_;
260  // @@protoc_insertion_point(field_get:gz.msgs.Response.header)
261  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
263 }
264 inline ::gz::msgs::Header* Response::release_header() {
265  // @@protoc_insertion_point(field_release:gz.msgs.Response.header)
266 
267  ::gz::msgs::Header* temp = header_;
268  header_ = NULL;
269  return temp;
270 }
271 inline ::gz::msgs::Header* Response::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.Response.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.Response.header)
297 }
298 
299 // int32 id = 2;
300 inline void Response::clear_id() {
301  id_ = 0;
302 }
303 inline ::google::protobuf::int32 Response::id() const {
304  // @@protoc_insertion_point(field_get:gz.msgs.Response.id)
305  return id_;
306 }
307 inline void Response::set_id(::google::protobuf::int32 value) {
308 
309  id_ = value;
310  // @@protoc_insertion_point(field_set:gz.msgs.Response.id)
311 }
312 
313 // string request = 3;
314 inline void Response::clear_request() {
315  request_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
316 }
317 inline const ::std::string& Response::request() const {
318  // @@protoc_insertion_point(field_get:gz.msgs.Response.request)
319  return request_.GetNoArena();
320 }
321 inline void Response::set_request(const ::std::string& value) {
322 
323  request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
324  // @@protoc_insertion_point(field_set:gz.msgs.Response.request)
325 }
326 #if LANG_CXX11
327 inline void Response::set_request(::std::string&& value) {
328 
329  request_.SetNoArena(
330  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
331  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Response.request)
332 }
333 #endif
334 inline void Response::set_request(const char* value) {
335  GOOGLE_DCHECK(value != NULL);
336 
337  request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
338  // @@protoc_insertion_point(field_set_char:gz.msgs.Response.request)
339 }
340 inline void Response::set_request(const char* value, size_t size) {
341 
342  request_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
343  ::std::string(reinterpret_cast<const char*>(value), size));
344  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Response.request)
345 }
346 inline ::std::string* Response::mutable_request() {
347 
348  // @@protoc_insertion_point(field_mutable:gz.msgs.Response.request)
349  return request_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
350 }
351 inline ::std::string* Response::release_request() {
352  // @@protoc_insertion_point(field_release:gz.msgs.Response.request)
353 
354  return request_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
355 }
357  if (request != NULL) {
358 
359  } else {
360 
361  }
362  request_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request);
363  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Response.request)
364 }
365 
366 // string response = 4;
368  response_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
369 }
370 inline const ::std::string& Response::response() const {
371  // @@protoc_insertion_point(field_get:gz.msgs.Response.response)
372  return response_.GetNoArena();
373 }
374 inline void Response::set_response(const ::std::string& value) {
375 
376  response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
377  // @@protoc_insertion_point(field_set:gz.msgs.Response.response)
378 }
379 #if LANG_CXX11
380 inline void Response::set_response(::std::string&& value) {
381 
382  response_.SetNoArena(
383  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
384  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Response.response)
385 }
386 #endif
387 inline void Response::set_response(const char* value) {
388  GOOGLE_DCHECK(value != NULL);
389 
390  response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
391  // @@protoc_insertion_point(field_set_char:gz.msgs.Response.response)
392 }
393 inline void Response::set_response(const char* value, size_t size) {
394 
395  response_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
396  ::std::string(reinterpret_cast<const char*>(value), size));
397  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Response.response)
398 }
399 inline ::std::string* Response::mutable_response() {
400 
401  // @@protoc_insertion_point(field_mutable:gz.msgs.Response.response)
402  return response_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
403 }
404 inline ::std::string* Response::release_response() {
405  // @@protoc_insertion_point(field_release:gz.msgs.Response.response)
406 
407  return response_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 }
410  if (response != NULL) {
411 
412  } else {
413 
414  }
415  response_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response);
416  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Response.response)
417 }
418 
419 // string type = 5;
420 inline void Response::clear_type() {
421  type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
422 }
423 inline const ::std::string& Response::type() const {
424  // @@protoc_insertion_point(field_get:gz.msgs.Response.type)
425  return type_.GetNoArena();
426 }
427 inline void Response::set_type(const ::std::string& value) {
428 
429  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
430  // @@protoc_insertion_point(field_set:gz.msgs.Response.type)
431 }
432 #if LANG_CXX11
433 inline void Response::set_type(::std::string&& value) {
434 
435  type_.SetNoArena(
436  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
437  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Response.type)
438 }
439 #endif
440 inline void Response::set_type(const char* value) {
441  GOOGLE_DCHECK(value != NULL);
442 
443  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
444  // @@protoc_insertion_point(field_set_char:gz.msgs.Response.type)
445 }
446 inline void Response::set_type(const char* value, size_t size) {
447 
448  type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
449  ::std::string(reinterpret_cast<const char*>(value), size));
450  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Response.type)
451 }
452 inline ::std::string* Response::mutable_type() {
453 
454  // @@protoc_insertion_point(field_mutable:gz.msgs.Response.type)
455  return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
456 }
457 inline ::std::string* Response::release_type() {
458  // @@protoc_insertion_point(field_release:gz.msgs.Response.type)
459 
460  return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
461 }
463  if (type != NULL) {
464 
465  } else {
466 
467  }
468  type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type);
469  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Response.type)
470 }
471 
472 // bytes serialized_data = 6;
474  serialized_data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
475 }
476 inline const ::std::string& Response::serialized_data() const {
477  // @@protoc_insertion_point(field_get:gz.msgs.Response.serialized_data)
478  return serialized_data_.GetNoArena();
479 }
480 inline void Response::set_serialized_data(const ::std::string& value) {
481 
482  serialized_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
483  // @@protoc_insertion_point(field_set:gz.msgs.Response.serialized_data)
484 }
485 #if LANG_CXX11
486 inline void Response::set_serialized_data(::std::string&& value) {
487 
488  serialized_data_.SetNoArena(
489  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
490  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Response.serialized_data)
491 }
492 #endif
493 inline void Response::set_serialized_data(const char* value) {
494  GOOGLE_DCHECK(value != NULL);
495 
496  serialized_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
497  // @@protoc_insertion_point(field_set_char:gz.msgs.Response.serialized_data)
498 }
499 inline void Response::set_serialized_data(const void* value, size_t size) {
500 
501  serialized_data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
502  ::std::string(reinterpret_cast<const char*>(value), size));
503  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Response.serialized_data)
504 }
505 inline ::std::string* Response::mutable_serialized_data() {
506 
507  // @@protoc_insertion_point(field_mutable:gz.msgs.Response.serialized_data)
508  return serialized_data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
509 }
510 inline ::std::string* Response::release_serialized_data() {
511  // @@protoc_insertion_point(field_release:gz.msgs.Response.serialized_data)
512 
513  return serialized_data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
514 }
515 inline void Response::set_allocated_serialized_data(::std::string* serialized_data) {
516  if (serialized_data != NULL) {
517 
518  } else {
519 
520  }
521  serialized_data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_data);
522  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Response.serialized_data)
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_2fresponse_2eproto