base_pb.js 142 KB

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