aboutsummaryrefslogtreecommitdiff
path: root/src/server/proto/Login
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-03-28 17:12:57 +0200
committerShauren <shauren.trinity@gmail.com>2016-03-28 17:12:57 +0200
commitdde620c402daf4ea8d132fb72a77eabc22f7a6d0 (patch)
tree7c12161d7a22915736b0c9a106de896eeb283399 /src/server/proto/Login
parent619669c6209441fc2fb5b483d553badee8c30ad5 (diff)
Core: Updated to 6.2.4
* Rewrite bnetserver for new authentication protocol
Diffstat (limited to 'src/server/proto/Login')
-rw-r--r--src/server/proto/Login/Login.pb.cc695
-rw-r--r--src/server/proto/Login/Login.pb.h1701
-rw-r--r--src/server/proto/Login/Login.proto48
3 files changed, 2444 insertions, 0 deletions
diff --git a/src/server/proto/Login/Login.pb.cc b/src/server/proto/Login/Login.pb.cc
new file mode 100644
index 00000000000..7e1cd22b1ec
--- /dev/null
+++ b/src/server/proto/Login/Login.pb.cc
@@ -0,0 +1,695 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Login.proto
+
+#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
+#include "Login.pb.h"
+
+#include <algorithm>
+#include <utility>
+
+#include <google/protobuf/stubs/common.h>
+#include <google/protobuf/stubs/once.h>
+#include <google/protobuf/io/coded_stream.h>
+#include <google/protobuf/wire_format_lite_inl.h>
+#include <google/protobuf/descriptor.h>
+#include <google/protobuf/generated_message_reflection.h>
+#include <google/protobuf/reflection_ops.h>
+#include <google/protobuf/wire_format.h>
+#include "Log.h"
+// @@protoc_insertion_point(includes)
+
+// Fix stupid windows.h included from Log.h->Common.h
+#ifdef SendMessage
+#undef SendMessage
+#endif
+
+namespace Battlenet {
+namespace JSON {
+namespace Login {
+
+namespace {
+
+const ::google::protobuf::Descriptor* FormInput_descriptor_ = NULL;
+const ::google::protobuf::internal::GeneratedMessageReflection*
+ FormInput_reflection_ = NULL;
+const ::google::protobuf::Descriptor* FormInputs_descriptor_ = NULL;
+const ::google::protobuf::internal::GeneratedMessageReflection*
+ FormInputs_reflection_ = NULL;
+const ::google::protobuf::Descriptor* FormInputValue_descriptor_ = NULL;
+const ::google::protobuf::internal::GeneratedMessageReflection*
+ FormInputValue_reflection_ = NULL;
+const ::google::protobuf::Descriptor* LoginForm_descriptor_ = NULL;
+const ::google::protobuf::internal::GeneratedMessageReflection*
+ LoginForm_reflection_ = NULL;
+const ::google::protobuf::Descriptor* LoginResult_descriptor_ = NULL;
+const ::google::protobuf::internal::GeneratedMessageReflection*
+ LoginResult_reflection_ = NULL;
+const ::google::protobuf::EnumDescriptor* FormType_descriptor_ = NULL;
+const ::google::protobuf::EnumDescriptor* AuthenticationState_descriptor_ = NULL;
+
+} // namespace
+
+
+void protobuf_AssignDesc_Login_2eproto() {
+ protobuf_AddDesc_Login_2eproto();
+ const ::google::protobuf::FileDescriptor* file =
+ ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
+ "Login.proto");
+ GOOGLE_CHECK(file != NULL);
+ FormInput_descriptor_ = file->message_type(0);
+ static const int FormInput_offsets_[4] = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, input_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, label_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, max_length_),
+ };
+ FormInput_reflection_ =
+ new ::google::protobuf::internal::GeneratedMessageReflection(
+ FormInput_descriptor_,
+ FormInput::default_instance_,
+ FormInput_offsets_,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, _has_bits_[0]),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, _unknown_fields_),
+ -1,
+ ::google::protobuf::DescriptorPool::generated_pool(),
+ ::google::protobuf::MessageFactory::generated_factory(),
+ sizeof(FormInput));
+ FormInputs_descriptor_ = file->message_type(1);
+ static const int FormInputs_offsets_[2] = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputs, type_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputs, inputs_),
+ };
+ FormInputs_reflection_ =
+ new ::google::protobuf::internal::GeneratedMessageReflection(
+ FormInputs_descriptor_,
+ FormInputs::default_instance_,
+ FormInputs_offsets_,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputs, _has_bits_[0]),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputs, _unknown_fields_),
+ -1,
+ ::google::protobuf::DescriptorPool::generated_pool(),
+ ::google::protobuf::MessageFactory::generated_factory(),
+ sizeof(FormInputs));
+ FormInputValue_descriptor_ = file->message_type(2);
+ static const int FormInputValue_offsets_[2] = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputValue, input_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputValue, value_),
+ };
+ FormInputValue_reflection_ =
+ new ::google::protobuf::internal::GeneratedMessageReflection(
+ FormInputValue_descriptor_,
+ FormInputValue::default_instance_,
+ FormInputValue_offsets_,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputValue, _has_bits_[0]),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputValue, _unknown_fields_),
+ -1,
+ ::google::protobuf::DescriptorPool::generated_pool(),
+ ::google::protobuf::MessageFactory::generated_factory(),
+ sizeof(FormInputValue));
+ LoginForm_descriptor_ = file->message_type(3);
+ static const int LoginForm_offsets_[4] = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, platform_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, program_id_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, version_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, inputs_),
+ };
+ LoginForm_reflection_ =
+ new ::google::protobuf::internal::GeneratedMessageReflection(
+ LoginForm_descriptor_,
+ LoginForm::default_instance_,
+ LoginForm_offsets_,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, _has_bits_[0]),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, _unknown_fields_),
+ -1,
+ ::google::protobuf::DescriptorPool::generated_pool(),
+ ::google::protobuf::MessageFactory::generated_factory(),
+ sizeof(LoginForm));
+ LoginResult_descriptor_ = file->message_type(4);
+ static const int LoginResult_offsets_[5] = {
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, authentication_state_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, error_code_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, error_message_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, url_),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, login_ticket_),
+ };
+ LoginResult_reflection_ =
+ new ::google::protobuf::internal::GeneratedMessageReflection(
+ LoginResult_descriptor_,
+ LoginResult::default_instance_,
+ LoginResult_offsets_,
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, _has_bits_[0]),
+ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, _unknown_fields_),
+ -1,
+ ::google::protobuf::DescriptorPool::generated_pool(),
+ ::google::protobuf::MessageFactory::generated_factory(),
+ sizeof(LoginResult));
+ FormType_descriptor_ = file->enum_type(0);
+ AuthenticationState_descriptor_ = file->enum_type(1);
+}
+
+namespace {
+
+GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
+inline void protobuf_AssignDescriptorsOnce() {
+ ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
+ &protobuf_AssignDesc_Login_2eproto);
+}
+
+void protobuf_RegisterTypes(const ::std::string&) {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
+ FormInput_descriptor_, &FormInput::default_instance());
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
+ FormInputs_descriptor_, &FormInputs::default_instance());
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
+ FormInputValue_descriptor_, &FormInputValue::default_instance());
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
+ LoginForm_descriptor_, &LoginForm::default_instance());
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
+ LoginResult_descriptor_, &LoginResult::default_instance());
+}
+
+} // namespace
+
+void protobuf_ShutdownFile_Login_2eproto() {
+ delete FormInput::default_instance_;
+ delete FormInput_reflection_;
+ delete FormInputs::default_instance_;
+ delete FormInputs_reflection_;
+ delete FormInputValue::default_instance_;
+ delete FormInputValue_reflection_;
+ delete LoginForm::default_instance_;
+ delete LoginForm_reflection_;
+ delete LoginResult::default_instance_;
+ delete LoginResult_reflection_;
+}
+
+void protobuf_AddDesc_Login_2eproto() {
+ static bool already_here = false;
+ if (already_here) return;
+ already_here = true;
+ GOOGLE_PROTOBUF_VERIFY_VERSION;
+
+ ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
+ "\n\013Login.proto\022\024Battlenet.JSON.Login\"N\n\tF"
+ "ormInput\022\020\n\010input_id\030\001 \002(\t\022\014\n\004type\030\002 \002(\t"
+ "\022\r\n\005label\030\003 \002(\t\022\022\n\nmax_length\030\004 \001(\r\"k\n\nF"
+ "ormInputs\022,\n\004type\030\001 \002(\0162\036.Battlenet.JSON"
+ ".Login.FormType\022/\n\006inputs\030\002 \003(\0132\037.Battle"
+ "net.JSON.Login.FormInput\"1\n\016FormInputVal"
+ "ue\022\020\n\010input_id\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\"{\n\tL"
+ "oginForm\022\023\n\013platform_id\030\001 \002(\t\022\022\n\nprogram"
+ "_id\030\002 \002(\t\022\017\n\007version\030\003 \002(\t\0224\n\006inputs\030\004 \003"
+ "(\0132$.Battlenet.JSON.Login.FormInputValue"
+ "\"\244\001\n\013LoginResult\022G\n\024authentication_state"
+ "\030\001 \002(\0162).Battlenet.JSON.Login.Authentica"
+ "tionState\022\022\n\nerror_code\030\002 \001(\t\022\025\n\rerror_m"
+ "essage\030\003 \001(\t\022\013\n\003url\030\004 \001(\t\022\024\n\014login_ticke"
+ "t\030\005 \001(\t*\032\n\010FormType\022\016\n\nLOGIN_FORM\020\001*H\n\023A"
+ "uthenticationState\022\t\n\005LOGIN\020\001\022\t\n\005LEGAL\020\002"
+ "\022\021\n\rAUTHENTICATOR\020\003\022\010\n\004DONE\020\004B\002H\002", 673);
+ ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
+ "Login.proto", &protobuf_RegisterTypes);
+ FormInput::default_instance_ = new FormInput();
+ FormInputs::default_instance_ = new FormInputs();
+ FormInputValue::default_instance_ = new FormInputValue();
+ LoginForm::default_instance_ = new LoginForm();
+ LoginResult::default_instance_ = new LoginResult();
+ FormInput::default_instance_->InitAsDefaultInstance();
+ FormInputs::default_instance_->InitAsDefaultInstance();
+ FormInputValue::default_instance_->InitAsDefaultInstance();
+ LoginForm::default_instance_->InitAsDefaultInstance();
+ LoginResult::default_instance_->InitAsDefaultInstance();
+ ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Login_2eproto);
+}
+
+// Force AddDescriptors() to be called at static initialization time.
+struct StaticDescriptorInitializer_Login_2eproto {
+ StaticDescriptorInitializer_Login_2eproto() {
+ protobuf_AddDesc_Login_2eproto();
+ }
+} static_descriptor_initializer_Login_2eproto_;
+const ::google::protobuf::EnumDescriptor* FormType_descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return FormType_descriptor_;
+}
+bool FormType_IsValid(int value) {
+ switch(value) {
+ case 1:
+ return true;
+ default:
+ return false;
+ }
+}
+
+const ::google::protobuf::EnumDescriptor* AuthenticationState_descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return AuthenticationState_descriptor_;
+}
+bool AuthenticationState_IsValid(int value) {
+ switch(value) {
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ return true;
+ default:
+ return false;
+ }
+}
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int FormInput::kInputIdFieldNumber;
+const int FormInput::kTypeFieldNumber;
+const int FormInput::kLabelFieldNumber;
+const int FormInput::kMaxLengthFieldNumber;
+#endif // !_MSC_VER
+
+FormInput::FormInput()
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.FormInput)
+}
+
+void FormInput::InitAsDefaultInstance() {
+}
+
+FormInput::FormInput(const FormInput& from)
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ MergeFrom(from);
+ // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.FormInput)
+}
+
+void FormInput::SharedCtor() {
+ ::google::protobuf::internal::GetEmptyString();
+ _cached_size_ = 0;
+ input_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ label_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ max_length_ = 0u;
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+FormInput::~FormInput() {
+ // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.FormInput)
+ SharedDtor();
+}
+
+void FormInput::SharedDtor() {
+ if (input_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete input_id_;
+ }
+ if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete type_;
+ }
+ if (label_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete label_;
+ }
+ if (this != default_instance_) {
+ }
+}
+
+void FormInput::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* FormInput::descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return FormInput_descriptor_;
+}
+
+const FormInput& FormInput::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto();
+ return *default_instance_;
+}
+
+FormInput* FormInput::default_instance_ = NULL;
+
+FormInput* FormInput::New() const {
+ return new FormInput;
+}
+
+void FormInput::Swap(FormInput* other) {
+ if (other != this) {
+ GetReflection()->Swap(this, other);}
+}
+
+::google::protobuf::Metadata FormInput::GetMetadata() const {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::Metadata metadata;
+ metadata.descriptor = FormInput_descriptor_;
+ metadata.reflection = FormInput_reflection_;
+ return metadata;
+}
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int FormInputs::kTypeFieldNumber;
+const int FormInputs::kInputsFieldNumber;
+#endif // !_MSC_VER
+
+FormInputs::FormInputs()
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.FormInputs)
+}
+
+void FormInputs::InitAsDefaultInstance() {
+}
+
+FormInputs::FormInputs(const FormInputs& from)
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ MergeFrom(from);
+ // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.FormInputs)
+}
+
+void FormInputs::SharedCtor() {
+ _cached_size_ = 0;
+ type_ = 1;
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+FormInputs::~FormInputs() {
+ // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.FormInputs)
+ SharedDtor();
+}
+
+void FormInputs::SharedDtor() {
+ if (this != default_instance_) {
+ }
+}
+
+void FormInputs::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* FormInputs::descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return FormInputs_descriptor_;
+}
+
+const FormInputs& FormInputs::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto();
+ return *default_instance_;
+}
+
+FormInputs* FormInputs::default_instance_ = NULL;
+
+FormInputs* FormInputs::New() const {
+ return new FormInputs;
+}
+
+void FormInputs::Swap(FormInputs* other) {
+ if (other != this) {
+ GetReflection()->Swap(this, other);}
+}
+
+::google::protobuf::Metadata FormInputs::GetMetadata() const {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::Metadata metadata;
+ metadata.descriptor = FormInputs_descriptor_;
+ metadata.reflection = FormInputs_reflection_;
+ return metadata;
+}
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int FormInputValue::kInputIdFieldNumber;
+const int FormInputValue::kValueFieldNumber;
+#endif // !_MSC_VER
+
+FormInputValue::FormInputValue()
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.FormInputValue)
+}
+
+void FormInputValue::InitAsDefaultInstance() {
+}
+
+FormInputValue::FormInputValue(const FormInputValue& from)
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ MergeFrom(from);
+ // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.FormInputValue)
+}
+
+void FormInputValue::SharedCtor() {
+ ::google::protobuf::internal::GetEmptyString();
+ _cached_size_ = 0;
+ input_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+FormInputValue::~FormInputValue() {
+ // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.FormInputValue)
+ SharedDtor();
+}
+
+void FormInputValue::SharedDtor() {
+ if (input_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete input_id_;
+ }
+ if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete value_;
+ }
+ if (this != default_instance_) {
+ }
+}
+
+void FormInputValue::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* FormInputValue::descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return FormInputValue_descriptor_;
+}
+
+const FormInputValue& FormInputValue::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto();
+ return *default_instance_;
+}
+
+FormInputValue* FormInputValue::default_instance_ = NULL;
+
+FormInputValue* FormInputValue::New() const {
+ return new FormInputValue;
+}
+
+void FormInputValue::Swap(FormInputValue* other) {
+ if (other != this) {
+ GetReflection()->Swap(this, other);}
+}
+
+::google::protobuf::Metadata FormInputValue::GetMetadata() const {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::Metadata metadata;
+ metadata.descriptor = FormInputValue_descriptor_;
+ metadata.reflection = FormInputValue_reflection_;
+ return metadata;
+}
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int LoginForm::kPlatformIdFieldNumber;
+const int LoginForm::kProgramIdFieldNumber;
+const int LoginForm::kVersionFieldNumber;
+const int LoginForm::kInputsFieldNumber;
+#endif // !_MSC_VER
+
+LoginForm::LoginForm()
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.LoginForm)
+}
+
+void LoginForm::InitAsDefaultInstance() {
+}
+
+LoginForm::LoginForm(const LoginForm& from)
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ MergeFrom(from);
+ // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.LoginForm)
+}
+
+void LoginForm::SharedCtor() {
+ ::google::protobuf::internal::GetEmptyString();
+ _cached_size_ = 0;
+ platform_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ program_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+LoginForm::~LoginForm() {
+ // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.LoginForm)
+ SharedDtor();
+}
+
+void LoginForm::SharedDtor() {
+ if (platform_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete platform_id_;
+ }
+ if (program_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete program_id_;
+ }
+ if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete version_;
+ }
+ if (this != default_instance_) {
+ }
+}
+
+void LoginForm::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* LoginForm::descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return LoginForm_descriptor_;
+}
+
+const LoginForm& LoginForm::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto();
+ return *default_instance_;
+}
+
+LoginForm* LoginForm::default_instance_ = NULL;
+
+LoginForm* LoginForm::New() const {
+ return new LoginForm;
+}
+
+void LoginForm::Swap(LoginForm* other) {
+ if (other != this) {
+ GetReflection()->Swap(this, other);}
+}
+
+::google::protobuf::Metadata LoginForm::GetMetadata() const {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::Metadata metadata;
+ metadata.descriptor = LoginForm_descriptor_;
+ metadata.reflection = LoginForm_reflection_;
+ return metadata;
+}
+
+
+// ===================================================================
+
+#ifndef _MSC_VER
+const int LoginResult::kAuthenticationStateFieldNumber;
+const int LoginResult::kErrorCodeFieldNumber;
+const int LoginResult::kErrorMessageFieldNumber;
+const int LoginResult::kUrlFieldNumber;
+const int LoginResult::kLoginTicketFieldNumber;
+#endif // !_MSC_VER
+
+LoginResult::LoginResult()
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.LoginResult)
+}
+
+void LoginResult::InitAsDefaultInstance() {
+}
+
+LoginResult::LoginResult(const LoginResult& from)
+ : ::google::protobuf::Message() {
+ SharedCtor();
+ MergeFrom(from);
+ // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.LoginResult)
+}
+
+void LoginResult::SharedCtor() {
+ ::google::protobuf::internal::GetEmptyString();
+ _cached_size_ = 0;
+ authentication_state_ = 1;
+ error_code_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ login_ticket_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ ::memset(_has_bits_, 0, sizeof(_has_bits_));
+}
+
+LoginResult::~LoginResult() {
+ // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.LoginResult)
+ SharedDtor();
+}
+
+void LoginResult::SharedDtor() {
+ if (error_code_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete error_code_;
+ }
+ if (error_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete error_message_;
+ }
+ if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete url_;
+ }
+ if (login_ticket_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete login_ticket_;
+ }
+ if (this != default_instance_) {
+ }
+}
+
+void LoginResult::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* LoginResult::descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return LoginResult_descriptor_;
+}
+
+const LoginResult& LoginResult::default_instance() {
+ if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto();
+ return *default_instance_;
+}
+
+LoginResult* LoginResult::default_instance_ = NULL;
+
+LoginResult* LoginResult::New() const {
+ return new LoginResult;
+}
+
+void LoginResult::Swap(LoginResult* other) {
+ if (other != this) {
+ GetReflection()->Swap(this, other);}
+}
+
+::google::protobuf::Metadata LoginResult::GetMetadata() const {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::Metadata metadata;
+ metadata.descriptor = LoginResult_descriptor_;
+ metadata.reflection = LoginResult_reflection_;
+ return metadata;
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace Login
+} // namespace JSON
+} // namespace Battlenet
+
+// @@protoc_insertion_point(global_scope)
diff --git a/src/server/proto/Login/Login.pb.h b/src/server/proto/Login/Login.pb.h
new file mode 100644
index 00000000000..1f14385afde
--- /dev/null
+++ b/src/server/proto/Login/Login.pb.h
@@ -0,0 +1,1701 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: Login.proto
+
+#ifndef PROTOBUF_Login_2eproto__INCLUDED
+#define PROTOBUF_Login_2eproto__INCLUDED
+
+#include <string>
+
+#include <google/protobuf/stubs/common.h>
+
+#if GOOGLE_PROTOBUF_VERSION < 2006000
+#error This file was generated by a newer version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please update
+#error your headers.
+#endif
+#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
+#error This file was generated by an older version of protoc which is
+#error incompatible with your Protocol Buffer headers. Please
+#error regenerate this file with a newer version of protoc.
+#endif
+
+#include <google/protobuf/generated_message_util.h>
+#include <google/protobuf/message.h>
+#include <google/protobuf/repeated_field.h>
+#include <google/protobuf/extension_set.h>
+#include <google/protobuf/generated_enum_reflection.h>
+#include <google/protobuf/unknown_field_set.h>
+#include "Define.h" // for TC_SHARED_API
+// @@protoc_insertion_point(includes)
+
+namespace Battlenet {
+namespace JSON {
+namespace Login {
+
+// Internal implementation detail -- do not call these.
+void TC_SHARED_API protobuf_AddDesc_Login_2eproto();
+void protobuf_AssignDesc_Login_2eproto();
+void protobuf_ShutdownFile_Login_2eproto();
+
+class FormInput;
+class FormInputs;
+class FormInputValue;
+class LoginForm;
+class LoginResult;
+
+enum FormType {
+ LOGIN_FORM = 1
+};
+TC_SHARED_API bool FormType_IsValid(int value);
+const FormType FormType_MIN = LOGIN_FORM;
+const FormType FormType_MAX = LOGIN_FORM;
+const int FormType_ARRAYSIZE = FormType_MAX + 1;
+
+TC_SHARED_API const ::google::protobuf::EnumDescriptor* FormType_descriptor();
+inline const ::std::string& FormType_Name(FormType value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ FormType_descriptor(), value);
+}
+inline bool FormType_Parse(
+ const ::std::string& name, FormType* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<FormType>(
+ FormType_descriptor(), name, value);
+}
+enum AuthenticationState {
+ LOGIN = 1,
+ LEGAL = 2,
+ AUTHENTICATOR = 3,
+ DONE = 4
+};
+TC_SHARED_API bool AuthenticationState_IsValid(int value);
+const AuthenticationState AuthenticationState_MIN = LOGIN;
+const AuthenticationState AuthenticationState_MAX = DONE;
+const int AuthenticationState_ARRAYSIZE = AuthenticationState_MAX + 1;
+
+TC_SHARED_API const ::google::protobuf::EnumDescriptor* AuthenticationState_descriptor();
+inline const ::std::string& AuthenticationState_Name(AuthenticationState value) {
+ return ::google::protobuf::internal::NameOfEnum(
+ AuthenticationState_descriptor(), value);
+}
+inline bool AuthenticationState_Parse(
+ const ::std::string& name, AuthenticationState* value) {
+ return ::google::protobuf::internal::ParseNamedEnum<AuthenticationState>(
+ AuthenticationState_descriptor(), name, value);
+}
+// ===================================================================
+
+class TC_SHARED_API FormInput : public ::google::protobuf::Message {
+ public:
+ FormInput();
+ virtual ~FormInput();
+
+ FormInput(const FormInput& from);
+
+ inline FormInput& operator=(const FormInput& from) {
+ CopyFrom(from);
+ return *this;
+ }
+
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+ return _unknown_fields_;
+ }
+
+ inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ return &_unknown_fields_;
+ }
+
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const FormInput& default_instance();
+
+ void Swap(FormInput* other);
+
+ // implements Message ----------------------------------------------
+
+ FormInput* New() const;
+ int GetCachedSize() const { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ public:
+ ::google::protobuf::Metadata GetMetadata() const;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // required string input_id = 1;
+ inline bool has_input_id() const;
+ inline void clear_input_id();
+ static const int kInputIdFieldNumber = 1;
+ inline const ::std::string& input_id() const;
+ inline void set_input_id(const ::std::string& value);
+ inline void set_input_id(const char* value);
+ inline void set_input_id(const char* value, size_t size);
+ inline ::std::string* mutable_input_id();
+ inline ::std::string* release_input_id();
+ inline void set_allocated_input_id(::std::string* input_id);
+
+ // required string type = 2;
+ inline bool has_type() const;
+ inline void clear_type();
+ static const int kTypeFieldNumber = 2;
+ inline const ::std::string& type() const;
+ inline void set_type(const ::std::string& value);
+ inline void set_type(const char* value);
+ inline void set_type(const char* value, size_t size);
+ inline ::std::string* mutable_type();
+ inline ::std::string* release_type();
+ inline void set_allocated_type(::std::string* type);
+
+ // required string label = 3;
+ inline bool has_label() const;
+ inline void clear_label();
+ static const int kLabelFieldNumber = 3;
+ inline const ::std::string& label() const;
+ inline void set_label(const ::std::string& value);
+ inline void set_label(const char* value);
+ inline void set_label(const char* value, size_t size);
+ inline ::std::string* mutable_label();
+ inline ::std::string* release_label();
+ inline void set_allocated_label(::std::string* label);
+
+ // optional uint32 max_length = 4;
+ inline bool has_max_length() const;
+ inline void clear_max_length();
+ static const int kMaxLengthFieldNumber = 4;
+ inline ::google::protobuf::uint32 max_length() const;
+ inline void set_max_length(::google::protobuf::uint32 value);
+
+ // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.FormInput)
+ private:
+ inline void set_has_input_id();
+ inline void clear_has_input_id();
+ inline void set_has_type();
+ inline void clear_has_type();
+ inline void set_has_label();
+ inline void clear_has_label();
+ inline void set_has_max_length();
+ inline void clear_has_max_length();
+
+ ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+ ::google::protobuf::uint32 _has_bits_[1];
+ mutable int _cached_size_;
+ ::std::string* input_id_;
+ ::std::string* type_;
+ ::std::string* label_;
+ ::google::protobuf::uint32 max_length_;
+ friend void TC_SHARED_API protobuf_AddDesc_Login_2eproto();
+ friend void protobuf_AssignDesc_Login_2eproto();
+ friend void protobuf_ShutdownFile_Login_2eproto();
+
+ void InitAsDefaultInstance();
+ static FormInput* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class TC_SHARED_API FormInputs : public ::google::protobuf::Message {
+ public:
+ FormInputs();
+ virtual ~FormInputs();
+
+ FormInputs(const FormInputs& from);
+
+ inline FormInputs& operator=(const FormInputs& from) {
+ CopyFrom(from);
+ return *this;
+ }
+
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+ return _unknown_fields_;
+ }
+
+ inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ return &_unknown_fields_;
+ }
+
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const FormInputs& default_instance();
+
+ void Swap(FormInputs* other);
+
+ // implements Message ----------------------------------------------
+
+ FormInputs* New() const;
+ int GetCachedSize() const { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ public:
+ ::google::protobuf::Metadata GetMetadata() const;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // required .Battlenet.JSON.Login.FormType type = 1;
+ inline bool has_type() const;
+ inline void clear_type();
+ static const int kTypeFieldNumber = 1;
+ inline ::Battlenet::JSON::Login::FormType type() const;
+ inline void set_type(::Battlenet::JSON::Login::FormType value);
+
+ // repeated .Battlenet.JSON.Login.FormInput inputs = 2;
+ inline int inputs_size() const;
+ inline void clear_inputs();
+ static const int kInputsFieldNumber = 2;
+ inline const ::Battlenet::JSON::Login::FormInput& inputs(int index) const;
+ inline ::Battlenet::JSON::Login::FormInput* mutable_inputs(int index);
+ inline ::Battlenet::JSON::Login::FormInput* add_inputs();
+ inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >&
+ inputs() const;
+ inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >*
+ mutable_inputs();
+
+ // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.FormInputs)
+ private:
+ inline void set_has_type();
+ inline void clear_has_type();
+
+ ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+ ::google::protobuf::uint32 _has_bits_[1];
+ mutable int _cached_size_;
+ ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput > inputs_;
+ int type_;
+ friend void TC_SHARED_API protobuf_AddDesc_Login_2eproto();
+ friend void protobuf_AssignDesc_Login_2eproto();
+ friend void protobuf_ShutdownFile_Login_2eproto();
+
+ void InitAsDefaultInstance();
+ static FormInputs* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class TC_SHARED_API FormInputValue : public ::google::protobuf::Message {
+ public:
+ FormInputValue();
+ virtual ~FormInputValue();
+
+ FormInputValue(const FormInputValue& from);
+
+ inline FormInputValue& operator=(const FormInputValue& from) {
+ CopyFrom(from);
+ return *this;
+ }
+
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+ return _unknown_fields_;
+ }
+
+ inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ return &_unknown_fields_;
+ }
+
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const FormInputValue& default_instance();
+
+ void Swap(FormInputValue* other);
+
+ // implements Message ----------------------------------------------
+
+ FormInputValue* New() const;
+ int GetCachedSize() const { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ public:
+ ::google::protobuf::Metadata GetMetadata() const;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // required string input_id = 1;
+ inline bool has_input_id() const;
+ inline void clear_input_id();
+ static const int kInputIdFieldNumber = 1;
+ inline const ::std::string& input_id() const;
+ inline void set_input_id(const ::std::string& value);
+ inline void set_input_id(const char* value);
+ inline void set_input_id(const char* value, size_t size);
+ inline ::std::string* mutable_input_id();
+ inline ::std::string* release_input_id();
+ inline void set_allocated_input_id(::std::string* input_id);
+
+ // required string value = 2;
+ inline bool has_value() const;
+ inline void clear_value();
+ static const int kValueFieldNumber = 2;
+ inline const ::std::string& value() const;
+ inline void set_value(const ::std::string& value);
+ inline void set_value(const char* value);
+ inline void set_value(const char* value, size_t size);
+ inline ::std::string* mutable_value();
+ inline ::std::string* release_value();
+ inline void set_allocated_value(::std::string* value);
+
+ // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.FormInputValue)
+ private:
+ inline void set_has_input_id();
+ inline void clear_has_input_id();
+ inline void set_has_value();
+ inline void clear_has_value();
+
+ ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+ ::google::protobuf::uint32 _has_bits_[1];
+ mutable int _cached_size_;
+ ::std::string* input_id_;
+ ::std::string* value_;
+ friend void TC_SHARED_API protobuf_AddDesc_Login_2eproto();
+ friend void protobuf_AssignDesc_Login_2eproto();
+ friend void protobuf_ShutdownFile_Login_2eproto();
+
+ void InitAsDefaultInstance();
+ static FormInputValue* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class TC_SHARED_API LoginForm : public ::google::protobuf::Message {
+ public:
+ LoginForm();
+ virtual ~LoginForm();
+
+ LoginForm(const LoginForm& from);
+
+ inline LoginForm& operator=(const LoginForm& from) {
+ CopyFrom(from);
+ return *this;
+ }
+
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+ return _unknown_fields_;
+ }
+
+ inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ return &_unknown_fields_;
+ }
+
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const LoginForm& default_instance();
+
+ void Swap(LoginForm* other);
+
+ // implements Message ----------------------------------------------
+
+ LoginForm* New() const;
+ int GetCachedSize() const { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ public:
+ ::google::protobuf::Metadata GetMetadata() const;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // required string platform_id = 1;
+ inline bool has_platform_id() const;
+ inline void clear_platform_id();
+ static const int kPlatformIdFieldNumber = 1;
+ inline const ::std::string& platform_id() const;
+ inline void set_platform_id(const ::std::string& value);
+ inline void set_platform_id(const char* value);
+ inline void set_platform_id(const char* value, size_t size);
+ inline ::std::string* mutable_platform_id();
+ inline ::std::string* release_platform_id();
+ inline void set_allocated_platform_id(::std::string* platform_id);
+
+ // required string program_id = 2;
+ inline bool has_program_id() const;
+ inline void clear_program_id();
+ static const int kProgramIdFieldNumber = 2;
+ inline const ::std::string& program_id() const;
+ inline void set_program_id(const ::std::string& value);
+ inline void set_program_id(const char* value);
+ inline void set_program_id(const char* value, size_t size);
+ inline ::std::string* mutable_program_id();
+ inline ::std::string* release_program_id();
+ inline void set_allocated_program_id(::std::string* program_id);
+
+ // required string version = 3;
+ inline bool has_version() const;
+ inline void clear_version();
+ static const int kVersionFieldNumber = 3;
+ inline const ::std::string& version() const;
+ inline void set_version(const ::std::string& value);
+ inline void set_version(const char* value);
+ inline void set_version(const char* value, size_t size);
+ inline ::std::string* mutable_version();
+ inline ::std::string* release_version();
+ inline void set_allocated_version(::std::string* version);
+
+ // repeated .Battlenet.JSON.Login.FormInputValue inputs = 4;
+ inline int inputs_size() const;
+ inline void clear_inputs();
+ static const int kInputsFieldNumber = 4;
+ inline const ::Battlenet::JSON::Login::FormInputValue& inputs(int index) const;
+ inline ::Battlenet::JSON::Login::FormInputValue* mutable_inputs(int index);
+ inline ::Battlenet::JSON::Login::FormInputValue* add_inputs();
+ inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >&
+ inputs() const;
+ inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >*
+ mutable_inputs();
+
+ // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.LoginForm)
+ private:
+ inline void set_has_platform_id();
+ inline void clear_has_platform_id();
+ inline void set_has_program_id();
+ inline void clear_has_program_id();
+ inline void set_has_version();
+ inline void clear_has_version();
+
+ ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+ ::google::protobuf::uint32 _has_bits_[1];
+ mutable int _cached_size_;
+ ::std::string* platform_id_;
+ ::std::string* program_id_;
+ ::std::string* version_;
+ ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue > inputs_;
+ friend void TC_SHARED_API protobuf_AddDesc_Login_2eproto();
+ friend void protobuf_AssignDesc_Login_2eproto();
+ friend void protobuf_ShutdownFile_Login_2eproto();
+
+ void InitAsDefaultInstance();
+ static LoginForm* default_instance_;
+};
+// -------------------------------------------------------------------
+
+class TC_SHARED_API LoginResult : public ::google::protobuf::Message {
+ public:
+ LoginResult();
+ virtual ~LoginResult();
+
+ LoginResult(const LoginResult& from);
+
+ inline LoginResult& operator=(const LoginResult& from) {
+ CopyFrom(from);
+ return *this;
+ }
+
+ inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
+ return _unknown_fields_;
+ }
+
+ inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
+ return &_unknown_fields_;
+ }
+
+ static const ::google::protobuf::Descriptor* descriptor();
+ static const LoginResult& default_instance();
+
+ void Swap(LoginResult* other);
+
+ // implements Message ----------------------------------------------
+
+ LoginResult* New() const;
+ int GetCachedSize() const { return _cached_size_; }
+ private:
+ void SharedCtor();
+ void SharedDtor();
+ void SetCachedSize(int size) const;
+ public:
+ ::google::protobuf::Metadata GetMetadata() const;
+
+ // nested types ----------------------------------------------------
+
+ // accessors -------------------------------------------------------
+
+ // required .Battlenet.JSON.Login.AuthenticationState authentication_state = 1;
+ inline bool has_authentication_state() const;
+ inline void clear_authentication_state();
+ static const int kAuthenticationStateFieldNumber = 1;
+ inline ::Battlenet::JSON::Login::AuthenticationState authentication_state() const;
+ inline void set_authentication_state(::Battlenet::JSON::Login::AuthenticationState value);
+
+ // optional string error_code = 2;
+ inline bool has_error_code() const;
+ inline void clear_error_code();
+ static const int kErrorCodeFieldNumber = 2;
+ inline const ::std::string& error_code() const;
+ inline void set_error_code(const ::std::string& value);
+ inline void set_error_code(const char* value);
+ inline void set_error_code(const char* value, size_t size);
+ inline ::std::string* mutable_error_code();
+ inline ::std::string* release_error_code();
+ inline void set_allocated_error_code(::std::string* error_code);
+
+ // optional string error_message = 3;
+ inline bool has_error_message() const;
+ inline void clear_error_message();
+ static const int kErrorMessageFieldNumber = 3;
+ inline const ::std::string& error_message() const;
+ inline void set_error_message(const ::std::string& value);
+ inline void set_error_message(const char* value);
+ inline void set_error_message(const char* value, size_t size);
+ inline ::std::string* mutable_error_message();
+ inline ::std::string* release_error_message();
+ inline void set_allocated_error_message(::std::string* error_message);
+
+ // optional string url = 4;
+ inline bool has_url() const;
+ inline void clear_url();
+ static const int kUrlFieldNumber = 4;
+ inline const ::std::string& url() const;
+ inline void set_url(const ::std::string& value);
+ inline void set_url(const char* value);
+ inline void set_url(const char* value, size_t size);
+ inline ::std::string* mutable_url();
+ inline ::std::string* release_url();
+ inline void set_allocated_url(::std::string* url);
+
+ // optional string login_ticket = 5;
+ inline bool has_login_ticket() const;
+ inline void clear_login_ticket();
+ static const int kLoginTicketFieldNumber = 5;
+ inline const ::std::string& login_ticket() const;
+ inline void set_login_ticket(const ::std::string& value);
+ inline void set_login_ticket(const char* value);
+ inline void set_login_ticket(const char* value, size_t size);
+ inline ::std::string* mutable_login_ticket();
+ inline ::std::string* release_login_ticket();
+ inline void set_allocated_login_ticket(::std::string* login_ticket);
+
+ // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.LoginResult)
+ private:
+ inline void set_has_authentication_state();
+ inline void clear_has_authentication_state();
+ inline void set_has_error_code();
+ inline void clear_has_error_code();
+ inline void set_has_error_message();
+ inline void clear_has_error_message();
+ inline void set_has_url();
+ inline void clear_has_url();
+ inline void set_has_login_ticket();
+ inline void clear_has_login_ticket();
+
+ ::google::protobuf::UnknownFieldSet _unknown_fields_;
+
+ ::google::protobuf::uint32 _has_bits_[1];
+ mutable int _cached_size_;
+ ::std::string* error_code_;
+ ::std::string* error_message_;
+ ::std::string* url_;
+ ::std::string* login_ticket_;
+ int authentication_state_;
+ friend void TC_SHARED_API protobuf_AddDesc_Login_2eproto();
+ friend void protobuf_AssignDesc_Login_2eproto();
+ friend void protobuf_ShutdownFile_Login_2eproto();
+
+ void InitAsDefaultInstance();
+ static LoginResult* default_instance_;
+};
+// ===================================================================
+
+
+// ===================================================================
+
+
+// ===================================================================
+
+// FormInput
+
+// required string input_id = 1;
+inline bool FormInput::has_input_id() const {
+ return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void FormInput::set_has_input_id() {
+ _has_bits_[0] |= 0x00000001u;
+}
+inline void FormInput::clear_has_input_id() {
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline void FormInput::clear_input_id() {
+ if (input_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_->clear();
+ }
+ clear_has_input_id();
+}
+inline const ::std::string& FormInput::input_id() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.input_id)
+ return *input_id_;
+}
+inline void FormInput::set_input_id(const ::std::string& value) {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ input_id_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.input_id)
+}
+inline void FormInput::set_input_id(const char* value) {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ input_id_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInput.input_id)
+}
+inline void FormInput::set_input_id(const char* value, size_t size) {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ input_id_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInput.input_id)
+}
+inline ::std::string* FormInput::mutable_input_id() {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInput.input_id)
+ return input_id_;
+}
+inline ::std::string* FormInput::release_input_id() {
+ clear_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = input_id_;
+ input_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void FormInput::set_allocated_input_id(::std::string* input_id) {
+ if (input_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete input_id_;
+ }
+ if (input_id) {
+ set_has_input_id();
+ input_id_ = input_id;
+ } else {
+ clear_has_input_id();
+ input_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInput.input_id)
+}
+
+// required string type = 2;
+inline bool FormInput::has_type() const {
+ return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void FormInput::set_has_type() {
+ _has_bits_[0] |= 0x00000002u;
+}
+inline void FormInput::clear_has_type() {
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline void FormInput::clear_type() {
+ if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ type_->clear();
+ }
+ clear_has_type();
+}
+inline const ::std::string& FormInput::type() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.type)
+ return *type_;
+}
+inline void FormInput::set_type(const ::std::string& value) {
+ set_has_type();
+ if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ type_ = new ::std::string;
+ }
+ type_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.type)
+}
+inline void FormInput::set_type(const char* value) {
+ set_has_type();
+ if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ type_ = new ::std::string;
+ }
+ type_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInput.type)
+}
+inline void FormInput::set_type(const char* value, size_t size) {
+ set_has_type();
+ if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ type_ = new ::std::string;
+ }
+ type_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInput.type)
+}
+inline ::std::string* FormInput::mutable_type() {
+ set_has_type();
+ if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ type_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInput.type)
+ return type_;
+}
+inline ::std::string* FormInput::release_type() {
+ clear_has_type();
+ if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = type_;
+ type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void FormInput::set_allocated_type(::std::string* type) {
+ if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete type_;
+ }
+ if (type) {
+ set_has_type();
+ type_ = type;
+ } else {
+ clear_has_type();
+ type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInput.type)
+}
+
+// required string label = 3;
+inline bool FormInput::has_label() const {
+ return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void FormInput::set_has_label() {
+ _has_bits_[0] |= 0x00000004u;
+}
+inline void FormInput::clear_has_label() {
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline void FormInput::clear_label() {
+ if (label_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ label_->clear();
+ }
+ clear_has_label();
+}
+inline const ::std::string& FormInput::label() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.label)
+ return *label_;
+}
+inline void FormInput::set_label(const ::std::string& value) {
+ set_has_label();
+ if (label_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ label_ = new ::std::string;
+ }
+ label_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.label)
+}
+inline void FormInput::set_label(const char* value) {
+ set_has_label();
+ if (label_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ label_ = new ::std::string;
+ }
+ label_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInput.label)
+}
+inline void FormInput::set_label(const char* value, size_t size) {
+ set_has_label();
+ if (label_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ label_ = new ::std::string;
+ }
+ label_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInput.label)
+}
+inline ::std::string* FormInput::mutable_label() {
+ set_has_label();
+ if (label_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ label_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInput.label)
+ return label_;
+}
+inline ::std::string* FormInput::release_label() {
+ clear_has_label();
+ if (label_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = label_;
+ label_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void FormInput::set_allocated_label(::std::string* label) {
+ if (label_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete label_;
+ }
+ if (label) {
+ set_has_label();
+ label_ = label;
+ } else {
+ clear_has_label();
+ label_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInput.label)
+}
+
+// optional uint32 max_length = 4;
+inline bool FormInput::has_max_length() const {
+ return (_has_bits_[0] & 0x00000008u) != 0;
+}
+inline void FormInput::set_has_max_length() {
+ _has_bits_[0] |= 0x00000008u;
+}
+inline void FormInput::clear_has_max_length() {
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline void FormInput::clear_max_length() {
+ max_length_ = 0u;
+ clear_has_max_length();
+}
+inline ::google::protobuf::uint32 FormInput::max_length() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInput.max_length)
+ return max_length_;
+}
+inline void FormInput::set_max_length(::google::protobuf::uint32 value) {
+ set_has_max_length();
+ max_length_ = value;
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInput.max_length)
+}
+
+// -------------------------------------------------------------------
+
+// FormInputs
+
+// required .Battlenet.JSON.Login.FormType type = 1;
+inline bool FormInputs::has_type() const {
+ return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void FormInputs::set_has_type() {
+ _has_bits_[0] |= 0x00000001u;
+}
+inline void FormInputs::clear_has_type() {
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline void FormInputs::clear_type() {
+ type_ = 1;
+ clear_has_type();
+}
+inline ::Battlenet::JSON::Login::FormType FormInputs::type() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputs.type)
+ return static_cast< ::Battlenet::JSON::Login::FormType >(type_);
+}
+inline void FormInputs::set_type(::Battlenet::JSON::Login::FormType value) {
+ assert(::Battlenet::JSON::Login::FormType_IsValid(value));
+ set_has_type();
+ type_ = value;
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInputs.type)
+}
+
+// repeated .Battlenet.JSON.Login.FormInput inputs = 2;
+inline int FormInputs::inputs_size() const {
+ return inputs_.size();
+}
+inline void FormInputs::clear_inputs() {
+ inputs_.Clear();
+}
+inline const ::Battlenet::JSON::Login::FormInput& FormInputs::inputs(int index) const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputs.inputs)
+ return inputs_.Get(index);
+}
+inline ::Battlenet::JSON::Login::FormInput* FormInputs::mutable_inputs(int index) {
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInputs.inputs)
+ return inputs_.Mutable(index);
+}
+inline ::Battlenet::JSON::Login::FormInput* FormInputs::add_inputs() {
+ // @@protoc_insertion_point(field_add:Battlenet.JSON.Login.FormInputs.inputs)
+ return inputs_.Add();
+}
+inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >&
+FormInputs::inputs() const {
+ // @@protoc_insertion_point(field_list:Battlenet.JSON.Login.FormInputs.inputs)
+ return inputs_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInput >*
+FormInputs::mutable_inputs() {
+ // @@protoc_insertion_point(field_mutable_list:Battlenet.JSON.Login.FormInputs.inputs)
+ return &inputs_;
+}
+
+// -------------------------------------------------------------------
+
+// FormInputValue
+
+// required string input_id = 1;
+inline bool FormInputValue::has_input_id() const {
+ return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void FormInputValue::set_has_input_id() {
+ _has_bits_[0] |= 0x00000001u;
+}
+inline void FormInputValue::clear_has_input_id() {
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline void FormInputValue::clear_input_id() {
+ if (input_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_->clear();
+ }
+ clear_has_input_id();
+}
+inline const ::std::string& FormInputValue::input_id() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputValue.input_id)
+ return *input_id_;
+}
+inline void FormInputValue::set_input_id(const ::std::string& value) {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ input_id_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInputValue.input_id)
+}
+inline void FormInputValue::set_input_id(const char* value) {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ input_id_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInputValue.input_id)
+}
+inline void FormInputValue::set_input_id(const char* value, size_t size) {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ input_id_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInputValue.input_id)
+}
+inline ::std::string* FormInputValue::mutable_input_id() {
+ set_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ input_id_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInputValue.input_id)
+ return input_id_;
+}
+inline ::std::string* FormInputValue::release_input_id() {
+ clear_has_input_id();
+ if (input_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = input_id_;
+ input_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void FormInputValue::set_allocated_input_id(::std::string* input_id) {
+ if (input_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete input_id_;
+ }
+ if (input_id) {
+ set_has_input_id();
+ input_id_ = input_id;
+ } else {
+ clear_has_input_id();
+ input_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInputValue.input_id)
+}
+
+// required string value = 2;
+inline bool FormInputValue::has_value() const {
+ return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void FormInputValue::set_has_value() {
+ _has_bits_[0] |= 0x00000002u;
+}
+inline void FormInputValue::clear_has_value() {
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline void FormInputValue::clear_value() {
+ if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ value_->clear();
+ }
+ clear_has_value();
+}
+inline const ::std::string& FormInputValue::value() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.FormInputValue.value)
+ return *value_;
+}
+inline void FormInputValue::set_value(const ::std::string& value) {
+ set_has_value();
+ if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ value_ = new ::std::string;
+ }
+ value_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.FormInputValue.value)
+}
+inline void FormInputValue::set_value(const char* value) {
+ set_has_value();
+ if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ value_ = new ::std::string;
+ }
+ value_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.FormInputValue.value)
+}
+inline void FormInputValue::set_value(const char* value, size_t size) {
+ set_has_value();
+ if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ value_ = new ::std::string;
+ }
+ value_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.FormInputValue.value)
+}
+inline ::std::string* FormInputValue::mutable_value() {
+ set_has_value();
+ if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ value_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.FormInputValue.value)
+ return value_;
+}
+inline ::std::string* FormInputValue::release_value() {
+ clear_has_value();
+ if (value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = value_;
+ value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void FormInputValue::set_allocated_value(::std::string* value) {
+ if (value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete value_;
+ }
+ if (value) {
+ set_has_value();
+ value_ = value;
+ } else {
+ clear_has_value();
+ value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.FormInputValue.value)
+}
+
+// -------------------------------------------------------------------
+
+// LoginForm
+
+// required string platform_id = 1;
+inline bool LoginForm::has_platform_id() const {
+ return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void LoginForm::set_has_platform_id() {
+ _has_bits_[0] |= 0x00000001u;
+}
+inline void LoginForm::clear_has_platform_id() {
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline void LoginForm::clear_platform_id() {
+ if (platform_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ platform_id_->clear();
+ }
+ clear_has_platform_id();
+}
+inline const ::std::string& LoginForm::platform_id() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.platform_id)
+ return *platform_id_;
+}
+inline void LoginForm::set_platform_id(const ::std::string& value) {
+ set_has_platform_id();
+ if (platform_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ platform_id_ = new ::std::string;
+ }
+ platform_id_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginForm.platform_id)
+}
+inline void LoginForm::set_platform_id(const char* value) {
+ set_has_platform_id();
+ if (platform_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ platform_id_ = new ::std::string;
+ }
+ platform_id_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginForm.platform_id)
+}
+inline void LoginForm::set_platform_id(const char* value, size_t size) {
+ set_has_platform_id();
+ if (platform_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ platform_id_ = new ::std::string;
+ }
+ platform_id_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginForm.platform_id)
+}
+inline ::std::string* LoginForm::mutable_platform_id() {
+ set_has_platform_id();
+ if (platform_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ platform_id_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.platform_id)
+ return platform_id_;
+}
+inline ::std::string* LoginForm::release_platform_id() {
+ clear_has_platform_id();
+ if (platform_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = platform_id_;
+ platform_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginForm::set_allocated_platform_id(::std::string* platform_id) {
+ if (platform_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete platform_id_;
+ }
+ if (platform_id) {
+ set_has_platform_id();
+ platform_id_ = platform_id;
+ } else {
+ clear_has_platform_id();
+ platform_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginForm.platform_id)
+}
+
+// required string program_id = 2;
+inline bool LoginForm::has_program_id() const {
+ return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void LoginForm::set_has_program_id() {
+ _has_bits_[0] |= 0x00000002u;
+}
+inline void LoginForm::clear_has_program_id() {
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline void LoginForm::clear_program_id() {
+ if (program_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ program_id_->clear();
+ }
+ clear_has_program_id();
+}
+inline const ::std::string& LoginForm::program_id() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.program_id)
+ return *program_id_;
+}
+inline void LoginForm::set_program_id(const ::std::string& value) {
+ set_has_program_id();
+ if (program_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ program_id_ = new ::std::string;
+ }
+ program_id_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginForm.program_id)
+}
+inline void LoginForm::set_program_id(const char* value) {
+ set_has_program_id();
+ if (program_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ program_id_ = new ::std::string;
+ }
+ program_id_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginForm.program_id)
+}
+inline void LoginForm::set_program_id(const char* value, size_t size) {
+ set_has_program_id();
+ if (program_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ program_id_ = new ::std::string;
+ }
+ program_id_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginForm.program_id)
+}
+inline ::std::string* LoginForm::mutable_program_id() {
+ set_has_program_id();
+ if (program_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ program_id_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.program_id)
+ return program_id_;
+}
+inline ::std::string* LoginForm::release_program_id() {
+ clear_has_program_id();
+ if (program_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = program_id_;
+ program_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginForm::set_allocated_program_id(::std::string* program_id) {
+ if (program_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete program_id_;
+ }
+ if (program_id) {
+ set_has_program_id();
+ program_id_ = program_id;
+ } else {
+ clear_has_program_id();
+ program_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginForm.program_id)
+}
+
+// required string version = 3;
+inline bool LoginForm::has_version() const {
+ return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void LoginForm::set_has_version() {
+ _has_bits_[0] |= 0x00000004u;
+}
+inline void LoginForm::clear_has_version() {
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline void LoginForm::clear_version() {
+ if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ version_->clear();
+ }
+ clear_has_version();
+}
+inline const ::std::string& LoginForm::version() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.version)
+ return *version_;
+}
+inline void LoginForm::set_version(const ::std::string& value) {
+ set_has_version();
+ if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ version_ = new ::std::string;
+ }
+ version_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginForm.version)
+}
+inline void LoginForm::set_version(const char* value) {
+ set_has_version();
+ if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ version_ = new ::std::string;
+ }
+ version_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginForm.version)
+}
+inline void LoginForm::set_version(const char* value, size_t size) {
+ set_has_version();
+ if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ version_ = new ::std::string;
+ }
+ version_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginForm.version)
+}
+inline ::std::string* LoginForm::mutable_version() {
+ set_has_version();
+ if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ version_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.version)
+ return version_;
+}
+inline ::std::string* LoginForm::release_version() {
+ clear_has_version();
+ if (version_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = version_;
+ version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginForm::set_allocated_version(::std::string* version) {
+ if (version_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete version_;
+ }
+ if (version) {
+ set_has_version();
+ version_ = version;
+ } else {
+ clear_has_version();
+ version_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginForm.version)
+}
+
+// repeated .Battlenet.JSON.Login.FormInputValue inputs = 4;
+inline int LoginForm::inputs_size() const {
+ return inputs_.size();
+}
+inline void LoginForm::clear_inputs() {
+ inputs_.Clear();
+}
+inline const ::Battlenet::JSON::Login::FormInputValue& LoginForm::inputs(int index) const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginForm.inputs)
+ return inputs_.Get(index);
+}
+inline ::Battlenet::JSON::Login::FormInputValue* LoginForm::mutable_inputs(int index) {
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginForm.inputs)
+ return inputs_.Mutable(index);
+}
+inline ::Battlenet::JSON::Login::FormInputValue* LoginForm::add_inputs() {
+ // @@protoc_insertion_point(field_add:Battlenet.JSON.Login.LoginForm.inputs)
+ return inputs_.Add();
+}
+inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >&
+LoginForm::inputs() const {
+ // @@protoc_insertion_point(field_list:Battlenet.JSON.Login.LoginForm.inputs)
+ return inputs_;
+}
+inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::FormInputValue >*
+LoginForm::mutable_inputs() {
+ // @@protoc_insertion_point(field_mutable_list:Battlenet.JSON.Login.LoginForm.inputs)
+ return &inputs_;
+}
+
+// -------------------------------------------------------------------
+
+// LoginResult
+
+// required .Battlenet.JSON.Login.AuthenticationState authentication_state = 1;
+inline bool LoginResult::has_authentication_state() const {
+ return (_has_bits_[0] & 0x00000001u) != 0;
+}
+inline void LoginResult::set_has_authentication_state() {
+ _has_bits_[0] |= 0x00000001u;
+}
+inline void LoginResult::clear_has_authentication_state() {
+ _has_bits_[0] &= ~0x00000001u;
+}
+inline void LoginResult::clear_authentication_state() {
+ authentication_state_ = 1;
+ clear_has_authentication_state();
+}
+inline ::Battlenet::JSON::Login::AuthenticationState LoginResult::authentication_state() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.authentication_state)
+ return static_cast< ::Battlenet::JSON::Login::AuthenticationState >(authentication_state_);
+}
+inline void LoginResult::set_authentication_state(::Battlenet::JSON::Login::AuthenticationState value) {
+ assert(::Battlenet::JSON::Login::AuthenticationState_IsValid(value));
+ set_has_authentication_state();
+ authentication_state_ = value;
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.authentication_state)
+}
+
+// optional string error_code = 2;
+inline bool LoginResult::has_error_code() const {
+ return (_has_bits_[0] & 0x00000002u) != 0;
+}
+inline void LoginResult::set_has_error_code() {
+ _has_bits_[0] |= 0x00000002u;
+}
+inline void LoginResult::clear_has_error_code() {
+ _has_bits_[0] &= ~0x00000002u;
+}
+inline void LoginResult::clear_error_code() {
+ if (error_code_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_code_->clear();
+ }
+ clear_has_error_code();
+}
+inline const ::std::string& LoginResult::error_code() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.error_code)
+ return *error_code_;
+}
+inline void LoginResult::set_error_code(const ::std::string& value) {
+ set_has_error_code();
+ if (error_code_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_code_ = new ::std::string;
+ }
+ error_code_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.error_code)
+}
+inline void LoginResult::set_error_code(const char* value) {
+ set_has_error_code();
+ if (error_code_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_code_ = new ::std::string;
+ }
+ error_code_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.error_code)
+}
+inline void LoginResult::set_error_code(const char* value, size_t size) {
+ set_has_error_code();
+ if (error_code_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_code_ = new ::std::string;
+ }
+ error_code_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.error_code)
+}
+inline ::std::string* LoginResult::mutable_error_code() {
+ set_has_error_code();
+ if (error_code_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_code_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.error_code)
+ return error_code_;
+}
+inline ::std::string* LoginResult::release_error_code() {
+ clear_has_error_code();
+ if (error_code_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = error_code_;
+ error_code_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginResult::set_allocated_error_code(::std::string* error_code) {
+ if (error_code_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete error_code_;
+ }
+ if (error_code) {
+ set_has_error_code();
+ error_code_ = error_code;
+ } else {
+ clear_has_error_code();
+ error_code_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.error_code)
+}
+
+// optional string error_message = 3;
+inline bool LoginResult::has_error_message() const {
+ return (_has_bits_[0] & 0x00000004u) != 0;
+}
+inline void LoginResult::set_has_error_message() {
+ _has_bits_[0] |= 0x00000004u;
+}
+inline void LoginResult::clear_has_error_message() {
+ _has_bits_[0] &= ~0x00000004u;
+}
+inline void LoginResult::clear_error_message() {
+ if (error_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_message_->clear();
+ }
+ clear_has_error_message();
+}
+inline const ::std::string& LoginResult::error_message() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.error_message)
+ return *error_message_;
+}
+inline void LoginResult::set_error_message(const ::std::string& value) {
+ set_has_error_message();
+ if (error_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_message_ = new ::std::string;
+ }
+ error_message_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.error_message)
+}
+inline void LoginResult::set_error_message(const char* value) {
+ set_has_error_message();
+ if (error_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_message_ = new ::std::string;
+ }
+ error_message_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.error_message)
+}
+inline void LoginResult::set_error_message(const char* value, size_t size) {
+ set_has_error_message();
+ if (error_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_message_ = new ::std::string;
+ }
+ error_message_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.error_message)
+}
+inline ::std::string* LoginResult::mutable_error_message() {
+ set_has_error_message();
+ if (error_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ error_message_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.error_message)
+ return error_message_;
+}
+inline ::std::string* LoginResult::release_error_message() {
+ clear_has_error_message();
+ if (error_message_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = error_message_;
+ error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginResult::set_allocated_error_message(::std::string* error_message) {
+ if (error_message_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete error_message_;
+ }
+ if (error_message) {
+ set_has_error_message();
+ error_message_ = error_message;
+ } else {
+ clear_has_error_message();
+ error_message_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.error_message)
+}
+
+// optional string url = 4;
+inline bool LoginResult::has_url() const {
+ return (_has_bits_[0] & 0x00000008u) != 0;
+}
+inline void LoginResult::set_has_url() {
+ _has_bits_[0] |= 0x00000008u;
+}
+inline void LoginResult::clear_has_url() {
+ _has_bits_[0] &= ~0x00000008u;
+}
+inline void LoginResult::clear_url() {
+ if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ url_->clear();
+ }
+ clear_has_url();
+}
+inline const ::std::string& LoginResult::url() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.url)
+ return *url_;
+}
+inline void LoginResult::set_url(const ::std::string& value) {
+ set_has_url();
+ if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ url_ = new ::std::string;
+ }
+ url_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.url)
+}
+inline void LoginResult::set_url(const char* value) {
+ set_has_url();
+ if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ url_ = new ::std::string;
+ }
+ url_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.url)
+}
+inline void LoginResult::set_url(const char* value, size_t size) {
+ set_has_url();
+ if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ url_ = new ::std::string;
+ }
+ url_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.url)
+}
+inline ::std::string* LoginResult::mutable_url() {
+ set_has_url();
+ if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ url_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.url)
+ return url_;
+}
+inline ::std::string* LoginResult::release_url() {
+ clear_has_url();
+ if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = url_;
+ url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginResult::set_allocated_url(::std::string* url) {
+ if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete url_;
+ }
+ if (url) {
+ set_has_url();
+ url_ = url;
+ } else {
+ clear_has_url();
+ url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.url)
+}
+
+// optional string login_ticket = 5;
+inline bool LoginResult::has_login_ticket() const {
+ return (_has_bits_[0] & 0x00000010u) != 0;
+}
+inline void LoginResult::set_has_login_ticket() {
+ _has_bits_[0] |= 0x00000010u;
+}
+inline void LoginResult::clear_has_login_ticket() {
+ _has_bits_[0] &= ~0x00000010u;
+}
+inline void LoginResult::clear_login_ticket() {
+ if (login_ticket_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ login_ticket_->clear();
+ }
+ clear_has_login_ticket();
+}
+inline const ::std::string& LoginResult::login_ticket() const {
+ // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginResult.login_ticket)
+ return *login_ticket_;
+}
+inline void LoginResult::set_login_ticket(const ::std::string& value) {
+ set_has_login_ticket();
+ if (login_ticket_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ login_ticket_ = new ::std::string;
+ }
+ login_ticket_->assign(value);
+ // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginResult.login_ticket)
+}
+inline void LoginResult::set_login_ticket(const char* value) {
+ set_has_login_ticket();
+ if (login_ticket_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ login_ticket_ = new ::std::string;
+ }
+ login_ticket_->assign(value);
+ // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.LoginResult.login_ticket)
+}
+inline void LoginResult::set_login_ticket(const char* value, size_t size) {
+ set_has_login_ticket();
+ if (login_ticket_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ login_ticket_ = new ::std::string;
+ }
+ login_ticket_->assign(reinterpret_cast<const char*>(value), size);
+ // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.LoginResult.login_ticket)
+}
+inline ::std::string* LoginResult::mutable_login_ticket() {
+ set_has_login_ticket();
+ if (login_ticket_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ login_ticket_ = new ::std::string;
+ }
+ // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.LoginResult.login_ticket)
+ return login_ticket_;
+}
+inline ::std::string* LoginResult::release_login_ticket() {
+ clear_has_login_ticket();
+ if (login_ticket_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ return NULL;
+ } else {
+ ::std::string* temp = login_ticket_;
+ login_ticket_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ return temp;
+ }
+}
+inline void LoginResult::set_allocated_login_ticket(::std::string* login_ticket) {
+ if (login_ticket_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
+ delete login_ticket_;
+ }
+ if (login_ticket) {
+ set_has_login_ticket();
+ login_ticket_ = login_ticket;
+ } else {
+ clear_has_login_ticket();
+ login_ticket_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
+ }
+ // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.login_ticket)
+}
+
+
+// @@protoc_insertion_point(namespace_scope)
+
+} // namespace Login
+} // namespace JSON
+} // namespace Battlenet
+
+#ifndef SWIG
+namespace google {
+namespace protobuf {
+
+template <> struct is_proto_enum< ::Battlenet::JSON::Login::FormType> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::Battlenet::JSON::Login::FormType>() {
+ return ::Battlenet::JSON::Login::FormType_descriptor();
+}
+template <> struct is_proto_enum< ::Battlenet::JSON::Login::AuthenticationState> : ::google::protobuf::internal::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::Battlenet::JSON::Login::AuthenticationState>() {
+ return ::Battlenet::JSON::Login::AuthenticationState_descriptor();
+}
+
+} // namespace google
+} // namespace protobuf
+#endif // SWIG
+
+// @@protoc_insertion_point(global_scope)
+
+#endif // PROTOBUF_Login_2eproto__INCLUDED
diff --git a/src/server/proto/Login/Login.proto b/src/server/proto/Login/Login.proto
new file mode 100644
index 00000000000..35f690a5d4c
--- /dev/null
+++ b/src/server/proto/Login/Login.proto
@@ -0,0 +1,48 @@
+syntax = "proto2";
+
+package Battlenet.JSON.Login;
+
+option optimize_for = CODE_SIZE;
+
+enum FormType {
+ LOGIN_FORM = 1;
+}
+
+message FormInput {
+ required string input_id = 1;
+ required string type = 2;
+ required string label = 3;
+ optional uint32 max_length = 4;
+}
+
+message FormInputs {
+ required FormType type = 1;
+ repeated FormInput inputs = 2;
+}
+
+message FormInputValue {
+ required string input_id = 1;
+ required string value = 2;
+}
+
+message LoginForm {
+ required string platform_id = 1;
+ required string program_id = 2;
+ required string version = 3;
+ repeated FormInputValue inputs = 4;
+}
+
+enum AuthenticationState {
+ LOGIN = 1;
+ LEGAL = 2;
+ AUTHENTICATOR = 3;
+ DONE = 4;
+}
+
+message LoginResult {
+ required AuthenticationState authentication_state = 1;
+ optional string error_code = 2;
+ optional string error_message = 3;
+ optional string url = 4;
+ optional string login_ticket = 5;
+}