123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: remote.proto
- #include "remote.pb.h"
- #include <algorithm>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/wire_format_lite.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- PROTOBUF_PRAGMA_INIT_SEG
- namespace remote {
- constexpr Offer::Offer(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , index_(0)
- , peer_(0){}
- struct OfferDefaultTypeInternal {
- constexpr OfferDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~OfferDefaultTypeInternal() {}
- union {
- Offer _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
- constexpr Answer::Answer(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , index_(0)
- , peer_(0){}
- struct AnswerDefaultTypeInternal {
- constexpr AnswerDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~AnswerDefaultTypeInternal() {}
- union {
- Answer _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
- constexpr Candidate::Candidate(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , index_(0)
- , peer_(0)
- , sdpmlineindex_(0)
- , egotype_(0){}
- struct CandidateDefaultTypeInternal {
- constexpr CandidateDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CandidateDefaultTypeInternal() {}
- union {
- Candidate _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
- constexpr CSReq::CSReq(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : peer_(0)
- , index_(0)
- , egotype_(0){}
- struct CSReqDefaultTypeInternal {
- constexpr CSReqDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CSReqDefaultTypeInternal() {}
- union {
- CSReq _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
- constexpr SCReq::SCReq(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : desc_(0)
- , peer_(0)
- , egotype_(0){}
- struct SCReqDefaultTypeInternal {
- constexpr SCReqDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SCReqDefaultTypeInternal() {}
- union {
- SCReq _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
- constexpr CSRep::CSRep(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : desc_(0)
- , peer_(0)
- , index_(0)
- , egotype_(0){}
- struct CSRepDefaultTypeInternal {
- constexpr CSRepDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CSRepDefaultTypeInternal() {}
- union {
- CSRep _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
- constexpr SCRep::SCRep(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : desc_(0)
- , index_(0)
- , egotype_(0)
- , peer_(0){}
- struct SCRepDefaultTypeInternal {
- constexpr SCRepDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SCRepDefaultTypeInternal() {}
- union {
- SCRep _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
- constexpr CSSigin::CSSigin(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , pass_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , type_(0){}
- struct CSSiginDefaultTypeInternal {
- constexpr CSSiginDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CSSiginDefaultTypeInternal() {}
- union {
- CSSigin _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSiginDefaultTypeInternal _CSSigin_default_instance_;
- constexpr SCSigin::SCSigin(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , ret_(false)
- , uid_(0){}
- struct SCSiginDefaultTypeInternal {
- constexpr SCSiginDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SCSiginDefaultTypeInternal() {}
- union {
- SCSigin _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSiginDefaultTypeInternal _SCSigin_default_instance_;
- constexpr Robot::Robot(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
- , rid_(0)
- , type_(0)
- , state_(0){}
- struct RobotDefaultTypeInternal {
- constexpr RobotDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~RobotDefaultTypeInternal() {}
- union {
- Robot _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
- constexpr SCAddRobot::SCAddRobot(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : robot_(nullptr){}
- struct SCAddRobotDefaultTypeInternal {
- constexpr SCAddRobotDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SCAddRobotDefaultTypeInternal() {}
- union {
- SCAddRobot _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
- constexpr SCDelRobot::SCDelRobot(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : peer_(0)
- , egotype_(0){}
- struct SCDelRobotDefaultTypeInternal {
- constexpr SCDelRobotDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SCDelRobotDefaultTypeInternal() {}
- union {
- SCDelRobot _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
- constexpr CSRobot::CSRobot(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
- struct CSRobotDefaultTypeInternal {
- constexpr CSRobotDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~CSRobotDefaultTypeInternal() {}
- union {
- CSRobot _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
- constexpr SCRobot::SCRobot(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : robot_(){}
- struct SCRobotDefaultTypeInternal {
- constexpr SCRobotDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~SCRobotDefaultTypeInternal() {}
- union {
- SCRobot _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
- constexpr Leave::Leave(
- ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
- : peer_(0)
- , egotype_(0){}
- struct LeaveDefaultTypeInternal {
- constexpr LeaveDefaultTypeInternal()
- : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
- ~LeaveDefaultTypeInternal() {}
- union {
- Leave _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
- } // namespace remote
- static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2eproto[15];
- static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_remote_2eproto[2];
- static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_remote_2eproto = nullptr;
- const uint32_t TableStruct_remote_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::Offer, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::Offer, index_),
- PROTOBUF_FIELD_OFFSET(::remote::Offer, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::Offer, type_),
- PROTOBUF_FIELD_OFFSET(::remote::Offer, sdp_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::Answer, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::Answer, index_),
- PROTOBUF_FIELD_OFFSET(::remote::Answer, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::Answer, type_),
- PROTOBUF_FIELD_OFFSET(::remote::Answer, sdp_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, index_),
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, type_),
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, candidate_),
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, sdpmlineindex_),
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, sdpmid_),
- PROTOBUF_FIELD_OFFSET(::remote::Candidate, egotype_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::CSReq, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::CSReq, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::CSReq, index_),
- PROTOBUF_FIELD_OFFSET(::remote::CSReq, egotype_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::SCReq, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::SCReq, desc_),
- PROTOBUF_FIELD_OFFSET(::remote::SCReq, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::SCReq, egotype_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::CSRep, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::CSRep, desc_),
- PROTOBUF_FIELD_OFFSET(::remote::CSRep, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::CSRep, index_),
- PROTOBUF_FIELD_OFFSET(::remote::CSRep, egotype_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::SCRep, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::SCRep, desc_),
- PROTOBUF_FIELD_OFFSET(::remote::SCRep, index_),
- PROTOBUF_FIELD_OFFSET(::remote::SCRep, egotype_),
- PROTOBUF_FIELD_OFFSET(::remote::SCRep, peer_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::CSSigin, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::CSSigin, account_),
- PROTOBUF_FIELD_OFFSET(::remote::CSSigin, type_),
- PROTOBUF_FIELD_OFFSET(::remote::CSSigin, name_),
- PROTOBUF_FIELD_OFFSET(::remote::CSSigin, pass_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::SCSigin, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::SCSigin, ret_),
- PROTOBUF_FIELD_OFFSET(::remote::SCSigin, uid_),
- PROTOBUF_FIELD_OFFSET(::remote::SCSigin, name_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::Robot, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::Robot, rid_),
- PROTOBUF_FIELD_OFFSET(::remote::Robot, name_),
- PROTOBUF_FIELD_OFFSET(::remote::Robot, type_),
- PROTOBUF_FIELD_OFFSET(::remote::Robot, state_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::SCAddRobot, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::SCAddRobot, robot_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, egotype_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::CSRobot, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::SCRobot, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::SCRobot, robot_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::remote::Leave, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- PROTOBUF_FIELD_OFFSET(::remote::Leave, peer_),
- PROTOBUF_FIELD_OFFSET(::remote::Leave, egotype_),
- };
- static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::remote::Offer)},
- { 10, -1, -1, sizeof(::remote::Answer)},
- { 20, -1, -1, sizeof(::remote::Candidate)},
- { 33, -1, -1, sizeof(::remote::CSReq)},
- { 42, -1, -1, sizeof(::remote::SCReq)},
- { 51, -1, -1, sizeof(::remote::CSRep)},
- { 61, -1, -1, sizeof(::remote::SCRep)},
- { 71, -1, -1, sizeof(::remote::CSSigin)},
- { 81, -1, -1, sizeof(::remote::SCSigin)},
- { 90, -1, -1, sizeof(::remote::Robot)},
- { 100, -1, -1, sizeof(::remote::SCAddRobot)},
- { 107, -1, -1, sizeof(::remote::SCDelRobot)},
- { 115, -1, -1, sizeof(::remote::CSRobot)},
- { 121, -1, -1, sizeof(::remote::SCRobot)},
- { 128, -1, -1, sizeof(::remote::Leave)},
- };
- static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Offer_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Answer_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Candidate_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSReq_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCReq_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSRep_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCRep_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSSigin_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCSigin_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Robot_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCAddRobot_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCDelRobot_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSRobot_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCRobot_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Leave_default_instance_),
- };
- const char descriptor_table_protodef_remote_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
- "\n\014remote.proto\022\006remote\"\?\n\005Offer\022\r\n\005index"
- "\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sd"
- "p\030\004 \001(\t\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer"
- "\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCa"
- "ndidate\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004"
- "type\030\003 \001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLin"
- "eIndex\030\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030"
- "\007 \001(\005\"5\n\005CSReq\022\014\n\004peer\030\001 \001(\005\022\r\n\005index\030\002 "
- "\001(\005\022\017\n\007egotype\030\003 \001(\005\"4\n\005SCReq\022\014\n\004desc\030\001 "
- "\001(\005\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"C\n\005CS"
- "Rep\022\014\n\004desc\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\r\n\005index"
- "\030\003 \001(\005\022\017\n\007egotype\030\004 \001(\005\"C\n\005SCRep\022\014\n\004desc"
- "\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\022\014"
- "\n\004peer\030\004 \001(\005\"D\n\007CSSigin\022\017\n\007account\030\001 \001(\t"
- "\022\014\n\004type\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\014\n\004pass\030\004 \001"
- "(\t\"1\n\007SCSigin\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022"
- "\014\n\004name\030\003 \001(\t\"\?\n\005Robot\022\013\n\003rid\030\001 \001(\005\022\014\n\004n"
- "ame\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022\r\n\005state\030\004 \001(\005\"*"
- "\n\nSCAddRobot\022\034\n\005robot\030\001 \001(\0132\r.remote.Rob"
- "ot\"+\n\nSCDelRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotyp"
- "e\030\002 \001(\005\"\t\n\007CSRobot\"\'\n\007SCRobot\022\034\n\005robot\030\001"
- " \003(\0132\r.remote.Robot\"&\n\005Leave\022\014\n\004peer\030\001 \001"
- "(\005\022\017\n\007egotype\030\002 \001(\005*\310\001\n\ncs_message\022\013\n\007cs"
- "_none\020\000\022\013\n\006cs_req\020\321\017\022\013\n\006cs_rep\020\322\017\022\r\n\010cs_"
- "offer\020\324\017\022\016\n\tcs_answer\020\325\017\022\021\n\014cs_candidate"
- "\020\326\017\022\r\n\010cs_leave\020\327\017\022\021\n\014cs_keepAlive\020\330\017\022\r\n"
- "\010cs_sigin\020\331\017\022\r\n\010cs_robot\020\332\017\022\022\n\rcs_closeV"
- "ideo\020\333\017\022\r\n\010cs_state\020\336\017*\327\002\n\nsc_message\022\013\n"
- "\007sc_none\020\000\022\013\n\006sc_req\020\241\037\022\013\n\006sc_rep\020\242\037\022\r\n\010"
- "sc_offer\020\244\037\022\016\n\tsc_answer\020\245\037\022\021\n\014sc_candid"
- "ate\020\246\037\022\r\n\010sc_sigin\020\247\037\022\r\n\010sc_robot\020\250\037\022\021\n\014"
- "sc_NotifyReq\020\251\037\022\021\n\014sc_NotifyRep\020\252\037\022\024\n\017sc"
- "_NotifyAnswer\020\253\037\022\023\n\016sc_NotifyOffer\020\254\037\022\027\n"
- "\022sc_NotifyCandidate\020\255\037\022\023\n\016sc_NotifyLeave"
- "\020\256\037\022\021\n\014sc_NotifyAdd\020\260\037\022\021\n\014sc_NotifyDel\020\261"
- "\037\022\030\n\023sc_NotifyCloseVideo\020\262\037\022\023\n\016sc_Notify"
- "State\020\271\037b\006proto3"
- ;
- static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_remote_2eproto_once;
- const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_remote_2eproto = {
- false, false, 1456, descriptor_table_protodef_remote_2eproto, "remote.proto",
- &descriptor_table_remote_2eproto_once, nullptr, 0, 15,
- schemas, file_default_instances, TableStruct_remote_2eproto::offsets,
- file_level_metadata_remote_2eproto, file_level_enum_descriptors_remote_2eproto, file_level_service_descriptors_remote_2eproto,
- };
- PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_remote_2eproto_getter() {
- return &descriptor_table_remote_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_remote_2eproto(&descriptor_table_remote_2eproto);
- namespace remote {
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* cs_message_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_remote_2eproto);
- return file_level_enum_descriptors_remote_2eproto[0];
- }
- bool cs_message_IsValid(int value) {
- switch (value) {
- case 0:
- case 2001:
- case 2002:
- case 2004:
- case 2005:
- case 2006:
- case 2007:
- case 2008:
- case 2009:
- case 2010:
- case 2011:
- case 2014:
- return true;
- default:
- return false;
- }
- }
- const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* sc_message_descriptor() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_remote_2eproto);
- return file_level_enum_descriptors_remote_2eproto[1];
- }
- bool sc_message_IsValid(int value) {
- switch (value) {
- case 0:
- case 4001:
- case 4002:
- case 4004:
- case 4005:
- case 4006:
- case 4007:
- case 4008:
- case 4009:
- case 4010:
- case 4011:
- case 4012:
- case 4013:
- case 4014:
- case 4016:
- case 4017:
- case 4018:
- case 4025:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- class Offer::_Internal {
- public:
- };
- Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.Offer)
- }
- Offer::Offer(const Offer& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_type().empty()) {
- type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
- GetArenaForAllocation());
- }
- sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_sdp().empty()) {
- sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
- GetArenaForAllocation());
- }
- ::memcpy(&index_, &from.index_,
- static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&index_)) + sizeof(peer_));
- // @@protoc_insertion_point(copy_constructor:remote.Offer)
- }
- inline void Offer::SharedCtor() {
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&index_)) + sizeof(peer_));
- }
- Offer::~Offer() {
- // @@protoc_insertion_point(destructor:remote.Offer)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void Offer::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void Offer::ArenaDtor(void* object) {
- Offer* _this = reinterpret_cast< Offer* >(object);
- (void)_this;
- }
- void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Offer::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void Offer::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.Offer)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- type_.ClearToEmpty();
- sdp_.ClearToEmpty();
- ::memset(&index_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&index_)) + sizeof(peer_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 index = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 peer = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string type = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- auto str = _internal_mutable_type();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Offer.type"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string sdp = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_sdp();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Offer.sdp"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* Offer::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.Offer)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 index = 1;
- if (this->_internal_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
- }
- // string type = 3;
- if (!this->_internal_type().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Offer.type");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_type(), target);
- }
- // string sdp = 4;
- if (!this->_internal_sdp().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Offer.sdp");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_sdp(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.Offer)
- return target;
- }
- size_t Offer::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.Offer)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string type = 3;
- if (!this->_internal_type().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_type());
- }
- // string sdp = 4;
- if (!this->_internal_sdp().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_sdp());
- }
- // int32 index = 1;
- if (this->_internal_index() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- Offer::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
- void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<Offer *>(to)->MergeFrom(
- static_cast<const Offer &>(from));
- }
- void Offer::MergeFrom(const Offer& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.Offer)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_type().empty()) {
- _internal_set_type(from._internal_type());
- }
- if (!from._internal_sdp().empty()) {
- _internal_set_sdp(from._internal_sdp());
- }
- if (from._internal_index() != 0) {
- _internal_set_index(from._internal_index());
- }
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Offer::CopyFrom(const Offer& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.Offer)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Offer::IsInitialized() const {
- return true;
- }
- void Offer::InternalSwap(Offer* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &type_, lhs_arena,
- &other->type_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &sdp_, lhs_arena,
- &other->sdp_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Offer, peer_)
- + sizeof(Offer::peer_)
- - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
- reinterpret_cast<char*>(&index_),
- reinterpret_cast<char*>(&other->index_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[0]);
- }
- // ===================================================================
- class Answer::_Internal {
- public:
- };
- Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.Answer)
- }
- Answer::Answer(const Answer& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_type().empty()) {
- type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
- GetArenaForAllocation());
- }
- sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_sdp().empty()) {
- sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
- GetArenaForAllocation());
- }
- ::memcpy(&index_, &from.index_,
- static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&index_)) + sizeof(peer_));
- // @@protoc_insertion_point(copy_constructor:remote.Answer)
- }
- inline void Answer::SharedCtor() {
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&index_)) + sizeof(peer_));
- }
- Answer::~Answer() {
- // @@protoc_insertion_point(destructor:remote.Answer)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void Answer::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void Answer::ArenaDtor(void* object) {
- Answer* _this = reinterpret_cast< Answer* >(object);
- (void)_this;
- }
- void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Answer::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void Answer::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.Answer)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- type_.ClearToEmpty();
- sdp_.ClearToEmpty();
- ::memset(&index_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&index_)) + sizeof(peer_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 index = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 peer = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string type = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- auto str = _internal_mutable_type();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Answer.type"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string sdp = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_sdp();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Answer.sdp"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* Answer::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.Answer)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 index = 1;
- if (this->_internal_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
- }
- // string type = 3;
- if (!this->_internal_type().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Answer.type");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_type(), target);
- }
- // string sdp = 4;
- if (!this->_internal_sdp().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Answer.sdp");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_sdp(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.Answer)
- return target;
- }
- size_t Answer::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.Answer)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string type = 3;
- if (!this->_internal_type().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_type());
- }
- // string sdp = 4;
- if (!this->_internal_sdp().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_sdp());
- }
- // int32 index = 1;
- if (this->_internal_index() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- Answer::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
- void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<Answer *>(to)->MergeFrom(
- static_cast<const Answer &>(from));
- }
- void Answer::MergeFrom(const Answer& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.Answer)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_type().empty()) {
- _internal_set_type(from._internal_type());
- }
- if (!from._internal_sdp().empty()) {
- _internal_set_sdp(from._internal_sdp());
- }
- if (from._internal_index() != 0) {
- _internal_set_index(from._internal_index());
- }
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Answer::CopyFrom(const Answer& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.Answer)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Answer::IsInitialized() const {
- return true;
- }
- void Answer::InternalSwap(Answer* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &type_, lhs_arena,
- &other->type_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &sdp_, lhs_arena,
- &other->sdp_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Answer, peer_)
- + sizeof(Answer::peer_)
- - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
- reinterpret_cast<char*>(&index_),
- reinterpret_cast<char*>(&other->index_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[1]);
- }
- // ===================================================================
- class Candidate::_Internal {
- public:
- };
- Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.Candidate)
- }
- Candidate::Candidate(const Candidate& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_type().empty()) {
- type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
- GetArenaForAllocation());
- }
- candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_candidate().empty()) {
- candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
- GetArenaForAllocation());
- }
- sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_sdpmid().empty()) {
- sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
- GetArenaForAllocation());
- }
- ::memcpy(&index_, &from.index_,
- static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
- // @@protoc_insertion_point(copy_constructor:remote.Candidate)
- }
- inline void Candidate::SharedCtor() {
- type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
- }
- Candidate::~Candidate() {
- // @@protoc_insertion_point(destructor:remote.Candidate)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void Candidate::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void Candidate::ArenaDtor(void* object) {
- Candidate* _this = reinterpret_cast< Candidate* >(object);
- (void)_this;
- }
- void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Candidate::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void Candidate::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.Candidate)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- type_.ClearToEmpty();
- candidate_.ClearToEmpty();
- sdpmid_.ClearToEmpty();
- ::memset(&index_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 index = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 peer = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string type = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- auto str = _internal_mutable_type();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.type"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string candidate = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_candidate();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.candidate"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 sdpMLineIndex = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
- sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string sdpMid = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
- auto str = _internal_mutable_sdpmid();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.sdpMid"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* Candidate::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.Candidate)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 index = 1;
- if (this->_internal_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
- }
- // string type = 3;
- if (!this->_internal_type().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Candidate.type");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_type(), target);
- }
- // string candidate = 4;
- if (!this->_internal_candidate().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Candidate.candidate");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_candidate(), target);
- }
- // int32 sdpMLineIndex = 5;
- if (this->_internal_sdpmlineindex() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
- }
- // string sdpMid = 6;
- if (!this->_internal_sdpmid().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Candidate.sdpMid");
- target = stream->WriteStringMaybeAliased(
- 6, this->_internal_sdpmid(), target);
- }
- // int32 egotype = 7;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.Candidate)
- return target;
- }
- size_t Candidate::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.Candidate)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string type = 3;
- if (!this->_internal_type().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_type());
- }
- // string candidate = 4;
- if (!this->_internal_candidate().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_candidate());
- }
- // string sdpMid = 6;
- if (!this->_internal_sdpmid().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_sdpmid());
- }
- // int32 index = 1;
- if (this->_internal_index() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- // int32 sdpMLineIndex = 5;
- if (this->_internal_sdpmlineindex() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
- }
- // int32 egotype = 7;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- Candidate::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
- void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<Candidate *>(to)->MergeFrom(
- static_cast<const Candidate &>(from));
- }
- void Candidate::MergeFrom(const Candidate& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.Candidate)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_type().empty()) {
- _internal_set_type(from._internal_type());
- }
- if (!from._internal_candidate().empty()) {
- _internal_set_candidate(from._internal_candidate());
- }
- if (!from._internal_sdpmid().empty()) {
- _internal_set_sdpmid(from._internal_sdpmid());
- }
- if (from._internal_index() != 0) {
- _internal_set_index(from._internal_index());
- }
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- if (from._internal_sdpmlineindex() != 0) {
- _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Candidate::CopyFrom(const Candidate& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.Candidate)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Candidate::IsInitialized() const {
- return true;
- }
- void Candidate::InternalSwap(Candidate* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &type_, lhs_arena,
- &other->type_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &candidate_, lhs_arena,
- &other->candidate_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &sdpmid_, lhs_arena,
- &other->sdpmid_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
- + sizeof(Candidate::egotype_)
- - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
- reinterpret_cast<char*>(&index_),
- reinterpret_cast<char*>(&other->index_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[2]);
- }
- // ===================================================================
- class CSReq::_Internal {
- public:
- };
- CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.CSReq)
- }
- CSReq::CSReq(const CSReq& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&peer_, &from.peer_,
- static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- // @@protoc_insertion_point(copy_constructor:remote.CSReq)
- }
- inline void CSReq::SharedCtor() {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- }
- CSReq::~CSReq() {
- // @@protoc_insertion_point(destructor:remote.CSReq)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void CSReq::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void CSReq::ArenaDtor(void* object) {
- CSReq* _this = reinterpret_cast< CSReq* >(object);
- (void)_this;
- }
- void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void CSReq::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void CSReq::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.CSReq)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&peer_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 peer = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 index = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* CSReq::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.CSReq)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 peer = 1;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
- }
- // int32 index = 2;
- if (this->_internal_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
- }
- // int32 egotype = 3;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.CSReq)
- return target;
- }
- size_t CSReq::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.CSReq)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 peer = 1;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- // int32 index = 2;
- if (this->_internal_index() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
- }
- // int32 egotype = 3;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- CSReq::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
- void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<CSReq *>(to)->MergeFrom(
- static_cast<const CSReq &>(from));
- }
- void CSReq::MergeFrom(const CSReq& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSReq)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- if (from._internal_index() != 0) {
- _internal_set_index(from._internal_index());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void CSReq::CopyFrom(const CSReq& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSReq)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CSReq::IsInitialized() const {
- return true;
- }
- void CSReq::InternalSwap(CSReq* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
- + sizeof(CSReq::egotype_)
- - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
- reinterpret_cast<char*>(&peer_),
- reinterpret_cast<char*>(&other->peer_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[3]);
- }
- // ===================================================================
- class SCReq::_Internal {
- public:
- };
- SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.SCReq)
- }
- SCReq::SCReq(const SCReq& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&desc_, &from.desc_,
- static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
- // @@protoc_insertion_point(copy_constructor:remote.SCReq)
- }
- inline void SCReq::SharedCtor() {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
- }
- SCReq::~SCReq() {
- // @@protoc_insertion_point(destructor:remote.SCReq)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void SCReq::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void SCReq::ArenaDtor(void* object) {
- SCReq* _this = reinterpret_cast< SCReq* >(object);
- (void)_this;
- }
- void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SCReq::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void SCReq::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.SCReq)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&desc_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 desc = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 peer = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* SCReq::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.SCReq)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 desc = 1;
- if (this->_internal_desc() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target);
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
- }
- // int32 egotype = 3;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.SCReq)
- return target;
- }
- size_t SCReq::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.SCReq)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 desc = 1;
- if (this->_internal_desc() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc());
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- // int32 egotype = 3;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- SCReq::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
- void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<SCReq *>(to)->MergeFrom(
- static_cast<const SCReq &>(from));
- }
- void SCReq::MergeFrom(const SCReq& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCReq)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_desc() != 0) {
- _internal_set_desc(from._internal_desc());
- }
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void SCReq::CopyFrom(const SCReq& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCReq)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SCReq::IsInitialized() const {
- return true;
- }
- void SCReq::InternalSwap(SCReq* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
- + sizeof(SCReq::egotype_)
- - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
- reinterpret_cast<char*>(&desc_),
- reinterpret_cast<char*>(&other->desc_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[4]);
- }
- // ===================================================================
- class CSRep::_Internal {
- public:
- };
- CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.CSRep)
- }
- CSRep::CSRep(const CSRep& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&desc_, &from.desc_,
- static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
- // @@protoc_insertion_point(copy_constructor:remote.CSRep)
- }
- inline void CSRep::SharedCtor() {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
- }
- CSRep::~CSRep() {
- // @@protoc_insertion_point(destructor:remote.CSRep)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void CSRep::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void CSRep::ArenaDtor(void* object) {
- CSRep* _this = reinterpret_cast< CSRep* >(object);
- (void)_this;
- }
- void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void CSRep::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void CSRep::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.CSRep)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&desc_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 desc = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 peer = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 index = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
- index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* CSRep::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.CSRep)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 desc = 1;
- if (this->_internal_desc() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target);
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
- }
- // int32 index = 3;
- if (this->_internal_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
- }
- // int32 egotype = 4;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.CSRep)
- return target;
- }
- size_t CSRep::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.CSRep)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 desc = 1;
- if (this->_internal_desc() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc());
- }
- // int32 peer = 2;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- // int32 index = 3;
- if (this->_internal_index() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
- }
- // int32 egotype = 4;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- CSRep::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
- void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<CSRep *>(to)->MergeFrom(
- static_cast<const CSRep &>(from));
- }
- void CSRep::MergeFrom(const CSRep& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSRep)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_desc() != 0) {
- _internal_set_desc(from._internal_desc());
- }
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- if (from._internal_index() != 0) {
- _internal_set_index(from._internal_index());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void CSRep::CopyFrom(const CSRep& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSRep)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CSRep::IsInitialized() const {
- return true;
- }
- void CSRep::InternalSwap(CSRep* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
- + sizeof(CSRep::egotype_)
- - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
- reinterpret_cast<char*>(&desc_),
- reinterpret_cast<char*>(&other->desc_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[5]);
- }
- // ===================================================================
- class SCRep::_Internal {
- public:
- };
- SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.SCRep)
- }
- SCRep::SCRep(const SCRep& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&desc_, &from.desc_,
- static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
- // @@protoc_insertion_point(copy_constructor:remote.SCRep)
- }
- inline void SCRep::SharedCtor() {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
- }
- SCRep::~SCRep() {
- // @@protoc_insertion_point(destructor:remote.SCRep)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void SCRep::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void SCRep::ArenaDtor(void* object) {
- SCRep* _this = reinterpret_cast< SCRep* >(object);
- (void)_this;
- }
- void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SCRep::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void SCRep::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.SCRep)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&desc_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&peer_) -
- reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 desc = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 index = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 peer = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* SCRep::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.SCRep)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 desc = 1;
- if (this->_internal_desc() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target);
- }
- // int32 index = 2;
- if (this->_internal_index() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
- }
- // int32 egotype = 3;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
- }
- // int32 peer = 4;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.SCRep)
- return target;
- }
- size_t SCRep::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.SCRep)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 desc = 1;
- if (this->_internal_desc() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc());
- }
- // int32 index = 2;
- if (this->_internal_index() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
- }
- // int32 egotype = 3;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- // int32 peer = 4;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- SCRep::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
- void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<SCRep *>(to)->MergeFrom(
- static_cast<const SCRep &>(from));
- }
- void SCRep::MergeFrom(const SCRep& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCRep)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_desc() != 0) {
- _internal_set_desc(from._internal_desc());
- }
- if (from._internal_index() != 0) {
- _internal_set_index(from._internal_index());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void SCRep::CopyFrom(const SCRep& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCRep)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SCRep::IsInitialized() const {
- return true;
- }
- void SCRep::InternalSwap(SCRep* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(SCRep, peer_)
- + sizeof(SCRep::peer_)
- - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
- reinterpret_cast<char*>(&desc_),
- reinterpret_cast<char*>(&other->desc_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[6]);
- }
- // ===================================================================
- class CSSigin::_Internal {
- public:
- };
- CSSigin::CSSigin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.CSSigin)
- }
- CSSigin::CSSigin(const CSSigin& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_account().empty()) {
- account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
- GetArenaForAllocation());
- }
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
- GetArenaForAllocation());
- }
- pass_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- pass_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_pass().empty()) {
- pass_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pass(),
- GetArenaForAllocation());
- }
- type_ = from.type_;
- // @@protoc_insertion_point(copy_constructor:remote.CSSigin)
- }
- inline void CSSigin::SharedCtor() {
- account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- pass_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- pass_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- type_ = 0;
- }
- CSSigin::~CSSigin() {
- // @@protoc_insertion_point(destructor:remote.CSSigin)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void CSSigin::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- pass_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void CSSigin::ArenaDtor(void* object) {
- CSSigin* _this = reinterpret_cast< CSSigin* >(object);
- (void)_this;
- }
- void CSSigin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void CSSigin::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void CSSigin::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.CSSigin)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- account_.ClearToEmpty();
- name_.ClearToEmpty();
- pass_.ClearToEmpty();
- type_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* CSSigin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string account = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_account();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSSigin.account"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 type = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string name = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- auto str = _internal_mutable_name();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSSigin.name"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string pass = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
- auto str = _internal_mutable_pass();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSSigin.pass"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* CSSigin::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.CSSigin)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string account = 1;
- if (!this->_internal_account().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.CSSigin.account");
- target = stream->WriteStringMaybeAliased(
- 1, this->_internal_account(), target);
- }
- // int32 type = 2;
- if (this->_internal_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
- }
- // string name = 3;
- if (!this->_internal_name().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.CSSigin.name");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_name(), target);
- }
- // string pass = 4;
- if (!this->_internal_pass().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_pass().data(), static_cast<int>(this->_internal_pass().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.CSSigin.pass");
- target = stream->WriteStringMaybeAliased(
- 4, this->_internal_pass(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.CSSigin)
- return target;
- }
- size_t CSSigin::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.CSSigin)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string account = 1;
- if (!this->_internal_account().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_account());
- }
- // string name = 3;
- if (!this->_internal_name().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // string pass = 4;
- if (!this->_internal_pass().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_pass());
- }
- // int32 type = 2;
- if (this->_internal_type() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSigin::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- CSSigin::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSigin::GetClassData() const { return &_class_data_; }
- void CSSigin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<CSSigin *>(to)->MergeFrom(
- static_cast<const CSSigin &>(from));
- }
- void CSSigin::MergeFrom(const CSSigin& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSSigin)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_account().empty()) {
- _internal_set_account(from._internal_account());
- }
- if (!from._internal_name().empty()) {
- _internal_set_name(from._internal_name());
- }
- if (!from._internal_pass().empty()) {
- _internal_set_pass(from._internal_pass());
- }
- if (from._internal_type() != 0) {
- _internal_set_type(from._internal_type());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void CSSigin::CopyFrom(const CSSigin& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSSigin)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CSSigin::IsInitialized() const {
- return true;
- }
- void CSSigin::InternalSwap(CSSigin* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &account_, lhs_arena,
- &other->account_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &name_, lhs_arena,
- &other->name_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &pass_, lhs_arena,
- &other->pass_, rhs_arena
- );
- swap(type_, other->type_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata CSSigin::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[7]);
- }
- // ===================================================================
- class SCSigin::_Internal {
- public:
- };
- SCSigin::SCSigin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.SCSigin)
- }
- SCSigin::SCSigin(const SCSigin& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
- GetArenaForAllocation());
- }
- ::memcpy(&ret_, &from.ret_,
- static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
- reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
- // @@protoc_insertion_point(copy_constructor:remote.SCSigin)
- }
- inline void SCSigin::SharedCtor() {
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
- reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
- }
- SCSigin::~SCSigin() {
- // @@protoc_insertion_point(destructor:remote.SCSigin)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void SCSigin::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void SCSigin::ArenaDtor(void* object) {
- SCSigin* _this = reinterpret_cast< SCSigin* >(object);
- (void)_this;
- }
- void SCSigin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SCSigin::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void SCSigin::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.SCSigin)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- name_.ClearToEmpty();
- ::memset(&ret_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&uid_) -
- reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SCSigin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // bool ret = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 uid = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string name = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
- auto str = _internal_mutable_name();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.SCSigin.name"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* SCSigin::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.SCSigin)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // bool ret = 1;
- if (this->_internal_ret() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
- }
- // int32 uid = 2;
- if (this->_internal_uid() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
- }
- // string name = 3;
- if (!this->_internal_name().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.SCSigin.name");
- target = stream->WriteStringMaybeAliased(
- 3, this->_internal_name(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.SCSigin)
- return target;
- }
- size_t SCSigin::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.SCSigin)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string name = 3;
- if (!this->_internal_name().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // bool ret = 1;
- if (this->_internal_ret() != 0) {
- total_size += 1 + 1;
- }
- // int32 uid = 2;
- if (this->_internal_uid() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSigin::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- SCSigin::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSigin::GetClassData() const { return &_class_data_; }
- void SCSigin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<SCSigin *>(to)->MergeFrom(
- static_cast<const SCSigin &>(from));
- }
- void SCSigin::MergeFrom(const SCSigin& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCSigin)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_name().empty()) {
- _internal_set_name(from._internal_name());
- }
- if (from._internal_ret() != 0) {
- _internal_set_ret(from._internal_ret());
- }
- if (from._internal_uid() != 0) {
- _internal_set_uid(from._internal_uid());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void SCSigin::CopyFrom(const SCSigin& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCSigin)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SCSigin::IsInitialized() const {
- return true;
- }
- void SCSigin::InternalSwap(SCSigin* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &name_, lhs_arena,
- &other->name_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(SCSigin, uid_)
- + sizeof(SCSigin::uid_)
- - PROTOBUF_FIELD_OFFSET(SCSigin, ret_)>(
- reinterpret_cast<char*>(&ret_),
- reinterpret_cast<char*>(&other->ret_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SCSigin::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[8]);
- }
- // ===================================================================
- class Robot::_Internal {
- public:
- };
- Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.Robot)
- }
- Robot::Robot(const Robot& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_name().empty()) {
- name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
- GetArenaForAllocation());
- }
- ::memcpy(&rid_, &from.rid_,
- static_cast<size_t>(reinterpret_cast<char*>(&state_) -
- reinterpret_cast<char*>(&rid_)) + sizeof(state_));
- // @@protoc_insertion_point(copy_constructor:remote.Robot)
- }
- inline void Robot::SharedCtor() {
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&state_) -
- reinterpret_cast<char*>(&rid_)) + sizeof(state_));
- }
- Robot::~Robot() {
- // @@protoc_insertion_point(destructor:remote.Robot)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void Robot::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- void Robot::ArenaDtor(void* object) {
- Robot* _this = reinterpret_cast< Robot* >(object);
- (void)_this;
- }
- void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Robot::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void Robot::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.Robot)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- name_.ClearToEmpty();
- ::memset(&rid_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&state_) -
- reinterpret_cast<char*>(&rid_)) + sizeof(state_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 rid = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // string name = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_name();
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Robot.name"));
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 type = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
- type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 state = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
- state_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* Robot::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.Robot)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 rid = 1;
- if (this->_internal_rid() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
- }
- // string name = 2;
- if (!this->_internal_name().empty()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "remote.Robot.name");
- target = stream->WriteStringMaybeAliased(
- 2, this->_internal_name(), target);
- }
- // int32 type = 3;
- if (this->_internal_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
- }
- // int32 state = 4;
- if (this->_internal_state() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_state(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.Robot)
- return target;
- }
- size_t Robot::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.Robot)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string name = 2;
- if (!this->_internal_name().empty()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- // int32 rid = 1;
- if (this->_internal_rid() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
- }
- // int32 type = 3;
- if (this->_internal_type() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
- }
- // int32 state = 4;
- if (this->_internal_state() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_state());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- Robot::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
- void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<Robot *>(to)->MergeFrom(
- static_cast<const Robot &>(from));
- }
- void Robot::MergeFrom(const Robot& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.Robot)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_name().empty()) {
- _internal_set_name(from._internal_name());
- }
- if (from._internal_rid() != 0) {
- _internal_set_rid(from._internal_rid());
- }
- if (from._internal_type() != 0) {
- _internal_set_type(from._internal_type());
- }
- if (from._internal_state() != 0) {
- _internal_set_state(from._internal_state());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Robot::CopyFrom(const Robot& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.Robot)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Robot::IsInitialized() const {
- return true;
- }
- void Robot::InternalSwap(Robot* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- &name_, lhs_arena,
- &other->name_, rhs_arena
- );
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Robot, state_)
- + sizeof(Robot::state_)
- - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
- reinterpret_cast<char*>(&rid_),
- reinterpret_cast<char*>(&other->rid_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[9]);
- }
- // ===================================================================
- class SCAddRobot::_Internal {
- public:
- static const ::remote::Robot& robot(const SCAddRobot* msg);
- };
- const ::remote::Robot&
- SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
- return *msg->robot_;
- }
- SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.SCAddRobot)
- }
- SCAddRobot::SCAddRobot(const SCAddRobot& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if (from._internal_has_robot()) {
- robot_ = new ::remote::Robot(*from.robot_);
- } else {
- robot_ = nullptr;
- }
- // @@protoc_insertion_point(copy_constructor:remote.SCAddRobot)
- }
- inline void SCAddRobot::SharedCtor() {
- robot_ = nullptr;
- }
- SCAddRobot::~SCAddRobot() {
- // @@protoc_insertion_point(destructor:remote.SCAddRobot)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void SCAddRobot::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete robot_;
- }
- void SCAddRobot::ArenaDtor(void* object) {
- SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
- (void)_this;
- }
- void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SCAddRobot::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void SCAddRobot::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.SCAddRobot)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
- delete robot_;
- }
- robot_ = nullptr;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // .remote.Robot robot = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* SCAddRobot::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.SCAddRobot)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // .remote.Robot robot = 1;
- if (this->_internal_has_robot()) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(
- 1, _Internal::robot(this), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.SCAddRobot)
- return target;
- }
- size_t SCAddRobot::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.SCAddRobot)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .remote.Robot robot = 1;
- if (this->_internal_has_robot()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *robot_);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- SCAddRobot::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
- void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<SCAddRobot *>(to)->MergeFrom(
- static_cast<const SCAddRobot &>(from));
- }
- void SCAddRobot::MergeFrom(const SCAddRobot& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCAddRobot)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_has_robot()) {
- _internal_mutable_robot()->::remote::Robot::MergeFrom(from._internal_robot());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void SCAddRobot::CopyFrom(const SCAddRobot& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCAddRobot)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SCAddRobot::IsInitialized() const {
- return true;
- }
- void SCAddRobot::InternalSwap(SCAddRobot* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(robot_, other->robot_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[10]);
- }
- // ===================================================================
- class SCDelRobot::_Internal {
- public:
- };
- SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.SCDelRobot)
- }
- SCDelRobot::SCDelRobot(const SCDelRobot& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&peer_, &from.peer_,
- static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- // @@protoc_insertion_point(copy_constructor:remote.SCDelRobot)
- }
- inline void SCDelRobot::SharedCtor() {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- }
- SCDelRobot::~SCDelRobot() {
- // @@protoc_insertion_point(destructor:remote.SCDelRobot)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void SCDelRobot::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void SCDelRobot::ArenaDtor(void* object) {
- SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
- (void)_this;
- }
- void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SCDelRobot::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void SCDelRobot::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.SCDelRobot)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&peer_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 peer = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* SCDelRobot::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.SCDelRobot)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 peer = 1;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
- }
- // int32 egotype = 2;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.SCDelRobot)
- return target;
- }
- size_t SCDelRobot::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.SCDelRobot)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 peer = 1;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- // int32 egotype = 2;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- SCDelRobot::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
- void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<SCDelRobot *>(to)->MergeFrom(
- static_cast<const SCDelRobot &>(from));
- }
- void SCDelRobot::MergeFrom(const SCDelRobot& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCDelRobot)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void SCDelRobot::CopyFrom(const SCDelRobot& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCDelRobot)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SCDelRobot::IsInitialized() const {
- return true;
- }
- void SCDelRobot::InternalSwap(SCDelRobot* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
- + sizeof(SCDelRobot::egotype_)
- - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
- reinterpret_cast<char*>(&peer_),
- reinterpret_cast<char*>(&other->peer_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[11]);
- }
- // ===================================================================
- class CSRobot::_Internal {
- public:
- };
- CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
- // @@protoc_insertion_point(arena_constructor:remote.CSRobot)
- }
- CSRobot::CSRobot(const CSRobot& from)
- : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:remote.CSRobot)
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
- ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
- ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[12]);
- }
- // ===================================================================
- class SCRobot::_Internal {
- public:
- };
- SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
- robot_(arena) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.SCRobot)
- }
- SCRobot::SCRobot(const SCRobot& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- robot_(from.robot_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:remote.SCRobot)
- }
- inline void SCRobot::SharedCtor() {
- }
- SCRobot::~SCRobot() {
- // @@protoc_insertion_point(destructor:remote.SCRobot)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void SCRobot::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void SCRobot::ArenaDtor(void* object) {
- SCRobot* _this = reinterpret_cast< SCRobot* >(object);
- (void)_this;
- }
- void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void SCRobot::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void SCRobot::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.SCRobot)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- robot_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // repeated .remote.Robot robot = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* SCRobot::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.SCRobot)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .remote.Robot robot = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, this->_internal_robot(i), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.SCRobot)
- return target;
- }
- size_t SCRobot::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.SCRobot)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .remote.Robot robot = 1;
- total_size += 1UL * this->_internal_robot_size();
- for (const auto& msg : this->robot_) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- SCRobot::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
- void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<SCRobot *>(to)->MergeFrom(
- static_cast<const SCRobot &>(from));
- }
- void SCRobot::MergeFrom(const SCRobot& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCRobot)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- robot_.MergeFrom(from.robot_);
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void SCRobot::CopyFrom(const SCRobot& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCRobot)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool SCRobot::IsInitialized() const {
- return true;
- }
- void SCRobot::InternalSwap(SCRobot* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- robot_.InternalSwap(&other->robot_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[13]);
- }
- // ===================================================================
- class Leave::_Internal {
- public:
- };
- Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
- bool is_message_owned)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
- SharedCtor();
- if (!is_message_owned) {
- RegisterArenaDtor(arena);
- }
- // @@protoc_insertion_point(arena_constructor:remote.Leave)
- }
- Leave::Leave(const Leave& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- ::memcpy(&peer_, &from.peer_,
- static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- // @@protoc_insertion_point(copy_constructor:remote.Leave)
- }
- inline void Leave::SharedCtor() {
- ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
- reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
- 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- }
- Leave::~Leave() {
- // @@protoc_insertion_point(destructor:remote.Leave)
- if (GetArenaForAllocation() != nullptr) return;
- SharedDtor();
- _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- inline void Leave::SharedDtor() {
- GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void Leave::ArenaDtor(void* object) {
- Leave* _this = reinterpret_cast< Leave* >(object);
- (void)_this;
- }
- void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
- }
- void Leave::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- void Leave::Clear() {
- // @@protoc_insertion_point(message_clear_start:remote.Leave)
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&peer_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&egotype_) -
- reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- uint32_t tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 peer = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
- peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- // int32 egotype = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
- egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else
- goto handle_unusual;
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- uint8_t* Leave::_InternalSerialize(
- uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:remote.Leave)
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 peer = 1;
- if (this->_internal_peer() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
- }
- // int32 egotype = 2;
- if (this->_internal_egotype() != 0) {
- target = stream->EnsureSpace(target);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:remote.Leave)
- return target;
- }
- size_t Leave::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:remote.Leave)
- size_t total_size = 0;
- uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 peer = 1;
- if (this->_internal_peer() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
- }
- // int32 egotype = 2;
- if (this->_internal_egotype() != 0) {
- total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
- Leave::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
- void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
- const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- static_cast<Leave *>(to)->MergeFrom(
- static_cast<const Leave &>(from));
- }
- void Leave::MergeFrom(const Leave& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:remote.Leave)
- GOOGLE_DCHECK_NE(&from, this);
- uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_peer() != 0) {
- _internal_set_peer(from._internal_peer());
- }
- if (from._internal_egotype() != 0) {
- _internal_set_egotype(from._internal_egotype());
- }
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Leave::CopyFrom(const Leave& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:remote.Leave)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Leave::IsInitialized() const {
- return true;
- }
- void Leave::InternalSwap(Leave* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Leave, egotype_)
- + sizeof(Leave::egotype_)
- - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
- reinterpret_cast<char*>(&peer_),
- reinterpret_cast<char*>(&other->peer_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
- return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
- &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
- file_level_metadata_remote_2eproto[14]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace remote
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::remote::Offer* Arena::CreateMaybeMessage< ::remote::Offer >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::Offer >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::Answer* Arena::CreateMaybeMessage< ::remote::Answer >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::Answer >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::Candidate* Arena::CreateMaybeMessage< ::remote::Candidate >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::Candidate >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::CSReq* Arena::CreateMaybeMessage< ::remote::CSReq >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::CSReq >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::SCReq* Arena::CreateMaybeMessage< ::remote::SCReq >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::SCReq >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::CSRep* Arena::CreateMaybeMessage< ::remote::CSRep >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::CSRep >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::SCRep* Arena::CreateMaybeMessage< ::remote::SCRep >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::SCRep >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::CSSigin* Arena::CreateMaybeMessage< ::remote::CSSigin >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::CSSigin >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::SCSigin* Arena::CreateMaybeMessage< ::remote::SCSigin >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::SCSigin >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::Robot* Arena::CreateMaybeMessage< ::remote::Robot >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::Robot >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::SCAddRobot* Arena::CreateMaybeMessage< ::remote::SCAddRobot >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::SCAddRobot >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::SCDelRobot* Arena::CreateMaybeMessage< ::remote::SCDelRobot >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::SCDelRobot >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::CSRobot* Arena::CreateMaybeMessage< ::remote::CSRobot >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::CSRobot >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::SCRobot* Arena::CreateMaybeMessage< ::remote::SCRobot >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::SCRobot >(arena);
- }
- template<> PROTOBUF_NOINLINE ::remote::Leave* Arena::CreateMaybeMessage< ::remote::Leave >(Arena* arena) {
- return Arena::CreateMessageInternal< ::remote::Leave >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|