TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Login.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: Login.proto
3 
4 #ifndef PROTOBUF_Login_2eproto__INCLUDED
5 #define PROTOBUF_Login_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
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 2006001 < 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 
28 #include "Define.h" // for TC_SHARED_API
29 // @@protoc_insertion_point(includes)
30 
31 namespace Battlenet {
32 namespace JSON {
33 namespace Login {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class FormInput;
41 class FormInputs;
42 class FormInputValue;
43 class LoginForm;
44 class LoginResult;
45 
46 enum FormType {
48 };
52 const int FormType_ARRAYSIZE = FormType_MAX + 1;
53 
54 TC_SHARED_API const ::google::protobuf::EnumDescriptor* FormType_descriptor();
55 inline const ::std::string& FormType_Name(FormType value) {
57  FormType_descriptor(), value);
58 }
59 inline bool FormType_Parse(
60  const ::std::string& name, FormType* value) {
61  return ::google::protobuf::internal::ParseNamedEnum<FormType>(
62  FormType_descriptor(), name, value);
63 }
65  LOGIN = 1,
66  LEGAL = 2,
68  DONE = 4
69 };
73 const int AuthenticationState_ARRAYSIZE = AuthenticationState_MAX + 1;
74 
75 TC_SHARED_API const ::google::protobuf::EnumDescriptor* AuthenticationState_descriptor();
76 inline const ::std::string& AuthenticationState_Name(AuthenticationState value) {
79 }
81  const ::std::string& name, AuthenticationState* value) {
82  return ::google::protobuf::internal::ParseNamedEnum<AuthenticationState>(
84 }
85 // ===================================================================
86 
88  public:
89  FormInput();
90  virtual ~FormInput();
91 
92  FormInput(const FormInput& from);
93 
94  inline FormInput& operator=(const FormInput& from) {
95  CopyFrom(from);
96  return *this;
97  }
98 
99  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
100  return _unknown_fields_;
101  }
102 
103  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
104  return &_unknown_fields_;
105  }
106 
107  static const ::google::protobuf::Descriptor* descriptor();
108  static const FormInput& default_instance();
109 
110  void Swap(FormInput* other);
111 
112  // implements Message ----------------------------------------------
113 
114  FormInput* New() const;
115  int GetCachedSize() const { return _cached_size_; }
116  private:
117  void SharedCtor();
118  void SharedDtor();
119  void SetCachedSize(int size) const;
120  public:
121  ::google::protobuf::Metadata GetMetadata() const;
122 
123  // nested types ----------------------------------------------------
124 
125  // accessors -------------------------------------------------------
126 
127  // required string input_id = 1;
128  inline bool has_input_id() const;
129  inline void clear_input_id();
130  static const int kInputIdFieldNumber = 1;
131  inline const ::std::string& input_id() const;
132  inline void set_input_id(const ::std::string& value);
133  inline void set_input_id(const char* value);
134  inline void set_input_id(const char* value, size_t size);
135  inline ::std::string* mutable_input_id();
136  inline ::std::string* release_input_id();
137  inline void set_allocated_input_id(::std::string* input_id);
138 
139  // required string type = 2;
140  inline bool has_type() const;
141  inline void clear_type();
142  static const int kTypeFieldNumber = 2;
143  inline const ::std::string& type() const;
144  inline void set_type(const ::std::string& value);
145  inline void set_type(const char* value);
146  inline void set_type(const char* value, size_t size);
147  inline ::std::string* mutable_type();
148  inline ::std::string* release_type();
149  inline void set_allocated_type(::std::string* type);
150 
151  // required string label = 3;
152  inline bool has_label() const;
153  inline void clear_label();
154  static const int kLabelFieldNumber = 3;
155  inline const ::std::string& label() const;
156  inline void set_label(const ::std::string& value);
157  inline void set_label(const char* value);
158  inline void set_label(const char* value, size_t size);
159  inline ::std::string* mutable_label();
160  inline ::std::string* release_label();
161  inline void set_allocated_label(::std::string* label);
162 
163  // optional uint32 max_length = 4;
164  inline bool has_max_length() const;
165  inline void clear_max_length();
166  static const int kMaxLengthFieldNumber = 4;
167  inline ::google::protobuf::uint32 max_length() const;
168  inline void set_max_length(::google::protobuf::uint32 value);
169 
170  // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.FormInput)
171  private:
172  inline void set_has_input_id();
173  inline void clear_has_input_id();
174  inline void set_has_type();
175  inline void clear_has_type();
176  inline void set_has_label();
177  inline void clear_has_label();
178  inline void set_has_max_length();
179  inline void clear_has_max_length();
180 
182 
184  mutable int _cached_size_;
185  ::std::string* input_id_;
186  ::std::string* type_;
187  ::std::string* label_;
190  friend void protobuf_AssignDesc_Login_2eproto();
192 
193  void InitAsDefaultInstance();
195 };
196 // -------------------------------------------------------------------
197 
199  public:
200  FormInputs();
201  virtual ~FormInputs();
202 
203  FormInputs(const FormInputs& from);
204 
205  inline FormInputs& operator=(const FormInputs& from) {
206  CopyFrom(from);
207  return *this;
208  }
209 
210  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
211  return _unknown_fields_;
212  }
213 
214  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
215  return &_unknown_fields_;
216  }
217 
218  static const ::google::protobuf::Descriptor* descriptor();
219  static const FormInputs& default_instance();
220 
221  void Swap(FormInputs* other);
222 
223  // implements Message ----------------------------------------------
224 
225  FormInputs* New() const;
226  int GetCachedSize() const { return _cached_size_; }
227  private:
228  void SharedCtor();
229  void SharedDtor();
230  void SetCachedSize(int size) const;
231  public:
232  ::google::protobuf::Metadata GetMetadata() const;
233 
234  // nested types ----------------------------------------------------
235 
236  // accessors -------------------------------------------------------
237 
238  // required .Battlenet.JSON.Login.FormType type = 1;
239  inline bool has_type() const;
240  inline void clear_type();
241  static const int kTypeFieldNumber = 1;
243  inline void set_type(::Battlenet::JSON::Login::FormType value);
244 
245  // repeated .Battlenet.JSON.Login.FormInput inputs = 2;
246  inline int inputs_size() const;
247  inline void clear_inputs();
248  static const int kInputsFieldNumber = 2;
249  inline const ::Battlenet::JSON::Login::FormInput& inputs(int index) const;
250  inline ::Battlenet::JSON::Login::FormInput* mutable_inputs(int index);
251  inline ::Battlenet::JSON::Login::FormInput* add_inputs();
252  inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >&
253  inputs() const;
254  inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >*
255  mutable_inputs();
256 
257  // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.FormInputs)
258  private:
259  inline void set_has_type();
260  inline void clear_has_type();
261 
263 
265  mutable int _cached_size_;
267  int type_;
269  friend void protobuf_AssignDesc_Login_2eproto();
271 
272  void InitAsDefaultInstance();
274 };
275 // -------------------------------------------------------------------
276 
278  public:
279  FormInputValue();
280  virtual ~FormInputValue();
281 
282  FormInputValue(const FormInputValue& from);
283 
284  inline FormInputValue& operator=(const FormInputValue& from) {
285  CopyFrom(from);
286  return *this;
287  }
288 
289  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
290  return _unknown_fields_;
291  }
292 
293  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
294  return &_unknown_fields_;
295  }
296 
297  static const ::google::protobuf::Descriptor* descriptor();
298  static const FormInputValue& default_instance();
299 
300  void Swap(FormInputValue* other);
301 
302  // implements Message ----------------------------------------------
303 
304  FormInputValue* New() const;
305  int GetCachedSize() const { return _cached_size_; }
306  private:
307  void SharedCtor();
308  void SharedDtor();
309  void SetCachedSize(int size) const;
310  public:
311  ::google::protobuf::Metadata GetMetadata() const;
312 
313  // nested types ----------------------------------------------------
314 
315  // accessors -------------------------------------------------------
316 
317  // required string input_id = 1;
318  inline bool has_input_id() const;
319  inline void clear_input_id();
320  static const int kInputIdFieldNumber = 1;
321  inline const ::std::string& input_id() const;
322  inline void set_input_id(const ::std::string& value);
323  inline void set_input_id(const char* value);
324  inline void set_input_id(const char* value, size_t size);
325  inline ::std::string* mutable_input_id();
326  inline ::std::string* release_input_id();
327  inline void set_allocated_input_id(::std::string* input_id);
328 
329  // required string value = 2;
330  inline bool has_value() const;
331  inline void clear_value();
332  static const int kValueFieldNumber = 2;
333  inline const ::std::string& value() const;
334  inline void set_value(const ::std::string& value);
335  inline void set_value(const char* value);
336  inline void set_value(const char* value, size_t size);
337  inline ::std::string* mutable_value();
338  inline ::std::string* release_value();
339  inline void set_allocated_value(::std::string* value);
340 
341  // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.FormInputValue)
342  private:
343  inline void set_has_input_id();
344  inline void clear_has_input_id();
345  inline void set_has_value();
346  inline void clear_has_value();
347 
349 
351  mutable int _cached_size_;
352  ::std::string* input_id_;
353  ::std::string* value_;
355  friend void protobuf_AssignDesc_Login_2eproto();
357 
358  void InitAsDefaultInstance();
360 };
361 // -------------------------------------------------------------------
362 
364  public:
365  LoginForm();
366  virtual ~LoginForm();
367 
368  LoginForm(const LoginForm& from);
369 
370  inline LoginForm& operator=(const LoginForm& from) {
371  CopyFrom(from);
372  return *this;
373  }
374 
375  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
376  return _unknown_fields_;
377  }
378 
379  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
380  return &_unknown_fields_;
381  }
382 
383  static const ::google::protobuf::Descriptor* descriptor();
384  static const LoginForm& default_instance();
385 
386  void Swap(LoginForm* other);
387 
388  // implements Message ----------------------------------------------
389 
390  LoginForm* New() const;
391  int GetCachedSize() const { return _cached_size_; }
392  private:
393  void SharedCtor();
394  void SharedDtor();
395  void SetCachedSize(int size) const;
396  public:
397  ::google::protobuf::Metadata GetMetadata() const;
398 
399  // nested types ----------------------------------------------------
400 
401  // accessors -------------------------------------------------------
402 
403  // required string platform_id = 1;
404  inline bool has_platform_id() const;
405  inline void clear_platform_id();
406  static const int kPlatformIdFieldNumber = 1;
407  inline const ::std::string& platform_id() const;
408  inline void set_platform_id(const ::std::string& value);
409  inline void set_platform_id(const char* value);
410  inline void set_platform_id(const char* value, size_t size);
411  inline ::std::string* mutable_platform_id();
412  inline ::std::string* release_platform_id();
413  inline void set_allocated_platform_id(::std::string* platform_id);
414 
415  // required string program_id = 2;
416  inline bool has_program_id() const;
417  inline void clear_program_id();
418  static const int kProgramIdFieldNumber = 2;
419  inline const ::std::string& program_id() const;
420  inline void set_program_id(const ::std::string& value);
421  inline void set_program_id(const char* value);
422  inline void set_program_id(const char* value, size_t size);
423  inline ::std::string* mutable_program_id();
424  inline ::std::string* release_program_id();
425  inline void set_allocated_program_id(::std::string* program_id);
426 
427  // required string version = 3;
428  inline bool has_version() const;
429  inline void clear_version();
430  static const int kVersionFieldNumber = 3;
431  inline const ::std::string& version() const;
432  inline void set_version(const ::std::string& value);
433  inline void set_version(const char* value);
434  inline void set_version(const char* value, size_t size);
435  inline ::std::string* mutable_version();
436  inline ::std::string* release_version();
437  inline void set_allocated_version(::std::string* version);
438 
439  // repeated .Battlenet.JSON.Login.FormInputValue inputs = 4;
440  inline int inputs_size() const;
441  inline void clear_inputs();
442  static const int kInputsFieldNumber = 4;
443  inline const ::Battlenet::JSON::Login::FormInputValue& inputs(int index) const;
444  inline ::Battlenet::JSON::Login::FormInputValue* mutable_inputs(int index);
445  inline ::Battlenet::JSON::Login::FormInputValue* add_inputs();
446  inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >&
447  inputs() const;
448  inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >*
449  mutable_inputs();
450 
451  // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.LoginForm)
452  private:
453  inline void set_has_platform_id();
454  inline void clear_has_platform_id();
455  inline void set_has_program_id();
456  inline void clear_has_program_id();
457  inline void set_has_version();
458  inline void clear_has_version();
459 
461 
463  mutable int _cached_size_;
464  ::std::string* platform_id_;
465  ::std::string* program_id_;
466  ::std::string* version_;
469  friend void protobuf_AssignDesc_Login_2eproto();
471 
472  void InitAsDefaultInstance();
474 };
475 // -------------------------------------------------------------------
476 
478  public:
479  LoginResult();
480  virtual ~LoginResult();
481 
482  LoginResult(const LoginResult& from);
483 
484  inline LoginResult& operator=(const LoginResult& from) {
485  CopyFrom(from);
486  return *this;
487  }
488 
489  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
490  return _unknown_fields_;
491  }
492 
493  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
494  return &_unknown_fields_;
495  }
496 
497  static const ::google::protobuf::Descriptor* descriptor();
498  static const LoginResult& default_instance();
499 
500  void Swap(LoginResult* other);
501 
502  // implements Message ----------------------------------------------
503 
504  LoginResult* New() const;
505  int GetCachedSize() const { return _cached_size_; }
506  private:
507  void SharedCtor();
508  void SharedDtor();
509  void SetCachedSize(int size) const;
510  public:
511  ::google::protobuf::Metadata GetMetadata() const;
512 
513  // nested types ----------------------------------------------------
514 
515  // accessors -------------------------------------------------------
516 
517  // required .Battlenet.JSON.Login.AuthenticationState authentication_state = 1;
518  inline bool has_authentication_state() const;
519  inline void clear_authentication_state();
520  static const int kAuthenticationStateFieldNumber = 1;
521  inline ::Battlenet::JSON::Login::AuthenticationState authentication_state() const;
522  inline void set_authentication_state(::Battlenet::JSON::Login::AuthenticationState value);
523 
524  // optional string error_code = 2;
525  inline bool has_error_code() const;
526  inline void clear_error_code();
527  static const int kErrorCodeFieldNumber = 2;
528  inline const ::std::string& error_code() const;
529  inline void set_error_code(const ::std::string& value);
530  inline void set_error_code(const char* value);
531  inline void set_error_code(const char* value, size_t size);
532  inline ::std::string* mutable_error_code();
533  inline ::std::string* release_error_code();
534  inline void set_allocated_error_code(::std::string* error_code);
535 
536  // optional string error_message = 3;
537  inline bool has_error_message() const;
538  inline void clear_error_message();
539  static const int kErrorMessageFieldNumber = 3;
540  inline const ::std::string& error_message() const;
541  inline void set_error_message(const ::std::string& value);
542  inline void set_error_message(const char* value);
543  inline void set_error_message(const char* value, size_t size);
544  inline ::std::string* mutable_error_message();
545  inline ::std::string* release_error_message();
546  inline void set_allocated_error_message(::std::string* error_message);
547 
548  // optional string url = 4;
549  inline bool has_url() const;
550  inline void clear_url();
551  static const int kUrlFieldNumber = 4;
552  inline const ::std::string& url() const;
553  inline void set_url(const ::std::string& value);
554  inline void set_url(const char* value);
555  inline void set_url(const char* value, size_t size);
556  inline ::std::string* mutable_url();
557  inline ::std::string* release_url();
558  inline void set_allocated_url(::std::string* url);
559 
560  // optional string login_ticket = 5;
561  inline bool has_login_ticket() const;
562  inline void clear_login_ticket();
563  static const int kLoginTicketFieldNumber = 5;
564  inline const ::std::string& login_ticket() const;
565  inline void set_login_ticket(const ::std::string& value);
566  inline void set_login_ticket(const char* value);
567  inline void set_login_ticket(const char* value, size_t size);
568  inline ::std::string* mutable_login_ticket();
569  inline ::std::string* release_login_ticket();
570  inline void set_allocated_login_ticket(::std::string* login_ticket);
571 
572  // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.LoginResult)
573  private:
574  inline void set_has_authentication_state();
575  inline void clear_has_authentication_state();
576  inline void set_has_error_code();
577  inline void clear_has_error_code();
578  inline void set_has_error_message();
579  inline void clear_has_error_message();
580  inline void set_has_url();
581  inline void clear_has_url();
582  inline void set_has_login_ticket();
583  inline void clear_has_login_ticket();
584 
586 
588  mutable int _cached_size_;
589  ::std::string* error_code_;
590  ::std::string* error_message_;
591  ::std::string* url_;
592  ::std::string* login_ticket_;
595  friend void protobuf_AssignDesc_Login_2eproto();
597 
598  void InitAsDefaultInstance();
600 };
601 // ===================================================================
602 
603 
604 // ===================================================================
605 
606 
607 // ===================================================================
608 
609 // FormInput
610 
611 // required string input_id = 1;
612 inline bool FormInput::has_input_id() const {
613  return (_has_bits_[0] & 0x00000001u) != 0;
614 }
616  _has_bits_[0] |= 0x00000001u;
617 }
619  _has_bits_[0] &= ~0x00000001u;
620 }
623  input_id_->clear();
624  }
626 }
627 inline const ::std::string& FormInput::input_id() const {
628  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.input_id)
629  return *input_id_;
630 }
631 inline void FormInput::set_input_id(const ::std::string& value) {
634  input_id_ = new ::std::string;
635  }
636  input_id_->assign(value);
637  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.input_id)
638 }
639 inline void FormInput::set_input_id(const char* value) {
642  input_id_ = new ::std::string;
643  }
644  input_id_->assign(value);
645  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInput.input_id)
646 }
647 inline void FormInput::set_input_id(const char* value, size_t size) {
650  input_id_ = new ::std::string;
651  }
652  input_id_->assign(reinterpret_cast<const char*>(value), size);
653  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInput.input_id)
654 }
655 inline ::std::string* FormInput::mutable_input_id() {
658  input_id_ = new ::std::string;
659  }
660  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInput.input_id)
661  return input_id_;
662 }
663 inline ::std::string* FormInput::release_input_id() {
666  return NULL;
667  } else {
668  ::std::string* temp = input_id_;
670  return temp;
671  }
672 }
673 inline void FormInput::set_allocated_input_id(::std::string* input_id) {
675  delete input_id_;
676  }
677  if (input_id) {
680  } else {
683  }
684  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInput.input_id)
685 }
686 
687 // required string type = 2;
688 inline bool FormInput::has_type() const {
689  return (_has_bits_[0] & 0x00000002u) != 0;
690 }
691 inline void FormInput::set_has_type() {
692  _has_bits_[0] |= 0x00000002u;
693 }
695  _has_bits_[0] &= ~0x00000002u;
696 }
697 inline void FormInput::clear_type() {
699  type_->clear();
700  }
701  clear_has_type();
702 }
703 inline const ::std::string& FormInput::type() const {
704  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.type)
705  return *type_;
706 }
707 inline void FormInput::set_type(const ::std::string& value) {
708  set_has_type();
710  type_ = new ::std::string;
711  }
712  type_->assign(value);
713  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.type)
714 }
715 inline void FormInput::set_type(const char* value) {
716  set_has_type();
718  type_ = new ::std::string;
719  }
720  type_->assign(value);
721  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInput.type)
722 }
723 inline void FormInput::set_type(const char* value, size_t size) {
724  set_has_type();
726  type_ = new ::std::string;
727  }
728  type_->assign(reinterpret_cast<const char*>(value), size);
729  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInput.type)
730 }
731 inline ::std::string* FormInput::mutable_type() {
732  set_has_type();
734  type_ = new ::std::string;
735  }
736  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInput.type)
737  return type_;
738 }
739 inline ::std::string* FormInput::release_type() {
740  clear_has_type();
742  return NULL;
743  } else {
744  ::std::string* temp = type_;
745  type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
746  return temp;
747  }
748 }
749 inline void FormInput::set_allocated_type(::std::string* type) {
751  delete type_;
752  }
753  if (type) {
754  set_has_type();
755  type_ = type;
756  } else {
757  clear_has_type();
758  type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
759  }
760  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInput.type)
761 }
762 
763 // required string label = 3;
764 inline bool FormInput::has_label() const {
765  return (_has_bits_[0] & 0x00000004u) != 0;
766 }
768  _has_bits_[0] |= 0x00000004u;
769 }
771  _has_bits_[0] &= ~0x00000004u;
772 }
773 inline void FormInput::clear_label() {
775  label_->clear();
776  }
777  clear_has_label();
778 }
779 inline const ::std::string& FormInput::label() const {
780  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.label)
781  return *label_;
782 }
783 inline void FormInput::set_label(const ::std::string& value) {
784  set_has_label();
786  label_ = new ::std::string;
787  }
788  label_->assign(value);
789  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.label)
790 }
791 inline void FormInput::set_label(const char* value) {
792  set_has_label();
794  label_ = new ::std::string;
795  }
796  label_->assign(value);
797  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInput.label)
798 }
799 inline void FormInput::set_label(const char* value, size_t size) {
800  set_has_label();
802  label_ = new ::std::string;
803  }
804  label_->assign(reinterpret_cast<const char*>(value), size);
805  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInput.label)
806 }
807 inline ::std::string* FormInput::mutable_label() {
808  set_has_label();
810  label_ = new ::std::string;
811  }
812  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInput.label)
813  return label_;
814 }
815 inline ::std::string* FormInput::release_label() {
816  clear_has_label();
818  return NULL;
819  } else {
820  ::std::string* temp = label_;
821  label_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
822  return temp;
823  }
824 }
825 inline void FormInput::set_allocated_label(::std::string* label) {
827  delete label_;
828  }
829  if (label) {
830  set_has_label();
831  label_ = label;
832  } else {
833  clear_has_label();
834  label_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
835  }
836  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInput.label)
837 }
838 
839 // optional uint32 max_length = 4;
840 inline bool FormInput::has_max_length() const {
841  return (_has_bits_[0] & 0x00000008u) != 0;
842 }
844  _has_bits_[0] |= 0x00000008u;
845 }
847  _has_bits_[0] &= ~0x00000008u;
848 }
850  max_length_ = 0u;
852 }
854  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.max_length)
855  return max_length_;
856 }
859  max_length_ = value;
860  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.max_length)
861 }
862 
863 // -------------------------------------------------------------------
864 
865 // FormInputs
866 
867 // required .Battlenet.JSON.Login.FormType type = 1;
868 inline bool FormInputs::has_type() const {
869  return (_has_bits_[0] & 0x00000001u) != 0;
870 }
872  _has_bits_[0] |= 0x00000001u;
873 }
875  _has_bits_[0] &= ~0x00000001u;
876 }
877 inline void FormInputs::clear_type() {
878  type_ = 1;
879  clear_has_type();
880 }
882  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputs.type)
883  return static_cast< ::Battlenet::JSON::Login::FormType >(type_);
884 }
887  set_has_type();
888  type_ = value;
889  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInputs.type)
890 }
891 
892 // repeated .Battlenet.JSON.Login.FormInput inputs = 2;
893 inline int FormInputs::inputs_size() const {
894  return inputs_.size();
895 }
897  inputs_.Clear();
898 }
899 inline const ::Battlenet::JSON::Login::FormInput& FormInputs::inputs(int index) const {
900  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputs.inputs)
901  return inputs_.Get(index);
902 }
903 inline ::Battlenet::JSON::Login::FormInput* FormInputs::mutable_inputs(int index) {
904  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInputs.inputs)
905  return inputs_.Mutable(index);
906 }
907 inline ::Battlenet::JSON::Login::FormInput* FormInputs::add_inputs() {
908  // @@protoc_insertion_point(field_add:Battlenet.JSON.Login.FormInputs.inputs)
909  return inputs_.Add();
910 }
911 inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >&
913  // @@protoc_insertion_point(field_list:Battlenet.JSON.Login.FormInputs.inputs)
914  return inputs_;
915 }
916 inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >*
918  // @@protoc_insertion_point(field_mutable_list:Battlenet.JSON.Login.FormInputs.inputs)
919  return &inputs_;
920 }
921 
922 // -------------------------------------------------------------------
923 
924 // FormInputValue
925 
926 // required string input_id = 1;
927 inline bool FormInputValue::has_input_id() const {
928  return (_has_bits_[0] & 0x00000001u) != 0;
929 }
931  _has_bits_[0] |= 0x00000001u;
932 }
934  _has_bits_[0] &= ~0x00000001u;
935 }
938  input_id_->clear();
939  }
941 }
942 inline const ::std::string& FormInputValue::input_id() const {
943  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputValue.input_id)
944  return *input_id_;
945 }
946 inline void FormInputValue::set_input_id(const ::std::string& value) {
949  input_id_ = new ::std::string;
950  }
951  input_id_->assign(value);
952  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInputValue.input_id)
953 }
954 inline void FormInputValue::set_input_id(const char* value) {
957  input_id_ = new ::std::string;
958  }
959  input_id_->assign(value);
960  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInputValue.input_id)
961 }
962 inline void FormInputValue::set_input_id(const char* value, size_t size) {
965  input_id_ = new ::std::string;
966  }
967  input_id_->assign(reinterpret_cast<const char*>(value), size);
968  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInputValue.input_id)
969 }
970 inline ::std::string* FormInputValue::mutable_input_id() {
973  input_id_ = new ::std::string;
974  }
975  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInputValue.input_id)
976  return input_id_;
977 }
978 inline ::std::string* FormInputValue::release_input_id() {
981  return NULL;
982  } else {
983  ::std::string* temp = input_id_;
985  return temp;
986  }
987 }
988 inline void FormInputValue::set_allocated_input_id(::std::string* input_id) {
990  delete input_id_;
991  }
992  if (input_id) {
995  } else {
998  }
999  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInputValue.input_id)
1000 }
1001 
1002 // required string value = 2;
1003 inline bool FormInputValue::has_value() const {
1004  return (_has_bits_[0] & 0x00000002u) != 0;
1005 }
1007  _has_bits_[0] |= 0x00000002u;
1008 }
1010  _has_bits_[0] &= ~0x00000002u;
1011 }
1014  value_->clear();
1015  }
1016  clear_has_value();
1017 }
1018 inline const ::std::string& FormInputValue::value() const {
1019  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputValue.value)
1020  return *value_;
1021 }
1022 inline void FormInputValue::set_value(const ::std::string& value) {
1023  set_has_value();
1025  value_ = new ::std::string;
1026  }
1027  value_->assign(value);
1028  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInputValue.value)
1029 }
1030 inline void FormInputValue::set_value(const char* value) {
1031  set_has_value();
1033  value_ = new ::std::string;
1034  }
1035  value_->assign(value);
1036  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInputValue.value)
1037 }
1038 inline void FormInputValue::set_value(const char* value, size_t size) {
1039  set_has_value();
1041  value_ = new ::std::string;
1042  }
1043  value_->assign(reinterpret_cast<const char*>(value), size);
1044  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInputValue.value)
1045 }
1046 inline ::std::string* FormInputValue::mutable_value() {
1047  set_has_value();
1049  value_ = new ::std::string;
1050  }
1051  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInputValue.value)
1052  return value_;
1053 }
1054 inline ::std::string* FormInputValue::release_value() {
1055  clear_has_value();
1057  return NULL;
1058  } else {
1059  ::std::string* temp = value_;
1060  value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1061  return temp;
1062  }
1063 }
1064 inline void FormInputValue::set_allocated_value(::std::string* value) {
1066  delete value_;
1067  }
1068  if (value) {
1069  set_has_value();
1070  value_ = value;
1071  } else {
1072  clear_has_value();
1073  value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1074  }
1075  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInputValue.value)
1076 }
1077 
1078 // -------------------------------------------------------------------
1079 
1080 // LoginForm
1081 
1082 // required string platform_id = 1;
1083 inline bool LoginForm::has_platform_id() const {
1084  return (_has_bits_[0] & 0x00000001u) != 0;
1085 }
1087  _has_bits_[0] |= 0x00000001u;
1088 }
1090  _has_bits_[0] &= ~0x00000001u;
1091 }
1094  platform_id_->clear();
1095  }
1097 }
1098 inline const ::std::string& LoginForm::platform_id() const {
1099  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.platform_id)
1100  return *platform_id_;
1101 }
1102 inline void LoginForm::set_platform_id(const ::std::string& value) {
1105  platform_id_ = new ::std::string;
1106  }
1107  platform_id_->assign(value);
1108  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginForm.platform_id)
1109 }
1110 inline void LoginForm::set_platform_id(const char* value) {
1113  platform_id_ = new ::std::string;
1114  }
1115  platform_id_->assign(value);
1116  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginForm.platform_id)
1117 }
1118 inline void LoginForm::set_platform_id(const char* value, size_t size) {
1121  platform_id_ = new ::std::string;
1122  }
1123  platform_id_->assign(reinterpret_cast<const char*>(value), size);
1124  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginForm.platform_id)
1125 }
1126 inline ::std::string* LoginForm::mutable_platform_id() {
1129  platform_id_ = new ::std::string;
1130  }
1131  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.platform_id)
1132  return platform_id_;
1133 }
1134 inline ::std::string* LoginForm::release_platform_id() {
1137  return NULL;
1138  } else {
1139  ::std::string* temp = platform_id_;
1141  return temp;
1142  }
1143 }
1144 inline void LoginForm::set_allocated_platform_id(::std::string* platform_id) {
1146  delete platform_id_;
1147  }
1148  if (platform_id) {
1151  } else {
1154  }
1155  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginForm.platform_id)
1156 }
1157 
1158 // required string program_id = 2;
1159 inline bool LoginForm::has_program_id() const {
1160  return (_has_bits_[0] & 0x00000002u) != 0;
1161 }
1163  _has_bits_[0] |= 0x00000002u;
1164 }
1166  _has_bits_[0] &= ~0x00000002u;
1167 }
1170  program_id_->clear();
1171  }
1173 }
1174 inline const ::std::string& LoginForm::program_id() const {
1175  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.program_id)
1176  return *program_id_;
1177 }
1178 inline void LoginForm::set_program_id(const ::std::string& value) {
1181  program_id_ = new ::std::string;
1182  }
1183  program_id_->assign(value);
1184  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginForm.program_id)
1185 }
1186 inline void LoginForm::set_program_id(const char* value) {
1189  program_id_ = new ::std::string;
1190  }
1191  program_id_->assign(value);
1192  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginForm.program_id)
1193 }
1194 inline void LoginForm::set_program_id(const char* value, size_t size) {
1197  program_id_ = new ::std::string;
1198  }
1199  program_id_->assign(reinterpret_cast<const char*>(value), size);
1200  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginForm.program_id)
1201 }
1202 inline ::std::string* LoginForm::mutable_program_id() {
1205  program_id_ = new ::std::string;
1206  }
1207  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.program_id)
1208  return program_id_;
1209 }
1210 inline ::std::string* LoginForm::release_program_id() {
1213  return NULL;
1214  } else {
1215  ::std::string* temp = program_id_;
1217  return temp;
1218  }
1219 }
1220 inline void LoginForm::set_allocated_program_id(::std::string* program_id) {
1222  delete program_id_;
1223  }
1224  if (program_id) {
1227  } else {
1230  }
1231  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginForm.program_id)
1232 }
1233 
1234 // required string version = 3;
1235 inline bool LoginForm::has_version() const {
1236  return (_has_bits_[0] & 0x00000004u) != 0;
1237 }
1239  _has_bits_[0] |= 0x00000004u;
1240 }
1242  _has_bits_[0] &= ~0x00000004u;
1243 }
1246  version_->clear();
1247  }
1249 }
1250 inline const ::std::string& LoginForm::version() const {
1251  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.version)
1252  return *version_;
1253 }
1254 inline void LoginForm::set_version(const ::std::string& value) {
1255  set_has_version();
1257  version_ = new ::std::string;
1258  }
1259  version_->assign(value);
1260  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginForm.version)
1261 }
1262 inline void LoginForm::set_version(const char* value) {
1263  set_has_version();
1265  version_ = new ::std::string;
1266  }
1267  version_->assign(value);
1268  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginForm.version)
1269 }
1270 inline void LoginForm::set_version(const char* value, size_t size) {
1271  set_has_version();
1273  version_ = new ::std::string;
1274  }
1275  version_->assign(reinterpret_cast<const char*>(value), size);
1276  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginForm.version)
1277 }
1278 inline ::std::string* LoginForm::mutable_version() {
1279  set_has_version();
1281  version_ = new ::std::string;
1282  }
1283  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.version)
1284  return version_;
1285 }
1286 inline ::std::string* LoginForm::release_version() {
1289  return NULL;
1290  } else {
1291  ::std::string* temp = version_;
1292  version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1293  return temp;
1294  }
1295 }
1296 inline void LoginForm::set_allocated_version(::std::string* version) {
1298  delete version_;
1299  }
1300  if (version) {
1301  set_has_version();
1302  version_ = version;
1303  } else {
1305  version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1306  }
1307  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginForm.version)
1308 }
1309 
1310 // repeated .Battlenet.JSON.Login.FormInputValue inputs = 4;
1311 inline int LoginForm::inputs_size() const {
1312  return inputs_.size();
1313 }
1315  inputs_.Clear();
1316 }
1317 inline const ::Battlenet::JSON::Login::FormInputValue& LoginForm::inputs(int index) const {
1318  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.inputs)
1319  return inputs_.Get(index);
1320 }
1321 inline ::Battlenet::JSON::Login::FormInputValue* LoginForm::mutable_inputs(int index) {
1322  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.inputs)
1323  return inputs_.Mutable(index);
1324 }
1325 inline ::Battlenet::JSON::Login::FormInputValue* LoginForm::add_inputs() {
1326  // @@protoc_insertion_point(field_add:Battlenet.JSON.Login.LoginForm.inputs)
1327  return inputs_.Add();
1328 }
1329 inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >&
1331  // @@protoc_insertion_point(field_list:Battlenet.JSON.Login.LoginForm.inputs)
1332  return inputs_;
1333 }
1334 inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >*
1336  // @@protoc_insertion_point(field_mutable_list:Battlenet.JSON.Login.LoginForm.inputs)
1337  return &inputs_;
1338 }
1339 
1340 // -------------------------------------------------------------------
1341 
1342 // LoginResult
1343 
1344 // required .Battlenet.JSON.Login.AuthenticationState authentication_state = 1;
1346  return (_has_bits_[0] & 0x00000001u) != 0;
1347 }
1349  _has_bits_[0] |= 0x00000001u;
1350 }
1352  _has_bits_[0] &= ~0x00000001u;
1353 }
1357 }
1359  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.authentication_state)
1361 }
1366  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.authentication_state)
1367 }
1368 
1369 // optional string error_code = 2;
1370 inline bool LoginResult::has_error_code() const {
1371  return (_has_bits_[0] & 0x00000002u) != 0;
1372 }
1374  _has_bits_[0] |= 0x00000002u;
1375 }
1377  _has_bits_[0] &= ~0x00000002u;
1378 }
1381  error_code_->clear();
1382  }
1384 }
1385 inline const ::std::string& LoginResult::error_code() const {
1386  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.error_code)
1387  return *error_code_;
1388 }
1389 inline void LoginResult::set_error_code(const ::std::string& value) {
1392  error_code_ = new ::std::string;
1393  }
1394  error_code_->assign(value);
1395  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.error_code)
1396 }
1397 inline void LoginResult::set_error_code(const char* value) {
1400  error_code_ = new ::std::string;
1401  }
1402  error_code_->assign(value);
1403  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.error_code)
1404 }
1405 inline void LoginResult::set_error_code(const char* value, size_t size) {
1408  error_code_ = new ::std::string;
1409  }
1410  error_code_->assign(reinterpret_cast<const char*>(value), size);
1411  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.error_code)
1412 }
1413 inline ::std::string* LoginResult::mutable_error_code() {
1416  error_code_ = new ::std::string;
1417  }
1418  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.error_code)
1419  return error_code_;
1420 }
1421 inline ::std::string* LoginResult::release_error_code() {
1424  return NULL;
1425  } else {
1426  ::std::string* temp = error_code_;
1428  return temp;
1429  }
1430 }
1431 inline void LoginResult::set_allocated_error_code(::std::string* error_code) {
1433  delete error_code_;
1434  }
1435  if (error_code) {
1438  } else {
1441  }
1442  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.error_code)
1443 }
1444 
1445 // optional string error_message = 3;
1446 inline bool LoginResult::has_error_message() const {
1447  return (_has_bits_[0] & 0x00000004u) != 0;
1448 }
1450  _has_bits_[0] |= 0x00000004u;
1451 }
1453  _has_bits_[0] &= ~0x00000004u;
1454 }
1457  error_message_->clear();
1458  }
1460 }
1461 inline const ::std::string& LoginResult::error_message() const {
1462  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.error_message)
1463  return *error_message_;
1464 }
1465 inline void LoginResult::set_error_message(const ::std::string& value) {
1468  error_message_ = new ::std::string;
1469  }
1470  error_message_->assign(value);
1471  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.error_message)
1472 }
1473 inline void LoginResult::set_error_message(const char* value) {
1476  error_message_ = new ::std::string;
1477  }
1478  error_message_->assign(value);
1479  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.error_message)
1480 }
1481 inline void LoginResult::set_error_message(const char* value, size_t size) {
1484  error_message_ = new ::std::string;
1485  }
1486  error_message_->assign(reinterpret_cast<const char*>(value), size);
1487  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.error_message)
1488 }
1489 inline ::std::string* LoginResult::mutable_error_message() {
1492  error_message_ = new ::std::string;
1493  }
1494  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.error_message)
1495  return error_message_;
1496 }
1497 inline ::std::string* LoginResult::release_error_message() {
1500  return NULL;
1501  } else {
1502  ::std::string* temp = error_message_;
1504  return temp;
1505  }
1506 }
1507 inline void LoginResult::set_allocated_error_message(::std::string* error_message) {
1509  delete error_message_;
1510  }
1511  if (error_message) {
1514  } else {
1517  }
1518  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.error_message)
1519 }
1520 
1521 // optional string url = 4;
1522 inline bool LoginResult::has_url() const {
1523  return (_has_bits_[0] & 0x00000008u) != 0;
1524 }
1526  _has_bits_[0] |= 0x00000008u;
1527 }
1529  _has_bits_[0] &= ~0x00000008u;
1530 }
1531 inline void LoginResult::clear_url() {
1533  url_->clear();
1534  }
1535  clear_has_url();
1536 }
1537 inline const ::std::string& LoginResult::url() const {
1538  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.url)
1539  return *url_;
1540 }
1541 inline void LoginResult::set_url(const ::std::string& value) {
1542  set_has_url();
1544  url_ = new ::std::string;
1545  }
1546  url_->assign(value);
1547  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.url)
1548 }
1549 inline void LoginResult::set_url(const char* value) {
1550  set_has_url();
1552  url_ = new ::std::string;
1553  }
1554  url_->assign(value);
1555  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.url)
1556 }
1557 inline void LoginResult::set_url(const char* value, size_t size) {
1558  set_has_url();
1560  url_ = new ::std::string;
1561  }
1562  url_->assign(reinterpret_cast<const char*>(value), size);
1563  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.url)
1564 }
1565 inline ::std::string* LoginResult::mutable_url() {
1566  set_has_url();
1568  url_ = new ::std::string;
1569  }
1570  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.url)
1571  return url_;
1572 }
1573 inline ::std::string* LoginResult::release_url() {
1574  clear_has_url();
1576  return NULL;
1577  } else {
1578  ::std::string* temp = url_;
1579  url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1580  return temp;
1581  }
1582 }
1583 inline void LoginResult::set_allocated_url(::std::string* url) {
1585  delete url_;
1586  }
1587  if (url) {
1588  set_has_url();
1589  url_ = url;
1590  } else {
1591  clear_has_url();
1592  url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1593  }
1594  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.url)
1595 }
1596 
1597 // optional string login_ticket = 5;
1598 inline bool LoginResult::has_login_ticket() const {
1599  return (_has_bits_[0] & 0x00000010u) != 0;
1600 }
1602  _has_bits_[0] |= 0x00000010u;
1603 }
1605  _has_bits_[0] &= ~0x00000010u;
1606 }
1609  login_ticket_->clear();
1610  }
1612 }
1613 inline const ::std::string& LoginResult::login_ticket() const {
1614  // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.login_ticket)
1615  return *login_ticket_;
1616 }
1617 inline void LoginResult::set_login_ticket(const ::std::string& value) {
1620  login_ticket_ = new ::std::string;
1621  }
1622  login_ticket_->assign(value);
1623  // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.login_ticket)
1624 }
1625 inline void LoginResult::set_login_ticket(const char* value) {
1628  login_ticket_ = new ::std::string;
1629  }
1630  login_ticket_->assign(value);
1631  // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.login_ticket)
1632 }
1633 inline void LoginResult::set_login_ticket(const char* value, size_t size) {
1636  login_ticket_ = new ::std::string;
1637  }
1638  login_ticket_->assign(reinterpret_cast<const char*>(value), size);
1639  // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.login_ticket)
1640 }
1641 inline ::std::string* LoginResult::mutable_login_ticket() {
1644  login_ticket_ = new ::std::string;
1645  }
1646  // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.login_ticket)
1647  return login_ticket_;
1648 }
1649 inline ::std::string* LoginResult::release_login_ticket() {
1652  return NULL;
1653  } else {
1654  ::std::string* temp = login_ticket_;
1656  return temp;
1657  }
1658 }
1659 inline void LoginResult::set_allocated_login_ticket(::std::string* login_ticket) {
1661  delete login_ticket_;
1662  }
1663  if (login_ticket) {
1666  } else {
1669  }
1670  // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.login_ticket)
1671 }
1672 
1673 
1674 // @@protoc_insertion_point(namespace_scope)
1675 
1676 } // namespace Login
1677 } // namespace JSON
1678 } // namespace Battlenet
1679 
1680 #ifndef SWIG
1681 namespace google {
1682 namespace protobuf {
1683 
1685 template <>
1686 inline const EnumDescriptor* GetEnumDescriptor< ::Battlenet::JSON::Login::FormType>() {
1688 }
1690 template <>
1691 inline const EnumDescriptor* GetEnumDescriptor< ::Battlenet::JSON::Login::AuthenticationState>() {
1693 }
1694 
1695 } // namespace google
1696 } // namespace protobuf
1697 #endif // SWIG
1698 
1699 // @@protoc_insertion_point(global_scope)
1700 
1701 #endif // PROTOBUF_Login_2eproto__INCLUDED
Definition: Login.pb.h:66
int authentication_state_
Definition: Login.pb.h:593
Definition: Login.pb.h:68
void clear_platform_id()
Definition: Login.pb.h:1092
void set_error_message(const ::std::string &value)
Definition: Login.pb.h:1465
::google::protobuf::uint32 max_length_
Definition: Login.pb.h:188
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: Login.pb.h:585
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Login.pb.h:379
static FormInputs * default_instance_
Definition: Login.pb.h:273
::std::string * url_
Definition: Login.pb.h:591
void set_allocated_login_ticket(::std::string *login_ticket)
Definition: Login.pb.h:1659
AuthenticationState
Definition: Login.pb.h:64
void clear_has_label()
Definition: Login.pb.h:770
const AuthenticationState AuthenticationState_MIN
Definition: Login.pb.h:71
void clear_has_url()
Definition: Login.pb.h:1528
void clear_has_type()
Definition: Login.pb.h:694
::std::string * program_id_
Definition: Login.pb.h:465
bool has_platform_id() const
Definition: Login.pb.h:1083
void clear_inputs()
Definition: Login.pb.h:1314
void set_allocated_program_id(::std::string *program_id)
Definition: Login.pb.h:1220
bool has_program_id() const
Definition: Login.pb.h:1159
void clear_url()
Definition: Login.pb.h:1531
void clear_has_type()
Definition: Login.pb.h:874
const AuthenticationState AuthenticationState_MAX
Definition: Login.pb.h:72
void clear_inputs()
Definition: Login.pb.h:896
void clear_has_input_id()
Definition: Login.pb.h:618
::google::protobuf::uint32 _has_bits_[1]
Definition: Login.pb.h:350
inline::std::string * release_platform_id()
Definition: Login.pb.h:1134
int GetCachedSize() const
Definition: Login.pb.h:305
void clear_login_ticket()
Definition: Login.pb.h:1607
void clear_error_code()
Definition: Login.pb.h:1379
const int AuthenticationState_ARRAYSIZE
Definition: Login.pb.h:73
int _cached_size_
Definition: Login.pb.h:463
::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue > inputs_
Definition: Login.pb.h:467
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Login.pb.h:293
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Login.pb.h:375
inline::std::string * release_url()
Definition: Login.pb.h:1573
bool FormType_Parse(const ::std::string &name, FormType *value)
Definition: Login.pb.h:59
void clear_has_error_code()
Definition: Login.pb.h:1376
void set_allocated_error_message(::std::string *error_message)
Definition: Login.pb.h:1507
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: Login.pb.h:460
void set_input_id(const ::std::string &value)
Definition: Login.pb.h:946
inline::std::string * mutable_error_message()
Definition: Login.pb.h:1489
bool has_input_id() const
Definition: Login.pb.h:612
LIBPROTOBUF_EXPORT const string & NameOfEnum(const EnumDescriptor *descriptor, int value)
int inputs_size() const
Definition: Login.pb.h:893
void clear_has_input_id()
Definition: Login.pb.h:933
Definition: method_options.pb.h:28
void set_allocated_error_code(::std::string *error_code)
Definition: Login.pb.h:1431
void TC_SHARED_API protobuf_AddDesc_Login_2eproto()
Definition: unknown_field_set.h:74
::std::string * value_
Definition: Login.pb.h:353
::std::string * version_
Definition: Login.pb.h:466
void set_has_url()
Definition: Login.pb.h:1525
bool has_error_message() const
Definition: Login.pb.h:1446
TC_SHARED_APIconst::google::protobuf::EnumDescriptor * FormType_descriptor()
void set_program_id(const ::std::string &value)
Definition: Login.pb.h:1178
LoginForm & operator=(const LoginForm &from)
Definition: Login.pb.h:370
void clear_input_id()
Definition: Login.pb.h:621
void set_has_max_length()
Definition: Login.pb.h:843
inline::std::string * release_login_ticket()
Definition: Login.pb.h:1649
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Login.pb.h:99
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: descriptor.h:683
Definition: Login.pb.h:65
static LoginForm * default_instance_
Definition: Login.pb.h:473
FormType
Definition: Login.pb.h:46
Definition: message.h:147
void clear_authentication_state()
Definition: Login.pb.h:1354
void set_type(const ::std::string &value)
Definition: Login.pb.h:707
int _cached_size_
Definition: Login.pb.h:588
inline::std::string * release_input_id()
Definition: Login.pb.h:978
::google::protobuf::uint32 _has_bits_[1]
Definition: Login.pb.h:587
void set_allocated_version(::std::string *version)
Definition: Login.pb.h:1296
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
FormInput & operator=(const FormInput &from)
Definition: Login.pb.h:94
static LoginResult * default_instance_
Definition: Login.pb.h:599
void set_allocated_url(::std::string *url)
Definition: Login.pb.h:1583
bool has_authentication_state() const
Definition: Login.pb.h:1345
::std::string * input_id_
Definition: Login.pb.h:352
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Login.pb.h:210
void set_url(const ::std::string &value)
Definition: Login.pb.h:1541
inline::std::string * mutable_platform_id()
Definition: Login.pb.h:1126
const ::std::string & value() const
Definition: Login.pb.h:1018
void clear_has_login_ticket()
Definition: Login.pb.h:1604
int _cached_size_
Definition: Login.pb.h:351
const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput > & inputs() const
Definition: Login.pb.h:912
void set_allocated_platform_id(::std::string *platform_id)
Definition: Login.pb.h:1144
Definition: Login.pb.h:47
inline::std::string * release_program_id()
Definition: Login.pb.h:1210
const FormType FormType_MAX
Definition: Login.pb.h:51
TC_SHARED_APIconst::google::protobuf::EnumDescriptor * AuthenticationState_descriptor()
Definition: message.h:165
inline::std::string * release_error_message()
Definition: Login.pb.h:1497
const ::std::string & input_id() const
Definition: Login.pb.h:942
bool has_type() const
Definition: Login.pb.h:868
void set_has_label()
Definition: Login.pb.h:767
inline::Battlenet::JSON::Login::FormInput * add_inputs()
Definition: Login.pb.h:907
void set_error_code(const ::std::string &value)
Definition: Login.pb.h:1389
bool has_version() const
Definition: Login.pb.h:1235
inline::std::string * release_label()
Definition: Login.pb.h:815
::std::string * platform_id_
Definition: Login.pb.h:464
void set_version(const ::std::string &value)
Definition: Login.pb.h:1254
void clear_program_id()
Definition: Login.pb.h:1168
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Login.pb.h:493
void set_has_authentication_state()
Definition: Login.pb.h:1348
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: Login.pb.h:348
::google::protobuf::uint32 _has_bits_[1]
Definition: Login.pb.h:462
void set_has_value()
Definition: Login.pb.h:1006
Definition: template_util.h:77
::std::string * error_code_
Definition: Login.pb.h:589
const ::std::string & FormType_Name(FormType value)
Definition: Login.pb.h:55
void clear_has_authentication_state()
Definition: Login.pb.h:1351
bool has_max_length() const
Definition: Login.pb.h:840
const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue > & inputs() const
Definition: Login.pb.h:1330
::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput > inputs_
Definition: Login.pb.h:266
::std::string * label_
Definition: Login.pb.h:187
void set_has_error_code()
Definition: Login.pb.h:1373
void clear_has_error_message()
Definition: Login.pb.h:1452
Definition: Login.pb.h:363
void set_has_type()
Definition: Login.pb.h:871
const ::std::string & version() const
Definition: Login.pb.h:1250
inline::Battlenet::JSON::Login::FormType type() const
Definition: Login.pb.h:881
int GetCachedSize() const
Definition: Login.pb.h:505
inline::std::string * release_error_code()
Definition: Login.pb.h:1421
void clear_type()
Definition: Login.pb.h:697
::std::string * error_message_
Definition: Login.pb.h:590
void clear_has_program_id()
Definition: Login.pb.h:1165
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Login.pb.h:489
void set_login_ticket(const ::std::string &value)
Definition: Login.pb.h:1617
Definition: message.h:150
void clear_value()
Definition: Login.pb.h:1012
bool has_url() const
Definition: Login.pb.h:1522
void set_has_error_message()
Definition: Login.pb.h:1449
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Login.pb.h:214
inline::Battlenet::JSON::Login::FormInputValue * add_inputs()
Definition: Login.pb.h:1325
void set_label(const ::std::string &value)
Definition: Login.pb.h:783
const ::std::string & type() const
Definition: Login.pb.h:703
const ::std::string & input_id() const
Definition: Login.pb.h:627
TC_SHARED_API bool AuthenticationState_IsValid(int value)
void clear_max_length()
Definition: Login.pb.h:849
Definition: generated_enum_reflection.h:55
void set_allocated_value(::std::string *value)
Definition: Login.pb.h:1064
uint32_t uint32
Definition: common.h:177
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: Login.pb.h:181
void set_allocated_input_id(::std::string *input_id)
Definition: Login.pb.h:673
#define TC_SHARED_API
Definition: Define.h:128
void set_allocated_type(::std::string *type)
Definition: Login.pb.h:749
int type_
Definition: Login.pb.h:267
void protobuf_AssignDesc_Login_2eproto()
void set_max_length(::google::protobuf::uint32 value)
Definition: Login.pb.h:857
const ::std::string & login_ticket() const
Definition: Login.pb.h:1613
::std::string * type_
Definition: Login.pb.h:186
inline::std::string * mutable_label()
Definition: Login.pb.h:807
void clear_type()
Definition: Login.pb.h:877
FormInputValue & operator=(const FormInputValue &from)
Definition: Login.pb.h:284
inline::std::string * mutable_url()
Definition: Login.pb.h:1565
inline::std::string * mutable_program_id()
Definition: Login.pb.h:1202
void set_type(::Battlenet::JSON::Login::FormType value)
Definition: Login.pb.h:885
const ::std::string & platform_id() const
Definition: Login.pb.h:1098
int _cached_size_
Definition: Login.pb.h:184
void clear_has_value()
Definition: Login.pb.h:1009
int inputs_size() const
Definition: Login.pb.h:1311
Definition: Login.pb.h:87
::google::protobuf::uint32 _has_bits_[1]
Definition: Login.pb.h:264
int GetCachedSize() const
Definition: Login.pb.h:226
FormInputs & operator=(const FormInputs &from)
Definition: Login.pb.h:205
void set_input_id(const ::std::string &value)
Definition: Login.pb.h:631
inline::google::protobuf::uint32 max_length() const
Definition: Login.pb.h:853
int _cached_size_
Definition: Login.pb.h:265
Definition: Login.pb.h:198
void set_has_platform_id()
Definition: Login.pb.h:1086
::std::string * login_ticket_
Definition: Login.pb.h:592
void clear_version()
Definition: Login.pb.h:1244
void clear_label()
Definition: Login.pb.h:773
const ::std::string & program_id() const
Definition: Login.pb.h:1174
void protobuf_ShutdownFile_Login_2eproto()
void set_authentication_state(::Battlenet::JSON::Login::AuthenticationState value)
Definition: Login.pb.h:1362
bool has_label() const
Definition: Login.pb.h:764
void set_has_input_id()
Definition: Login.pb.h:615
void clear_input_id()
Definition: Login.pb.h:936
::google::protobuf::uint32 _has_bits_[1]
Definition: Login.pb.h:183
inline::std::string * mutable_login_ticket()
Definition: Login.pb.h:1641
const int FormType_ARRAYSIZE
Definition: Login.pb.h:52
bool has_error_code() const
Definition: Login.pb.h:1370
LoginResult & operator=(const LoginResult &from)
Definition: Login.pb.h:484
void set_has_type()
Definition: Login.pb.h:691
bool AuthenticationState_Parse(const ::std::string &name, AuthenticationState *value)
Definition: Login.pb.h:80
static FormInputValue * default_instance_
Definition: Login.pb.h:359
bool has_type() const
Definition: Login.pb.h:688
inline::std::string * release_value()
Definition: Login.pb.h:1054
Definition: Login.pb.h:277
inline::std::string * release_type()
Definition: Login.pb.h:739
bool has_login_ticket() const
Definition: Login.pb.h:1598
inline::std::string * mutable_type()
Definition: Login.pb.h:731
int GetCachedSize() const
Definition: Login.pb.h:391
Definition: Login.pb.h:477
inline::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput > * mutable_inputs()
Definition: Login.pb.h:917
bool has_input_id() const
Definition: Login.pb.h:927
inline::std::string * mutable_input_id()
Definition: Login.pb.h:655
bool has_value() const
Definition: Login.pb.h:1003
const ::std::string & error_message() const
Definition: Login.pb.h:1461
Definition: BnetFileGenerator.h:47
inline::Battlenet::JSON::Login::AuthenticationState authentication_state() const
Definition: Login.pb.h:1358
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: Login.pb.h:262
const FieldDescriptor value
Definition: descriptor.h:1522
uint32_t uint32
Definition: g3dmath.h:168
const ::std::string & error_code() const
Definition: Login.pb.h:1385
void set_has_login_ticket()
Definition: Login.pb.h:1601
inline::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue > * mutable_inputs()
Definition: Login.pb.h:1335
TC_SHARED_API bool FormType_IsValid(int value)
const ::std::string & AuthenticationState_Name(AuthenticationState value)
Definition: Login.pb.h:76
void set_value(const ::std::string &value)
Definition: Login.pb.h:1022
void set_has_version()
Definition: Login.pb.h:1238
const ::std::string & url() const
Definition: Login.pb.h:1537
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: Login.pb.h:103
void set_platform_id(const ::std::string &value)
Definition: Login.pb.h:1102
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: Login.pb.h:289
const FormType FormType_MIN
Definition: Login.pb.h:50
void clear_has_platform_id()
Definition: Login.pb.h:1089
inline::std::string * mutable_error_code()
Definition: Login.pb.h:1413
void clear_has_max_length()
Definition: Login.pb.h:846
void clear_error_message()
Definition: Login.pb.h:1455
void set_has_program_id()
Definition: Login.pb.h:1162
int GetCachedSize() const
Definition: Login.pb.h:115
inline::std::string * mutable_version()
Definition: Login.pb.h:1278
const ::std::string & label() const
Definition: Login.pb.h:779
inline::std::string * release_version()
Definition: Login.pb.h:1286
inline::std::string * mutable_input_id()
Definition: Login.pb.h:970
Definition: RealmList.pb.h:30
void clear_has_version()
Definition: Login.pb.h:1241
void set_allocated_input_id(::std::string *input_id)
Definition: Login.pb.h:988
void set_allocated_label(::std::string *label)
Definition: Login.pb.h:825
inline::std::string * mutable_value()
Definition: Login.pb.h:1046
static FormInput * default_instance_
Definition: Login.pb.h:194
inline::std::string * release_input_id()
Definition: Login.pb.h:663
Definition: Login.pb.h:67
::std::string * input_id_
Definition: Login.pb.h:185
void set_has_input_id()
Definition: Login.pb.h:930