base_pb.js 128 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611
  1. // source: base.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {missingRequire} reports error on implicit type usages.
  6. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  7. * field starts with 'MSG_' and isn't a translatable message.
  8. * @public
  9. */
  10. // GENERATED CODE -- DO NOT EDIT!
  11. /* eslint-disable */
  12. // @ts-nocheck
  13. var jspb = require('google-protobuf');
  14. var goog = jspb;
  15. var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
  16. var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
  17. goog.object.extend(proto, google_protobuf_timestamp_pb);
  18. goog.exportSymbol('proto.base.v1.BaseMapInfo', null, global);
  19. goog.exportSymbol('proto.base.v1.CType', null, global);
  20. goog.exportSymbol('proto.base.v1.ControlInfoList', null, global);
  21. goog.exportSymbol('proto.base.v1.ControlPoint', null, global);
  22. goog.exportSymbol('proto.base.v1.ControlPointInfo', null, global);
  23. goog.exportSymbol('proto.base.v1.ControlPointSimple', null, global);
  24. goog.exportSymbol('proto.base.v1.CourseInfo', null, global);
  25. goog.exportSymbol('proto.base.v1.CriterionType', null, global);
  26. goog.exportSymbol('proto.base.v1.DefaultReply', null, global);
  27. goog.exportSymbol('proto.base.v1.DefaultRequest', null, global);
  28. goog.exportSymbol('proto.base.v1.ErrorCode', null, global);
  29. goog.exportSymbol('proto.base.v1.GameGpsInfo', null, global);
  30. goog.exportSymbol('proto.base.v1.GetSmsSendLeftTimeReply', null, global);
  31. goog.exportSymbol('proto.base.v1.GetSmsSendLeftTimeRequest', null, global);
  32. goog.exportSymbol('proto.base.v1.HeartRate', null, global);
  33. goog.exportSymbol('proto.base.v1.HrBandType', null, global);
  34. goog.exportSymbol('proto.base.v1.IdRequest', null, global);
  35. goog.exportSymbol('proto.base.v1.Image', null, global);
  36. goog.exportSymbol('proto.base.v1.LoginSource', null, global);
  37. goog.exportSymbol('proto.base.v1.MapRoute', null, global);
  38. goog.exportSymbol('proto.base.v1.NetImage', null, global);
  39. goog.exportSymbol('proto.base.v1.Position', null, global);
  40. goog.exportSymbol('proto.base.v1.ProjectContentType', null, global);
  41. goog.exportSymbol('proto.base.v1.Region', null, global);
  42. goog.exportSymbol('proto.base.v1.ShopList', null, global);
  43. goog.exportSymbol('proto.base.v1.ShopType', null, global);
  44. goog.exportSymbol('proto.base.v1.SignInReply', null, global);
  45. goog.exportSymbol('proto.base.v1.SmsType', null, global);
  46. goog.exportSymbol('proto.base.v1.StatusEditRequest', null, global);
  47. goog.exportSymbol('proto.base.v1.StatusType', null, global);
  48. goog.exportSymbol('proto.base.v1.User', null, global);
  49. goog.exportSymbol('proto.base.v1.User.Sex', null, global);
  50. goog.exportSymbol('proto.base.v1.UserType', null, global);
  51. /**
  52. * Generated by JsPbCodeGenerator.
  53. * @param {Array=} opt_data Optional initial data array, typically from a
  54. * server response, or constructed directly in Javascript. The array is used
  55. * in place and becomes part of the constructed object. It is not cloned.
  56. * If no data is provided, the constructed object will be empty, but still
  57. * valid.
  58. * @extends {jspb.Message}
  59. * @constructor
  60. */
  61. proto.base.v1.NetImage = function(opt_data) {
  62. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  63. };
  64. goog.inherits(proto.base.v1.NetImage, jspb.Message);
  65. if (goog.DEBUG && !COMPILED) {
  66. /**
  67. * @public
  68. * @override
  69. */
  70. proto.base.v1.NetImage.displayName = 'proto.base.v1.NetImage';
  71. }
  72. /**
  73. * Generated by JsPbCodeGenerator.
  74. * @param {Array=} opt_data Optional initial data array, typically from a
  75. * server response, or constructed directly in Javascript. The array is used
  76. * in place and becomes part of the constructed object. It is not cloned.
  77. * If no data is provided, the constructed object will be empty, but still
  78. * valid.
  79. * @extends {jspb.Message}
  80. * @constructor
  81. */
  82. proto.base.v1.User = function(opt_data) {
  83. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  84. };
  85. goog.inherits(proto.base.v1.User, jspb.Message);
  86. if (goog.DEBUG && !COMPILED) {
  87. /**
  88. * @public
  89. * @override
  90. */
  91. proto.base.v1.User.displayName = 'proto.base.v1.User';
  92. }
  93. /**
  94. * Generated by JsPbCodeGenerator.
  95. * @param {Array=} opt_data Optional initial data array, typically from a
  96. * server response, or constructed directly in Javascript. The array is used
  97. * in place and becomes part of the constructed object. It is not cloned.
  98. * If no data is provided, the constructed object will be empty, but still
  99. * valid.
  100. * @extends {jspb.Message}
  101. * @constructor
  102. */
  103. proto.base.v1.GameGpsInfo = function(opt_data) {
  104. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  105. };
  106. goog.inherits(proto.base.v1.GameGpsInfo, jspb.Message);
  107. if (goog.DEBUG && !COMPILED) {
  108. /**
  109. * @public
  110. * @override
  111. */
  112. proto.base.v1.GameGpsInfo.displayName = 'proto.base.v1.GameGpsInfo';
  113. }
  114. /**
  115. * Generated by JsPbCodeGenerator.
  116. * @param {Array=} opt_data Optional initial data array, typically from a
  117. * server response, or constructed directly in Javascript. The array is used
  118. * in place and becomes part of the constructed object. It is not cloned.
  119. * If no data is provided, the constructed object will be empty, but still
  120. * valid.
  121. * @extends {jspb.Message}
  122. * @constructor
  123. */
  124. proto.base.v1.HeartRate = function(opt_data) {
  125. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  126. };
  127. goog.inherits(proto.base.v1.HeartRate, jspb.Message);
  128. if (goog.DEBUG && !COMPILED) {
  129. /**
  130. * @public
  131. * @override
  132. */
  133. proto.base.v1.HeartRate.displayName = 'proto.base.v1.HeartRate';
  134. }
  135. /**
  136. * Generated by JsPbCodeGenerator.
  137. * @param {Array=} opt_data Optional initial data array, typically from a
  138. * server response, or constructed directly in Javascript. The array is used
  139. * in place and becomes part of the constructed object. It is not cloned.
  140. * If no data is provided, the constructed object will be empty, but still
  141. * valid.
  142. * @extends {jspb.Message}
  143. * @constructor
  144. */
  145. proto.base.v1.SignInReply = function(opt_data) {
  146. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  147. };
  148. goog.inherits(proto.base.v1.SignInReply, jspb.Message);
  149. if (goog.DEBUG && !COMPILED) {
  150. /**
  151. * @public
  152. * @override
  153. */
  154. proto.base.v1.SignInReply.displayName = 'proto.base.v1.SignInReply';
  155. }
  156. /**
  157. * Generated by JsPbCodeGenerator.
  158. * @param {Array=} opt_data Optional initial data array, typically from a
  159. * server response, or constructed directly in Javascript. The array is used
  160. * in place and becomes part of the constructed object. It is not cloned.
  161. * If no data is provided, the constructed object will be empty, but still
  162. * valid.
  163. * @extends {jspb.Message}
  164. * @constructor
  165. */
  166. proto.base.v1.MapRoute = function(opt_data) {
  167. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  168. };
  169. goog.inherits(proto.base.v1.MapRoute, jspb.Message);
  170. if (goog.DEBUG && !COMPILED) {
  171. /**
  172. * @public
  173. * @override
  174. */
  175. proto.base.v1.MapRoute.displayName = 'proto.base.v1.MapRoute';
  176. }
  177. /**
  178. * Generated by JsPbCodeGenerator.
  179. * @param {Array=} opt_data Optional initial data array, typically from a
  180. * server response, or constructed directly in Javascript. The array is used
  181. * in place and becomes part of the constructed object. It is not cloned.
  182. * If no data is provided, the constructed object will be empty, but still
  183. * valid.
  184. * @extends {jspb.Message}
  185. * @constructor
  186. */
  187. proto.base.v1.BaseMapInfo = function(opt_data) {
  188. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  189. };
  190. goog.inherits(proto.base.v1.BaseMapInfo, jspb.Message);
  191. if (goog.DEBUG && !COMPILED) {
  192. /**
  193. * @public
  194. * @override
  195. */
  196. proto.base.v1.BaseMapInfo.displayName = 'proto.base.v1.BaseMapInfo';
  197. }
  198. /**
  199. * Generated by JsPbCodeGenerator.
  200. * @param {Array=} opt_data Optional initial data array, typically from a
  201. * server response, or constructed directly in Javascript. The array is used
  202. * in place and becomes part of the constructed object. It is not cloned.
  203. * If no data is provided, the constructed object will be empty, but still
  204. * valid.
  205. * @extends {jspb.Message}
  206. * @constructor
  207. */
  208. proto.base.v1.Region = function(opt_data) {
  209. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  210. };
  211. goog.inherits(proto.base.v1.Region, jspb.Message);
  212. if (goog.DEBUG && !COMPILED) {
  213. /**
  214. * @public
  215. * @override
  216. */
  217. proto.base.v1.Region.displayName = 'proto.base.v1.Region';
  218. }
  219. /**
  220. * Generated by JsPbCodeGenerator.
  221. * @param {Array=} opt_data Optional initial data array, typically from a
  222. * server response, or constructed directly in Javascript. The array is used
  223. * in place and becomes part of the constructed object. It is not cloned.
  224. * If no data is provided, the constructed object will be empty, but still
  225. * valid.
  226. * @extends {jspb.Message}
  227. * @constructor
  228. */
  229. proto.base.v1.ShopList = function(opt_data) {
  230. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  231. };
  232. goog.inherits(proto.base.v1.ShopList, jspb.Message);
  233. if (goog.DEBUG && !COMPILED) {
  234. /**
  235. * @public
  236. * @override
  237. */
  238. proto.base.v1.ShopList.displayName = 'proto.base.v1.ShopList';
  239. }
  240. /**
  241. * Generated by JsPbCodeGenerator.
  242. * @param {Array=} opt_data Optional initial data array, typically from a
  243. * server response, or constructed directly in Javascript. The array is used
  244. * in place and becomes part of the constructed object. It is not cloned.
  245. * If no data is provided, the constructed object will be empty, but still
  246. * valid.
  247. * @extends {jspb.Message}
  248. * @constructor
  249. */
  250. proto.base.v1.GetSmsSendLeftTimeRequest = function(opt_data) {
  251. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  252. };
  253. goog.inherits(proto.base.v1.GetSmsSendLeftTimeRequest, jspb.Message);
  254. if (goog.DEBUG && !COMPILED) {
  255. /**
  256. * @public
  257. * @override
  258. */
  259. proto.base.v1.GetSmsSendLeftTimeRequest.displayName = 'proto.base.v1.GetSmsSendLeftTimeRequest';
  260. }
  261. /**
  262. * Generated by JsPbCodeGenerator.
  263. * @param {Array=} opt_data Optional initial data array, typically from a
  264. * server response, or constructed directly in Javascript. The array is used
  265. * in place and becomes part of the constructed object. It is not cloned.
  266. * If no data is provided, the constructed object will be empty, but still
  267. * valid.
  268. * @extends {jspb.Message}
  269. * @constructor
  270. */
  271. proto.base.v1.GetSmsSendLeftTimeReply = function(opt_data) {
  272. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  273. };
  274. goog.inherits(proto.base.v1.GetSmsSendLeftTimeReply, jspb.Message);
  275. if (goog.DEBUG && !COMPILED) {
  276. /**
  277. * @public
  278. * @override
  279. */
  280. proto.base.v1.GetSmsSendLeftTimeReply.displayName = 'proto.base.v1.GetSmsSendLeftTimeReply';
  281. }
  282. /**
  283. * Generated by JsPbCodeGenerator.
  284. * @param {Array=} opt_data Optional initial data array, typically from a
  285. * server response, or constructed directly in Javascript. The array is used
  286. * in place and becomes part of the constructed object. It is not cloned.
  287. * If no data is provided, the constructed object will be empty, but still
  288. * valid.
  289. * @extends {jspb.Message}
  290. * @constructor
  291. */
  292. proto.base.v1.ControlInfoList = function(opt_data) {
  293. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  294. };
  295. goog.inherits(proto.base.v1.ControlInfoList, jspb.Message);
  296. if (goog.DEBUG && !COMPILED) {
  297. /**
  298. * @public
  299. * @override
  300. */
  301. proto.base.v1.ControlInfoList.displayName = 'proto.base.v1.ControlInfoList';
  302. }
  303. /**
  304. * Generated by JsPbCodeGenerator.
  305. * @param {Array=} opt_data Optional initial data array, typically from a
  306. * server response, or constructed directly in Javascript. The array is used
  307. * in place and becomes part of the constructed object. It is not cloned.
  308. * If no data is provided, the constructed object will be empty, but still
  309. * valid.
  310. * @extends {jspb.Message}
  311. * @constructor
  312. */
  313. proto.base.v1.DefaultReply = function(opt_data) {
  314. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  315. };
  316. goog.inherits(proto.base.v1.DefaultReply, jspb.Message);
  317. if (goog.DEBUG && !COMPILED) {
  318. /**
  319. * @public
  320. * @override
  321. */
  322. proto.base.v1.DefaultReply.displayName = 'proto.base.v1.DefaultReply';
  323. }
  324. /**
  325. * Generated by JsPbCodeGenerator.
  326. * @param {Array=} opt_data Optional initial data array, typically from a
  327. * server response, or constructed directly in Javascript. The array is used
  328. * in place and becomes part of the constructed object. It is not cloned.
  329. * If no data is provided, the constructed object will be empty, but still
  330. * valid.
  331. * @extends {jspb.Message}
  332. * @constructor
  333. */
  334. proto.base.v1.IdRequest = function(opt_data) {
  335. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  336. };
  337. goog.inherits(proto.base.v1.IdRequest, jspb.Message);
  338. if (goog.DEBUG && !COMPILED) {
  339. /**
  340. * @public
  341. * @override
  342. */
  343. proto.base.v1.IdRequest.displayName = 'proto.base.v1.IdRequest';
  344. }
  345. /**
  346. * Generated by JsPbCodeGenerator.
  347. * @param {Array=} opt_data Optional initial data array, typically from a
  348. * server response, or constructed directly in Javascript. The array is used
  349. * in place and becomes part of the constructed object. It is not cloned.
  350. * If no data is provided, the constructed object will be empty, but still
  351. * valid.
  352. * @extends {jspb.Message}
  353. * @constructor
  354. */
  355. proto.base.v1.DefaultRequest = function(opt_data) {
  356. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  357. };
  358. goog.inherits(proto.base.v1.DefaultRequest, jspb.Message);
  359. if (goog.DEBUG && !COMPILED) {
  360. /**
  361. * @public
  362. * @override
  363. */
  364. proto.base.v1.DefaultRequest.displayName = 'proto.base.v1.DefaultRequest';
  365. }
  366. /**
  367. * Generated by JsPbCodeGenerator.
  368. * @param {Array=} opt_data Optional initial data array, typically from a
  369. * server response, or constructed directly in Javascript. The array is used
  370. * in place and becomes part of the constructed object. It is not cloned.
  371. * If no data is provided, the constructed object will be empty, but still
  372. * valid.
  373. * @extends {jspb.Message}
  374. * @constructor
  375. */
  376. proto.base.v1.Position = function(opt_data) {
  377. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  378. };
  379. goog.inherits(proto.base.v1.Position, jspb.Message);
  380. if (goog.DEBUG && !COMPILED) {
  381. /**
  382. * @public
  383. * @override
  384. */
  385. proto.base.v1.Position.displayName = 'proto.base.v1.Position';
  386. }
  387. /**
  388. * Generated by JsPbCodeGenerator.
  389. * @param {Array=} opt_data Optional initial data array, typically from a
  390. * server response, or constructed directly in Javascript. The array is used
  391. * in place and becomes part of the constructed object. It is not cloned.
  392. * If no data is provided, the constructed object will be empty, but still
  393. * valid.
  394. * @extends {jspb.Message}
  395. * @constructor
  396. */
  397. proto.base.v1.ControlPointInfo = function(opt_data) {
  398. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  399. };
  400. goog.inherits(proto.base.v1.ControlPointInfo, jspb.Message);
  401. if (goog.DEBUG && !COMPILED) {
  402. /**
  403. * @public
  404. * @override
  405. */
  406. proto.base.v1.ControlPointInfo.displayName = 'proto.base.v1.ControlPointInfo';
  407. }
  408. /**
  409. * Generated by JsPbCodeGenerator.
  410. * @param {Array=} opt_data Optional initial data array, typically from a
  411. * server response, or constructed directly in Javascript. The array is used
  412. * in place and becomes part of the constructed object. It is not cloned.
  413. * If no data is provided, the constructed object will be empty, but still
  414. * valid.
  415. * @extends {jspb.Message}
  416. * @constructor
  417. */
  418. proto.base.v1.Image = function(opt_data) {
  419. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  420. };
  421. goog.inherits(proto.base.v1.Image, jspb.Message);
  422. if (goog.DEBUG && !COMPILED) {
  423. /**
  424. * @public
  425. * @override
  426. */
  427. proto.base.v1.Image.displayName = 'proto.base.v1.Image';
  428. }
  429. /**
  430. * Generated by JsPbCodeGenerator.
  431. * @param {Array=} opt_data Optional initial data array, typically from a
  432. * server response, or constructed directly in Javascript. The array is used
  433. * in place and becomes part of the constructed object. It is not cloned.
  434. * If no data is provided, the constructed object will be empty, but still
  435. * valid.
  436. * @extends {jspb.Message}
  437. * @constructor
  438. */
  439. proto.base.v1.StatusEditRequest = function(opt_data) {
  440. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  441. };
  442. goog.inherits(proto.base.v1.StatusEditRequest, jspb.Message);
  443. if (goog.DEBUG && !COMPILED) {
  444. /**
  445. * @public
  446. * @override
  447. */
  448. proto.base.v1.StatusEditRequest.displayName = 'proto.base.v1.StatusEditRequest';
  449. }
  450. /**
  451. * Generated by JsPbCodeGenerator.
  452. * @param {Array=} opt_data Optional initial data array, typically from a
  453. * server response, or constructed directly in Javascript. The array is used
  454. * in place and becomes part of the constructed object. It is not cloned.
  455. * If no data is provided, the constructed object will be empty, but still
  456. * valid.
  457. * @extends {jspb.Message}
  458. * @constructor
  459. */
  460. proto.base.v1.CourseInfo = function(opt_data) {
  461. jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.CourseInfo.repeatedFields_, null);
  462. };
  463. goog.inherits(proto.base.v1.CourseInfo, jspb.Message);
  464. if (goog.DEBUG && !COMPILED) {
  465. /**
  466. * @public
  467. * @override
  468. */
  469. proto.base.v1.CourseInfo.displayName = 'proto.base.v1.CourseInfo';
  470. }
  471. /**
  472. * Generated by JsPbCodeGenerator.
  473. * @param {Array=} opt_data Optional initial data array, typically from a
  474. * server response, or constructed directly in Javascript. The array is used
  475. * in place and becomes part of the constructed object. It is not cloned.
  476. * If no data is provided, the constructed object will be empty, but still
  477. * valid.
  478. * @extends {jspb.Message}
  479. * @constructor
  480. */
  481. proto.base.v1.ControlPoint = function(opt_data) {
  482. jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPoint.repeatedFields_, null);
  483. };
  484. goog.inherits(proto.base.v1.ControlPoint, jspb.Message);
  485. if (goog.DEBUG && !COMPILED) {
  486. /**
  487. * @public
  488. * @override
  489. */
  490. proto.base.v1.ControlPoint.displayName = 'proto.base.v1.ControlPoint';
  491. }
  492. /**
  493. * Generated by JsPbCodeGenerator.
  494. * @param {Array=} opt_data Optional initial data array, typically from a
  495. * server response, or constructed directly in Javascript. The array is used
  496. * in place and becomes part of the constructed object. It is not cloned.
  497. * If no data is provided, the constructed object will be empty, but still
  498. * valid.
  499. * @extends {jspb.Message}
  500. * @constructor
  501. */
  502. proto.base.v1.ControlPointSimple = function(opt_data) {
  503. jspb.Message.initialize(this, opt_data, 0, -1, proto.base.v1.ControlPointSimple.repeatedFields_, null);
  504. };
  505. goog.inherits(proto.base.v1.ControlPointSimple, jspb.Message);
  506. if (goog.DEBUG && !COMPILED) {
  507. /**
  508. * @public
  509. * @override
  510. */
  511. proto.base.v1.ControlPointSimple.displayName = 'proto.base.v1.ControlPointSimple';
  512. }
  513. if (jspb.Message.GENERATE_TO_OBJECT) {
  514. /**
  515. * Creates an object representation of this proto.
  516. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  517. * Optional fields that are not set will be set to undefined.
  518. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  519. * For the list of reserved names please see:
  520. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  521. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  522. * JSPB instance for transitional soy proto support:
  523. * http://goto/soy-param-migration
  524. * @return {!Object}
  525. */
  526. proto.base.v1.NetImage.prototype.toObject = function(opt_includeInstance) {
  527. return proto.base.v1.NetImage.toObject(opt_includeInstance, this);
  528. };
  529. /**
  530. * Static version of the {@see toObject} method.
  531. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  532. * the JSPB instance for transitional soy proto support:
  533. * http://goto/soy-param-migration
  534. * @param {!proto.base.v1.NetImage} msg The msg instance to transform.
  535. * @return {!Object}
  536. * @suppress {unusedLocalVariables} f is only used for nested messages
  537. */
  538. proto.base.v1.NetImage.toObject = function(includeInstance, msg) {
  539. var f, obj = {
  540. url: jspb.Message.getFieldWithDefault(msg, 1, ""),
  541. md5: msg.getMd5_asB64()
  542. };
  543. if (includeInstance) {
  544. obj.$jspbMessageInstance = msg;
  545. }
  546. return obj;
  547. };
  548. }
  549. /**
  550. * Deserializes binary data (in protobuf wire format).
  551. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  552. * @return {!proto.base.v1.NetImage}
  553. */
  554. proto.base.v1.NetImage.deserializeBinary = function(bytes) {
  555. var reader = new jspb.BinaryReader(bytes);
  556. var msg = new proto.base.v1.NetImage;
  557. return proto.base.v1.NetImage.deserializeBinaryFromReader(msg, reader);
  558. };
  559. /**
  560. * Deserializes binary data (in protobuf wire format) from the
  561. * given reader into the given message object.
  562. * @param {!proto.base.v1.NetImage} msg The message object to deserialize into.
  563. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  564. * @return {!proto.base.v1.NetImage}
  565. */
  566. proto.base.v1.NetImage.deserializeBinaryFromReader = function(msg, reader) {
  567. while (reader.nextField()) {
  568. if (reader.isEndGroup()) {
  569. break;
  570. }
  571. var field = reader.getFieldNumber();
  572. switch (field) {
  573. case 1:
  574. var value = /** @type {string} */ (reader.readString());
  575. msg.setUrl(value);
  576. break;
  577. case 2:
  578. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  579. msg.setMd5(value);
  580. break;
  581. default:
  582. reader.skipField();
  583. break;
  584. }
  585. }
  586. return msg;
  587. };
  588. /**
  589. * Serializes the message to binary data (in protobuf wire format).
  590. * @return {!Uint8Array}
  591. */
  592. proto.base.v1.NetImage.prototype.serializeBinary = function() {
  593. var writer = new jspb.BinaryWriter();
  594. proto.base.v1.NetImage.serializeBinaryToWriter(this, writer);
  595. return writer.getResultBuffer();
  596. };
  597. /**
  598. * Serializes the given message to binary data (in protobuf wire
  599. * format), writing to the given BinaryWriter.
  600. * @param {!proto.base.v1.NetImage} message
  601. * @param {!jspb.BinaryWriter} writer
  602. * @suppress {unusedLocalVariables} f is only used for nested messages
  603. */
  604. proto.base.v1.NetImage.serializeBinaryToWriter = function(message, writer) {
  605. var f = undefined;
  606. f = message.getUrl();
  607. if (f.length > 0) {
  608. writer.writeString(
  609. 1,
  610. f
  611. );
  612. }
  613. f = message.getMd5_asU8();
  614. if (f.length > 0) {
  615. writer.writeBytes(
  616. 2,
  617. f
  618. );
  619. }
  620. };
  621. /**
  622. * optional string url = 1;
  623. * @return {string}
  624. */
  625. proto.base.v1.NetImage.prototype.getUrl = function() {
  626. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  627. };
  628. /**
  629. * @param {string} value
  630. * @return {!proto.base.v1.NetImage} returns this
  631. */
  632. proto.base.v1.NetImage.prototype.setUrl = function(value) {
  633. return jspb.Message.setProto3StringField(this, 1, value);
  634. };
  635. /**
  636. * optional bytes md5 = 2;
  637. * @return {string}
  638. */
  639. proto.base.v1.NetImage.prototype.getMd5 = function() {
  640. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  641. };
  642. /**
  643. * optional bytes md5 = 2;
  644. * This is a type-conversion wrapper around `getMd5()`
  645. * @return {string}
  646. */
  647. proto.base.v1.NetImage.prototype.getMd5_asB64 = function() {
  648. return /** @type {string} */ (jspb.Message.bytesAsB64(
  649. this.getMd5()));
  650. };
  651. /**
  652. * optional bytes md5 = 2;
  653. * Note that Uint8Array is not supported on all browsers.
  654. * @see http://caniuse.com/Uint8Array
  655. * This is a type-conversion wrapper around `getMd5()`
  656. * @return {!Uint8Array}
  657. */
  658. proto.base.v1.NetImage.prototype.getMd5_asU8 = function() {
  659. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  660. this.getMd5()));
  661. };
  662. /**
  663. * @param {!(string|Uint8Array)} value
  664. * @return {!proto.base.v1.NetImage} returns this
  665. */
  666. proto.base.v1.NetImage.prototype.setMd5 = function(value) {
  667. return jspb.Message.setProto3BytesField(this, 2, value);
  668. };
  669. if (jspb.Message.GENERATE_TO_OBJECT) {
  670. /**
  671. * Creates an object representation of this proto.
  672. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  673. * Optional fields that are not set will be set to undefined.
  674. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  675. * For the list of reserved names please see:
  676. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  677. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  678. * JSPB instance for transitional soy proto support:
  679. * http://goto/soy-param-migration
  680. * @return {!Object}
  681. */
  682. proto.base.v1.User.prototype.toObject = function(opt_includeInstance) {
  683. return proto.base.v1.User.toObject(opt_includeInstance, this);
  684. };
  685. /**
  686. * Static version of the {@see toObject} method.
  687. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  688. * the JSPB instance for transitional soy proto support:
  689. * http://goto/soy-param-migration
  690. * @param {!proto.base.v1.User} msg The msg instance to transform.
  691. * @return {!Object}
  692. * @suppress {unusedLocalVariables} f is only used for nested messages
  693. */
  694. proto.base.v1.User.toObject = function(includeInstance, msg) {
  695. var f, obj = {
  696. };
  697. if (includeInstance) {
  698. obj.$jspbMessageInstance = msg;
  699. }
  700. return obj;
  701. };
  702. }
  703. /**
  704. * Deserializes binary data (in protobuf wire format).
  705. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  706. * @return {!proto.base.v1.User}
  707. */
  708. proto.base.v1.User.deserializeBinary = function(bytes) {
  709. var reader = new jspb.BinaryReader(bytes);
  710. var msg = new proto.base.v1.User;
  711. return proto.base.v1.User.deserializeBinaryFromReader(msg, reader);
  712. };
  713. /**
  714. * Deserializes binary data (in protobuf wire format) from the
  715. * given reader into the given message object.
  716. * @param {!proto.base.v1.User} msg The message object to deserialize into.
  717. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  718. * @return {!proto.base.v1.User}
  719. */
  720. proto.base.v1.User.deserializeBinaryFromReader = function(msg, reader) {
  721. while (reader.nextField()) {
  722. if (reader.isEndGroup()) {
  723. break;
  724. }
  725. var field = reader.getFieldNumber();
  726. switch (field) {
  727. default:
  728. reader.skipField();
  729. break;
  730. }
  731. }
  732. return msg;
  733. };
  734. /**
  735. * Serializes the message to binary data (in protobuf wire format).
  736. * @return {!Uint8Array}
  737. */
  738. proto.base.v1.User.prototype.serializeBinary = function() {
  739. var writer = new jspb.BinaryWriter();
  740. proto.base.v1.User.serializeBinaryToWriter(this, writer);
  741. return writer.getResultBuffer();
  742. };
  743. /**
  744. * Serializes the given message to binary data (in protobuf wire
  745. * format), writing to the given BinaryWriter.
  746. * @param {!proto.base.v1.User} message
  747. * @param {!jspb.BinaryWriter} writer
  748. * @suppress {unusedLocalVariables} f is only used for nested messages
  749. */
  750. proto.base.v1.User.serializeBinaryToWriter = function(message, writer) {
  751. var f = undefined;
  752. };
  753. /**
  754. * @enum {number}
  755. */
  756. proto.base.v1.User.Sex = {
  757. UNDEFINE: 0,
  758. MALE: 1,
  759. FEMALE: 2
  760. };
  761. if (jspb.Message.GENERATE_TO_OBJECT) {
  762. /**
  763. * Creates an object representation of this proto.
  764. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  765. * Optional fields that are not set will be set to undefined.
  766. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  767. * For the list of reserved names please see:
  768. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  769. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  770. * JSPB instance for transitional soy proto support:
  771. * http://goto/soy-param-migration
  772. * @return {!Object}
  773. */
  774. proto.base.v1.GameGpsInfo.prototype.toObject = function(opt_includeInstance) {
  775. return proto.base.v1.GameGpsInfo.toObject(opt_includeInstance, this);
  776. };
  777. /**
  778. * Static version of the {@see toObject} method.
  779. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  780. * the JSPB instance for transitional soy proto support:
  781. * http://goto/soy-param-migration
  782. * @param {!proto.base.v1.GameGpsInfo} msg The msg instance to transform.
  783. * @return {!Object}
  784. * @suppress {unusedLocalVariables} f is only used for nested messages
  785. */
  786. proto.base.v1.GameGpsInfo.toObject = function(includeInstance, msg) {
  787. var f, obj = {
  788. gpstime: (f = msg.getGpstime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
  789. longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
  790. latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
  791. directionradian: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
  792. };
  793. if (includeInstance) {
  794. obj.$jspbMessageInstance = msg;
  795. }
  796. return obj;
  797. };
  798. }
  799. /**
  800. * Deserializes binary data (in protobuf wire format).
  801. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  802. * @return {!proto.base.v1.GameGpsInfo}
  803. */
  804. proto.base.v1.GameGpsInfo.deserializeBinary = function(bytes) {
  805. var reader = new jspb.BinaryReader(bytes);
  806. var msg = new proto.base.v1.GameGpsInfo;
  807. return proto.base.v1.GameGpsInfo.deserializeBinaryFromReader(msg, reader);
  808. };
  809. /**
  810. * Deserializes binary data (in protobuf wire format) from the
  811. * given reader into the given message object.
  812. * @param {!proto.base.v1.GameGpsInfo} msg The message object to deserialize into.
  813. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  814. * @return {!proto.base.v1.GameGpsInfo}
  815. */
  816. proto.base.v1.GameGpsInfo.deserializeBinaryFromReader = function(msg, reader) {
  817. while (reader.nextField()) {
  818. if (reader.isEndGroup()) {
  819. break;
  820. }
  821. var field = reader.getFieldNumber();
  822. switch (field) {
  823. case 1:
  824. var value = new google_protobuf_timestamp_pb.Timestamp;
  825. reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
  826. msg.setGpstime(value);
  827. break;
  828. case 2:
  829. var value = /** @type {number} */ (reader.readDouble());
  830. msg.setLongitude(value);
  831. break;
  832. case 3:
  833. var value = /** @type {number} */ (reader.readDouble());
  834. msg.setLatitude(value);
  835. break;
  836. case 4:
  837. var value = /** @type {number} */ (reader.readDouble());
  838. msg.setDirectionradian(value);
  839. break;
  840. default:
  841. reader.skipField();
  842. break;
  843. }
  844. }
  845. return msg;
  846. };
  847. /**
  848. * Serializes the message to binary data (in protobuf wire format).
  849. * @return {!Uint8Array}
  850. */
  851. proto.base.v1.GameGpsInfo.prototype.serializeBinary = function() {
  852. var writer = new jspb.BinaryWriter();
  853. proto.base.v1.GameGpsInfo.serializeBinaryToWriter(this, writer);
  854. return writer.getResultBuffer();
  855. };
  856. /**
  857. * Serializes the given message to binary data (in protobuf wire
  858. * format), writing to the given BinaryWriter.
  859. * @param {!proto.base.v1.GameGpsInfo} message
  860. * @param {!jspb.BinaryWriter} writer
  861. * @suppress {unusedLocalVariables} f is only used for nested messages
  862. */
  863. proto.base.v1.GameGpsInfo.serializeBinaryToWriter = function(message, writer) {
  864. var f = undefined;
  865. f = message.getGpstime();
  866. if (f != null) {
  867. writer.writeMessage(
  868. 1,
  869. f,
  870. google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
  871. );
  872. }
  873. f = message.getLongitude();
  874. if (f !== 0.0) {
  875. writer.writeDouble(
  876. 2,
  877. f
  878. );
  879. }
  880. f = message.getLatitude();
  881. if (f !== 0.0) {
  882. writer.writeDouble(
  883. 3,
  884. f
  885. );
  886. }
  887. f = message.getDirectionradian();
  888. if (f !== 0.0) {
  889. writer.writeDouble(
  890. 4,
  891. f
  892. );
  893. }
  894. };
  895. /**
  896. * optional google.protobuf.Timestamp gpsTime = 1;
  897. * @return {?proto.google.protobuf.Timestamp}
  898. */
  899. proto.base.v1.GameGpsInfo.prototype.getGpstime = function() {
  900. return /** @type{?proto.google.protobuf.Timestamp} */ (
  901. jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
  902. };
  903. /**
  904. * @param {?proto.google.protobuf.Timestamp|undefined} value
  905. * @return {!proto.base.v1.GameGpsInfo} returns this
  906. */
  907. proto.base.v1.GameGpsInfo.prototype.setGpstime = function(value) {
  908. return jspb.Message.setWrapperField(this, 1, value);
  909. };
  910. /**
  911. * Clears the message field making it undefined.
  912. * @return {!proto.base.v1.GameGpsInfo} returns this
  913. */
  914. proto.base.v1.GameGpsInfo.prototype.clearGpstime = function() {
  915. return this.setGpstime(undefined);
  916. };
  917. /**
  918. * Returns whether this field is set.
  919. * @return {boolean}
  920. */
  921. proto.base.v1.GameGpsInfo.prototype.hasGpstime = function() {
  922. return jspb.Message.getField(this, 1) != null;
  923. };
  924. /**
  925. * optional double longitude = 2;
  926. * @return {number}
  927. */
  928. proto.base.v1.GameGpsInfo.prototype.getLongitude = function() {
  929. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  930. };
  931. /**
  932. * @param {number} value
  933. * @return {!proto.base.v1.GameGpsInfo} returns this
  934. */
  935. proto.base.v1.GameGpsInfo.prototype.setLongitude = function(value) {
  936. return jspb.Message.setProto3FloatField(this, 2, value);
  937. };
  938. /**
  939. * optional double latitude = 3;
  940. * @return {number}
  941. */
  942. proto.base.v1.GameGpsInfo.prototype.getLatitude = function() {
  943. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
  944. };
  945. /**
  946. * @param {number} value
  947. * @return {!proto.base.v1.GameGpsInfo} returns this
  948. */
  949. proto.base.v1.GameGpsInfo.prototype.setLatitude = function(value) {
  950. return jspb.Message.setProto3FloatField(this, 3, value);
  951. };
  952. /**
  953. * optional double directionRadian = 4;
  954. * @return {number}
  955. */
  956. proto.base.v1.GameGpsInfo.prototype.getDirectionradian = function() {
  957. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
  958. };
  959. /**
  960. * @param {number} value
  961. * @return {!proto.base.v1.GameGpsInfo} returns this
  962. */
  963. proto.base.v1.GameGpsInfo.prototype.setDirectionradian = function(value) {
  964. return jspb.Message.setProto3FloatField(this, 4, value);
  965. };
  966. if (jspb.Message.GENERATE_TO_OBJECT) {
  967. /**
  968. * Creates an object representation of this proto.
  969. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  970. * Optional fields that are not set will be set to undefined.
  971. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  972. * For the list of reserved names please see:
  973. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  974. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  975. * JSPB instance for transitional soy proto support:
  976. * http://goto/soy-param-migration
  977. * @return {!Object}
  978. */
  979. proto.base.v1.HeartRate.prototype.toObject = function(opt_includeInstance) {
  980. return proto.base.v1.HeartRate.toObject(opt_includeInstance, this);
  981. };
  982. /**
  983. * Static version of the {@see toObject} method.
  984. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  985. * the JSPB instance for transitional soy proto support:
  986. * http://goto/soy-param-migration
  987. * @param {!proto.base.v1.HeartRate} msg The msg instance to transform.
  988. * @return {!Object}
  989. * @suppress {unusedLocalVariables} f is only used for nested messages
  990. */
  991. proto.base.v1.HeartRate.toObject = function(includeInstance, msg) {
  992. var f, obj = {
  993. timestampms: jspb.Message.getFieldWithDefault(msg, 1, 0),
  994. hr: jspb.Message.getFieldWithDefault(msg, 2, 0)
  995. };
  996. if (includeInstance) {
  997. obj.$jspbMessageInstance = msg;
  998. }
  999. return obj;
  1000. };
  1001. }
  1002. /**
  1003. * Deserializes binary data (in protobuf wire format).
  1004. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1005. * @return {!proto.base.v1.HeartRate}
  1006. */
  1007. proto.base.v1.HeartRate.deserializeBinary = function(bytes) {
  1008. var reader = new jspb.BinaryReader(bytes);
  1009. var msg = new proto.base.v1.HeartRate;
  1010. return proto.base.v1.HeartRate.deserializeBinaryFromReader(msg, reader);
  1011. };
  1012. /**
  1013. * Deserializes binary data (in protobuf wire format) from the
  1014. * given reader into the given message object.
  1015. * @param {!proto.base.v1.HeartRate} msg The message object to deserialize into.
  1016. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1017. * @return {!proto.base.v1.HeartRate}
  1018. */
  1019. proto.base.v1.HeartRate.deserializeBinaryFromReader = function(msg, reader) {
  1020. while (reader.nextField()) {
  1021. if (reader.isEndGroup()) {
  1022. break;
  1023. }
  1024. var field = reader.getFieldNumber();
  1025. switch (field) {
  1026. case 1:
  1027. var value = /** @type {number} */ (reader.readInt64());
  1028. msg.setTimestampms(value);
  1029. break;
  1030. case 2:
  1031. var value = /** @type {number} */ (reader.readInt32());
  1032. msg.setHr(value);
  1033. break;
  1034. default:
  1035. reader.skipField();
  1036. break;
  1037. }
  1038. }
  1039. return msg;
  1040. };
  1041. /**
  1042. * Serializes the message to binary data (in protobuf wire format).
  1043. * @return {!Uint8Array}
  1044. */
  1045. proto.base.v1.HeartRate.prototype.serializeBinary = function() {
  1046. var writer = new jspb.BinaryWriter();
  1047. proto.base.v1.HeartRate.serializeBinaryToWriter(this, writer);
  1048. return writer.getResultBuffer();
  1049. };
  1050. /**
  1051. * Serializes the given message to binary data (in protobuf wire
  1052. * format), writing to the given BinaryWriter.
  1053. * @param {!proto.base.v1.HeartRate} message
  1054. * @param {!jspb.BinaryWriter} writer
  1055. * @suppress {unusedLocalVariables} f is only used for nested messages
  1056. */
  1057. proto.base.v1.HeartRate.serializeBinaryToWriter = function(message, writer) {
  1058. var f = undefined;
  1059. f = message.getTimestampms();
  1060. if (f !== 0) {
  1061. writer.writeInt64(
  1062. 1,
  1063. f
  1064. );
  1065. }
  1066. f = message.getHr();
  1067. if (f !== 0) {
  1068. writer.writeInt32(
  1069. 2,
  1070. f
  1071. );
  1072. }
  1073. };
  1074. /**
  1075. * optional int64 timeStampMs = 1;
  1076. * @return {number}
  1077. */
  1078. proto.base.v1.HeartRate.prototype.getTimestampms = function() {
  1079. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1080. };
  1081. /**
  1082. * @param {number} value
  1083. * @return {!proto.base.v1.HeartRate} returns this
  1084. */
  1085. proto.base.v1.HeartRate.prototype.setTimestampms = function(value) {
  1086. return jspb.Message.setProto3IntField(this, 1, value);
  1087. };
  1088. /**
  1089. * optional int32 hr = 2;
  1090. * @return {number}
  1091. */
  1092. proto.base.v1.HeartRate.prototype.getHr = function() {
  1093. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  1094. };
  1095. /**
  1096. * @param {number} value
  1097. * @return {!proto.base.v1.HeartRate} returns this
  1098. */
  1099. proto.base.v1.HeartRate.prototype.setHr = function(value) {
  1100. return jspb.Message.setProto3IntField(this, 2, value);
  1101. };
  1102. if (jspb.Message.GENERATE_TO_OBJECT) {
  1103. /**
  1104. * Creates an object representation of this proto.
  1105. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1106. * Optional fields that are not set will be set to undefined.
  1107. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1108. * For the list of reserved names please see:
  1109. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1110. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1111. * JSPB instance for transitional soy proto support:
  1112. * http://goto/soy-param-migration
  1113. * @return {!Object}
  1114. */
  1115. proto.base.v1.SignInReply.prototype.toObject = function(opt_includeInstance) {
  1116. return proto.base.v1.SignInReply.toObject(opt_includeInstance, this);
  1117. };
  1118. /**
  1119. * Static version of the {@see toObject} method.
  1120. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1121. * the JSPB instance for transitional soy proto support:
  1122. * http://goto/soy-param-migration
  1123. * @param {!proto.base.v1.SignInReply} msg The msg instance to transform.
  1124. * @return {!Object}
  1125. * @suppress {unusedLocalVariables} f is only used for nested messages
  1126. */
  1127. proto.base.v1.SignInReply.toObject = function(includeInstance, msg) {
  1128. var f, obj = {
  1129. token: jspb.Message.getFieldWithDefault(msg, 1, "")
  1130. };
  1131. if (includeInstance) {
  1132. obj.$jspbMessageInstance = msg;
  1133. }
  1134. return obj;
  1135. };
  1136. }
  1137. /**
  1138. * Deserializes binary data (in protobuf wire format).
  1139. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1140. * @return {!proto.base.v1.SignInReply}
  1141. */
  1142. proto.base.v1.SignInReply.deserializeBinary = function(bytes) {
  1143. var reader = new jspb.BinaryReader(bytes);
  1144. var msg = new proto.base.v1.SignInReply;
  1145. return proto.base.v1.SignInReply.deserializeBinaryFromReader(msg, reader);
  1146. };
  1147. /**
  1148. * Deserializes binary data (in protobuf wire format) from the
  1149. * given reader into the given message object.
  1150. * @param {!proto.base.v1.SignInReply} msg The message object to deserialize into.
  1151. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1152. * @return {!proto.base.v1.SignInReply}
  1153. */
  1154. proto.base.v1.SignInReply.deserializeBinaryFromReader = function(msg, reader) {
  1155. while (reader.nextField()) {
  1156. if (reader.isEndGroup()) {
  1157. break;
  1158. }
  1159. var field = reader.getFieldNumber();
  1160. switch (field) {
  1161. case 1:
  1162. var value = /** @type {string} */ (reader.readString());
  1163. msg.setToken(value);
  1164. break;
  1165. default:
  1166. reader.skipField();
  1167. break;
  1168. }
  1169. }
  1170. return msg;
  1171. };
  1172. /**
  1173. * Serializes the message to binary data (in protobuf wire format).
  1174. * @return {!Uint8Array}
  1175. */
  1176. proto.base.v1.SignInReply.prototype.serializeBinary = function() {
  1177. var writer = new jspb.BinaryWriter();
  1178. proto.base.v1.SignInReply.serializeBinaryToWriter(this, writer);
  1179. return writer.getResultBuffer();
  1180. };
  1181. /**
  1182. * Serializes the given message to binary data (in protobuf wire
  1183. * format), writing to the given BinaryWriter.
  1184. * @param {!proto.base.v1.SignInReply} message
  1185. * @param {!jspb.BinaryWriter} writer
  1186. * @suppress {unusedLocalVariables} f is only used for nested messages
  1187. */
  1188. proto.base.v1.SignInReply.serializeBinaryToWriter = function(message, writer) {
  1189. var f = undefined;
  1190. f = message.getToken();
  1191. if (f.length > 0) {
  1192. writer.writeString(
  1193. 1,
  1194. f
  1195. );
  1196. }
  1197. };
  1198. /**
  1199. * optional string token = 1;
  1200. * @return {string}
  1201. */
  1202. proto.base.v1.SignInReply.prototype.getToken = function() {
  1203. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1204. };
  1205. /**
  1206. * @param {string} value
  1207. * @return {!proto.base.v1.SignInReply} returns this
  1208. */
  1209. proto.base.v1.SignInReply.prototype.setToken = function(value) {
  1210. return jspb.Message.setProto3StringField(this, 1, value);
  1211. };
  1212. if (jspb.Message.GENERATE_TO_OBJECT) {
  1213. /**
  1214. * Creates an object representation of this proto.
  1215. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1216. * Optional fields that are not set will be set to undefined.
  1217. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1218. * For the list of reserved names please see:
  1219. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1220. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1221. * JSPB instance for transitional soy proto support:
  1222. * http://goto/soy-param-migration
  1223. * @return {!Object}
  1224. */
  1225. proto.base.v1.MapRoute.prototype.toObject = function(opt_includeInstance) {
  1226. return proto.base.v1.MapRoute.toObject(opt_includeInstance, this);
  1227. };
  1228. /**
  1229. * Static version of the {@see toObject} method.
  1230. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1231. * the JSPB instance for transitional soy proto support:
  1232. * http://goto/soy-param-migration
  1233. * @param {!proto.base.v1.MapRoute} msg The msg instance to transform.
  1234. * @return {!Object}
  1235. * @suppress {unusedLocalVariables} f is only used for nested messages
  1236. */
  1237. proto.base.v1.MapRoute.toObject = function(includeInstance, msg) {
  1238. var f, obj = {
  1239. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1240. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1241. image: (f = msg.getImage()) && proto.base.v1.NetImage.toObject(includeInstance, f),
  1242. isnfc: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
  1243. };
  1244. if (includeInstance) {
  1245. obj.$jspbMessageInstance = msg;
  1246. }
  1247. return obj;
  1248. };
  1249. }
  1250. /**
  1251. * Deserializes binary data (in protobuf wire format).
  1252. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1253. * @return {!proto.base.v1.MapRoute}
  1254. */
  1255. proto.base.v1.MapRoute.deserializeBinary = function(bytes) {
  1256. var reader = new jspb.BinaryReader(bytes);
  1257. var msg = new proto.base.v1.MapRoute;
  1258. return proto.base.v1.MapRoute.deserializeBinaryFromReader(msg, reader);
  1259. };
  1260. /**
  1261. * Deserializes binary data (in protobuf wire format) from the
  1262. * given reader into the given message object.
  1263. * @param {!proto.base.v1.MapRoute} msg The message object to deserialize into.
  1264. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1265. * @return {!proto.base.v1.MapRoute}
  1266. */
  1267. proto.base.v1.MapRoute.deserializeBinaryFromReader = function(msg, reader) {
  1268. while (reader.nextField()) {
  1269. if (reader.isEndGroup()) {
  1270. break;
  1271. }
  1272. var field = reader.getFieldNumber();
  1273. switch (field) {
  1274. case 1:
  1275. var value = /** @type {number} */ (reader.readInt64());
  1276. msg.setId(value);
  1277. break;
  1278. case 2:
  1279. var value = /** @type {string} */ (reader.readString());
  1280. msg.setName(value);
  1281. break;
  1282. case 3:
  1283. var value = new proto.base.v1.NetImage;
  1284. reader.readMessage(value,proto.base.v1.NetImage.deserializeBinaryFromReader);
  1285. msg.setImage(value);
  1286. break;
  1287. case 4:
  1288. var value = /** @type {boolean} */ (reader.readBool());
  1289. msg.setIsnfc(value);
  1290. break;
  1291. default:
  1292. reader.skipField();
  1293. break;
  1294. }
  1295. }
  1296. return msg;
  1297. };
  1298. /**
  1299. * Serializes the message to binary data (in protobuf wire format).
  1300. * @return {!Uint8Array}
  1301. */
  1302. proto.base.v1.MapRoute.prototype.serializeBinary = function() {
  1303. var writer = new jspb.BinaryWriter();
  1304. proto.base.v1.MapRoute.serializeBinaryToWriter(this, writer);
  1305. return writer.getResultBuffer();
  1306. };
  1307. /**
  1308. * Serializes the given message to binary data (in protobuf wire
  1309. * format), writing to the given BinaryWriter.
  1310. * @param {!proto.base.v1.MapRoute} message
  1311. * @param {!jspb.BinaryWriter} writer
  1312. * @suppress {unusedLocalVariables} f is only used for nested messages
  1313. */
  1314. proto.base.v1.MapRoute.serializeBinaryToWriter = function(message, writer) {
  1315. var f = undefined;
  1316. f = message.getId();
  1317. if (f !== 0) {
  1318. writer.writeInt64(
  1319. 1,
  1320. f
  1321. );
  1322. }
  1323. f = message.getName();
  1324. if (f.length > 0) {
  1325. writer.writeString(
  1326. 2,
  1327. f
  1328. );
  1329. }
  1330. f = message.getImage();
  1331. if (f != null) {
  1332. writer.writeMessage(
  1333. 3,
  1334. f,
  1335. proto.base.v1.NetImage.serializeBinaryToWriter
  1336. );
  1337. }
  1338. f = message.getIsnfc();
  1339. if (f) {
  1340. writer.writeBool(
  1341. 4,
  1342. f
  1343. );
  1344. }
  1345. };
  1346. /**
  1347. * optional int64 id = 1;
  1348. * @return {number}
  1349. */
  1350. proto.base.v1.MapRoute.prototype.getId = function() {
  1351. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1352. };
  1353. /**
  1354. * @param {number} value
  1355. * @return {!proto.base.v1.MapRoute} returns this
  1356. */
  1357. proto.base.v1.MapRoute.prototype.setId = function(value) {
  1358. return jspb.Message.setProto3IntField(this, 1, value);
  1359. };
  1360. /**
  1361. * optional string name = 2;
  1362. * @return {string}
  1363. */
  1364. proto.base.v1.MapRoute.prototype.getName = function() {
  1365. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1366. };
  1367. /**
  1368. * @param {string} value
  1369. * @return {!proto.base.v1.MapRoute} returns this
  1370. */
  1371. proto.base.v1.MapRoute.prototype.setName = function(value) {
  1372. return jspb.Message.setProto3StringField(this, 2, value);
  1373. };
  1374. /**
  1375. * optional NetImage image = 3;
  1376. * @return {?proto.base.v1.NetImage}
  1377. */
  1378. proto.base.v1.MapRoute.prototype.getImage = function() {
  1379. return /** @type{?proto.base.v1.NetImage} */ (
  1380. jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 3));
  1381. };
  1382. /**
  1383. * @param {?proto.base.v1.NetImage|undefined} value
  1384. * @return {!proto.base.v1.MapRoute} returns this
  1385. */
  1386. proto.base.v1.MapRoute.prototype.setImage = function(value) {
  1387. return jspb.Message.setWrapperField(this, 3, value);
  1388. };
  1389. /**
  1390. * Clears the message field making it undefined.
  1391. * @return {!proto.base.v1.MapRoute} returns this
  1392. */
  1393. proto.base.v1.MapRoute.prototype.clearImage = function() {
  1394. return this.setImage(undefined);
  1395. };
  1396. /**
  1397. * Returns whether this field is set.
  1398. * @return {boolean}
  1399. */
  1400. proto.base.v1.MapRoute.prototype.hasImage = function() {
  1401. return jspb.Message.getField(this, 3) != null;
  1402. };
  1403. /**
  1404. * optional bool isNfc = 4;
  1405. * @return {boolean}
  1406. */
  1407. proto.base.v1.MapRoute.prototype.getIsnfc = function() {
  1408. return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
  1409. };
  1410. /**
  1411. * @param {boolean} value
  1412. * @return {!proto.base.v1.MapRoute} returns this
  1413. */
  1414. proto.base.v1.MapRoute.prototype.setIsnfc = function(value) {
  1415. return jspb.Message.setProto3BooleanField(this, 4, value);
  1416. };
  1417. if (jspb.Message.GENERATE_TO_OBJECT) {
  1418. /**
  1419. * Creates an object representation of this proto.
  1420. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1421. * Optional fields that are not set will be set to undefined.
  1422. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1423. * For the list of reserved names please see:
  1424. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1425. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1426. * JSPB instance for transitional soy proto support:
  1427. * http://goto/soy-param-migration
  1428. * @return {!Object}
  1429. */
  1430. proto.base.v1.BaseMapInfo.prototype.toObject = function(opt_includeInstance) {
  1431. return proto.base.v1.BaseMapInfo.toObject(opt_includeInstance, this);
  1432. };
  1433. /**
  1434. * Static version of the {@see toObject} method.
  1435. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1436. * the JSPB instance for transitional soy proto support:
  1437. * http://goto/soy-param-migration
  1438. * @param {!proto.base.v1.BaseMapInfo} msg The msg instance to transform.
  1439. * @return {!Object}
  1440. * @suppress {unusedLocalVariables} f is only used for nested messages
  1441. */
  1442. proto.base.v1.BaseMapInfo.toObject = function(includeInstance, msg) {
  1443. var f, obj = {
  1444. shopid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1445. mapname: jspb.Message.getFieldWithDefault(msg, 2, ""),
  1446. zipimage: (f = msg.getZipimage()) && proto.base.v1.NetImage.toObject(includeInstance, f)
  1447. };
  1448. if (includeInstance) {
  1449. obj.$jspbMessageInstance = msg;
  1450. }
  1451. return obj;
  1452. };
  1453. }
  1454. /**
  1455. * Deserializes binary data (in protobuf wire format).
  1456. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1457. * @return {!proto.base.v1.BaseMapInfo}
  1458. */
  1459. proto.base.v1.BaseMapInfo.deserializeBinary = function(bytes) {
  1460. var reader = new jspb.BinaryReader(bytes);
  1461. var msg = new proto.base.v1.BaseMapInfo;
  1462. return proto.base.v1.BaseMapInfo.deserializeBinaryFromReader(msg, reader);
  1463. };
  1464. /**
  1465. * Deserializes binary data (in protobuf wire format) from the
  1466. * given reader into the given message object.
  1467. * @param {!proto.base.v1.BaseMapInfo} msg The message object to deserialize into.
  1468. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1469. * @return {!proto.base.v1.BaseMapInfo}
  1470. */
  1471. proto.base.v1.BaseMapInfo.deserializeBinaryFromReader = function(msg, reader) {
  1472. while (reader.nextField()) {
  1473. if (reader.isEndGroup()) {
  1474. break;
  1475. }
  1476. var field = reader.getFieldNumber();
  1477. switch (field) {
  1478. case 1:
  1479. var value = /** @type {number} */ (reader.readInt32());
  1480. msg.setShopid(value);
  1481. break;
  1482. case 2:
  1483. var value = /** @type {string} */ (reader.readString());
  1484. msg.setMapname(value);
  1485. break;
  1486. case 3:
  1487. var value = new proto.base.v1.NetImage;
  1488. reader.readMessage(value,proto.base.v1.NetImage.deserializeBinaryFromReader);
  1489. msg.setZipimage(value);
  1490. break;
  1491. default:
  1492. reader.skipField();
  1493. break;
  1494. }
  1495. }
  1496. return msg;
  1497. };
  1498. /**
  1499. * Serializes the message to binary data (in protobuf wire format).
  1500. * @return {!Uint8Array}
  1501. */
  1502. proto.base.v1.BaseMapInfo.prototype.serializeBinary = function() {
  1503. var writer = new jspb.BinaryWriter();
  1504. proto.base.v1.BaseMapInfo.serializeBinaryToWriter(this, writer);
  1505. return writer.getResultBuffer();
  1506. };
  1507. /**
  1508. * Serializes the given message to binary data (in protobuf wire
  1509. * format), writing to the given BinaryWriter.
  1510. * @param {!proto.base.v1.BaseMapInfo} message
  1511. * @param {!jspb.BinaryWriter} writer
  1512. * @suppress {unusedLocalVariables} f is only used for nested messages
  1513. */
  1514. proto.base.v1.BaseMapInfo.serializeBinaryToWriter = function(message, writer) {
  1515. var f = undefined;
  1516. f = message.getShopid();
  1517. if (f !== 0) {
  1518. writer.writeInt32(
  1519. 1,
  1520. f
  1521. );
  1522. }
  1523. f = message.getMapname();
  1524. if (f.length > 0) {
  1525. writer.writeString(
  1526. 2,
  1527. f
  1528. );
  1529. }
  1530. f = message.getZipimage();
  1531. if (f != null) {
  1532. writer.writeMessage(
  1533. 3,
  1534. f,
  1535. proto.base.v1.NetImage.serializeBinaryToWriter
  1536. );
  1537. }
  1538. };
  1539. /**
  1540. * optional int32 shopId = 1;
  1541. * @return {number}
  1542. */
  1543. proto.base.v1.BaseMapInfo.prototype.getShopid = function() {
  1544. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1545. };
  1546. /**
  1547. * @param {number} value
  1548. * @return {!proto.base.v1.BaseMapInfo} returns this
  1549. */
  1550. proto.base.v1.BaseMapInfo.prototype.setShopid = function(value) {
  1551. return jspb.Message.setProto3IntField(this, 1, value);
  1552. };
  1553. /**
  1554. * optional string mapName = 2;
  1555. * @return {string}
  1556. */
  1557. proto.base.v1.BaseMapInfo.prototype.getMapname = function() {
  1558. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1559. };
  1560. /**
  1561. * @param {string} value
  1562. * @return {!proto.base.v1.BaseMapInfo} returns this
  1563. */
  1564. proto.base.v1.BaseMapInfo.prototype.setMapname = function(value) {
  1565. return jspb.Message.setProto3StringField(this, 2, value);
  1566. };
  1567. /**
  1568. * optional NetImage zipImage = 3;
  1569. * @return {?proto.base.v1.NetImage}
  1570. */
  1571. proto.base.v1.BaseMapInfo.prototype.getZipimage = function() {
  1572. return /** @type{?proto.base.v1.NetImage} */ (
  1573. jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 3));
  1574. };
  1575. /**
  1576. * @param {?proto.base.v1.NetImage|undefined} value
  1577. * @return {!proto.base.v1.BaseMapInfo} returns this
  1578. */
  1579. proto.base.v1.BaseMapInfo.prototype.setZipimage = function(value) {
  1580. return jspb.Message.setWrapperField(this, 3, value);
  1581. };
  1582. /**
  1583. * Clears the message field making it undefined.
  1584. * @return {!proto.base.v1.BaseMapInfo} returns this
  1585. */
  1586. proto.base.v1.BaseMapInfo.prototype.clearZipimage = function() {
  1587. return this.setZipimage(undefined);
  1588. };
  1589. /**
  1590. * Returns whether this field is set.
  1591. * @return {boolean}
  1592. */
  1593. proto.base.v1.BaseMapInfo.prototype.hasZipimage = function() {
  1594. return jspb.Message.getField(this, 3) != null;
  1595. };
  1596. if (jspb.Message.GENERATE_TO_OBJECT) {
  1597. /**
  1598. * Creates an object representation of this proto.
  1599. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1600. * Optional fields that are not set will be set to undefined.
  1601. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1602. * For the list of reserved names please see:
  1603. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1604. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1605. * JSPB instance for transitional soy proto support:
  1606. * http://goto/soy-param-migration
  1607. * @return {!Object}
  1608. */
  1609. proto.base.v1.Region.prototype.toObject = function(opt_includeInstance) {
  1610. return proto.base.v1.Region.toObject(opt_includeInstance, this);
  1611. };
  1612. /**
  1613. * Static version of the {@see toObject} method.
  1614. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1615. * the JSPB instance for transitional soy proto support:
  1616. * http://goto/soy-param-migration
  1617. * @param {!proto.base.v1.Region} msg The msg instance to transform.
  1618. * @return {!Object}
  1619. * @suppress {unusedLocalVariables} f is only used for nested messages
  1620. */
  1621. proto.base.v1.Region.toObject = function(includeInstance, msg) {
  1622. var f, obj = {
  1623. code: jspb.Message.getFieldWithDefault(msg, 1, ""),
  1624. name: jspb.Message.getFieldWithDefault(msg, 2, "")
  1625. };
  1626. if (includeInstance) {
  1627. obj.$jspbMessageInstance = msg;
  1628. }
  1629. return obj;
  1630. };
  1631. }
  1632. /**
  1633. * Deserializes binary data (in protobuf wire format).
  1634. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1635. * @return {!proto.base.v1.Region}
  1636. */
  1637. proto.base.v1.Region.deserializeBinary = function(bytes) {
  1638. var reader = new jspb.BinaryReader(bytes);
  1639. var msg = new proto.base.v1.Region;
  1640. return proto.base.v1.Region.deserializeBinaryFromReader(msg, reader);
  1641. };
  1642. /**
  1643. * Deserializes binary data (in protobuf wire format) from the
  1644. * given reader into the given message object.
  1645. * @param {!proto.base.v1.Region} msg The message object to deserialize into.
  1646. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1647. * @return {!proto.base.v1.Region}
  1648. */
  1649. proto.base.v1.Region.deserializeBinaryFromReader = function(msg, reader) {
  1650. while (reader.nextField()) {
  1651. if (reader.isEndGroup()) {
  1652. break;
  1653. }
  1654. var field = reader.getFieldNumber();
  1655. switch (field) {
  1656. case 1:
  1657. var value = /** @type {string} */ (reader.readString());
  1658. msg.setCode(value);
  1659. break;
  1660. case 2:
  1661. var value = /** @type {string} */ (reader.readString());
  1662. msg.setName(value);
  1663. break;
  1664. default:
  1665. reader.skipField();
  1666. break;
  1667. }
  1668. }
  1669. return msg;
  1670. };
  1671. /**
  1672. * Serializes the message to binary data (in protobuf wire format).
  1673. * @return {!Uint8Array}
  1674. */
  1675. proto.base.v1.Region.prototype.serializeBinary = function() {
  1676. var writer = new jspb.BinaryWriter();
  1677. proto.base.v1.Region.serializeBinaryToWriter(this, writer);
  1678. return writer.getResultBuffer();
  1679. };
  1680. /**
  1681. * Serializes the given message to binary data (in protobuf wire
  1682. * format), writing to the given BinaryWriter.
  1683. * @param {!proto.base.v1.Region} message
  1684. * @param {!jspb.BinaryWriter} writer
  1685. * @suppress {unusedLocalVariables} f is only used for nested messages
  1686. */
  1687. proto.base.v1.Region.serializeBinaryToWriter = function(message, writer) {
  1688. var f = undefined;
  1689. f = message.getCode();
  1690. if (f.length > 0) {
  1691. writer.writeString(
  1692. 1,
  1693. f
  1694. );
  1695. }
  1696. f = message.getName();
  1697. if (f.length > 0) {
  1698. writer.writeString(
  1699. 2,
  1700. f
  1701. );
  1702. }
  1703. };
  1704. /**
  1705. * optional string code = 1;
  1706. * @return {string}
  1707. */
  1708. proto.base.v1.Region.prototype.getCode = function() {
  1709. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1710. };
  1711. /**
  1712. * @param {string} value
  1713. * @return {!proto.base.v1.Region} returns this
  1714. */
  1715. proto.base.v1.Region.prototype.setCode = function(value) {
  1716. return jspb.Message.setProto3StringField(this, 1, value);
  1717. };
  1718. /**
  1719. * optional string name = 2;
  1720. * @return {string}
  1721. */
  1722. proto.base.v1.Region.prototype.getName = function() {
  1723. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1724. };
  1725. /**
  1726. * @param {string} value
  1727. * @return {!proto.base.v1.Region} returns this
  1728. */
  1729. proto.base.v1.Region.prototype.setName = function(value) {
  1730. return jspb.Message.setProto3StringField(this, 2, value);
  1731. };
  1732. if (jspb.Message.GENERATE_TO_OBJECT) {
  1733. /**
  1734. * Creates an object representation of this proto.
  1735. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1736. * Optional fields that are not set will be set to undefined.
  1737. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1738. * For the list of reserved names please see:
  1739. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1740. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1741. * JSPB instance for transitional soy proto support:
  1742. * http://goto/soy-param-migration
  1743. * @return {!Object}
  1744. */
  1745. proto.base.v1.ShopList.prototype.toObject = function(opt_includeInstance) {
  1746. return proto.base.v1.ShopList.toObject(opt_includeInstance, this);
  1747. };
  1748. /**
  1749. * Static version of the {@see toObject} method.
  1750. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1751. * the JSPB instance for transitional soy proto support:
  1752. * http://goto/soy-param-migration
  1753. * @param {!proto.base.v1.ShopList} msg The msg instance to transform.
  1754. * @return {!Object}
  1755. * @suppress {unusedLocalVariables} f is only used for nested messages
  1756. */
  1757. proto.base.v1.ShopList.toObject = function(includeInstance, msg) {
  1758. var f, obj = {
  1759. shopid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  1760. name: jspb.Message.getFieldWithDefault(msg, 2, "")
  1761. };
  1762. if (includeInstance) {
  1763. obj.$jspbMessageInstance = msg;
  1764. }
  1765. return obj;
  1766. };
  1767. }
  1768. /**
  1769. * Deserializes binary data (in protobuf wire format).
  1770. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1771. * @return {!proto.base.v1.ShopList}
  1772. */
  1773. proto.base.v1.ShopList.deserializeBinary = function(bytes) {
  1774. var reader = new jspb.BinaryReader(bytes);
  1775. var msg = new proto.base.v1.ShopList;
  1776. return proto.base.v1.ShopList.deserializeBinaryFromReader(msg, reader);
  1777. };
  1778. /**
  1779. * Deserializes binary data (in protobuf wire format) from the
  1780. * given reader into the given message object.
  1781. * @param {!proto.base.v1.ShopList} msg The message object to deserialize into.
  1782. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1783. * @return {!proto.base.v1.ShopList}
  1784. */
  1785. proto.base.v1.ShopList.deserializeBinaryFromReader = function(msg, reader) {
  1786. while (reader.nextField()) {
  1787. if (reader.isEndGroup()) {
  1788. break;
  1789. }
  1790. var field = reader.getFieldNumber();
  1791. switch (field) {
  1792. case 1:
  1793. var value = /** @type {number} */ (reader.readInt32());
  1794. msg.setShopid(value);
  1795. break;
  1796. case 2:
  1797. var value = /** @type {string} */ (reader.readString());
  1798. msg.setName(value);
  1799. break;
  1800. default:
  1801. reader.skipField();
  1802. break;
  1803. }
  1804. }
  1805. return msg;
  1806. };
  1807. /**
  1808. * Serializes the message to binary data (in protobuf wire format).
  1809. * @return {!Uint8Array}
  1810. */
  1811. proto.base.v1.ShopList.prototype.serializeBinary = function() {
  1812. var writer = new jspb.BinaryWriter();
  1813. proto.base.v1.ShopList.serializeBinaryToWriter(this, writer);
  1814. return writer.getResultBuffer();
  1815. };
  1816. /**
  1817. * Serializes the given message to binary data (in protobuf wire
  1818. * format), writing to the given BinaryWriter.
  1819. * @param {!proto.base.v1.ShopList} message
  1820. * @param {!jspb.BinaryWriter} writer
  1821. * @suppress {unusedLocalVariables} f is only used for nested messages
  1822. */
  1823. proto.base.v1.ShopList.serializeBinaryToWriter = function(message, writer) {
  1824. var f = undefined;
  1825. f = message.getShopid();
  1826. if (f !== 0) {
  1827. writer.writeInt32(
  1828. 1,
  1829. f
  1830. );
  1831. }
  1832. f = message.getName();
  1833. if (f.length > 0) {
  1834. writer.writeString(
  1835. 2,
  1836. f
  1837. );
  1838. }
  1839. };
  1840. /**
  1841. * optional int32 shopId = 1;
  1842. * @return {number}
  1843. */
  1844. proto.base.v1.ShopList.prototype.getShopid = function() {
  1845. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  1846. };
  1847. /**
  1848. * @param {number} value
  1849. * @return {!proto.base.v1.ShopList} returns this
  1850. */
  1851. proto.base.v1.ShopList.prototype.setShopid = function(value) {
  1852. return jspb.Message.setProto3IntField(this, 1, value);
  1853. };
  1854. /**
  1855. * optional string name = 2;
  1856. * @return {string}
  1857. */
  1858. proto.base.v1.ShopList.prototype.getName = function() {
  1859. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  1860. };
  1861. /**
  1862. * @param {string} value
  1863. * @return {!proto.base.v1.ShopList} returns this
  1864. */
  1865. proto.base.v1.ShopList.prototype.setName = function(value) {
  1866. return jspb.Message.setProto3StringField(this, 2, value);
  1867. };
  1868. if (jspb.Message.GENERATE_TO_OBJECT) {
  1869. /**
  1870. * Creates an object representation of this proto.
  1871. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1872. * Optional fields that are not set will be set to undefined.
  1873. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1874. * For the list of reserved names please see:
  1875. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1876. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1877. * JSPB instance for transitional soy proto support:
  1878. * http://goto/soy-param-migration
  1879. * @return {!Object}
  1880. */
  1881. proto.base.v1.GetSmsSendLeftTimeRequest.prototype.toObject = function(opt_includeInstance) {
  1882. return proto.base.v1.GetSmsSendLeftTimeRequest.toObject(opt_includeInstance, this);
  1883. };
  1884. /**
  1885. * Static version of the {@see toObject} method.
  1886. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1887. * the JSPB instance for transitional soy proto support:
  1888. * http://goto/soy-param-migration
  1889. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} msg The msg instance to transform.
  1890. * @return {!Object}
  1891. * @suppress {unusedLocalVariables} f is only used for nested messages
  1892. */
  1893. proto.base.v1.GetSmsSendLeftTimeRequest.toObject = function(includeInstance, msg) {
  1894. var f, obj = {
  1895. phone: jspb.Message.getFieldWithDefault(msg, 1, "")
  1896. };
  1897. if (includeInstance) {
  1898. obj.$jspbMessageInstance = msg;
  1899. }
  1900. return obj;
  1901. };
  1902. }
  1903. /**
  1904. * Deserializes binary data (in protobuf wire format).
  1905. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  1906. * @return {!proto.base.v1.GetSmsSendLeftTimeRequest}
  1907. */
  1908. proto.base.v1.GetSmsSendLeftTimeRequest.deserializeBinary = function(bytes) {
  1909. var reader = new jspb.BinaryReader(bytes);
  1910. var msg = new proto.base.v1.GetSmsSendLeftTimeRequest;
  1911. return proto.base.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader(msg, reader);
  1912. };
  1913. /**
  1914. * Deserializes binary data (in protobuf wire format) from the
  1915. * given reader into the given message object.
  1916. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} msg The message object to deserialize into.
  1917. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  1918. * @return {!proto.base.v1.GetSmsSendLeftTimeRequest}
  1919. */
  1920. proto.base.v1.GetSmsSendLeftTimeRequest.deserializeBinaryFromReader = function(msg, reader) {
  1921. while (reader.nextField()) {
  1922. if (reader.isEndGroup()) {
  1923. break;
  1924. }
  1925. var field = reader.getFieldNumber();
  1926. switch (field) {
  1927. case 1:
  1928. var value = /** @type {string} */ (reader.readString());
  1929. msg.setPhone(value);
  1930. break;
  1931. default:
  1932. reader.skipField();
  1933. break;
  1934. }
  1935. }
  1936. return msg;
  1937. };
  1938. /**
  1939. * Serializes the message to binary data (in protobuf wire format).
  1940. * @return {!Uint8Array}
  1941. */
  1942. proto.base.v1.GetSmsSendLeftTimeRequest.prototype.serializeBinary = function() {
  1943. var writer = new jspb.BinaryWriter();
  1944. proto.base.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter(this, writer);
  1945. return writer.getResultBuffer();
  1946. };
  1947. /**
  1948. * Serializes the given message to binary data (in protobuf wire
  1949. * format), writing to the given BinaryWriter.
  1950. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} message
  1951. * @param {!jspb.BinaryWriter} writer
  1952. * @suppress {unusedLocalVariables} f is only used for nested messages
  1953. */
  1954. proto.base.v1.GetSmsSendLeftTimeRequest.serializeBinaryToWriter = function(message, writer) {
  1955. var f = undefined;
  1956. f = message.getPhone();
  1957. if (f.length > 0) {
  1958. writer.writeString(
  1959. 1,
  1960. f
  1961. );
  1962. }
  1963. };
  1964. /**
  1965. * optional string phone = 1;
  1966. * @return {string}
  1967. */
  1968. proto.base.v1.GetSmsSendLeftTimeRequest.prototype.getPhone = function() {
  1969. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  1970. };
  1971. /**
  1972. * @param {string} value
  1973. * @return {!proto.base.v1.GetSmsSendLeftTimeRequest} returns this
  1974. */
  1975. proto.base.v1.GetSmsSendLeftTimeRequest.prototype.setPhone = function(value) {
  1976. return jspb.Message.setProto3StringField(this, 1, value);
  1977. };
  1978. if (jspb.Message.GENERATE_TO_OBJECT) {
  1979. /**
  1980. * Creates an object representation of this proto.
  1981. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  1982. * Optional fields that are not set will be set to undefined.
  1983. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  1984. * For the list of reserved names please see:
  1985. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  1986. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  1987. * JSPB instance for transitional soy proto support:
  1988. * http://goto/soy-param-migration
  1989. * @return {!Object}
  1990. */
  1991. proto.base.v1.GetSmsSendLeftTimeReply.prototype.toObject = function(opt_includeInstance) {
  1992. return proto.base.v1.GetSmsSendLeftTimeReply.toObject(opt_includeInstance, this);
  1993. };
  1994. /**
  1995. * Static version of the {@see toObject} method.
  1996. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  1997. * the JSPB instance for transitional soy proto support:
  1998. * http://goto/soy-param-migration
  1999. * @param {!proto.base.v1.GetSmsSendLeftTimeReply} msg The msg instance to transform.
  2000. * @return {!Object}
  2001. * @suppress {unusedLocalVariables} f is only used for nested messages
  2002. */
  2003. proto.base.v1.GetSmsSendLeftTimeReply.toObject = function(includeInstance, msg) {
  2004. var f, obj = {
  2005. second: jspb.Message.getFieldWithDefault(msg, 1, 0)
  2006. };
  2007. if (includeInstance) {
  2008. obj.$jspbMessageInstance = msg;
  2009. }
  2010. return obj;
  2011. };
  2012. }
  2013. /**
  2014. * Deserializes binary data (in protobuf wire format).
  2015. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2016. * @return {!proto.base.v1.GetSmsSendLeftTimeReply}
  2017. */
  2018. proto.base.v1.GetSmsSendLeftTimeReply.deserializeBinary = function(bytes) {
  2019. var reader = new jspb.BinaryReader(bytes);
  2020. var msg = new proto.base.v1.GetSmsSendLeftTimeReply;
  2021. return proto.base.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader(msg, reader);
  2022. };
  2023. /**
  2024. * Deserializes binary data (in protobuf wire format) from the
  2025. * given reader into the given message object.
  2026. * @param {!proto.base.v1.GetSmsSendLeftTimeReply} msg The message object to deserialize into.
  2027. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2028. * @return {!proto.base.v1.GetSmsSendLeftTimeReply}
  2029. */
  2030. proto.base.v1.GetSmsSendLeftTimeReply.deserializeBinaryFromReader = function(msg, reader) {
  2031. while (reader.nextField()) {
  2032. if (reader.isEndGroup()) {
  2033. break;
  2034. }
  2035. var field = reader.getFieldNumber();
  2036. switch (field) {
  2037. case 1:
  2038. var value = /** @type {number} */ (reader.readInt32());
  2039. msg.setSecond(value);
  2040. break;
  2041. default:
  2042. reader.skipField();
  2043. break;
  2044. }
  2045. }
  2046. return msg;
  2047. };
  2048. /**
  2049. * Serializes the message to binary data (in protobuf wire format).
  2050. * @return {!Uint8Array}
  2051. */
  2052. proto.base.v1.GetSmsSendLeftTimeReply.prototype.serializeBinary = function() {
  2053. var writer = new jspb.BinaryWriter();
  2054. proto.base.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter(this, writer);
  2055. return writer.getResultBuffer();
  2056. };
  2057. /**
  2058. * Serializes the given message to binary data (in protobuf wire
  2059. * format), writing to the given BinaryWriter.
  2060. * @param {!proto.base.v1.GetSmsSendLeftTimeReply} message
  2061. * @param {!jspb.BinaryWriter} writer
  2062. * @suppress {unusedLocalVariables} f is only used for nested messages
  2063. */
  2064. proto.base.v1.GetSmsSendLeftTimeReply.serializeBinaryToWriter = function(message, writer) {
  2065. var f = undefined;
  2066. f = message.getSecond();
  2067. if (f !== 0) {
  2068. writer.writeInt32(
  2069. 1,
  2070. f
  2071. );
  2072. }
  2073. };
  2074. /**
  2075. * optional int32 second = 1;
  2076. * @return {number}
  2077. */
  2078. proto.base.v1.GetSmsSendLeftTimeReply.prototype.getSecond = function() {
  2079. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2080. };
  2081. /**
  2082. * @param {number} value
  2083. * @return {!proto.base.v1.GetSmsSendLeftTimeReply} returns this
  2084. */
  2085. proto.base.v1.GetSmsSendLeftTimeReply.prototype.setSecond = function(value) {
  2086. return jspb.Message.setProto3IntField(this, 1, value);
  2087. };
  2088. if (jspb.Message.GENERATE_TO_OBJECT) {
  2089. /**
  2090. * Creates an object representation of this proto.
  2091. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2092. * Optional fields that are not set will be set to undefined.
  2093. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2094. * For the list of reserved names please see:
  2095. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2096. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2097. * JSPB instance for transitional soy proto support:
  2098. * http://goto/soy-param-migration
  2099. * @return {!Object}
  2100. */
  2101. proto.base.v1.ControlInfoList.prototype.toObject = function(opt_includeInstance) {
  2102. return proto.base.v1.ControlInfoList.toObject(opt_includeInstance, this);
  2103. };
  2104. /**
  2105. * Static version of the {@see toObject} method.
  2106. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2107. * the JSPB instance for transitional soy proto support:
  2108. * http://goto/soy-param-migration
  2109. * @param {!proto.base.v1.ControlInfoList} msg The msg instance to transform.
  2110. * @return {!Object}
  2111. * @suppress {unusedLocalVariables} f is only used for nested messages
  2112. */
  2113. proto.base.v1.ControlInfoList.toObject = function(includeInstance, msg) {
  2114. var f, obj = {
  2115. ciid: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2116. cicode: jspb.Message.getFieldWithDefault(msg, 2, "")
  2117. };
  2118. if (includeInstance) {
  2119. obj.$jspbMessageInstance = msg;
  2120. }
  2121. return obj;
  2122. };
  2123. }
  2124. /**
  2125. * Deserializes binary data (in protobuf wire format).
  2126. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2127. * @return {!proto.base.v1.ControlInfoList}
  2128. */
  2129. proto.base.v1.ControlInfoList.deserializeBinary = function(bytes) {
  2130. var reader = new jspb.BinaryReader(bytes);
  2131. var msg = new proto.base.v1.ControlInfoList;
  2132. return proto.base.v1.ControlInfoList.deserializeBinaryFromReader(msg, reader);
  2133. };
  2134. /**
  2135. * Deserializes binary data (in protobuf wire format) from the
  2136. * given reader into the given message object.
  2137. * @param {!proto.base.v1.ControlInfoList} msg The message object to deserialize into.
  2138. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2139. * @return {!proto.base.v1.ControlInfoList}
  2140. */
  2141. proto.base.v1.ControlInfoList.deserializeBinaryFromReader = function(msg, reader) {
  2142. while (reader.nextField()) {
  2143. if (reader.isEndGroup()) {
  2144. break;
  2145. }
  2146. var field = reader.getFieldNumber();
  2147. switch (field) {
  2148. case 1:
  2149. var value = /** @type {number} */ (reader.readInt32());
  2150. msg.setCiid(value);
  2151. break;
  2152. case 2:
  2153. var value = /** @type {string} */ (reader.readString());
  2154. msg.setCicode(value);
  2155. break;
  2156. default:
  2157. reader.skipField();
  2158. break;
  2159. }
  2160. }
  2161. return msg;
  2162. };
  2163. /**
  2164. * Serializes the message to binary data (in protobuf wire format).
  2165. * @return {!Uint8Array}
  2166. */
  2167. proto.base.v1.ControlInfoList.prototype.serializeBinary = function() {
  2168. var writer = new jspb.BinaryWriter();
  2169. proto.base.v1.ControlInfoList.serializeBinaryToWriter(this, writer);
  2170. return writer.getResultBuffer();
  2171. };
  2172. /**
  2173. * Serializes the given message to binary data (in protobuf wire
  2174. * format), writing to the given BinaryWriter.
  2175. * @param {!proto.base.v1.ControlInfoList} message
  2176. * @param {!jspb.BinaryWriter} writer
  2177. * @suppress {unusedLocalVariables} f is only used for nested messages
  2178. */
  2179. proto.base.v1.ControlInfoList.serializeBinaryToWriter = function(message, writer) {
  2180. var f = undefined;
  2181. f = message.getCiid();
  2182. if (f !== 0) {
  2183. writer.writeInt32(
  2184. 1,
  2185. f
  2186. );
  2187. }
  2188. f = message.getCicode();
  2189. if (f.length > 0) {
  2190. writer.writeString(
  2191. 2,
  2192. f
  2193. );
  2194. }
  2195. };
  2196. /**
  2197. * optional int32 ciId = 1;
  2198. * @return {number}
  2199. */
  2200. proto.base.v1.ControlInfoList.prototype.getCiid = function() {
  2201. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2202. };
  2203. /**
  2204. * @param {number} value
  2205. * @return {!proto.base.v1.ControlInfoList} returns this
  2206. */
  2207. proto.base.v1.ControlInfoList.prototype.setCiid = function(value) {
  2208. return jspb.Message.setProto3IntField(this, 1, value);
  2209. };
  2210. /**
  2211. * optional string ciCode = 2;
  2212. * @return {string}
  2213. */
  2214. proto.base.v1.ControlInfoList.prototype.getCicode = function() {
  2215. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2216. };
  2217. /**
  2218. * @param {string} value
  2219. * @return {!proto.base.v1.ControlInfoList} returns this
  2220. */
  2221. proto.base.v1.ControlInfoList.prototype.setCicode = function(value) {
  2222. return jspb.Message.setProto3StringField(this, 2, value);
  2223. };
  2224. if (jspb.Message.GENERATE_TO_OBJECT) {
  2225. /**
  2226. * Creates an object representation of this proto.
  2227. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2228. * Optional fields that are not set will be set to undefined.
  2229. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2230. * For the list of reserved names please see:
  2231. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2232. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2233. * JSPB instance for transitional soy proto support:
  2234. * http://goto/soy-param-migration
  2235. * @return {!Object}
  2236. */
  2237. proto.base.v1.DefaultReply.prototype.toObject = function(opt_includeInstance) {
  2238. return proto.base.v1.DefaultReply.toObject(opt_includeInstance, this);
  2239. };
  2240. /**
  2241. * Static version of the {@see toObject} method.
  2242. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2243. * the JSPB instance for transitional soy proto support:
  2244. * http://goto/soy-param-migration
  2245. * @param {!proto.base.v1.DefaultReply} msg The msg instance to transform.
  2246. * @return {!Object}
  2247. * @suppress {unusedLocalVariables} f is only used for nested messages
  2248. */
  2249. proto.base.v1.DefaultReply.toObject = function(includeInstance, msg) {
  2250. var f, obj = {
  2251. };
  2252. if (includeInstance) {
  2253. obj.$jspbMessageInstance = msg;
  2254. }
  2255. return obj;
  2256. };
  2257. }
  2258. /**
  2259. * Deserializes binary data (in protobuf wire format).
  2260. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2261. * @return {!proto.base.v1.DefaultReply}
  2262. */
  2263. proto.base.v1.DefaultReply.deserializeBinary = function(bytes) {
  2264. var reader = new jspb.BinaryReader(bytes);
  2265. var msg = new proto.base.v1.DefaultReply;
  2266. return proto.base.v1.DefaultReply.deserializeBinaryFromReader(msg, reader);
  2267. };
  2268. /**
  2269. * Deserializes binary data (in protobuf wire format) from the
  2270. * given reader into the given message object.
  2271. * @param {!proto.base.v1.DefaultReply} msg The message object to deserialize into.
  2272. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2273. * @return {!proto.base.v1.DefaultReply}
  2274. */
  2275. proto.base.v1.DefaultReply.deserializeBinaryFromReader = function(msg, reader) {
  2276. while (reader.nextField()) {
  2277. if (reader.isEndGroup()) {
  2278. break;
  2279. }
  2280. var field = reader.getFieldNumber();
  2281. switch (field) {
  2282. default:
  2283. reader.skipField();
  2284. break;
  2285. }
  2286. }
  2287. return msg;
  2288. };
  2289. /**
  2290. * Serializes the message to binary data (in protobuf wire format).
  2291. * @return {!Uint8Array}
  2292. */
  2293. proto.base.v1.DefaultReply.prototype.serializeBinary = function() {
  2294. var writer = new jspb.BinaryWriter();
  2295. proto.base.v1.DefaultReply.serializeBinaryToWriter(this, writer);
  2296. return writer.getResultBuffer();
  2297. };
  2298. /**
  2299. * Serializes the given message to binary data (in protobuf wire
  2300. * format), writing to the given BinaryWriter.
  2301. * @param {!proto.base.v1.DefaultReply} message
  2302. * @param {!jspb.BinaryWriter} writer
  2303. * @suppress {unusedLocalVariables} f is only used for nested messages
  2304. */
  2305. proto.base.v1.DefaultReply.serializeBinaryToWriter = function(message, writer) {
  2306. var f = undefined;
  2307. };
  2308. if (jspb.Message.GENERATE_TO_OBJECT) {
  2309. /**
  2310. * Creates an object representation of this proto.
  2311. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2312. * Optional fields that are not set will be set to undefined.
  2313. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2314. * For the list of reserved names please see:
  2315. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2316. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2317. * JSPB instance for transitional soy proto support:
  2318. * http://goto/soy-param-migration
  2319. * @return {!Object}
  2320. */
  2321. proto.base.v1.IdRequest.prototype.toObject = function(opt_includeInstance) {
  2322. return proto.base.v1.IdRequest.toObject(opt_includeInstance, this);
  2323. };
  2324. /**
  2325. * Static version of the {@see toObject} method.
  2326. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2327. * the JSPB instance for transitional soy proto support:
  2328. * http://goto/soy-param-migration
  2329. * @param {!proto.base.v1.IdRequest} msg The msg instance to transform.
  2330. * @return {!Object}
  2331. * @suppress {unusedLocalVariables} f is only used for nested messages
  2332. */
  2333. proto.base.v1.IdRequest.toObject = function(includeInstance, msg) {
  2334. var f, obj = {
  2335. id: jspb.Message.getFieldWithDefault(msg, 1, 0)
  2336. };
  2337. if (includeInstance) {
  2338. obj.$jspbMessageInstance = msg;
  2339. }
  2340. return obj;
  2341. };
  2342. }
  2343. /**
  2344. * Deserializes binary data (in protobuf wire format).
  2345. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2346. * @return {!proto.base.v1.IdRequest}
  2347. */
  2348. proto.base.v1.IdRequest.deserializeBinary = function(bytes) {
  2349. var reader = new jspb.BinaryReader(bytes);
  2350. var msg = new proto.base.v1.IdRequest;
  2351. return proto.base.v1.IdRequest.deserializeBinaryFromReader(msg, reader);
  2352. };
  2353. /**
  2354. * Deserializes binary data (in protobuf wire format) from the
  2355. * given reader into the given message object.
  2356. * @param {!proto.base.v1.IdRequest} msg The message object to deserialize into.
  2357. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2358. * @return {!proto.base.v1.IdRequest}
  2359. */
  2360. proto.base.v1.IdRequest.deserializeBinaryFromReader = function(msg, reader) {
  2361. while (reader.nextField()) {
  2362. if (reader.isEndGroup()) {
  2363. break;
  2364. }
  2365. var field = reader.getFieldNumber();
  2366. switch (field) {
  2367. case 1:
  2368. var value = /** @type {number} */ (reader.readInt64());
  2369. msg.setId(value);
  2370. break;
  2371. default:
  2372. reader.skipField();
  2373. break;
  2374. }
  2375. }
  2376. return msg;
  2377. };
  2378. /**
  2379. * Serializes the message to binary data (in protobuf wire format).
  2380. * @return {!Uint8Array}
  2381. */
  2382. proto.base.v1.IdRequest.prototype.serializeBinary = function() {
  2383. var writer = new jspb.BinaryWriter();
  2384. proto.base.v1.IdRequest.serializeBinaryToWriter(this, writer);
  2385. return writer.getResultBuffer();
  2386. };
  2387. /**
  2388. * Serializes the given message to binary data (in protobuf wire
  2389. * format), writing to the given BinaryWriter.
  2390. * @param {!proto.base.v1.IdRequest} message
  2391. * @param {!jspb.BinaryWriter} writer
  2392. * @suppress {unusedLocalVariables} f is only used for nested messages
  2393. */
  2394. proto.base.v1.IdRequest.serializeBinaryToWriter = function(message, writer) {
  2395. var f = undefined;
  2396. f = message.getId();
  2397. if (f !== 0) {
  2398. writer.writeInt64(
  2399. 1,
  2400. f
  2401. );
  2402. }
  2403. };
  2404. /**
  2405. * optional int64 id = 1;
  2406. * @return {number}
  2407. */
  2408. proto.base.v1.IdRequest.prototype.getId = function() {
  2409. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  2410. };
  2411. /**
  2412. * @param {number} value
  2413. * @return {!proto.base.v1.IdRequest} returns this
  2414. */
  2415. proto.base.v1.IdRequest.prototype.setId = function(value) {
  2416. return jspb.Message.setProto3IntField(this, 1, value);
  2417. };
  2418. if (jspb.Message.GENERATE_TO_OBJECT) {
  2419. /**
  2420. * Creates an object representation of this proto.
  2421. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2422. * Optional fields that are not set will be set to undefined.
  2423. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2424. * For the list of reserved names please see:
  2425. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2426. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2427. * JSPB instance for transitional soy proto support:
  2428. * http://goto/soy-param-migration
  2429. * @return {!Object}
  2430. */
  2431. proto.base.v1.DefaultRequest.prototype.toObject = function(opt_includeInstance) {
  2432. return proto.base.v1.DefaultRequest.toObject(opt_includeInstance, this);
  2433. };
  2434. /**
  2435. * Static version of the {@see toObject} method.
  2436. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2437. * the JSPB instance for transitional soy proto support:
  2438. * http://goto/soy-param-migration
  2439. * @param {!proto.base.v1.DefaultRequest} msg The msg instance to transform.
  2440. * @return {!Object}
  2441. * @suppress {unusedLocalVariables} f is only used for nested messages
  2442. */
  2443. proto.base.v1.DefaultRequest.toObject = function(includeInstance, msg) {
  2444. var f, obj = {
  2445. };
  2446. if (includeInstance) {
  2447. obj.$jspbMessageInstance = msg;
  2448. }
  2449. return obj;
  2450. };
  2451. }
  2452. /**
  2453. * Deserializes binary data (in protobuf wire format).
  2454. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2455. * @return {!proto.base.v1.DefaultRequest}
  2456. */
  2457. proto.base.v1.DefaultRequest.deserializeBinary = function(bytes) {
  2458. var reader = new jspb.BinaryReader(bytes);
  2459. var msg = new proto.base.v1.DefaultRequest;
  2460. return proto.base.v1.DefaultRequest.deserializeBinaryFromReader(msg, reader);
  2461. };
  2462. /**
  2463. * Deserializes binary data (in protobuf wire format) from the
  2464. * given reader into the given message object.
  2465. * @param {!proto.base.v1.DefaultRequest} msg The message object to deserialize into.
  2466. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2467. * @return {!proto.base.v1.DefaultRequest}
  2468. */
  2469. proto.base.v1.DefaultRequest.deserializeBinaryFromReader = function(msg, reader) {
  2470. while (reader.nextField()) {
  2471. if (reader.isEndGroup()) {
  2472. break;
  2473. }
  2474. var field = reader.getFieldNumber();
  2475. switch (field) {
  2476. default:
  2477. reader.skipField();
  2478. break;
  2479. }
  2480. }
  2481. return msg;
  2482. };
  2483. /**
  2484. * Serializes the message to binary data (in protobuf wire format).
  2485. * @return {!Uint8Array}
  2486. */
  2487. proto.base.v1.DefaultRequest.prototype.serializeBinary = function() {
  2488. var writer = new jspb.BinaryWriter();
  2489. proto.base.v1.DefaultRequest.serializeBinaryToWriter(this, writer);
  2490. return writer.getResultBuffer();
  2491. };
  2492. /**
  2493. * Serializes the given message to binary data (in protobuf wire
  2494. * format), writing to the given BinaryWriter.
  2495. * @param {!proto.base.v1.DefaultRequest} message
  2496. * @param {!jspb.BinaryWriter} writer
  2497. * @suppress {unusedLocalVariables} f is only used for nested messages
  2498. */
  2499. proto.base.v1.DefaultRequest.serializeBinaryToWriter = function(message, writer) {
  2500. var f = undefined;
  2501. };
  2502. if (jspb.Message.GENERATE_TO_OBJECT) {
  2503. /**
  2504. * Creates an object representation of this proto.
  2505. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2506. * Optional fields that are not set will be set to undefined.
  2507. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2508. * For the list of reserved names please see:
  2509. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2510. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2511. * JSPB instance for transitional soy proto support:
  2512. * http://goto/soy-param-migration
  2513. * @return {!Object}
  2514. */
  2515. proto.base.v1.Position.prototype.toObject = function(opt_includeInstance) {
  2516. return proto.base.v1.Position.toObject(opt_includeInstance, this);
  2517. };
  2518. /**
  2519. * Static version of the {@see toObject} method.
  2520. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2521. * the JSPB instance for transitional soy proto support:
  2522. * http://goto/soy-param-migration
  2523. * @param {!proto.base.v1.Position} msg The msg instance to transform.
  2524. * @return {!Object}
  2525. * @suppress {unusedLocalVariables} f is only used for nested messages
  2526. */
  2527. proto.base.v1.Position.toObject = function(includeInstance, msg) {
  2528. var f, obj = {
  2529. longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
  2530. latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
  2531. };
  2532. if (includeInstance) {
  2533. obj.$jspbMessageInstance = msg;
  2534. }
  2535. return obj;
  2536. };
  2537. }
  2538. /**
  2539. * Deserializes binary data (in protobuf wire format).
  2540. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2541. * @return {!proto.base.v1.Position}
  2542. */
  2543. proto.base.v1.Position.deserializeBinary = function(bytes) {
  2544. var reader = new jspb.BinaryReader(bytes);
  2545. var msg = new proto.base.v1.Position;
  2546. return proto.base.v1.Position.deserializeBinaryFromReader(msg, reader);
  2547. };
  2548. /**
  2549. * Deserializes binary data (in protobuf wire format) from the
  2550. * given reader into the given message object.
  2551. * @param {!proto.base.v1.Position} msg The message object to deserialize into.
  2552. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2553. * @return {!proto.base.v1.Position}
  2554. */
  2555. proto.base.v1.Position.deserializeBinaryFromReader = function(msg, reader) {
  2556. while (reader.nextField()) {
  2557. if (reader.isEndGroup()) {
  2558. break;
  2559. }
  2560. var field = reader.getFieldNumber();
  2561. switch (field) {
  2562. case 1:
  2563. var value = /** @type {number} */ (reader.readDouble());
  2564. msg.setLongitude(value);
  2565. break;
  2566. case 2:
  2567. var value = /** @type {number} */ (reader.readDouble());
  2568. msg.setLatitude(value);
  2569. break;
  2570. default:
  2571. reader.skipField();
  2572. break;
  2573. }
  2574. }
  2575. return msg;
  2576. };
  2577. /**
  2578. * Serializes the message to binary data (in protobuf wire format).
  2579. * @return {!Uint8Array}
  2580. */
  2581. proto.base.v1.Position.prototype.serializeBinary = function() {
  2582. var writer = new jspb.BinaryWriter();
  2583. proto.base.v1.Position.serializeBinaryToWriter(this, writer);
  2584. return writer.getResultBuffer();
  2585. };
  2586. /**
  2587. * Serializes the given message to binary data (in protobuf wire
  2588. * format), writing to the given BinaryWriter.
  2589. * @param {!proto.base.v1.Position} message
  2590. * @param {!jspb.BinaryWriter} writer
  2591. * @suppress {unusedLocalVariables} f is only used for nested messages
  2592. */
  2593. proto.base.v1.Position.serializeBinaryToWriter = function(message, writer) {
  2594. var f = undefined;
  2595. f = message.getLongitude();
  2596. if (f !== 0.0) {
  2597. writer.writeDouble(
  2598. 1,
  2599. f
  2600. );
  2601. }
  2602. f = message.getLatitude();
  2603. if (f !== 0.0) {
  2604. writer.writeDouble(
  2605. 2,
  2606. f
  2607. );
  2608. }
  2609. };
  2610. /**
  2611. * optional double longitude = 1;
  2612. * @return {number}
  2613. */
  2614. proto.base.v1.Position.prototype.getLongitude = function() {
  2615. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
  2616. };
  2617. /**
  2618. * @param {number} value
  2619. * @return {!proto.base.v1.Position} returns this
  2620. */
  2621. proto.base.v1.Position.prototype.setLongitude = function(value) {
  2622. return jspb.Message.setProto3FloatField(this, 1, value);
  2623. };
  2624. /**
  2625. * optional double latitude = 2;
  2626. * @return {number}
  2627. */
  2628. proto.base.v1.Position.prototype.getLatitude = function() {
  2629. return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
  2630. };
  2631. /**
  2632. * @param {number} value
  2633. * @return {!proto.base.v1.Position} returns this
  2634. */
  2635. proto.base.v1.Position.prototype.setLatitude = function(value) {
  2636. return jspb.Message.setProto3FloatField(this, 2, value);
  2637. };
  2638. if (jspb.Message.GENERATE_TO_OBJECT) {
  2639. /**
  2640. * Creates an object representation of this proto.
  2641. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2642. * Optional fields that are not set will be set to undefined.
  2643. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2644. * For the list of reserved names please see:
  2645. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2646. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2647. * JSPB instance for transitional soy proto support:
  2648. * http://goto/soy-param-migration
  2649. * @return {!Object}
  2650. */
  2651. proto.base.v1.ControlPointInfo.prototype.toObject = function(opt_includeInstance) {
  2652. return proto.base.v1.ControlPointInfo.toObject(opt_includeInstance, this);
  2653. };
  2654. /**
  2655. * Static version of the {@see toObject} method.
  2656. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2657. * the JSPB instance for transitional soy proto support:
  2658. * http://goto/soy-param-migration
  2659. * @param {!proto.base.v1.ControlPointInfo} msg The msg instance to transform.
  2660. * @return {!Object}
  2661. * @suppress {unusedLocalVariables} f is only used for nested messages
  2662. */
  2663. proto.base.v1.ControlPointInfo.toObject = function(includeInstance, msg) {
  2664. var f, obj = {
  2665. image: (f = msg.getImage()) && proto.base.v1.NetImage.toObject(includeInstance, f),
  2666. content: jspb.Message.getFieldWithDefault(msg, 2, "")
  2667. };
  2668. if (includeInstance) {
  2669. obj.$jspbMessageInstance = msg;
  2670. }
  2671. return obj;
  2672. };
  2673. }
  2674. /**
  2675. * Deserializes binary data (in protobuf wire format).
  2676. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2677. * @return {!proto.base.v1.ControlPointInfo}
  2678. */
  2679. proto.base.v1.ControlPointInfo.deserializeBinary = function(bytes) {
  2680. var reader = new jspb.BinaryReader(bytes);
  2681. var msg = new proto.base.v1.ControlPointInfo;
  2682. return proto.base.v1.ControlPointInfo.deserializeBinaryFromReader(msg, reader);
  2683. };
  2684. /**
  2685. * Deserializes binary data (in protobuf wire format) from the
  2686. * given reader into the given message object.
  2687. * @param {!proto.base.v1.ControlPointInfo} msg The message object to deserialize into.
  2688. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2689. * @return {!proto.base.v1.ControlPointInfo}
  2690. */
  2691. proto.base.v1.ControlPointInfo.deserializeBinaryFromReader = function(msg, reader) {
  2692. while (reader.nextField()) {
  2693. if (reader.isEndGroup()) {
  2694. break;
  2695. }
  2696. var field = reader.getFieldNumber();
  2697. switch (field) {
  2698. case 1:
  2699. var value = new proto.base.v1.NetImage;
  2700. reader.readMessage(value,proto.base.v1.NetImage.deserializeBinaryFromReader);
  2701. msg.setImage(value);
  2702. break;
  2703. case 2:
  2704. var value = /** @type {string} */ (reader.readString());
  2705. msg.setContent(value);
  2706. break;
  2707. default:
  2708. reader.skipField();
  2709. break;
  2710. }
  2711. }
  2712. return msg;
  2713. };
  2714. /**
  2715. * Serializes the message to binary data (in protobuf wire format).
  2716. * @return {!Uint8Array}
  2717. */
  2718. proto.base.v1.ControlPointInfo.prototype.serializeBinary = function() {
  2719. var writer = new jspb.BinaryWriter();
  2720. proto.base.v1.ControlPointInfo.serializeBinaryToWriter(this, writer);
  2721. return writer.getResultBuffer();
  2722. };
  2723. /**
  2724. * Serializes the given message to binary data (in protobuf wire
  2725. * format), writing to the given BinaryWriter.
  2726. * @param {!proto.base.v1.ControlPointInfo} message
  2727. * @param {!jspb.BinaryWriter} writer
  2728. * @suppress {unusedLocalVariables} f is only used for nested messages
  2729. */
  2730. proto.base.v1.ControlPointInfo.serializeBinaryToWriter = function(message, writer) {
  2731. var f = undefined;
  2732. f = message.getImage();
  2733. if (f != null) {
  2734. writer.writeMessage(
  2735. 1,
  2736. f,
  2737. proto.base.v1.NetImage.serializeBinaryToWriter
  2738. );
  2739. }
  2740. f = message.getContent();
  2741. if (f.length > 0) {
  2742. writer.writeString(
  2743. 2,
  2744. f
  2745. );
  2746. }
  2747. };
  2748. /**
  2749. * optional NetImage image = 1;
  2750. * @return {?proto.base.v1.NetImage}
  2751. */
  2752. proto.base.v1.ControlPointInfo.prototype.getImage = function() {
  2753. return /** @type{?proto.base.v1.NetImage} */ (
  2754. jspb.Message.getWrapperField(this, proto.base.v1.NetImage, 1));
  2755. };
  2756. /**
  2757. * @param {?proto.base.v1.NetImage|undefined} value
  2758. * @return {!proto.base.v1.ControlPointInfo} returns this
  2759. */
  2760. proto.base.v1.ControlPointInfo.prototype.setImage = function(value) {
  2761. return jspb.Message.setWrapperField(this, 1, value);
  2762. };
  2763. /**
  2764. * Clears the message field making it undefined.
  2765. * @return {!proto.base.v1.ControlPointInfo} returns this
  2766. */
  2767. proto.base.v1.ControlPointInfo.prototype.clearImage = function() {
  2768. return this.setImage(undefined);
  2769. };
  2770. /**
  2771. * Returns whether this field is set.
  2772. * @return {boolean}
  2773. */
  2774. proto.base.v1.ControlPointInfo.prototype.hasImage = function() {
  2775. return jspb.Message.getField(this, 1) != null;
  2776. };
  2777. /**
  2778. * optional string content = 2;
  2779. * @return {string}
  2780. */
  2781. proto.base.v1.ControlPointInfo.prototype.getContent = function() {
  2782. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2783. };
  2784. /**
  2785. * @param {string} value
  2786. * @return {!proto.base.v1.ControlPointInfo} returns this
  2787. */
  2788. proto.base.v1.ControlPointInfo.prototype.setContent = function(value) {
  2789. return jspb.Message.setProto3StringField(this, 2, value);
  2790. };
  2791. if (jspb.Message.GENERATE_TO_OBJECT) {
  2792. /**
  2793. * Creates an object representation of this proto.
  2794. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2795. * Optional fields that are not set will be set to undefined.
  2796. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2797. * For the list of reserved names please see:
  2798. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2799. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2800. * JSPB instance for transitional soy proto support:
  2801. * http://goto/soy-param-migration
  2802. * @return {!Object}
  2803. */
  2804. proto.base.v1.Image.prototype.toObject = function(opt_includeInstance) {
  2805. return proto.base.v1.Image.toObject(opt_includeInstance, this);
  2806. };
  2807. /**
  2808. * Static version of the {@see toObject} method.
  2809. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2810. * the JSPB instance for transitional soy proto support:
  2811. * http://goto/soy-param-migration
  2812. * @param {!proto.base.v1.Image} msg The msg instance to transform.
  2813. * @return {!Object}
  2814. * @suppress {unusedLocalVariables} f is only used for nested messages
  2815. */
  2816. proto.base.v1.Image.toObject = function(includeInstance, msg) {
  2817. var f, obj = {
  2818. ext: jspb.Message.getFieldWithDefault(msg, 1, ""),
  2819. data: msg.getData_asB64()
  2820. };
  2821. if (includeInstance) {
  2822. obj.$jspbMessageInstance = msg;
  2823. }
  2824. return obj;
  2825. };
  2826. }
  2827. /**
  2828. * Deserializes binary data (in protobuf wire format).
  2829. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2830. * @return {!proto.base.v1.Image}
  2831. */
  2832. proto.base.v1.Image.deserializeBinary = function(bytes) {
  2833. var reader = new jspb.BinaryReader(bytes);
  2834. var msg = new proto.base.v1.Image;
  2835. return proto.base.v1.Image.deserializeBinaryFromReader(msg, reader);
  2836. };
  2837. /**
  2838. * Deserializes binary data (in protobuf wire format) from the
  2839. * given reader into the given message object.
  2840. * @param {!proto.base.v1.Image} msg The message object to deserialize into.
  2841. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2842. * @return {!proto.base.v1.Image}
  2843. */
  2844. proto.base.v1.Image.deserializeBinaryFromReader = function(msg, reader) {
  2845. while (reader.nextField()) {
  2846. if (reader.isEndGroup()) {
  2847. break;
  2848. }
  2849. var field = reader.getFieldNumber();
  2850. switch (field) {
  2851. case 1:
  2852. var value = /** @type {string} */ (reader.readString());
  2853. msg.setExt(value);
  2854. break;
  2855. case 2:
  2856. var value = /** @type {!Uint8Array} */ (reader.readBytes());
  2857. msg.setData(value);
  2858. break;
  2859. default:
  2860. reader.skipField();
  2861. break;
  2862. }
  2863. }
  2864. return msg;
  2865. };
  2866. /**
  2867. * Serializes the message to binary data (in protobuf wire format).
  2868. * @return {!Uint8Array}
  2869. */
  2870. proto.base.v1.Image.prototype.serializeBinary = function() {
  2871. var writer = new jspb.BinaryWriter();
  2872. proto.base.v1.Image.serializeBinaryToWriter(this, writer);
  2873. return writer.getResultBuffer();
  2874. };
  2875. /**
  2876. * Serializes the given message to binary data (in protobuf wire
  2877. * format), writing to the given BinaryWriter.
  2878. * @param {!proto.base.v1.Image} message
  2879. * @param {!jspb.BinaryWriter} writer
  2880. * @suppress {unusedLocalVariables} f is only used for nested messages
  2881. */
  2882. proto.base.v1.Image.serializeBinaryToWriter = function(message, writer) {
  2883. var f = undefined;
  2884. f = message.getExt();
  2885. if (f.length > 0) {
  2886. writer.writeString(
  2887. 1,
  2888. f
  2889. );
  2890. }
  2891. f = message.getData_asU8();
  2892. if (f.length > 0) {
  2893. writer.writeBytes(
  2894. 2,
  2895. f
  2896. );
  2897. }
  2898. };
  2899. /**
  2900. * optional string ext = 1;
  2901. * @return {string}
  2902. */
  2903. proto.base.v1.Image.prototype.getExt = function() {
  2904. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
  2905. };
  2906. /**
  2907. * @param {string} value
  2908. * @return {!proto.base.v1.Image} returns this
  2909. */
  2910. proto.base.v1.Image.prototype.setExt = function(value) {
  2911. return jspb.Message.setProto3StringField(this, 1, value);
  2912. };
  2913. /**
  2914. * optional bytes data = 2;
  2915. * @return {string}
  2916. */
  2917. proto.base.v1.Image.prototype.getData = function() {
  2918. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  2919. };
  2920. /**
  2921. * optional bytes data = 2;
  2922. * This is a type-conversion wrapper around `getData()`
  2923. * @return {string}
  2924. */
  2925. proto.base.v1.Image.prototype.getData_asB64 = function() {
  2926. return /** @type {string} */ (jspb.Message.bytesAsB64(
  2927. this.getData()));
  2928. };
  2929. /**
  2930. * optional bytes data = 2;
  2931. * Note that Uint8Array is not supported on all browsers.
  2932. * @see http://caniuse.com/Uint8Array
  2933. * This is a type-conversion wrapper around `getData()`
  2934. * @return {!Uint8Array}
  2935. */
  2936. proto.base.v1.Image.prototype.getData_asU8 = function() {
  2937. return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
  2938. this.getData()));
  2939. };
  2940. /**
  2941. * @param {!(string|Uint8Array)} value
  2942. * @return {!proto.base.v1.Image} returns this
  2943. */
  2944. proto.base.v1.Image.prototype.setData = function(value) {
  2945. return jspb.Message.setProto3BytesField(this, 2, value);
  2946. };
  2947. if (jspb.Message.GENERATE_TO_OBJECT) {
  2948. /**
  2949. * Creates an object representation of this proto.
  2950. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  2951. * Optional fields that are not set will be set to undefined.
  2952. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  2953. * For the list of reserved names please see:
  2954. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  2955. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  2956. * JSPB instance for transitional soy proto support:
  2957. * http://goto/soy-param-migration
  2958. * @return {!Object}
  2959. */
  2960. proto.base.v1.StatusEditRequest.prototype.toObject = function(opt_includeInstance) {
  2961. return proto.base.v1.StatusEditRequest.toObject(opt_includeInstance, this);
  2962. };
  2963. /**
  2964. * Static version of the {@see toObject} method.
  2965. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  2966. * the JSPB instance for transitional soy proto support:
  2967. * http://goto/soy-param-migration
  2968. * @param {!proto.base.v1.StatusEditRequest} msg The msg instance to transform.
  2969. * @return {!Object}
  2970. * @suppress {unusedLocalVariables} f is only used for nested messages
  2971. */
  2972. proto.base.v1.StatusEditRequest.toObject = function(includeInstance, msg) {
  2973. var f, obj = {
  2974. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  2975. status: jspb.Message.getFieldWithDefault(msg, 2, 0)
  2976. };
  2977. if (includeInstance) {
  2978. obj.$jspbMessageInstance = msg;
  2979. }
  2980. return obj;
  2981. };
  2982. }
  2983. /**
  2984. * Deserializes binary data (in protobuf wire format).
  2985. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  2986. * @return {!proto.base.v1.StatusEditRequest}
  2987. */
  2988. proto.base.v1.StatusEditRequest.deserializeBinary = function(bytes) {
  2989. var reader = new jspb.BinaryReader(bytes);
  2990. var msg = new proto.base.v1.StatusEditRequest;
  2991. return proto.base.v1.StatusEditRequest.deserializeBinaryFromReader(msg, reader);
  2992. };
  2993. /**
  2994. * Deserializes binary data (in protobuf wire format) from the
  2995. * given reader into the given message object.
  2996. * @param {!proto.base.v1.StatusEditRequest} msg The message object to deserialize into.
  2997. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  2998. * @return {!proto.base.v1.StatusEditRequest}
  2999. */
  3000. proto.base.v1.StatusEditRequest.deserializeBinaryFromReader = function(msg, reader) {
  3001. while (reader.nextField()) {
  3002. if (reader.isEndGroup()) {
  3003. break;
  3004. }
  3005. var field = reader.getFieldNumber();
  3006. switch (field) {
  3007. case 1:
  3008. var value = /** @type {number} */ (reader.readInt64());
  3009. msg.setId(value);
  3010. break;
  3011. case 2:
  3012. var value = /** @type {!proto.base.v1.StatusType} */ (reader.readEnum());
  3013. msg.setStatus(value);
  3014. break;
  3015. default:
  3016. reader.skipField();
  3017. break;
  3018. }
  3019. }
  3020. return msg;
  3021. };
  3022. /**
  3023. * Serializes the message to binary data (in protobuf wire format).
  3024. * @return {!Uint8Array}
  3025. */
  3026. proto.base.v1.StatusEditRequest.prototype.serializeBinary = function() {
  3027. var writer = new jspb.BinaryWriter();
  3028. proto.base.v1.StatusEditRequest.serializeBinaryToWriter(this, writer);
  3029. return writer.getResultBuffer();
  3030. };
  3031. /**
  3032. * Serializes the given message to binary data (in protobuf wire
  3033. * format), writing to the given BinaryWriter.
  3034. * @param {!proto.base.v1.StatusEditRequest} message
  3035. * @param {!jspb.BinaryWriter} writer
  3036. * @suppress {unusedLocalVariables} f is only used for nested messages
  3037. */
  3038. proto.base.v1.StatusEditRequest.serializeBinaryToWriter = function(message, writer) {
  3039. var f = undefined;
  3040. f = message.getId();
  3041. if (f !== 0) {
  3042. writer.writeInt64(
  3043. 1,
  3044. f
  3045. );
  3046. }
  3047. f = message.getStatus();
  3048. if (f !== 0.0) {
  3049. writer.writeEnum(
  3050. 2,
  3051. f
  3052. );
  3053. }
  3054. };
  3055. /**
  3056. * optional int64 id = 1;
  3057. * @return {number}
  3058. */
  3059. proto.base.v1.StatusEditRequest.prototype.getId = function() {
  3060. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3061. };
  3062. /**
  3063. * @param {number} value
  3064. * @return {!proto.base.v1.StatusEditRequest} returns this
  3065. */
  3066. proto.base.v1.StatusEditRequest.prototype.setId = function(value) {
  3067. return jspb.Message.setProto3IntField(this, 1, value);
  3068. };
  3069. /**
  3070. * optional StatusType status = 2;
  3071. * @return {!proto.base.v1.StatusType}
  3072. */
  3073. proto.base.v1.StatusEditRequest.prototype.getStatus = function() {
  3074. return /** @type {!proto.base.v1.StatusType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
  3075. };
  3076. /**
  3077. * @param {!proto.base.v1.StatusType} value
  3078. * @return {!proto.base.v1.StatusEditRequest} returns this
  3079. */
  3080. proto.base.v1.StatusEditRequest.prototype.setStatus = function(value) {
  3081. return jspb.Message.setProto3EnumField(this, 2, value);
  3082. };
  3083. /**
  3084. * List of repeated fields within this message type.
  3085. * @private {!Array<number>}
  3086. * @const
  3087. */
  3088. proto.base.v1.CourseInfo.repeatedFields_ = [5];
  3089. if (jspb.Message.GENERATE_TO_OBJECT) {
  3090. /**
  3091. * Creates an object representation of this proto.
  3092. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3093. * Optional fields that are not set will be set to undefined.
  3094. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3095. * For the list of reserved names please see:
  3096. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3097. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3098. * JSPB instance for transitional soy proto support:
  3099. * http://goto/soy-param-migration
  3100. * @return {!Object}
  3101. */
  3102. proto.base.v1.CourseInfo.prototype.toObject = function(opt_includeInstance) {
  3103. return proto.base.v1.CourseInfo.toObject(opt_includeInstance, this);
  3104. };
  3105. /**
  3106. * Static version of the {@see toObject} method.
  3107. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3108. * the JSPB instance for transitional soy proto support:
  3109. * http://goto/soy-param-migration
  3110. * @param {!proto.base.v1.CourseInfo} msg The msg instance to transform.
  3111. * @return {!Object}
  3112. * @suppress {unusedLocalVariables} f is only used for nested messages
  3113. */
  3114. proto.base.v1.CourseInfo.toObject = function(includeInstance, msg) {
  3115. var f, obj = {
  3116. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3117. name: jspb.Message.getFieldWithDefault(msg, 2, ""),
  3118. totalcontrolnum: jspb.Message.getFieldWithDefault(msg, 3, 0),
  3119. maxrange: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3120. controlPointSortedListList: jspb.Message.toObjectList(msg.getControlPointSortedListList(),
  3121. proto.base.v1.ControlPoint.toObject, includeInstance)
  3122. };
  3123. if (includeInstance) {
  3124. obj.$jspbMessageInstance = msg;
  3125. }
  3126. return obj;
  3127. };
  3128. }
  3129. /**
  3130. * Deserializes binary data (in protobuf wire format).
  3131. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3132. * @return {!proto.base.v1.CourseInfo}
  3133. */
  3134. proto.base.v1.CourseInfo.deserializeBinary = function(bytes) {
  3135. var reader = new jspb.BinaryReader(bytes);
  3136. var msg = new proto.base.v1.CourseInfo;
  3137. return proto.base.v1.CourseInfo.deserializeBinaryFromReader(msg, reader);
  3138. };
  3139. /**
  3140. * Deserializes binary data (in protobuf wire format) from the
  3141. * given reader into the given message object.
  3142. * @param {!proto.base.v1.CourseInfo} msg The message object to deserialize into.
  3143. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3144. * @return {!proto.base.v1.CourseInfo}
  3145. */
  3146. proto.base.v1.CourseInfo.deserializeBinaryFromReader = function(msg, reader) {
  3147. while (reader.nextField()) {
  3148. if (reader.isEndGroup()) {
  3149. break;
  3150. }
  3151. var field = reader.getFieldNumber();
  3152. switch (field) {
  3153. case 1:
  3154. var value = /** @type {number} */ (reader.readInt32());
  3155. msg.setId(value);
  3156. break;
  3157. case 2:
  3158. var value = /** @type {string} */ (reader.readString());
  3159. msg.setName(value);
  3160. break;
  3161. case 3:
  3162. var value = /** @type {number} */ (reader.readInt32());
  3163. msg.setTotalcontrolnum(value);
  3164. break;
  3165. case 4:
  3166. var value = /** @type {number} */ (reader.readInt32());
  3167. msg.setMaxrange(value);
  3168. break;
  3169. case 5:
  3170. var value = new proto.base.v1.ControlPoint;
  3171. reader.readMessage(value,proto.base.v1.ControlPoint.deserializeBinaryFromReader);
  3172. msg.addControlPointSortedList(value);
  3173. break;
  3174. default:
  3175. reader.skipField();
  3176. break;
  3177. }
  3178. }
  3179. return msg;
  3180. };
  3181. /**
  3182. * Serializes the message to binary data (in protobuf wire format).
  3183. * @return {!Uint8Array}
  3184. */
  3185. proto.base.v1.CourseInfo.prototype.serializeBinary = function() {
  3186. var writer = new jspb.BinaryWriter();
  3187. proto.base.v1.CourseInfo.serializeBinaryToWriter(this, writer);
  3188. return writer.getResultBuffer();
  3189. };
  3190. /**
  3191. * Serializes the given message to binary data (in protobuf wire
  3192. * format), writing to the given BinaryWriter.
  3193. * @param {!proto.base.v1.CourseInfo} message
  3194. * @param {!jspb.BinaryWriter} writer
  3195. * @suppress {unusedLocalVariables} f is only used for nested messages
  3196. */
  3197. proto.base.v1.CourseInfo.serializeBinaryToWriter = function(message, writer) {
  3198. var f = undefined;
  3199. f = message.getId();
  3200. if (f !== 0) {
  3201. writer.writeInt32(
  3202. 1,
  3203. f
  3204. );
  3205. }
  3206. f = message.getName();
  3207. if (f.length > 0) {
  3208. writer.writeString(
  3209. 2,
  3210. f
  3211. );
  3212. }
  3213. f = message.getTotalcontrolnum();
  3214. if (f !== 0) {
  3215. writer.writeInt32(
  3216. 3,
  3217. f
  3218. );
  3219. }
  3220. f = message.getMaxrange();
  3221. if (f !== 0) {
  3222. writer.writeInt32(
  3223. 4,
  3224. f
  3225. );
  3226. }
  3227. f = message.getControlPointSortedListList();
  3228. if (f.length > 0) {
  3229. writer.writeRepeatedMessage(
  3230. 5,
  3231. f,
  3232. proto.base.v1.ControlPoint.serializeBinaryToWriter
  3233. );
  3234. }
  3235. };
  3236. /**
  3237. * optional int32 id = 1;
  3238. * @return {number}
  3239. */
  3240. proto.base.v1.CourseInfo.prototype.getId = function() {
  3241. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3242. };
  3243. /**
  3244. * @param {number} value
  3245. * @return {!proto.base.v1.CourseInfo} returns this
  3246. */
  3247. proto.base.v1.CourseInfo.prototype.setId = function(value) {
  3248. return jspb.Message.setProto3IntField(this, 1, value);
  3249. };
  3250. /**
  3251. * optional string name = 2;
  3252. * @return {string}
  3253. */
  3254. proto.base.v1.CourseInfo.prototype.getName = function() {
  3255. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
  3256. };
  3257. /**
  3258. * @param {string} value
  3259. * @return {!proto.base.v1.CourseInfo} returns this
  3260. */
  3261. proto.base.v1.CourseInfo.prototype.setName = function(value) {
  3262. return jspb.Message.setProto3StringField(this, 2, value);
  3263. };
  3264. /**
  3265. * optional int32 totalControlNum = 3;
  3266. * @return {number}
  3267. */
  3268. proto.base.v1.CourseInfo.prototype.getTotalcontrolnum = function() {
  3269. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
  3270. };
  3271. /**
  3272. * @param {number} value
  3273. * @return {!proto.base.v1.CourseInfo} returns this
  3274. */
  3275. proto.base.v1.CourseInfo.prototype.setTotalcontrolnum = function(value) {
  3276. return jspb.Message.setProto3IntField(this, 3, value);
  3277. };
  3278. /**
  3279. * optional int32 maxRange = 4;
  3280. * @return {number}
  3281. */
  3282. proto.base.v1.CourseInfo.prototype.getMaxrange = function() {
  3283. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3284. };
  3285. /**
  3286. * @param {number} value
  3287. * @return {!proto.base.v1.CourseInfo} returns this
  3288. */
  3289. proto.base.v1.CourseInfo.prototype.setMaxrange = function(value) {
  3290. return jspb.Message.setProto3IntField(this, 4, value);
  3291. };
  3292. /**
  3293. * repeated ControlPoint control_point_sorted_list = 5;
  3294. * @return {!Array<!proto.base.v1.ControlPoint>}
  3295. */
  3296. proto.base.v1.CourseInfo.prototype.getControlPointSortedListList = function() {
  3297. return /** @type{!Array<!proto.base.v1.ControlPoint>} */ (
  3298. jspb.Message.getRepeatedWrapperField(this, proto.base.v1.ControlPoint, 5));
  3299. };
  3300. /**
  3301. * @param {!Array<!proto.base.v1.ControlPoint>} value
  3302. * @return {!proto.base.v1.CourseInfo} returns this
  3303. */
  3304. proto.base.v1.CourseInfo.prototype.setControlPointSortedListList = function(value) {
  3305. return jspb.Message.setRepeatedWrapperField(this, 5, value);
  3306. };
  3307. /**
  3308. * @param {!proto.base.v1.ControlPoint=} opt_value
  3309. * @param {number=} opt_index
  3310. * @return {!proto.base.v1.ControlPoint}
  3311. */
  3312. proto.base.v1.CourseInfo.prototype.addControlPointSortedList = function(opt_value, opt_index) {
  3313. return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.base.v1.ControlPoint, opt_index);
  3314. };
  3315. /**
  3316. * Clears the list making it empty but non-null.
  3317. * @return {!proto.base.v1.CourseInfo} returns this
  3318. */
  3319. proto.base.v1.CourseInfo.prototype.clearControlPointSortedListList = function() {
  3320. return this.setControlPointSortedListList([]);
  3321. };
  3322. /**
  3323. * List of repeated fields within this message type.
  3324. * @private {!Array<number>}
  3325. * @const
  3326. */
  3327. proto.base.v1.ControlPoint.repeatedFields_ = [3];
  3328. if (jspb.Message.GENERATE_TO_OBJECT) {
  3329. /**
  3330. * Creates an object representation of this proto.
  3331. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3332. * Optional fields that are not set will be set to undefined.
  3333. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3334. * For the list of reserved names please see:
  3335. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3336. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3337. * JSPB instance for transitional soy proto support:
  3338. * http://goto/soy-param-migration
  3339. * @return {!Object}
  3340. */
  3341. proto.base.v1.ControlPoint.prototype.toObject = function(opt_includeInstance) {
  3342. return proto.base.v1.ControlPoint.toObject(opt_includeInstance, this);
  3343. };
  3344. /**
  3345. * Static version of the {@see toObject} method.
  3346. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3347. * the JSPB instance for transitional soy proto support:
  3348. * http://goto/soy-param-migration
  3349. * @param {!proto.base.v1.ControlPoint} msg The msg instance to transform.
  3350. * @return {!Object}
  3351. * @suppress {unusedLocalVariables} f is only used for nested messages
  3352. */
  3353. proto.base.v1.ControlPoint.toObject = function(includeInstance, msg) {
  3354. var f, obj = {
  3355. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3356. info: (f = msg.getInfo()) && proto.base.v1.ControlPointInfo.toObject(includeInstance, f),
  3357. nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
  3358. onMapX: jspb.Message.getFieldWithDefault(msg, 4, 0),
  3359. onMapY: jspb.Message.getFieldWithDefault(msg, 5, 0),
  3360. sn: jspb.Message.getFieldWithDefault(msg, 6, ""),
  3361. ciposition: (f = msg.getCiposition()) && proto.base.v1.Position.toObject(includeInstance, f),
  3362. mapposition: (f = msg.getMapposition()) && proto.base.v1.Position.toObject(includeInstance, f),
  3363. category: jspb.Message.getFieldWithDefault(msg, 9, 0)
  3364. };
  3365. if (includeInstance) {
  3366. obj.$jspbMessageInstance = msg;
  3367. }
  3368. return obj;
  3369. };
  3370. }
  3371. /**
  3372. * Deserializes binary data (in protobuf wire format).
  3373. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3374. * @return {!proto.base.v1.ControlPoint}
  3375. */
  3376. proto.base.v1.ControlPoint.deserializeBinary = function(bytes) {
  3377. var reader = new jspb.BinaryReader(bytes);
  3378. var msg = new proto.base.v1.ControlPoint;
  3379. return proto.base.v1.ControlPoint.deserializeBinaryFromReader(msg, reader);
  3380. };
  3381. /**
  3382. * Deserializes binary data (in protobuf wire format) from the
  3383. * given reader into the given message object.
  3384. * @param {!proto.base.v1.ControlPoint} msg The message object to deserialize into.
  3385. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3386. * @return {!proto.base.v1.ControlPoint}
  3387. */
  3388. proto.base.v1.ControlPoint.deserializeBinaryFromReader = function(msg, reader) {
  3389. while (reader.nextField()) {
  3390. if (reader.isEndGroup()) {
  3391. break;
  3392. }
  3393. var field = reader.getFieldNumber();
  3394. switch (field) {
  3395. case 1:
  3396. var value = /** @type {number} */ (reader.readInt64());
  3397. msg.setId(value);
  3398. break;
  3399. case 2:
  3400. var value = new proto.base.v1.ControlPointInfo;
  3401. reader.readMessage(value,proto.base.v1.ControlPointInfo.deserializeBinaryFromReader);
  3402. msg.setInfo(value);
  3403. break;
  3404. case 3:
  3405. var value = /** @type {string} */ (reader.readString());
  3406. msg.addNfcIdList(value);
  3407. break;
  3408. case 4:
  3409. var value = /** @type {number} */ (reader.readInt64());
  3410. msg.setOnMapX(value);
  3411. break;
  3412. case 5:
  3413. var value = /** @type {number} */ (reader.readInt64());
  3414. msg.setOnMapY(value);
  3415. break;
  3416. case 6:
  3417. var value = /** @type {string} */ (reader.readString());
  3418. msg.setSn(value);
  3419. break;
  3420. case 7:
  3421. var value = new proto.base.v1.Position;
  3422. reader.readMessage(value,proto.base.v1.Position.deserializeBinaryFromReader);
  3423. msg.setCiposition(value);
  3424. break;
  3425. case 8:
  3426. var value = new proto.base.v1.Position;
  3427. reader.readMessage(value,proto.base.v1.Position.deserializeBinaryFromReader);
  3428. msg.setMapposition(value);
  3429. break;
  3430. case 9:
  3431. var value = /** @type {number} */ (reader.readInt32());
  3432. msg.setCategory(value);
  3433. break;
  3434. default:
  3435. reader.skipField();
  3436. break;
  3437. }
  3438. }
  3439. return msg;
  3440. };
  3441. /**
  3442. * Serializes the message to binary data (in protobuf wire format).
  3443. * @return {!Uint8Array}
  3444. */
  3445. proto.base.v1.ControlPoint.prototype.serializeBinary = function() {
  3446. var writer = new jspb.BinaryWriter();
  3447. proto.base.v1.ControlPoint.serializeBinaryToWriter(this, writer);
  3448. return writer.getResultBuffer();
  3449. };
  3450. /**
  3451. * Serializes the given message to binary data (in protobuf wire
  3452. * format), writing to the given BinaryWriter.
  3453. * @param {!proto.base.v1.ControlPoint} message
  3454. * @param {!jspb.BinaryWriter} writer
  3455. * @suppress {unusedLocalVariables} f is only used for nested messages
  3456. */
  3457. proto.base.v1.ControlPoint.serializeBinaryToWriter = function(message, writer) {
  3458. var f = undefined;
  3459. f = message.getId();
  3460. if (f !== 0) {
  3461. writer.writeInt64(
  3462. 1,
  3463. f
  3464. );
  3465. }
  3466. f = message.getInfo();
  3467. if (f != null) {
  3468. writer.writeMessage(
  3469. 2,
  3470. f,
  3471. proto.base.v1.ControlPointInfo.serializeBinaryToWriter
  3472. );
  3473. }
  3474. f = message.getNfcIdListList();
  3475. if (f.length > 0) {
  3476. writer.writeRepeatedString(
  3477. 3,
  3478. f
  3479. );
  3480. }
  3481. f = message.getOnMapX();
  3482. if (f !== 0) {
  3483. writer.writeInt64(
  3484. 4,
  3485. f
  3486. );
  3487. }
  3488. f = message.getOnMapY();
  3489. if (f !== 0) {
  3490. writer.writeInt64(
  3491. 5,
  3492. f
  3493. );
  3494. }
  3495. f = message.getSn();
  3496. if (f.length > 0) {
  3497. writer.writeString(
  3498. 6,
  3499. f
  3500. );
  3501. }
  3502. f = message.getCiposition();
  3503. if (f != null) {
  3504. writer.writeMessage(
  3505. 7,
  3506. f,
  3507. proto.base.v1.Position.serializeBinaryToWriter
  3508. );
  3509. }
  3510. f = message.getMapposition();
  3511. if (f != null) {
  3512. writer.writeMessage(
  3513. 8,
  3514. f,
  3515. proto.base.v1.Position.serializeBinaryToWriter
  3516. );
  3517. }
  3518. f = message.getCategory();
  3519. if (f !== 0) {
  3520. writer.writeInt32(
  3521. 9,
  3522. f
  3523. );
  3524. }
  3525. };
  3526. /**
  3527. * optional int64 id = 1;
  3528. * @return {number}
  3529. */
  3530. proto.base.v1.ControlPoint.prototype.getId = function() {
  3531. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3532. };
  3533. /**
  3534. * @param {number} value
  3535. * @return {!proto.base.v1.ControlPoint} returns this
  3536. */
  3537. proto.base.v1.ControlPoint.prototype.setId = function(value) {
  3538. return jspb.Message.setProto3IntField(this, 1, value);
  3539. };
  3540. /**
  3541. * optional ControlPointInfo info = 2;
  3542. * @return {?proto.base.v1.ControlPointInfo}
  3543. */
  3544. proto.base.v1.ControlPoint.prototype.getInfo = function() {
  3545. return /** @type{?proto.base.v1.ControlPointInfo} */ (
  3546. jspb.Message.getWrapperField(this, proto.base.v1.ControlPointInfo, 2));
  3547. };
  3548. /**
  3549. * @param {?proto.base.v1.ControlPointInfo|undefined} value
  3550. * @return {!proto.base.v1.ControlPoint} returns this
  3551. */
  3552. proto.base.v1.ControlPoint.prototype.setInfo = function(value) {
  3553. return jspb.Message.setWrapperField(this, 2, value);
  3554. };
  3555. /**
  3556. * Clears the message field making it undefined.
  3557. * @return {!proto.base.v1.ControlPoint} returns this
  3558. */
  3559. proto.base.v1.ControlPoint.prototype.clearInfo = function() {
  3560. return this.setInfo(undefined);
  3561. };
  3562. /**
  3563. * Returns whether this field is set.
  3564. * @return {boolean}
  3565. */
  3566. proto.base.v1.ControlPoint.prototype.hasInfo = function() {
  3567. return jspb.Message.getField(this, 2) != null;
  3568. };
  3569. /**
  3570. * repeated string nfc_id_list = 3;
  3571. * @return {!Array<string>}
  3572. */
  3573. proto.base.v1.ControlPoint.prototype.getNfcIdListList = function() {
  3574. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
  3575. };
  3576. /**
  3577. * @param {!Array<string>} value
  3578. * @return {!proto.base.v1.ControlPoint} returns this
  3579. */
  3580. proto.base.v1.ControlPoint.prototype.setNfcIdListList = function(value) {
  3581. return jspb.Message.setField(this, 3, value || []);
  3582. };
  3583. /**
  3584. * @param {string} value
  3585. * @param {number=} opt_index
  3586. * @return {!proto.base.v1.ControlPoint} returns this
  3587. */
  3588. proto.base.v1.ControlPoint.prototype.addNfcIdList = function(value, opt_index) {
  3589. return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
  3590. };
  3591. /**
  3592. * Clears the list making it empty but non-null.
  3593. * @return {!proto.base.v1.ControlPoint} returns this
  3594. */
  3595. proto.base.v1.ControlPoint.prototype.clearNfcIdListList = function() {
  3596. return this.setNfcIdListList([]);
  3597. };
  3598. /**
  3599. * optional int64 on_map_x = 4;
  3600. * @return {number}
  3601. */
  3602. proto.base.v1.ControlPoint.prototype.getOnMapX = function() {
  3603. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
  3604. };
  3605. /**
  3606. * @param {number} value
  3607. * @return {!proto.base.v1.ControlPoint} returns this
  3608. */
  3609. proto.base.v1.ControlPoint.prototype.setOnMapX = function(value) {
  3610. return jspb.Message.setProto3IntField(this, 4, value);
  3611. };
  3612. /**
  3613. * optional int64 on_map_y = 5;
  3614. * @return {number}
  3615. */
  3616. proto.base.v1.ControlPoint.prototype.getOnMapY = function() {
  3617. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
  3618. };
  3619. /**
  3620. * @param {number} value
  3621. * @return {!proto.base.v1.ControlPoint} returns this
  3622. */
  3623. proto.base.v1.ControlPoint.prototype.setOnMapY = function(value) {
  3624. return jspb.Message.setProto3IntField(this, 5, value);
  3625. };
  3626. /**
  3627. * optional string sn = 6;
  3628. * @return {string}
  3629. */
  3630. proto.base.v1.ControlPoint.prototype.getSn = function() {
  3631. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
  3632. };
  3633. /**
  3634. * @param {string} value
  3635. * @return {!proto.base.v1.ControlPoint} returns this
  3636. */
  3637. proto.base.v1.ControlPoint.prototype.setSn = function(value) {
  3638. return jspb.Message.setProto3StringField(this, 6, value);
  3639. };
  3640. /**
  3641. * optional Position ciPosition = 7;
  3642. * @return {?proto.base.v1.Position}
  3643. */
  3644. proto.base.v1.ControlPoint.prototype.getCiposition = function() {
  3645. return /** @type{?proto.base.v1.Position} */ (
  3646. jspb.Message.getWrapperField(this, proto.base.v1.Position, 7));
  3647. };
  3648. /**
  3649. * @param {?proto.base.v1.Position|undefined} value
  3650. * @return {!proto.base.v1.ControlPoint} returns this
  3651. */
  3652. proto.base.v1.ControlPoint.prototype.setCiposition = function(value) {
  3653. return jspb.Message.setWrapperField(this, 7, value);
  3654. };
  3655. /**
  3656. * Clears the message field making it undefined.
  3657. * @return {!proto.base.v1.ControlPoint} returns this
  3658. */
  3659. proto.base.v1.ControlPoint.prototype.clearCiposition = function() {
  3660. return this.setCiposition(undefined);
  3661. };
  3662. /**
  3663. * Returns whether this field is set.
  3664. * @return {boolean}
  3665. */
  3666. proto.base.v1.ControlPoint.prototype.hasCiposition = function() {
  3667. return jspb.Message.getField(this, 7) != null;
  3668. };
  3669. /**
  3670. * optional Position mapPosition = 8;
  3671. * @return {?proto.base.v1.Position}
  3672. */
  3673. proto.base.v1.ControlPoint.prototype.getMapposition = function() {
  3674. return /** @type{?proto.base.v1.Position} */ (
  3675. jspb.Message.getWrapperField(this, proto.base.v1.Position, 8));
  3676. };
  3677. /**
  3678. * @param {?proto.base.v1.Position|undefined} value
  3679. * @return {!proto.base.v1.ControlPoint} returns this
  3680. */
  3681. proto.base.v1.ControlPoint.prototype.setMapposition = function(value) {
  3682. return jspb.Message.setWrapperField(this, 8, value);
  3683. };
  3684. /**
  3685. * Clears the message field making it undefined.
  3686. * @return {!proto.base.v1.ControlPoint} returns this
  3687. */
  3688. proto.base.v1.ControlPoint.prototype.clearMapposition = function() {
  3689. return this.setMapposition(undefined);
  3690. };
  3691. /**
  3692. * Returns whether this field is set.
  3693. * @return {boolean}
  3694. */
  3695. proto.base.v1.ControlPoint.prototype.hasMapposition = function() {
  3696. return jspb.Message.getField(this, 8) != null;
  3697. };
  3698. /**
  3699. * optional int32 category = 9;
  3700. * @return {number}
  3701. */
  3702. proto.base.v1.ControlPoint.prototype.getCategory = function() {
  3703. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
  3704. };
  3705. /**
  3706. * @param {number} value
  3707. * @return {!proto.base.v1.ControlPoint} returns this
  3708. */
  3709. proto.base.v1.ControlPoint.prototype.setCategory = function(value) {
  3710. return jspb.Message.setProto3IntField(this, 9, value);
  3711. };
  3712. /**
  3713. * List of repeated fields within this message type.
  3714. * @private {!Array<number>}
  3715. * @const
  3716. */
  3717. proto.base.v1.ControlPointSimple.repeatedFields_ = [2];
  3718. if (jspb.Message.GENERATE_TO_OBJECT) {
  3719. /**
  3720. * Creates an object representation of this proto.
  3721. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  3722. * Optional fields that are not set will be set to undefined.
  3723. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  3724. * For the list of reserved names please see:
  3725. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  3726. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  3727. * JSPB instance for transitional soy proto support:
  3728. * http://goto/soy-param-migration
  3729. * @return {!Object}
  3730. */
  3731. proto.base.v1.ControlPointSimple.prototype.toObject = function(opt_includeInstance) {
  3732. return proto.base.v1.ControlPointSimple.toObject(opt_includeInstance, this);
  3733. };
  3734. /**
  3735. * Static version of the {@see toObject} method.
  3736. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  3737. * the JSPB instance for transitional soy proto support:
  3738. * http://goto/soy-param-migration
  3739. * @param {!proto.base.v1.ControlPointSimple} msg The msg instance to transform.
  3740. * @return {!Object}
  3741. * @suppress {unusedLocalVariables} f is only used for nested messages
  3742. */
  3743. proto.base.v1.ControlPointSimple.toObject = function(includeInstance, msg) {
  3744. var f, obj = {
  3745. id: jspb.Message.getFieldWithDefault(msg, 1, 0),
  3746. nfcIdListList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
  3747. sn: jspb.Message.getFieldWithDefault(msg, 3, "")
  3748. };
  3749. if (includeInstance) {
  3750. obj.$jspbMessageInstance = msg;
  3751. }
  3752. return obj;
  3753. };
  3754. }
  3755. /**
  3756. * Deserializes binary data (in protobuf wire format).
  3757. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  3758. * @return {!proto.base.v1.ControlPointSimple}
  3759. */
  3760. proto.base.v1.ControlPointSimple.deserializeBinary = function(bytes) {
  3761. var reader = new jspb.BinaryReader(bytes);
  3762. var msg = new proto.base.v1.ControlPointSimple;
  3763. return proto.base.v1.ControlPointSimple.deserializeBinaryFromReader(msg, reader);
  3764. };
  3765. /**
  3766. * Deserializes binary data (in protobuf wire format) from the
  3767. * given reader into the given message object.
  3768. * @param {!proto.base.v1.ControlPointSimple} msg The message object to deserialize into.
  3769. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  3770. * @return {!proto.base.v1.ControlPointSimple}
  3771. */
  3772. proto.base.v1.ControlPointSimple.deserializeBinaryFromReader = function(msg, reader) {
  3773. while (reader.nextField()) {
  3774. if (reader.isEndGroup()) {
  3775. break;
  3776. }
  3777. var field = reader.getFieldNumber();
  3778. switch (field) {
  3779. case 1:
  3780. var value = /** @type {number} */ (reader.readInt64());
  3781. msg.setId(value);
  3782. break;
  3783. case 2:
  3784. var value = /** @type {string} */ (reader.readString());
  3785. msg.addNfcIdList(value);
  3786. break;
  3787. case 3:
  3788. var value = /** @type {string} */ (reader.readString());
  3789. msg.setSn(value);
  3790. break;
  3791. default:
  3792. reader.skipField();
  3793. break;
  3794. }
  3795. }
  3796. return msg;
  3797. };
  3798. /**
  3799. * Serializes the message to binary data (in protobuf wire format).
  3800. * @return {!Uint8Array}
  3801. */
  3802. proto.base.v1.ControlPointSimple.prototype.serializeBinary = function() {
  3803. var writer = new jspb.BinaryWriter();
  3804. proto.base.v1.ControlPointSimple.serializeBinaryToWriter(this, writer);
  3805. return writer.getResultBuffer();
  3806. };
  3807. /**
  3808. * Serializes the given message to binary data (in protobuf wire
  3809. * format), writing to the given BinaryWriter.
  3810. * @param {!proto.base.v1.ControlPointSimple} message
  3811. * @param {!jspb.BinaryWriter} writer
  3812. * @suppress {unusedLocalVariables} f is only used for nested messages
  3813. */
  3814. proto.base.v1.ControlPointSimple.serializeBinaryToWriter = function(message, writer) {
  3815. var f = undefined;
  3816. f = message.getId();
  3817. if (f !== 0) {
  3818. writer.writeInt64(
  3819. 1,
  3820. f
  3821. );
  3822. }
  3823. f = message.getNfcIdListList();
  3824. if (f.length > 0) {
  3825. writer.writeRepeatedString(
  3826. 2,
  3827. f
  3828. );
  3829. }
  3830. f = message.getSn();
  3831. if (f.length > 0) {
  3832. writer.writeString(
  3833. 3,
  3834. f
  3835. );
  3836. }
  3837. };
  3838. /**
  3839. * optional int64 id = 1;
  3840. * @return {number}
  3841. */
  3842. proto.base.v1.ControlPointSimple.prototype.getId = function() {
  3843. return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
  3844. };
  3845. /**
  3846. * @param {number} value
  3847. * @return {!proto.base.v1.ControlPointSimple} returns this
  3848. */
  3849. proto.base.v1.ControlPointSimple.prototype.setId = function(value) {
  3850. return jspb.Message.setProto3IntField(this, 1, value);
  3851. };
  3852. /**
  3853. * repeated string nfc_id_list = 2;
  3854. * @return {!Array<string>}
  3855. */
  3856. proto.base.v1.ControlPointSimple.prototype.getNfcIdListList = function() {
  3857. return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
  3858. };
  3859. /**
  3860. * @param {!Array<string>} value
  3861. * @return {!proto.base.v1.ControlPointSimple} returns this
  3862. */
  3863. proto.base.v1.ControlPointSimple.prototype.setNfcIdListList = function(value) {
  3864. return jspb.Message.setField(this, 2, value || []);
  3865. };
  3866. /**
  3867. * @param {string} value
  3868. * @param {number=} opt_index
  3869. * @return {!proto.base.v1.ControlPointSimple} returns this
  3870. */
  3871. proto.base.v1.ControlPointSimple.prototype.addNfcIdList = function(value, opt_index) {
  3872. return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
  3873. };
  3874. /**
  3875. * Clears the list making it empty but non-null.
  3876. * @return {!proto.base.v1.ControlPointSimple} returns this
  3877. */
  3878. proto.base.v1.ControlPointSimple.prototype.clearNfcIdListList = function() {
  3879. return this.setNfcIdListList([]);
  3880. };
  3881. /**
  3882. * optional string sn = 3;
  3883. * @return {string}
  3884. */
  3885. proto.base.v1.ControlPointSimple.prototype.getSn = function() {
  3886. return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
  3887. };
  3888. /**
  3889. * @param {string} value
  3890. * @return {!proto.base.v1.ControlPointSimple} returns this
  3891. */
  3892. proto.base.v1.ControlPointSimple.prototype.setSn = function(value) {
  3893. return jspb.Message.setProto3StringField(this, 3, value);
  3894. };
  3895. /**
  3896. * @enum {number}
  3897. */
  3898. proto.base.v1.ErrorCode = {
  3899. OK: 0,
  3900. TOKENEXPIRE: 1000,
  3901. USERBAN: 1001,
  3902. VFCODEEXPIRE: 1002,
  3903. SMSSENDFAIL: 1003,
  3904. USERSTATUSERR: 1008,
  3905. STATUSERR: 1009,
  3906. PHONENOTEXIST: 2001,
  3907. UNKNOWNERR: 2002,
  3908. PARAMERR: 5000,
  3909. HEADSOURCEERR: 5001,
  3910. DATABASE: 9000,
  3911. NORECORD: 9001
  3912. };
  3913. /**
  3914. * @enum {number}
  3915. */
  3916. proto.base.v1.ShopType = {
  3917. UNKNOWSHOP: 0,
  3918. PARKSHOP: 1,
  3919. IPSHOP: 2,
  3920. ADMINSHOP: 3
  3921. };
  3922. /**
  3923. * @enum {number}
  3924. */
  3925. proto.base.v1.UserType = {
  3926. UNDEFINE: 0,
  3927. APPUSER: 1,
  3928. PARKADMIN: 2,
  3929. IPADMIN: 3,
  3930. SYSADMIN: 4,
  3931. TOADMIN: 5
  3932. };
  3933. /**
  3934. * @enum {number}
  3935. */
  3936. proto.base.v1.LoginSource = {
  3937. UNDEF: 0,
  3938. USERAPP: 1,
  3939. WEBADMIN: 2,
  3940. SHOPAPP: 3,
  3941. TOAPP: 4
  3942. };
  3943. /**
  3944. * @enum {number}
  3945. */
  3946. proto.base.v1.SmsType = {
  3947. UNKNOW: 0,
  3948. LOGIN: 1,
  3949. SIGNUP: 2
  3950. };
  3951. /**
  3952. * @enum {number}
  3953. */
  3954. proto.base.v1.ProjectContentType = {
  3955. TEXT: 0,
  3956. HTML: 1
  3957. };
  3958. /**
  3959. * @enum {number}
  3960. */
  3961. proto.base.v1.CriterionType = {
  3962. CRUNKNOW: 0,
  3963. CRORDER: 1,
  3964. CRNUM: 2
  3965. };
  3966. /**
  3967. * @enum {number}
  3968. */
  3969. proto.base.v1.CType = {
  3970. UNKNOWTYPE: 0,
  3971. BEGINTYPE: 1,
  3972. MIDDLETYPE: 2,
  3973. ENDTYPE: 3
  3974. };
  3975. /**
  3976. * @enum {number}
  3977. */
  3978. proto.base.v1.StatusType = {
  3979. UNKNOWSTATUS: 0,
  3980. NORMALSTATUS: 1,
  3981. DISABLEDSTATUS: 8,
  3982. DELETESTATUS: 9
  3983. };
  3984. /**
  3985. * @enum {number}
  3986. */
  3987. proto.base.v1.HrBandType = {
  3988. UNKNOWHRBAND: 0,
  3989. USEHRBAND: 1,
  3990. NOTUSEHRBAND: 2
  3991. };
  3992. goog.object.extend(exports, proto.base.v1);