Gazebo Msgs

API Reference

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