track_offical_pb.js 105 KB

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