track_offical_grpc_web_pb.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. /**
  2. * @fileoverview gRPC-Web generated client stub for to.v1
  3. * @enhanceable
  4. * @public
  5. */
  6. // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
  7. // versions:
  8. // protoc-gen-grpc-web v1.4.2
  9. // protoc v3.20.3
  10. // source: track_offical.proto
  11. /* eslint-disable */
  12. // @ts-nocheck
  13. const grpc = {};
  14. grpc.web = require('grpc-web');
  15. var base_pb = require('./base_pb.js')
  16. const proto = {};
  17. proto.to = {};
  18. proto.to.v1 = require('./track_offical_pb.js');
  19. /**
  20. * @param {string} hostname
  21. * @param {?Object} credentials
  22. * @param {?grpc.web.ClientOptions} options
  23. * @constructor
  24. * @struct
  25. * @final
  26. */
  27. proto.to.v1.ApiToClient =
  28. function(hostname, credentials, options) {
  29. if (!options) options = {};
  30. options.format = 'text';
  31. /**
  32. * @private @const {!grpc.web.GrpcWebClientBase} The client
  33. */
  34. this.client_ = new grpc.web.GrpcWebClientBase(options);
  35. /**
  36. * @private @const {string} The hostname
  37. */
  38. this.hostname_ = hostname.replace(/\/+$/, '');
  39. };
  40. /**
  41. * @param {string} hostname
  42. * @param {?Object} credentials
  43. * @param {?grpc.web.ClientOptions} options
  44. * @constructor
  45. * @struct
  46. * @final
  47. */
  48. proto.to.v1.ApiToPromiseClient =
  49. function(hostname, credentials, options) {
  50. if (!options) options = {};
  51. options.format = 'text';
  52. /**
  53. * @private @const {!grpc.web.GrpcWebClientBase} The client
  54. */
  55. this.client_ = new grpc.web.GrpcWebClientBase(options);
  56. /**
  57. * @private @const {string} The hostname
  58. */
  59. this.hostname_ = hostname.replace(/\/+$/, '');
  60. };
  61. /**
  62. * @const
  63. * @type {!grpc.web.MethodDescriptor<
  64. * !proto.to.v1.ToSendCodeToPhoneRequest,
  65. * !proto.base.v1.DefaultReply>}
  66. */
  67. const methodDescriptor_ApiTo_ToSendCodeToPhone = new grpc.web.MethodDescriptor(
  68. '/to.v1.ApiTo/ToSendCodeToPhone',
  69. grpc.web.MethodType.UNARY,
  70. proto.to.v1.ToSendCodeToPhoneRequest,
  71. base_pb.DefaultReply,
  72. /**
  73. * @param {!proto.to.v1.ToSendCodeToPhoneRequest} request
  74. * @return {!Uint8Array}
  75. */
  76. function(request) {
  77. return request.serializeBinary();
  78. },
  79. base_pb.DefaultReply.deserializeBinary
  80. );
  81. /**
  82. * @param {!proto.to.v1.ToSendCodeToPhoneRequest} request The
  83. * request proto
  84. * @param {?Object<string, string>} metadata User defined
  85. * call metadata
  86. * @param {function(?grpc.web.RpcError, ?proto.base.v1.DefaultReply)}
  87. * callback The callback function(error, response)
  88. * @return {!grpc.web.ClientReadableStream<!proto.base.v1.DefaultReply>|undefined}
  89. * The XHR Node Readable Stream
  90. */
  91. proto.to.v1.ApiToClient.prototype.toSendCodeToPhone =
  92. function(request, metadata, callback) {
  93. return this.client_.rpcCall(this.hostname_ +
  94. '/to.v1.ApiTo/ToSendCodeToPhone',
  95. request,
  96. metadata || {},
  97. methodDescriptor_ApiTo_ToSendCodeToPhone,
  98. callback);
  99. };
  100. /**
  101. * @param {!proto.to.v1.ToSendCodeToPhoneRequest} request The
  102. * request proto
  103. * @param {?Object<string, string>=} metadata User defined
  104. * call metadata
  105. * @return {!Promise<!proto.base.v1.DefaultReply>}
  106. * Promise that resolves to the response
  107. */
  108. proto.to.v1.ApiToPromiseClient.prototype.toSendCodeToPhone =
  109. function(request, metadata) {
  110. return this.client_.unaryCall(this.hostname_ +
  111. '/to.v1.ApiTo/ToSendCodeToPhone',
  112. request,
  113. metadata || {},
  114. methodDescriptor_ApiTo_ToSendCodeToPhone);
  115. };
  116. /**
  117. * @const
  118. * @type {!grpc.web.MethodDescriptor<
  119. * !proto.base.v1.GetSmsSendLeftTimeRequest,
  120. * !proto.base.v1.GetSmsSendLeftTimeReply>}
  121. */
  122. const methodDescriptor_ApiTo_ToGetSmsSendLeftTime = new grpc.web.MethodDescriptor(
  123. '/to.v1.ApiTo/ToGetSmsSendLeftTime',
  124. grpc.web.MethodType.UNARY,
  125. base_pb.GetSmsSendLeftTimeRequest,
  126. base_pb.GetSmsSendLeftTimeReply,
  127. /**
  128. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} request
  129. * @return {!Uint8Array}
  130. */
  131. function(request) {
  132. return request.serializeBinary();
  133. },
  134. base_pb.GetSmsSendLeftTimeReply.deserializeBinary
  135. );
  136. /**
  137. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} request The
  138. * request proto
  139. * @param {?Object<string, string>} metadata User defined
  140. * call metadata
  141. * @param {function(?grpc.web.RpcError, ?proto.base.v1.GetSmsSendLeftTimeReply)}
  142. * callback The callback function(error, response)
  143. * @return {!grpc.web.ClientReadableStream<!proto.base.v1.GetSmsSendLeftTimeReply>|undefined}
  144. * The XHR Node Readable Stream
  145. */
  146. proto.to.v1.ApiToClient.prototype.toGetSmsSendLeftTime =
  147. function(request, metadata, callback) {
  148. return this.client_.rpcCall(this.hostname_ +
  149. '/to.v1.ApiTo/ToGetSmsSendLeftTime',
  150. request,
  151. metadata || {},
  152. methodDescriptor_ApiTo_ToGetSmsSendLeftTime,
  153. callback);
  154. };
  155. /**
  156. * @param {!proto.base.v1.GetSmsSendLeftTimeRequest} request The
  157. * request proto
  158. * @param {?Object<string, string>=} metadata User defined
  159. * call metadata
  160. * @return {!Promise<!proto.base.v1.GetSmsSendLeftTimeReply>}
  161. * Promise that resolves to the response
  162. */
  163. proto.to.v1.ApiToPromiseClient.prototype.toGetSmsSendLeftTime =
  164. function(request, metadata) {
  165. return this.client_.unaryCall(this.hostname_ +
  166. '/to.v1.ApiTo/ToGetSmsSendLeftTime',
  167. request,
  168. metadata || {},
  169. methodDescriptor_ApiTo_ToGetSmsSendLeftTime);
  170. };
  171. /**
  172. * @const
  173. * @type {!grpc.web.MethodDescriptor<
  174. * !proto.to.v1.ToSignInRequest,
  175. * !proto.base.v1.SignInReply>}
  176. */
  177. const methodDescriptor_ApiTo_ToSignIn = new grpc.web.MethodDescriptor(
  178. '/to.v1.ApiTo/ToSignIn',
  179. grpc.web.MethodType.UNARY,
  180. proto.to.v1.ToSignInRequest,
  181. base_pb.SignInReply,
  182. /**
  183. * @param {!proto.to.v1.ToSignInRequest} request
  184. * @return {!Uint8Array}
  185. */
  186. function(request) {
  187. return request.serializeBinary();
  188. },
  189. base_pb.SignInReply.deserializeBinary
  190. );
  191. /**
  192. * @param {!proto.to.v1.ToSignInRequest} request The
  193. * request proto
  194. * @param {?Object<string, string>} metadata User defined
  195. * call metadata
  196. * @param {function(?grpc.web.RpcError, ?proto.base.v1.SignInReply)}
  197. * callback The callback function(error, response)
  198. * @return {!grpc.web.ClientReadableStream<!proto.base.v1.SignInReply>|undefined}
  199. * The XHR Node Readable Stream
  200. */
  201. proto.to.v1.ApiToClient.prototype.toSignIn =
  202. function(request, metadata, callback) {
  203. return this.client_.rpcCall(this.hostname_ +
  204. '/to.v1.ApiTo/ToSignIn',
  205. request,
  206. metadata || {},
  207. methodDescriptor_ApiTo_ToSignIn,
  208. callback);
  209. };
  210. /**
  211. * @param {!proto.to.v1.ToSignInRequest} request The
  212. * request proto
  213. * @param {?Object<string, string>=} metadata User defined
  214. * call metadata
  215. * @return {!Promise<!proto.base.v1.SignInReply>}
  216. * Promise that resolves to the response
  217. */
  218. proto.to.v1.ApiToPromiseClient.prototype.toSignIn =
  219. function(request, metadata) {
  220. return this.client_.unaryCall(this.hostname_ +
  221. '/to.v1.ApiTo/ToSignIn',
  222. request,
  223. metadata || {},
  224. methodDescriptor_ApiTo_ToSignIn);
  225. };
  226. /**
  227. * @const
  228. * @type {!grpc.web.MethodDescriptor<
  229. * !proto.to.v1.ToSignOutRequest,
  230. * !proto.base.v1.DefaultReply>}
  231. */
  232. const methodDescriptor_ApiTo_ToSignOut = new grpc.web.MethodDescriptor(
  233. '/to.v1.ApiTo/ToSignOut',
  234. grpc.web.MethodType.UNARY,
  235. proto.to.v1.ToSignOutRequest,
  236. base_pb.DefaultReply,
  237. /**
  238. * @param {!proto.to.v1.ToSignOutRequest} request
  239. * @return {!Uint8Array}
  240. */
  241. function(request) {
  242. return request.serializeBinary();
  243. },
  244. base_pb.DefaultReply.deserializeBinary
  245. );
  246. /**
  247. * @param {!proto.to.v1.ToSignOutRequest} request The
  248. * request proto
  249. * @param {?Object<string, string>} metadata User defined
  250. * call metadata
  251. * @param {function(?grpc.web.RpcError, ?proto.base.v1.DefaultReply)}
  252. * callback The callback function(error, response)
  253. * @return {!grpc.web.ClientReadableStream<!proto.base.v1.DefaultReply>|undefined}
  254. * The XHR Node Readable Stream
  255. */
  256. proto.to.v1.ApiToClient.prototype.toSignOut =
  257. function(request, metadata, callback) {
  258. return this.client_.rpcCall(this.hostname_ +
  259. '/to.v1.ApiTo/ToSignOut',
  260. request,
  261. metadata || {},
  262. methodDescriptor_ApiTo_ToSignOut,
  263. callback);
  264. };
  265. /**
  266. * @param {!proto.to.v1.ToSignOutRequest} request The
  267. * request proto
  268. * @param {?Object<string, string>=} metadata User defined
  269. * call metadata
  270. * @return {!Promise<!proto.base.v1.DefaultReply>}
  271. * Promise that resolves to the response
  272. */
  273. proto.to.v1.ApiToPromiseClient.prototype.toSignOut =
  274. function(request, metadata) {
  275. return this.client_.unaryCall(this.hostname_ +
  276. '/to.v1.ApiTo/ToSignOut',
  277. request,
  278. metadata || {},
  279. methodDescriptor_ApiTo_ToSignOut);
  280. };
  281. /**
  282. * @const
  283. * @type {!grpc.web.MethodDescriptor<
  284. * !proto.base.v1.DefaultRequest,
  285. * !proto.to.v1.ToActionListReply>}
  286. */
  287. const methodDescriptor_ApiTo_ToActionList = new grpc.web.MethodDescriptor(
  288. '/to.v1.ApiTo/ToActionList',
  289. grpc.web.MethodType.UNARY,
  290. base_pb.DefaultRequest,
  291. proto.to.v1.ToActionListReply,
  292. /**
  293. * @param {!proto.base.v1.DefaultRequest} request
  294. * @return {!Uint8Array}
  295. */
  296. function(request) {
  297. return request.serializeBinary();
  298. },
  299. proto.to.v1.ToActionListReply.deserializeBinary
  300. );
  301. /**
  302. * @param {!proto.base.v1.DefaultRequest} request The
  303. * request proto
  304. * @param {?Object<string, string>} metadata User defined
  305. * call metadata
  306. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionListReply)}
  307. * callback The callback function(error, response)
  308. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionListReply>|undefined}
  309. * The XHR Node Readable Stream
  310. */
  311. proto.to.v1.ApiToClient.prototype.toActionList =
  312. function(request, metadata, callback) {
  313. return this.client_.rpcCall(this.hostname_ +
  314. '/to.v1.ApiTo/ToActionList',
  315. request,
  316. metadata || {},
  317. methodDescriptor_ApiTo_ToActionList,
  318. callback);
  319. };
  320. /**
  321. * @param {!proto.base.v1.DefaultRequest} request The
  322. * request proto
  323. * @param {?Object<string, string>=} metadata User defined
  324. * call metadata
  325. * @return {!Promise<!proto.to.v1.ToActionListReply>}
  326. * Promise that resolves to the response
  327. */
  328. proto.to.v1.ApiToPromiseClient.prototype.toActionList =
  329. function(request, metadata) {
  330. return this.client_.unaryCall(this.hostname_ +
  331. '/to.v1.ApiTo/ToActionList',
  332. request,
  333. metadata || {},
  334. methodDescriptor_ApiTo_ToActionList);
  335. };
  336. /**
  337. * @const
  338. * @type {!grpc.web.MethodDescriptor<
  339. * !proto.base.v1.IdRequest,
  340. * !proto.to.v1.ToActionDetailReply>}
  341. */
  342. const methodDescriptor_ApiTo_ToActionDetail = new grpc.web.MethodDescriptor(
  343. '/to.v1.ApiTo/ToActionDetail',
  344. grpc.web.MethodType.UNARY,
  345. base_pb.IdRequest,
  346. proto.to.v1.ToActionDetailReply,
  347. /**
  348. * @param {!proto.base.v1.IdRequest} request
  349. * @return {!Uint8Array}
  350. */
  351. function(request) {
  352. return request.serializeBinary();
  353. },
  354. proto.to.v1.ToActionDetailReply.deserializeBinary
  355. );
  356. /**
  357. * @param {!proto.base.v1.IdRequest} request The
  358. * request proto
  359. * @param {?Object<string, string>} metadata User defined
  360. * call metadata
  361. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionDetailReply)}
  362. * callback The callback function(error, response)
  363. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionDetailReply>|undefined}
  364. * The XHR Node Readable Stream
  365. */
  366. proto.to.v1.ApiToClient.prototype.toActionDetail =
  367. function(request, metadata, callback) {
  368. return this.client_.rpcCall(this.hostname_ +
  369. '/to.v1.ApiTo/ToActionDetail',
  370. request,
  371. metadata || {},
  372. methodDescriptor_ApiTo_ToActionDetail,
  373. callback);
  374. };
  375. /**
  376. * @param {!proto.base.v1.IdRequest} request The
  377. * request proto
  378. * @param {?Object<string, string>=} metadata User defined
  379. * call metadata
  380. * @return {!Promise<!proto.to.v1.ToActionDetailReply>}
  381. * Promise that resolves to the response
  382. */
  383. proto.to.v1.ApiToPromiseClient.prototype.toActionDetail =
  384. function(request, metadata) {
  385. return this.client_.unaryCall(this.hostname_ +
  386. '/to.v1.ApiTo/ToActionDetail',
  387. request,
  388. metadata || {},
  389. methodDescriptor_ApiTo_ToActionDetail);
  390. };
  391. /**
  392. * @const
  393. * @type {!grpc.web.MethodDescriptor<
  394. * !proto.base.v1.IdRequest,
  395. * !proto.to.v1.ToActionUsersDetailReply>}
  396. */
  397. const methodDescriptor_ApiTo_ToUsersInGameDetail = new grpc.web.MethodDescriptor(
  398. '/to.v1.ApiTo/ToUsersInGameDetail',
  399. grpc.web.MethodType.UNARY,
  400. base_pb.IdRequest,
  401. proto.to.v1.ToActionUsersDetailReply,
  402. /**
  403. * @param {!proto.base.v1.IdRequest} request
  404. * @return {!Uint8Array}
  405. */
  406. function(request) {
  407. return request.serializeBinary();
  408. },
  409. proto.to.v1.ToActionUsersDetailReply.deserializeBinary
  410. );
  411. /**
  412. * @param {!proto.base.v1.IdRequest} request The
  413. * request proto
  414. * @param {?Object<string, string>} metadata User defined
  415. * call metadata
  416. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionUsersDetailReply)}
  417. * callback The callback function(error, response)
  418. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionUsersDetailReply>|undefined}
  419. * The XHR Node Readable Stream
  420. */
  421. proto.to.v1.ApiToClient.prototype.toUsersInGameDetail =
  422. function(request, metadata, callback) {
  423. return this.client_.rpcCall(this.hostname_ +
  424. '/to.v1.ApiTo/ToUsersInGameDetail',
  425. request,
  426. metadata || {},
  427. methodDescriptor_ApiTo_ToUsersInGameDetail,
  428. callback);
  429. };
  430. /**
  431. * @param {!proto.base.v1.IdRequest} request The
  432. * request proto
  433. * @param {?Object<string, string>=} metadata User defined
  434. * call metadata
  435. * @return {!Promise<!proto.to.v1.ToActionUsersDetailReply>}
  436. * Promise that resolves to the response
  437. */
  438. proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameDetail =
  439. function(request, metadata) {
  440. return this.client_.unaryCall(this.hostname_ +
  441. '/to.v1.ApiTo/ToUsersInGameDetail',
  442. request,
  443. metadata || {},
  444. methodDescriptor_ApiTo_ToUsersInGameDetail);
  445. };
  446. /**
  447. * @const
  448. * @type {!grpc.web.MethodDescriptor<
  449. * !proto.base.v1.IdRequest,
  450. * !proto.to.v1.ToUserGpsQueryReply>}
  451. */
  452. const methodDescriptor_ApiTo_ToUsersInGameGpsQuery = new grpc.web.MethodDescriptor(
  453. '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  454. grpc.web.MethodType.UNARY,
  455. base_pb.IdRequest,
  456. proto.to.v1.ToUserGpsQueryReply,
  457. /**
  458. * @param {!proto.base.v1.IdRequest} request
  459. * @return {!Uint8Array}
  460. */
  461. function(request) {
  462. return request.serializeBinary();
  463. },
  464. proto.to.v1.ToUserGpsQueryReply.deserializeBinary
  465. );
  466. /**
  467. * @param {!proto.base.v1.IdRequest} request The
  468. * request proto
  469. * @param {?Object<string, string>} metadata User defined
  470. * call metadata
  471. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
  472. * callback The callback function(error, response)
  473. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
  474. * The XHR Node Readable Stream
  475. */
  476. proto.to.v1.ApiToClient.prototype.toUsersInGameGpsQuery =
  477. function(request, metadata, callback) {
  478. return this.client_.rpcCall(this.hostname_ +
  479. '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  480. request,
  481. metadata || {},
  482. methodDescriptor_ApiTo_ToUsersInGameGpsQuery,
  483. callback);
  484. };
  485. /**
  486. * @param {!proto.base.v1.IdRequest} request The
  487. * request proto
  488. * @param {?Object<string, string>=} metadata User defined
  489. * call metadata
  490. * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
  491. * Promise that resolves to the response
  492. */
  493. proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameGpsQuery =
  494. function(request, metadata) {
  495. return this.client_.unaryCall(this.hostname_ +
  496. '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  497. request,
  498. metadata || {},
  499. methodDescriptor_ApiTo_ToUsersInGameGpsQuery);
  500. };
  501. /**
  502. * @const
  503. * @type {!grpc.web.MethodDescriptor<
  504. * !proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
  505. * !proto.to.v1.ToUserGpsQueryReply>}
  506. */
  507. const methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery = new grpc.web.MethodDescriptor(
  508. '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  509. grpc.web.MethodType.UNARY,
  510. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
  511. proto.to.v1.ToUserGpsQueryReply,
  512. /**
  513. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request
  514. * @return {!Uint8Array}
  515. */
  516. function(request) {
  517. return request.serializeBinary();
  518. },
  519. proto.to.v1.ToUserGpsQueryReply.deserializeBinary
  520. );
  521. /**
  522. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
  523. * request proto
  524. * @param {?Object<string, string>} metadata User defined
  525. * call metadata
  526. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
  527. * callback The callback function(error, response)
  528. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
  529. * The XHR Node Readable Stream
  530. */
  531. proto.to.v1.ApiToClient.prototype.toUsersInGameHistoryGpsQuery =
  532. function(request, metadata, callback) {
  533. return this.client_.rpcCall(this.hostname_ +
  534. '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  535. request,
  536. metadata || {},
  537. methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery,
  538. callback);
  539. };
  540. /**
  541. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
  542. * request proto
  543. * @param {?Object<string, string>=} metadata User defined
  544. * call metadata
  545. * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
  546. * Promise that resolves to the response
  547. */
  548. proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameHistoryGpsQuery =
  549. function(request, metadata) {
  550. return this.client_.unaryCall(this.hostname_ +
  551. '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  552. request,
  553. metadata || {},
  554. methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery);
  555. };
  556. /**
  557. * @const
  558. * @type {!grpc.web.MethodDescriptor<
  559. * !proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
  560. * !proto.to.v1.ToUserGpsQueryReply>}
  561. */
  562. const methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery = new grpc.web.MethodDescriptor(
  563. '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  564. grpc.web.MethodType.UNARY,
  565. proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
  566. proto.to.v1.ToUserGpsQueryReply,
  567. /**
  568. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request
  569. * @return {!Uint8Array}
  570. */
  571. function(request) {
  572. return request.serializeBinary();
  573. },
  574. proto.to.v1.ToUserGpsQueryReply.deserializeBinary
  575. );
  576. /**
  577. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
  578. * request proto
  579. * @param {?Object<string, string>} metadata User defined
  580. * call metadata
  581. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
  582. * callback The callback function(error, response)
  583. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
  584. * The XHR Node Readable Stream
  585. */
  586. proto.to.v1.ApiToClient.prototype.toAnyUserHistoryGpsQuery =
  587. function(request, metadata, callback) {
  588. return this.client_.rpcCall(this.hostname_ +
  589. '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  590. request,
  591. metadata || {},
  592. methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery,
  593. callback);
  594. };
  595. /**
  596. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
  597. * request proto
  598. * @param {?Object<string, string>=} metadata User defined
  599. * call metadata
  600. * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
  601. * Promise that resolves to the response
  602. */
  603. proto.to.v1.ApiToPromiseClient.prototype.toAnyUserHistoryGpsQuery =
  604. function(request, metadata) {
  605. return this.client_.unaryCall(this.hostname_ +
  606. '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  607. request,
  608. metadata || {},
  609. methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery);
  610. };
  611. /**
  612. * @const
  613. * @type {!grpc.web.MethodDescriptor<
  614. * !proto.base.v1.DefaultRequest,
  615. * !proto.base.v1.DefaultReply>}
  616. */
  617. const methodDescriptor_ApiTo_ToTest = new grpc.web.MethodDescriptor(
  618. '/to.v1.ApiTo/ToTest',
  619. grpc.web.MethodType.UNARY,
  620. base_pb.DefaultRequest,
  621. base_pb.DefaultReply,
  622. /**
  623. * @param {!proto.base.v1.DefaultRequest} request
  624. * @return {!Uint8Array}
  625. */
  626. function(request) {
  627. return request.serializeBinary();
  628. },
  629. base_pb.DefaultReply.deserializeBinary
  630. );
  631. /**
  632. * @param {!proto.base.v1.DefaultRequest} request The
  633. * request proto
  634. * @param {?Object<string, string>} metadata User defined
  635. * call metadata
  636. * @param {function(?grpc.web.RpcError, ?proto.base.v1.DefaultReply)}
  637. * callback The callback function(error, response)
  638. * @return {!grpc.web.ClientReadableStream<!proto.base.v1.DefaultReply>|undefined}
  639. * The XHR Node Readable Stream
  640. */
  641. proto.to.v1.ApiToClient.prototype.toTest =
  642. function(request, metadata, callback) {
  643. return this.client_.rpcCall(this.hostname_ +
  644. '/to.v1.ApiTo/ToTest',
  645. request,
  646. metadata || {},
  647. methodDescriptor_ApiTo_ToTest,
  648. callback);
  649. };
  650. /**
  651. * @param {!proto.base.v1.DefaultRequest} request The
  652. * request proto
  653. * @param {?Object<string, string>=} metadata User defined
  654. * call metadata
  655. * @return {!Promise<!proto.base.v1.DefaultReply>}
  656. * Promise that resolves to the response
  657. */
  658. proto.to.v1.ApiToPromiseClient.prototype.toTest =
  659. function(request, metadata) {
  660. return this.client_.unaryCall(this.hostname_ +
  661. '/to.v1.ApiTo/ToTest',
  662. request,
  663. metadata || {},
  664. methodDescriptor_ApiTo_ToTest);
  665. };
  666. module.exports = proto.to.v1;