1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/DaYa_White-grpc

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
WechatProto.pb.cc 120 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Daya Отправлено 29.12.2018 07:48 a4999ad
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217
// 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*>(&timestamp_) -
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, &timestamp_)));
} 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 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/DaYa_White-grpc.git
git@api.gitlife.ru:oschina-mirror/DaYa_White-grpc.git
oschina-mirror
DaYa_White-grpc
DaYa_White-grpc
master