590 lines
21 KiB
C++
590 lines
21 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: user.proto
|
|
|
|
#include "user.pb.h"
|
|
|
|
#include <algorithm>
|
|
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/extension_set.h>
|
|
#include <google/protobuf/wire_format_lite.h>
|
|
#include <google/protobuf/descriptor.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/reflection_ops.h>
|
|
#include <google/protobuf/wire_format.h>
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
|
|
PROTOBUF_PRAGMA_INIT_SEG
|
|
namespace Ufgnix0802 {
|
|
constexpr Account::Account(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
: name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
|
, id_(uint64_t{0u}){}
|
|
struct AccountDefaultTypeInternal {
|
|
constexpr AccountDefaultTypeInternal()
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
~AccountDefaultTypeInternal() {}
|
|
union {
|
|
Account _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AccountDefaultTypeInternal _Account_default_instance_;
|
|
constexpr User::User(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
|
: user_(nullptr){}
|
|
struct UserDefaultTypeInternal {
|
|
constexpr UserDefaultTypeInternal()
|
|
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
|
~UserDefaultTypeInternal() {}
|
|
union {
|
|
User _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserDefaultTypeInternal _User_default_instance_;
|
|
} // namespace Ufgnix0802
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_user_2eproto[2];
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_user_2eproto = nullptr;
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_user_2eproto = nullptr;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_user_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::Ufgnix0802::Account, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::Ufgnix0802::Account, id_),
|
|
PROTOBUF_FIELD_OFFSET(::Ufgnix0802::Account, name_),
|
|
PROTOBUF_FIELD_OFFSET(::Ufgnix0802::Account, password_),
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::Ufgnix0802::User, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::Ufgnix0802::User, user_),
|
|
};
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, sizeof(::Ufgnix0802::Account)},
|
|
{ 8, -1, sizeof(::Ufgnix0802::User)},
|
|
};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Ufgnix0802::_Account_default_instance_),
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Ufgnix0802::_User_default_instance_),
|
|
};
|
|
|
|
const char descriptor_table_protodef_user_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\nuser.proto\022\nUfgnix0802\"5\n\007Account\022\n\n\002I"
|
|
"D\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022\020\n\010password\030\003 \001(\t\""
|
|
")\n\004User\022!\n\004user\030\001 \001(\0132\023.Ufgnix0802.Accou"
|
|
"ntb\006proto3"
|
|
;
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_user_2eproto_once;
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_user_2eproto = {
|
|
false, false, 130, descriptor_table_protodef_user_2eproto, "user.proto",
|
|
&descriptor_table_user_2eproto_once, nullptr, 0, 2,
|
|
schemas, file_default_instances, TableStruct_user_2eproto::offsets,
|
|
file_level_metadata_user_2eproto, file_level_enum_descriptors_user_2eproto, file_level_service_descriptors_user_2eproto,
|
|
};
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_user_2eproto_getter() {
|
|
return &descriptor_table_user_2eproto;
|
|
}
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_user_2eproto(&descriptor_table_user_2eproto);
|
|
namespace Ufgnix0802 {
|
|
|
|
// ===================================================================
|
|
|
|
class Account::_Internal {
|
|
public:
|
|
};
|
|
|
|
Account::Account(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
SharedCtor();
|
|
RegisterArenaDtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:Ufgnix0802.Account)
|
|
}
|
|
Account::Account(const Account& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from._internal_name().empty()) {
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
GetArenaForAllocation());
|
|
}
|
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from._internal_password().empty()) {
|
|
password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
|
|
GetArenaForAllocation());
|
|
}
|
|
id_ = from.id_;
|
|
// @@protoc_insertion_point(copy_constructor:Ufgnix0802.Account)
|
|
}
|
|
|
|
void Account::SharedCtor() {
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
id_ = uint64_t{0u};
|
|
}
|
|
|
|
Account::~Account() {
|
|
// @@protoc_insertion_point(destructor:Ufgnix0802.Account)
|
|
SharedDtor();
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
void Account::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void Account::ArenaDtor(void* object) {
|
|
Account* _this = reinterpret_cast< Account* >(object);
|
|
(void)_this;
|
|
}
|
|
void Account::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
}
|
|
void Account::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
|
|
void Account::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Ufgnix0802.Account)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
name_.ClearToEmpty();
|
|
password_.ClearToEmpty();
|
|
id_ = uint64_t{0u};
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Account::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
switch (tag >> 3) {
|
|
// uint64 ID = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string name = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
auto str = _internal_mutable_name();
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Ufgnix0802.Account.name"));
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string password = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
auto str = _internal_mutable_password();
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Ufgnix0802.Account.password"));
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
|
CHK_(ptr);
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag,
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Account::_InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Ufgnix0802.Account)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// uint64 ID = 1;
|
|
if (this->id() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target);
|
|
}
|
|
|
|
// string name = 2;
|
|
if (!this->name().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"Ufgnix0802.Account.name");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_name(), target);
|
|
}
|
|
|
|
// string password = 3;
|
|
if (!this->password().empty()) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"Ufgnix0802.Account.password");
|
|
target = stream->WriteStringMaybeAliased(
|
|
3, this->_internal_password(), target);
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Ufgnix0802.Account)
|
|
return target;
|
|
}
|
|
|
|
size_t Account::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Ufgnix0802.Account)
|
|
size_t total_size = 0;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// string name = 2;
|
|
if (!this->name().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_name());
|
|
}
|
|
|
|
// string password = 3;
|
|
if (!this->password().empty()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_password());
|
|
}
|
|
|
|
// uint64 ID = 1;
|
|
if (this->id() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
this->_internal_id());
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void Account::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Ufgnix0802.Account)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const Account* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Account>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Ufgnix0802.Account)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Ufgnix0802.Account)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void Account::MergeFrom(const Account& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Ufgnix0802.Account)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (!from.name().empty()) {
|
|
_internal_set_name(from._internal_name());
|
|
}
|
|
if (!from.password().empty()) {
|
|
_internal_set_password(from._internal_password());
|
|
}
|
|
if (from.id() != 0) {
|
|
_internal_set_id(from._internal_id());
|
|
}
|
|
}
|
|
|
|
void Account::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Ufgnix0802.Account)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void Account::CopyFrom(const Account& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Ufgnix0802.Account)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Account::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Account::InternalSwap(Account* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
&name_, GetArenaForAllocation(),
|
|
&other->name_, other->GetArenaForAllocation()
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
|
&password_, GetArenaForAllocation(),
|
|
&other->password_, other->GetArenaForAllocation()
|
|
);
|
|
swap(id_, other->id_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Account::GetMetadata() const {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
|
&descriptor_table_user_2eproto_getter, &descriptor_table_user_2eproto_once,
|
|
file_level_metadata_user_2eproto[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class User::_Internal {
|
|
public:
|
|
static const ::Ufgnix0802::Account& user(const User* msg);
|
|
};
|
|
|
|
const ::Ufgnix0802::Account&
|
|
User::_Internal::user(const User* msg) {
|
|
return *msg->user_;
|
|
}
|
|
User::User(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
SharedCtor();
|
|
RegisterArenaDtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:Ufgnix0802.User)
|
|
}
|
|
User::User(const User& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
if (from._internal_has_user()) {
|
|
user_ = new ::Ufgnix0802::Account(*from.user_);
|
|
} else {
|
|
user_ = nullptr;
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Ufgnix0802.User)
|
|
}
|
|
|
|
void User::SharedCtor() {
|
|
user_ = nullptr;
|
|
}
|
|
|
|
User::~User() {
|
|
// @@protoc_insertion_point(destructor:Ufgnix0802.User)
|
|
SharedDtor();
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
void User::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
if (this != internal_default_instance()) delete user_;
|
|
}
|
|
|
|
void User::ArenaDtor(void* object) {
|
|
User* _this = reinterpret_cast< User* >(object);
|
|
(void)_this;
|
|
}
|
|
void User::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
}
|
|
void User::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
|
|
void User::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Ufgnix0802.User)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
if (GetArenaForAllocation() == nullptr && user_ != nullptr) {
|
|
delete user_;
|
|
}
|
|
user_ = nullptr;
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* User::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
switch (tag >> 3) {
|
|
// .Ufgnix0802.Account user = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
ptr = ctx->ParseMessage(_internal_mutable_user(), ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
|
CHK_(ptr);
|
|
ctx->SetLastTag(tag);
|
|
goto success;
|
|
}
|
|
ptr = UnknownFieldParse(tag,
|
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
|
ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
continue;
|
|
}
|
|
} // switch
|
|
} // while
|
|
success:
|
|
return ptr;
|
|
failure:
|
|
ptr = nullptr;
|
|
goto success;
|
|
#undef CHK_
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* User::_InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Ufgnix0802.User)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .Ufgnix0802.Account user = 1;
|
|
if (this->has_user()) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
|
InternalWriteMessage(
|
|
1, _Internal::user(this), target, stream);
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
|
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
|
}
|
|
// @@protoc_insertion_point(serialize_to_array_end:Ufgnix0802.User)
|
|
return target;
|
|
}
|
|
|
|
size_t User::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Ufgnix0802.User)
|
|
size_t total_size = 0;
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// .Ufgnix0802.Account user = 1;
|
|
if (this->has_user()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
|
*user_);
|
|
}
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
|
|
_internal_metadata_, total_size, &_cached_size_);
|
|
}
|
|
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
|
|
SetCachedSize(cached_size);
|
|
return total_size;
|
|
}
|
|
|
|
void User::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:Ufgnix0802.User)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const User* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<User>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:Ufgnix0802.User)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:Ufgnix0802.User)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void User::MergeFrom(const User& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Ufgnix0802.User)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from.has_user()) {
|
|
_internal_mutable_user()->::Ufgnix0802::Account::MergeFrom(from._internal_user());
|
|
}
|
|
}
|
|
|
|
void User::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:Ufgnix0802.User)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void User::CopyFrom(const User& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Ufgnix0802.User)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool User::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void User::InternalSwap(User* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(user_, other->user_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata User::GetMetadata() const {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
|
|
&descriptor_table_user_2eproto_getter, &descriptor_table_user_2eproto_once,
|
|
file_level_metadata_user_2eproto[1]);
|
|
}
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace Ufgnix0802
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::Ufgnix0802::Account* Arena::CreateMaybeMessage< ::Ufgnix0802::Account >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Ufgnix0802::Account >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Ufgnix0802::User* Arena::CreateMaybeMessage< ::Ufgnix0802::User >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Ufgnix0802::User >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|