diff options
Diffstat (limited to 'src/server/proto')
| -rw-r--r-- | src/server/proto/Login/Login.pb.cc | 466 | ||||
| -rw-r--r-- | src/server/proto/Login/Login.pb.h | 673 | ||||
| -rw-r--r-- | src/server/proto/Login/Login.proto | 21 |
3 files changed, 1133 insertions, 27 deletions
diff --git a/src/server/proto/Login/Login.pb.cc b/src/server/proto/Login/Login.pb.cc index 7e1cd22b1ec..926040fae90 100644 --- a/src/server/proto/Login/Login.pb.cc +++ b/src/server/proto/Login/Login.pb.cc @@ -18,17 +18,15 @@ #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* ErrorResponse_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + ErrorResponse_reflection_ = NULL; const ::google::protobuf::Descriptor* FormInput_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* FormInput_reflection_ = NULL; @@ -44,6 +42,15 @@ const ::google::protobuf::internal::GeneratedMessageReflection* const ::google::protobuf::Descriptor* LoginResult_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* LoginResult_reflection_ = NULL; +const ::google::protobuf::Descriptor* LoginRefreshResult_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + LoginRefreshResult_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameAccountInfo_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameAccountInfo_reflection_ = NULL; +const ::google::protobuf::Descriptor* GameAccountList_descriptor_ = NULL; +const ::google::protobuf::internal::GeneratedMessageReflection* + GameAccountList_reflection_ = NULL; const ::google::protobuf::EnumDescriptor* FormType_descriptor_ = NULL; const ::google::protobuf::EnumDescriptor* AuthenticationState_descriptor_ = NULL; @@ -56,7 +63,21 @@ void protobuf_AssignDesc_Login_2eproto() { ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "Login.proto"); GOOGLE_CHECK(file != NULL); - FormInput_descriptor_ = file->message_type(0); + ErrorResponse_descriptor_ = file->message_type(0); + static const int ErrorResponse_offsets_[1] = { + }; + ErrorResponse_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + ErrorResponse_descriptor_, + ErrorResponse::default_instance_, + ErrorResponse_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ErrorResponse, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ErrorResponse, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(ErrorResponse)); + FormInput_descriptor_ = file->message_type(1); static const int FormInput_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, input_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInput, type_), @@ -74,7 +95,7 @@ void protobuf_AssignDesc_Login_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(FormInput)); - FormInputs_descriptor_ = file->message_type(1); + FormInputs_descriptor_ = file->message_type(2); static const int FormInputs_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputs, type_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputs, inputs_), @@ -90,7 +111,7 @@ void protobuf_AssignDesc_Login_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(FormInputs)); - FormInputValue_descriptor_ = file->message_type(2); + FormInputValue_descriptor_ = file->message_type(3); static const int FormInputValue_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputValue, input_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FormInputValue, value_), @@ -106,7 +127,7 @@ void protobuf_AssignDesc_Login_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(FormInputValue)); - LoginForm_descriptor_ = file->message_type(3); + LoginForm_descriptor_ = file->message_type(4); static const int LoginForm_offsets_[4] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, platform_id_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginForm, program_id_), @@ -124,7 +145,7 @@ void protobuf_AssignDesc_Login_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(LoginForm)); - LoginResult_descriptor_ = file->message_type(4); + LoginResult_descriptor_ = file->message_type(5); static const int LoginResult_offsets_[5] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, authentication_state_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginResult, error_code_), @@ -143,6 +164,57 @@ void protobuf_AssignDesc_Login_2eproto() { ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(LoginResult)); + LoginRefreshResult_descriptor_ = file->message_type(6); + static const int LoginRefreshResult_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginRefreshResult, login_ticket_expiry_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginRefreshResult, is_expired_), + }; + LoginRefreshResult_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + LoginRefreshResult_descriptor_, + LoginRefreshResult::default_instance_, + LoginRefreshResult_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginRefreshResult, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(LoginRefreshResult, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(LoginRefreshResult)); + GameAccountInfo_descriptor_ = file->message_type(7); + static const int GameAccountInfo_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, display_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, expansion_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, is_suspended_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, is_banned_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, suspension_expires_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, suspension_reason_), + }; + GameAccountInfo_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameAccountInfo_descriptor_, + GameAccountInfo::default_instance_, + GameAccountInfo_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountInfo, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameAccountInfo)); + GameAccountList_descriptor_ = file->message_type(8); + static const int GameAccountList_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountList, game_accounts_), + }; + GameAccountList_reflection_ = + new ::google::protobuf::internal::GeneratedMessageReflection( + GameAccountList_descriptor_, + GameAccountList::default_instance_, + GameAccountList_offsets_, + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountList, _has_bits_[0]), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GameAccountList, _unknown_fields_), + -1, + ::google::protobuf::DescriptorPool::generated_pool(), + ::google::protobuf::MessageFactory::generated_factory(), + sizeof(GameAccountList)); FormType_descriptor_ = file->enum_type(0); AuthenticationState_descriptor_ = file->enum_type(1); } @@ -158,6 +230,8 @@ inline void protobuf_AssignDescriptorsOnce() { void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + ErrorResponse_descriptor_, &ErrorResponse::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( FormInput_descriptor_, &FormInput::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( FormInputs_descriptor_, &FormInputs::default_instance()); @@ -167,11 +241,19 @@ void protobuf_RegisterTypes(const ::std::string&) { LoginForm_descriptor_, &LoginForm::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( LoginResult_descriptor_, &LoginResult::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + LoginRefreshResult_descriptor_, &LoginRefreshResult::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameAccountInfo_descriptor_, &GameAccountInfo::default_instance()); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( + GameAccountList_descriptor_, &GameAccountList::default_instance()); } } // namespace void protobuf_ShutdownFile_Login_2eproto() { + delete ErrorResponse::default_instance_; + delete ErrorResponse_reflection_; delete FormInput::default_instance_; delete FormInput_reflection_; delete FormInputs::default_instance_; @@ -182,6 +264,12 @@ void protobuf_ShutdownFile_Login_2eproto() { delete LoginForm_reflection_; delete LoginResult::default_instance_; delete LoginResult_reflection_; + delete LoginRefreshResult::default_instance_; + delete LoginRefreshResult_reflection_; + delete GameAccountInfo::default_instance_; + delete GameAccountInfo_reflection_; + delete GameAccountList::default_instance_; + delete GameAccountList_reflection_; } void protobuf_AddDesc_Login_2eproto() { @@ -191,35 +279,51 @@ void protobuf_AddDesc_Login_2eproto() { 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); + "\n\013Login.proto\022\024Battlenet.JSON.Login\"\017\n\rE" + "rrorResponse\"N\n\tFormInput\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\nFormInputs\022,\n\004type\030\001 \002(\016" + "2\036.Battlenet.JSON.Login.FormType\022/\n\006inpu" + "ts\030\002 \003(\0132\037.Battlenet.JSON.Login.FormInpu" + "t\"1\n\016FormInputValue\022\020\n\010input_id\030\001 \002(\t\022\r\n" + "\005value\030\002 \002(\t\"{\n\tLoginForm\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.Log" + "in.FormInputValue\"\244\001\n\013LoginResult\022G\n\024aut" + "hentication_state\030\001 \002(\0162).Battlenet.JSON" + ".Login.AuthenticationState\022\022\n\nerror_code" + "\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\022\013\n\003url\030\004 \001" + "(\t\022\024\n\014login_ticket\030\005 \001(\t\"E\n\022LoginRefresh" + "Result\022\033\n\023login_ticket_expiry\030\001 \002(\004\022\022\n\ni" + "s_expired\030\002 \001(\010\"\232\001\n\017GameAccountInfo\022\024\n\014d" + "isplay_name\030\001 \002(\t\022\021\n\texpansion\030\002 \002(\r\022\024\n\014" + "is_suspended\030\003 \001(\010\022\021\n\tis_banned\030\004 \001(\010\022\032\n" + "\022suspension_expires\030\005 \001(\004\022\031\n\021suspension_" + "reason\030\006 \001(\t\"O\n\017GameAccountList\022<\n\rgame_" + "accounts\030\001 \003(\0132%.Battlenet.JSON.Login.Ga" + "meAccountInfo*\032\n\010FormType\022\016\n\nLOGIN_FORM\020" + "\001*H\n\023AuthenticationState\022\t\n\005LOGIN\020\001\022\t\n\005L" + "EGAL\020\002\022\021\n\rAUTHENTICATOR\020\003\022\010\n\004DONE\020\004B\002H\002", 999); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "Login.proto", &protobuf_RegisterTypes); + ErrorResponse::default_instance_ = new ErrorResponse(); 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(); + LoginRefreshResult::default_instance_ = new LoginRefreshResult(); + GameAccountInfo::default_instance_ = new GameAccountInfo(); + GameAccountList::default_instance_ = new GameAccountList(); + ErrorResponse::default_instance_->InitAsDefaultInstance(); FormInput::default_instance_->InitAsDefaultInstance(); FormInputs::default_instance_->InitAsDefaultInstance(); FormInputValue::default_instance_->InitAsDefaultInstance(); LoginForm::default_instance_->InitAsDefaultInstance(); LoginResult::default_instance_->InitAsDefaultInstance(); + LoginRefreshResult::default_instance_->InitAsDefaultInstance(); + GameAccountInfo::default_instance_->InitAsDefaultInstance(); + GameAccountList::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Login_2eproto); } @@ -262,6 +366,77 @@ bool AuthenticationState_IsValid(int value) { // =================================================================== #ifndef _MSC_VER +#endif // !_MSC_VER + +ErrorResponse::ErrorResponse() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.ErrorResponse) +} + +void ErrorResponse::InitAsDefaultInstance() { +} + +ErrorResponse::ErrorResponse(const ErrorResponse& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.ErrorResponse) +} + +void ErrorResponse::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +ErrorResponse::~ErrorResponse() { + // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.ErrorResponse) + SharedDtor(); +} + +void ErrorResponse::SharedDtor() { + if (this != default_instance_) { + } +} + +void ErrorResponse::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* ErrorResponse::descriptor() { + protobuf_AssignDescriptorsOnce(); + return ErrorResponse_descriptor_; +} + +const ErrorResponse& ErrorResponse::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto(); + return *default_instance_; +} + +ErrorResponse* ErrorResponse::default_instance_ = NULL; + +ErrorResponse* ErrorResponse::New() const { + return new ErrorResponse; +} + +void ErrorResponse::Swap(ErrorResponse* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata ErrorResponse::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = ErrorResponse_descriptor_; + metadata.reflection = ErrorResponse_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER const int FormInput::kInputIdFieldNumber; const int FormInput::kTypeFieldNumber; const int FormInput::kLabelFieldNumber; @@ -686,6 +861,243 @@ void LoginResult::Swap(LoginResult* other) { } +// =================================================================== + +#ifndef _MSC_VER +const int LoginRefreshResult::kLoginTicketExpiryFieldNumber; +const int LoginRefreshResult::kIsExpiredFieldNumber; +#endif // !_MSC_VER + +LoginRefreshResult::LoginRefreshResult() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.LoginRefreshResult) +} + +void LoginRefreshResult::InitAsDefaultInstance() { +} + +LoginRefreshResult::LoginRefreshResult(const LoginRefreshResult& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.LoginRefreshResult) +} + +void LoginRefreshResult::SharedCtor() { + _cached_size_ = 0; + login_ticket_expiry_ = GOOGLE_ULONGLONG(0); + is_expired_ = false; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +LoginRefreshResult::~LoginRefreshResult() { + // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.LoginRefreshResult) + SharedDtor(); +} + +void LoginRefreshResult::SharedDtor() { + if (this != default_instance_) { + } +} + +void LoginRefreshResult::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* LoginRefreshResult::descriptor() { + protobuf_AssignDescriptorsOnce(); + return LoginRefreshResult_descriptor_; +} + +const LoginRefreshResult& LoginRefreshResult::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto(); + return *default_instance_; +} + +LoginRefreshResult* LoginRefreshResult::default_instance_ = NULL; + +LoginRefreshResult* LoginRefreshResult::New() const { + return new LoginRefreshResult; +} + +void LoginRefreshResult::Swap(LoginRefreshResult* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata LoginRefreshResult::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = LoginRefreshResult_descriptor_; + metadata.reflection = LoginRefreshResult_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameAccountInfo::kDisplayNameFieldNumber; +const int GameAccountInfo::kExpansionFieldNumber; +const int GameAccountInfo::kIsSuspendedFieldNumber; +const int GameAccountInfo::kIsBannedFieldNumber; +const int GameAccountInfo::kSuspensionExpiresFieldNumber; +const int GameAccountInfo::kSuspensionReasonFieldNumber; +#endif // !_MSC_VER + +GameAccountInfo::GameAccountInfo() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.GameAccountInfo) +} + +void GameAccountInfo::InitAsDefaultInstance() { +} + +GameAccountInfo::GameAccountInfo(const GameAccountInfo& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.GameAccountInfo) +} + +void GameAccountInfo::SharedCtor() { + ::google::protobuf::internal::GetEmptyString(); + _cached_size_ = 0; + display_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + expansion_ = 0u; + is_suspended_ = false; + is_banned_ = false; + suspension_expires_ = GOOGLE_ULONGLONG(0); + suspension_reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameAccountInfo::~GameAccountInfo() { + // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.GameAccountInfo) + SharedDtor(); +} + +void GameAccountInfo::SharedDtor() { + if (display_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete display_name_; + } + if (suspension_reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete suspension_reason_; + } + if (this != default_instance_) { + } +} + +void GameAccountInfo::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameAccountInfo::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameAccountInfo_descriptor_; +} + +const GameAccountInfo& GameAccountInfo::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto(); + return *default_instance_; +} + +GameAccountInfo* GameAccountInfo::default_instance_ = NULL; + +GameAccountInfo* GameAccountInfo::New() const { + return new GameAccountInfo; +} + +void GameAccountInfo::Swap(GameAccountInfo* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata GameAccountInfo::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameAccountInfo_descriptor_; + metadata.reflection = GameAccountInfo_reflection_; + return metadata; +} + + +// =================================================================== + +#ifndef _MSC_VER +const int GameAccountList::kGameAccountsFieldNumber; +#endif // !_MSC_VER + +GameAccountList::GameAccountList() + : ::google::protobuf::Message() { + SharedCtor(); + // @@protoc_insertion_point(constructor:Battlenet.JSON.Login.GameAccountList) +} + +void GameAccountList::InitAsDefaultInstance() { +} + +GameAccountList::GameAccountList(const GameAccountList& from) + : ::google::protobuf::Message() { + SharedCtor(); + MergeFrom(from); + // @@protoc_insertion_point(copy_constructor:Battlenet.JSON.Login.GameAccountList) +} + +void GameAccountList::SharedCtor() { + _cached_size_ = 0; + ::memset(_has_bits_, 0, sizeof(_has_bits_)); +} + +GameAccountList::~GameAccountList() { + // @@protoc_insertion_point(destructor:Battlenet.JSON.Login.GameAccountList) + SharedDtor(); +} + +void GameAccountList::SharedDtor() { + if (this != default_instance_) { + } +} + +void GameAccountList::SetCachedSize(int size) const { + GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); + _cached_size_ = size; + GOOGLE_SAFE_CONCURRENT_WRITES_END(); +} +const ::google::protobuf::Descriptor* GameAccountList::descriptor() { + protobuf_AssignDescriptorsOnce(); + return GameAccountList_descriptor_; +} + +const GameAccountList& GameAccountList::default_instance() { + if (default_instance_ == NULL) protobuf_AddDesc_Login_2eproto(); + return *default_instance_; +} + +GameAccountList* GameAccountList::default_instance_ = NULL; + +GameAccountList* GameAccountList::New() const { + return new GameAccountList; +} + +void GameAccountList::Swap(GameAccountList* other) { + if (other != this) { + GetReflection()->Swap(this, other);} +} + +::google::protobuf::Metadata GameAccountList::GetMetadata() const { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::Metadata metadata; + metadata.descriptor = GameAccountList_descriptor_; + metadata.reflection = GameAccountList_reflection_; + return metadata; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace Login diff --git a/src/server/proto/Login/Login.pb.h b/src/server/proto/Login/Login.pb.h index 9fcafbc365e..9ab5feb0787 100644 --- a/src/server/proto/Login/Login.pb.h +++ b/src/server/proto/Login/Login.pb.h @@ -37,11 +37,15 @@ void TC_PROTO_API protobuf_AddDesc_Login_2eproto(); void protobuf_AssignDesc_Login_2eproto(); void protobuf_ShutdownFile_Login_2eproto(); +class ErrorResponse; class FormInput; class FormInputs; class FormInputValue; class LoginForm; class LoginResult; +class LoginRefreshResult; +class GameAccountInfo; +class GameAccountList; enum FormType { LOGIN_FORM = 1 @@ -84,6 +88,62 @@ inline bool AuthenticationState_Parse( } // =================================================================== +class TC_PROTO_API ErrorResponse : public ::google::protobuf::Message { + public: + ErrorResponse(); + virtual ~ErrorResponse(); + + ErrorResponse(const ErrorResponse& from); + + inline ErrorResponse& operator=(const ErrorResponse& 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 ErrorResponse& default_instance(); + + void Swap(ErrorResponse* other); + + // implements Message ---------------------------------------------- + + ErrorResponse* 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 ------------------------------------------------------- + + // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.ErrorResponse) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + friend void TC_PROTO_API protobuf_AddDesc_Login_2eproto(); + friend void protobuf_AssignDesc_Login_2eproto(); + friend void protobuf_ShutdownFile_Login_2eproto(); + + void InitAsDefaultInstance(); + static ErrorResponse* default_instance_; +}; +// ------------------------------------------------------------------- + class TC_PROTO_API FormInput : public ::google::protobuf::Message { public: FormInput(); @@ -598,6 +658,277 @@ class TC_PROTO_API LoginResult : public ::google::protobuf::Message { void InitAsDefaultInstance(); static LoginResult* default_instance_; }; +// ------------------------------------------------------------------- + +class TC_PROTO_API LoginRefreshResult : public ::google::protobuf::Message { + public: + LoginRefreshResult(); + virtual ~LoginRefreshResult(); + + LoginRefreshResult(const LoginRefreshResult& from); + + inline LoginRefreshResult& operator=(const LoginRefreshResult& 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 LoginRefreshResult& default_instance(); + + void Swap(LoginRefreshResult* other); + + // implements Message ---------------------------------------------- + + LoginRefreshResult* 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 uint64 login_ticket_expiry = 1; + inline bool has_login_ticket_expiry() const; + inline void clear_login_ticket_expiry(); + static const int kLoginTicketExpiryFieldNumber = 1; + inline ::google::protobuf::uint64 login_ticket_expiry() const; + inline void set_login_ticket_expiry(::google::protobuf::uint64 value); + + // optional bool is_expired = 2; + inline bool has_is_expired() const; + inline void clear_is_expired(); + static const int kIsExpiredFieldNumber = 2; + inline bool is_expired() const; + inline void set_is_expired(bool value); + + // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.LoginRefreshResult) + private: + inline void set_has_login_ticket_expiry(); + inline void clear_has_login_ticket_expiry(); + inline void set_has_is_expired(); + inline void clear_has_is_expired(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::uint64 login_ticket_expiry_; + bool is_expired_; + friend void TC_PROTO_API protobuf_AddDesc_Login_2eproto(); + friend void protobuf_AssignDesc_Login_2eproto(); + friend void protobuf_ShutdownFile_Login_2eproto(); + + void InitAsDefaultInstance(); + static LoginRefreshResult* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API GameAccountInfo : public ::google::protobuf::Message { + public: + GameAccountInfo(); + virtual ~GameAccountInfo(); + + GameAccountInfo(const GameAccountInfo& from); + + inline GameAccountInfo& operator=(const GameAccountInfo& 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 GameAccountInfo& default_instance(); + + void Swap(GameAccountInfo* other); + + // implements Message ---------------------------------------------- + + GameAccountInfo* 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 display_name = 1; + inline bool has_display_name() const; + inline void clear_display_name(); + static const int kDisplayNameFieldNumber = 1; + inline const ::std::string& display_name() const; + inline void set_display_name(const ::std::string& value); + inline void set_display_name(const char* value); + inline void set_display_name(const char* value, size_t size); + inline ::std::string* mutable_display_name(); + inline ::std::string* release_display_name(); + inline void set_allocated_display_name(::std::string* display_name); + + // required uint32 expansion = 2; + inline bool has_expansion() const; + inline void clear_expansion(); + static const int kExpansionFieldNumber = 2; + inline ::google::protobuf::uint32 expansion() const; + inline void set_expansion(::google::protobuf::uint32 value); + + // optional bool is_suspended = 3; + inline bool has_is_suspended() const; + inline void clear_is_suspended(); + static const int kIsSuspendedFieldNumber = 3; + inline bool is_suspended() const; + inline void set_is_suspended(bool value); + + // optional bool is_banned = 4; + inline bool has_is_banned() const; + inline void clear_is_banned(); + static const int kIsBannedFieldNumber = 4; + inline bool is_banned() const; + inline void set_is_banned(bool value); + + // optional uint64 suspension_expires = 5; + inline bool has_suspension_expires() const; + inline void clear_suspension_expires(); + static const int kSuspensionExpiresFieldNumber = 5; + inline ::google::protobuf::uint64 suspension_expires() const; + inline void set_suspension_expires(::google::protobuf::uint64 value); + + // optional string suspension_reason = 6; + inline bool has_suspension_reason() const; + inline void clear_suspension_reason(); + static const int kSuspensionReasonFieldNumber = 6; + inline const ::std::string& suspension_reason() const; + inline void set_suspension_reason(const ::std::string& value); + inline void set_suspension_reason(const char* value); + inline void set_suspension_reason(const char* value, size_t size); + inline ::std::string* mutable_suspension_reason(); + inline ::std::string* release_suspension_reason(); + inline void set_allocated_suspension_reason(::std::string* suspension_reason); + + // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.GameAccountInfo) + private: + inline void set_has_display_name(); + inline void clear_has_display_name(); + inline void set_has_expansion(); + inline void clear_has_expansion(); + inline void set_has_is_suspended(); + inline void clear_has_is_suspended(); + inline void set_has_is_banned(); + inline void clear_has_is_banned(); + inline void set_has_suspension_expires(); + inline void clear_has_suspension_expires(); + inline void set_has_suspension_reason(); + inline void clear_has_suspension_reason(); + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::std::string* display_name_; + ::google::protobuf::uint32 expansion_; + bool is_suspended_; + bool is_banned_; + ::google::protobuf::uint64 suspension_expires_; + ::std::string* suspension_reason_; + friend void TC_PROTO_API protobuf_AddDesc_Login_2eproto(); + friend void protobuf_AssignDesc_Login_2eproto(); + friend void protobuf_ShutdownFile_Login_2eproto(); + + void InitAsDefaultInstance(); + static GameAccountInfo* default_instance_; +}; +// ------------------------------------------------------------------- + +class TC_PROTO_API GameAccountList : public ::google::protobuf::Message { + public: + GameAccountList(); + virtual ~GameAccountList(); + + GameAccountList(const GameAccountList& from); + + inline GameAccountList& operator=(const GameAccountList& 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 GameAccountList& default_instance(); + + void Swap(GameAccountList* other); + + // implements Message ---------------------------------------------- + + GameAccountList* 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 ------------------------------------------------------- + + // repeated .Battlenet.JSON.Login.GameAccountInfo game_accounts = 1; + inline int game_accounts_size() const; + inline void clear_game_accounts(); + static const int kGameAccountsFieldNumber = 1; + inline const ::Battlenet::JSON::Login::GameAccountInfo& game_accounts(int index) const; + inline ::Battlenet::JSON::Login::GameAccountInfo* mutable_game_accounts(int index); + inline ::Battlenet::JSON::Login::GameAccountInfo* add_game_accounts(); + inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::GameAccountInfo >& + game_accounts() const; + inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::GameAccountInfo >* + mutable_game_accounts(); + + // @@protoc_insertion_point(class_scope:Battlenet.JSON.Login.GameAccountList) + private: + + ::google::protobuf::UnknownFieldSet _unknown_fields_; + + ::google::protobuf::uint32 _has_bits_[1]; + mutable int _cached_size_; + ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::GameAccountInfo > game_accounts_; + friend void TC_PROTO_API protobuf_AddDesc_Login_2eproto(); + friend void protobuf_AssignDesc_Login_2eproto(); + friend void protobuf_ShutdownFile_Login_2eproto(); + + void InitAsDefaultInstance(); + static GameAccountList* default_instance_; +}; // =================================================================== @@ -606,6 +937,10 @@ class TC_PROTO_API LoginResult : public ::google::protobuf::Message { // =================================================================== +// ErrorResponse + +// ------------------------------------------------------------------- + // FormInput // required string input_id = 1; @@ -1670,6 +2005,344 @@ inline void LoginResult::set_allocated_login_ticket(::std::string* login_ticket) // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.LoginResult.login_ticket) } +// ------------------------------------------------------------------- + +// LoginRefreshResult + +// required uint64 login_ticket_expiry = 1; +inline bool LoginRefreshResult::has_login_ticket_expiry() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void LoginRefreshResult::set_has_login_ticket_expiry() { + _has_bits_[0] |= 0x00000001u; +} +inline void LoginRefreshResult::clear_has_login_ticket_expiry() { + _has_bits_[0] &= ~0x00000001u; +} +inline void LoginRefreshResult::clear_login_ticket_expiry() { + login_ticket_expiry_ = GOOGLE_ULONGLONG(0); + clear_has_login_ticket_expiry(); +} +inline ::google::protobuf::uint64 LoginRefreshResult::login_ticket_expiry() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginRefreshResult.login_ticket_expiry) + return login_ticket_expiry_; +} +inline void LoginRefreshResult::set_login_ticket_expiry(::google::protobuf::uint64 value) { + set_has_login_ticket_expiry(); + login_ticket_expiry_ = value; + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginRefreshResult.login_ticket_expiry) +} + +// optional bool is_expired = 2; +inline bool LoginRefreshResult::has_is_expired() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void LoginRefreshResult::set_has_is_expired() { + _has_bits_[0] |= 0x00000002u; +} +inline void LoginRefreshResult::clear_has_is_expired() { + _has_bits_[0] &= ~0x00000002u; +} +inline void LoginRefreshResult::clear_is_expired() { + is_expired_ = false; + clear_has_is_expired(); +} +inline bool LoginRefreshResult::is_expired() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.LoginRefreshResult.is_expired) + return is_expired_; +} +inline void LoginRefreshResult::set_is_expired(bool value) { + set_has_is_expired(); + is_expired_ = value; + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.LoginRefreshResult.is_expired) +} + +// ------------------------------------------------------------------- + +// GameAccountInfo + +// required string display_name = 1; +inline bool GameAccountInfo::has_display_name() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void GameAccountInfo::set_has_display_name() { + _has_bits_[0] |= 0x00000001u; +} +inline void GameAccountInfo::clear_has_display_name() { + _has_bits_[0] &= ~0x00000001u; +} +inline void GameAccountInfo::clear_display_name() { + if (display_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_name_->clear(); + } + clear_has_display_name(); +} +inline const ::std::string& GameAccountInfo::display_name() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountInfo.display_name) + return *display_name_; +} +inline void GameAccountInfo::set_display_name(const ::std::string& value) { + set_has_display_name(); + if (display_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_name_ = new ::std::string; + } + display_name_->assign(value); + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.GameAccountInfo.display_name) +} +inline void GameAccountInfo::set_display_name(const char* value) { + set_has_display_name(); + if (display_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_name_ = new ::std::string; + } + display_name_->assign(value); + // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.GameAccountInfo.display_name) +} +inline void GameAccountInfo::set_display_name(const char* value, size_t size) { + set_has_display_name(); + if (display_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_name_ = new ::std::string; + } + display_name_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.GameAccountInfo.display_name) +} +inline ::std::string* GameAccountInfo::mutable_display_name() { + set_has_display_name(); + if (display_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + display_name_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.GameAccountInfo.display_name) + return display_name_; +} +inline ::std::string* GameAccountInfo::release_display_name() { + clear_has_display_name(); + if (display_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = display_name_; + display_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void GameAccountInfo::set_allocated_display_name(::std::string* display_name) { + if (display_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete display_name_; + } + if (display_name) { + set_has_display_name(); + display_name_ = display_name; + } else { + clear_has_display_name(); + display_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.GameAccountInfo.display_name) +} + +// required uint32 expansion = 2; +inline bool GameAccountInfo::has_expansion() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void GameAccountInfo::set_has_expansion() { + _has_bits_[0] |= 0x00000002u; +} +inline void GameAccountInfo::clear_has_expansion() { + _has_bits_[0] &= ~0x00000002u; +} +inline void GameAccountInfo::clear_expansion() { + expansion_ = 0u; + clear_has_expansion(); +} +inline ::google::protobuf::uint32 GameAccountInfo::expansion() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountInfo.expansion) + return expansion_; +} +inline void GameAccountInfo::set_expansion(::google::protobuf::uint32 value) { + set_has_expansion(); + expansion_ = value; + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.GameAccountInfo.expansion) +} + +// optional bool is_suspended = 3; +inline bool GameAccountInfo::has_is_suspended() const { + return (_has_bits_[0] & 0x00000004u) != 0; +} +inline void GameAccountInfo::set_has_is_suspended() { + _has_bits_[0] |= 0x00000004u; +} +inline void GameAccountInfo::clear_has_is_suspended() { + _has_bits_[0] &= ~0x00000004u; +} +inline void GameAccountInfo::clear_is_suspended() { + is_suspended_ = false; + clear_has_is_suspended(); +} +inline bool GameAccountInfo::is_suspended() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountInfo.is_suspended) + return is_suspended_; +} +inline void GameAccountInfo::set_is_suspended(bool value) { + set_has_is_suspended(); + is_suspended_ = value; + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.GameAccountInfo.is_suspended) +} + +// optional bool is_banned = 4; +inline bool GameAccountInfo::has_is_banned() const { + return (_has_bits_[0] & 0x00000008u) != 0; +} +inline void GameAccountInfo::set_has_is_banned() { + _has_bits_[0] |= 0x00000008u; +} +inline void GameAccountInfo::clear_has_is_banned() { + _has_bits_[0] &= ~0x00000008u; +} +inline void GameAccountInfo::clear_is_banned() { + is_banned_ = false; + clear_has_is_banned(); +} +inline bool GameAccountInfo::is_banned() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountInfo.is_banned) + return is_banned_; +} +inline void GameAccountInfo::set_is_banned(bool value) { + set_has_is_banned(); + is_banned_ = value; + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.GameAccountInfo.is_banned) +} + +// optional uint64 suspension_expires = 5; +inline bool GameAccountInfo::has_suspension_expires() const { + return (_has_bits_[0] & 0x00000010u) != 0; +} +inline void GameAccountInfo::set_has_suspension_expires() { + _has_bits_[0] |= 0x00000010u; +} +inline void GameAccountInfo::clear_has_suspension_expires() { + _has_bits_[0] &= ~0x00000010u; +} +inline void GameAccountInfo::clear_suspension_expires() { + suspension_expires_ = GOOGLE_ULONGLONG(0); + clear_has_suspension_expires(); +} +inline ::google::protobuf::uint64 GameAccountInfo::suspension_expires() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountInfo.suspension_expires) + return suspension_expires_; +} +inline void GameAccountInfo::set_suspension_expires(::google::protobuf::uint64 value) { + set_has_suspension_expires(); + suspension_expires_ = value; + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.GameAccountInfo.suspension_expires) +} + +// optional string suspension_reason = 6; +inline bool GameAccountInfo::has_suspension_reason() const { + return (_has_bits_[0] & 0x00000020u) != 0; +} +inline void GameAccountInfo::set_has_suspension_reason() { + _has_bits_[0] |= 0x00000020u; +} +inline void GameAccountInfo::clear_has_suspension_reason() { + _has_bits_[0] &= ~0x00000020u; +} +inline void GameAccountInfo::clear_suspension_reason() { + if (suspension_reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + suspension_reason_->clear(); + } + clear_has_suspension_reason(); +} +inline const ::std::string& GameAccountInfo::suspension_reason() const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountInfo.suspension_reason) + return *suspension_reason_; +} +inline void GameAccountInfo::set_suspension_reason(const ::std::string& value) { + set_has_suspension_reason(); + if (suspension_reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + suspension_reason_ = new ::std::string; + } + suspension_reason_->assign(value); + // @@protoc_insertion_point(field_set:Battlenet.JSON.Login.GameAccountInfo.suspension_reason) +} +inline void GameAccountInfo::set_suspension_reason(const char* value) { + set_has_suspension_reason(); + if (suspension_reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + suspension_reason_ = new ::std::string; + } + suspension_reason_->assign(value); + // @@protoc_insertion_point(field_set_char:Battlenet.JSON.Login.GameAccountInfo.suspension_reason) +} +inline void GameAccountInfo::set_suspension_reason(const char* value, size_t size) { + set_has_suspension_reason(); + if (suspension_reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + suspension_reason_ = new ::std::string; + } + suspension_reason_->assign(reinterpret_cast<const char*>(value), size); + // @@protoc_insertion_point(field_set_pointer:Battlenet.JSON.Login.GameAccountInfo.suspension_reason) +} +inline ::std::string* GameAccountInfo::mutable_suspension_reason() { + set_has_suspension_reason(); + if (suspension_reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + suspension_reason_ = new ::std::string; + } + // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.GameAccountInfo.suspension_reason) + return suspension_reason_; +} +inline ::std::string* GameAccountInfo::release_suspension_reason() { + clear_has_suspension_reason(); + if (suspension_reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + return NULL; + } else { + ::std::string* temp = suspension_reason_; + suspension_reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return temp; + } +} +inline void GameAccountInfo::set_allocated_suspension_reason(::std::string* suspension_reason) { + if (suspension_reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { + delete suspension_reason_; + } + if (suspension_reason) { + set_has_suspension_reason(); + suspension_reason_ = suspension_reason; + } else { + clear_has_suspension_reason(); + suspension_reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + } + // @@protoc_insertion_point(field_set_allocated:Battlenet.JSON.Login.GameAccountInfo.suspension_reason) +} + +// ------------------------------------------------------------------- + +// GameAccountList + +// repeated .Battlenet.JSON.Login.GameAccountInfo game_accounts = 1; +inline int GameAccountList::game_accounts_size() const { + return game_accounts_.size(); +} +inline void GameAccountList::clear_game_accounts() { + game_accounts_.Clear(); +} +inline const ::Battlenet::JSON::Login::GameAccountInfo& GameAccountList::game_accounts(int index) const { + // @@protoc_insertion_point(field_get:Battlenet.JSON.Login.GameAccountList.game_accounts) + return game_accounts_.Get(index); +} +inline ::Battlenet::JSON::Login::GameAccountInfo* GameAccountList::mutable_game_accounts(int index) { + // @@protoc_insertion_point(field_mutable:Battlenet.JSON.Login.GameAccountList.game_accounts) + return game_accounts_.Mutable(index); +} +inline ::Battlenet::JSON::Login::GameAccountInfo* GameAccountList::add_game_accounts() { + // @@protoc_insertion_point(field_add:Battlenet.JSON.Login.GameAccountList.game_accounts) + return game_accounts_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::GameAccountInfo >& +GameAccountList::game_accounts() const { + // @@protoc_insertion_point(field_list:Battlenet.JSON.Login.GameAccountList.game_accounts) + return game_accounts_; +} +inline ::google::protobuf::RepeatedPtrField< ::Battlenet::JSON::Login::GameAccountInfo >* +GameAccountList::mutable_game_accounts() { + // @@protoc_insertion_point(field_mutable_list:Battlenet.JSON.Login.GameAccountList.game_accounts) + return &game_accounts_; +} + // @@protoc_insertion_point(namespace_scope) diff --git a/src/server/proto/Login/Login.proto b/src/server/proto/Login/Login.proto index 35f690a5d4c..58e436166c1 100644 --- a/src/server/proto/Login/Login.proto +++ b/src/server/proto/Login/Login.proto @@ -4,6 +4,9 @@ package Battlenet.JSON.Login; option optimize_for = CODE_SIZE; +message ErrorResponse { +} + enum FormType { LOGIN_FORM = 1; } @@ -46,3 +49,21 @@ message LoginResult { optional string url = 4; optional string login_ticket = 5; } + +message LoginRefreshResult { + required uint64 login_ticket_expiry = 1; + optional bool is_expired = 2; +} + +message GameAccountInfo { + required string display_name = 1; + required uint32 expansion = 2; + optional bool is_suspended = 3; + optional bool is_banned = 4; + optional uint64 suspension_expires = 5; + optional string suspension_reason = 6; +} + +message GameAccountList { + repeated GameAccountInfo game_accounts = 1; +} |
