remote.pb.cc 153 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: remote.proto
  3. #include "remote.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. PROTOBUF_PRAGMA_INIT_SEG
  15. namespace remote {
  16. constexpr Offer::Offer(
  17. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  18. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  19. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  20. , index_(0)
  21. , peer_(0){}
  22. struct OfferDefaultTypeInternal {
  23. constexpr OfferDefaultTypeInternal()
  24. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  25. ~OfferDefaultTypeInternal() {}
  26. union {
  27. Offer _instance;
  28. };
  29. };
  30. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfferDefaultTypeInternal _Offer_default_instance_;
  31. constexpr Answer::Answer(
  32. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  33. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  34. , sdp_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  35. , index_(0)
  36. , peer_(0){}
  37. struct AnswerDefaultTypeInternal {
  38. constexpr AnswerDefaultTypeInternal()
  39. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  40. ~AnswerDefaultTypeInternal() {}
  41. union {
  42. Answer _instance;
  43. };
  44. };
  45. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AnswerDefaultTypeInternal _Answer_default_instance_;
  46. constexpr Candidate::Candidate(
  47. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  48. : type_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  49. , candidate_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  50. , sdpmid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  51. , index_(0)
  52. , peer_(0)
  53. , sdpmlineindex_(0)
  54. , egotype_(0){}
  55. struct CandidateDefaultTypeInternal {
  56. constexpr CandidateDefaultTypeInternal()
  57. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  58. ~CandidateDefaultTypeInternal() {}
  59. union {
  60. Candidate _instance;
  61. };
  62. };
  63. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CandidateDefaultTypeInternal _Candidate_default_instance_;
  64. constexpr CSReq::CSReq(
  65. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  66. : peer_(0)
  67. , index_(0)
  68. , egotype_(0){}
  69. struct CSReqDefaultTypeInternal {
  70. constexpr CSReqDefaultTypeInternal()
  71. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  72. ~CSReqDefaultTypeInternal() {}
  73. union {
  74. CSReq _instance;
  75. };
  76. };
  77. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSReqDefaultTypeInternal _CSReq_default_instance_;
  78. constexpr SCReq::SCReq(
  79. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  80. : desc_(0)
  81. , peer_(0)
  82. , egotype_(0){}
  83. struct SCReqDefaultTypeInternal {
  84. constexpr SCReqDefaultTypeInternal()
  85. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  86. ~SCReqDefaultTypeInternal() {}
  87. union {
  88. SCReq _instance;
  89. };
  90. };
  91. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCReqDefaultTypeInternal _SCReq_default_instance_;
  92. constexpr CSRep::CSRep(
  93. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  94. : desc_(0)
  95. , peer_(0)
  96. , index_(0)
  97. , egotype_(0){}
  98. struct CSRepDefaultTypeInternal {
  99. constexpr CSRepDefaultTypeInternal()
  100. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  101. ~CSRepDefaultTypeInternal() {}
  102. union {
  103. CSRep _instance;
  104. };
  105. };
  106. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRepDefaultTypeInternal _CSRep_default_instance_;
  107. constexpr SCRep::SCRep(
  108. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  109. : desc_(0)
  110. , index_(0)
  111. , egotype_(0)
  112. , peer_(0){}
  113. struct SCRepDefaultTypeInternal {
  114. constexpr SCRepDefaultTypeInternal()
  115. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  116. ~SCRepDefaultTypeInternal() {}
  117. union {
  118. SCRep _instance;
  119. };
  120. };
  121. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRepDefaultTypeInternal _SCRep_default_instance_;
  122. constexpr CSSigin::CSSigin(
  123. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  124. : account_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  125. , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  126. , pass_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  127. , type_(0){}
  128. struct CSSiginDefaultTypeInternal {
  129. constexpr CSSiginDefaultTypeInternal()
  130. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  131. ~CSSiginDefaultTypeInternal() {}
  132. union {
  133. CSSigin _instance;
  134. };
  135. };
  136. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSSiginDefaultTypeInternal _CSSigin_default_instance_;
  137. constexpr SCSigin::SCSigin(
  138. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  139. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  140. , ret_(false)
  141. , uid_(0){}
  142. struct SCSiginDefaultTypeInternal {
  143. constexpr SCSiginDefaultTypeInternal()
  144. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  145. ~SCSiginDefaultTypeInternal() {}
  146. union {
  147. SCSigin _instance;
  148. };
  149. };
  150. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCSiginDefaultTypeInternal _SCSigin_default_instance_;
  151. constexpr Robot::Robot(
  152. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  153. : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
  154. , rid_(0)
  155. , type_(0)
  156. , state_(0){}
  157. struct RobotDefaultTypeInternal {
  158. constexpr RobotDefaultTypeInternal()
  159. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  160. ~RobotDefaultTypeInternal() {}
  161. union {
  162. Robot _instance;
  163. };
  164. };
  165. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RobotDefaultTypeInternal _Robot_default_instance_;
  166. constexpr SCAddRobot::SCAddRobot(
  167. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  168. : robot_(nullptr){}
  169. struct SCAddRobotDefaultTypeInternal {
  170. constexpr SCAddRobotDefaultTypeInternal()
  171. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  172. ~SCAddRobotDefaultTypeInternal() {}
  173. union {
  174. SCAddRobot _instance;
  175. };
  176. };
  177. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCAddRobotDefaultTypeInternal _SCAddRobot_default_instance_;
  178. constexpr SCDelRobot::SCDelRobot(
  179. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  180. : peer_(0)
  181. , egotype_(0){}
  182. struct SCDelRobotDefaultTypeInternal {
  183. constexpr SCDelRobotDefaultTypeInternal()
  184. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  185. ~SCDelRobotDefaultTypeInternal() {}
  186. union {
  187. SCDelRobot _instance;
  188. };
  189. };
  190. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCDelRobotDefaultTypeInternal _SCDelRobot_default_instance_;
  191. constexpr CSRobot::CSRobot(
  192. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
  193. struct CSRobotDefaultTypeInternal {
  194. constexpr CSRobotDefaultTypeInternal()
  195. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  196. ~CSRobotDefaultTypeInternal() {}
  197. union {
  198. CSRobot _instance;
  199. };
  200. };
  201. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CSRobotDefaultTypeInternal _CSRobot_default_instance_;
  202. constexpr SCRobot::SCRobot(
  203. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  204. : robot_(){}
  205. struct SCRobotDefaultTypeInternal {
  206. constexpr SCRobotDefaultTypeInternal()
  207. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  208. ~SCRobotDefaultTypeInternal() {}
  209. union {
  210. SCRobot _instance;
  211. };
  212. };
  213. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SCRobotDefaultTypeInternal _SCRobot_default_instance_;
  214. constexpr Leave::Leave(
  215. ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
  216. : peer_(0)
  217. , egotype_(0){}
  218. struct LeaveDefaultTypeInternal {
  219. constexpr LeaveDefaultTypeInternal()
  220. : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
  221. ~LeaveDefaultTypeInternal() {}
  222. union {
  223. Leave _instance;
  224. };
  225. };
  226. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LeaveDefaultTypeInternal _Leave_default_instance_;
  227. } // namespace remote
  228. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_remote_2eproto[15];
  229. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_remote_2eproto[2];
  230. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_remote_2eproto = nullptr;
  231. const uint32_t TableStruct_remote_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  232. ~0u, // no _has_bits_
  233. PROTOBUF_FIELD_OFFSET(::remote::Offer, _internal_metadata_),
  234. ~0u, // no _extensions_
  235. ~0u, // no _oneof_case_
  236. ~0u, // no _weak_field_map_
  237. ~0u, // no _inlined_string_donated_
  238. PROTOBUF_FIELD_OFFSET(::remote::Offer, index_),
  239. PROTOBUF_FIELD_OFFSET(::remote::Offer, peer_),
  240. PROTOBUF_FIELD_OFFSET(::remote::Offer, type_),
  241. PROTOBUF_FIELD_OFFSET(::remote::Offer, sdp_),
  242. ~0u, // no _has_bits_
  243. PROTOBUF_FIELD_OFFSET(::remote::Answer, _internal_metadata_),
  244. ~0u, // no _extensions_
  245. ~0u, // no _oneof_case_
  246. ~0u, // no _weak_field_map_
  247. ~0u, // no _inlined_string_donated_
  248. PROTOBUF_FIELD_OFFSET(::remote::Answer, index_),
  249. PROTOBUF_FIELD_OFFSET(::remote::Answer, peer_),
  250. PROTOBUF_FIELD_OFFSET(::remote::Answer, type_),
  251. PROTOBUF_FIELD_OFFSET(::remote::Answer, sdp_),
  252. ~0u, // no _has_bits_
  253. PROTOBUF_FIELD_OFFSET(::remote::Candidate, _internal_metadata_),
  254. ~0u, // no _extensions_
  255. ~0u, // no _oneof_case_
  256. ~0u, // no _weak_field_map_
  257. ~0u, // no _inlined_string_donated_
  258. PROTOBUF_FIELD_OFFSET(::remote::Candidate, index_),
  259. PROTOBUF_FIELD_OFFSET(::remote::Candidate, peer_),
  260. PROTOBUF_FIELD_OFFSET(::remote::Candidate, type_),
  261. PROTOBUF_FIELD_OFFSET(::remote::Candidate, candidate_),
  262. PROTOBUF_FIELD_OFFSET(::remote::Candidate, sdpmlineindex_),
  263. PROTOBUF_FIELD_OFFSET(::remote::Candidate, sdpmid_),
  264. PROTOBUF_FIELD_OFFSET(::remote::Candidate, egotype_),
  265. ~0u, // no _has_bits_
  266. PROTOBUF_FIELD_OFFSET(::remote::CSReq, _internal_metadata_),
  267. ~0u, // no _extensions_
  268. ~0u, // no _oneof_case_
  269. ~0u, // no _weak_field_map_
  270. ~0u, // no _inlined_string_donated_
  271. PROTOBUF_FIELD_OFFSET(::remote::CSReq, peer_),
  272. PROTOBUF_FIELD_OFFSET(::remote::CSReq, index_),
  273. PROTOBUF_FIELD_OFFSET(::remote::CSReq, egotype_),
  274. ~0u, // no _has_bits_
  275. PROTOBUF_FIELD_OFFSET(::remote::SCReq, _internal_metadata_),
  276. ~0u, // no _extensions_
  277. ~0u, // no _oneof_case_
  278. ~0u, // no _weak_field_map_
  279. ~0u, // no _inlined_string_donated_
  280. PROTOBUF_FIELD_OFFSET(::remote::SCReq, desc_),
  281. PROTOBUF_FIELD_OFFSET(::remote::SCReq, peer_),
  282. PROTOBUF_FIELD_OFFSET(::remote::SCReq, egotype_),
  283. ~0u, // no _has_bits_
  284. PROTOBUF_FIELD_OFFSET(::remote::CSRep, _internal_metadata_),
  285. ~0u, // no _extensions_
  286. ~0u, // no _oneof_case_
  287. ~0u, // no _weak_field_map_
  288. ~0u, // no _inlined_string_donated_
  289. PROTOBUF_FIELD_OFFSET(::remote::CSRep, desc_),
  290. PROTOBUF_FIELD_OFFSET(::remote::CSRep, peer_),
  291. PROTOBUF_FIELD_OFFSET(::remote::CSRep, index_),
  292. PROTOBUF_FIELD_OFFSET(::remote::CSRep, egotype_),
  293. ~0u, // no _has_bits_
  294. PROTOBUF_FIELD_OFFSET(::remote::SCRep, _internal_metadata_),
  295. ~0u, // no _extensions_
  296. ~0u, // no _oneof_case_
  297. ~0u, // no _weak_field_map_
  298. ~0u, // no _inlined_string_donated_
  299. PROTOBUF_FIELD_OFFSET(::remote::SCRep, desc_),
  300. PROTOBUF_FIELD_OFFSET(::remote::SCRep, index_),
  301. PROTOBUF_FIELD_OFFSET(::remote::SCRep, egotype_),
  302. PROTOBUF_FIELD_OFFSET(::remote::SCRep, peer_),
  303. ~0u, // no _has_bits_
  304. PROTOBUF_FIELD_OFFSET(::remote::CSSigin, _internal_metadata_),
  305. ~0u, // no _extensions_
  306. ~0u, // no _oneof_case_
  307. ~0u, // no _weak_field_map_
  308. ~0u, // no _inlined_string_donated_
  309. PROTOBUF_FIELD_OFFSET(::remote::CSSigin, account_),
  310. PROTOBUF_FIELD_OFFSET(::remote::CSSigin, type_),
  311. PROTOBUF_FIELD_OFFSET(::remote::CSSigin, name_),
  312. PROTOBUF_FIELD_OFFSET(::remote::CSSigin, pass_),
  313. ~0u, // no _has_bits_
  314. PROTOBUF_FIELD_OFFSET(::remote::SCSigin, _internal_metadata_),
  315. ~0u, // no _extensions_
  316. ~0u, // no _oneof_case_
  317. ~0u, // no _weak_field_map_
  318. ~0u, // no _inlined_string_donated_
  319. PROTOBUF_FIELD_OFFSET(::remote::SCSigin, ret_),
  320. PROTOBUF_FIELD_OFFSET(::remote::SCSigin, uid_),
  321. PROTOBUF_FIELD_OFFSET(::remote::SCSigin, name_),
  322. ~0u, // no _has_bits_
  323. PROTOBUF_FIELD_OFFSET(::remote::Robot, _internal_metadata_),
  324. ~0u, // no _extensions_
  325. ~0u, // no _oneof_case_
  326. ~0u, // no _weak_field_map_
  327. ~0u, // no _inlined_string_donated_
  328. PROTOBUF_FIELD_OFFSET(::remote::Robot, rid_),
  329. PROTOBUF_FIELD_OFFSET(::remote::Robot, name_),
  330. PROTOBUF_FIELD_OFFSET(::remote::Robot, type_),
  331. PROTOBUF_FIELD_OFFSET(::remote::Robot, state_),
  332. ~0u, // no _has_bits_
  333. PROTOBUF_FIELD_OFFSET(::remote::SCAddRobot, _internal_metadata_),
  334. ~0u, // no _extensions_
  335. ~0u, // no _oneof_case_
  336. ~0u, // no _weak_field_map_
  337. ~0u, // no _inlined_string_donated_
  338. PROTOBUF_FIELD_OFFSET(::remote::SCAddRobot, robot_),
  339. ~0u, // no _has_bits_
  340. PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, _internal_metadata_),
  341. ~0u, // no _extensions_
  342. ~0u, // no _oneof_case_
  343. ~0u, // no _weak_field_map_
  344. ~0u, // no _inlined_string_donated_
  345. PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, peer_),
  346. PROTOBUF_FIELD_OFFSET(::remote::SCDelRobot, egotype_),
  347. ~0u, // no _has_bits_
  348. PROTOBUF_FIELD_OFFSET(::remote::CSRobot, _internal_metadata_),
  349. ~0u, // no _extensions_
  350. ~0u, // no _oneof_case_
  351. ~0u, // no _weak_field_map_
  352. ~0u, // no _inlined_string_donated_
  353. ~0u, // no _has_bits_
  354. PROTOBUF_FIELD_OFFSET(::remote::SCRobot, _internal_metadata_),
  355. ~0u, // no _extensions_
  356. ~0u, // no _oneof_case_
  357. ~0u, // no _weak_field_map_
  358. ~0u, // no _inlined_string_donated_
  359. PROTOBUF_FIELD_OFFSET(::remote::SCRobot, robot_),
  360. ~0u, // no _has_bits_
  361. PROTOBUF_FIELD_OFFSET(::remote::Leave, _internal_metadata_),
  362. ~0u, // no _extensions_
  363. ~0u, // no _oneof_case_
  364. ~0u, // no _weak_field_map_
  365. ~0u, // no _inlined_string_donated_
  366. PROTOBUF_FIELD_OFFSET(::remote::Leave, peer_),
  367. PROTOBUF_FIELD_OFFSET(::remote::Leave, egotype_),
  368. };
  369. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  370. { 0, -1, -1, sizeof(::remote::Offer)},
  371. { 10, -1, -1, sizeof(::remote::Answer)},
  372. { 20, -1, -1, sizeof(::remote::Candidate)},
  373. { 33, -1, -1, sizeof(::remote::CSReq)},
  374. { 42, -1, -1, sizeof(::remote::SCReq)},
  375. { 51, -1, -1, sizeof(::remote::CSRep)},
  376. { 61, -1, -1, sizeof(::remote::SCRep)},
  377. { 71, -1, -1, sizeof(::remote::CSSigin)},
  378. { 81, -1, -1, sizeof(::remote::SCSigin)},
  379. { 90, -1, -1, sizeof(::remote::Robot)},
  380. { 100, -1, -1, sizeof(::remote::SCAddRobot)},
  381. { 107, -1, -1, sizeof(::remote::SCDelRobot)},
  382. { 115, -1, -1, sizeof(::remote::CSRobot)},
  383. { 121, -1, -1, sizeof(::remote::SCRobot)},
  384. { 128, -1, -1, sizeof(::remote::Leave)},
  385. };
  386. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  387. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Offer_default_instance_),
  388. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Answer_default_instance_),
  389. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Candidate_default_instance_),
  390. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSReq_default_instance_),
  391. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCReq_default_instance_),
  392. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSRep_default_instance_),
  393. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCRep_default_instance_),
  394. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSSigin_default_instance_),
  395. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCSigin_default_instance_),
  396. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Robot_default_instance_),
  397. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCAddRobot_default_instance_),
  398. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCDelRobot_default_instance_),
  399. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_CSRobot_default_instance_),
  400. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_SCRobot_default_instance_),
  401. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::remote::_Leave_default_instance_),
  402. };
  403. const char descriptor_table_protodef_remote_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  404. "\n\014remote.proto\022\006remote\"\?\n\005Offer\022\r\n\005index"
  405. "\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sd"
  406. "p\030\004 \001(\t\"@\n\006Answer\022\r\n\005index\030\001 \001(\005\022\014\n\004peer"
  407. "\030\002 \001(\005\022\014\n\004type\030\003 \001(\t\022\013\n\003sdp\030\004 \001(\t\"\201\001\n\tCa"
  408. "ndidate\022\r\n\005index\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\014\n\004"
  409. "type\030\003 \001(\t\022\021\n\tcandidate\030\004 \001(\t\022\025\n\rsdpMLin"
  410. "eIndex\030\005 \001(\005\022\016\n\006sdpMid\030\006 \001(\t\022\017\n\007egotype\030"
  411. "\007 \001(\005\"5\n\005CSReq\022\014\n\004peer\030\001 \001(\005\022\r\n\005index\030\002 "
  412. "\001(\005\022\017\n\007egotype\030\003 \001(\005\"4\n\005SCReq\022\014\n\004desc\030\001 "
  413. "\001(\005\022\014\n\004peer\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\"C\n\005CS"
  414. "Rep\022\014\n\004desc\030\001 \001(\005\022\014\n\004peer\030\002 \001(\005\022\r\n\005index"
  415. "\030\003 \001(\005\022\017\n\007egotype\030\004 \001(\005\"C\n\005SCRep\022\014\n\004desc"
  416. "\030\001 \001(\005\022\r\n\005index\030\002 \001(\005\022\017\n\007egotype\030\003 \001(\005\022\014"
  417. "\n\004peer\030\004 \001(\005\"D\n\007CSSigin\022\017\n\007account\030\001 \001(\t"
  418. "\022\014\n\004type\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\014\n\004pass\030\004 \001"
  419. "(\t\"1\n\007SCSigin\022\013\n\003ret\030\001 \001(\010\022\013\n\003uid\030\002 \001(\005\022"
  420. "\014\n\004name\030\003 \001(\t\"\?\n\005Robot\022\013\n\003rid\030\001 \001(\005\022\014\n\004n"
  421. "ame\030\002 \001(\t\022\014\n\004type\030\003 \001(\005\022\r\n\005state\030\004 \001(\005\"*"
  422. "\n\nSCAddRobot\022\034\n\005robot\030\001 \001(\0132\r.remote.Rob"
  423. "ot\"+\n\nSCDelRobot\022\014\n\004peer\030\001 \001(\005\022\017\n\007egotyp"
  424. "e\030\002 \001(\005\"\t\n\007CSRobot\"\'\n\007SCRobot\022\034\n\005robot\030\001"
  425. " \003(\0132\r.remote.Robot\"&\n\005Leave\022\014\n\004peer\030\001 \001"
  426. "(\005\022\017\n\007egotype\030\002 \001(\005*\310\001\n\ncs_message\022\013\n\007cs"
  427. "_none\020\000\022\013\n\006cs_req\020\321\017\022\013\n\006cs_rep\020\322\017\022\r\n\010cs_"
  428. "offer\020\324\017\022\016\n\tcs_answer\020\325\017\022\021\n\014cs_candidate"
  429. "\020\326\017\022\r\n\010cs_leave\020\327\017\022\021\n\014cs_keepAlive\020\330\017\022\r\n"
  430. "\010cs_sigin\020\331\017\022\r\n\010cs_robot\020\332\017\022\022\n\rcs_closeV"
  431. "ideo\020\333\017\022\r\n\010cs_state\020\336\017*\327\002\n\nsc_message\022\013\n"
  432. "\007sc_none\020\000\022\013\n\006sc_req\020\241\037\022\013\n\006sc_rep\020\242\037\022\r\n\010"
  433. "sc_offer\020\244\037\022\016\n\tsc_answer\020\245\037\022\021\n\014sc_candid"
  434. "ate\020\246\037\022\r\n\010sc_sigin\020\247\037\022\r\n\010sc_robot\020\250\037\022\021\n\014"
  435. "sc_NotifyReq\020\251\037\022\021\n\014sc_NotifyRep\020\252\037\022\024\n\017sc"
  436. "_NotifyAnswer\020\253\037\022\023\n\016sc_NotifyOffer\020\254\037\022\027\n"
  437. "\022sc_NotifyCandidate\020\255\037\022\023\n\016sc_NotifyLeave"
  438. "\020\256\037\022\021\n\014sc_NotifyAdd\020\260\037\022\021\n\014sc_NotifyDel\020\261"
  439. "\037\022\030\n\023sc_NotifyCloseVideo\020\262\037\022\023\n\016sc_Notify"
  440. "State\020\271\037b\006proto3"
  441. ;
  442. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_remote_2eproto_once;
  443. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_remote_2eproto = {
  444. false, false, 1456, descriptor_table_protodef_remote_2eproto, "remote.proto",
  445. &descriptor_table_remote_2eproto_once, nullptr, 0, 15,
  446. schemas, file_default_instances, TableStruct_remote_2eproto::offsets,
  447. file_level_metadata_remote_2eproto, file_level_enum_descriptors_remote_2eproto, file_level_service_descriptors_remote_2eproto,
  448. };
  449. PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_remote_2eproto_getter() {
  450. return &descriptor_table_remote_2eproto;
  451. }
  452. // Force running AddDescriptors() at dynamic initialization time.
  453. PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_remote_2eproto(&descriptor_table_remote_2eproto);
  454. namespace remote {
  455. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* cs_message_descriptor() {
  456. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_remote_2eproto);
  457. return file_level_enum_descriptors_remote_2eproto[0];
  458. }
  459. bool cs_message_IsValid(int value) {
  460. switch (value) {
  461. case 0:
  462. case 2001:
  463. case 2002:
  464. case 2004:
  465. case 2005:
  466. case 2006:
  467. case 2007:
  468. case 2008:
  469. case 2009:
  470. case 2010:
  471. case 2011:
  472. case 2014:
  473. return true;
  474. default:
  475. return false;
  476. }
  477. }
  478. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* sc_message_descriptor() {
  479. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_remote_2eproto);
  480. return file_level_enum_descriptors_remote_2eproto[1];
  481. }
  482. bool sc_message_IsValid(int value) {
  483. switch (value) {
  484. case 0:
  485. case 4001:
  486. case 4002:
  487. case 4004:
  488. case 4005:
  489. case 4006:
  490. case 4007:
  491. case 4008:
  492. case 4009:
  493. case 4010:
  494. case 4011:
  495. case 4012:
  496. case 4013:
  497. case 4014:
  498. case 4016:
  499. case 4017:
  500. case 4018:
  501. case 4025:
  502. return true;
  503. default:
  504. return false;
  505. }
  506. }
  507. // ===================================================================
  508. class Offer::_Internal {
  509. public:
  510. };
  511. Offer::Offer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  512. bool is_message_owned)
  513. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  514. SharedCtor();
  515. if (!is_message_owned) {
  516. RegisterArenaDtor(arena);
  517. }
  518. // @@protoc_insertion_point(arena_constructor:remote.Offer)
  519. }
  520. Offer::Offer(const Offer& from)
  521. : ::PROTOBUF_NAMESPACE_ID::Message() {
  522. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  523. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  524. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  525. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  526. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  527. if (!from._internal_type().empty()) {
  528. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  529. GetArenaForAllocation());
  530. }
  531. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  532. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  533. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  534. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  535. if (!from._internal_sdp().empty()) {
  536. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  537. GetArenaForAllocation());
  538. }
  539. ::memcpy(&index_, &from.index_,
  540. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  541. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  542. // @@protoc_insertion_point(copy_constructor:remote.Offer)
  543. }
  544. inline void Offer::SharedCtor() {
  545. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  546. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  547. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  548. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  549. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  550. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  551. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  552. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  553. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  554. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  555. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  556. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  557. }
  558. Offer::~Offer() {
  559. // @@protoc_insertion_point(destructor:remote.Offer)
  560. if (GetArenaForAllocation() != nullptr) return;
  561. SharedDtor();
  562. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  563. }
  564. inline void Offer::SharedDtor() {
  565. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  566. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  567. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  568. }
  569. void Offer::ArenaDtor(void* object) {
  570. Offer* _this = reinterpret_cast< Offer* >(object);
  571. (void)_this;
  572. }
  573. void Offer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  574. }
  575. void Offer::SetCachedSize(int size) const {
  576. _cached_size_.Set(size);
  577. }
  578. void Offer::Clear() {
  579. // @@protoc_insertion_point(message_clear_start:remote.Offer)
  580. uint32_t cached_has_bits = 0;
  581. // Prevent compiler warnings about cached_has_bits being unused
  582. (void) cached_has_bits;
  583. type_.ClearToEmpty();
  584. sdp_.ClearToEmpty();
  585. ::memset(&index_, 0, static_cast<size_t>(
  586. reinterpret_cast<char*>(&peer_) -
  587. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  588. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  589. }
  590. const char* Offer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  591. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  592. while (!ctx->Done(&ptr)) {
  593. uint32_t tag;
  594. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  595. switch (tag >> 3) {
  596. // int32 index = 1;
  597. case 1:
  598. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  599. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  600. CHK_(ptr);
  601. } else
  602. goto handle_unusual;
  603. continue;
  604. // int32 peer = 2;
  605. case 2:
  606. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  607. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  608. CHK_(ptr);
  609. } else
  610. goto handle_unusual;
  611. continue;
  612. // string type = 3;
  613. case 3:
  614. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  615. auto str = _internal_mutable_type();
  616. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  617. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Offer.type"));
  618. CHK_(ptr);
  619. } else
  620. goto handle_unusual;
  621. continue;
  622. // string sdp = 4;
  623. case 4:
  624. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  625. auto str = _internal_mutable_sdp();
  626. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  627. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Offer.sdp"));
  628. CHK_(ptr);
  629. } else
  630. goto handle_unusual;
  631. continue;
  632. default:
  633. goto handle_unusual;
  634. } // switch
  635. handle_unusual:
  636. if ((tag == 0) || ((tag & 7) == 4)) {
  637. CHK_(ptr);
  638. ctx->SetLastTag(tag);
  639. goto message_done;
  640. }
  641. ptr = UnknownFieldParse(
  642. tag,
  643. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  644. ptr, ctx);
  645. CHK_(ptr != nullptr);
  646. } // while
  647. message_done:
  648. return ptr;
  649. failure:
  650. ptr = nullptr;
  651. goto message_done;
  652. #undef CHK_
  653. }
  654. uint8_t* Offer::_InternalSerialize(
  655. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  656. // @@protoc_insertion_point(serialize_to_array_start:remote.Offer)
  657. uint32_t cached_has_bits = 0;
  658. (void) cached_has_bits;
  659. // int32 index = 1;
  660. if (this->_internal_index() != 0) {
  661. target = stream->EnsureSpace(target);
  662. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  663. }
  664. // int32 peer = 2;
  665. if (this->_internal_peer() != 0) {
  666. target = stream->EnsureSpace(target);
  667. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  668. }
  669. // string type = 3;
  670. if (!this->_internal_type().empty()) {
  671. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  672. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  673. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  674. "remote.Offer.type");
  675. target = stream->WriteStringMaybeAliased(
  676. 3, this->_internal_type(), target);
  677. }
  678. // string sdp = 4;
  679. if (!this->_internal_sdp().empty()) {
  680. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  681. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  682. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  683. "remote.Offer.sdp");
  684. target = stream->WriteStringMaybeAliased(
  685. 4, this->_internal_sdp(), target);
  686. }
  687. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  688. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  689. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  690. }
  691. // @@protoc_insertion_point(serialize_to_array_end:remote.Offer)
  692. return target;
  693. }
  694. size_t Offer::ByteSizeLong() const {
  695. // @@protoc_insertion_point(message_byte_size_start:remote.Offer)
  696. size_t total_size = 0;
  697. uint32_t cached_has_bits = 0;
  698. // Prevent compiler warnings about cached_has_bits being unused
  699. (void) cached_has_bits;
  700. // string type = 3;
  701. if (!this->_internal_type().empty()) {
  702. total_size += 1 +
  703. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  704. this->_internal_type());
  705. }
  706. // string sdp = 4;
  707. if (!this->_internal_sdp().empty()) {
  708. total_size += 1 +
  709. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  710. this->_internal_sdp());
  711. }
  712. // int32 index = 1;
  713. if (this->_internal_index() != 0) {
  714. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  715. }
  716. // int32 peer = 2;
  717. if (this->_internal_peer() != 0) {
  718. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  719. }
  720. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  721. }
  722. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Offer::_class_data_ = {
  723. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  724. Offer::MergeImpl
  725. };
  726. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Offer::GetClassData() const { return &_class_data_; }
  727. void Offer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  728. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  729. static_cast<Offer *>(to)->MergeFrom(
  730. static_cast<const Offer &>(from));
  731. }
  732. void Offer::MergeFrom(const Offer& from) {
  733. // @@protoc_insertion_point(class_specific_merge_from_start:remote.Offer)
  734. GOOGLE_DCHECK_NE(&from, this);
  735. uint32_t cached_has_bits = 0;
  736. (void) cached_has_bits;
  737. if (!from._internal_type().empty()) {
  738. _internal_set_type(from._internal_type());
  739. }
  740. if (!from._internal_sdp().empty()) {
  741. _internal_set_sdp(from._internal_sdp());
  742. }
  743. if (from._internal_index() != 0) {
  744. _internal_set_index(from._internal_index());
  745. }
  746. if (from._internal_peer() != 0) {
  747. _internal_set_peer(from._internal_peer());
  748. }
  749. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  750. }
  751. void Offer::CopyFrom(const Offer& from) {
  752. // @@protoc_insertion_point(class_specific_copy_from_start:remote.Offer)
  753. if (&from == this) return;
  754. Clear();
  755. MergeFrom(from);
  756. }
  757. bool Offer::IsInitialized() const {
  758. return true;
  759. }
  760. void Offer::InternalSwap(Offer* other) {
  761. using std::swap;
  762. auto* lhs_arena = GetArenaForAllocation();
  763. auto* rhs_arena = other->GetArenaForAllocation();
  764. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  765. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  766. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  767. &type_, lhs_arena,
  768. &other->type_, rhs_arena
  769. );
  770. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  771. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  772. &sdp_, lhs_arena,
  773. &other->sdp_, rhs_arena
  774. );
  775. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  776. PROTOBUF_FIELD_OFFSET(Offer, peer_)
  777. + sizeof(Offer::peer_)
  778. - PROTOBUF_FIELD_OFFSET(Offer, index_)>(
  779. reinterpret_cast<char*>(&index_),
  780. reinterpret_cast<char*>(&other->index_));
  781. }
  782. ::PROTOBUF_NAMESPACE_ID::Metadata Offer::GetMetadata() const {
  783. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  784. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  785. file_level_metadata_remote_2eproto[0]);
  786. }
  787. // ===================================================================
  788. class Answer::_Internal {
  789. public:
  790. };
  791. Answer::Answer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  792. bool is_message_owned)
  793. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  794. SharedCtor();
  795. if (!is_message_owned) {
  796. RegisterArenaDtor(arena);
  797. }
  798. // @@protoc_insertion_point(arena_constructor:remote.Answer)
  799. }
  800. Answer::Answer(const Answer& from)
  801. : ::PROTOBUF_NAMESPACE_ID::Message() {
  802. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  803. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  804. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  805. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  806. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  807. if (!from._internal_type().empty()) {
  808. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  809. GetArenaForAllocation());
  810. }
  811. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  812. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  813. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  814. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  815. if (!from._internal_sdp().empty()) {
  816. sdp_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdp(),
  817. GetArenaForAllocation());
  818. }
  819. ::memcpy(&index_, &from.index_,
  820. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  821. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  822. // @@protoc_insertion_point(copy_constructor:remote.Answer)
  823. }
  824. inline void Answer::SharedCtor() {
  825. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  826. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  827. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  828. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  829. sdp_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  830. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  831. sdp_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  832. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  833. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  834. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  835. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  836. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  837. }
  838. Answer::~Answer() {
  839. // @@protoc_insertion_point(destructor:remote.Answer)
  840. if (GetArenaForAllocation() != nullptr) return;
  841. SharedDtor();
  842. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  843. }
  844. inline void Answer::SharedDtor() {
  845. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  846. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  847. sdp_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  848. }
  849. void Answer::ArenaDtor(void* object) {
  850. Answer* _this = reinterpret_cast< Answer* >(object);
  851. (void)_this;
  852. }
  853. void Answer::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  854. }
  855. void Answer::SetCachedSize(int size) const {
  856. _cached_size_.Set(size);
  857. }
  858. void Answer::Clear() {
  859. // @@protoc_insertion_point(message_clear_start:remote.Answer)
  860. uint32_t cached_has_bits = 0;
  861. // Prevent compiler warnings about cached_has_bits being unused
  862. (void) cached_has_bits;
  863. type_.ClearToEmpty();
  864. sdp_.ClearToEmpty();
  865. ::memset(&index_, 0, static_cast<size_t>(
  866. reinterpret_cast<char*>(&peer_) -
  867. reinterpret_cast<char*>(&index_)) + sizeof(peer_));
  868. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  869. }
  870. const char* Answer::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  871. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  872. while (!ctx->Done(&ptr)) {
  873. uint32_t tag;
  874. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  875. switch (tag >> 3) {
  876. // int32 index = 1;
  877. case 1:
  878. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  879. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  880. CHK_(ptr);
  881. } else
  882. goto handle_unusual;
  883. continue;
  884. // int32 peer = 2;
  885. case 2:
  886. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  887. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  888. CHK_(ptr);
  889. } else
  890. goto handle_unusual;
  891. continue;
  892. // string type = 3;
  893. case 3:
  894. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  895. auto str = _internal_mutable_type();
  896. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  897. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Answer.type"));
  898. CHK_(ptr);
  899. } else
  900. goto handle_unusual;
  901. continue;
  902. // string sdp = 4;
  903. case 4:
  904. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  905. auto str = _internal_mutable_sdp();
  906. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  907. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Answer.sdp"));
  908. CHK_(ptr);
  909. } else
  910. goto handle_unusual;
  911. continue;
  912. default:
  913. goto handle_unusual;
  914. } // switch
  915. handle_unusual:
  916. if ((tag == 0) || ((tag & 7) == 4)) {
  917. CHK_(ptr);
  918. ctx->SetLastTag(tag);
  919. goto message_done;
  920. }
  921. ptr = UnknownFieldParse(
  922. tag,
  923. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  924. ptr, ctx);
  925. CHK_(ptr != nullptr);
  926. } // while
  927. message_done:
  928. return ptr;
  929. failure:
  930. ptr = nullptr;
  931. goto message_done;
  932. #undef CHK_
  933. }
  934. uint8_t* Answer::_InternalSerialize(
  935. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  936. // @@protoc_insertion_point(serialize_to_array_start:remote.Answer)
  937. uint32_t cached_has_bits = 0;
  938. (void) cached_has_bits;
  939. // int32 index = 1;
  940. if (this->_internal_index() != 0) {
  941. target = stream->EnsureSpace(target);
  942. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  943. }
  944. // int32 peer = 2;
  945. if (this->_internal_peer() != 0) {
  946. target = stream->EnsureSpace(target);
  947. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  948. }
  949. // string type = 3;
  950. if (!this->_internal_type().empty()) {
  951. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  952. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  953. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  954. "remote.Answer.type");
  955. target = stream->WriteStringMaybeAliased(
  956. 3, this->_internal_type(), target);
  957. }
  958. // string sdp = 4;
  959. if (!this->_internal_sdp().empty()) {
  960. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  961. this->_internal_sdp().data(), static_cast<int>(this->_internal_sdp().length()),
  962. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  963. "remote.Answer.sdp");
  964. target = stream->WriteStringMaybeAliased(
  965. 4, this->_internal_sdp(), target);
  966. }
  967. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  968. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  969. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  970. }
  971. // @@protoc_insertion_point(serialize_to_array_end:remote.Answer)
  972. return target;
  973. }
  974. size_t Answer::ByteSizeLong() const {
  975. // @@protoc_insertion_point(message_byte_size_start:remote.Answer)
  976. size_t total_size = 0;
  977. uint32_t cached_has_bits = 0;
  978. // Prevent compiler warnings about cached_has_bits being unused
  979. (void) cached_has_bits;
  980. // string type = 3;
  981. if (!this->_internal_type().empty()) {
  982. total_size += 1 +
  983. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  984. this->_internal_type());
  985. }
  986. // string sdp = 4;
  987. if (!this->_internal_sdp().empty()) {
  988. total_size += 1 +
  989. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  990. this->_internal_sdp());
  991. }
  992. // int32 index = 1;
  993. if (this->_internal_index() != 0) {
  994. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  995. }
  996. // int32 peer = 2;
  997. if (this->_internal_peer() != 0) {
  998. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  999. }
  1000. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1001. }
  1002. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Answer::_class_data_ = {
  1003. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1004. Answer::MergeImpl
  1005. };
  1006. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Answer::GetClassData() const { return &_class_data_; }
  1007. void Answer::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1008. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1009. static_cast<Answer *>(to)->MergeFrom(
  1010. static_cast<const Answer &>(from));
  1011. }
  1012. void Answer::MergeFrom(const Answer& from) {
  1013. // @@protoc_insertion_point(class_specific_merge_from_start:remote.Answer)
  1014. GOOGLE_DCHECK_NE(&from, this);
  1015. uint32_t cached_has_bits = 0;
  1016. (void) cached_has_bits;
  1017. if (!from._internal_type().empty()) {
  1018. _internal_set_type(from._internal_type());
  1019. }
  1020. if (!from._internal_sdp().empty()) {
  1021. _internal_set_sdp(from._internal_sdp());
  1022. }
  1023. if (from._internal_index() != 0) {
  1024. _internal_set_index(from._internal_index());
  1025. }
  1026. if (from._internal_peer() != 0) {
  1027. _internal_set_peer(from._internal_peer());
  1028. }
  1029. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1030. }
  1031. void Answer::CopyFrom(const Answer& from) {
  1032. // @@protoc_insertion_point(class_specific_copy_from_start:remote.Answer)
  1033. if (&from == this) return;
  1034. Clear();
  1035. MergeFrom(from);
  1036. }
  1037. bool Answer::IsInitialized() const {
  1038. return true;
  1039. }
  1040. void Answer::InternalSwap(Answer* other) {
  1041. using std::swap;
  1042. auto* lhs_arena = GetArenaForAllocation();
  1043. auto* rhs_arena = other->GetArenaForAllocation();
  1044. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1045. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1046. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1047. &type_, lhs_arena,
  1048. &other->type_, rhs_arena
  1049. );
  1050. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1051. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1052. &sdp_, lhs_arena,
  1053. &other->sdp_, rhs_arena
  1054. );
  1055. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1056. PROTOBUF_FIELD_OFFSET(Answer, peer_)
  1057. + sizeof(Answer::peer_)
  1058. - PROTOBUF_FIELD_OFFSET(Answer, index_)>(
  1059. reinterpret_cast<char*>(&index_),
  1060. reinterpret_cast<char*>(&other->index_));
  1061. }
  1062. ::PROTOBUF_NAMESPACE_ID::Metadata Answer::GetMetadata() const {
  1063. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1064. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  1065. file_level_metadata_remote_2eproto[1]);
  1066. }
  1067. // ===================================================================
  1068. class Candidate::_Internal {
  1069. public:
  1070. };
  1071. Candidate::Candidate(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1072. bool is_message_owned)
  1073. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1074. SharedCtor();
  1075. if (!is_message_owned) {
  1076. RegisterArenaDtor(arena);
  1077. }
  1078. // @@protoc_insertion_point(arena_constructor:remote.Candidate)
  1079. }
  1080. Candidate::Candidate(const Candidate& from)
  1081. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1082. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1083. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1084. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1085. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1086. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1087. if (!from._internal_type().empty()) {
  1088. type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type(),
  1089. GetArenaForAllocation());
  1090. }
  1091. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1092. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1093. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1094. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1095. if (!from._internal_candidate().empty()) {
  1096. candidate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_candidate(),
  1097. GetArenaForAllocation());
  1098. }
  1099. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1100. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1101. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1102. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1103. if (!from._internal_sdpmid().empty()) {
  1104. sdpmid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sdpmid(),
  1105. GetArenaForAllocation());
  1106. }
  1107. ::memcpy(&index_, &from.index_,
  1108. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1109. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  1110. // @@protoc_insertion_point(copy_constructor:remote.Candidate)
  1111. }
  1112. inline void Candidate::SharedCtor() {
  1113. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1114. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1115. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1116. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1117. candidate_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1118. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1119. candidate_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1120. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1121. sdpmid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1122. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1123. sdpmid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  1124. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1125. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1126. reinterpret_cast<char*>(&index_) - reinterpret_cast<char*>(this)),
  1127. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1128. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  1129. }
  1130. Candidate::~Candidate() {
  1131. // @@protoc_insertion_point(destructor:remote.Candidate)
  1132. if (GetArenaForAllocation() != nullptr) return;
  1133. SharedDtor();
  1134. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1135. }
  1136. inline void Candidate::SharedDtor() {
  1137. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1138. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1139. candidate_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1140. sdpmid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1141. }
  1142. void Candidate::ArenaDtor(void* object) {
  1143. Candidate* _this = reinterpret_cast< Candidate* >(object);
  1144. (void)_this;
  1145. }
  1146. void Candidate::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1147. }
  1148. void Candidate::SetCachedSize(int size) const {
  1149. _cached_size_.Set(size);
  1150. }
  1151. void Candidate::Clear() {
  1152. // @@protoc_insertion_point(message_clear_start:remote.Candidate)
  1153. uint32_t cached_has_bits = 0;
  1154. // Prevent compiler warnings about cached_has_bits being unused
  1155. (void) cached_has_bits;
  1156. type_.ClearToEmpty();
  1157. candidate_.ClearToEmpty();
  1158. sdpmid_.ClearToEmpty();
  1159. ::memset(&index_, 0, static_cast<size_t>(
  1160. reinterpret_cast<char*>(&egotype_) -
  1161. reinterpret_cast<char*>(&index_)) + sizeof(egotype_));
  1162. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1163. }
  1164. const char* Candidate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1165. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1166. while (!ctx->Done(&ptr)) {
  1167. uint32_t tag;
  1168. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1169. switch (tag >> 3) {
  1170. // int32 index = 1;
  1171. case 1:
  1172. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1173. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1174. CHK_(ptr);
  1175. } else
  1176. goto handle_unusual;
  1177. continue;
  1178. // int32 peer = 2;
  1179. case 2:
  1180. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1181. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1182. CHK_(ptr);
  1183. } else
  1184. goto handle_unusual;
  1185. continue;
  1186. // string type = 3;
  1187. case 3:
  1188. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  1189. auto str = _internal_mutable_type();
  1190. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1191. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.type"));
  1192. CHK_(ptr);
  1193. } else
  1194. goto handle_unusual;
  1195. continue;
  1196. // string candidate = 4;
  1197. case 4:
  1198. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  1199. auto str = _internal_mutable_candidate();
  1200. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1201. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.candidate"));
  1202. CHK_(ptr);
  1203. } else
  1204. goto handle_unusual;
  1205. continue;
  1206. // int32 sdpMLineIndex = 5;
  1207. case 5:
  1208. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
  1209. sdpmlineindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1210. CHK_(ptr);
  1211. } else
  1212. goto handle_unusual;
  1213. continue;
  1214. // string sdpMid = 6;
  1215. case 6:
  1216. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
  1217. auto str = _internal_mutable_sdpmid();
  1218. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  1219. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Candidate.sdpMid"));
  1220. CHK_(ptr);
  1221. } else
  1222. goto handle_unusual;
  1223. continue;
  1224. // int32 egotype = 7;
  1225. case 7:
  1226. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) {
  1227. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1228. CHK_(ptr);
  1229. } else
  1230. goto handle_unusual;
  1231. continue;
  1232. default:
  1233. goto handle_unusual;
  1234. } // switch
  1235. handle_unusual:
  1236. if ((tag == 0) || ((tag & 7) == 4)) {
  1237. CHK_(ptr);
  1238. ctx->SetLastTag(tag);
  1239. goto message_done;
  1240. }
  1241. ptr = UnknownFieldParse(
  1242. tag,
  1243. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1244. ptr, ctx);
  1245. CHK_(ptr != nullptr);
  1246. } // while
  1247. message_done:
  1248. return ptr;
  1249. failure:
  1250. ptr = nullptr;
  1251. goto message_done;
  1252. #undef CHK_
  1253. }
  1254. uint8_t* Candidate::_InternalSerialize(
  1255. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1256. // @@protoc_insertion_point(serialize_to_array_start:remote.Candidate)
  1257. uint32_t cached_has_bits = 0;
  1258. (void) cached_has_bits;
  1259. // int32 index = 1;
  1260. if (this->_internal_index() != 0) {
  1261. target = stream->EnsureSpace(target);
  1262. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_index(), target);
  1263. }
  1264. // int32 peer = 2;
  1265. if (this->_internal_peer() != 0) {
  1266. target = stream->EnsureSpace(target);
  1267. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  1268. }
  1269. // string type = 3;
  1270. if (!this->_internal_type().empty()) {
  1271. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1272. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  1273. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1274. "remote.Candidate.type");
  1275. target = stream->WriteStringMaybeAliased(
  1276. 3, this->_internal_type(), target);
  1277. }
  1278. // string candidate = 4;
  1279. if (!this->_internal_candidate().empty()) {
  1280. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1281. this->_internal_candidate().data(), static_cast<int>(this->_internal_candidate().length()),
  1282. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1283. "remote.Candidate.candidate");
  1284. target = stream->WriteStringMaybeAliased(
  1285. 4, this->_internal_candidate(), target);
  1286. }
  1287. // int32 sdpMLineIndex = 5;
  1288. if (this->_internal_sdpmlineindex() != 0) {
  1289. target = stream->EnsureSpace(target);
  1290. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_sdpmlineindex(), target);
  1291. }
  1292. // string sdpMid = 6;
  1293. if (!this->_internal_sdpmid().empty()) {
  1294. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  1295. this->_internal_sdpmid().data(), static_cast<int>(this->_internal_sdpmid().length()),
  1296. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  1297. "remote.Candidate.sdpMid");
  1298. target = stream->WriteStringMaybeAliased(
  1299. 6, this->_internal_sdpmid(), target);
  1300. }
  1301. // int32 egotype = 7;
  1302. if (this->_internal_egotype() != 0) {
  1303. target = stream->EnsureSpace(target);
  1304. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_egotype(), target);
  1305. }
  1306. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1307. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1308. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1309. }
  1310. // @@protoc_insertion_point(serialize_to_array_end:remote.Candidate)
  1311. return target;
  1312. }
  1313. size_t Candidate::ByteSizeLong() const {
  1314. // @@protoc_insertion_point(message_byte_size_start:remote.Candidate)
  1315. size_t total_size = 0;
  1316. uint32_t cached_has_bits = 0;
  1317. // Prevent compiler warnings about cached_has_bits being unused
  1318. (void) cached_has_bits;
  1319. // string type = 3;
  1320. if (!this->_internal_type().empty()) {
  1321. total_size += 1 +
  1322. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1323. this->_internal_type());
  1324. }
  1325. // string candidate = 4;
  1326. if (!this->_internal_candidate().empty()) {
  1327. total_size += 1 +
  1328. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1329. this->_internal_candidate());
  1330. }
  1331. // string sdpMid = 6;
  1332. if (!this->_internal_sdpmid().empty()) {
  1333. total_size += 1 +
  1334. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  1335. this->_internal_sdpmid());
  1336. }
  1337. // int32 index = 1;
  1338. if (this->_internal_index() != 0) {
  1339. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  1340. }
  1341. // int32 peer = 2;
  1342. if (this->_internal_peer() != 0) {
  1343. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1344. }
  1345. // int32 sdpMLineIndex = 5;
  1346. if (this->_internal_sdpmlineindex() != 0) {
  1347. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sdpmlineindex());
  1348. }
  1349. // int32 egotype = 7;
  1350. if (this->_internal_egotype() != 0) {
  1351. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  1352. }
  1353. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1354. }
  1355. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Candidate::_class_data_ = {
  1356. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1357. Candidate::MergeImpl
  1358. };
  1359. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Candidate::GetClassData() const { return &_class_data_; }
  1360. void Candidate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1361. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1362. static_cast<Candidate *>(to)->MergeFrom(
  1363. static_cast<const Candidate &>(from));
  1364. }
  1365. void Candidate::MergeFrom(const Candidate& from) {
  1366. // @@protoc_insertion_point(class_specific_merge_from_start:remote.Candidate)
  1367. GOOGLE_DCHECK_NE(&from, this);
  1368. uint32_t cached_has_bits = 0;
  1369. (void) cached_has_bits;
  1370. if (!from._internal_type().empty()) {
  1371. _internal_set_type(from._internal_type());
  1372. }
  1373. if (!from._internal_candidate().empty()) {
  1374. _internal_set_candidate(from._internal_candidate());
  1375. }
  1376. if (!from._internal_sdpmid().empty()) {
  1377. _internal_set_sdpmid(from._internal_sdpmid());
  1378. }
  1379. if (from._internal_index() != 0) {
  1380. _internal_set_index(from._internal_index());
  1381. }
  1382. if (from._internal_peer() != 0) {
  1383. _internal_set_peer(from._internal_peer());
  1384. }
  1385. if (from._internal_sdpmlineindex() != 0) {
  1386. _internal_set_sdpmlineindex(from._internal_sdpmlineindex());
  1387. }
  1388. if (from._internal_egotype() != 0) {
  1389. _internal_set_egotype(from._internal_egotype());
  1390. }
  1391. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1392. }
  1393. void Candidate::CopyFrom(const Candidate& from) {
  1394. // @@protoc_insertion_point(class_specific_copy_from_start:remote.Candidate)
  1395. if (&from == this) return;
  1396. Clear();
  1397. MergeFrom(from);
  1398. }
  1399. bool Candidate::IsInitialized() const {
  1400. return true;
  1401. }
  1402. void Candidate::InternalSwap(Candidate* other) {
  1403. using std::swap;
  1404. auto* lhs_arena = GetArenaForAllocation();
  1405. auto* rhs_arena = other->GetArenaForAllocation();
  1406. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1407. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1408. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1409. &type_, lhs_arena,
  1410. &other->type_, rhs_arena
  1411. );
  1412. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1413. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1414. &candidate_, lhs_arena,
  1415. &other->candidate_, rhs_arena
  1416. );
  1417. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  1418. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1419. &sdpmid_, lhs_arena,
  1420. &other->sdpmid_, rhs_arena
  1421. );
  1422. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1423. PROTOBUF_FIELD_OFFSET(Candidate, egotype_)
  1424. + sizeof(Candidate::egotype_)
  1425. - PROTOBUF_FIELD_OFFSET(Candidate, index_)>(
  1426. reinterpret_cast<char*>(&index_),
  1427. reinterpret_cast<char*>(&other->index_));
  1428. }
  1429. ::PROTOBUF_NAMESPACE_ID::Metadata Candidate::GetMetadata() const {
  1430. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1431. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  1432. file_level_metadata_remote_2eproto[2]);
  1433. }
  1434. // ===================================================================
  1435. class CSReq::_Internal {
  1436. public:
  1437. };
  1438. CSReq::CSReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1439. bool is_message_owned)
  1440. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1441. SharedCtor();
  1442. if (!is_message_owned) {
  1443. RegisterArenaDtor(arena);
  1444. }
  1445. // @@protoc_insertion_point(arena_constructor:remote.CSReq)
  1446. }
  1447. CSReq::CSReq(const CSReq& from)
  1448. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1449. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1450. ::memcpy(&peer_, &from.peer_,
  1451. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1452. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  1453. // @@protoc_insertion_point(copy_constructor:remote.CSReq)
  1454. }
  1455. inline void CSReq::SharedCtor() {
  1456. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1457. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  1458. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1459. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  1460. }
  1461. CSReq::~CSReq() {
  1462. // @@protoc_insertion_point(destructor:remote.CSReq)
  1463. if (GetArenaForAllocation() != nullptr) return;
  1464. SharedDtor();
  1465. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1466. }
  1467. inline void CSReq::SharedDtor() {
  1468. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1469. }
  1470. void CSReq::ArenaDtor(void* object) {
  1471. CSReq* _this = reinterpret_cast< CSReq* >(object);
  1472. (void)_this;
  1473. }
  1474. void CSReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1475. }
  1476. void CSReq::SetCachedSize(int size) const {
  1477. _cached_size_.Set(size);
  1478. }
  1479. void CSReq::Clear() {
  1480. // @@protoc_insertion_point(message_clear_start:remote.CSReq)
  1481. uint32_t cached_has_bits = 0;
  1482. // Prevent compiler warnings about cached_has_bits being unused
  1483. (void) cached_has_bits;
  1484. ::memset(&peer_, 0, static_cast<size_t>(
  1485. reinterpret_cast<char*>(&egotype_) -
  1486. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  1487. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1488. }
  1489. const char* CSReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1490. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1491. while (!ctx->Done(&ptr)) {
  1492. uint32_t tag;
  1493. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1494. switch (tag >> 3) {
  1495. // int32 peer = 1;
  1496. case 1:
  1497. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1498. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1499. CHK_(ptr);
  1500. } else
  1501. goto handle_unusual;
  1502. continue;
  1503. // int32 index = 2;
  1504. case 2:
  1505. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1506. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1507. CHK_(ptr);
  1508. } else
  1509. goto handle_unusual;
  1510. continue;
  1511. // int32 egotype = 3;
  1512. case 3:
  1513. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1514. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1515. CHK_(ptr);
  1516. } else
  1517. goto handle_unusual;
  1518. continue;
  1519. default:
  1520. goto handle_unusual;
  1521. } // switch
  1522. handle_unusual:
  1523. if ((tag == 0) || ((tag & 7) == 4)) {
  1524. CHK_(ptr);
  1525. ctx->SetLastTag(tag);
  1526. goto message_done;
  1527. }
  1528. ptr = UnknownFieldParse(
  1529. tag,
  1530. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1531. ptr, ctx);
  1532. CHK_(ptr != nullptr);
  1533. } // while
  1534. message_done:
  1535. return ptr;
  1536. failure:
  1537. ptr = nullptr;
  1538. goto message_done;
  1539. #undef CHK_
  1540. }
  1541. uint8_t* CSReq::_InternalSerialize(
  1542. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1543. // @@protoc_insertion_point(serialize_to_array_start:remote.CSReq)
  1544. uint32_t cached_has_bits = 0;
  1545. (void) cached_has_bits;
  1546. // int32 peer = 1;
  1547. if (this->_internal_peer() != 0) {
  1548. target = stream->EnsureSpace(target);
  1549. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  1550. }
  1551. // int32 index = 2;
  1552. if (this->_internal_index() != 0) {
  1553. target = stream->EnsureSpace(target);
  1554. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  1555. }
  1556. // int32 egotype = 3;
  1557. if (this->_internal_egotype() != 0) {
  1558. target = stream->EnsureSpace(target);
  1559. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  1560. }
  1561. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1562. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1563. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1564. }
  1565. // @@protoc_insertion_point(serialize_to_array_end:remote.CSReq)
  1566. return target;
  1567. }
  1568. size_t CSReq::ByteSizeLong() const {
  1569. // @@protoc_insertion_point(message_byte_size_start:remote.CSReq)
  1570. size_t total_size = 0;
  1571. uint32_t cached_has_bits = 0;
  1572. // Prevent compiler warnings about cached_has_bits being unused
  1573. (void) cached_has_bits;
  1574. // int32 peer = 1;
  1575. if (this->_internal_peer() != 0) {
  1576. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1577. }
  1578. // int32 index = 2;
  1579. if (this->_internal_index() != 0) {
  1580. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  1581. }
  1582. // int32 egotype = 3;
  1583. if (this->_internal_egotype() != 0) {
  1584. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  1585. }
  1586. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1587. }
  1588. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSReq::_class_data_ = {
  1589. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1590. CSReq::MergeImpl
  1591. };
  1592. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSReq::GetClassData() const { return &_class_data_; }
  1593. void CSReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1594. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1595. static_cast<CSReq *>(to)->MergeFrom(
  1596. static_cast<const CSReq &>(from));
  1597. }
  1598. void CSReq::MergeFrom(const CSReq& from) {
  1599. // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSReq)
  1600. GOOGLE_DCHECK_NE(&from, this);
  1601. uint32_t cached_has_bits = 0;
  1602. (void) cached_has_bits;
  1603. if (from._internal_peer() != 0) {
  1604. _internal_set_peer(from._internal_peer());
  1605. }
  1606. if (from._internal_index() != 0) {
  1607. _internal_set_index(from._internal_index());
  1608. }
  1609. if (from._internal_egotype() != 0) {
  1610. _internal_set_egotype(from._internal_egotype());
  1611. }
  1612. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1613. }
  1614. void CSReq::CopyFrom(const CSReq& from) {
  1615. // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSReq)
  1616. if (&from == this) return;
  1617. Clear();
  1618. MergeFrom(from);
  1619. }
  1620. bool CSReq::IsInitialized() const {
  1621. return true;
  1622. }
  1623. void CSReq::InternalSwap(CSReq* other) {
  1624. using std::swap;
  1625. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1626. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1627. PROTOBUF_FIELD_OFFSET(CSReq, egotype_)
  1628. + sizeof(CSReq::egotype_)
  1629. - PROTOBUF_FIELD_OFFSET(CSReq, peer_)>(
  1630. reinterpret_cast<char*>(&peer_),
  1631. reinterpret_cast<char*>(&other->peer_));
  1632. }
  1633. ::PROTOBUF_NAMESPACE_ID::Metadata CSReq::GetMetadata() const {
  1634. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1635. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  1636. file_level_metadata_remote_2eproto[3]);
  1637. }
  1638. // ===================================================================
  1639. class SCReq::_Internal {
  1640. public:
  1641. };
  1642. SCReq::SCReq(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1643. bool is_message_owned)
  1644. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1645. SharedCtor();
  1646. if (!is_message_owned) {
  1647. RegisterArenaDtor(arena);
  1648. }
  1649. // @@protoc_insertion_point(arena_constructor:remote.SCReq)
  1650. }
  1651. SCReq::SCReq(const SCReq& from)
  1652. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1653. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1654. ::memcpy(&desc_, &from.desc_,
  1655. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1656. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  1657. // @@protoc_insertion_point(copy_constructor:remote.SCReq)
  1658. }
  1659. inline void SCReq::SharedCtor() {
  1660. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1661. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  1662. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1663. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  1664. }
  1665. SCReq::~SCReq() {
  1666. // @@protoc_insertion_point(destructor:remote.SCReq)
  1667. if (GetArenaForAllocation() != nullptr) return;
  1668. SharedDtor();
  1669. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1670. }
  1671. inline void SCReq::SharedDtor() {
  1672. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1673. }
  1674. void SCReq::ArenaDtor(void* object) {
  1675. SCReq* _this = reinterpret_cast< SCReq* >(object);
  1676. (void)_this;
  1677. }
  1678. void SCReq::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1679. }
  1680. void SCReq::SetCachedSize(int size) const {
  1681. _cached_size_.Set(size);
  1682. }
  1683. void SCReq::Clear() {
  1684. // @@protoc_insertion_point(message_clear_start:remote.SCReq)
  1685. uint32_t cached_has_bits = 0;
  1686. // Prevent compiler warnings about cached_has_bits being unused
  1687. (void) cached_has_bits;
  1688. ::memset(&desc_, 0, static_cast<size_t>(
  1689. reinterpret_cast<char*>(&egotype_) -
  1690. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  1691. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1692. }
  1693. const char* SCReq::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1694. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1695. while (!ctx->Done(&ptr)) {
  1696. uint32_t tag;
  1697. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1698. switch (tag >> 3) {
  1699. // int32 desc = 1;
  1700. case 1:
  1701. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1702. desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1703. CHK_(ptr);
  1704. } else
  1705. goto handle_unusual;
  1706. continue;
  1707. // int32 peer = 2;
  1708. case 2:
  1709. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1710. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1711. CHK_(ptr);
  1712. } else
  1713. goto handle_unusual;
  1714. continue;
  1715. // int32 egotype = 3;
  1716. case 3:
  1717. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1718. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1719. CHK_(ptr);
  1720. } else
  1721. goto handle_unusual;
  1722. continue;
  1723. default:
  1724. goto handle_unusual;
  1725. } // switch
  1726. handle_unusual:
  1727. if ((tag == 0) || ((tag & 7) == 4)) {
  1728. CHK_(ptr);
  1729. ctx->SetLastTag(tag);
  1730. goto message_done;
  1731. }
  1732. ptr = UnknownFieldParse(
  1733. tag,
  1734. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1735. ptr, ctx);
  1736. CHK_(ptr != nullptr);
  1737. } // while
  1738. message_done:
  1739. return ptr;
  1740. failure:
  1741. ptr = nullptr;
  1742. goto message_done;
  1743. #undef CHK_
  1744. }
  1745. uint8_t* SCReq::_InternalSerialize(
  1746. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1747. // @@protoc_insertion_point(serialize_to_array_start:remote.SCReq)
  1748. uint32_t cached_has_bits = 0;
  1749. (void) cached_has_bits;
  1750. // int32 desc = 1;
  1751. if (this->_internal_desc() != 0) {
  1752. target = stream->EnsureSpace(target);
  1753. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target);
  1754. }
  1755. // int32 peer = 2;
  1756. if (this->_internal_peer() != 0) {
  1757. target = stream->EnsureSpace(target);
  1758. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  1759. }
  1760. // int32 egotype = 3;
  1761. if (this->_internal_egotype() != 0) {
  1762. target = stream->EnsureSpace(target);
  1763. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  1764. }
  1765. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1766. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1767. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1768. }
  1769. // @@protoc_insertion_point(serialize_to_array_end:remote.SCReq)
  1770. return target;
  1771. }
  1772. size_t SCReq::ByteSizeLong() const {
  1773. // @@protoc_insertion_point(message_byte_size_start:remote.SCReq)
  1774. size_t total_size = 0;
  1775. uint32_t cached_has_bits = 0;
  1776. // Prevent compiler warnings about cached_has_bits being unused
  1777. (void) cached_has_bits;
  1778. // int32 desc = 1;
  1779. if (this->_internal_desc() != 0) {
  1780. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc());
  1781. }
  1782. // int32 peer = 2;
  1783. if (this->_internal_peer() != 0) {
  1784. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  1785. }
  1786. // int32 egotype = 3;
  1787. if (this->_internal_egotype() != 0) {
  1788. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  1789. }
  1790. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  1791. }
  1792. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCReq::_class_data_ = {
  1793. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  1794. SCReq::MergeImpl
  1795. };
  1796. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCReq::GetClassData() const { return &_class_data_; }
  1797. void SCReq::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  1798. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1799. static_cast<SCReq *>(to)->MergeFrom(
  1800. static_cast<const SCReq &>(from));
  1801. }
  1802. void SCReq::MergeFrom(const SCReq& from) {
  1803. // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCReq)
  1804. GOOGLE_DCHECK_NE(&from, this);
  1805. uint32_t cached_has_bits = 0;
  1806. (void) cached_has_bits;
  1807. if (from._internal_desc() != 0) {
  1808. _internal_set_desc(from._internal_desc());
  1809. }
  1810. if (from._internal_peer() != 0) {
  1811. _internal_set_peer(from._internal_peer());
  1812. }
  1813. if (from._internal_egotype() != 0) {
  1814. _internal_set_egotype(from._internal_egotype());
  1815. }
  1816. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1817. }
  1818. void SCReq::CopyFrom(const SCReq& from) {
  1819. // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCReq)
  1820. if (&from == this) return;
  1821. Clear();
  1822. MergeFrom(from);
  1823. }
  1824. bool SCReq::IsInitialized() const {
  1825. return true;
  1826. }
  1827. void SCReq::InternalSwap(SCReq* other) {
  1828. using std::swap;
  1829. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1830. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1831. PROTOBUF_FIELD_OFFSET(SCReq, egotype_)
  1832. + sizeof(SCReq::egotype_)
  1833. - PROTOBUF_FIELD_OFFSET(SCReq, desc_)>(
  1834. reinterpret_cast<char*>(&desc_),
  1835. reinterpret_cast<char*>(&other->desc_));
  1836. }
  1837. ::PROTOBUF_NAMESPACE_ID::Metadata SCReq::GetMetadata() const {
  1838. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  1839. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  1840. file_level_metadata_remote_2eproto[4]);
  1841. }
  1842. // ===================================================================
  1843. class CSRep::_Internal {
  1844. public:
  1845. };
  1846. CSRep::CSRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1847. bool is_message_owned)
  1848. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  1849. SharedCtor();
  1850. if (!is_message_owned) {
  1851. RegisterArenaDtor(arena);
  1852. }
  1853. // @@protoc_insertion_point(arena_constructor:remote.CSRep)
  1854. }
  1855. CSRep::CSRep(const CSRep& from)
  1856. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1857. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1858. ::memcpy(&desc_, &from.desc_,
  1859. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1860. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  1861. // @@protoc_insertion_point(copy_constructor:remote.CSRep)
  1862. }
  1863. inline void CSRep::SharedCtor() {
  1864. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  1865. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  1866. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  1867. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  1868. }
  1869. CSRep::~CSRep() {
  1870. // @@protoc_insertion_point(destructor:remote.CSRep)
  1871. if (GetArenaForAllocation() != nullptr) return;
  1872. SharedDtor();
  1873. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1874. }
  1875. inline void CSRep::SharedDtor() {
  1876. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  1877. }
  1878. void CSRep::ArenaDtor(void* object) {
  1879. CSRep* _this = reinterpret_cast< CSRep* >(object);
  1880. (void)_this;
  1881. }
  1882. void CSRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1883. }
  1884. void CSRep::SetCachedSize(int size) const {
  1885. _cached_size_.Set(size);
  1886. }
  1887. void CSRep::Clear() {
  1888. // @@protoc_insertion_point(message_clear_start:remote.CSRep)
  1889. uint32_t cached_has_bits = 0;
  1890. // Prevent compiler warnings about cached_has_bits being unused
  1891. (void) cached_has_bits;
  1892. ::memset(&desc_, 0, static_cast<size_t>(
  1893. reinterpret_cast<char*>(&egotype_) -
  1894. reinterpret_cast<char*>(&desc_)) + sizeof(egotype_));
  1895. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1896. }
  1897. const char* CSRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1898. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1899. while (!ctx->Done(&ptr)) {
  1900. uint32_t tag;
  1901. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1902. switch (tag >> 3) {
  1903. // int32 desc = 1;
  1904. case 1:
  1905. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  1906. desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1907. CHK_(ptr);
  1908. } else
  1909. goto handle_unusual;
  1910. continue;
  1911. // int32 peer = 2;
  1912. case 2:
  1913. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  1914. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1915. CHK_(ptr);
  1916. } else
  1917. goto handle_unusual;
  1918. continue;
  1919. // int32 index = 3;
  1920. case 3:
  1921. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  1922. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1923. CHK_(ptr);
  1924. } else
  1925. goto handle_unusual;
  1926. continue;
  1927. // int32 egotype = 4;
  1928. case 4:
  1929. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  1930. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1931. CHK_(ptr);
  1932. } else
  1933. goto handle_unusual;
  1934. continue;
  1935. default:
  1936. goto handle_unusual;
  1937. } // switch
  1938. handle_unusual:
  1939. if ((tag == 0) || ((tag & 7) == 4)) {
  1940. CHK_(ptr);
  1941. ctx->SetLastTag(tag);
  1942. goto message_done;
  1943. }
  1944. ptr = UnknownFieldParse(
  1945. tag,
  1946. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1947. ptr, ctx);
  1948. CHK_(ptr != nullptr);
  1949. } // while
  1950. message_done:
  1951. return ptr;
  1952. failure:
  1953. ptr = nullptr;
  1954. goto message_done;
  1955. #undef CHK_
  1956. }
  1957. uint8_t* CSRep::_InternalSerialize(
  1958. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1959. // @@protoc_insertion_point(serialize_to_array_start:remote.CSRep)
  1960. uint32_t cached_has_bits = 0;
  1961. (void) cached_has_bits;
  1962. // int32 desc = 1;
  1963. if (this->_internal_desc() != 0) {
  1964. target = stream->EnsureSpace(target);
  1965. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target);
  1966. }
  1967. // int32 peer = 2;
  1968. if (this->_internal_peer() != 0) {
  1969. target = stream->EnsureSpace(target);
  1970. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_peer(), target);
  1971. }
  1972. // int32 index = 3;
  1973. if (this->_internal_index() != 0) {
  1974. target = stream->EnsureSpace(target);
  1975. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_index(), target);
  1976. }
  1977. // int32 egotype = 4;
  1978. if (this->_internal_egotype() != 0) {
  1979. target = stream->EnsureSpace(target);
  1980. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_egotype(), target);
  1981. }
  1982. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1983. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1984. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1985. }
  1986. // @@protoc_insertion_point(serialize_to_array_end:remote.CSRep)
  1987. return target;
  1988. }
  1989. size_t CSRep::ByteSizeLong() const {
  1990. // @@protoc_insertion_point(message_byte_size_start:remote.CSRep)
  1991. size_t total_size = 0;
  1992. uint32_t cached_has_bits = 0;
  1993. // Prevent compiler warnings about cached_has_bits being unused
  1994. (void) cached_has_bits;
  1995. // int32 desc = 1;
  1996. if (this->_internal_desc() != 0) {
  1997. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc());
  1998. }
  1999. // int32 peer = 2;
  2000. if (this->_internal_peer() != 0) {
  2001. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2002. }
  2003. // int32 index = 3;
  2004. if (this->_internal_index() != 0) {
  2005. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  2006. }
  2007. // int32 egotype = 4;
  2008. if (this->_internal_egotype() != 0) {
  2009. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  2010. }
  2011. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2012. }
  2013. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRep::_class_data_ = {
  2014. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2015. CSRep::MergeImpl
  2016. };
  2017. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRep::GetClassData() const { return &_class_data_; }
  2018. void CSRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2019. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2020. static_cast<CSRep *>(to)->MergeFrom(
  2021. static_cast<const CSRep &>(from));
  2022. }
  2023. void CSRep::MergeFrom(const CSRep& from) {
  2024. // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSRep)
  2025. GOOGLE_DCHECK_NE(&from, this);
  2026. uint32_t cached_has_bits = 0;
  2027. (void) cached_has_bits;
  2028. if (from._internal_desc() != 0) {
  2029. _internal_set_desc(from._internal_desc());
  2030. }
  2031. if (from._internal_peer() != 0) {
  2032. _internal_set_peer(from._internal_peer());
  2033. }
  2034. if (from._internal_index() != 0) {
  2035. _internal_set_index(from._internal_index());
  2036. }
  2037. if (from._internal_egotype() != 0) {
  2038. _internal_set_egotype(from._internal_egotype());
  2039. }
  2040. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2041. }
  2042. void CSRep::CopyFrom(const CSRep& from) {
  2043. // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSRep)
  2044. if (&from == this) return;
  2045. Clear();
  2046. MergeFrom(from);
  2047. }
  2048. bool CSRep::IsInitialized() const {
  2049. return true;
  2050. }
  2051. void CSRep::InternalSwap(CSRep* other) {
  2052. using std::swap;
  2053. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2054. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2055. PROTOBUF_FIELD_OFFSET(CSRep, egotype_)
  2056. + sizeof(CSRep::egotype_)
  2057. - PROTOBUF_FIELD_OFFSET(CSRep, desc_)>(
  2058. reinterpret_cast<char*>(&desc_),
  2059. reinterpret_cast<char*>(&other->desc_));
  2060. }
  2061. ::PROTOBUF_NAMESPACE_ID::Metadata CSRep::GetMetadata() const {
  2062. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2063. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  2064. file_level_metadata_remote_2eproto[5]);
  2065. }
  2066. // ===================================================================
  2067. class SCRep::_Internal {
  2068. public:
  2069. };
  2070. SCRep::SCRep(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2071. bool is_message_owned)
  2072. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2073. SharedCtor();
  2074. if (!is_message_owned) {
  2075. RegisterArenaDtor(arena);
  2076. }
  2077. // @@protoc_insertion_point(arena_constructor:remote.SCRep)
  2078. }
  2079. SCRep::SCRep(const SCRep& from)
  2080. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2081. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2082. ::memcpy(&desc_, &from.desc_,
  2083. static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2084. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2085. // @@protoc_insertion_point(copy_constructor:remote.SCRep)
  2086. }
  2087. inline void SCRep::SharedCtor() {
  2088. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2089. reinterpret_cast<char*>(&desc_) - reinterpret_cast<char*>(this)),
  2090. 0, static_cast<size_t>(reinterpret_cast<char*>(&peer_) -
  2091. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2092. }
  2093. SCRep::~SCRep() {
  2094. // @@protoc_insertion_point(destructor:remote.SCRep)
  2095. if (GetArenaForAllocation() != nullptr) return;
  2096. SharedDtor();
  2097. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2098. }
  2099. inline void SCRep::SharedDtor() {
  2100. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2101. }
  2102. void SCRep::ArenaDtor(void* object) {
  2103. SCRep* _this = reinterpret_cast< SCRep* >(object);
  2104. (void)_this;
  2105. }
  2106. void SCRep::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2107. }
  2108. void SCRep::SetCachedSize(int size) const {
  2109. _cached_size_.Set(size);
  2110. }
  2111. void SCRep::Clear() {
  2112. // @@protoc_insertion_point(message_clear_start:remote.SCRep)
  2113. uint32_t cached_has_bits = 0;
  2114. // Prevent compiler warnings about cached_has_bits being unused
  2115. (void) cached_has_bits;
  2116. ::memset(&desc_, 0, static_cast<size_t>(
  2117. reinterpret_cast<char*>(&peer_) -
  2118. reinterpret_cast<char*>(&desc_)) + sizeof(peer_));
  2119. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2120. }
  2121. const char* SCRep::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2122. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2123. while (!ctx->Done(&ptr)) {
  2124. uint32_t tag;
  2125. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2126. switch (tag >> 3) {
  2127. // int32 desc = 1;
  2128. case 1:
  2129. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2130. desc_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2131. CHK_(ptr);
  2132. } else
  2133. goto handle_unusual;
  2134. continue;
  2135. // int32 index = 2;
  2136. case 2:
  2137. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2138. index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2139. CHK_(ptr);
  2140. } else
  2141. goto handle_unusual;
  2142. continue;
  2143. // int32 egotype = 3;
  2144. case 3:
  2145. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2146. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2147. CHK_(ptr);
  2148. } else
  2149. goto handle_unusual;
  2150. continue;
  2151. // int32 peer = 4;
  2152. case 4:
  2153. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  2154. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2155. CHK_(ptr);
  2156. } else
  2157. goto handle_unusual;
  2158. continue;
  2159. default:
  2160. goto handle_unusual;
  2161. } // switch
  2162. handle_unusual:
  2163. if ((tag == 0) || ((tag & 7) == 4)) {
  2164. CHK_(ptr);
  2165. ctx->SetLastTag(tag);
  2166. goto message_done;
  2167. }
  2168. ptr = UnknownFieldParse(
  2169. tag,
  2170. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2171. ptr, ctx);
  2172. CHK_(ptr != nullptr);
  2173. } // while
  2174. message_done:
  2175. return ptr;
  2176. failure:
  2177. ptr = nullptr;
  2178. goto message_done;
  2179. #undef CHK_
  2180. }
  2181. uint8_t* SCRep::_InternalSerialize(
  2182. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2183. // @@protoc_insertion_point(serialize_to_array_start:remote.SCRep)
  2184. uint32_t cached_has_bits = 0;
  2185. (void) cached_has_bits;
  2186. // int32 desc = 1;
  2187. if (this->_internal_desc() != 0) {
  2188. target = stream->EnsureSpace(target);
  2189. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_desc(), target);
  2190. }
  2191. // int32 index = 2;
  2192. if (this->_internal_index() != 0) {
  2193. target = stream->EnsureSpace(target);
  2194. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_index(), target);
  2195. }
  2196. // int32 egotype = 3;
  2197. if (this->_internal_egotype() != 0) {
  2198. target = stream->EnsureSpace(target);
  2199. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_egotype(), target);
  2200. }
  2201. // int32 peer = 4;
  2202. if (this->_internal_peer() != 0) {
  2203. target = stream->EnsureSpace(target);
  2204. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_peer(), target);
  2205. }
  2206. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2207. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2208. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2209. }
  2210. // @@protoc_insertion_point(serialize_to_array_end:remote.SCRep)
  2211. return target;
  2212. }
  2213. size_t SCRep::ByteSizeLong() const {
  2214. // @@protoc_insertion_point(message_byte_size_start:remote.SCRep)
  2215. size_t total_size = 0;
  2216. uint32_t cached_has_bits = 0;
  2217. // Prevent compiler warnings about cached_has_bits being unused
  2218. (void) cached_has_bits;
  2219. // int32 desc = 1;
  2220. if (this->_internal_desc() != 0) {
  2221. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_desc());
  2222. }
  2223. // int32 index = 2;
  2224. if (this->_internal_index() != 0) {
  2225. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_index());
  2226. }
  2227. // int32 egotype = 3;
  2228. if (this->_internal_egotype() != 0) {
  2229. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  2230. }
  2231. // int32 peer = 4;
  2232. if (this->_internal_peer() != 0) {
  2233. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  2234. }
  2235. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2236. }
  2237. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRep::_class_data_ = {
  2238. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2239. SCRep::MergeImpl
  2240. };
  2241. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRep::GetClassData() const { return &_class_data_; }
  2242. void SCRep::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2243. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2244. static_cast<SCRep *>(to)->MergeFrom(
  2245. static_cast<const SCRep &>(from));
  2246. }
  2247. void SCRep::MergeFrom(const SCRep& from) {
  2248. // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCRep)
  2249. GOOGLE_DCHECK_NE(&from, this);
  2250. uint32_t cached_has_bits = 0;
  2251. (void) cached_has_bits;
  2252. if (from._internal_desc() != 0) {
  2253. _internal_set_desc(from._internal_desc());
  2254. }
  2255. if (from._internal_index() != 0) {
  2256. _internal_set_index(from._internal_index());
  2257. }
  2258. if (from._internal_egotype() != 0) {
  2259. _internal_set_egotype(from._internal_egotype());
  2260. }
  2261. if (from._internal_peer() != 0) {
  2262. _internal_set_peer(from._internal_peer());
  2263. }
  2264. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2265. }
  2266. void SCRep::CopyFrom(const SCRep& from) {
  2267. // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCRep)
  2268. if (&from == this) return;
  2269. Clear();
  2270. MergeFrom(from);
  2271. }
  2272. bool SCRep::IsInitialized() const {
  2273. return true;
  2274. }
  2275. void SCRep::InternalSwap(SCRep* other) {
  2276. using std::swap;
  2277. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2278. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2279. PROTOBUF_FIELD_OFFSET(SCRep, peer_)
  2280. + sizeof(SCRep::peer_)
  2281. - PROTOBUF_FIELD_OFFSET(SCRep, desc_)>(
  2282. reinterpret_cast<char*>(&desc_),
  2283. reinterpret_cast<char*>(&other->desc_));
  2284. }
  2285. ::PROTOBUF_NAMESPACE_ID::Metadata SCRep::GetMetadata() const {
  2286. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2287. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  2288. file_level_metadata_remote_2eproto[6]);
  2289. }
  2290. // ===================================================================
  2291. class CSSigin::_Internal {
  2292. public:
  2293. };
  2294. CSSigin::CSSigin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2295. bool is_message_owned)
  2296. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2297. SharedCtor();
  2298. if (!is_message_owned) {
  2299. RegisterArenaDtor(arena);
  2300. }
  2301. // @@protoc_insertion_point(arena_constructor:remote.CSSigin)
  2302. }
  2303. CSSigin::CSSigin(const CSSigin& from)
  2304. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2305. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2306. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2307. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2308. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2309. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2310. if (!from._internal_account().empty()) {
  2311. account_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_account(),
  2312. GetArenaForAllocation());
  2313. }
  2314. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2315. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2316. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2317. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2318. if (!from._internal_name().empty()) {
  2319. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2320. GetArenaForAllocation());
  2321. }
  2322. pass_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2323. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2324. pass_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2325. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2326. if (!from._internal_pass().empty()) {
  2327. pass_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pass(),
  2328. GetArenaForAllocation());
  2329. }
  2330. type_ = from.type_;
  2331. // @@protoc_insertion_point(copy_constructor:remote.CSSigin)
  2332. }
  2333. inline void CSSigin::SharedCtor() {
  2334. account_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2335. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2336. account_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2337. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2338. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2339. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2340. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2341. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2342. pass_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2343. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2344. pass_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2345. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2346. type_ = 0;
  2347. }
  2348. CSSigin::~CSSigin() {
  2349. // @@protoc_insertion_point(destructor:remote.CSSigin)
  2350. if (GetArenaForAllocation() != nullptr) return;
  2351. SharedDtor();
  2352. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2353. }
  2354. inline void CSSigin::SharedDtor() {
  2355. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2356. account_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2357. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2358. pass_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2359. }
  2360. void CSSigin::ArenaDtor(void* object) {
  2361. CSSigin* _this = reinterpret_cast< CSSigin* >(object);
  2362. (void)_this;
  2363. }
  2364. void CSSigin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2365. }
  2366. void CSSigin::SetCachedSize(int size) const {
  2367. _cached_size_.Set(size);
  2368. }
  2369. void CSSigin::Clear() {
  2370. // @@protoc_insertion_point(message_clear_start:remote.CSSigin)
  2371. uint32_t cached_has_bits = 0;
  2372. // Prevent compiler warnings about cached_has_bits being unused
  2373. (void) cached_has_bits;
  2374. account_.ClearToEmpty();
  2375. name_.ClearToEmpty();
  2376. pass_.ClearToEmpty();
  2377. type_ = 0;
  2378. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2379. }
  2380. const char* CSSigin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2381. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2382. while (!ctx->Done(&ptr)) {
  2383. uint32_t tag;
  2384. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2385. switch (tag >> 3) {
  2386. // string account = 1;
  2387. case 1:
  2388. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  2389. auto str = _internal_mutable_account();
  2390. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2391. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSSigin.account"));
  2392. CHK_(ptr);
  2393. } else
  2394. goto handle_unusual;
  2395. continue;
  2396. // int32 type = 2;
  2397. case 2:
  2398. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2399. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2400. CHK_(ptr);
  2401. } else
  2402. goto handle_unusual;
  2403. continue;
  2404. // string name = 3;
  2405. case 3:
  2406. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  2407. auto str = _internal_mutable_name();
  2408. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2409. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSSigin.name"));
  2410. CHK_(ptr);
  2411. } else
  2412. goto handle_unusual;
  2413. continue;
  2414. // string pass = 4;
  2415. case 4:
  2416. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
  2417. auto str = _internal_mutable_pass();
  2418. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2419. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.CSSigin.pass"));
  2420. CHK_(ptr);
  2421. } else
  2422. goto handle_unusual;
  2423. continue;
  2424. default:
  2425. goto handle_unusual;
  2426. } // switch
  2427. handle_unusual:
  2428. if ((tag == 0) || ((tag & 7) == 4)) {
  2429. CHK_(ptr);
  2430. ctx->SetLastTag(tag);
  2431. goto message_done;
  2432. }
  2433. ptr = UnknownFieldParse(
  2434. tag,
  2435. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2436. ptr, ctx);
  2437. CHK_(ptr != nullptr);
  2438. } // while
  2439. message_done:
  2440. return ptr;
  2441. failure:
  2442. ptr = nullptr;
  2443. goto message_done;
  2444. #undef CHK_
  2445. }
  2446. uint8_t* CSSigin::_InternalSerialize(
  2447. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2448. // @@protoc_insertion_point(serialize_to_array_start:remote.CSSigin)
  2449. uint32_t cached_has_bits = 0;
  2450. (void) cached_has_bits;
  2451. // string account = 1;
  2452. if (!this->_internal_account().empty()) {
  2453. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2454. this->_internal_account().data(), static_cast<int>(this->_internal_account().length()),
  2455. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2456. "remote.CSSigin.account");
  2457. target = stream->WriteStringMaybeAliased(
  2458. 1, this->_internal_account(), target);
  2459. }
  2460. // int32 type = 2;
  2461. if (this->_internal_type() != 0) {
  2462. target = stream->EnsureSpace(target);
  2463. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_type(), target);
  2464. }
  2465. // string name = 3;
  2466. if (!this->_internal_name().empty()) {
  2467. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2468. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2469. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2470. "remote.CSSigin.name");
  2471. target = stream->WriteStringMaybeAliased(
  2472. 3, this->_internal_name(), target);
  2473. }
  2474. // string pass = 4;
  2475. if (!this->_internal_pass().empty()) {
  2476. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2477. this->_internal_pass().data(), static_cast<int>(this->_internal_pass().length()),
  2478. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2479. "remote.CSSigin.pass");
  2480. target = stream->WriteStringMaybeAliased(
  2481. 4, this->_internal_pass(), target);
  2482. }
  2483. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2484. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2485. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2486. }
  2487. // @@protoc_insertion_point(serialize_to_array_end:remote.CSSigin)
  2488. return target;
  2489. }
  2490. size_t CSSigin::ByteSizeLong() const {
  2491. // @@protoc_insertion_point(message_byte_size_start:remote.CSSigin)
  2492. size_t total_size = 0;
  2493. uint32_t cached_has_bits = 0;
  2494. // Prevent compiler warnings about cached_has_bits being unused
  2495. (void) cached_has_bits;
  2496. // string account = 1;
  2497. if (!this->_internal_account().empty()) {
  2498. total_size += 1 +
  2499. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2500. this->_internal_account());
  2501. }
  2502. // string name = 3;
  2503. if (!this->_internal_name().empty()) {
  2504. total_size += 1 +
  2505. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2506. this->_internal_name());
  2507. }
  2508. // string pass = 4;
  2509. if (!this->_internal_pass().empty()) {
  2510. total_size += 1 +
  2511. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2512. this->_internal_pass());
  2513. }
  2514. // int32 type = 2;
  2515. if (this->_internal_type() != 0) {
  2516. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  2517. }
  2518. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2519. }
  2520. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSSigin::_class_data_ = {
  2521. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2522. CSSigin::MergeImpl
  2523. };
  2524. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSSigin::GetClassData() const { return &_class_data_; }
  2525. void CSSigin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2526. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2527. static_cast<CSSigin *>(to)->MergeFrom(
  2528. static_cast<const CSSigin &>(from));
  2529. }
  2530. void CSSigin::MergeFrom(const CSSigin& from) {
  2531. // @@protoc_insertion_point(class_specific_merge_from_start:remote.CSSigin)
  2532. GOOGLE_DCHECK_NE(&from, this);
  2533. uint32_t cached_has_bits = 0;
  2534. (void) cached_has_bits;
  2535. if (!from._internal_account().empty()) {
  2536. _internal_set_account(from._internal_account());
  2537. }
  2538. if (!from._internal_name().empty()) {
  2539. _internal_set_name(from._internal_name());
  2540. }
  2541. if (!from._internal_pass().empty()) {
  2542. _internal_set_pass(from._internal_pass());
  2543. }
  2544. if (from._internal_type() != 0) {
  2545. _internal_set_type(from._internal_type());
  2546. }
  2547. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2548. }
  2549. void CSSigin::CopyFrom(const CSSigin& from) {
  2550. // @@protoc_insertion_point(class_specific_copy_from_start:remote.CSSigin)
  2551. if (&from == this) return;
  2552. Clear();
  2553. MergeFrom(from);
  2554. }
  2555. bool CSSigin::IsInitialized() const {
  2556. return true;
  2557. }
  2558. void CSSigin::InternalSwap(CSSigin* other) {
  2559. using std::swap;
  2560. auto* lhs_arena = GetArenaForAllocation();
  2561. auto* rhs_arena = other->GetArenaForAllocation();
  2562. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2563. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2564. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2565. &account_, lhs_arena,
  2566. &other->account_, rhs_arena
  2567. );
  2568. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2569. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2570. &name_, lhs_arena,
  2571. &other->name_, rhs_arena
  2572. );
  2573. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2574. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2575. &pass_, lhs_arena,
  2576. &other->pass_, rhs_arena
  2577. );
  2578. swap(type_, other->type_);
  2579. }
  2580. ::PROTOBUF_NAMESPACE_ID::Metadata CSSigin::GetMetadata() const {
  2581. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2582. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  2583. file_level_metadata_remote_2eproto[7]);
  2584. }
  2585. // ===================================================================
  2586. class SCSigin::_Internal {
  2587. public:
  2588. };
  2589. SCSigin::SCSigin(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2590. bool is_message_owned)
  2591. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2592. SharedCtor();
  2593. if (!is_message_owned) {
  2594. RegisterArenaDtor(arena);
  2595. }
  2596. // @@protoc_insertion_point(arena_constructor:remote.SCSigin)
  2597. }
  2598. SCSigin::SCSigin(const SCSigin& from)
  2599. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2600. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2601. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2602. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2603. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2604. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2605. if (!from._internal_name().empty()) {
  2606. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2607. GetArenaForAllocation());
  2608. }
  2609. ::memcpy(&ret_, &from.ret_,
  2610. static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2611. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  2612. // @@protoc_insertion_point(copy_constructor:remote.SCSigin)
  2613. }
  2614. inline void SCSigin::SharedCtor() {
  2615. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2616. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2617. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2618. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2619. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2620. reinterpret_cast<char*>(&ret_) - reinterpret_cast<char*>(this)),
  2621. 0, static_cast<size_t>(reinterpret_cast<char*>(&uid_) -
  2622. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  2623. }
  2624. SCSigin::~SCSigin() {
  2625. // @@protoc_insertion_point(destructor:remote.SCSigin)
  2626. if (GetArenaForAllocation() != nullptr) return;
  2627. SharedDtor();
  2628. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2629. }
  2630. inline void SCSigin::SharedDtor() {
  2631. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2632. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2633. }
  2634. void SCSigin::ArenaDtor(void* object) {
  2635. SCSigin* _this = reinterpret_cast< SCSigin* >(object);
  2636. (void)_this;
  2637. }
  2638. void SCSigin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2639. }
  2640. void SCSigin::SetCachedSize(int size) const {
  2641. _cached_size_.Set(size);
  2642. }
  2643. void SCSigin::Clear() {
  2644. // @@protoc_insertion_point(message_clear_start:remote.SCSigin)
  2645. uint32_t cached_has_bits = 0;
  2646. // Prevent compiler warnings about cached_has_bits being unused
  2647. (void) cached_has_bits;
  2648. name_.ClearToEmpty();
  2649. ::memset(&ret_, 0, static_cast<size_t>(
  2650. reinterpret_cast<char*>(&uid_) -
  2651. reinterpret_cast<char*>(&ret_)) + sizeof(uid_));
  2652. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2653. }
  2654. const char* SCSigin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2655. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2656. while (!ctx->Done(&ptr)) {
  2657. uint32_t tag;
  2658. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2659. switch (tag >> 3) {
  2660. // bool ret = 1;
  2661. case 1:
  2662. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2663. ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  2664. CHK_(ptr);
  2665. } else
  2666. goto handle_unusual;
  2667. continue;
  2668. // int32 uid = 2;
  2669. case 2:
  2670. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  2671. uid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2672. CHK_(ptr);
  2673. } else
  2674. goto handle_unusual;
  2675. continue;
  2676. // string name = 3;
  2677. case 3:
  2678. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
  2679. auto str = _internal_mutable_name();
  2680. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2681. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.SCSigin.name"));
  2682. CHK_(ptr);
  2683. } else
  2684. goto handle_unusual;
  2685. continue;
  2686. default:
  2687. goto handle_unusual;
  2688. } // switch
  2689. handle_unusual:
  2690. if ((tag == 0) || ((tag & 7) == 4)) {
  2691. CHK_(ptr);
  2692. ctx->SetLastTag(tag);
  2693. goto message_done;
  2694. }
  2695. ptr = UnknownFieldParse(
  2696. tag,
  2697. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2698. ptr, ctx);
  2699. CHK_(ptr != nullptr);
  2700. } // while
  2701. message_done:
  2702. return ptr;
  2703. failure:
  2704. ptr = nullptr;
  2705. goto message_done;
  2706. #undef CHK_
  2707. }
  2708. uint8_t* SCSigin::_InternalSerialize(
  2709. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2710. // @@protoc_insertion_point(serialize_to_array_start:remote.SCSigin)
  2711. uint32_t cached_has_bits = 0;
  2712. (void) cached_has_bits;
  2713. // bool ret = 1;
  2714. if (this->_internal_ret() != 0) {
  2715. target = stream->EnsureSpace(target);
  2716. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ret(), target);
  2717. }
  2718. // int32 uid = 2;
  2719. if (this->_internal_uid() != 0) {
  2720. target = stream->EnsureSpace(target);
  2721. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_uid(), target);
  2722. }
  2723. // string name = 3;
  2724. if (!this->_internal_name().empty()) {
  2725. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2726. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2727. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2728. "remote.SCSigin.name");
  2729. target = stream->WriteStringMaybeAliased(
  2730. 3, this->_internal_name(), target);
  2731. }
  2732. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2733. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2734. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2735. }
  2736. // @@protoc_insertion_point(serialize_to_array_end:remote.SCSigin)
  2737. return target;
  2738. }
  2739. size_t SCSigin::ByteSizeLong() const {
  2740. // @@protoc_insertion_point(message_byte_size_start:remote.SCSigin)
  2741. size_t total_size = 0;
  2742. uint32_t cached_has_bits = 0;
  2743. // Prevent compiler warnings about cached_has_bits being unused
  2744. (void) cached_has_bits;
  2745. // string name = 3;
  2746. if (!this->_internal_name().empty()) {
  2747. total_size += 1 +
  2748. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2749. this->_internal_name());
  2750. }
  2751. // bool ret = 1;
  2752. if (this->_internal_ret() != 0) {
  2753. total_size += 1 + 1;
  2754. }
  2755. // int32 uid = 2;
  2756. if (this->_internal_uid() != 0) {
  2757. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_uid());
  2758. }
  2759. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  2760. }
  2761. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCSigin::_class_data_ = {
  2762. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  2763. SCSigin::MergeImpl
  2764. };
  2765. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCSigin::GetClassData() const { return &_class_data_; }
  2766. void SCSigin::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  2767. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  2768. static_cast<SCSigin *>(to)->MergeFrom(
  2769. static_cast<const SCSigin &>(from));
  2770. }
  2771. void SCSigin::MergeFrom(const SCSigin& from) {
  2772. // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCSigin)
  2773. GOOGLE_DCHECK_NE(&from, this);
  2774. uint32_t cached_has_bits = 0;
  2775. (void) cached_has_bits;
  2776. if (!from._internal_name().empty()) {
  2777. _internal_set_name(from._internal_name());
  2778. }
  2779. if (from._internal_ret() != 0) {
  2780. _internal_set_ret(from._internal_ret());
  2781. }
  2782. if (from._internal_uid() != 0) {
  2783. _internal_set_uid(from._internal_uid());
  2784. }
  2785. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2786. }
  2787. void SCSigin::CopyFrom(const SCSigin& from) {
  2788. // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCSigin)
  2789. if (&from == this) return;
  2790. Clear();
  2791. MergeFrom(from);
  2792. }
  2793. bool SCSigin::IsInitialized() const {
  2794. return true;
  2795. }
  2796. void SCSigin::InternalSwap(SCSigin* other) {
  2797. using std::swap;
  2798. auto* lhs_arena = GetArenaForAllocation();
  2799. auto* rhs_arena = other->GetArenaForAllocation();
  2800. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2801. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  2802. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  2803. &name_, lhs_arena,
  2804. &other->name_, rhs_arena
  2805. );
  2806. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2807. PROTOBUF_FIELD_OFFSET(SCSigin, uid_)
  2808. + sizeof(SCSigin::uid_)
  2809. - PROTOBUF_FIELD_OFFSET(SCSigin, ret_)>(
  2810. reinterpret_cast<char*>(&ret_),
  2811. reinterpret_cast<char*>(&other->ret_));
  2812. }
  2813. ::PROTOBUF_NAMESPACE_ID::Metadata SCSigin::GetMetadata() const {
  2814. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  2815. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  2816. file_level_metadata_remote_2eproto[8]);
  2817. }
  2818. // ===================================================================
  2819. class Robot::_Internal {
  2820. public:
  2821. };
  2822. Robot::Robot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2823. bool is_message_owned)
  2824. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  2825. SharedCtor();
  2826. if (!is_message_owned) {
  2827. RegisterArenaDtor(arena);
  2828. }
  2829. // @@protoc_insertion_point(arena_constructor:remote.Robot)
  2830. }
  2831. Robot::Robot(const Robot& from)
  2832. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2833. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2834. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2835. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2836. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2837. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2838. if (!from._internal_name().empty()) {
  2839. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
  2840. GetArenaForAllocation());
  2841. }
  2842. ::memcpy(&rid_, &from.rid_,
  2843. static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  2844. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2845. // @@protoc_insertion_point(copy_constructor:remote.Robot)
  2846. }
  2847. inline void Robot::SharedCtor() {
  2848. name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2849. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2850. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  2851. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2852. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  2853. reinterpret_cast<char*>(&rid_) - reinterpret_cast<char*>(this)),
  2854. 0, static_cast<size_t>(reinterpret_cast<char*>(&state_) -
  2855. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2856. }
  2857. Robot::~Robot() {
  2858. // @@protoc_insertion_point(destructor:remote.Robot)
  2859. if (GetArenaForAllocation() != nullptr) return;
  2860. SharedDtor();
  2861. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2862. }
  2863. inline void Robot::SharedDtor() {
  2864. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  2865. name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  2866. }
  2867. void Robot::ArenaDtor(void* object) {
  2868. Robot* _this = reinterpret_cast< Robot* >(object);
  2869. (void)_this;
  2870. }
  2871. void Robot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  2872. }
  2873. void Robot::SetCachedSize(int size) const {
  2874. _cached_size_.Set(size);
  2875. }
  2876. void Robot::Clear() {
  2877. // @@protoc_insertion_point(message_clear_start:remote.Robot)
  2878. uint32_t cached_has_bits = 0;
  2879. // Prevent compiler warnings about cached_has_bits being unused
  2880. (void) cached_has_bits;
  2881. name_.ClearToEmpty();
  2882. ::memset(&rid_, 0, static_cast<size_t>(
  2883. reinterpret_cast<char*>(&state_) -
  2884. reinterpret_cast<char*>(&rid_)) + sizeof(state_));
  2885. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2886. }
  2887. const char* Robot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  2888. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2889. while (!ctx->Done(&ptr)) {
  2890. uint32_t tag;
  2891. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  2892. switch (tag >> 3) {
  2893. // int32 rid = 1;
  2894. case 1:
  2895. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  2896. rid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2897. CHK_(ptr);
  2898. } else
  2899. goto handle_unusual;
  2900. continue;
  2901. // string name = 2;
  2902. case 2:
  2903. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
  2904. auto str = _internal_mutable_name();
  2905. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  2906. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "remote.Robot.name"));
  2907. CHK_(ptr);
  2908. } else
  2909. goto handle_unusual;
  2910. continue;
  2911. // int32 type = 3;
  2912. case 3:
  2913. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
  2914. type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2915. CHK_(ptr);
  2916. } else
  2917. goto handle_unusual;
  2918. continue;
  2919. // int32 state = 4;
  2920. case 4:
  2921. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
  2922. state_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2923. CHK_(ptr);
  2924. } else
  2925. goto handle_unusual;
  2926. continue;
  2927. default:
  2928. goto handle_unusual;
  2929. } // switch
  2930. handle_unusual:
  2931. if ((tag == 0) || ((tag & 7) == 4)) {
  2932. CHK_(ptr);
  2933. ctx->SetLastTag(tag);
  2934. goto message_done;
  2935. }
  2936. ptr = UnknownFieldParse(
  2937. tag,
  2938. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2939. ptr, ctx);
  2940. CHK_(ptr != nullptr);
  2941. } // while
  2942. message_done:
  2943. return ptr;
  2944. failure:
  2945. ptr = nullptr;
  2946. goto message_done;
  2947. #undef CHK_
  2948. }
  2949. uint8_t* Robot::_InternalSerialize(
  2950. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2951. // @@protoc_insertion_point(serialize_to_array_start:remote.Robot)
  2952. uint32_t cached_has_bits = 0;
  2953. (void) cached_has_bits;
  2954. // int32 rid = 1;
  2955. if (this->_internal_rid() != 0) {
  2956. target = stream->EnsureSpace(target);
  2957. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_rid(), target);
  2958. }
  2959. // string name = 2;
  2960. if (!this->_internal_name().empty()) {
  2961. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2962. this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
  2963. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  2964. "remote.Robot.name");
  2965. target = stream->WriteStringMaybeAliased(
  2966. 2, this->_internal_name(), target);
  2967. }
  2968. // int32 type = 3;
  2969. if (this->_internal_type() != 0) {
  2970. target = stream->EnsureSpace(target);
  2971. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_type(), target);
  2972. }
  2973. // int32 state = 4;
  2974. if (this->_internal_state() != 0) {
  2975. target = stream->EnsureSpace(target);
  2976. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_state(), target);
  2977. }
  2978. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2979. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  2980. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2981. }
  2982. // @@protoc_insertion_point(serialize_to_array_end:remote.Robot)
  2983. return target;
  2984. }
  2985. size_t Robot::ByteSizeLong() const {
  2986. // @@protoc_insertion_point(message_byte_size_start:remote.Robot)
  2987. size_t total_size = 0;
  2988. uint32_t cached_has_bits = 0;
  2989. // Prevent compiler warnings about cached_has_bits being unused
  2990. (void) cached_has_bits;
  2991. // string name = 2;
  2992. if (!this->_internal_name().empty()) {
  2993. total_size += 1 +
  2994. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2995. this->_internal_name());
  2996. }
  2997. // int32 rid = 1;
  2998. if (this->_internal_rid() != 0) {
  2999. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_rid());
  3000. }
  3001. // int32 type = 3;
  3002. if (this->_internal_type() != 0) {
  3003. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_type());
  3004. }
  3005. // int32 state = 4;
  3006. if (this->_internal_state() != 0) {
  3007. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_state());
  3008. }
  3009. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3010. }
  3011. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Robot::_class_data_ = {
  3012. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3013. Robot::MergeImpl
  3014. };
  3015. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Robot::GetClassData() const { return &_class_data_; }
  3016. void Robot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3017. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3018. static_cast<Robot *>(to)->MergeFrom(
  3019. static_cast<const Robot &>(from));
  3020. }
  3021. void Robot::MergeFrom(const Robot& from) {
  3022. // @@protoc_insertion_point(class_specific_merge_from_start:remote.Robot)
  3023. GOOGLE_DCHECK_NE(&from, this);
  3024. uint32_t cached_has_bits = 0;
  3025. (void) cached_has_bits;
  3026. if (!from._internal_name().empty()) {
  3027. _internal_set_name(from._internal_name());
  3028. }
  3029. if (from._internal_rid() != 0) {
  3030. _internal_set_rid(from._internal_rid());
  3031. }
  3032. if (from._internal_type() != 0) {
  3033. _internal_set_type(from._internal_type());
  3034. }
  3035. if (from._internal_state() != 0) {
  3036. _internal_set_state(from._internal_state());
  3037. }
  3038. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3039. }
  3040. void Robot::CopyFrom(const Robot& from) {
  3041. // @@protoc_insertion_point(class_specific_copy_from_start:remote.Robot)
  3042. if (&from == this) return;
  3043. Clear();
  3044. MergeFrom(from);
  3045. }
  3046. bool Robot::IsInitialized() const {
  3047. return true;
  3048. }
  3049. void Robot::InternalSwap(Robot* other) {
  3050. using std::swap;
  3051. auto* lhs_arena = GetArenaForAllocation();
  3052. auto* rhs_arena = other->GetArenaForAllocation();
  3053. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3054. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
  3055. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  3056. &name_, lhs_arena,
  3057. &other->name_, rhs_arena
  3058. );
  3059. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3060. PROTOBUF_FIELD_OFFSET(Robot, state_)
  3061. + sizeof(Robot::state_)
  3062. - PROTOBUF_FIELD_OFFSET(Robot, rid_)>(
  3063. reinterpret_cast<char*>(&rid_),
  3064. reinterpret_cast<char*>(&other->rid_));
  3065. }
  3066. ::PROTOBUF_NAMESPACE_ID::Metadata Robot::GetMetadata() const {
  3067. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3068. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  3069. file_level_metadata_remote_2eproto[9]);
  3070. }
  3071. // ===================================================================
  3072. class SCAddRobot::_Internal {
  3073. public:
  3074. static const ::remote::Robot& robot(const SCAddRobot* msg);
  3075. };
  3076. const ::remote::Robot&
  3077. SCAddRobot::_Internal::robot(const SCAddRobot* msg) {
  3078. return *msg->robot_;
  3079. }
  3080. SCAddRobot::SCAddRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3081. bool is_message_owned)
  3082. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3083. SharedCtor();
  3084. if (!is_message_owned) {
  3085. RegisterArenaDtor(arena);
  3086. }
  3087. // @@protoc_insertion_point(arena_constructor:remote.SCAddRobot)
  3088. }
  3089. SCAddRobot::SCAddRobot(const SCAddRobot& from)
  3090. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3091. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3092. if (from._internal_has_robot()) {
  3093. robot_ = new ::remote::Robot(*from.robot_);
  3094. } else {
  3095. robot_ = nullptr;
  3096. }
  3097. // @@protoc_insertion_point(copy_constructor:remote.SCAddRobot)
  3098. }
  3099. inline void SCAddRobot::SharedCtor() {
  3100. robot_ = nullptr;
  3101. }
  3102. SCAddRobot::~SCAddRobot() {
  3103. // @@protoc_insertion_point(destructor:remote.SCAddRobot)
  3104. if (GetArenaForAllocation() != nullptr) return;
  3105. SharedDtor();
  3106. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3107. }
  3108. inline void SCAddRobot::SharedDtor() {
  3109. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3110. if (this != internal_default_instance()) delete robot_;
  3111. }
  3112. void SCAddRobot::ArenaDtor(void* object) {
  3113. SCAddRobot* _this = reinterpret_cast< SCAddRobot* >(object);
  3114. (void)_this;
  3115. }
  3116. void SCAddRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3117. }
  3118. void SCAddRobot::SetCachedSize(int size) const {
  3119. _cached_size_.Set(size);
  3120. }
  3121. void SCAddRobot::Clear() {
  3122. // @@protoc_insertion_point(message_clear_start:remote.SCAddRobot)
  3123. uint32_t cached_has_bits = 0;
  3124. // Prevent compiler warnings about cached_has_bits being unused
  3125. (void) cached_has_bits;
  3126. if (GetArenaForAllocation() == nullptr && robot_ != nullptr) {
  3127. delete robot_;
  3128. }
  3129. robot_ = nullptr;
  3130. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3131. }
  3132. const char* SCAddRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3133. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3134. while (!ctx->Done(&ptr)) {
  3135. uint32_t tag;
  3136. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3137. switch (tag >> 3) {
  3138. // .remote.Robot robot = 1;
  3139. case 1:
  3140. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3141. ptr = ctx->ParseMessage(_internal_mutable_robot(), ptr);
  3142. CHK_(ptr);
  3143. } else
  3144. goto handle_unusual;
  3145. continue;
  3146. default:
  3147. goto handle_unusual;
  3148. } // switch
  3149. handle_unusual:
  3150. if ((tag == 0) || ((tag & 7) == 4)) {
  3151. CHK_(ptr);
  3152. ctx->SetLastTag(tag);
  3153. goto message_done;
  3154. }
  3155. ptr = UnknownFieldParse(
  3156. tag,
  3157. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3158. ptr, ctx);
  3159. CHK_(ptr != nullptr);
  3160. } // while
  3161. message_done:
  3162. return ptr;
  3163. failure:
  3164. ptr = nullptr;
  3165. goto message_done;
  3166. #undef CHK_
  3167. }
  3168. uint8_t* SCAddRobot::_InternalSerialize(
  3169. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3170. // @@protoc_insertion_point(serialize_to_array_start:remote.SCAddRobot)
  3171. uint32_t cached_has_bits = 0;
  3172. (void) cached_has_bits;
  3173. // .remote.Robot robot = 1;
  3174. if (this->_internal_has_robot()) {
  3175. target = stream->EnsureSpace(target);
  3176. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3177. InternalWriteMessage(
  3178. 1, _Internal::robot(this), target, stream);
  3179. }
  3180. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3181. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3182. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3183. }
  3184. // @@protoc_insertion_point(serialize_to_array_end:remote.SCAddRobot)
  3185. return target;
  3186. }
  3187. size_t SCAddRobot::ByteSizeLong() const {
  3188. // @@protoc_insertion_point(message_byte_size_start:remote.SCAddRobot)
  3189. size_t total_size = 0;
  3190. uint32_t cached_has_bits = 0;
  3191. // Prevent compiler warnings about cached_has_bits being unused
  3192. (void) cached_has_bits;
  3193. // .remote.Robot robot = 1;
  3194. if (this->_internal_has_robot()) {
  3195. total_size += 1 +
  3196. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3197. *robot_);
  3198. }
  3199. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3200. }
  3201. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCAddRobot::_class_data_ = {
  3202. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3203. SCAddRobot::MergeImpl
  3204. };
  3205. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCAddRobot::GetClassData() const { return &_class_data_; }
  3206. void SCAddRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3207. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3208. static_cast<SCAddRobot *>(to)->MergeFrom(
  3209. static_cast<const SCAddRobot &>(from));
  3210. }
  3211. void SCAddRobot::MergeFrom(const SCAddRobot& from) {
  3212. // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCAddRobot)
  3213. GOOGLE_DCHECK_NE(&from, this);
  3214. uint32_t cached_has_bits = 0;
  3215. (void) cached_has_bits;
  3216. if (from._internal_has_robot()) {
  3217. _internal_mutable_robot()->::remote::Robot::MergeFrom(from._internal_robot());
  3218. }
  3219. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3220. }
  3221. void SCAddRobot::CopyFrom(const SCAddRobot& from) {
  3222. // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCAddRobot)
  3223. if (&from == this) return;
  3224. Clear();
  3225. MergeFrom(from);
  3226. }
  3227. bool SCAddRobot::IsInitialized() const {
  3228. return true;
  3229. }
  3230. void SCAddRobot::InternalSwap(SCAddRobot* other) {
  3231. using std::swap;
  3232. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3233. swap(robot_, other->robot_);
  3234. }
  3235. ::PROTOBUF_NAMESPACE_ID::Metadata SCAddRobot::GetMetadata() const {
  3236. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3237. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  3238. file_level_metadata_remote_2eproto[10]);
  3239. }
  3240. // ===================================================================
  3241. class SCDelRobot::_Internal {
  3242. public:
  3243. };
  3244. SCDelRobot::SCDelRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3245. bool is_message_owned)
  3246. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3247. SharedCtor();
  3248. if (!is_message_owned) {
  3249. RegisterArenaDtor(arena);
  3250. }
  3251. // @@protoc_insertion_point(arena_constructor:remote.SCDelRobot)
  3252. }
  3253. SCDelRobot::SCDelRobot(const SCDelRobot& from)
  3254. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3255. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3256. ::memcpy(&peer_, &from.peer_,
  3257. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3258. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3259. // @@protoc_insertion_point(copy_constructor:remote.SCDelRobot)
  3260. }
  3261. inline void SCDelRobot::SharedCtor() {
  3262. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3263. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  3264. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3265. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3266. }
  3267. SCDelRobot::~SCDelRobot() {
  3268. // @@protoc_insertion_point(destructor:remote.SCDelRobot)
  3269. if (GetArenaForAllocation() != nullptr) return;
  3270. SharedDtor();
  3271. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3272. }
  3273. inline void SCDelRobot::SharedDtor() {
  3274. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3275. }
  3276. void SCDelRobot::ArenaDtor(void* object) {
  3277. SCDelRobot* _this = reinterpret_cast< SCDelRobot* >(object);
  3278. (void)_this;
  3279. }
  3280. void SCDelRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3281. }
  3282. void SCDelRobot::SetCachedSize(int size) const {
  3283. _cached_size_.Set(size);
  3284. }
  3285. void SCDelRobot::Clear() {
  3286. // @@protoc_insertion_point(message_clear_start:remote.SCDelRobot)
  3287. uint32_t cached_has_bits = 0;
  3288. // Prevent compiler warnings about cached_has_bits being unused
  3289. (void) cached_has_bits;
  3290. ::memset(&peer_, 0, static_cast<size_t>(
  3291. reinterpret_cast<char*>(&egotype_) -
  3292. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3293. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3294. }
  3295. const char* SCDelRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3296. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3297. while (!ctx->Done(&ptr)) {
  3298. uint32_t tag;
  3299. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3300. switch (tag >> 3) {
  3301. // int32 peer = 1;
  3302. case 1:
  3303. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3304. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3305. CHK_(ptr);
  3306. } else
  3307. goto handle_unusual;
  3308. continue;
  3309. // int32 egotype = 2;
  3310. case 2:
  3311. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3312. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3313. CHK_(ptr);
  3314. } else
  3315. goto handle_unusual;
  3316. continue;
  3317. default:
  3318. goto handle_unusual;
  3319. } // switch
  3320. handle_unusual:
  3321. if ((tag == 0) || ((tag & 7) == 4)) {
  3322. CHK_(ptr);
  3323. ctx->SetLastTag(tag);
  3324. goto message_done;
  3325. }
  3326. ptr = UnknownFieldParse(
  3327. tag,
  3328. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3329. ptr, ctx);
  3330. CHK_(ptr != nullptr);
  3331. } // while
  3332. message_done:
  3333. return ptr;
  3334. failure:
  3335. ptr = nullptr;
  3336. goto message_done;
  3337. #undef CHK_
  3338. }
  3339. uint8_t* SCDelRobot::_InternalSerialize(
  3340. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3341. // @@protoc_insertion_point(serialize_to_array_start:remote.SCDelRobot)
  3342. uint32_t cached_has_bits = 0;
  3343. (void) cached_has_bits;
  3344. // int32 peer = 1;
  3345. if (this->_internal_peer() != 0) {
  3346. target = stream->EnsureSpace(target);
  3347. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  3348. }
  3349. // int32 egotype = 2;
  3350. if (this->_internal_egotype() != 0) {
  3351. target = stream->EnsureSpace(target);
  3352. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  3353. }
  3354. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3355. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3356. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3357. }
  3358. // @@protoc_insertion_point(serialize_to_array_end:remote.SCDelRobot)
  3359. return target;
  3360. }
  3361. size_t SCDelRobot::ByteSizeLong() const {
  3362. // @@protoc_insertion_point(message_byte_size_start:remote.SCDelRobot)
  3363. size_t total_size = 0;
  3364. uint32_t cached_has_bits = 0;
  3365. // Prevent compiler warnings about cached_has_bits being unused
  3366. (void) cached_has_bits;
  3367. // int32 peer = 1;
  3368. if (this->_internal_peer() != 0) {
  3369. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3370. }
  3371. // int32 egotype = 2;
  3372. if (this->_internal_egotype() != 0) {
  3373. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3374. }
  3375. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3376. }
  3377. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCDelRobot::_class_data_ = {
  3378. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3379. SCDelRobot::MergeImpl
  3380. };
  3381. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCDelRobot::GetClassData() const { return &_class_data_; }
  3382. void SCDelRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3383. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3384. static_cast<SCDelRobot *>(to)->MergeFrom(
  3385. static_cast<const SCDelRobot &>(from));
  3386. }
  3387. void SCDelRobot::MergeFrom(const SCDelRobot& from) {
  3388. // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCDelRobot)
  3389. GOOGLE_DCHECK_NE(&from, this);
  3390. uint32_t cached_has_bits = 0;
  3391. (void) cached_has_bits;
  3392. if (from._internal_peer() != 0) {
  3393. _internal_set_peer(from._internal_peer());
  3394. }
  3395. if (from._internal_egotype() != 0) {
  3396. _internal_set_egotype(from._internal_egotype());
  3397. }
  3398. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3399. }
  3400. void SCDelRobot::CopyFrom(const SCDelRobot& from) {
  3401. // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCDelRobot)
  3402. if (&from == this) return;
  3403. Clear();
  3404. MergeFrom(from);
  3405. }
  3406. bool SCDelRobot::IsInitialized() const {
  3407. return true;
  3408. }
  3409. void SCDelRobot::InternalSwap(SCDelRobot* other) {
  3410. using std::swap;
  3411. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3412. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3413. PROTOBUF_FIELD_OFFSET(SCDelRobot, egotype_)
  3414. + sizeof(SCDelRobot::egotype_)
  3415. - PROTOBUF_FIELD_OFFSET(SCDelRobot, peer_)>(
  3416. reinterpret_cast<char*>(&peer_),
  3417. reinterpret_cast<char*>(&other->peer_));
  3418. }
  3419. ::PROTOBUF_NAMESPACE_ID::Metadata SCDelRobot::GetMetadata() const {
  3420. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3421. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  3422. file_level_metadata_remote_2eproto[11]);
  3423. }
  3424. // ===================================================================
  3425. class CSRobot::_Internal {
  3426. public:
  3427. };
  3428. CSRobot::CSRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3429. bool is_message_owned)
  3430. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  3431. // @@protoc_insertion_point(arena_constructor:remote.CSRobot)
  3432. }
  3433. CSRobot::CSRobot(const CSRobot& from)
  3434. : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  3435. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3436. // @@protoc_insertion_point(copy_constructor:remote.CSRobot)
  3437. }
  3438. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CSRobot::_class_data_ = {
  3439. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
  3440. ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
  3441. };
  3442. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CSRobot::GetClassData() const { return &_class_data_; }
  3443. ::PROTOBUF_NAMESPACE_ID::Metadata CSRobot::GetMetadata() const {
  3444. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3445. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  3446. file_level_metadata_remote_2eproto[12]);
  3447. }
  3448. // ===================================================================
  3449. class SCRobot::_Internal {
  3450. public:
  3451. };
  3452. SCRobot::SCRobot(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3453. bool is_message_owned)
  3454. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  3455. robot_(arena) {
  3456. SharedCtor();
  3457. if (!is_message_owned) {
  3458. RegisterArenaDtor(arena);
  3459. }
  3460. // @@protoc_insertion_point(arena_constructor:remote.SCRobot)
  3461. }
  3462. SCRobot::SCRobot(const SCRobot& from)
  3463. : ::PROTOBUF_NAMESPACE_ID::Message(),
  3464. robot_(from.robot_) {
  3465. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3466. // @@protoc_insertion_point(copy_constructor:remote.SCRobot)
  3467. }
  3468. inline void SCRobot::SharedCtor() {
  3469. }
  3470. SCRobot::~SCRobot() {
  3471. // @@protoc_insertion_point(destructor:remote.SCRobot)
  3472. if (GetArenaForAllocation() != nullptr) return;
  3473. SharedDtor();
  3474. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3475. }
  3476. inline void SCRobot::SharedDtor() {
  3477. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3478. }
  3479. void SCRobot::ArenaDtor(void* object) {
  3480. SCRobot* _this = reinterpret_cast< SCRobot* >(object);
  3481. (void)_this;
  3482. }
  3483. void SCRobot::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3484. }
  3485. void SCRobot::SetCachedSize(int size) const {
  3486. _cached_size_.Set(size);
  3487. }
  3488. void SCRobot::Clear() {
  3489. // @@protoc_insertion_point(message_clear_start:remote.SCRobot)
  3490. uint32_t cached_has_bits = 0;
  3491. // Prevent compiler warnings about cached_has_bits being unused
  3492. (void) cached_has_bits;
  3493. robot_.Clear();
  3494. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3495. }
  3496. const char* SCRobot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3497. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3498. while (!ctx->Done(&ptr)) {
  3499. uint32_t tag;
  3500. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3501. switch (tag >> 3) {
  3502. // repeated .remote.Robot robot = 1;
  3503. case 1:
  3504. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
  3505. ptr -= 1;
  3506. do {
  3507. ptr += 1;
  3508. ptr = ctx->ParseMessage(_internal_add_robot(), ptr);
  3509. CHK_(ptr);
  3510. if (!ctx->DataAvailable(ptr)) break;
  3511. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  3512. } else
  3513. goto handle_unusual;
  3514. continue;
  3515. default:
  3516. goto handle_unusual;
  3517. } // switch
  3518. handle_unusual:
  3519. if ((tag == 0) || ((tag & 7) == 4)) {
  3520. CHK_(ptr);
  3521. ctx->SetLastTag(tag);
  3522. goto message_done;
  3523. }
  3524. ptr = UnknownFieldParse(
  3525. tag,
  3526. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3527. ptr, ctx);
  3528. CHK_(ptr != nullptr);
  3529. } // while
  3530. message_done:
  3531. return ptr;
  3532. failure:
  3533. ptr = nullptr;
  3534. goto message_done;
  3535. #undef CHK_
  3536. }
  3537. uint8_t* SCRobot::_InternalSerialize(
  3538. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3539. // @@protoc_insertion_point(serialize_to_array_start:remote.SCRobot)
  3540. uint32_t cached_has_bits = 0;
  3541. (void) cached_has_bits;
  3542. // repeated .remote.Robot robot = 1;
  3543. for (unsigned int i = 0,
  3544. n = static_cast<unsigned int>(this->_internal_robot_size()); i < n; i++) {
  3545. target = stream->EnsureSpace(target);
  3546. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3547. InternalWriteMessage(1, this->_internal_robot(i), target, stream);
  3548. }
  3549. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3550. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3551. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3552. }
  3553. // @@protoc_insertion_point(serialize_to_array_end:remote.SCRobot)
  3554. return target;
  3555. }
  3556. size_t SCRobot::ByteSizeLong() const {
  3557. // @@protoc_insertion_point(message_byte_size_start:remote.SCRobot)
  3558. size_t total_size = 0;
  3559. uint32_t cached_has_bits = 0;
  3560. // Prevent compiler warnings about cached_has_bits being unused
  3561. (void) cached_has_bits;
  3562. // repeated .remote.Robot robot = 1;
  3563. total_size += 1UL * this->_internal_robot_size();
  3564. for (const auto& msg : this->robot_) {
  3565. total_size +=
  3566. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3567. }
  3568. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3569. }
  3570. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SCRobot::_class_data_ = {
  3571. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3572. SCRobot::MergeImpl
  3573. };
  3574. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SCRobot::GetClassData() const { return &_class_data_; }
  3575. void SCRobot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3576. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3577. static_cast<SCRobot *>(to)->MergeFrom(
  3578. static_cast<const SCRobot &>(from));
  3579. }
  3580. void SCRobot::MergeFrom(const SCRobot& from) {
  3581. // @@protoc_insertion_point(class_specific_merge_from_start:remote.SCRobot)
  3582. GOOGLE_DCHECK_NE(&from, this);
  3583. uint32_t cached_has_bits = 0;
  3584. (void) cached_has_bits;
  3585. robot_.MergeFrom(from.robot_);
  3586. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3587. }
  3588. void SCRobot::CopyFrom(const SCRobot& from) {
  3589. // @@protoc_insertion_point(class_specific_copy_from_start:remote.SCRobot)
  3590. if (&from == this) return;
  3591. Clear();
  3592. MergeFrom(from);
  3593. }
  3594. bool SCRobot::IsInitialized() const {
  3595. return true;
  3596. }
  3597. void SCRobot::InternalSwap(SCRobot* other) {
  3598. using std::swap;
  3599. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3600. robot_.InternalSwap(&other->robot_);
  3601. }
  3602. ::PROTOBUF_NAMESPACE_ID::Metadata SCRobot::GetMetadata() const {
  3603. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3604. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  3605. file_level_metadata_remote_2eproto[13]);
  3606. }
  3607. // ===================================================================
  3608. class Leave::_Internal {
  3609. public:
  3610. };
  3611. Leave::Leave(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3612. bool is_message_owned)
  3613. : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  3614. SharedCtor();
  3615. if (!is_message_owned) {
  3616. RegisterArenaDtor(arena);
  3617. }
  3618. // @@protoc_insertion_point(arena_constructor:remote.Leave)
  3619. }
  3620. Leave::Leave(const Leave& from)
  3621. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3622. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3623. ::memcpy(&peer_, &from.peer_,
  3624. static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3625. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3626. // @@protoc_insertion_point(copy_constructor:remote.Leave)
  3627. }
  3628. inline void Leave::SharedCtor() {
  3629. ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
  3630. reinterpret_cast<char*>(&peer_) - reinterpret_cast<char*>(this)),
  3631. 0, static_cast<size_t>(reinterpret_cast<char*>(&egotype_) -
  3632. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3633. }
  3634. Leave::~Leave() {
  3635. // @@protoc_insertion_point(destructor:remote.Leave)
  3636. if (GetArenaForAllocation() != nullptr) return;
  3637. SharedDtor();
  3638. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3639. }
  3640. inline void Leave::SharedDtor() {
  3641. GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  3642. }
  3643. void Leave::ArenaDtor(void* object) {
  3644. Leave* _this = reinterpret_cast< Leave* >(object);
  3645. (void)_this;
  3646. }
  3647. void Leave::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  3648. }
  3649. void Leave::SetCachedSize(int size) const {
  3650. _cached_size_.Set(size);
  3651. }
  3652. void Leave::Clear() {
  3653. // @@protoc_insertion_point(message_clear_start:remote.Leave)
  3654. uint32_t cached_has_bits = 0;
  3655. // Prevent compiler warnings about cached_has_bits being unused
  3656. (void) cached_has_bits;
  3657. ::memset(&peer_, 0, static_cast<size_t>(
  3658. reinterpret_cast<char*>(&egotype_) -
  3659. reinterpret_cast<char*>(&peer_)) + sizeof(egotype_));
  3660. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3661. }
  3662. const char* Leave::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  3663. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3664. while (!ctx->Done(&ptr)) {
  3665. uint32_t tag;
  3666. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  3667. switch (tag >> 3) {
  3668. // int32 peer = 1;
  3669. case 1:
  3670. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
  3671. peer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3672. CHK_(ptr);
  3673. } else
  3674. goto handle_unusual;
  3675. continue;
  3676. // int32 egotype = 2;
  3677. case 2:
  3678. if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
  3679. egotype_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3680. CHK_(ptr);
  3681. } else
  3682. goto handle_unusual;
  3683. continue;
  3684. default:
  3685. goto handle_unusual;
  3686. } // switch
  3687. handle_unusual:
  3688. if ((tag == 0) || ((tag & 7) == 4)) {
  3689. CHK_(ptr);
  3690. ctx->SetLastTag(tag);
  3691. goto message_done;
  3692. }
  3693. ptr = UnknownFieldParse(
  3694. tag,
  3695. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3696. ptr, ctx);
  3697. CHK_(ptr != nullptr);
  3698. } // while
  3699. message_done:
  3700. return ptr;
  3701. failure:
  3702. ptr = nullptr;
  3703. goto message_done;
  3704. #undef CHK_
  3705. }
  3706. uint8_t* Leave::_InternalSerialize(
  3707. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3708. // @@protoc_insertion_point(serialize_to_array_start:remote.Leave)
  3709. uint32_t cached_has_bits = 0;
  3710. (void) cached_has_bits;
  3711. // int32 peer = 1;
  3712. if (this->_internal_peer() != 0) {
  3713. target = stream->EnsureSpace(target);
  3714. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_peer(), target);
  3715. }
  3716. // int32 egotype = 2;
  3717. if (this->_internal_egotype() != 0) {
  3718. target = stream->EnsureSpace(target);
  3719. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_egotype(), target);
  3720. }
  3721. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3722. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  3723. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3724. }
  3725. // @@protoc_insertion_point(serialize_to_array_end:remote.Leave)
  3726. return target;
  3727. }
  3728. size_t Leave::ByteSizeLong() const {
  3729. // @@protoc_insertion_point(message_byte_size_start:remote.Leave)
  3730. size_t total_size = 0;
  3731. uint32_t cached_has_bits = 0;
  3732. // Prevent compiler warnings about cached_has_bits being unused
  3733. (void) cached_has_bits;
  3734. // int32 peer = 1;
  3735. if (this->_internal_peer() != 0) {
  3736. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_peer());
  3737. }
  3738. // int32 egotype = 2;
  3739. if (this->_internal_egotype() != 0) {
  3740. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_egotype());
  3741. }
  3742. return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
  3743. }
  3744. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Leave::_class_data_ = {
  3745. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
  3746. Leave::MergeImpl
  3747. };
  3748. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Leave::GetClassData() const { return &_class_data_; }
  3749. void Leave::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
  3750. const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  3751. static_cast<Leave *>(to)->MergeFrom(
  3752. static_cast<const Leave &>(from));
  3753. }
  3754. void Leave::MergeFrom(const Leave& from) {
  3755. // @@protoc_insertion_point(class_specific_merge_from_start:remote.Leave)
  3756. GOOGLE_DCHECK_NE(&from, this);
  3757. uint32_t cached_has_bits = 0;
  3758. (void) cached_has_bits;
  3759. if (from._internal_peer() != 0) {
  3760. _internal_set_peer(from._internal_peer());
  3761. }
  3762. if (from._internal_egotype() != 0) {
  3763. _internal_set_egotype(from._internal_egotype());
  3764. }
  3765. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3766. }
  3767. void Leave::CopyFrom(const Leave& from) {
  3768. // @@protoc_insertion_point(class_specific_copy_from_start:remote.Leave)
  3769. if (&from == this) return;
  3770. Clear();
  3771. MergeFrom(from);
  3772. }
  3773. bool Leave::IsInitialized() const {
  3774. return true;
  3775. }
  3776. void Leave::InternalSwap(Leave* other) {
  3777. using std::swap;
  3778. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3779. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3780. PROTOBUF_FIELD_OFFSET(Leave, egotype_)
  3781. + sizeof(Leave::egotype_)
  3782. - PROTOBUF_FIELD_OFFSET(Leave, peer_)>(
  3783. reinterpret_cast<char*>(&peer_),
  3784. reinterpret_cast<char*>(&other->peer_));
  3785. }
  3786. ::PROTOBUF_NAMESPACE_ID::Metadata Leave::GetMetadata() const {
  3787. return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
  3788. &descriptor_table_remote_2eproto_getter, &descriptor_table_remote_2eproto_once,
  3789. file_level_metadata_remote_2eproto[14]);
  3790. }
  3791. // @@protoc_insertion_point(namespace_scope)
  3792. } // namespace remote
  3793. PROTOBUF_NAMESPACE_OPEN
  3794. template<> PROTOBUF_NOINLINE ::remote::Offer* Arena::CreateMaybeMessage< ::remote::Offer >(Arena* arena) {
  3795. return Arena::CreateMessageInternal< ::remote::Offer >(arena);
  3796. }
  3797. template<> PROTOBUF_NOINLINE ::remote::Answer* Arena::CreateMaybeMessage< ::remote::Answer >(Arena* arena) {
  3798. return Arena::CreateMessageInternal< ::remote::Answer >(arena);
  3799. }
  3800. template<> PROTOBUF_NOINLINE ::remote::Candidate* Arena::CreateMaybeMessage< ::remote::Candidate >(Arena* arena) {
  3801. return Arena::CreateMessageInternal< ::remote::Candidate >(arena);
  3802. }
  3803. template<> PROTOBUF_NOINLINE ::remote::CSReq* Arena::CreateMaybeMessage< ::remote::CSReq >(Arena* arena) {
  3804. return Arena::CreateMessageInternal< ::remote::CSReq >(arena);
  3805. }
  3806. template<> PROTOBUF_NOINLINE ::remote::SCReq* Arena::CreateMaybeMessage< ::remote::SCReq >(Arena* arena) {
  3807. return Arena::CreateMessageInternal< ::remote::SCReq >(arena);
  3808. }
  3809. template<> PROTOBUF_NOINLINE ::remote::CSRep* Arena::CreateMaybeMessage< ::remote::CSRep >(Arena* arena) {
  3810. return Arena::CreateMessageInternal< ::remote::CSRep >(arena);
  3811. }
  3812. template<> PROTOBUF_NOINLINE ::remote::SCRep* Arena::CreateMaybeMessage< ::remote::SCRep >(Arena* arena) {
  3813. return Arena::CreateMessageInternal< ::remote::SCRep >(arena);
  3814. }
  3815. template<> PROTOBUF_NOINLINE ::remote::CSSigin* Arena::CreateMaybeMessage< ::remote::CSSigin >(Arena* arena) {
  3816. return Arena::CreateMessageInternal< ::remote::CSSigin >(arena);
  3817. }
  3818. template<> PROTOBUF_NOINLINE ::remote::SCSigin* Arena::CreateMaybeMessage< ::remote::SCSigin >(Arena* arena) {
  3819. return Arena::CreateMessageInternal< ::remote::SCSigin >(arena);
  3820. }
  3821. template<> PROTOBUF_NOINLINE ::remote::Robot* Arena::CreateMaybeMessage< ::remote::Robot >(Arena* arena) {
  3822. return Arena::CreateMessageInternal< ::remote::Robot >(arena);
  3823. }
  3824. template<> PROTOBUF_NOINLINE ::remote::SCAddRobot* Arena::CreateMaybeMessage< ::remote::SCAddRobot >(Arena* arena) {
  3825. return Arena::CreateMessageInternal< ::remote::SCAddRobot >(arena);
  3826. }
  3827. template<> PROTOBUF_NOINLINE ::remote::SCDelRobot* Arena::CreateMaybeMessage< ::remote::SCDelRobot >(Arena* arena) {
  3828. return Arena::CreateMessageInternal< ::remote::SCDelRobot >(arena);
  3829. }
  3830. template<> PROTOBUF_NOINLINE ::remote::CSRobot* Arena::CreateMaybeMessage< ::remote::CSRobot >(Arena* arena) {
  3831. return Arena::CreateMessageInternal< ::remote::CSRobot >(arena);
  3832. }
  3833. template<> PROTOBUF_NOINLINE ::remote::SCRobot* Arena::CreateMaybeMessage< ::remote::SCRobot >(Arena* arena) {
  3834. return Arena::CreateMessageInternal< ::remote::SCRobot >(arena);
  3835. }
  3836. template<> PROTOBUF_NOINLINE ::remote::Leave* Arena::CreateMaybeMessage< ::remote::Leave >(Arena* arena) {
  3837. return Arena::CreateMessageInternal< ::remote::Leave >(arena);
  3838. }
  3839. PROTOBUF_NAMESPACE_CLOSE
  3840. // @@protoc_insertion_point(global_scope)
  3841. #include <google/protobuf/port_undef.inc>