Gazebo Msgs

API Reference

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