diff --git a/Common/Common.pro b/Common/Common.pro new file mode 100644 index 00000000..4ca1b214 --- /dev/null +++ b/Common/Common.pro @@ -0,0 +1,9 @@ +TEMPLATE = aux +DISTFILES += \ + ProtocolBuffer/account.proto \ + ProtocolBuffer/container.proto + +HEADERS += + + +SOURCES += diff --git a/Common/ProtocolBuffer/GenCode/account.pb.cc b/Common/ProtocolBuffer/GenCode/account.pb.cc index d6b79e19..08d4620d 100644 --- a/Common/ProtocolBuffer/GenCode/account.pb.cc +++ b/Common/ProtocolBuffer/GenCode/account.pb.cc @@ -1,120 +1,134 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: account.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "account.pb.h" #include #include #include -#include #include #include #include #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) -namespace community { +namespace aimber { class LoginDefaultTypeInternal { -public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _Login_default_instance_; - +class UserDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _User_default_instance_; +} // namespace aimber namespace protobuf_account_2eproto { +static void InitDefaultsLogin() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + { + void* ptr = &::aimber::_Login_default_instance_; + new (ptr) ::aimber::Login(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::aimber::Login::InitAsDefaultInstance(); +} -namespace { +::google::protobuf::internal::SCCInfo<0> scc_info_Login = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLogin}, {}}; -::google::protobuf::Metadata file_level_metadata[1]; +static void InitDefaultsUser() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -} // namespace + { + void* ptr = &::aimber::_User_default_instance_; + new (ptr) ::aimber::User(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::aimber::User::InitAsDefaultInstance(); +} -PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField - const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, -}; +::google::protobuf::internal::SCCInfo<0> scc_info_User = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUser}, {}}; -PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField - const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ::google::protobuf::internal::AuxillaryParseTableField(), -}; -PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const - TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, -}; +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_Login.base); + ::google::protobuf::internal::InitSCC(&scc_info_User.base); +} -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { +::google::protobuf::Metadata file_level_metadata[2]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Login, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::Login, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Login, username_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Login, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::Login, username_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::Login, password_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, steamid64_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(Login)}, +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::aimber::Login)}, + { 7, -1, sizeof(::aimber::User)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&_Login_default_instance_), + reinterpret_cast(&::aimber::_Login_default_instance_), + reinterpret_cast(&::aimber::_User_default_instance_), }; -namespace { - void protobuf_AssignDescriptors() { AddDescriptors(); - ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( - "account.proto", schemas, file_default_instances, TableStruct::offsets, factory, + "account.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); - ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); } -} // namespace -void TableStruct::InitDefaultsImpl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::internal::InitProtobufDefaults(); - _Login_default_instance_._instance.DefaultConstruct(); - ::google::protobuf::internal::OnShutdownDestroyMessage( - &_Login_default_instance_);} - -void InitDefaults() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); -} -namespace { void AddDescriptorsImpl() { InitDefaults(); - static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\raccount.proto\022\tcommunity\"+\n\005Login\022\020\n\010u" - "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\tb\006proto3" + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\raccount.proto\022\006aimber\"+\n\005Login\022\020\n\010user" + "name\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"9\n\004User\022\014\n\004" + "name\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tsteamID6" + "4\030\003 \001(\003b\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 79); + descriptor, 135); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "account.proto", &protobuf_RegisterTypes); } -} // anonymous namespace void AddDescriptors() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { @@ -122,12 +136,13 @@ struct StaticDescriptorInitializer { AddDescriptors(); } } static_descriptor_initializer; - } // namespace protobuf_account_2eproto - +namespace aimber { // =================================================================== +void Login::InitAsDefaultInstance() { +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Login::kUsernameFieldNumber; const int Login::kPasswordFieldNumber; @@ -135,16 +150,14 @@ const int Login::kPasswordFieldNumber; Login::Login() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_account_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_account_2eproto::scc_info_Login.base); SharedCtor(); - // @@protoc_insertion_point(constructor:community.Login) + // @@protoc_insertion_point(constructor:aimber.Login) } Login::Login(const Login& from) : ::google::protobuf::Message(), - _internal_metadata_(NULL), - _cached_size_(0) { + _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.username().size() > 0) { @@ -154,17 +167,16 @@ Login::Login(const Login& from) if (from.password().size() > 0) { password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); } - // @@protoc_insertion_point(copy_constructor:community.Login) + // @@protoc_insertion_point(copy_constructor:aimber.Login) } void Login::SharedCtor() { username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _cached_size_ = 0; } Login::~Login() { - // @@protoc_insertion_point(destructor:community.Login) + // @@protoc_insertion_point(destructor:aimber.Login) SharedDtor(); } @@ -174,30 +186,21 @@ void Login::SharedDtor() { } void Login::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Login::descriptor() { - protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; + ::protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Login& Login::default_instance() { - protobuf_account_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_account_2eproto::scc_info_Login.base); return *internal_default_instance(); } -Login* Login::New(::google::protobuf::Arena* arena) const { - Login* n = new Login; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void Login::Clear() { -// @@protoc_insertion_point(message_clear_start:community.Login) +// @@protoc_insertion_point(message_clear_start:aimber.Login) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -211,9 +214,9 @@ bool Login::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:community.Login) + // @@protoc_insertion_point(parse_start:aimber.Login) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { @@ -226,7 +229,7 @@ bool Login::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->username().data(), static_cast(this->username().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "community.Login.username")); + "aimber.Login.username")); } else { goto handle_unusual; } @@ -242,7 +245,7 @@ bool Login::MergePartialFromCodedStream( DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->password().data(), static_cast(this->password().length()), ::google::protobuf::internal::WireFormatLite::PARSE, - "community.Login.password")); + "aimber.Login.password")); } else { goto handle_unusual; } @@ -261,17 +264,17 @@ bool Login::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:community.Login) + // @@protoc_insertion_point(parse_success:aimber.Login) return true; failure: - // @@protoc_insertion_point(parse_failure:community.Login) + // @@protoc_insertion_point(parse_failure:aimber.Login) return false; #undef DO_ } void Login::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:community.Login) + // @@protoc_insertion_point(serialize_start:aimber.Login) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -280,7 +283,7 @@ void Login::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->username().data(), static_cast(this->username().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "community.Login.username"); + "aimber.Login.username"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->username(), output); } @@ -290,7 +293,7 @@ void Login::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->password().data(), static_cast(this->password().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "community.Login.password"); + "aimber.Login.password"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->password(), output); } @@ -299,13 +302,13 @@ void Login::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } - // @@protoc_insertion_point(serialize_end:community.Login) + // @@protoc_insertion_point(serialize_end:aimber.Login) } ::google::protobuf::uint8* Login::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:community.Login) + // @@protoc_insertion_point(serialize_to_array_start:aimber.Login) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -314,7 +317,7 @@ void Login::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->username().data(), static_cast(this->username().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "community.Login.username"); + "aimber.Login.username"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->username(), target); @@ -325,7 +328,7 @@ void Login::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->password().data(), static_cast(this->password().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "community.Login.password"); + "aimber.Login.password"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->password(), target); @@ -335,12 +338,12 @@ void Login::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } - // @@protoc_insertion_point(serialize_to_array_end:community.Login) + // @@protoc_insertion_point(serialize_to_array_end:aimber.Login) return target; } size_t Login::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:community.Login) +// @@protoc_insertion_point(message_byte_size_start:aimber.Login) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { @@ -363,29 +366,27 @@ size_t Login::ByteSizeLong() const { } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } void Login::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:community.Login) +// @@protoc_insertion_point(generalized_merge_from_start:aimber.Login) GOOGLE_DCHECK_NE(&from, this); const Login* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:community.Login) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:aimber.Login) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:community.Login) + // @@protoc_insertion_point(generalized_merge_from_cast_success:aimber.Login) MergeFrom(*source); } } void Login::MergeFrom(const Login& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:community.Login) +// @@protoc_insertion_point(class_specific_merge_from_start:aimber.Login) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -402,14 +403,14 @@ void Login::MergeFrom(const Login& from) { } void Login::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:community.Login) +// @@protoc_insertion_point(generalized_copy_from_start:aimber.Login) if (&from == this) return; Clear(); MergeFrom(from); } void Login::CopyFrom(const Login& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:community.Login) +// @@protoc_insertion_point(class_specific_copy_from_start:aimber.Login) if (&from == this) return; Clear(); MergeFrom(from); @@ -425,130 +426,369 @@ void Login::Swap(Login* other) { } void Login::InternalSwap(Login* other) { using std::swap; - username_.Swap(&other->username_); - password_.Swap(&other->password_); + username_.Swap(&other->username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata Login::GetMetadata() const { protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages]; + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// Login -// string username = 1; -void Login::clear_username() { - username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +// =================================================================== + +void User::InitAsDefaultInstance() { } -const ::std::string& Login::username() const { - // @@protoc_insertion_point(field_get:community.Login.username) - return username_.GetNoArena(); +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int User::kNameFieldNumber; +const int User::kPasswordFieldNumber; +const int User::kSteamID64FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +User::User() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_account_2eproto::scc_info_User.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:aimber.User) } -void Login::set_username(const ::std::string& value) { - - username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:community.Login.username) -} -#if LANG_CXX11 -void Login::set_username(::std::string&& value) { - - username_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:community.Login.username) -} -#endif -void Login::set_username(const char* value) { - GOOGLE_DCHECK(value != NULL); - - username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:community.Login.username) -} -void Login::set_username(const char* value, size_t size) { - - username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:community.Login.username) -} -::std::string* Login::mutable_username() { - - // @@protoc_insertion_point(field_mutable:community.Login.username) - return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* Login::release_username() { - // @@protoc_insertion_point(field_release:community.Login.username) - - return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void Login::set_allocated_username(::std::string* username) { - if (username != NULL) { - - } else { - +User::User(const User& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } - username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username); - // @@protoc_insertion_point(field_set_allocated:community.Login.username) + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.password().size() > 0) { + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); + } + steamid64_ = from.steamid64_; + // @@protoc_insertion_point(copy_constructor:aimber.User) } -// string password = 2; -void Login::clear_password() { +void User::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + steamid64_ = GOOGLE_LONGLONG(0); +} + +User::~User() { + // @@protoc_insertion_point(destructor:aimber.User) + SharedDtor(); +} + +void User::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void User::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* User::descriptor() { + ::protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const User& User::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_account_2eproto::scc_info_User.base); + return *internal_default_instance(); +} + + +void User::Clear() { +// @@protoc_insertion_point(message_clear_start:aimber.User) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -const ::std::string& Login::password() const { - // @@protoc_insertion_point(field_get:community.Login.password) - return password_.GetNoArena(); -} -void Login::set_password(const ::std::string& value) { - - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:community.Login.password) -} -#if LANG_CXX11 -void Login::set_password(::std::string&& value) { - - password_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:community.Login.password) -} -#endif -void Login::set_password(const char* value) { - GOOGLE_DCHECK(value != NULL); - - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:community.Login.password) -} -void Login::set_password(const char* value, size_t size) { - - password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:community.Login.password) -} -::std::string* Login::mutable_password() { - - // @@protoc_insertion_point(field_mutable:community.Login.password) - return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -::std::string* Login::release_password() { - // @@protoc_insertion_point(field_release:community.Login.password) - - return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -void Login::set_allocated_password(::std::string* password) { - if (password != NULL) { - - } else { - - } - password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); - // @@protoc_insertion_point(field_set_allocated:community.Login.password) + steamid64_ = GOOGLE_LONGLONG(0); + _internal_metadata_.Clear(); +} + +bool User::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:aimber.User) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "aimber.User.name")); + } else { + goto handle_unusual; + } + break; + } + + // string password = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_password())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "aimber.User.password")); + } else { + goto handle_unusual; + } + break; + } + + // int64 steamID64 = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &steamid64_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:aimber.User) + return true; +failure: + // @@protoc_insertion_point(parse_failure:aimber.User) + return false; +#undef DO_ +} + +void User::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:aimber.User) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string password = 2; + if (this->password().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.password"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->password(), output); + } + + // int64 steamID64 = 3; + if (this->steamid64() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->steamid64(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:aimber.User) +} + +::google::protobuf::uint8* User::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:aimber.User) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string password = 2; + if (this->password().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.password"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->password(), target); + } + + // int64 steamID64 = 3; + if (this->steamid64() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->steamid64(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:aimber.User) + return target; +} + +size_t User::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:aimber.User) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string password = 2; + if (this->password().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); + } + + // int64 steamID64 = 3; + if (this->steamid64() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->steamid64()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void User::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:aimber.User) + GOOGLE_DCHECK_NE(&from, this); + const User* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:aimber.User) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:aimber.User) + MergeFrom(*source); + } +} + +void User::MergeFrom(const User& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:aimber.User) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.password().size() > 0) { + + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); + } + if (from.steamid64() != 0) { + set_steamid64(from.steamid64()); + } +} + +void User::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:aimber.User) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void User::CopyFrom(const User& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:aimber.User) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool User::IsInitialized() const { + return true; +} + +void User::Swap(User* other) { + if (other == this) return; + InternalSwap(other); +} +void User::InternalSwap(User* other) { + using std::swap; + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(steamid64_, other->steamid64_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata User::GetMetadata() const { + protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages]; } -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - -} // namespace community +} // namespace aimber +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::aimber::Login* Arena::CreateMaybeMessage< ::aimber::Login >(Arena* arena) { + return Arena::CreateInternal< ::aimber::Login >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::aimber::User* Arena::CreateMaybeMessage< ::aimber::User >(Arena* arena) { + return Arena::CreateInternal< ::aimber::User >(arena); +} +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) diff --git a/Common/ProtocolBuffer/GenCode/account.pb.h b/Common/ProtocolBuffer/GenCode/account.pb.h index 7b2881d6..5a9b7a13 100644 --- a/Common/ProtocolBuffer/GenCode/account.pb.h +++ b/Common/ProtocolBuffer/GenCode/account.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: account.proto -#ifndef PROTOBUF_account_2eproto__INCLUDED -#define PROTOBUF_account_2eproto__INCLUDED +#ifndef PROTOBUF_INCLUDED_account_2eproto +#define PROTOBUF_INCLUDED_account_2eproto #include #include -#if GOOGLE_PROTOBUF_VERSION < 3004000 +#if GOOGLE_PROTOBUF_VERSION < 3006001 #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 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3006001 < 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. @@ -24,38 +24,46 @@ #include #include #include +#include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) -namespace community { -class Login; -class LoginDefaultTypeInternal; -extern LoginDefaultTypeInternal _Login_default_instance_; -} // namespace community - -namespace community { +#define PROTOBUF_INTERNAL_EXPORT_protobuf_account_2eproto namespace protobuf_account_2eproto { -// Internal implementation detail -- do not call these. +// Internal implementation detail -- do not use these members. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[]; - static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::ParseTable schema[2]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static void InitDefaultsImpl(); + static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors(); -void InitDefaults(); } // namespace protobuf_account_2eproto +namespace aimber { +class Login; +class LoginDefaultTypeInternal; +extern LoginDefaultTypeInternal _Login_default_instance_; +class User; +class UserDefaultTypeInternal; +extern UserDefaultTypeInternal _User_default_instance_; +} // namespace aimber +namespace google { +namespace protobuf { +template<> ::aimber::Login* Arena::CreateMaybeMessage<::aimber::Login>(Arena*); +template<> ::aimber::User* Arena::CreateMaybeMessage<::aimber::User>(Arena*); +} // namespace protobuf +} // namespace google +namespace aimber { // =================================================================== -class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:community.Login) */ { +class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:aimber.Login) */ { public: Login(); virtual ~Login(); @@ -84,11 +92,12 @@ class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(cla static const ::google::protobuf::Descriptor* descriptor(); static const Login& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Login* internal_default_instance() { return reinterpret_cast( &_Login_default_instance_); } - static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + static constexpr int kIndexInFileMessages = 0; void Swap(Login* other); @@ -98,28 +107,33 @@ class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(cla // implements Message ---------------------------------------------- - inline Login* New() const PROTOBUF_FINAL { return New(NULL); } + inline Login* New() const final { + return CreateMaybeMessage(NULL); + } - Login* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + Login* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Login& from); void MergeFrom(const Login& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(Login* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -130,7 +144,7 @@ class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(cla } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -164,21 +178,153 @@ class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(cla ::std::string* release_password(); void set_allocated_password(::std::string* password); - // @@protoc_insertion_point(class_scope:community.Login) + // @@protoc_insertion_point(class_scope:aimber.Login) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::ArenaStringPtr username_; ::google::protobuf::internal::ArenaStringPtr password_; - mutable int _cached_size_; - friend struct protobuf_account_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_account_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class User : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:aimber.User) */ { + public: + User(); + virtual ~User(); + + User(const User& from); + + inline User& operator=(const User& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + User(User&& from) noexcept + : User() { + *this = ::std::move(from); + } + + inline User& operator=(User&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const User& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const User* internal_default_instance() { + return reinterpret_cast( + &_User_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(User* other); + friend void swap(User& a, User& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline User* New() const final { + return CreateMaybeMessage(NULL); + } + + User* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const User& from); + void MergeFrom(const User& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(User* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string password = 2; + void clear_password(); + static const int kPasswordFieldNumber = 2; + const ::std::string& password() const; + void set_password(const ::std::string& value); + #if LANG_CXX11 + void set_password(::std::string&& value); + #endif + void set_password(const char* value); + void set_password(const char* value, size_t size); + ::std::string* mutable_password(); + ::std::string* release_password(); + void set_allocated_password(::std::string* password); + + // int64 steamID64 = 3; + void clear_steamid64(); + static const int kSteamID64FieldNumber = 3; + ::google::protobuf::int64 steamid64() const; + void set_steamid64(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:aimber.User) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr password_; + ::google::protobuf::int64 steamid64_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_account_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" @@ -190,41 +336,41 @@ inline void Login::clear_username() { username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& Login::username() const { - // @@protoc_insertion_point(field_get:community.Login.username) + // @@protoc_insertion_point(field_get:aimber.Login.username) return username_.GetNoArena(); } inline void Login::set_username(const ::std::string& value) { username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:community.Login.username) + // @@protoc_insertion_point(field_set:aimber.Login.username) } #if LANG_CXX11 inline void Login::set_username(::std::string&& value) { username_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:community.Login.username) + // @@protoc_insertion_point(field_set_rvalue:aimber.Login.username) } #endif inline void Login::set_username(const char* value) { GOOGLE_DCHECK(value != NULL); username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:community.Login.username) + // @@protoc_insertion_point(field_set_char:aimber.Login.username) } inline void Login::set_username(const char* value, size_t size) { username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:community.Login.username) + // @@protoc_insertion_point(field_set_pointer:aimber.Login.username) } inline ::std::string* Login::mutable_username() { - // @@protoc_insertion_point(field_mutable:community.Login.username) + // @@protoc_insertion_point(field_mutable:aimber.Login.username) return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Login::release_username() { - // @@protoc_insertion_point(field_release:community.Login.username) + // @@protoc_insertion_point(field_release:aimber.Login.username) return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -235,7 +381,7 @@ inline void Login::set_allocated_username(::std::string* username) { } username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username); - // @@protoc_insertion_point(field_set_allocated:community.Login.username) + // @@protoc_insertion_point(field_set_allocated:aimber.Login.username) } // string password = 2; @@ -243,41 +389,41 @@ inline void Login::clear_password() { password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline const ::std::string& Login::password() const { - // @@protoc_insertion_point(field_get:community.Login.password) + // @@protoc_insertion_point(field_get:aimber.Login.password) return password_.GetNoArena(); } inline void Login::set_password(const ::std::string& value) { password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:community.Login.password) + // @@protoc_insertion_point(field_set:aimber.Login.password) } #if LANG_CXX11 inline void Login::set_password(::std::string&& value) { password_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:community.Login.password) + // @@protoc_insertion_point(field_set_rvalue:aimber.Login.password) } #endif inline void Login::set_password(const char* value) { GOOGLE_DCHECK(value != NULL); password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:community.Login.password) + // @@protoc_insertion_point(field_set_char:aimber.Login.password) } inline void Login::set_password(const char* value, size_t size) { password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:community.Login.password) + // @@protoc_insertion_point(field_set_pointer:aimber.Login.password) } inline ::std::string* Login::mutable_password() { - // @@protoc_insertion_point(field_mutable:community.Login.password) + // @@protoc_insertion_point(field_mutable:aimber.Login.password) return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Login::release_password() { - // @@protoc_insertion_point(field_release:community.Login.password) + // @@protoc_insertion_point(field_release:aimber.Login.password) return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } @@ -288,19 +434,143 @@ inline void Login::set_allocated_password(::std::string* password) { } password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); - // @@protoc_insertion_point(field_set_allocated:community.Login.password) + // @@protoc_insertion_point(field_set_allocated:aimber.Login.password) +} + +// ------------------------------------------------------------------- + +// User + +// string name = 1; +inline void User::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& User::name() const { + // @@protoc_insertion_point(field_get:aimber.User.name) + return name_.GetNoArena(); +} +inline void User::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:aimber.User.name) +} +#if LANG_CXX11 +inline void User::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:aimber.User.name) +} +#endif +inline void User::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:aimber.User.name) +} +inline void User::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:aimber.User.name) +} +inline ::std::string* User::mutable_name() { + + // @@protoc_insertion_point(field_mutable:aimber.User.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* User::release_name() { + // @@protoc_insertion_point(field_release:aimber.User.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void User::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:aimber.User.name) +} + +// string password = 2; +inline void User::clear_password() { + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& User::password() const { + // @@protoc_insertion_point(field_get:aimber.User.password) + return password_.GetNoArena(); +} +inline void User::set_password(const ::std::string& value) { + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:aimber.User.password) +} +#if LANG_CXX11 +inline void User::set_password(::std::string&& value) { + + password_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:aimber.User.password) +} +#endif +inline void User::set_password(const char* value) { + GOOGLE_DCHECK(value != NULL); + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:aimber.User.password) +} +inline void User::set_password(const char* value, size_t size) { + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:aimber.User.password) +} +inline ::std::string* User::mutable_password() { + + // @@protoc_insertion_point(field_mutable:aimber.User.password) + return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* User::release_password() { + // @@protoc_insertion_point(field_release:aimber.User.password) + + return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void User::set_allocated_password(::std::string* password) { + if (password != NULL) { + + } else { + + } + password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); + // @@protoc_insertion_point(field_set_allocated:aimber.User.password) +} + +// int64 steamID64 = 3; +inline void User::clear_steamid64() { + steamid64_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 User::steamid64() const { + // @@protoc_insertion_point(field_get:aimber.User.steamID64) + return steamid64_; +} +inline void User::set_steamid64(::google::protobuf::int64 value) { + + steamid64_ = value; + // @@protoc_insertion_point(field_set:aimber.User.steamID64) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) - -} // namespace community +} // namespace aimber // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_account_2eproto__INCLUDED +#endif // PROTOBUF_INCLUDED_account_2eproto diff --git a/Common/ProtocolBuffer/GenCode/container.pb.cc b/Common/ProtocolBuffer/GenCode/container.pb.cc index c100ee8e..1035885e 100644 --- a/Common/ProtocolBuffer/GenCode/container.pb.cc +++ b/Common/ProtocolBuffer/GenCode/container.pb.cc @@ -1,123 +1,107 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: container.proto -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "container.pb.h" #include #include #include -#include #include #include #include #include #include #include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif // @@protoc_insertion_point(includes) -namespace community { +namespace protobuf_google_2fprotobuf_2fany_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any; +} // namespace protobuf_google_2fprotobuf_2fany_2eproto +namespace aimber { class MessageContainerDefaultTypeInternal { -public: - ::google::protobuf::internal::ExplicitlyConstructed - _instance; + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; } _MessageContainer_default_instance_; - +} // namespace aimber namespace protobuf_container_2eproto { +static void InitDefaultsMessageContainer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + { + void* ptr = &::aimber::_MessageContainer_default_instance_; + new (ptr) ::aimber::MessageContainer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::aimber::MessageContainer::InitAsDefaultInstance(); +} -namespace { +::google::protobuf::internal::SCCInfo<1> scc_info_MessageContainer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageContainer}, { + &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_MessageContainer.base); +} ::google::protobuf::Metadata file_level_metadata[1]; -} // namespace - -PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField - const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, -}; - -PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField - const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - ::google::protobuf::internal::AuxillaryParseTableField(), -}; -PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const - TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, -}; - -const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, _internal_metadata_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::MessageContainer, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageContainer, message_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::MessageContainer, message_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(MessageContainer)}, +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::aimber::MessageContainer)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&_MessageContainer_default_instance_), + reinterpret_cast(&::aimber::_MessageContainer_default_instance_), }; -namespace { - void protobuf_AssignDescriptors() { AddDescriptors(); - ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( - "container.proto", schemas, file_default_instances, TableStruct::offsets, factory, + "container.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } -void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } -} // namespace -void TableStruct::InitDefaultsImpl() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::google::protobuf::internal::InitProtobufDefaults(); - ::google::protobuf::protobuf_google_2fprotobuf_2fany_2eproto::InitDefaults(); - _MessageContainer_default_instance_._instance.DefaultConstruct(); - ::google::protobuf::internal::OnShutdownDestroyMessage( - &_MessageContainer_default_instance_);} - -void InitDefaults() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); -} -namespace { void AddDescriptorsImpl() { InitDefaults(); - static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { - "\n\017container.proto\022\tcommunity\032\031google/pro" - "tobuf/any.proto\"9\n\020MessageContainer\022%\n\007m" - "essage\030\001 \003(\0132\024.google.protobuf.Anyb\006prot" - "o3" + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\017container.proto\022\006aimber\032\031google/protob" + "uf/any.proto\"9\n\020MessageContainer\022%\n\007mess" + "age\030\001 \003(\0132\024.google.protobuf.Anyb\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - descriptor, 122); + descriptor, 119); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "container.proto", &protobuf_RegisterTypes); - ::google::protobuf::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); + ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); } -} // anonymous namespace void AddDescriptors() { - static GOOGLE_PROTOBUF_DECLARE_ONCE(once); - ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { @@ -125,39 +109,40 @@ struct StaticDescriptorInitializer { AddDescriptors(); } } static_descriptor_initializer; - } // namespace protobuf_container_2eproto - +namespace aimber { // =================================================================== +void MessageContainer::InitAsDefaultInstance() { +} +void MessageContainer::clear_message() { + message_.Clear(); +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int MessageContainer::kMessageFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MessageContainer::MessageContainer() : ::google::protobuf::Message(), _internal_metadata_(NULL) { - if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { - protobuf_container_2eproto::InitDefaults(); - } + ::google::protobuf::internal::InitSCC( + &protobuf_container_2eproto::scc_info_MessageContainer.base); SharedCtor(); - // @@protoc_insertion_point(constructor:community.MessageContainer) + // @@protoc_insertion_point(constructor:aimber.MessageContainer) } MessageContainer::MessageContainer(const MessageContainer& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), - message_(from.message_), - _cached_size_(0) { + message_(from.message_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:community.MessageContainer) + // @@protoc_insertion_point(copy_constructor:aimber.MessageContainer) } void MessageContainer::SharedCtor() { - _cached_size_ = 0; } MessageContainer::~MessageContainer() { - // @@protoc_insertion_point(destructor:community.MessageContainer) + // @@protoc_insertion_point(destructor:aimber.MessageContainer) SharedDtor(); } @@ -165,30 +150,21 @@ void MessageContainer::SharedDtor() { } void MessageContainer::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ::google::protobuf::Descriptor* MessageContainer::descriptor() { - protobuf_container_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_container_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; + ::protobuf_container_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_container_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const MessageContainer& MessageContainer::default_instance() { - protobuf_container_2eproto::InitDefaults(); + ::google::protobuf::internal::InitSCC(&protobuf_container_2eproto::scc_info_MessageContainer.base); return *internal_default_instance(); } -MessageContainer* MessageContainer::New(::google::protobuf::Arena* arena) const { - MessageContainer* n = new MessageContainer; - if (arena != NULL) { - arena->Own(n); - } - return n; -} void MessageContainer::Clear() { -// @@protoc_insertion_point(message_clear_start:community.MessageContainer) +// @@protoc_insertion_point(message_clear_start:aimber.MessageContainer) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -201,9 +177,9 @@ bool MessageContainer::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - // @@protoc_insertion_point(parse_start:community.MessageContainer) + // @@protoc_insertion_point(parse_start:aimber.MessageContainer) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { @@ -211,7 +187,7 @@ bool MessageContainer::MergePartialFromCodedStream( case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_message())); } else { goto handle_unusual; @@ -231,17 +207,17 @@ bool MessageContainer::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:community.MessageContainer) + // @@protoc_insertion_point(parse_success:aimber.MessageContainer) return true; failure: - // @@protoc_insertion_point(parse_failure:community.MessageContainer) + // @@protoc_insertion_point(parse_failure:aimber.MessageContainer) return false; #undef DO_ } void MessageContainer::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:community.MessageContainer) + // @@protoc_insertion_point(serialize_start:aimber.MessageContainer) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -249,20 +225,22 @@ void MessageContainer::SerializeWithCachedSizes( for (unsigned int i = 0, n = static_cast(this->message_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->message(static_cast(i)), output); + 1, + this->message(static_cast(i)), + output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } - // @@protoc_insertion_point(serialize_end:community.MessageContainer) + // @@protoc_insertion_point(serialize_end:aimber.MessageContainer) } ::google::protobuf::uint8* MessageContainer::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused - // @@protoc_insertion_point(serialize_to_array_start:community.MessageContainer) + // @@protoc_insertion_point(serialize_to_array_start:aimber.MessageContainer) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -270,7 +248,7 @@ void MessageContainer::SerializeWithCachedSizes( for (unsigned int i = 0, n = static_cast(this->message_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageNoVirtualToArray( + InternalWriteMessageToArray( 1, this->message(static_cast(i)), deterministic, target); } @@ -278,12 +256,12 @@ void MessageContainer::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } - // @@protoc_insertion_point(serialize_to_array_end:community.MessageContainer) + // @@protoc_insertion_point(serialize_to_array_end:aimber.MessageContainer) return target; } size_t MessageContainer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:community.MessageContainer) +// @@protoc_insertion_point(message_byte_size_start:aimber.MessageContainer) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { @@ -297,35 +275,33 @@ size_t MessageContainer::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + ::google::protobuf::internal::WireFormatLite::MessageSize( this->message(static_cast(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = cached_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + SetCachedSize(cached_size); return total_size; } void MessageContainer::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:community.MessageContainer) +// @@protoc_insertion_point(generalized_merge_from_start:aimber.MessageContainer) GOOGLE_DCHECK_NE(&from, this); const MessageContainer* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:community.MessageContainer) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:aimber.MessageContainer) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:community.MessageContainer) + // @@protoc_insertion_point(generalized_merge_from_cast_success:aimber.MessageContainer) MergeFrom(*source); } } void MessageContainer::MergeFrom(const MessageContainer& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:community.MessageContainer) +// @@protoc_insertion_point(class_specific_merge_from_start:aimber.MessageContainer) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; @@ -335,14 +311,14 @@ void MessageContainer::MergeFrom(const MessageContainer& from) { } void MessageContainer::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:community.MessageContainer) +// @@protoc_insertion_point(generalized_copy_from_start:aimber.MessageContainer) if (&from == this) return; Clear(); MergeFrom(from); } void MessageContainer::CopyFrom(const MessageContainer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:community.MessageContainer) +// @@protoc_insertion_point(class_specific_copy_from_start:aimber.MessageContainer) if (&from == this) return; Clear(); MergeFrom(from); @@ -358,53 +334,24 @@ void MessageContainer::Swap(MessageContainer* other) { } void MessageContainer::InternalSwap(MessageContainer* other) { using std::swap; - message_.InternalSwap(&other->message_); + CastToBase(&message_)->InternalSwap(CastToBase(&other->message_)); _internal_metadata_.Swap(&other->_internal_metadata_); - swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata MessageContainer::GetMetadata() const { protobuf_container_2eproto::protobuf_AssignDescriptorsOnce(); - return protobuf_container_2eproto::file_level_metadata[kIndexInFileMessages]; + return ::protobuf_container_2eproto::file_level_metadata[kIndexInFileMessages]; } -#if PROTOBUF_INLINE_NOT_IN_HEADERS -// MessageContainer - -// repeated .google.protobuf.Any message = 1; -int MessageContainer::message_size() const { - return message_.size(); -} -void MessageContainer::clear_message() { - message_.Clear(); -} -const ::google::protobuf::Any& MessageContainer::message(int index) const { - // @@protoc_insertion_point(field_get:community.MessageContainer.message) - return message_.Get(index); -} -::google::protobuf::Any* MessageContainer::mutable_message(int index) { - // @@protoc_insertion_point(field_mutable:community.MessageContainer.message) - return message_.Mutable(index); -} -::google::protobuf::Any* MessageContainer::add_message() { - // @@protoc_insertion_point(field_add:community.MessageContainer.message) - return message_.Add(); -} -::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* -MessageContainer::mutable_message() { - // @@protoc_insertion_point(field_mutable_list:community.MessageContainer.message) - return &message_; -} -const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& -MessageContainer::message() const { - // @@protoc_insertion_point(field_list:community.MessageContainer.message) - return message_; -} - -#endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - -} // namespace community +} // namespace aimber +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::aimber::MessageContainer* Arena::CreateMaybeMessage< ::aimber::MessageContainer >(Arena* arena) { + return Arena::CreateInternal< ::aimber::MessageContainer >(arena); +} +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) diff --git a/Common/ProtocolBuffer/GenCode/container.pb.h b/Common/ProtocolBuffer/GenCode/container.pb.h index 754d98f5..9ec3978b 100644 --- a/Common/ProtocolBuffer/GenCode/container.pb.h +++ b/Common/ProtocolBuffer/GenCode/container.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: container.proto -#ifndef PROTOBUF_container_2eproto__INCLUDED -#define PROTOBUF_container_2eproto__INCLUDED +#ifndef PROTOBUF_INCLUDED_container_2eproto +#define PROTOBUF_INCLUDED_container_2eproto #include #include -#if GOOGLE_PROTOBUF_VERSION < 3004000 +#if GOOGLE_PROTOBUF_VERSION < 3006001 #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 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3006001 < 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. @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include // IWYU pragma: export @@ -31,32 +32,35 @@ #include #include // @@protoc_insertion_point(includes) -namespace community { -class MessageContainer; -class MessageContainerDefaultTypeInternal; -extern MessageContainerDefaultTypeInternal _MessageContainer_default_instance_; -} // namespace community - -namespace community { +#define PROTOBUF_INTERNAL_EXPORT_protobuf_container_2eproto namespace protobuf_container_2eproto { -// Internal implementation detail -- do not call these. +// Internal implementation detail -- do not use these members. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[]; - static const ::google::protobuf::uint32 offsets[]; + static const ::google::protobuf::internal::ParseTable schema[1]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static void InitDefaultsImpl(); + static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors(); -void InitDefaults(); } // namespace protobuf_container_2eproto +namespace aimber { +class MessageContainer; +class MessageContainerDefaultTypeInternal; +extern MessageContainerDefaultTypeInternal _MessageContainer_default_instance_; +} // namespace aimber +namespace google { +namespace protobuf { +template<> ::aimber::MessageContainer* Arena::CreateMaybeMessage<::aimber::MessageContainer>(Arena*); +} // namespace protobuf +} // namespace google +namespace aimber { // =================================================================== -class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:community.MessageContainer) */ { +class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:aimber.MessageContainer) */ { public: MessageContainer(); virtual ~MessageContainer(); @@ -85,11 +89,12 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio static const ::google::protobuf::Descriptor* descriptor(); static const MessageContainer& default_instance(); + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MessageContainer* internal_default_instance() { return reinterpret_cast( &_MessageContainer_default_instance_); } - static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = + static constexpr int kIndexInFileMessages = 0; void Swap(MessageContainer* other); @@ -99,28 +104,33 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio // implements Message ---------------------------------------------- - inline MessageContainer* New() const PROTOBUF_FINAL { return New(NULL); } + inline MessageContainer* New() const final { + return CreateMaybeMessage(NULL); + } - MessageContainer* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; - void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; - void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; + MessageContainer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const MessageContainer& from); void MergeFrom(const MessageContainer& from); - void Clear() PROTOBUF_FINAL; - bool IsInitialized() const PROTOBUF_FINAL; + void Clear() final; + bool IsInitialized() const final; - size_t ByteSizeLong() const PROTOBUF_FINAL; + size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; + ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; + ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; - int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + private: void SharedCtor(); void SharedDtor(); - void SetCachedSize(int size) const PROTOBUF_FINAL; + void SetCachedSize(int size) const final; void InternalSwap(MessageContainer* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { @@ -131,7 +141,7 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio } public: - ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -141,28 +151,27 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio int message_size() const; void clear_message(); static const int kMessageFieldNumber = 1; - const ::google::protobuf::Any& message(int index) const; ::google::protobuf::Any* mutable_message(int index); - ::google::protobuf::Any* add_message(); ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* mutable_message(); + const ::google::protobuf::Any& message(int index) const; + ::google::protobuf::Any* add_message(); const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& message() const; - // @@protoc_insertion_point(class_scope:community.MessageContainer) + // @@protoc_insertion_point(class_scope:aimber.MessageContainer) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > message_; - mutable int _cached_size_; - friend struct protobuf_container_2eproto::TableStruct; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_container_2eproto::TableStruct; }; // =================================================================== // =================================================================== -#if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" @@ -173,42 +182,37 @@ class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertio inline int MessageContainer::message_size() const { return message_.size(); } -inline void MessageContainer::clear_message() { - message_.Clear(); -} -inline const ::google::protobuf::Any& MessageContainer::message(int index) const { - // @@protoc_insertion_point(field_get:community.MessageContainer.message) - return message_.Get(index); -} inline ::google::protobuf::Any* MessageContainer::mutable_message(int index) { - // @@protoc_insertion_point(field_mutable:community.MessageContainer.message) + // @@protoc_insertion_point(field_mutable:aimber.MessageContainer.message) return message_.Mutable(index); } -inline ::google::protobuf::Any* MessageContainer::add_message() { - // @@protoc_insertion_point(field_add:community.MessageContainer.message) - return message_.Add(); -} inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* MessageContainer::mutable_message() { - // @@protoc_insertion_point(field_mutable_list:community.MessageContainer.message) + // @@protoc_insertion_point(field_mutable_list:aimber.MessageContainer.message) return &message_; } +inline const ::google::protobuf::Any& MessageContainer::message(int index) const { + // @@protoc_insertion_point(field_get:aimber.MessageContainer.message) + return message_.Get(index); +} +inline ::google::protobuf::Any* MessageContainer::add_message() { + // @@protoc_insertion_point(field_add:aimber.MessageContainer.message) + return message_.Add(); +} inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& MessageContainer::message() const { - // @@protoc_insertion_point(field_list:community.MessageContainer.message) + // @@protoc_insertion_point(field_list:aimber.MessageContainer.message) return message_; } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ -#endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) - -} // namespace community +} // namespace aimber // @@protoc_insertion_point(global_scope) -#endif // PROTOBUF_container_2eproto__INCLUDED +#endif // PROTOBUF_INCLUDED_container_2eproto diff --git a/Common/ProtocolBuffer/GenTools/libprotobuf-lite.dll b/Common/ProtocolBuffer/GenTools/libprotobuf-lite.dll index d6fac1f6..cc6e1378 100644 --- a/Common/ProtocolBuffer/GenTools/libprotobuf-lite.dll +++ b/Common/ProtocolBuffer/GenTools/libprotobuf-lite.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1827ffcf3ef3827ae7f9f4e6189cd88c0ecd9fb01e87c507273844321f42e60c -size 394806 +oid sha256:f60a6280d1531690588fa89639585e2418dbfa2a7a6a9315e2f690329362c2b1 +size 399872 diff --git a/Common/ProtocolBuffer/GenTools/libprotobuf.dll b/Common/ProtocolBuffer/GenTools/libprotobuf.dll index 99e4ae02..7dbd600c 100644 --- a/Common/ProtocolBuffer/GenTools/libprotobuf.dll +++ b/Common/ProtocolBuffer/GenTools/libprotobuf.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:88d99ad5e98290bd27d6c7bec4f1303a2cc6924f565e3644a01aac60bf9b04bd -size 2461906 +oid sha256:6a632a75d0aa646d4acd68e765ac83277382e373d28c859a3cf8cd36d7948ba0 +size 2671104 diff --git a/Common/ProtocolBuffer/GenTools/libprotoc.dll b/Common/ProtocolBuffer/GenTools/libprotoc.dll index 6c6580ea..3cbd4f90 100644 --- a/Common/ProtocolBuffer/GenTools/libprotoc.dll +++ b/Common/ProtocolBuffer/GenTools/libprotoc.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2ab3641bfc9badfa3365f80305eb051648ce6bc3044a2c2df1bcd32bb508bea -size 2564731 +oid sha256:8ad7c5ae7cc4713785603caaf7488c1b027584a403722f653b9e2750385e6b68 +size 1881600 diff --git a/Common/ProtocolBuffer/GenTools/protoc.exe b/Common/ProtocolBuffer/GenTools/protoc.exe index 75ba761b..742b66ca 100644 --- a/Common/ProtocolBuffer/GenTools/protoc.exe +++ b/Common/ProtocolBuffer/GenTools/protoc.exe @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4505e4a3643d761e760d7ead2c2492cc9461ce532bd51b8f2c486902bdf0e8d3 -size 30157 +oid sha256:f5c2d2a57b67c6b57ff8f8c1bd3f43f8b835d6150d9ac788d40f71098ceb3719 +size 21504 diff --git a/Common/ProtocolBuffer/account.proto b/Common/ProtocolBuffer/account.proto index 28641853..7a723937 100644 --- a/Common/ProtocolBuffer/account.proto +++ b/Common/ProtocolBuffer/account.proto @@ -1,8 +1,14 @@ syntax = "proto3"; -package community; +package aimber; message Login { string username = 1; string password = 2; -} \ No newline at end of file +} + +message User { + string name = 1; + string password = 2; + int64 steamID64 = 3; +} diff --git a/Common/ProtocolBuffer/character.proto b/Common/ProtocolBuffer/character.proto deleted file mode 100644 index e46a5a1c..00000000 --- a/Common/ProtocolBuffer/character.proto +++ /dev/null @@ -1,3 +0,0 @@ -syntax = "proto3"; - -package community; diff --git a/Common/ProtocolBuffer/container.proto b/Common/ProtocolBuffer/container.proto index d8ae14cc..efb2c11f 100644 --- a/Common/ProtocolBuffer/container.proto +++ b/Common/ProtocolBuffer/container.proto @@ -2,9 +2,9 @@ syntax = "proto3"; import "google/protobuf/any.proto"; -package community; +package aimber; message MessageContainer { repeated google.protobuf.Any message = 1; -} \ No newline at end of file +} diff --git a/Common/ProtocolBuffer/google/protobuf/bin/libprotobuf.lib b/Common/ProtocolBuffer/google/protobuf/bin/libprotobuf.lib new file mode 100644 index 00000000..775deeed --- /dev/null +++ b/Common/ProtocolBuffer/google/protobuf/bin/libprotobuf.lib @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0bdb52f17e33a776f0135ecd7bf8a18ccf014afb3549ac8dd8798251b13f2b +size 3576344 diff --git a/Common/ProtocolBuffer/google/protobuf/desktop.ini b/Common/ProtocolBuffer/google/protobuf/desktop.ini new file mode 100644 index 00000000..1a856bf7 --- /dev/null +++ b/Common/ProtocolBuffer/google/protobuf/desktop.ini @@ -0,0 +1,2 @@ +[LocalizedFileNames] +libprotobuf.dll=@libprotobuf.dll,0 diff --git a/Common/ProtocolBuffer/google/protobuf/libprotobuf.dll b/Common/ProtocolBuffer/google/protobuf/libprotobuf.dll new file mode 100644 index 00000000..7dbd600c --- /dev/null +++ b/Common/ProtocolBuffer/google/protobuf/libprotobuf.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a632a75d0aa646d4acd68e765ac83277382e373d28c859a3cf8cd36d7948ba0 +size 2671104 diff --git a/Common/ProtocolBuffer/google/protobuf/libprotobuf.lib b/Common/ProtocolBuffer/google/protobuf/libprotobuf.lib new file mode 100644 index 00000000..775deeed --- /dev/null +++ b/Common/ProtocolBuffer/google/protobuf/libprotobuf.lib @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0bdb52f17e33a776f0135ecd7bf8a18ccf014afb3549ac8dd8798251b13f2b +size 3576344 diff --git a/Common/ProtocolBuffer/google/protobuf/libprotobufd.dll b/Common/ProtocolBuffer/google/protobuf/libprotobufd.dll new file mode 100644 index 00000000..b91fe0bd --- /dev/null +++ b/Common/ProtocolBuffer/google/protobuf/libprotobufd.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c96cd9bfc6ccbee21eaf465f3936a3610baf32a8f6fd9b1f148f529efbebd64 +size 9250304 diff --git a/Common/ProtocolBuffer/google/protobuf/libprotobufd.lib b/Common/ProtocolBuffer/google/protobuf/libprotobufd.lib new file mode 100644 index 00000000..275c50cd --- /dev/null +++ b/Common/ProtocolBuffer/google/protobuf/libprotobufd.lib @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8fe50e2fa82c2891cbdacea234f8eff406309fff1f1e42a581042e6cf6de8f7 +size 3583332 diff --git a/Common/ProtocolBuffer/world.proto b/Common/ProtocolBuffer/world.proto deleted file mode 100644 index e46a5a1c..00000000 --- a/Common/ProtocolBuffer/world.proto +++ /dev/null @@ -1,3 +0,0 @@ -syntax = "proto3"; - -package community; diff --git a/ProtocolBuffers/ProtocolBuffers.pro b/ProtocolBuffers/ProtocolBuffers.pro new file mode 100644 index 00000000..e69de29b diff --git a/ScreenPlay.pro b/ScreenPlay.pro index e801d656..04cc9a59 100644 --- a/ScreenPlay.pro +++ b/ScreenPlay.pro @@ -8,9 +8,11 @@ SUBDIRS = \ ScreenPlay/ThirdParty/stomt-qt-sdk/sdk/stomt-qt-sdk.pro \ ScreenPlayWidget/ScreenPlayWidget.pro \ ScreenPlayWorkshop/ScreenPlayWorkshop.pro \ - ScreenPlayServer + ScreenPlayServer \ + Common/Common.pro ScreenPlayWindow.depends = ScreenPlaySDK ScreenPlayWidget.depends = ScreenPlaySDK ScreenPlay.depends = qt-google-analytics ScreenPlay.depends = ScreenPlayWorkshop + diff --git a/ScreenPlayWidget/ScreenPlayWidget.pro b/ScreenPlayWidget/ScreenPlayWidget.pro index 76b3a4ed..349724be 100644 --- a/ScreenPlayWidget/ScreenPlayWidget.pro +++ b/ScreenPlayWidget/ScreenPlayWidget.pro @@ -1,4 +1,4 @@ -QT += quick qml quickcontrols2 core charts widgets gui +QT += quick qml quickcontrols2 core widgets gui CONFIG += c++17 CONFIG += qtquickcompiler # The following define makes your compiler emit warnings if you use diff --git a/ScreenPlayWorkshop/screenplayworkshop.pro b/ScreenPlayWorkshop/screenplayworkshop.pro index 7d09befc..31f2fd13 100644 --- a/ScreenPlayWorkshop/screenplayworkshop.pro +++ b/ScreenPlayWorkshop/screenplayworkshop.pro @@ -4,3 +4,4 @@ SUBDIRS = \ example/WorkshopExample.pro WorkshopExample.depends = ScreenPlayWorkshop + diff --git a/ScreenPlayWorkshop/workshopsdk/ScreenPlayWorkshop.pro b/ScreenPlayWorkshop/workshopsdk/ScreenPlayWorkshop.pro index 454d6e6f..96d26fad 100644 --- a/ScreenPlayWorkshop/workshopsdk/ScreenPlayWorkshop.pro +++ b/ScreenPlayWorkshop/workshopsdk/ScreenPlayWorkshop.pro @@ -10,12 +10,16 @@ uri = net.aimber.workshop SOURCES += \ screenplayworkshop_plugin.cpp \ workshop.cpp \ - aimberapi.cpp + aimberapi.cpp \ + account.pb.cc \ + container.pb.cc HEADERS += \ screenplayworkshop_plugin.h \ workshop.h \ - aimberapi.h + aimberapi.h \ + account.pb.h \ + container.pb.h DISTFILES = qmldir @@ -51,7 +55,14 @@ unix { } win32 { - INCLUDEPATH += "..\..\Common\ProtocolBuffer\google\protobuf\" - LIBS += -L"..\..\Common\ProtocolBuffer\google\protobuf\bin" -llibprotobuf.dll + INCLUDEPATH += "C:\Users\DANI\Documents\ScreenPlay\Common\ProtocolBuffer" + LIBS += -L"C:\Users\DANI\Documents\vcpkg\buildtrees\protobuf\x64-windows-rel" -llibprotobuf + #LIBS += -L"C:/Users/DANI/Documents/ScreenPlay/Common/ProtocolBuffer/google/protobuf" -llibprotobuf } +win32:CONFIG(release, debug|release): LIBS += -L$$PWD/workshopsdk/google/protobuf/ -llibprotobuf +else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/workshopsdk/google/protobuf/ -llibprotobufd + +INCLUDEPATH += $$PWD/workshopsdk/google/protobuf +DEPENDPATH += $$PWD/workshopsdk/google/protobuf + diff --git a/ScreenPlayWorkshop/workshopsdk/account.pb.cc b/ScreenPlayWorkshop/workshopsdk/account.pb.cc new file mode 100644 index 00000000..08d4620d --- /dev/null +++ b/ScreenPlayWorkshop/workshopsdk/account.pb.cc @@ -0,0 +1,794 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: account.proto + +#include "account.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace aimber { +class LoginDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _Login_default_instance_; +class UserDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _User_default_instance_; +} // namespace aimber +namespace protobuf_account_2eproto { +static void InitDefaultsLogin() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::aimber::_Login_default_instance_; + new (ptr) ::aimber::Login(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::aimber::Login::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_Login = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLogin}, {}}; + +static void InitDefaultsUser() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::aimber::_User_default_instance_; + new (ptr) ::aimber::User(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::aimber::User::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<0> scc_info_User = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUser}, {}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_Login.base); + ::google::protobuf::internal::InitSCC(&scc_info_User.base); +} + +::google::protobuf::Metadata file_level_metadata[2]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::Login, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::Login, username_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::Login, password_), + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, password_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::User, steamid64_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::aimber::Login)}, + { 7, -1, sizeof(::aimber::User)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::aimber::_Login_default_instance_), + reinterpret_cast(&::aimber::_User_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "account.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\raccount.proto\022\006aimber\"+\n\005Login\022\020\n\010user" + "name\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"9\n\004User\022\014\n\004" + "name\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n\tsteamID6" + "4\030\003 \001(\003b\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 135); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "account.proto", &protobuf_RegisterTypes); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_account_2eproto +namespace aimber { + +// =================================================================== + +void Login::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int Login::kUsernameFieldNumber; +const int Login::kPasswordFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +Login::Login() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_account_2eproto::scc_info_Login.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:aimber.Login) +} +Login::Login(const Login& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.username().size() > 0) { + username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_); + } + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.password().size() > 0) { + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); + } + // @@protoc_insertion_point(copy_constructor:aimber.Login) +} + +void Login::SharedCtor() { + username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +Login::~Login() { + // @@protoc_insertion_point(destructor:aimber.Login) + SharedDtor(); +} + +void Login::SharedDtor() { + username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void Login::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* Login::descriptor() { + ::protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const Login& Login::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_account_2eproto::scc_info_Login.base); + return *internal_default_instance(); +} + + +void Login::Clear() { +// @@protoc_insertion_point(message_clear_start:aimber.Login) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +bool Login::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:aimber.Login) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string username = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_username())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->username().data(), static_cast(this->username().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "aimber.Login.username")); + } else { + goto handle_unusual; + } + break; + } + + // string password = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_password())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "aimber.Login.password")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:aimber.Login) + return true; +failure: + // @@protoc_insertion_point(parse_failure:aimber.Login) + return false; +#undef DO_ +} + +void Login::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:aimber.Login) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string username = 1; + if (this->username().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->username().data(), static_cast(this->username().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.Login.username"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->username(), output); + } + + // string password = 2; + if (this->password().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.Login.password"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->password(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:aimber.Login) +} + +::google::protobuf::uint8* Login::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:aimber.Login) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string username = 1; + if (this->username().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->username().data(), static_cast(this->username().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.Login.username"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->username(), target); + } + + // string password = 2; + if (this->password().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.Login.password"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->password(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:aimber.Login) + return target; +} + +size_t Login::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:aimber.Login) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string username = 1; + if (this->username().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->username()); + } + + // string password = 2; + if (this->password().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Login::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:aimber.Login) + GOOGLE_DCHECK_NE(&from, this); + const Login* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:aimber.Login) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:aimber.Login) + MergeFrom(*source); + } +} + +void Login::MergeFrom(const Login& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:aimber.Login) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.username().size() > 0) { + + username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.username_); + } + if (from.password().size() > 0) { + + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); + } +} + +void Login::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:aimber.Login) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void Login::CopyFrom(const Login& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:aimber.Login) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Login::IsInitialized() const { + return true; +} + +void Login::Swap(Login* other) { + if (other == this) return; + InternalSwap(other); +} +void Login::InternalSwap(Login* other) { + using std::swap; + username_.Swap(&other->username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata Login::GetMetadata() const { + protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// =================================================================== + +void User::InitAsDefaultInstance() { +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int User::kNameFieldNumber; +const int User::kPasswordFieldNumber; +const int User::kSteamID64FieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +User::User() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_account_2eproto::scc_info_User.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:aimber.User) +} +User::User(const User& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.name().size() > 0) { + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.password().size() > 0) { + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); + } + steamid64_ = from.steamid64_; + // @@protoc_insertion_point(copy_constructor:aimber.User) +} + +void User::SharedCtor() { + name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + steamid64_ = GOOGLE_LONGLONG(0); +} + +User::~User() { + // @@protoc_insertion_point(destructor:aimber.User) + SharedDtor(); +} + +void User::SharedDtor() { + name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} + +void User::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* User::descriptor() { + ::protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const User& User::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_account_2eproto::scc_info_User.base); + return *internal_default_instance(); +} + + +void User::Clear() { +// @@protoc_insertion_point(message_clear_start:aimber.User) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + steamid64_ = GOOGLE_LONGLONG(0); + _internal_metadata_.Clear(); +} + +bool User::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:aimber.User) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // string name = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_name())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "aimber.User.name")); + } else { + goto handle_unusual; + } + break; + } + + // string password = 2; + case 2: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( + input, this->mutable_password())); + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::PARSE, + "aimber.User.password")); + } else { + goto handle_unusual; + } + break; + } + + // int64 steamID64 = 3; + case 3: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) { + + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + input, &steamid64_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:aimber.User) + return true; +failure: + // @@protoc_insertion_point(parse_failure:aimber.User) + return false; +#undef DO_ +} + +void User::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:aimber.User) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.name"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->name(), output); + } + + // string password = 2; + if (this->password().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.password"); + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->password(), output); + } + + // int64 steamID64 = 3; + if (this->steamid64() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->steamid64(), output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:aimber.User) +} + +::google::protobuf::uint8* User::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:aimber.User) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (this->name().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->name().data(), static_cast(this->name().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.name"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 1, this->name(), target); + } + + // string password = 2; + if (this->password().size() > 0) { + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + this->password().data(), static_cast(this->password().length()), + ::google::protobuf::internal::WireFormatLite::SERIALIZE, + "aimber.User.password"); + target = + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + 2, this->password(), target); + } + + // int64 steamID64 = 3; + if (this->steamid64() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->steamid64(), target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:aimber.User) + return target; +} + +size_t User::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:aimber.User) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // string name = 1; + if (this->name().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->name()); + } + + // string password = 2; + if (this->password().size() > 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->password()); + } + + // int64 steamID64 = 3; + if (this->steamid64() != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::Int64Size( + this->steamid64()); + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void User::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:aimber.User) + GOOGLE_DCHECK_NE(&from, this); + const User* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:aimber.User) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:aimber.User) + MergeFrom(*source); + } +} + +void User::MergeFrom(const User& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:aimber.User) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.name().size() > 0) { + + name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); + } + if (from.password().size() > 0) { + + password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_); + } + if (from.steamid64() != 0) { + set_steamid64(from.steamid64()); + } +} + +void User::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:aimber.User) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void User::CopyFrom(const User& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:aimber.User) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool User::IsInitialized() const { + return true; +} + +void User::Swap(User* other) { + if (other == this) return; + InternalSwap(other); +} +void User::InternalSwap(User* other) { + using std::swap; + name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + password_.Swap(&other->password_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(steamid64_, other->steamid64_); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata User::GetMetadata() const { + protobuf_account_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_account_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace aimber +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::aimber::Login* Arena::CreateMaybeMessage< ::aimber::Login >(Arena* arena) { + return Arena::CreateInternal< ::aimber::Login >(arena); +} +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::aimber::User* Arena::CreateMaybeMessage< ::aimber::User >(Arena* arena) { + return Arena::CreateInternal< ::aimber::User >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/ScreenPlayWorkshop/workshopsdk/account.pb.h b/ScreenPlayWorkshop/workshopsdk/account.pb.h new file mode 100644 index 00000000..5a9b7a13 --- /dev/null +++ b/ScreenPlayWorkshop/workshopsdk/account.pb.h @@ -0,0 +1,576 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: account.proto + +#ifndef PROTOBUF_INCLUDED_account_2eproto +#define PROTOBUF_INCLUDED_account_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#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 3006001 < 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 +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_account_2eproto + +namespace protobuf_account_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[2]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_account_2eproto +namespace aimber { +class Login; +class LoginDefaultTypeInternal; +extern LoginDefaultTypeInternal _Login_default_instance_; +class User; +class UserDefaultTypeInternal; +extern UserDefaultTypeInternal _User_default_instance_; +} // namespace aimber +namespace google { +namespace protobuf { +template<> ::aimber::Login* Arena::CreateMaybeMessage<::aimber::Login>(Arena*); +template<> ::aimber::User* Arena::CreateMaybeMessage<::aimber::User>(Arena*); +} // namespace protobuf +} // namespace google +namespace aimber { + +// =================================================================== + +class Login : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:aimber.Login) */ { + public: + Login(); + virtual ~Login(); + + Login(const Login& from); + + inline Login& operator=(const Login& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + Login(Login&& from) noexcept + : Login() { + *this = ::std::move(from); + } + + inline Login& operator=(Login&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const Login& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const Login* internal_default_instance() { + return reinterpret_cast( + &_Login_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(Login* other); + friend void swap(Login& a, Login& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline Login* New() const final { + return CreateMaybeMessage(NULL); + } + + Login* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const Login& from); + void MergeFrom(const Login& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(Login* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string username = 1; + void clear_username(); + static const int kUsernameFieldNumber = 1; + const ::std::string& username() const; + void set_username(const ::std::string& value); + #if LANG_CXX11 + void set_username(::std::string&& value); + #endif + void set_username(const char* value); + void set_username(const char* value, size_t size); + ::std::string* mutable_username(); + ::std::string* release_username(); + void set_allocated_username(::std::string* username); + + // string password = 2; + void clear_password(); + static const int kPasswordFieldNumber = 2; + const ::std::string& password() const; + void set_password(const ::std::string& value); + #if LANG_CXX11 + void set_password(::std::string&& value); + #endif + void set_password(const char* value); + void set_password(const char* value, size_t size); + ::std::string* mutable_password(); + ::std::string* release_password(); + void set_allocated_password(::std::string* password); + + // @@protoc_insertion_point(class_scope:aimber.Login) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr username_; + ::google::protobuf::internal::ArenaStringPtr password_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_account_2eproto::TableStruct; +}; +// ------------------------------------------------------------------- + +class User : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:aimber.User) */ { + public: + User(); + virtual ~User(); + + User(const User& from); + + inline User& operator=(const User& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + User(User&& from) noexcept + : User() { + *this = ::std::move(from); + } + + inline User& operator=(User&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const User& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const User* internal_default_instance() { + return reinterpret_cast( + &_User_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + void Swap(User* other); + friend void swap(User& a, User& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline User* New() const final { + return CreateMaybeMessage(NULL); + } + + User* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const User& from); + void MergeFrom(const User& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(User* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // string name = 1; + void clear_name(); + static const int kNameFieldNumber = 1; + const ::std::string& name() const; + void set_name(const ::std::string& value); + #if LANG_CXX11 + void set_name(::std::string&& value); + #endif + void set_name(const char* value); + void set_name(const char* value, size_t size); + ::std::string* mutable_name(); + ::std::string* release_name(); + void set_allocated_name(::std::string* name); + + // string password = 2; + void clear_password(); + static const int kPasswordFieldNumber = 2; + const ::std::string& password() const; + void set_password(const ::std::string& value); + #if LANG_CXX11 + void set_password(::std::string&& value); + #endif + void set_password(const char* value); + void set_password(const char* value, size_t size); + ::std::string* mutable_password(); + ::std::string* release_password(); + void set_allocated_password(::std::string* password); + + // int64 steamID64 = 3; + void clear_steamid64(); + static const int kSteamID64FieldNumber = 3; + ::google::protobuf::int64 steamid64() const; + void set_steamid64(::google::protobuf::int64 value); + + // @@protoc_insertion_point(class_scope:aimber.User) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr name_; + ::google::protobuf::internal::ArenaStringPtr password_; + ::google::protobuf::int64 steamid64_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_account_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// Login + +// string username = 1; +inline void Login::clear_username() { + username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Login::username() const { + // @@protoc_insertion_point(field_get:aimber.Login.username) + return username_.GetNoArena(); +} +inline void Login::set_username(const ::std::string& value) { + + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:aimber.Login.username) +} +#if LANG_CXX11 +inline void Login::set_username(::std::string&& value) { + + username_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:aimber.Login.username) +} +#endif +inline void Login::set_username(const char* value) { + GOOGLE_DCHECK(value != NULL); + + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:aimber.Login.username) +} +inline void Login::set_username(const char* value, size_t size) { + + username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:aimber.Login.username) +} +inline ::std::string* Login::mutable_username() { + + // @@protoc_insertion_point(field_mutable:aimber.Login.username) + return username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Login::release_username() { + // @@protoc_insertion_point(field_release:aimber.Login.username) + + return username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Login::set_allocated_username(::std::string* username) { + if (username != NULL) { + + } else { + + } + username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), username); + // @@protoc_insertion_point(field_set_allocated:aimber.Login.username) +} + +// string password = 2; +inline void Login::clear_password() { + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& Login::password() const { + // @@protoc_insertion_point(field_get:aimber.Login.password) + return password_.GetNoArena(); +} +inline void Login::set_password(const ::std::string& value) { + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:aimber.Login.password) +} +#if LANG_CXX11 +inline void Login::set_password(::std::string&& value) { + + password_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:aimber.Login.password) +} +#endif +inline void Login::set_password(const char* value) { + GOOGLE_DCHECK(value != NULL); + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:aimber.Login.password) +} +inline void Login::set_password(const char* value, size_t size) { + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:aimber.Login.password) +} +inline ::std::string* Login::mutable_password() { + + // @@protoc_insertion_point(field_mutable:aimber.Login.password) + return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* Login::release_password() { + // @@protoc_insertion_point(field_release:aimber.Login.password) + + return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void Login::set_allocated_password(::std::string* password) { + if (password != NULL) { + + } else { + + } + password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); + // @@protoc_insertion_point(field_set_allocated:aimber.Login.password) +} + +// ------------------------------------------------------------------- + +// User + +// string name = 1; +inline void User::clear_name() { + name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& User::name() const { + // @@protoc_insertion_point(field_get:aimber.User.name) + return name_.GetNoArena(); +} +inline void User::set_name(const ::std::string& value) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:aimber.User.name) +} +#if LANG_CXX11 +inline void User::set_name(::std::string&& value) { + + name_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:aimber.User.name) +} +#endif +inline void User::set_name(const char* value) { + GOOGLE_DCHECK(value != NULL); + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:aimber.User.name) +} +inline void User::set_name(const char* value, size_t size) { + + name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:aimber.User.name) +} +inline ::std::string* User::mutable_name() { + + // @@protoc_insertion_point(field_mutable:aimber.User.name) + return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* User::release_name() { + // @@protoc_insertion_point(field_release:aimber.User.name) + + return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void User::set_allocated_name(::std::string* name) { + if (name != NULL) { + + } else { + + } + name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); + // @@protoc_insertion_point(field_set_allocated:aimber.User.name) +} + +// string password = 2; +inline void User::clear_password() { + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline const ::std::string& User::password() const { + // @@protoc_insertion_point(field_get:aimber.User.password) + return password_.GetNoArena(); +} +inline void User::set_password(const ::std::string& value) { + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:aimber.User.password) +} +#if LANG_CXX11 +inline void User::set_password(::std::string&& value) { + + password_.SetNoArena( + &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:aimber.User.password) +} +#endif +inline void User::set_password(const char* value) { + GOOGLE_DCHECK(value != NULL); + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:aimber.User.password) +} +inline void User::set_password(const char* value, size_t size) { + + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:aimber.User.password) +} +inline ::std::string* User::mutable_password() { + + // @@protoc_insertion_point(field_mutable:aimber.User.password) + return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline ::std::string* User::release_password() { + // @@protoc_insertion_point(field_release:aimber.User.password) + + return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); +} +inline void User::set_allocated_password(::std::string* password) { + if (password != NULL) { + + } else { + + } + password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); + // @@protoc_insertion_point(field_set_allocated:aimber.User.password) +} + +// int64 steamID64 = 3; +inline void User::clear_steamid64() { + steamid64_ = GOOGLE_LONGLONG(0); +} +inline ::google::protobuf::int64 User::steamid64() const { + // @@protoc_insertion_point(field_get:aimber.User.steamID64) + return steamid64_; +} +inline void User::set_steamid64(::google::protobuf::int64 value) { + + steamid64_ = value; + // @@protoc_insertion_point(field_set:aimber.User.steamID64) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace aimber + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_account_2eproto diff --git a/ScreenPlayWorkshop/workshopsdk/aimberapi.h b/ScreenPlayWorkshop/workshopsdk/aimberapi.h index fe931b1c..7aa41cb9 100644 --- a/ScreenPlayWorkshop/workshopsdk/aimberapi.h +++ b/ScreenPlayWorkshop/workshopsdk/aimberapi.h @@ -3,6 +3,7 @@ #include #include #include +//#include "../../Common/ProtocolBuffer/GenCode/account.pb.h" class AimberAPI : public QObject { Q_OBJECT diff --git a/ScreenPlayWorkshop/workshopsdk/container.pb.cc b/ScreenPlayWorkshop/workshopsdk/container.pb.cc new file mode 100644 index 00000000..1035885e --- /dev/null +++ b/ScreenPlayWorkshop/workshopsdk/container.pb.cc @@ -0,0 +1,357 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: container.proto + +#include "container.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// This is a temporary google only hack +#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS +#include "third_party/protobuf/version.h" +#endif +// @@protoc_insertion_point(includes) + +namespace protobuf_google_2fprotobuf_2fany_2eproto { +extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any; +} // namespace protobuf_google_2fprotobuf_2fany_2eproto +namespace aimber { +class MessageContainerDefaultTypeInternal { + public: + ::google::protobuf::internal::ExplicitlyConstructed + _instance; +} _MessageContainer_default_instance_; +} // namespace aimber +namespace protobuf_container_2eproto { +static void InitDefaultsMessageContainer() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::aimber::_MessageContainer_default_instance_; + new (ptr) ::aimber::MessageContainer(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::aimber::MessageContainer::InitAsDefaultInstance(); +} + +::google::protobuf::internal::SCCInfo<1> scc_info_MessageContainer = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageContainer}, { + &protobuf_google_2fprotobuf_2fany_2eproto::scc_info_Any.base,}}; + +void InitDefaults() { + ::google::protobuf::internal::InitSCC(&scc_info_MessageContainer.base); +} + +::google::protobuf::Metadata file_level_metadata[1]; + +const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::MessageContainer, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::aimber::MessageContainer, message_), +}; +static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::aimber::MessageContainer)}, +}; + +static ::google::protobuf::Message const * const file_default_instances[] = { + reinterpret_cast(&::aimber::_MessageContainer_default_instance_), +}; + +void protobuf_AssignDescriptors() { + AddDescriptors(); + AssignDescriptors( + "container.proto", schemas, file_default_instances, TableStruct::offsets, + file_level_metadata, NULL, NULL); +} + +void protobuf_AssignDescriptorsOnce() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); +} + +void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; +void protobuf_RegisterTypes(const ::std::string&) { + protobuf_AssignDescriptorsOnce(); + ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); +} + +void AddDescriptorsImpl() { + InitDefaults(); + static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { + "\n\017container.proto\022\006aimber\032\031google/protob" + "uf/any.proto\"9\n\020MessageContainer\022%\n\007mess" + "age\030\001 \003(\0132\024.google.protobuf.Anyb\006proto3" + }; + ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( + descriptor, 119); + ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( + "container.proto", &protobuf_RegisterTypes); + ::protobuf_google_2fprotobuf_2fany_2eproto::AddDescriptors(); +} + +void AddDescriptors() { + static ::google::protobuf::internal::once_flag once; + ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); +} +// Force AddDescriptors() to be called at dynamic initialization time. +struct StaticDescriptorInitializer { + StaticDescriptorInitializer() { + AddDescriptors(); + } +} static_descriptor_initializer; +} // namespace protobuf_container_2eproto +namespace aimber { + +// =================================================================== + +void MessageContainer::InitAsDefaultInstance() { +} +void MessageContainer::clear_message() { + message_.Clear(); +} +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int MessageContainer::kMessageFieldNumber; +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 + +MessageContainer::MessageContainer() + : ::google::protobuf::Message(), _internal_metadata_(NULL) { + ::google::protobuf::internal::InitSCC( + &protobuf_container_2eproto::scc_info_MessageContainer.base); + SharedCtor(); + // @@protoc_insertion_point(constructor:aimber.MessageContainer) +} +MessageContainer::MessageContainer(const MessageContainer& from) + : ::google::protobuf::Message(), + _internal_metadata_(NULL), + message_(from.message_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:aimber.MessageContainer) +} + +void MessageContainer::SharedCtor() { +} + +MessageContainer::~MessageContainer() { + // @@protoc_insertion_point(destructor:aimber.MessageContainer) + SharedDtor(); +} + +void MessageContainer::SharedDtor() { +} + +void MessageContainer::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const ::google::protobuf::Descriptor* MessageContainer::descriptor() { + ::protobuf_container_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_container_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; +} + +const MessageContainer& MessageContainer::default_instance() { + ::google::protobuf::internal::InitSCC(&protobuf_container_2eproto::scc_info_MessageContainer.base); + return *internal_default_instance(); +} + + +void MessageContainer::Clear() { +// @@protoc_insertion_point(message_clear_start:aimber.MessageContainer) + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_.Clear(); + _internal_metadata_.Clear(); +} + +bool MessageContainer::MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure + ::google::protobuf::uint32 tag; + // @@protoc_insertion_point(parse_start:aimber.MessageContainer) + for (;;) { + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated .google.protobuf.Any message = 1; + case 1: { + if (static_cast< ::google::protobuf::uint8>(tag) == + static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + input, add_message())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::google::protobuf::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:aimber.MessageContainer) + return true; +failure: + // @@protoc_insertion_point(parse_failure:aimber.MessageContainer) + return false; +#undef DO_ +} + +void MessageContainer::SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:aimber.MessageContainer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.protobuf.Any message = 1; + for (unsigned int i = 0, + n = static_cast(this->message_size()); i < n; i++) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, + this->message(static_cast(i)), + output); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); + } + // @@protoc_insertion_point(serialize_end:aimber.MessageContainer) +} + +::google::protobuf::uint8* MessageContainer::InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const { + (void)deterministic; // Unused + // @@protoc_insertion_point(serialize_to_array_start:aimber.MessageContainer) + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .google.protobuf.Any message = 1; + for (unsigned int i = 0, + n = static_cast(this->message_size()); i < n; i++) { + target = ::google::protobuf::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, this->message(static_cast(i)), deterministic, target); + } + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); + } + // @@protoc_insertion_point(serialize_to_array_end:aimber.MessageContainer) + return target; +} + +size_t MessageContainer::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:aimber.MessageContainer) + size_t total_size = 0; + + if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { + total_size += + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); + } + // repeated .google.protobuf.Any message = 1; + { + unsigned int count = static_cast(this->message_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::google::protobuf::internal::WireFormatLite::MessageSize( + this->message(static_cast(i))); + } + } + + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void MessageContainer::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:aimber.MessageContainer) + GOOGLE_DCHECK_NE(&from, this); + const MessageContainer* source = + ::google::protobuf::internal::DynamicCastToGenerated( + &from); + if (source == NULL) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:aimber.MessageContainer) + ::google::protobuf::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:aimber.MessageContainer) + MergeFrom(*source); + } +} + +void MessageContainer::MergeFrom(const MessageContainer& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:aimber.MessageContainer) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::google::protobuf::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + message_.MergeFrom(from.message_); +} + +void MessageContainer::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:aimber.MessageContainer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void MessageContainer::CopyFrom(const MessageContainer& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:aimber.MessageContainer) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageContainer::IsInitialized() const { + return true; +} + +void MessageContainer::Swap(MessageContainer* other) { + if (other == this) return; + InternalSwap(other); +} +void MessageContainer::InternalSwap(MessageContainer* other) { + using std::swap; + CastToBase(&message_)->InternalSwap(CastToBase(&other->message_)); + _internal_metadata_.Swap(&other->_internal_metadata_); +} + +::google::protobuf::Metadata MessageContainer::GetMetadata() const { + protobuf_container_2eproto::protobuf_AssignDescriptorsOnce(); + return ::protobuf_container_2eproto::file_level_metadata[kIndexInFileMessages]; +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace aimber +namespace google { +namespace protobuf { +template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::aimber::MessageContainer* Arena::CreateMaybeMessage< ::aimber::MessageContainer >(Arena* arena) { + return Arena::CreateInternal< ::aimber::MessageContainer >(arena); +} +} // namespace protobuf +} // namespace google + +// @@protoc_insertion_point(global_scope) diff --git a/ScreenPlayWorkshop/workshopsdk/container.pb.h b/ScreenPlayWorkshop/workshopsdk/container.pb.h new file mode 100644 index 00000000..9ec3978b --- /dev/null +++ b/ScreenPlayWorkshop/workshopsdk/container.pb.h @@ -0,0 +1,218 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: container.proto + +#ifndef PROTOBUF_INCLUDED_container_2eproto +#define PROTOBUF_INCLUDED_container_2eproto + +#include + +#include + +#if GOOGLE_PROTOBUF_VERSION < 3006001 +#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 3006001 < 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 +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +// @@protoc_insertion_point(includes) +#define PROTOBUF_INTERNAL_EXPORT_protobuf_container_2eproto + +namespace protobuf_container_2eproto { +// Internal implementation detail -- do not use these members. +struct TableStruct { + static const ::google::protobuf::internal::ParseTableField entries[]; + static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; + static const ::google::protobuf::internal::ParseTable schema[1]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; +}; +void AddDescriptors(); +} // namespace protobuf_container_2eproto +namespace aimber { +class MessageContainer; +class MessageContainerDefaultTypeInternal; +extern MessageContainerDefaultTypeInternal _MessageContainer_default_instance_; +} // namespace aimber +namespace google { +namespace protobuf { +template<> ::aimber::MessageContainer* Arena::CreateMaybeMessage<::aimber::MessageContainer>(Arena*); +} // namespace protobuf +} // namespace google +namespace aimber { + +// =================================================================== + +class MessageContainer : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:aimber.MessageContainer) */ { + public: + MessageContainer(); + virtual ~MessageContainer(); + + MessageContainer(const MessageContainer& from); + + inline MessageContainer& operator=(const MessageContainer& from) { + CopyFrom(from); + return *this; + } + #if LANG_CXX11 + MessageContainer(MessageContainer&& from) noexcept + : MessageContainer() { + *this = ::std::move(from); + } + + inline MessageContainer& operator=(MessageContainer&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + #endif + static const ::google::protobuf::Descriptor* descriptor(); + static const MessageContainer& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const MessageContainer* internal_default_instance() { + return reinterpret_cast( + &_MessageContainer_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + void Swap(MessageContainer* other); + friend void swap(MessageContainer& a, MessageContainer& b) { + a.Swap(&b); + } + + // implements Message ---------------------------------------------- + + inline MessageContainer* New() const final { + return CreateMaybeMessage(NULL); + } + + MessageContainer* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const MessageContainer& from); + void MergeFrom(const MessageContainer& from); + void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + bool MergePartialFromCodedStream( + ::google::protobuf::io::CodedInputStream* input) final; + void SerializeWithCachedSizes( + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + bool deterministic, ::google::protobuf::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageContainer* other); + private: + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + return NULL; + } + inline void* MaybeArenaPtr() const { + return NULL; + } + public: + + ::google::protobuf::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + // repeated .google.protobuf.Any message = 1; + int message_size() const; + void clear_message(); + static const int kMessageFieldNumber = 1; + ::google::protobuf::Any* mutable_message(int index); + ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* + mutable_message(); + const ::google::protobuf::Any& message(int index) const; + ::google::protobuf::Any* add_message(); + const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& + message() const; + + // @@protoc_insertion_point(class_scope:aimber.MessageContainer) + private: + + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > message_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + friend struct ::protobuf_container_2eproto::TableStruct; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MessageContainer + +// repeated .google.protobuf.Any message = 1; +inline int MessageContainer::message_size() const { + return message_.size(); +} +inline ::google::protobuf::Any* MessageContainer::mutable_message(int index) { + // @@protoc_insertion_point(field_mutable:aimber.MessageContainer.message) + return message_.Mutable(index); +} +inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >* +MessageContainer::mutable_message() { + // @@protoc_insertion_point(field_mutable_list:aimber.MessageContainer.message) + return &message_; +} +inline const ::google::protobuf::Any& MessageContainer::message(int index) const { + // @@protoc_insertion_point(field_get:aimber.MessageContainer.message) + return message_.Get(index); +} +inline ::google::protobuf::Any* MessageContainer::add_message() { + // @@protoc_insertion_point(field_add:aimber.MessageContainer.message) + return message_.Add(); +} +inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >& +MessageContainer::message() const { + // @@protoc_insertion_point(field_list:aimber.MessageContainer.message) + return message_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace aimber + +// @@protoc_insertion_point(global_scope) + +#endif // PROTOBUF_INCLUDED_container_2eproto