Слияние кода завершено, страница обновится автоматически
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: WeChatProto.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "WeChatProto.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.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)
namespace WechatProto {
class WechatMsgDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<WechatMsg> {
} _WechatMsg_default_instance_;
class BaseMsgDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<BaseMsg> {
} _BaseMsg_default_instance_;
class UserDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<User> {
} _User_default_instance_;
namespace protobuf_WeChatProto_2eproto {
namespace {
::google::protobuf::Metadata file_level_metadata[3];
} // namespace
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
const TableStruct::entries[] = {
{0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
const TableStruct::aux[] = {
::google::protobuf::internal::AuxillaryParseTableField(),
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
TableStruct::schema[] = {
{ NULL, NULL, 0, -1, -1, false },
{ NULL, NULL, 0, -1, -1, false },
{ NULL, NULL, 0, -1, -1, false },
};
const ::google::protobuf::uint32 TableStruct::offsets[] = {
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WechatMsg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WechatMsg, basemsg_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WechatMsg, token_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WechatMsg, version_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WechatMsg, timestamp_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(WechatMsg, ip_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, ret_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, cmd_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, cmdurl_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, shorthost_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, longhost_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, user_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, longhead_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, payloads_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BaseMsg, playloadextend_),
~0u, // no _has_bits_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, uin_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, cookies_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, sessionkey_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, deviceid_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, devicetype_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, devicename_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, currentsynckey_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, maxsynckey_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, autoauthkey_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, userame_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, nickname_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(User, userext_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] = {
{ 0, -1, sizeof(WechatMsg)},
{ 10, -1, sizeof(BaseMsg)},
{ 24, -1, sizeof(User)},
};
static ::google::protobuf::Message const * const file_default_instances[] = {
reinterpret_cast<const ::google::protobuf::Message*>(&_WechatMsg_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_BaseMsg_default_instance_),
reinterpret_cast<const ::google::protobuf::Message*>(&_User_default_instance_),
};
namespace {
void protobuf_AssignDescriptors() {
AddDescriptors();
::google::protobuf::MessageFactory* factory = NULL;
AssignDescriptors(
"WeChatProto.proto", schemas, file_default_instances, TableStruct::offsets, factory,
file_level_metadata, NULL, NULL);
}
void protobuf_AssignDescriptorsOnce() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
}
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
}
} // namespace
void TableStruct::Shutdown() {
_WechatMsg_default_instance_.Shutdown();
delete file_level_metadata[0].reflection;
_BaseMsg_default_instance_.Shutdown();
delete file_level_metadata[1].reflection;
_User_default_instance_.Shutdown();
delete file_level_metadata[2].reflection;
}
void TableStruct::InitDefaultsImpl() {
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::internal::InitProtobufDefaults();
_WechatMsg_default_instance_.DefaultConstruct();
_BaseMsg_default_instance_.DefaultConstruct();
_User_default_instance_.DefaultConstruct();
_WechatMsg_default_instance_.get_mutable()->basemsg_ = const_cast< ::WechatProto::BaseMsg*>(
::WechatProto::BaseMsg::internal_default_instance());
_BaseMsg_default_instance_.get_mutable()->user_ = const_cast< ::WechatProto::User*>(
::WechatProto::User::internal_default_instance());
}
void InitDefaults() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
}
void AddDescriptorsImpl() {
InitDefaults();
static const char descriptor[] = {
"\n\021WeChatProto.proto\022\013WechatProto\"q\n\tWech"
"atMsg\022%\n\007baseMsg\030\001 \001(\0132\024.WechatProto.Bas"
"eMsg\022\r\n\005token\030\002 \001(\t\022\017\n\007version\030\003 \001(\t\022\021\n\t"
"timeStamp\030\004 \001(\005\022\n\n\002iP\030\005 \001(\t\"\265\001\n\007BaseMsg\022"
"\013\n\003ret\030\001 \001(\005\022\013\n\003cmd\030\002 \001(\005\022\016\n\006cmdUrl\030\003 \001("
"\t\022\021\n\tshortHost\030\004 \001(\t\022\020\n\010longHost\030\005 \001(\t\022\037"
"\n\004user\030\006 \001(\0132\021.WechatProto.User\022\020\n\010longH"
"ead\030\007 \001(\014\022\020\n\010payloads\030\010 \001(\014\022\026\n\016playloade"
"xtend\030\t \001(\014\"\347\001\n\004User\022\013\n\003uin\030\001 \001(\003\022\017\n\007coo"
"kies\030\002 \001(\014\022\022\n\nsessionKey\030\003 \001(\014\022\020\n\010device"
"Id\030\004 \001(\t\022\022\n\ndeviceType\030\005 \001(\t\022\022\n\ndeviceNa"
"me\030\006 \001(\t\022\026\n\016currentsyncKey\030\007 \001(\014\022\022\n\nmaxS"
"yncKey\030\010 \001(\014\022\023\n\013autoAuthKey\030\t \001(\014\022\017\n\007use"
"rame\030\n \001(\t\022\020\n\010nickname\030\013 \001(\014\022\017\n\007userExt\030"
"\014 \001(\0142I\n\006Wechat\022\?\n\013HelloWechat\022\026.WechatP"
"roto.WechatMsg\032\026.WechatProto.WechatMsg\"\000"
"b\006proto3"
};
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
descriptor, 648);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"WeChatProto.proto", &protobuf_RegisterTypes);
::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
}
void AddDescriptors() {
static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer {
StaticDescriptorInitializer() {
AddDescriptors();
}
} static_descriptor_initializer;
} // namespace protobuf_WeChatProto_2eproto
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int WechatMsg::kBaseMsgFieldNumber;
const int WechatMsg::kTokenFieldNumber;
const int WechatMsg::kVersionFieldNumber;
const int WechatMsg::kTimeStampFieldNumber;
const int WechatMsg::kIPFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
WechatMsg::WechatMsg()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_WeChatProto_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:WechatProto.WechatMsg)
}
WechatMsg::WechatMsg(const WechatMsg& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.token().size() > 0) {
token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_);
}
version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.version().size() > 0) {
version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
}
ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.ip().size() > 0) {
ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
}
if (from.has_basemsg()) {
basemsg_ = new ::WechatProto::BaseMsg(*from.basemsg_);
} else {
basemsg_ = NULL;
}
timestamp_ = from.timestamp_;
// @@protoc_insertion_point(copy_constructor:WechatProto.WechatMsg)
}
void WechatMsg::SharedCtor() {
token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&basemsg_, 0, reinterpret_cast<char*>(×tamp_) -
reinterpret_cast<char*>(&basemsg_) + sizeof(timestamp_));
_cached_size_ = 0;
}
WechatMsg::~WechatMsg() {
// @@protoc_insertion_point(destructor:WechatProto.WechatMsg)
SharedDtor();
}
void WechatMsg::SharedDtor() {
token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete basemsg_;
}
}
void WechatMsg::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* WechatMsg::descriptor() {
protobuf_WeChatProto_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_WeChatProto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const WechatMsg& WechatMsg::default_instance() {
protobuf_WeChatProto_2eproto::InitDefaults();
return *internal_default_instance();
}
WechatMsg* WechatMsg::New(::google::protobuf::Arena* arena) const {
WechatMsg* n = new WechatMsg;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void WechatMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:WechatProto.WechatMsg)
token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && basemsg_ != NULL) {
delete basemsg_;
}
basemsg_ = NULL;
timestamp_ = 0;
}
bool WechatMsg::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:WechatProto.WechatMsg)
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)) {
// .WechatProto.BaseMsg baseMsg = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(10u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_basemsg()));
} else {
goto handle_unusual;
}
break;
}
// string token = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_token()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->token().data(), this->token().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.WechatMsg.token"));
} else {
goto handle_unusual;
}
break;
}
// string version = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_version()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->version().data(), this->version().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.WechatMsg.version"));
} else {
goto handle_unusual;
}
break;
}
// int32 timeStamp = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(32u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, ×tamp_)));
} else {
goto handle_unusual;
}
break;
}
// string iP = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_ip()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->ip().data(), this->ip().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.WechatMsg.iP"));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:WechatProto.WechatMsg)
return true;
failure:
// @@protoc_insertion_point(parse_failure:WechatProto.WechatMsg)
return false;
#undef DO_
}
void WechatMsg::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:WechatProto.WechatMsg)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .WechatProto.BaseMsg baseMsg = 1;
if (this->has_basemsg()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, *this->basemsg_, output);
}
// string token = 2;
if (this->token().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->token().data(), this->token().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.WechatMsg.token");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2, this->token(), output);
}
// string version = 3;
if (this->version().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->version().data(), this->version().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.WechatMsg.version");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->version(), output);
}
// int32 timeStamp = 4;
if (this->timestamp() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->timestamp(), output);
}
// string iP = 5;
if (this->ip().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->ip().data(), this->ip().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.WechatMsg.iP");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->ip(), output);
}
// @@protoc_insertion_point(serialize_end:WechatProto.WechatMsg)
}
::google::protobuf::uint8* WechatMsg::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:WechatProto.WechatMsg)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// .WechatProto.BaseMsg baseMsg = 1;
if (this->has_basemsg()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
1, *this->basemsg_, deterministic, target);
}
// string token = 2;
if (this->token().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->token().data(), this->token().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.WechatMsg.token");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->token(), target);
}
// string version = 3;
if (this->version().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->version().data(), this->version().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.WechatMsg.version");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->version(), target);
}
// int32 timeStamp = 4;
if (this->timestamp() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->timestamp(), target);
}
// string iP = 5;
if (this->ip().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->ip().data(), this->ip().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.WechatMsg.iP");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->ip(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:WechatProto.WechatMsg)
return target;
}
size_t WechatMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:WechatProto.WechatMsg)
size_t total_size = 0;
// string token = 2;
if (this->token().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->token());
}
// string version = 3;
if (this->version().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->version());
}
// string iP = 5;
if (this->ip().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->ip());
}
// .WechatProto.BaseMsg baseMsg = 1;
if (this->has_basemsg()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->basemsg_);
}
// int32 timeStamp = 4;
if (this->timestamp() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->timestamp());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void WechatMsg::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:WechatProto.WechatMsg)
GOOGLE_DCHECK_NE(&from, this);
const WechatMsg* source =
::google::protobuf::internal::DynamicCastToGenerated<const WechatMsg>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:WechatProto.WechatMsg)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:WechatProto.WechatMsg)
MergeFrom(*source);
}
}
void WechatMsg::MergeFrom(const WechatMsg& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:WechatProto.WechatMsg)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.token().size() > 0) {
token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_);
}
if (from.version().size() > 0) {
version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
}
if (from.ip().size() > 0) {
ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
}
if (from.has_basemsg()) {
mutable_basemsg()->::WechatProto::BaseMsg::MergeFrom(from.basemsg());
}
if (from.timestamp() != 0) {
set_timestamp(from.timestamp());
}
}
void WechatMsg::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:WechatProto.WechatMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void WechatMsg::CopyFrom(const WechatMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:WechatProto.WechatMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool WechatMsg::IsInitialized() const {
return true;
}
void WechatMsg::Swap(WechatMsg* other) {
if (other == this) return;
InternalSwap(other);
}
void WechatMsg::InternalSwap(WechatMsg* other) {
token_.Swap(&other->token_);
version_.Swap(&other->version_);
ip_.Swap(&other->ip_);
std::swap(basemsg_, other->basemsg_);
std::swap(timestamp_, other->timestamp_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata WechatMsg::GetMetadata() const {
protobuf_WeChatProto_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_WeChatProto_2eproto::file_level_metadata[kIndexInFileMessages];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// WechatMsg
// .WechatProto.BaseMsg baseMsg = 1;
bool WechatMsg::has_basemsg() const {
return this != internal_default_instance() && basemsg_ != NULL;
}
void WechatMsg::clear_basemsg() {
if (GetArenaNoVirtual() == NULL && basemsg_ != NULL) delete basemsg_;
basemsg_ = NULL;
}
const ::WechatProto::BaseMsg& WechatMsg::basemsg() const {
// @@protoc_insertion_point(field_get:WechatProto.WechatMsg.baseMsg)
return basemsg_ != NULL ? *basemsg_
: *::WechatProto::BaseMsg::internal_default_instance();
}
::WechatProto::BaseMsg* WechatMsg::mutable_basemsg() {
if (basemsg_ == NULL) {
basemsg_ = new ::WechatProto::BaseMsg;
}
// @@protoc_insertion_point(field_mutable:WechatProto.WechatMsg.baseMsg)
return basemsg_;
}
::WechatProto::BaseMsg* WechatMsg::release_basemsg() {
// @@protoc_insertion_point(field_release:WechatProto.WechatMsg.baseMsg)
::WechatProto::BaseMsg* temp = basemsg_;
basemsg_ = NULL;
return temp;
}
void WechatMsg::set_allocated_basemsg(::WechatProto::BaseMsg* basemsg) {
delete basemsg_;
basemsg_ = basemsg;
if (basemsg) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:WechatProto.WechatMsg.baseMsg)
}
// string token = 2;
void WechatMsg::clear_token() {
token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& WechatMsg::token() const {
// @@protoc_insertion_point(field_get:WechatProto.WechatMsg.token)
return token_.GetNoArena();
}
void WechatMsg::set_token(const ::std::string& value) {
token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.WechatMsg.token)
}
#if LANG_CXX11
void WechatMsg::set_token(::std::string&& value) {
token_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.WechatMsg.token)
}
#endif
void WechatMsg::set_token(const char* value) {
GOOGLE_DCHECK(value != NULL);
token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.WechatMsg.token)
}
void WechatMsg::set_token(const char* value, size_t size) {
token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.WechatMsg.token)
}
::std::string* WechatMsg::mutable_token() {
// @@protoc_insertion_point(field_mutable:WechatProto.WechatMsg.token)
return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* WechatMsg::release_token() {
// @@protoc_insertion_point(field_release:WechatProto.WechatMsg.token)
return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void WechatMsg::set_allocated_token(::std::string* token) {
if (token != NULL) {
} else {
}
token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token);
// @@protoc_insertion_point(field_set_allocated:WechatProto.WechatMsg.token)
}
// string version = 3;
void WechatMsg::clear_version() {
version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& WechatMsg::version() const {
// @@protoc_insertion_point(field_get:WechatProto.WechatMsg.version)
return version_.GetNoArena();
}
void WechatMsg::set_version(const ::std::string& value) {
version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.WechatMsg.version)
}
#if LANG_CXX11
void WechatMsg::set_version(::std::string&& value) {
version_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.WechatMsg.version)
}
#endif
void WechatMsg::set_version(const char* value) {
GOOGLE_DCHECK(value != NULL);
version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.WechatMsg.version)
}
void WechatMsg::set_version(const char* value, size_t size) {
version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.WechatMsg.version)
}
::std::string* WechatMsg::mutable_version() {
// @@protoc_insertion_point(field_mutable:WechatProto.WechatMsg.version)
return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* WechatMsg::release_version() {
// @@protoc_insertion_point(field_release:WechatProto.WechatMsg.version)
return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void WechatMsg::set_allocated_version(::std::string* version) {
if (version != NULL) {
} else {
}
version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
// @@protoc_insertion_point(field_set_allocated:WechatProto.WechatMsg.version)
}
// int32 timeStamp = 4;
void WechatMsg::clear_timestamp() {
timestamp_ = 0;
}
::google::protobuf::int32 WechatMsg::timestamp() const {
// @@protoc_insertion_point(field_get:WechatProto.WechatMsg.timeStamp)
return timestamp_;
}
void WechatMsg::set_timestamp(::google::protobuf::int32 value) {
timestamp_ = value;
// @@protoc_insertion_point(field_set:WechatProto.WechatMsg.timeStamp)
}
// string iP = 5;
void WechatMsg::clear_ip() {
ip_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& WechatMsg::ip() const {
// @@protoc_insertion_point(field_get:WechatProto.WechatMsg.iP)
return ip_.GetNoArena();
}
void WechatMsg::set_ip(const ::std::string& value) {
ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.WechatMsg.iP)
}
#if LANG_CXX11
void WechatMsg::set_ip(::std::string&& value) {
ip_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.WechatMsg.iP)
}
#endif
void WechatMsg::set_ip(const char* value) {
GOOGLE_DCHECK(value != NULL);
ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.WechatMsg.iP)
}
void WechatMsg::set_ip(const char* value, size_t size) {
ip_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.WechatMsg.iP)
}
::std::string* WechatMsg::mutable_ip() {
// @@protoc_insertion_point(field_mutable:WechatProto.WechatMsg.iP)
return ip_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* WechatMsg::release_ip() {
// @@protoc_insertion_point(field_release:WechatProto.WechatMsg.iP)
return ip_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void WechatMsg::set_allocated_ip(::std::string* ip) {
if (ip != NULL) {
} else {
}
ip_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ip);
// @@protoc_insertion_point(field_set_allocated:WechatProto.WechatMsg.iP)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int BaseMsg::kRetFieldNumber;
const int BaseMsg::kCmdFieldNumber;
const int BaseMsg::kCmdUrlFieldNumber;
const int BaseMsg::kShortHostFieldNumber;
const int BaseMsg::kLongHostFieldNumber;
const int BaseMsg::kUserFieldNumber;
const int BaseMsg::kLongHeadFieldNumber;
const int BaseMsg::kPayloadsFieldNumber;
const int BaseMsg::kPlayloadextendFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
BaseMsg::BaseMsg()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_WeChatProto_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:WechatProto.BaseMsg)
}
BaseMsg::BaseMsg(const BaseMsg& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
cmdurl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.cmdurl().size() > 0) {
cmdurl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmdurl_);
}
shorthost_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.shorthost().size() > 0) {
shorthost_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.shorthost_);
}
longhost_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.longhost().size() > 0) {
longhost_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.longhost_);
}
longhead_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.longhead().size() > 0) {
longhead_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.longhead_);
}
payloads_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.payloads().size() > 0) {
payloads_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payloads_);
}
playloadextend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.playloadextend().size() > 0) {
playloadextend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playloadextend_);
}
if (from.has_user()) {
user_ = new ::WechatProto::User(*from.user_);
} else {
user_ = NULL;
}
::memcpy(&ret_, &from.ret_,
reinterpret_cast<char*>(&cmd_) -
reinterpret_cast<char*>(&ret_) + sizeof(cmd_));
// @@protoc_insertion_point(copy_constructor:WechatProto.BaseMsg)
}
void BaseMsg::SharedCtor() {
cmdurl_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
shorthost_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
longhost_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
longhead_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
payloads_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
playloadextend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
::memset(&user_, 0, reinterpret_cast<char*>(&cmd_) -
reinterpret_cast<char*>(&user_) + sizeof(cmd_));
_cached_size_ = 0;
}
BaseMsg::~BaseMsg() {
// @@protoc_insertion_point(destructor:WechatProto.BaseMsg)
SharedDtor();
}
void BaseMsg::SharedDtor() {
cmdurl_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
shorthost_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
longhost_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
longhead_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
payloads_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
playloadextend_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) {
delete user_;
}
}
void BaseMsg::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* BaseMsg::descriptor() {
protobuf_WeChatProto_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_WeChatProto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const BaseMsg& BaseMsg::default_instance() {
protobuf_WeChatProto_2eproto::InitDefaults();
return *internal_default_instance();
}
BaseMsg* BaseMsg::New(::google::protobuf::Arena* arena) const {
BaseMsg* n = new BaseMsg;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void BaseMsg::Clear() {
// @@protoc_insertion_point(message_clear_start:WechatProto.BaseMsg)
cmdurl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
shorthost_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
longhost_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
longhead_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
payloads_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
playloadextend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (GetArenaNoVirtual() == NULL && user_ != NULL) {
delete user_;
}
user_ = NULL;
::memset(&ret_, 0, reinterpret_cast<char*>(&cmd_) -
reinterpret_cast<char*>(&ret_) + sizeof(cmd_));
}
bool BaseMsg::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:WechatProto.BaseMsg)
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)) {
// int32 ret = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &ret_)));
} else {
goto handle_unusual;
}
break;
}
// int32 cmd = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(16u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &cmd_)));
} else {
goto handle_unusual;
}
break;
}
// string cmdUrl = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_cmdurl()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->cmdurl().data(), this->cmdurl().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.BaseMsg.cmdUrl"));
} else {
goto handle_unusual;
}
break;
}
// string shortHost = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_shorthost()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->shorthost().data(), this->shorthost().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.BaseMsg.shortHost"));
} else {
goto handle_unusual;
}
break;
}
// string longHost = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_longhost()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->longhost().data(), this->longhost().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.BaseMsg.longHost"));
} else {
goto handle_unusual;
}
break;
}
// .WechatProto.User user = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(50u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_user()));
} else {
goto handle_unusual;
}
break;
}
// bytes longHead = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(58u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_longhead()));
} else {
goto handle_unusual;
}
break;
}
// bytes payloads = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(66u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_payloads()));
} else {
goto handle_unusual;
}
break;
}
// bytes playloadextend = 9;
case 9: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(74u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_playloadextend()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:WechatProto.BaseMsg)
return true;
failure:
// @@protoc_insertion_point(parse_failure:WechatProto.BaseMsg)
return false;
#undef DO_
}
void BaseMsg::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:WechatProto.BaseMsg)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int32 ret = 1;
if (this->ret() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->ret(), output);
}
// int32 cmd = 2;
if (this->cmd() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->cmd(), output);
}
// string cmdUrl = 3;
if (this->cmdurl().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->cmdurl().data(), this->cmdurl().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.BaseMsg.cmdUrl");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3, this->cmdurl(), output);
}
// string shortHost = 4;
if (this->shorthost().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->shorthost().data(), this->shorthost().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.BaseMsg.shortHost");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->shorthost(), output);
}
// string longHost = 5;
if (this->longhost().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->longhost().data(), this->longhost().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.BaseMsg.longHost");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->longhost(), output);
}
// .WechatProto.User user = 6;
if (this->has_user()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, *this->user_, output);
}
// bytes longHead = 7;
if (this->longhead().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7, this->longhead(), output);
}
// bytes payloads = 8;
if (this->payloads().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8, this->payloads(), output);
}
// bytes playloadextend = 9;
if (this->playloadextend().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9, this->playloadextend(), output);
}
// @@protoc_insertion_point(serialize_end:WechatProto.BaseMsg)
}
::google::protobuf::uint8* BaseMsg::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:WechatProto.BaseMsg)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int32 ret = 1;
if (this->ret() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->ret(), target);
}
// int32 cmd = 2;
if (this->cmd() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->cmd(), target);
}
// string cmdUrl = 3;
if (this->cmdurl().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->cmdurl().data(), this->cmdurl().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.BaseMsg.cmdUrl");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->cmdurl(), target);
}
// string shortHost = 4;
if (this->shorthost().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->shorthost().data(), this->shorthost().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.BaseMsg.shortHost");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->shorthost(), target);
}
// string longHost = 5;
if (this->longhost().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->longhost().data(), this->longhost().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.BaseMsg.longHost");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->longhost(), target);
}
// .WechatProto.User user = 6;
if (this->has_user()) {
target = ::google::protobuf::internal::WireFormatLite::
InternalWriteMessageNoVirtualToArray(
6, *this->user_, deterministic, target);
}
// bytes longHead = 7;
if (this->longhead().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7, this->longhead(), target);
}
// bytes payloads = 8;
if (this->payloads().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8, this->payloads(), target);
}
// bytes playloadextend = 9;
if (this->playloadextend().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9, this->playloadextend(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:WechatProto.BaseMsg)
return target;
}
size_t BaseMsg::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:WechatProto.BaseMsg)
size_t total_size = 0;
// string cmdUrl = 3;
if (this->cmdurl().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->cmdurl());
}
// string shortHost = 4;
if (this->shorthost().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->shorthost());
}
// string longHost = 5;
if (this->longhost().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->longhost());
}
// bytes longHead = 7;
if (this->longhead().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->longhead());
}
// bytes payloads = 8;
if (this->payloads().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->payloads());
}
// bytes playloadextend = 9;
if (this->playloadextend().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->playloadextend());
}
// .WechatProto.User user = 6;
if (this->has_user()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
*this->user_);
}
// int32 ret = 1;
if (this->ret() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->ret());
}
// int32 cmd = 2;
if (this->cmd() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->cmd());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void BaseMsg::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:WechatProto.BaseMsg)
GOOGLE_DCHECK_NE(&from, this);
const BaseMsg* source =
::google::protobuf::internal::DynamicCastToGenerated<const BaseMsg>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:WechatProto.BaseMsg)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:WechatProto.BaseMsg)
MergeFrom(*source);
}
}
void BaseMsg::MergeFrom(const BaseMsg& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:WechatProto.BaseMsg)
GOOGLE_DCHECK_NE(&from, this);
_internal_metadata_.MergeFrom(from._internal_metadata_);
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
if (from.cmdurl().size() > 0) {
cmdurl_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmdurl_);
}
if (from.shorthost().size() > 0) {
shorthost_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.shorthost_);
}
if (from.longhost().size() > 0) {
longhost_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.longhost_);
}
if (from.longhead().size() > 0) {
longhead_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.longhead_);
}
if (from.payloads().size() > 0) {
payloads_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.payloads_);
}
if (from.playloadextend().size() > 0) {
playloadextend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.playloadextend_);
}
if (from.has_user()) {
mutable_user()->::WechatProto::User::MergeFrom(from.user());
}
if (from.ret() != 0) {
set_ret(from.ret());
}
if (from.cmd() != 0) {
set_cmd(from.cmd());
}
}
void BaseMsg::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:WechatProto.BaseMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void BaseMsg::CopyFrom(const BaseMsg& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:WechatProto.BaseMsg)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BaseMsg::IsInitialized() const {
return true;
}
void BaseMsg::Swap(BaseMsg* other) {
if (other == this) return;
InternalSwap(other);
}
void BaseMsg::InternalSwap(BaseMsg* other) {
cmdurl_.Swap(&other->cmdurl_);
shorthost_.Swap(&other->shorthost_);
longhost_.Swap(&other->longhost_);
longhead_.Swap(&other->longhead_);
payloads_.Swap(&other->payloads_);
playloadextend_.Swap(&other->playloadextend_);
std::swap(user_, other->user_);
std::swap(ret_, other->ret_);
std::swap(cmd_, other->cmd_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata BaseMsg::GetMetadata() const {
protobuf_WeChatProto_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_WeChatProto_2eproto::file_level_metadata[kIndexInFileMessages];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// BaseMsg
// int32 ret = 1;
void BaseMsg::clear_ret() {
ret_ = 0;
}
::google::protobuf::int32 BaseMsg::ret() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.ret)
return ret_;
}
void BaseMsg::set_ret(::google::protobuf::int32 value) {
ret_ = value;
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.ret)
}
// int32 cmd = 2;
void BaseMsg::clear_cmd() {
cmd_ = 0;
}
::google::protobuf::int32 BaseMsg::cmd() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.cmd)
return cmd_;
}
void BaseMsg::set_cmd(::google::protobuf::int32 value) {
cmd_ = value;
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.cmd)
}
// string cmdUrl = 3;
void BaseMsg::clear_cmdurl() {
cmdurl_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BaseMsg::cmdurl() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.cmdUrl)
return cmdurl_.GetNoArena();
}
void BaseMsg::set_cmdurl(const ::std::string& value) {
cmdurl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.cmdUrl)
}
#if LANG_CXX11
void BaseMsg::set_cmdurl(::std::string&& value) {
cmdurl_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.BaseMsg.cmdUrl)
}
#endif
void BaseMsg::set_cmdurl(const char* value) {
GOOGLE_DCHECK(value != NULL);
cmdurl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.BaseMsg.cmdUrl)
}
void BaseMsg::set_cmdurl(const char* value, size_t size) {
cmdurl_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.BaseMsg.cmdUrl)
}
::std::string* BaseMsg::mutable_cmdurl() {
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.cmdUrl)
return cmdurl_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BaseMsg::release_cmdurl() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.cmdUrl)
return cmdurl_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BaseMsg::set_allocated_cmdurl(::std::string* cmdurl) {
if (cmdurl != NULL) {
} else {
}
cmdurl_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmdurl);
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.cmdUrl)
}
// string shortHost = 4;
void BaseMsg::clear_shorthost() {
shorthost_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BaseMsg::shorthost() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.shortHost)
return shorthost_.GetNoArena();
}
void BaseMsg::set_shorthost(const ::std::string& value) {
shorthost_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.shortHost)
}
#if LANG_CXX11
void BaseMsg::set_shorthost(::std::string&& value) {
shorthost_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.BaseMsg.shortHost)
}
#endif
void BaseMsg::set_shorthost(const char* value) {
GOOGLE_DCHECK(value != NULL);
shorthost_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.BaseMsg.shortHost)
}
void BaseMsg::set_shorthost(const char* value, size_t size) {
shorthost_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.BaseMsg.shortHost)
}
::std::string* BaseMsg::mutable_shorthost() {
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.shortHost)
return shorthost_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BaseMsg::release_shorthost() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.shortHost)
return shorthost_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BaseMsg::set_allocated_shorthost(::std::string* shorthost) {
if (shorthost != NULL) {
} else {
}
shorthost_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), shorthost);
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.shortHost)
}
// string longHost = 5;
void BaseMsg::clear_longhost() {
longhost_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BaseMsg::longhost() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.longHost)
return longhost_.GetNoArena();
}
void BaseMsg::set_longhost(const ::std::string& value) {
longhost_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.longHost)
}
#if LANG_CXX11
void BaseMsg::set_longhost(::std::string&& value) {
longhost_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.BaseMsg.longHost)
}
#endif
void BaseMsg::set_longhost(const char* value) {
GOOGLE_DCHECK(value != NULL);
longhost_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.BaseMsg.longHost)
}
void BaseMsg::set_longhost(const char* value, size_t size) {
longhost_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.BaseMsg.longHost)
}
::std::string* BaseMsg::mutable_longhost() {
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.longHost)
return longhost_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BaseMsg::release_longhost() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.longHost)
return longhost_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BaseMsg::set_allocated_longhost(::std::string* longhost) {
if (longhost != NULL) {
} else {
}
longhost_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), longhost);
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.longHost)
}
// .WechatProto.User user = 6;
bool BaseMsg::has_user() const {
return this != internal_default_instance() && user_ != NULL;
}
void BaseMsg::clear_user() {
if (GetArenaNoVirtual() == NULL && user_ != NULL) delete user_;
user_ = NULL;
}
const ::WechatProto::User& BaseMsg::user() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.user)
return user_ != NULL ? *user_
: *::WechatProto::User::internal_default_instance();
}
::WechatProto::User* BaseMsg::mutable_user() {
if (user_ == NULL) {
user_ = new ::WechatProto::User;
}
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.user)
return user_;
}
::WechatProto::User* BaseMsg::release_user() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.user)
::WechatProto::User* temp = user_;
user_ = NULL;
return temp;
}
void BaseMsg::set_allocated_user(::WechatProto::User* user) {
delete user_;
user_ = user;
if (user) {
} else {
}
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.user)
}
// bytes longHead = 7;
void BaseMsg::clear_longhead() {
longhead_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BaseMsg::longhead() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.longHead)
return longhead_.GetNoArena();
}
void BaseMsg::set_longhead(const ::std::string& value) {
longhead_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.longHead)
}
#if LANG_CXX11
void BaseMsg::set_longhead(::std::string&& value) {
longhead_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.BaseMsg.longHead)
}
#endif
void BaseMsg::set_longhead(const char* value) {
GOOGLE_DCHECK(value != NULL);
longhead_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.BaseMsg.longHead)
}
void BaseMsg::set_longhead(const void* value, size_t size) {
longhead_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.BaseMsg.longHead)
}
::std::string* BaseMsg::mutable_longhead() {
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.longHead)
return longhead_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BaseMsg::release_longhead() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.longHead)
return longhead_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BaseMsg::set_allocated_longhead(::std::string* longhead) {
if (longhead != NULL) {
} else {
}
longhead_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), longhead);
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.longHead)
}
// bytes payloads = 8;
void BaseMsg::clear_payloads() {
payloads_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BaseMsg::payloads() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.payloads)
return payloads_.GetNoArena();
}
void BaseMsg::set_payloads(const ::std::string& value) {
payloads_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.payloads)
}
#if LANG_CXX11
void BaseMsg::set_payloads(::std::string&& value) {
payloads_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.BaseMsg.payloads)
}
#endif
void BaseMsg::set_payloads(const char* value) {
GOOGLE_DCHECK(value != NULL);
payloads_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.BaseMsg.payloads)
}
void BaseMsg::set_payloads(const void* value, size_t size) {
payloads_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.BaseMsg.payloads)
}
::std::string* BaseMsg::mutable_payloads() {
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.payloads)
return payloads_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BaseMsg::release_payloads() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.payloads)
return payloads_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BaseMsg::set_allocated_payloads(::std::string* payloads) {
if (payloads != NULL) {
} else {
}
payloads_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), payloads);
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.payloads)
}
// bytes playloadextend = 9;
void BaseMsg::clear_playloadextend() {
playloadextend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& BaseMsg::playloadextend() const {
// @@protoc_insertion_point(field_get:WechatProto.BaseMsg.playloadextend)
return playloadextend_.GetNoArena();
}
void BaseMsg::set_playloadextend(const ::std::string& value) {
playloadextend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.BaseMsg.playloadextend)
}
#if LANG_CXX11
void BaseMsg::set_playloadextend(::std::string&& value) {
playloadextend_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.BaseMsg.playloadextend)
}
#endif
void BaseMsg::set_playloadextend(const char* value) {
GOOGLE_DCHECK(value != NULL);
playloadextend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.BaseMsg.playloadextend)
}
void BaseMsg::set_playloadextend(const void* value, size_t size) {
playloadextend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.BaseMsg.playloadextend)
}
::std::string* BaseMsg::mutable_playloadextend() {
// @@protoc_insertion_point(field_mutable:WechatProto.BaseMsg.playloadextend)
return playloadextend_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* BaseMsg::release_playloadextend() {
// @@protoc_insertion_point(field_release:WechatProto.BaseMsg.playloadextend)
return playloadextend_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void BaseMsg::set_allocated_playloadextend(::std::string* playloadextend) {
if (playloadextend != NULL) {
} else {
}
playloadextend_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), playloadextend);
// @@protoc_insertion_point(field_set_allocated:WechatProto.BaseMsg.playloadextend)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// ===================================================================
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int User::kUinFieldNumber;
const int User::kCookiesFieldNumber;
const int User::kSessionKeyFieldNumber;
const int User::kDeviceIdFieldNumber;
const int User::kDeviceTypeFieldNumber;
const int User::kDeviceNameFieldNumber;
const int User::kCurrentsyncKeyFieldNumber;
const int User::kMaxSyncKeyFieldNumber;
const int User::kAutoAuthKeyFieldNumber;
const int User::kUserameFieldNumber;
const int User::kNicknameFieldNumber;
const int User::kUserExtFieldNumber;
#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
User::User()
: ::google::protobuf::Message(), _internal_metadata_(NULL) {
if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
protobuf_WeChatProto_2eproto::InitDefaults();
}
SharedCtor();
// @@protoc_insertion_point(constructor:WechatProto.User)
}
User::User(const User& from)
: ::google::protobuf::Message(),
_internal_metadata_(NULL),
_cached_size_(0) {
_internal_metadata_.MergeFrom(from._internal_metadata_);
cookies_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.cookies().size() > 0) {
cookies_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cookies_);
}
sessionkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.sessionkey().size() > 0) {
sessionkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sessionkey_);
}
deviceid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.deviceid().size() > 0) {
deviceid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deviceid_);
}
devicetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.devicetype().size() > 0) {
devicetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.devicetype_);
}
devicename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.devicename().size() > 0) {
devicename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.devicename_);
}
currentsynckey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.currentsynckey().size() > 0) {
currentsynckey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.currentsynckey_);
}
maxsynckey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.maxsynckey().size() > 0) {
maxsynckey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.maxsynckey_);
}
autoauthkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.autoauthkey().size() > 0) {
autoauthkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.autoauthkey_);
}
userame_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.userame().size() > 0) {
userame_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.userame_);
}
nickname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.nickname().size() > 0) {
nickname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nickname_);
}
userext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
if (from.userext().size() > 0) {
userext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.userext_);
}
uin_ = from.uin_;
// @@protoc_insertion_point(copy_constructor:WechatProto.User)
}
void User::SharedCtor() {
cookies_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
sessionkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
deviceid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
devicetype_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
devicename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
currentsynckey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
maxsynckey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
autoauthkey_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userame_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
nickname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userext_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
uin_ = GOOGLE_LONGLONG(0);
_cached_size_ = 0;
}
User::~User() {
// @@protoc_insertion_point(destructor:WechatProto.User)
SharedDtor();
}
void User::SharedDtor() {
cookies_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
sessionkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
deviceid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
devicetype_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
devicename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
currentsynckey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
maxsynckey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
autoauthkey_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userame_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
nickname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* User::descriptor() {
protobuf_WeChatProto_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_WeChatProto_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}
const User& User::default_instance() {
protobuf_WeChatProto_2eproto::InitDefaults();
return *internal_default_instance();
}
User* User::New(::google::protobuf::Arena* arena) const {
User* n = new User;
if (arena != NULL) {
arena->Own(n);
}
return n;
}
void User::Clear() {
// @@protoc_insertion_point(message_clear_start:WechatProto.User)
cookies_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
sessionkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
deviceid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
devicetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
devicename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
currentsynckey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
maxsynckey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
autoauthkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
nickname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
userext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
uin_ = GOOGLE_LONGLONG(0);
}
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:WechatProto.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)) {
// int64 uin = 1;
case 1: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(8u)) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
input, &uin_)));
} else {
goto handle_unusual;
}
break;
}
// bytes cookies = 2;
case 2: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(18u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_cookies()));
} else {
goto handle_unusual;
}
break;
}
// bytes sessionKey = 3;
case 3: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(26u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_sessionkey()));
} else {
goto handle_unusual;
}
break;
}
// string deviceId = 4;
case 4: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(34u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_deviceid()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deviceid().data(), this->deviceid().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.User.deviceId"));
} else {
goto handle_unusual;
}
break;
}
// string deviceType = 5;
case 5: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(42u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_devicetype()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->devicetype().data(), this->devicetype().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.User.deviceType"));
} else {
goto handle_unusual;
}
break;
}
// string deviceName = 6;
case 6: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(50u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_devicename()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->devicename().data(), this->devicename().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.User.deviceName"));
} else {
goto handle_unusual;
}
break;
}
// bytes currentsyncKey = 7;
case 7: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(58u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_currentsynckey()));
} else {
goto handle_unusual;
}
break;
}
// bytes maxSyncKey = 8;
case 8: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(66u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_maxsynckey()));
} else {
goto handle_unusual;
}
break;
}
// bytes autoAuthKey = 9;
case 9: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(74u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_autoauthkey()));
} else {
goto handle_unusual;
}
break;
}
// string userame = 10;
case 10: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(82u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_userame()));
DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->userame().data(), this->userame().length(),
::google::protobuf::internal::WireFormatLite::PARSE,
"WechatProto.User.userame"));
} else {
goto handle_unusual;
}
break;
}
// bytes nickname = 11;
case 11: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(90u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_nickname()));
} else {
goto handle_unusual;
}
break;
}
// bytes userExt = 12;
case 12: {
if (static_cast< ::google::protobuf::uint8>(tag) ==
static_cast< ::google::protobuf::uint8>(98u)) {
DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
input, this->mutable_userext()));
} else {
goto handle_unusual;
}
break;
}
default: {
handle_unusual:
if (tag == 0 ||
::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
goto success;
}
DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
break;
}
}
}
success:
// @@protoc_insertion_point(parse_success:WechatProto.User)
return true;
failure:
// @@protoc_insertion_point(parse_failure:WechatProto.User)
return false;
#undef DO_
}
void User::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// @@protoc_insertion_point(serialize_start:WechatProto.User)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int64 uin = 1;
if (this->uin() != 0) {
::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->uin(), output);
}
// bytes cookies = 2;
if (this->cookies().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2, this->cookies(), output);
}
// bytes sessionKey = 3;
if (this->sessionkey().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3, this->sessionkey(), output);
}
// string deviceId = 4;
if (this->deviceid().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deviceid().data(), this->deviceid().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.deviceId");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4, this->deviceid(), output);
}
// string deviceType = 5;
if (this->devicetype().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->devicetype().data(), this->devicetype().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.deviceType");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5, this->devicetype(), output);
}
// string deviceName = 6;
if (this->devicename().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->devicename().data(), this->devicename().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.deviceName");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6, this->devicename(), output);
}
// bytes currentsyncKey = 7;
if (this->currentsynckey().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
7, this->currentsynckey(), output);
}
// bytes maxSyncKey = 8;
if (this->maxsynckey().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
8, this->maxsynckey(), output);
}
// bytes autoAuthKey = 9;
if (this->autoauthkey().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
9, this->autoauthkey(), output);
}
// string userame = 10;
if (this->userame().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->userame().data(), this->userame().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.userame");
::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
10, this->userame(), output);
}
// bytes nickname = 11;
if (this->nickname().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
11, this->nickname(), output);
}
// bytes userExt = 12;
if (this->userext().size() > 0) {
::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
12, this->userext(), output);
}
// @@protoc_insertion_point(serialize_end:WechatProto.User)
}
::google::protobuf::uint8* User::InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const {
// @@protoc_insertion_point(serialize_to_array_start:WechatProto.User)
::google::protobuf::uint32 cached_has_bits = 0;
(void) cached_has_bits;
// int64 uin = 1;
if (this->uin() != 0) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->uin(), target);
}
// bytes cookies = 2;
if (this->cookies().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2, this->cookies(), target);
}
// bytes sessionKey = 3;
if (this->sessionkey().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3, this->sessionkey(), target);
}
// string deviceId = 4;
if (this->deviceid().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->deviceid().data(), this->deviceid().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.deviceId");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->deviceid(), target);
}
// string deviceType = 5;
if (this->devicetype().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->devicetype().data(), this->devicetype().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.deviceType");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->devicetype(), target);
}
// string deviceName = 6;
if (this->devicename().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->devicename().data(), this->devicename().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.deviceName");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->devicename(), target);
}
// bytes currentsyncKey = 7;
if (this->currentsynckey().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
7, this->currentsynckey(), target);
}
// bytes maxSyncKey = 8;
if (this->maxsynckey().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
8, this->maxsynckey(), target);
}
// bytes autoAuthKey = 9;
if (this->autoauthkey().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
9, this->autoauthkey(), target);
}
// string userame = 10;
if (this->userame().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->userame().data(), this->userame().length(),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"WechatProto.User.userame");
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
10, this->userame(), target);
}
// bytes nickname = 11;
if (this->nickname().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
11, this->nickname(), target);
}
// bytes userExt = 12;
if (this->userext().size() > 0) {
target =
::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
12, this->userext(), target);
}
// @@protoc_insertion_point(serialize_to_array_end:WechatProto.User)
return target;
}
size_t User::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:WechatProto.User)
size_t total_size = 0;
// bytes cookies = 2;
if (this->cookies().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->cookies());
}
// bytes sessionKey = 3;
if (this->sessionkey().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->sessionkey());
}
// string deviceId = 4;
if (this->deviceid().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->deviceid());
}
// string deviceType = 5;
if (this->devicetype().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->devicetype());
}
// string deviceName = 6;
if (this->devicename().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->devicename());
}
// bytes currentsyncKey = 7;
if (this->currentsynckey().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->currentsynckey());
}
// bytes maxSyncKey = 8;
if (this->maxsynckey().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->maxsynckey());
}
// bytes autoAuthKey = 9;
if (this->autoauthkey().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->autoauthkey());
}
// string userame = 10;
if (this->userame().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->userame());
}
// bytes nickname = 11;
if (this->nickname().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->nickname());
}
// bytes userExt = 12;
if (this->userext().size() > 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::BytesSize(
this->userext());
}
// int64 uin = 1;
if (this->uin() != 0) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int64Size(
this->uin());
}
int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = cached_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void User::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:WechatProto.User)
GOOGLE_DCHECK_NE(&from, this);
const User* source =
::google::protobuf::internal::DynamicCastToGenerated<const User>(
&from);
if (source == NULL) {
// @@protoc_insertion_point(generalized_merge_from_cast_fail:WechatProto.User)
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
// @@protoc_insertion_point(generalized_merge_from_cast_success:WechatProto.User)
MergeFrom(*source);
}
}
void User::MergeFrom(const User& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:WechatProto.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.cookies().size() > 0) {
cookies_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cookies_);
}
if (from.sessionkey().size() > 0) {
sessionkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sessionkey_);
}
if (from.deviceid().size() > 0) {
deviceid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deviceid_);
}
if (from.devicetype().size() > 0) {
devicetype_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.devicetype_);
}
if (from.devicename().size() > 0) {
devicename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.devicename_);
}
if (from.currentsynckey().size() > 0) {
currentsynckey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.currentsynckey_);
}
if (from.maxsynckey().size() > 0) {
maxsynckey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.maxsynckey_);
}
if (from.autoauthkey().size() > 0) {
autoauthkey_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.autoauthkey_);
}
if (from.userame().size() > 0) {
userame_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.userame_);
}
if (from.nickname().size() > 0) {
nickname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.nickname_);
}
if (from.userext().size() > 0) {
userext_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.userext_);
}
if (from.uin() != 0) {
set_uin(from.uin());
}
}
void User::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:WechatProto.User)
if (&from == this) return;
Clear();
MergeFrom(from);
}
void User::CopyFrom(const User& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:WechatProto.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) {
cookies_.Swap(&other->cookies_);
sessionkey_.Swap(&other->sessionkey_);
deviceid_.Swap(&other->deviceid_);
devicetype_.Swap(&other->devicetype_);
devicename_.Swap(&other->devicename_);
currentsynckey_.Swap(&other->currentsynckey_);
maxsynckey_.Swap(&other->maxsynckey_);
autoauthkey_.Swap(&other->autoauthkey_);
userame_.Swap(&other->userame_);
nickname_.Swap(&other->nickname_);
userext_.Swap(&other->userext_);
std::swap(uin_, other->uin_);
std::swap(_cached_size_, other->_cached_size_);
}
::google::protobuf::Metadata User::GetMetadata() const {
protobuf_WeChatProto_2eproto::protobuf_AssignDescriptorsOnce();
return protobuf_WeChatProto_2eproto::file_level_metadata[kIndexInFileMessages];
}
#if PROTOBUF_INLINE_NOT_IN_HEADERS
// User
// int64 uin = 1;
void User::clear_uin() {
uin_ = GOOGLE_LONGLONG(0);
}
::google::protobuf::int64 User::uin() const {
// @@protoc_insertion_point(field_get:WechatProto.User.uin)
return uin_;
}
void User::set_uin(::google::protobuf::int64 value) {
uin_ = value;
// @@protoc_insertion_point(field_set:WechatProto.User.uin)
}
// bytes cookies = 2;
void User::clear_cookies() {
cookies_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::cookies() const {
// @@protoc_insertion_point(field_get:WechatProto.User.cookies)
return cookies_.GetNoArena();
}
void User::set_cookies(const ::std::string& value) {
cookies_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.cookies)
}
#if LANG_CXX11
void User::set_cookies(::std::string&& value) {
cookies_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.cookies)
}
#endif
void User::set_cookies(const char* value) {
GOOGLE_DCHECK(value != NULL);
cookies_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.cookies)
}
void User::set_cookies(const void* value, size_t size) {
cookies_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.cookies)
}
::std::string* User::mutable_cookies() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.cookies)
return cookies_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_cookies() {
// @@protoc_insertion_point(field_release:WechatProto.User.cookies)
return cookies_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_cookies(::std::string* cookies) {
if (cookies != NULL) {
} else {
}
cookies_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cookies);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.cookies)
}
// bytes sessionKey = 3;
void User::clear_sessionkey() {
sessionkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::sessionkey() const {
// @@protoc_insertion_point(field_get:WechatProto.User.sessionKey)
return sessionkey_.GetNoArena();
}
void User::set_sessionkey(const ::std::string& value) {
sessionkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.sessionKey)
}
#if LANG_CXX11
void User::set_sessionkey(::std::string&& value) {
sessionkey_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.sessionKey)
}
#endif
void User::set_sessionkey(const char* value) {
GOOGLE_DCHECK(value != NULL);
sessionkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.sessionKey)
}
void User::set_sessionkey(const void* value, size_t size) {
sessionkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.sessionKey)
}
::std::string* User::mutable_sessionkey() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.sessionKey)
return sessionkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_sessionkey() {
// @@protoc_insertion_point(field_release:WechatProto.User.sessionKey)
return sessionkey_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_sessionkey(::std::string* sessionkey) {
if (sessionkey != NULL) {
} else {
}
sessionkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sessionkey);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.sessionKey)
}
// string deviceId = 4;
void User::clear_deviceid() {
deviceid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::deviceid() const {
// @@protoc_insertion_point(field_get:WechatProto.User.deviceId)
return deviceid_.GetNoArena();
}
void User::set_deviceid(const ::std::string& value) {
deviceid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.deviceId)
}
#if LANG_CXX11
void User::set_deviceid(::std::string&& value) {
deviceid_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.deviceId)
}
#endif
void User::set_deviceid(const char* value) {
GOOGLE_DCHECK(value != NULL);
deviceid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.deviceId)
}
void User::set_deviceid(const char* value, size_t size) {
deviceid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.deviceId)
}
::std::string* User::mutable_deviceid() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.deviceId)
return deviceid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_deviceid() {
// @@protoc_insertion_point(field_release:WechatProto.User.deviceId)
return deviceid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_deviceid(::std::string* deviceid) {
if (deviceid != NULL) {
} else {
}
deviceid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deviceid);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.deviceId)
}
// string deviceType = 5;
void User::clear_devicetype() {
devicetype_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::devicetype() const {
// @@protoc_insertion_point(field_get:WechatProto.User.deviceType)
return devicetype_.GetNoArena();
}
void User::set_devicetype(const ::std::string& value) {
devicetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.deviceType)
}
#if LANG_CXX11
void User::set_devicetype(::std::string&& value) {
devicetype_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.deviceType)
}
#endif
void User::set_devicetype(const char* value) {
GOOGLE_DCHECK(value != NULL);
devicetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.deviceType)
}
void User::set_devicetype(const char* value, size_t size) {
devicetype_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.deviceType)
}
::std::string* User::mutable_devicetype() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.deviceType)
return devicetype_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_devicetype() {
// @@protoc_insertion_point(field_release:WechatProto.User.deviceType)
return devicetype_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_devicetype(::std::string* devicetype) {
if (devicetype != NULL) {
} else {
}
devicetype_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), devicetype);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.deviceType)
}
// string deviceName = 6;
void User::clear_devicename() {
devicename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::devicename() const {
// @@protoc_insertion_point(field_get:WechatProto.User.deviceName)
return devicename_.GetNoArena();
}
void User::set_devicename(const ::std::string& value) {
devicename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.deviceName)
}
#if LANG_CXX11
void User::set_devicename(::std::string&& value) {
devicename_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.deviceName)
}
#endif
void User::set_devicename(const char* value) {
GOOGLE_DCHECK(value != NULL);
devicename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.deviceName)
}
void User::set_devicename(const char* value, size_t size) {
devicename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.deviceName)
}
::std::string* User::mutable_devicename() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.deviceName)
return devicename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_devicename() {
// @@protoc_insertion_point(field_release:WechatProto.User.deviceName)
return devicename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_devicename(::std::string* devicename) {
if (devicename != NULL) {
} else {
}
devicename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), devicename);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.deviceName)
}
// bytes currentsyncKey = 7;
void User::clear_currentsynckey() {
currentsynckey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::currentsynckey() const {
// @@protoc_insertion_point(field_get:WechatProto.User.currentsyncKey)
return currentsynckey_.GetNoArena();
}
void User::set_currentsynckey(const ::std::string& value) {
currentsynckey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.currentsyncKey)
}
#if LANG_CXX11
void User::set_currentsynckey(::std::string&& value) {
currentsynckey_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.currentsyncKey)
}
#endif
void User::set_currentsynckey(const char* value) {
GOOGLE_DCHECK(value != NULL);
currentsynckey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.currentsyncKey)
}
void User::set_currentsynckey(const void* value, size_t size) {
currentsynckey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.currentsyncKey)
}
::std::string* User::mutable_currentsynckey() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.currentsyncKey)
return currentsynckey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_currentsynckey() {
// @@protoc_insertion_point(field_release:WechatProto.User.currentsyncKey)
return currentsynckey_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_currentsynckey(::std::string* currentsynckey) {
if (currentsynckey != NULL) {
} else {
}
currentsynckey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), currentsynckey);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.currentsyncKey)
}
// bytes maxSyncKey = 8;
void User::clear_maxsynckey() {
maxsynckey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::maxsynckey() const {
// @@protoc_insertion_point(field_get:WechatProto.User.maxSyncKey)
return maxsynckey_.GetNoArena();
}
void User::set_maxsynckey(const ::std::string& value) {
maxsynckey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.maxSyncKey)
}
#if LANG_CXX11
void User::set_maxsynckey(::std::string&& value) {
maxsynckey_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.maxSyncKey)
}
#endif
void User::set_maxsynckey(const char* value) {
GOOGLE_DCHECK(value != NULL);
maxsynckey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.maxSyncKey)
}
void User::set_maxsynckey(const void* value, size_t size) {
maxsynckey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.maxSyncKey)
}
::std::string* User::mutable_maxsynckey() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.maxSyncKey)
return maxsynckey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_maxsynckey() {
// @@protoc_insertion_point(field_release:WechatProto.User.maxSyncKey)
return maxsynckey_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_maxsynckey(::std::string* maxsynckey) {
if (maxsynckey != NULL) {
} else {
}
maxsynckey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), maxsynckey);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.maxSyncKey)
}
// bytes autoAuthKey = 9;
void User::clear_autoauthkey() {
autoauthkey_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::autoauthkey() const {
// @@protoc_insertion_point(field_get:WechatProto.User.autoAuthKey)
return autoauthkey_.GetNoArena();
}
void User::set_autoauthkey(const ::std::string& value) {
autoauthkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.autoAuthKey)
}
#if LANG_CXX11
void User::set_autoauthkey(::std::string&& value) {
autoauthkey_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.autoAuthKey)
}
#endif
void User::set_autoauthkey(const char* value) {
GOOGLE_DCHECK(value != NULL);
autoauthkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.autoAuthKey)
}
void User::set_autoauthkey(const void* value, size_t size) {
autoauthkey_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.autoAuthKey)
}
::std::string* User::mutable_autoauthkey() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.autoAuthKey)
return autoauthkey_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_autoauthkey() {
// @@protoc_insertion_point(field_release:WechatProto.User.autoAuthKey)
return autoauthkey_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_autoauthkey(::std::string* autoauthkey) {
if (autoauthkey != NULL) {
} else {
}
autoauthkey_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), autoauthkey);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.autoAuthKey)
}
// string userame = 10;
void User::clear_userame() {
userame_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::userame() const {
// @@protoc_insertion_point(field_get:WechatProto.User.userame)
return userame_.GetNoArena();
}
void User::set_userame(const ::std::string& value) {
userame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.userame)
}
#if LANG_CXX11
void User::set_userame(::std::string&& value) {
userame_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.userame)
}
#endif
void User::set_userame(const char* value) {
GOOGLE_DCHECK(value != NULL);
userame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.userame)
}
void User::set_userame(const char* value, size_t size) {
userame_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.userame)
}
::std::string* User::mutable_userame() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.userame)
return userame_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_userame() {
// @@protoc_insertion_point(field_release:WechatProto.User.userame)
return userame_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_userame(::std::string* userame) {
if (userame != NULL) {
} else {
}
userame_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), userame);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.userame)
}
// bytes nickname = 11;
void User::clear_nickname() {
nickname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::nickname() const {
// @@protoc_insertion_point(field_get:WechatProto.User.nickname)
return nickname_.GetNoArena();
}
void User::set_nickname(const ::std::string& value) {
nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.nickname)
}
#if LANG_CXX11
void User::set_nickname(::std::string&& value) {
nickname_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.nickname)
}
#endif
void User::set_nickname(const char* value) {
GOOGLE_DCHECK(value != NULL);
nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.nickname)
}
void User::set_nickname(const void* value, size_t size) {
nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.nickname)
}
::std::string* User::mutable_nickname() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.nickname)
return nickname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_nickname() {
// @@protoc_insertion_point(field_release:WechatProto.User.nickname)
return nickname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_nickname(::std::string* nickname) {
if (nickname != NULL) {
} else {
}
nickname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), nickname);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.nickname)
}
// bytes userExt = 12;
void User::clear_userext() {
userext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
const ::std::string& User::userext() const {
// @@protoc_insertion_point(field_get:WechatProto.User.userExt)
return userext_.GetNoArena();
}
void User::set_userext(const ::std::string& value) {
userext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:WechatProto.User.userExt)
}
#if LANG_CXX11
void User::set_userext(::std::string&& value) {
userext_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:WechatProto.User.userExt)
}
#endif
void User::set_userext(const char* value) {
GOOGLE_DCHECK(value != NULL);
userext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:WechatProto.User.userExt)
}
void User::set_userext(const void* value, size_t size) {
userext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:WechatProto.User.userExt)
}
::std::string* User::mutable_userext() {
// @@protoc_insertion_point(field_mutable:WechatProto.User.userExt)
return userext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* User::release_userext() {
// @@protoc_insertion_point(field_release:WechatProto.User.userExt)
return userext_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void User::set_allocated_userext(::std::string* userext) {
if (userext != NULL) {
} else {
}
userext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), userext);
// @@protoc_insertion_point(field_set_allocated:WechatProto.User.userExt)
}
#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
// @@protoc_insertion_point(namespace_scope)
} // namespace WechatProto
// @@protoc_insertion_point(global_scope)
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )