remote.pb.cc 152 KB

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