Ignition Msgs

API Reference

8.1.0
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_ignition_2fmsgs_2frest_5fresponse_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2frest_5fresponse_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/generated_enum_reflection.h>
30 #include <google/protobuf/unknown_field_set.h>
32 #ifndef _MSC_VER
33 #pragma GCC system_header
34 #else
35 #pragma warning(push)
36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
37 #endif
38 #ifdef __linux__
39 #include <sys/sysmacros.h>
40 #endif
41 #include <memory>
42 #include <ignition/msgs/Export.hh>
43 // @@protoc_insertion_point(includes)
44 
45 namespace ignition {
46 namespace msgs {
47 
48 // Internal implementation detail -- do not call these.
52 
53 class RestResponse;
54 
62 };
63 IGNITION_MSGS_VISIBLE bool RestResponse_Type_IsValid(int value);
66 const int RestResponse_Type_Type_ARRAYSIZE = RestResponse_Type_Type_MAX + 1;
67 
68 IGNITION_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* RestResponse_Type_descriptor();
69 inline const ::std::string& RestResponse_Type_Name(RestResponse_Type value) {
70  return ::google::protobuf::internal::NameOfEnum(
72 }
74  const ::std::string& name, RestResponse_Type* value) {
75  return ::google::protobuf::internal::ParseNamedEnum<RestResponse_Type>(
76  RestResponse_Type_descriptor(), name, value);
77 }
78 // ===================================================================
79 
80 class IGNITION_MSGS_VISIBLE RestResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.RestResponse) */ {
81  public:
82  RestResponse();
83  virtual ~RestResponse();
84 
85  RestResponse(const RestResponse& from);
86 
87  inline RestResponse& operator=(const RestResponse& from) {
88  CopyFrom(from);
89  return *this;
90  }
91 
92  static const ::google::protobuf::Descriptor* descriptor();
93  static const RestResponse& default_instance();
94 
95  void Swap(RestResponse* other);
96 
97  // implements Message ----------------------------------------------
98 
99  inline RestResponse* New() const { return New(NULL); }
100 
101  RestResponse* New(::google::protobuf::Arena* arena) const;
102  void CopyFrom(const ::google::protobuf::Message& from);
103  void MergeFrom(const ::google::protobuf::Message& from);
104  void CopyFrom(const RestResponse& from);
105  void MergeFrom(const RestResponse& from);
106  void Clear();
107  bool IsInitialized() const;
108 
109  int ByteSize() const;
110  bool MergePartialFromCodedStream(
111  ::google::protobuf::io::CodedInputStream* input);
112  void SerializeWithCachedSizes(
113  ::google::protobuf::io::CodedOutputStream* output) const;
114  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
115  bool deterministic, ::google::protobuf::uint8* output) const;
116  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
117  return InternalSerializeWithCachedSizesToArray(false, output);
118  }
119  int GetCachedSize() const { return _cached_size_; }
120  private:
121  void SharedCtor();
122  void SharedDtor();
123  void SetCachedSize(int size) const;
124  void InternalSwap(RestResponse* other);
125  private:
126  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
127  return _internal_metadata_.arena();
128  }
129  inline void* MaybeArenaPtr() const {
130  return _internal_metadata_.raw_arena_ptr();
131  }
132  public:
133 
134  ::google::protobuf::Metadata GetMetadata() const;
135 
136  // nested types ----------------------------------------------------
137 
139  static const Type SUCCESS =
141  static const Type ERR =
143  static const Type LOGIN =
145  static const Type LOGOUT =
147  static inline bool Type_IsValid(int value) {
148  return RestResponse_Type_IsValid(value);
149  }
150  static const Type Type_MIN =
152  static const Type Type_MAX =
154  static const int Type_ARRAYSIZE =
156  static inline const ::google::protobuf::EnumDescriptor*
159  }
160  static inline const ::std::string& Type_Name(Type value) {
161  return RestResponse_Type_Name(value);
162  }
163  static inline bool Type_Parse(const ::std::string& name,
164  Type* value) {
165  return RestResponse_Type_Parse(name, value);
166  }
167 
168  // accessors -------------------------------------------------------
169 
170  // optional .ignition.msgs.Header header = 1;
171  bool has_header() const;
172  void clear_header();
173  static const int kHeaderFieldNumber = 1;
174  const ::ignition::msgs::Header& header() const;
175  ::ignition::msgs::Header* mutable_header();
176  ::ignition::msgs::Header* release_header();
177  void set_allocated_header(::ignition::msgs::Header* header);
178 
179  // optional uint32 id = 2;
180  void clear_id();
181  static const int kIdFieldNumber = 2;
182  ::google::protobuf::uint32 id() const;
183  void set_id(::google::protobuf::uint32 value);
184 
185  // optional .ignition.msgs.RestResponse.Type type = 3;
186  void clear_type();
187  static const int kTypeFieldNumber = 3;
189  void set_type(::ignition::msgs::RestResponse_Type value);
190 
191  // optional string msg = 4;
192  void clear_msg();
193  static const int kMsgFieldNumber = 4;
194  const ::std::string& msg() const;
195  void set_msg(const ::std::string& value);
196  void set_msg(const char* value);
197  void set_msg(const char* value, size_t size);
198  ::std::string* mutable_msg();
199  ::std::string* release_msg();
200  void set_allocated_msg(::std::string* msg);
201 
202  // @@protoc_insertion_point(class_scope:ignition.msgs.RestResponse)
203  private:
204 
205  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
206  bool _is_default_instance_;
207  ::ignition::msgs::Header* header_;
208  ::google::protobuf::uint32 id_;
209  int type_;
210  ::google::protobuf::internal::ArenaStringPtr msg_;
211  mutable int _cached_size_;
212  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5fresponse_2eproto();
215 
216  void InitAsDefaultInstance();
217  static RestResponse* default_instance_;
218 };
219 // ===================================================================
220 
221 
222 // ===================================================================
223 
224 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
225 // RestResponse
226 
227 // optional .ignition.msgs.Header header = 1;
228 inline bool RestResponse::has_header() const {
229  return !_is_default_instance_ && header_ != NULL;
230 }
232  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
233  header_ = NULL;
234 }
235 inline const ::ignition::msgs::Header& RestResponse::header() const {
236  // @@protoc_insertion_point(field_get:ignition.msgs.RestResponse.header)
237  return header_ != NULL ? *header_ : *default_instance_->header_;
238 }
239 inline ::ignition::msgs::Header* RestResponse::mutable_header() {
240 
241  if (header_ == NULL) {
242  header_ = new ::ignition::msgs::Header;
243  }
244  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestResponse.header)
245  return header_;
246 }
247 inline ::ignition::msgs::Header* RestResponse::release_header() {
248  // @@protoc_insertion_point(field_release:ignition.msgs.RestResponse.header)
249 
250  ::ignition::msgs::Header* temp = header_;
251  header_ = NULL;
252  return temp;
253 }
255  delete header_;
256  header_ = header;
257  if (header) {
258 
259  } else {
260 
261  }
262  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestResponse.header)
263 }
264 
265 // optional uint32 id = 2;
266 inline void RestResponse::clear_id() {
267  id_ = 0u;
268 }
269 inline ::google::protobuf::uint32 RestResponse::id() const {
270  // @@protoc_insertion_point(field_get:ignition.msgs.RestResponse.id)
271  return id_;
272 }
273 inline void RestResponse::set_id(::google::protobuf::uint32 value) {
274 
275  id_ = value;
276  // @@protoc_insertion_point(field_set:ignition.msgs.RestResponse.id)
277 }
278 
279 // optional .ignition.msgs.RestResponse.Type type = 3;
281  type_ = 0;
282 }
284  // @@protoc_insertion_point(field_get:ignition.msgs.RestResponse.type)
285  return static_cast< ::ignition::msgs::RestResponse_Type >(type_);
286 }
288 
289  type_ = value;
290  // @@protoc_insertion_point(field_set:ignition.msgs.RestResponse.type)
291 }
292 
293 // optional string msg = 4;
294 inline void RestResponse::clear_msg() {
295  msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
296 }
297 inline const ::std::string& RestResponse::msg() const {
298  // @@protoc_insertion_point(field_get:ignition.msgs.RestResponse.msg)
299  return msg_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
300 }
301 inline void RestResponse::set_msg(const ::std::string& value) {
302 
303  msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
304  // @@protoc_insertion_point(field_set:ignition.msgs.RestResponse.msg)
305 }
306 inline void RestResponse::set_msg(const char* value) {
307 
308  msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
309  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestResponse.msg)
310 }
311 inline void RestResponse::set_msg(const char* value, size_t size) {
312 
313  msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
314  ::std::string(reinterpret_cast<const char*>(value), size));
315  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestResponse.msg)
316 }
317 inline ::std::string* RestResponse::mutable_msg() {
318 
319  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestResponse.msg)
320  return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
321 }
322 inline ::std::string* RestResponse::release_msg() {
323  // @@protoc_insertion_point(field_release:ignition.msgs.RestResponse.msg)
324 
325  return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
326 }
328  if (msg != NULL) {
329 
330  } else {
331 
332  }
333  msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg);
334  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestResponse.msg)
335 }
336 
337 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
338 
343 // @@protoc_insertion_point(namespace_scope)
344 
345 } // namespace msgs
346 } // namespace ignition
347 
348 #ifndef SWIG
349 namespace google {
350 namespace protobuf {
351 
352 template <> struct is_proto_enum< ::ignition::msgs::RestResponse_Type> : ::google::protobuf::internal::true_type {};
353 template <>
354 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::RestResponse_Type>() {
356 }
357 
358 } // namespace protobuf
359 } // namespace google
360 #endif // SWIG
361 
362 #ifdef _MSC_VER
363 #pragma warning(pop)
364 #endif
365 // @@protoc_insertion_point(global_scope)
366 
367 #endif // PROTOBUF_ignition_2fmsgs_2frest_5fresponse_2eproto__INCLUDED
void set_allocated_msg(::std::string *msg)
Definition: rest_response.pb.h:327
int GetCachedSize() const
Definition: rest_response.pb.h:119
Definition: rest_response.pb.h:56
void clear_id()
Definition: rest_response.pb.h:266
void clear_type()
Definition: rest_response.pb.h:280
static bool Type_IsValid(int value)
Definition: rest_response.pb.h:147
void set_msg(const ::std::string &value)
Definition: rest_response.pb.h:301
::std::string * release_msg()
Definition: rest_response.pb.h:322
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: rest_response.pb.h:116
std::shared_ptr< RestResponse > RestResponseSharedPtr
Definition: rest_response.pb.h:341
RestResponse & operator=(const RestResponse &from)
Definition: rest_response.pb.h:87
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5fresponse_2eproto()
void set_type(::ignition::msgs::RestResponse_Type value)
Definition: rest_response.pb.h:287
const ::std::string & msg() const
Definition: rest_response.pb.h:297
std::shared_ptr< const RestResponse > ConstRestResponseSharedPtr
Definition: rest_response.pb.h:342
static const ::std::string & Type_Name(Type value)
Definition: rest_response.pb.h:160
::ignition::msgs::Header * mutable_header()
Definition: rest_response.pb.h:239
const RestResponse_Type RestResponse_Type_Type_MAX
Definition: rest_response.pb.h:65
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_response.pb.h:254
void clear_header()
Definition: rest_response.pb.h:231
void clear_msg()
Definition: rest_response.pb.h:294
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: rest_response.pb.h:163
Definition: header.pb.h:161
STL class.
Definition: rest_response.pb.h:59
::ignition::msgs::Header * release_header()
Definition: rest_response.pb.h:247
const ::ignition::msgs::Header & header() const
Definition: rest_response.pb.h:235
RestResponse_Type Type
Definition: rest_response.pb.h:138
const int RestResponse_Type_Type_ARRAYSIZE
Definition: rest_response.pb.h:66
Definition: rest_response.pb.h:80
::google::protobuf::uint32 id() const
Definition: rest_response.pb.h:269
::ignition::msgs::RestResponse_Type type() const
Definition: rest_response.pb.h:283
void protobuf_AssignDesc_ignition_2fmsgs_2frest_5fresponse_2eproto()
void protobuf_ShutdownFile_ignition_2fmsgs_2frest_5fresponse_2eproto()
Definition: rest_response.pb.h:58
bool RestResponse_Type_Parse(const ::std::string &name, RestResponse_Type *value)
Definition: rest_response.pb.h:73
void set_id(::google::protobuf::uint32 value)
Definition: rest_response.pb.h:273
std::unique_ptr< const RestResponse > ConstRestResponseUniquePtr
Definition: rest_response.pb.h:340
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * RestResponse_Type_descriptor()
std::unique_ptr< RestResponse > RestResponseUniquePtr
Definition: rest_response.pb.h:339
const ::std::string & RestResponse_Type_Name(RestResponse_Type value)
Definition: rest_response.pb.h:69
STL class.
Definition: rest_response.pb.h:57
const RestResponse_Type RestResponse_Type_Type_MIN
Definition: rest_response.pb.h:64
::std::string * mutable_msg()
Definition: rest_response.pb.h:317
Definition: any.pb.h:839
IGNITION_MSGS_VISIBLE bool RestResponse_Type_IsValid(int value)
RestResponse_Type
Definition: rest_response.pb.h:55
RestResponse * New() const
Definition: rest_response.pb.h:99
bool has_header() const
Definition: rest_response.pb.h:228
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: rest_response.pb.h:157