base_pb.js 118 KB

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