// Generated by the protocol buffer compiler. DO NOT EDIT! // source: user.proto #ifndef GOOGLE_PROTOBUF_INCLUDED_user_2eproto #define GOOGLE_PROTOBUF_INCLUDED_user_2eproto #include #include #include #if PROTOBUF_VERSION < 3017000 #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 3017002 < 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 #include // IWYU pragma: export #include // IWYU pragma: export #include // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_user_2eproto PROTOBUF_NAMESPACE_OPEN namespace internal { class AnyMetadata; } // namespace internal PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_user_2eproto { static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_user_2eproto; namespace Ufgnix0802 { class Account; struct AccountDefaultTypeInternal; extern AccountDefaultTypeInternal _Account_default_instance_; class User; struct UserDefaultTypeInternal; extern UserDefaultTypeInternal _User_default_instance_; } // namespace Ufgnix0802 PROTOBUF_NAMESPACE_OPEN template<> ::Ufgnix0802::Account* Arena::CreateMaybeMessage<::Ufgnix0802::Account>(Arena*); template<> ::Ufgnix0802::User* Arena::CreateMaybeMessage<::Ufgnix0802::User>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace Ufgnix0802 { // =================================================================== class Account final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Ufgnix0802.Account) */ { public: inline Account() : Account(nullptr) {} ~Account() override; explicit constexpr Account(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Account(const Account& from); Account(Account&& from) noexcept : Account() { *this = ::std::move(from); } inline Account& operator=(const Account& from) { CopyFrom(from); return *this; } inline Account& operator=(Account&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const Account& default_instance() { return *internal_default_instance(); } static inline const Account* internal_default_instance() { return reinterpret_cast( &_Account_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Account& a, Account& b) { a.Swap(&b); } inline void Swap(Account* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(Account* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Account* New() const final { return new Account(); } Account* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Account& from); void MergeFrom(const Account& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Account* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "Ufgnix0802.Account"; } protected: explicit Account(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kNameFieldNumber = 2, kPasswordFieldNumber = 3, kIDFieldNumber = 1, }; // string name = 2; void clear_name(); const std::string& name() const; template void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); PROTOBUF_FUTURE_MUST_USE_RESULT std::string* release_name(); void set_allocated_name(std::string* name); private: const std::string& _internal_name() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // string password = 3; void clear_password(); const std::string& password() const; template void set_password(ArgT0&& arg0, ArgT... args); std::string* mutable_password(); PROTOBUF_FUTURE_MUST_USE_RESULT std::string* release_password(); void set_allocated_password(std::string* password); private: const std::string& _internal_password() const; inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); std::string* _internal_mutable_password(); public: // uint64 ID = 1; void clear_id(); ::PROTOBUF_NAMESPACE_ID::uint64 id() const; void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); private: ::PROTOBUF_NAMESPACE_ID::uint64 _internal_id() const; void _internal_set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); public: // @@protoc_insertion_point(class_scope:Ufgnix0802.Account) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; ::PROTOBUF_NAMESPACE_ID::uint64 id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_user_2eproto; }; // ------------------------------------------------------------------- class User final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:Ufgnix0802.User) */ { public: inline User() : User(nullptr) {} ~User() override; explicit constexpr User(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); User(const User& from); User(User&& from) noexcept : User() { *this = ::std::move(from); } inline User& operator=(const User& from) { CopyFrom(from); return *this; } inline User& operator=(User&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena()) { InternalSwap(&from); } else { CopyFrom(from); } return *this; } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } static const User& default_instance() { return *internal_default_instance(); } static inline const User* internal_default_instance() { return reinterpret_cast( &_User_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(User& a, User& b) { a.Swap(&b); } inline void Swap(User* other) { if (other == this) return; if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } void UnsafeArenaSwap(User* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline User* New() const final { return new User(); } User* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const User& from); void MergeFrom(const User& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "Ufgnix0802.User"; } protected: explicit User(::PROTOBUF_NAMESPACE_ID::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { kUserFieldNumber = 1, }; // .Ufgnix0802.Account user = 1; bool has_user() const; private: bool _internal_has_user() const; public: void clear_user(); const ::Ufgnix0802::Account& user() const; PROTOBUF_FUTURE_MUST_USE_RESULT::Ufgnix0802::Account* release_user(); ::Ufgnix0802::Account* mutable_user(); void set_allocated_user(::Ufgnix0802::Account* user); private: const ::Ufgnix0802::Account& _internal_user() const; ::Ufgnix0802::Account* _internal_mutable_user(); public: void unsafe_arena_set_allocated_user( ::Ufgnix0802::Account* user); ::Ufgnix0802::Account* unsafe_arena_release_user(); // @@protoc_insertion_point(class_scope:Ufgnix0802.User) private: class _Internal; template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::Ufgnix0802::Account* user_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_user_2eproto; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Account // uint64 ID = 1; inline void Account::clear_id() { id_ = uint64_t{ 0u }; } inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::_internal_id() const { return id_; } inline ::PROTOBUF_NAMESPACE_ID::uint64 Account::id() const { // @@protoc_insertion_point(field_get:Ufgnix0802.Account.ID) return _internal_id(); } inline void Account::_internal_set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { id_ = value; } inline void Account::set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:Ufgnix0802.Account.ID) } // string name = 2; inline void Account::clear_name() { name_.ClearToEmpty(); } inline const std::string& Account::name() const { // @@protoc_insertion_point(field_get:Ufgnix0802.Account.name) return _internal_name(); } template inline PROTOBUF_ALWAYS_INLINE void Account::set_name(ArgT0&& arg0, ArgT... args) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:Ufgnix0802.Account.name) } inline std::string* Account::mutable_name() { // @@protoc_insertion_point(field_mutable:Ufgnix0802.Account.name) return _internal_mutable_name(); } inline const std::string& Account::_internal_name() const { return name_.Get(); } inline void Account::_internal_set_name(const std::string& value) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Account::_internal_mutable_name() { return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Account::release_name() { // @@protoc_insertion_point(field_release:Ufgnix0802.Account.name) return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Account::set_allocated_name(std::string* name) { if (name != nullptr) { } else { } name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:Ufgnix0802.Account.name) } // string password = 3; inline void Account::clear_password() { password_.ClearToEmpty(); } inline const std::string& Account::password() const { // @@protoc_insertion_point(field_get:Ufgnix0802.Account.password) return _internal_password(); } template inline PROTOBUF_ALWAYS_INLINE void Account::set_password(ArgT0&& arg0, ArgT... args) { password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:Ufgnix0802.Account.password) } inline std::string* Account::mutable_password() { // @@protoc_insertion_point(field_mutable:Ufgnix0802.Account.password) return _internal_mutable_password(); } inline const std::string& Account::_internal_password() const { return password_.Get(); } inline void Account::_internal_set_password(const std::string& value) { password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Account::_internal_mutable_password() { return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Account::release_password() { // @@protoc_insertion_point(field_release:Ufgnix0802.Account.password) return password_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Account::set_allocated_password(std::string* password) { if (password != nullptr) { } else { } password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:Ufgnix0802.Account.password) } // ------------------------------------------------------------------- // User // .Ufgnix0802.Account user = 1; inline bool User::_internal_has_user() const { return this != internal_default_instance() && user_ != nullptr; } inline bool User::has_user() const { return _internal_has_user(); } inline void User::clear_user() { if (GetArenaForAllocation() == nullptr && user_ != nullptr) { delete user_; } user_ = nullptr; } inline const ::Ufgnix0802::Account& User::_internal_user() const { const ::Ufgnix0802::Account* p = user_; return p != nullptr ? *p : reinterpret_cast( ::Ufgnix0802::_Account_default_instance_); } inline const ::Ufgnix0802::Account& User::user() const { // @@protoc_insertion_point(field_get:Ufgnix0802.User.user) return _internal_user(); } inline void User::unsafe_arena_set_allocated_user( ::Ufgnix0802::Account* user) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(user_); } user_ = user; if (user) { } else { } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:Ufgnix0802.User.user) } inline ::Ufgnix0802::Account* User::release_user() { ::Ufgnix0802::Account* temp = user_; user_ = nullptr; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } return temp; } inline ::Ufgnix0802::Account* User::unsafe_arena_release_user() { // @@protoc_insertion_point(field_release:Ufgnix0802.User.user) ::Ufgnix0802::Account* temp = user_; user_ = nullptr; return temp; } inline ::Ufgnix0802::Account* User::_internal_mutable_user() { if (user_ == nullptr) { auto* p = CreateMaybeMessage<::Ufgnix0802::Account>(GetArenaForAllocation()); user_ = p; } return user_; } inline ::Ufgnix0802::Account* User::mutable_user() { // @@protoc_insertion_point(field_mutable:Ufgnix0802.User.user) return _internal_mutable_user(); } inline void User::set_allocated_user(::Ufgnix0802::Account* user) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete user_; } if (user) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::Ufgnix0802::Account>::GetOwningArena(user); if (message_arena != submessage_arena) { user = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, user, submessage_arena); } } else { } user_ = user; // @@protoc_insertion_point(field_set_allocated:Ufgnix0802.User.user) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace Ufgnix0802 // @@protoc_insertion_point(global_scope) #include #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_user_2eproto