467 lines
18 KiB
C++
467 lines
18 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mp.body.proto
|
|
|
|
#include "mp.body.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>
|
|
namespace mp {
|
|
class bodyDefaultTypeInternal {
|
|
public:
|
|
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<body> _instance;
|
|
} _body_default_instance_;
|
|
} // namespace mp
|
|
static void InitDefaultsscc_info_body_mp_2ebody_2eproto() {
|
|
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
|
|
|
{
|
|
void* ptr = &::mp::_body_default_instance_;
|
|
new (ptr) ::mp::body();
|
|
::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
|
|
}
|
|
::mp::body::InitAsDefaultInstance();
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_body_mp_2ebody_2eproto =
|
|
{{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_body_mp_2ebody_2eproto}, {}};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_mp_2ebody_2eproto[1];
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_mp_2ebody_2eproto = nullptr;
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_mp_2ebody_2eproto = nullptr;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_mp_2ebody_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, subcommand_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, account_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, password_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, target_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, source_),
|
|
PROTOBUF_FIELD_OFFSET(::mp::body, data_),
|
|
};
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, sizeof(::mp::body)},
|
|
};
|
|
|
|
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
|
|
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::mp::_body_default_instance_),
|
|
};
|
|
|
|
const char descriptor_table_protodef_mp_2ebody_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\rmp.body.proto\022\002mp\032\013mp.mp.proto\"|\n\004body"
|
|
"\022#\n\nsubcommand\030\001 \001(\0162\017.mp.MP_SUB_TYPE\022\017\n"
|
|
"\007account\030\002 \001(\t\022\020\n\010password\030\003 \001(\t\022\016\n\006targ"
|
|
"et\030\004 \001(\004\022\016\n\006source\030\005 \001(\004\022\014\n\004data\030\006 \001(\tb\006"
|
|
"proto3"
|
|
;
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_mp_2ebody_2eproto_deps[1] = {
|
|
&::descriptor_table_mp_2emp_2eproto,
|
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mp_2ebody_2eproto_sccs[1] = {
|
|
&scc_info_body_mp_2ebody_2eproto.base,
|
|
};
|
|
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_mp_2ebody_2eproto_once;
|
|
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mp_2ebody_2eproto = {
|
|
false, false, descriptor_table_protodef_mp_2ebody_2eproto, "mp.body.proto", 166,
|
|
&descriptor_table_mp_2ebody_2eproto_once, descriptor_table_mp_2ebody_2eproto_sccs, descriptor_table_mp_2ebody_2eproto_deps, 1, 1,
|
|
schemas, file_default_instances, TableStruct_mp_2ebody_2eproto::offsets,
|
|
file_level_metadata_mp_2ebody_2eproto, 1, file_level_enum_descriptors_mp_2ebody_2eproto, file_level_service_descriptors_mp_2ebody_2eproto,
|
|
};
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
static bool dynamic_init_dummy_mp_2ebody_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_mp_2ebody_2eproto)), true);
|
|
namespace mp {
|
|
|
|
// ===================================================================
|
|
|
|
void body::InitAsDefaultInstance() {
|
|
}
|
|
class body::_Internal {
|
|
public:
|
|
};
|
|
|
|
body::body(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena) {
|
|
SharedCtor();
|
|
RegisterArenaDtor(arena);
|
|
// @@protoc_insertion_point(arena_constructor:mp.body)
|
|
}
|
|
body::body(const body& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from._internal_account().empty()) {
|
|
account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_account(),
|
|
GetArena());
|
|
}
|
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from._internal_password().empty()) {
|
|
password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_password(),
|
|
GetArena());
|
|
}
|
|
data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
if (!from._internal_data().empty()) {
|
|
data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_data(),
|
|
GetArena());
|
|
}
|
|
::memcpy(&target_, &from.target_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&subcommand_) -
|
|
reinterpret_cast<char*>(&target_)) + sizeof(subcommand_));
|
|
// @@protoc_insertion_point(copy_constructor:mp.body)
|
|
}
|
|
|
|
void body::SharedCtor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_body_mp_2ebody_2eproto.base);
|
|
account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
::memset(&target_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&subcommand_) -
|
|
reinterpret_cast<char*>(&target_)) + sizeof(subcommand_));
|
|
}
|
|
|
|
body::~body() {
|
|
// @@protoc_insertion_point(destructor:mp.body)
|
|
SharedDtor();
|
|
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
void body::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArena() == nullptr);
|
|
account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
|
|
void body::ArenaDtor(void* object) {
|
|
body* _this = reinterpret_cast< body* >(object);
|
|
(void)_this;
|
|
}
|
|
void body::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
|
}
|
|
void body::SetCachedSize(int size) const {
|
|
_cached_size_.Set(size);
|
|
}
|
|
const body& body::default_instance() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_body_mp_2ebody_2eproto.base);
|
|
return *internal_default_instance();
|
|
}
|
|
|
|
|
|
void body::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:mp.body)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
account_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
data_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
::memset(&target_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&subcommand_) -
|
|
reinterpret_cast<char*>(&target_)) + sizeof(subcommand_));
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* body::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
|
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
|
|
while (!ctx->Done(&ptr)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag;
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
// .mp.MP_SUB_TYPE subcommand = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
_internal_set_subcommand(static_cast<::mp::MP_SUB_TYPE>(val));
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string account = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
auto str = _internal_mutable_account();
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "mp.body.account"));
|
|
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, "mp.body.password"));
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint64 target = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
|
|
target_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// uint64 source = 5;
|
|
case 5:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
source_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
// string data = 6;
|
|
case 6:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
auto str = _internal_mutable_data();
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "mp.body.data"));
|
|
CHK_(ptr);
|
|
} else goto handle_unusual;
|
|
continue;
|
|
default: {
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
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* body::_InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:mp.body)
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
// .mp.MP_SUB_TYPE subcommand = 1;
|
|
if (this->subcommand() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
|
1, this->_internal_subcommand(), target);
|
|
}
|
|
|
|
// string account = 2;
|
|
if (this->account().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"mp.body.account");
|
|
target = stream->WriteStringMaybeAliased(
|
|
2, this->_internal_account(), target);
|
|
}
|
|
|
|
// string password = 3;
|
|
if (this->password().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_password().data(), static_cast<int>(this->_internal_password().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"mp.body.password");
|
|
target = stream->WriteStringMaybeAliased(
|
|
3, this->_internal_password(), target);
|
|
}
|
|
|
|
// uint64 target = 4;
|
|
if (this->target() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->_internal_target(), target);
|
|
}
|
|
|
|
// uint64 source = 5;
|
|
if (this->source() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->_internal_source(), target);
|
|
}
|
|
|
|
// string data = 6;
|
|
if (this->data().size() > 0) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
|
this->_internal_data().data(), static_cast<int>(this->_internal_data().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
|
"mp.body.data");
|
|
target = stream->WriteStringMaybeAliased(
|
|
6, this->_internal_data(), 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:mp.body)
|
|
return target;
|
|
}
|
|
|
|
size_t body::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:mp.body)
|
|
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 account = 2;
|
|
if (this->account().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_account());
|
|
}
|
|
|
|
// string password = 3;
|
|
if (this->password().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_password());
|
|
}
|
|
|
|
// string data = 6;
|
|
if (this->data().size() > 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_data());
|
|
}
|
|
|
|
// uint64 target = 4;
|
|
if (this->target() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
this->_internal_target());
|
|
}
|
|
|
|
// uint64 source = 5;
|
|
if (this->source() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
|
|
this->_internal_source());
|
|
}
|
|
|
|
// .mp.MP_SUB_TYPE subcommand = 1;
|
|
if (this->subcommand() != 0) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_subcommand());
|
|
}
|
|
|
|
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 body::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_merge_from_start:mp.body)
|
|
GOOGLE_DCHECK_NE(&from, this);
|
|
const body* source =
|
|
::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<body>(
|
|
&from);
|
|
if (source == nullptr) {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_fail:mp.body)
|
|
::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
|
|
} else {
|
|
// @@protoc_insertion_point(generalized_merge_from_cast_success:mp.body)
|
|
MergeFrom(*source);
|
|
}
|
|
}
|
|
|
|
void body::MergeFrom(const body& from) {
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:mp.body)
|
|
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.account().size() > 0) {
|
|
_internal_set_account(from._internal_account());
|
|
}
|
|
if (from.password().size() > 0) {
|
|
_internal_set_password(from._internal_password());
|
|
}
|
|
if (from.data().size() > 0) {
|
|
_internal_set_data(from._internal_data());
|
|
}
|
|
if (from.target() != 0) {
|
|
_internal_set_target(from._internal_target());
|
|
}
|
|
if (from.source() != 0) {
|
|
_internal_set_source(from._internal_source());
|
|
}
|
|
if (from.subcommand() != 0) {
|
|
_internal_set_subcommand(from._internal_subcommand());
|
|
}
|
|
}
|
|
|
|
void body::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
|
|
// @@protoc_insertion_point(generalized_copy_from_start:mp.body)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
void body::CopyFrom(const body& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:mp.body)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool body::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void body::InternalSwap(body* other) {
|
|
using std::swap;
|
|
_internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
|
|
account_.Swap(&other->account_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
password_.Swap(&other->password_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
data_.Swap(&other->data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(body, subcommand_)
|
|
+ sizeof(body::subcommand_)
|
|
- PROTOBUF_FIELD_OFFSET(body, target_)>(
|
|
reinterpret_cast<char*>(&target_),
|
|
reinterpret_cast<char*>(&other->target_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata body::GetMetadata() const {
|
|
return GetMetadataStatic();
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace mp
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::mp::body* Arena::CreateMaybeMessage< ::mp::body >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::mp::body >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|