track_offical_pb.js 87 KB

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