Ignition Msgs

API Reference

8.0.0~pre1
rest_login.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/rest_login.proto
3 
4 #ifndef PROTOBUF_ignition_2fmsgs_2frest_5flogin_2eproto__INCLUDED
5 #define PROTOBUF_ignition_2fmsgs_2frest_5flogin_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/unknown_field_set.h>
31 #ifndef _MSC_VER
32 #pragma GCC system_header
33 #else
34 #pragma warning(push)
35 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
36 #endif
37 #ifdef __linux__
38 #include <sys/sysmacros.h>
39 #endif
40 #include <memory>
41 #include <ignition/msgs/Export.hh>
42 // @@protoc_insertion_point(includes)
43 
44 namespace ignition {
45 namespace msgs {
46 
47 // Internal implementation detail -- do not call these.
51 
52 class RestLogin;
53 
54 // ===================================================================
55 
56 class IGNITION_MSGS_VISIBLE RestLogin : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.RestLogin) */ {
57  public:
58  RestLogin();
59  virtual ~RestLogin();
60 
61  RestLogin(const RestLogin& from);
62 
63  inline RestLogin& operator=(const RestLogin& from) {
64  CopyFrom(from);
65  return *this;
66  }
67 
68  static const ::google::protobuf::Descriptor* descriptor();
69  static const RestLogin& default_instance();
70 
71  void Swap(RestLogin* other);
72 
73  // implements Message ----------------------------------------------
74 
75  inline RestLogin* New() const { return New(NULL); }
76 
77  RestLogin* New(::google::protobuf::Arena* arena) const;
78  void CopyFrom(const ::google::protobuf::Message& from);
79  void MergeFrom(const ::google::protobuf::Message& from);
80  void CopyFrom(const RestLogin& from);
81  void MergeFrom(const RestLogin& from);
82  void Clear();
83  bool IsInitialized() const;
84 
85  int ByteSize() const;
86  bool MergePartialFromCodedStream(
87  ::google::protobuf::io::CodedInputStream* input);
88  void SerializeWithCachedSizes(
89  ::google::protobuf::io::CodedOutputStream* output) const;
90  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
91  bool deterministic, ::google::protobuf::uint8* output) const;
92  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
93  return InternalSerializeWithCachedSizesToArray(false, output);
94  }
95  int GetCachedSize() const { return _cached_size_; }
96  private:
97  void SharedCtor();
98  void SharedDtor();
99  void SetCachedSize(int size) const;
100  void InternalSwap(RestLogin* other);
101  private:
102  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
103  return _internal_metadata_.arena();
104  }
105  inline void* MaybeArenaPtr() const {
106  return _internal_metadata_.raw_arena_ptr();
107  }
108  public:
109 
110  ::google::protobuf::Metadata GetMetadata() const;
111 
112  // nested types ----------------------------------------------------
113 
114  // accessors -------------------------------------------------------
115 
116  // optional .ignition.msgs.Header header = 1;
117  bool has_header() const;
118  void clear_header();
119  static const int kHeaderFieldNumber = 1;
120  const ::ignition::msgs::Header& header() const;
121  ::ignition::msgs::Header* mutable_header();
122  ::ignition::msgs::Header* release_header();
123  void set_allocated_header(::ignition::msgs::Header* header);
124 
125  // optional uint32 id = 2;
126  void clear_id();
127  static const int kIdFieldNumber = 2;
128  ::google::protobuf::uint32 id() const;
129  void set_id(::google::protobuf::uint32 value);
130 
131  // optional string url = 3;
132  void clear_url();
133  static const int kUrlFieldNumber = 3;
134  const ::std::string& url() const;
135  void set_url(const ::std::string& value);
136  void set_url(const char* value);
137  void set_url(const char* value, size_t size);
138  ::std::string* mutable_url();
139  ::std::string* release_url();
140  void set_allocated_url(::std::string* url);
141 
142  // optional string username = 4;
143  void clear_username();
144  static const int kUsernameFieldNumber = 4;
145  const ::std::string& username() const;
146  void set_username(const ::std::string& value);
147  void set_username(const char* value);
148  void set_username(const char* value, size_t size);
149  ::std::string* mutable_username();
150  ::std::string* release_username();
151  void set_allocated_username(::std::string* username);
152 
153  // optional string password = 5;
154  void clear_password();
155  static const int kPasswordFieldNumber = 5;
156  const ::std::string& password() const;
157  void set_password(const ::std::string& value);
158  void set_password(const char* value);
159  void set_password(const char* value, size_t size);
160  ::std::string* mutable_password();
161  ::std::string* release_password();
162  void set_allocated_password(::std::string* password);
163 
164  // @@protoc_insertion_point(class_scope:ignition.msgs.RestLogin)
165  private:
166 
167  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
168  bool _is_default_instance_;
169  ::ignition::msgs::Header* header_;
170  ::google::protobuf::internal::ArenaStringPtr url_;
171  ::google::protobuf::internal::ArenaStringPtr username_;
172  ::google::protobuf::internal::ArenaStringPtr password_;
173  ::google::protobuf::uint32 id_;
174  mutable int _cached_size_;
175  friend void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5flogin_2eproto();
178 
179  void InitAsDefaultInstance();
180  static RestLogin* default_instance_;
181 };
182 // ===================================================================
183 
184 
185 // ===================================================================
186 
187 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
188 // RestLogin
189 
190 // optional .ignition.msgs.Header header = 1;
191 inline bool RestLogin::has_header() const {
192  return !_is_default_instance_ && header_ != NULL;
193 }
194 inline void RestLogin::clear_header() {
195  if (GetArenaNoVirtual() == NULL && header_ != NULL) delete header_;
196  header_ = NULL;
197 }
198 inline const ::ignition::msgs::Header& RestLogin::header() const {
199  // @@protoc_insertion_point(field_get:ignition.msgs.RestLogin.header)
200  return header_ != NULL ? *header_ : *default_instance_->header_;
201 }
202 inline ::ignition::msgs::Header* RestLogin::mutable_header() {
203 
204  if (header_ == NULL) {
205  header_ = new ::ignition::msgs::Header;
206  }
207  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestLogin.header)
208  return header_;
209 }
210 inline ::ignition::msgs::Header* RestLogin::release_header() {
211  // @@protoc_insertion_point(field_release:ignition.msgs.RestLogin.header)
212 
213  ::ignition::msgs::Header* temp = header_;
214  header_ = NULL;
215  return temp;
216 }
218  delete header_;
219  header_ = header;
220  if (header) {
221 
222  } else {
223 
224  }
225  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestLogin.header)
226 }
227 
228 // optional uint32 id = 2;
229 inline void RestLogin::clear_id() {
230  id_ = 0u;
231 }
232 inline ::google::protobuf::uint32 RestLogin::id() const {
233  // @@protoc_insertion_point(field_get:ignition.msgs.RestLogin.id)
234  return id_;
235 }
236 inline void RestLogin::set_id(::google::protobuf::uint32 value) {
237 
238  id_ = value;
239  // @@protoc_insertion_point(field_set:ignition.msgs.RestLogin.id)
240 }
241 
242 // optional string url = 3;
243 inline void RestLogin::clear_url() {
244  url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
245 }
246 inline const ::std::string& RestLogin::url() const {
247  // @@protoc_insertion_point(field_get:ignition.msgs.RestLogin.url)
248  return url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
249 }
250 inline void RestLogin::set_url(const ::std::string& value) {
251 
252  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
253  // @@protoc_insertion_point(field_set:ignition.msgs.RestLogin.url)
254 }
255 inline void RestLogin::set_url(const char* value) {
256 
257  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
258  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestLogin.url)
259 }
260 inline void RestLogin::set_url(const char* value, size_t size) {
261 
262  url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
263  ::std::string(reinterpret_cast<const char*>(value), size));
264  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestLogin.url)
265 }
266 inline ::std::string* RestLogin::mutable_url() {
267 
268  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestLogin.url)
269  return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
270 }
271 inline ::std::string* RestLogin::release_url() {
272  // @@protoc_insertion_point(field_release:ignition.msgs.RestLogin.url)
273 
274  return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
275 }
277  if (url != NULL) {
278 
279  } else {
280 
281  }
282  url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url);
283  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestLogin.url)
284 }
285 
286 // optional string username = 4;
288  username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
289 }
290 inline const ::std::string& RestLogin::username() const {
291  // @@protoc_insertion_point(field_get:ignition.msgs.RestLogin.username)
292  return username_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293 }
294 inline void RestLogin::set_username(const ::std::string& value) {
295 
296  username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
297  // @@protoc_insertion_point(field_set:ignition.msgs.RestLogin.username)
298 }
299 inline void RestLogin::set_username(const char* value) {
300 
301  username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
302  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestLogin.username)
303 }
304 inline void RestLogin::set_username(const char* value, size_t size) {
305 
306  username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
307  ::std::string(reinterpret_cast<const char*>(value), size));
308  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestLogin.username)
309 }
310 inline ::std::string* RestLogin::mutable_username() {
311 
312  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestLogin.username)
313  return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
314 }
315 inline ::std::string* RestLogin::release_username() {
316  // @@protoc_insertion_point(field_release:ignition.msgs.RestLogin.username)
317 
318  return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
319 }
321  if (username != NULL) {
322 
323  } else {
324 
325  }
326  username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username);
327  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestLogin.username)
328 }
329 
330 // optional string password = 5;
332  password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
333 }
334 inline const ::std::string& RestLogin::password() const {
335  // @@protoc_insertion_point(field_get:ignition.msgs.RestLogin.password)
336  return password_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
337 }
338 inline void RestLogin::set_password(const ::std::string& value) {
339 
340  password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
341  // @@protoc_insertion_point(field_set:ignition.msgs.RestLogin.password)
342 }
343 inline void RestLogin::set_password(const char* value) {
344 
345  password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
346  // @@protoc_insertion_point(field_set_char:ignition.msgs.RestLogin.password)
347 }
348 inline void RestLogin::set_password(const char* value, size_t size) {
349 
350  password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
351  ::std::string(reinterpret_cast<const char*>(value), size));
352  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.RestLogin.password)
353 }
354 inline ::std::string* RestLogin::mutable_password() {
355 
356  // @@protoc_insertion_point(field_mutable:ignition.msgs.RestLogin.password)
357  return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
358 }
359 inline ::std::string* RestLogin::release_password() {
360  // @@protoc_insertion_point(field_release:ignition.msgs.RestLogin.password)
361 
362  return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
363 }
365  if (password != NULL) {
366 
367  } else {
368 
369  }
370  password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password);
371  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.RestLogin.password)
372 }
373 
374 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
375 
380 // @@protoc_insertion_point(namespace_scope)
381 
382 } // namespace msgs
383 } // namespace ignition
384 
385 #ifdef _MSC_VER
386 #pragma warning(pop)
387 #endif
388 // @@protoc_insertion_point(global_scope)
389 
390 #endif // PROTOBUF_ignition_2fmsgs_2frest_5flogin_2eproto__INCLUDED
Definition: rest_login.pb.h:56
::std::string * release_url()
Definition: rest_login.pb.h:271
void clear_header()
Definition: rest_login.pb.h:194
void clear_username()
Definition: rest_login.pb.h:287
RestLogin * New() const
Definition: rest_login.pb.h:75
::std::string * release_username()
Definition: rest_login.pb.h:315
void clear_password()
Definition: rest_login.pb.h:331
::std::string * mutable_password()
Definition: rest_login.pb.h:354
void set_allocated_username(::std::string *username)
Definition: rest_login.pb.h:320
const ::ignition::msgs::Header & header() const
Definition: rest_login.pb.h:198
::std::string * mutable_url()
Definition: rest_login.pb.h:266
void set_username(const ::std::string &value)
Definition: rest_login.pb.h:294
::ignition::msgs::Header * mutable_header()
Definition: rest_login.pb.h:202
::std::string * release_password()
Definition: rest_login.pb.h:359
::ignition::msgs::Header * release_header()
Definition: rest_login.pb.h:210
void protobuf_ShutdownFile_ignition_2fmsgs_2frest_5flogin_2eproto()
Definition: header.pb.h:161
STL class.
::std::string * mutable_username()
Definition: rest_login.pb.h:310
::google::protobuf::uint32 id() const
Definition: rest_login.pb.h:232
std::shared_ptr< RestLogin > RestLoginSharedPtr
Definition: rest_login.pb.h:378
void set_allocated_header(::ignition::msgs::Header *header)
Definition: rest_login.pb.h:217
const ::std::string & url() const
Definition: rest_login.pb.h:246
void set_allocated_password(::std::string *password)
Definition: rest_login.pb.h:364
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2frest_5flogin_2eproto()
RestLogin & operator=(const RestLogin &from)
Definition: rest_login.pb.h:63
void set_url(const ::std::string &value)
Definition: rest_login.pb.h:250
bool has_header() const
Definition: rest_login.pb.h:191
void clear_url()
Definition: rest_login.pb.h:243
int GetCachedSize() const
Definition: rest_login.pb.h:95
void protobuf_AssignDesc_ignition_2fmsgs_2frest_5flogin_2eproto()
void set_allocated_url(::std::string *url)
Definition: rest_login.pb.h:276
std::unique_ptr< RestLogin > RestLoginUniquePtr
Definition: rest_login.pb.h:376
STL class.
std::unique_ptr< const RestLogin > ConstRestLoginUniquePtr
Definition: rest_login.pb.h:377
void set_password(const ::std::string &value)
Definition: rest_login.pb.h:338
std::shared_ptr< const RestLogin > ConstRestLoginSharedPtr
Definition: rest_login.pb.h:379
const ::std::string & password() const
Definition: rest_login.pb.h:334
void set_id(::google::protobuf::uint32 value)
Definition: rest_login.pb.h:236
void clear_id()
Definition: rest_login.pb.h:229
const ::std::string & username() const
Definition: rest_login.pb.h:290
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: rest_login.pb.h:92