track_offical_grpc_web_pb.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  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.base.v1.DefaultRequest,
  65. * !proto.to.v1.ToActionListReply>}
  66. */
  67. const methodDescriptor_ApiTo_ToActionList = new grpc.web.MethodDescriptor(
  68. '/to.v1.ApiTo/ToActionList',
  69. grpc.web.MethodType.UNARY,
  70. base_pb.DefaultRequest,
  71. proto.to.v1.ToActionListReply,
  72. /**
  73. * @param {!proto.base.v1.DefaultRequest} request
  74. * @return {!Uint8Array}
  75. */
  76. function(request) {
  77. return request.serializeBinary();
  78. },
  79. proto.to.v1.ToActionListReply.deserializeBinary
  80. );
  81. /**
  82. * @param {!proto.base.v1.DefaultRequest} request The
  83. * request proto
  84. * @param {?Object<string, string>} metadata User defined
  85. * call metadata
  86. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionListReply)}
  87. * callback The callback function(error, response)
  88. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionListReply>|undefined}
  89. * The XHR Node Readable Stream
  90. */
  91. proto.to.v1.ApiToClient.prototype.toActionList =
  92. function(request, metadata, callback) {
  93. return this.client_.rpcCall(this.hostname_ +
  94. '/to.v1.ApiTo/ToActionList',
  95. request,
  96. metadata || {},
  97. methodDescriptor_ApiTo_ToActionList,
  98. callback);
  99. };
  100. /**
  101. * @param {!proto.base.v1.DefaultRequest} request The
  102. * request proto
  103. * @param {?Object<string, string>=} metadata User defined
  104. * call metadata
  105. * @return {!Promise<!proto.to.v1.ToActionListReply>}
  106. * Promise that resolves to the response
  107. */
  108. proto.to.v1.ApiToPromiseClient.prototype.toActionList =
  109. function(request, metadata) {
  110. return this.client_.unaryCall(this.hostname_ +
  111. '/to.v1.ApiTo/ToActionList',
  112. request,
  113. metadata || {},
  114. methodDescriptor_ApiTo_ToActionList);
  115. };
  116. /**
  117. * @const
  118. * @type {!grpc.web.MethodDescriptor<
  119. * !proto.base.v1.IdRequest,
  120. * !proto.to.v1.ToActionDetailReply>}
  121. */
  122. const methodDescriptor_ApiTo_ToActionDetail = new grpc.web.MethodDescriptor(
  123. '/to.v1.ApiTo/ToActionDetail',
  124. grpc.web.MethodType.UNARY,
  125. base_pb.IdRequest,
  126. proto.to.v1.ToActionDetailReply,
  127. /**
  128. * @param {!proto.base.v1.IdRequest} request
  129. * @return {!Uint8Array}
  130. */
  131. function(request) {
  132. return request.serializeBinary();
  133. },
  134. proto.to.v1.ToActionDetailReply.deserializeBinary
  135. );
  136. /**
  137. * @param {!proto.base.v1.IdRequest} request The
  138. * request proto
  139. * @param {?Object<string, string>} metadata User defined
  140. * call metadata
  141. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionDetailReply)}
  142. * callback The callback function(error, response)
  143. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionDetailReply>|undefined}
  144. * The XHR Node Readable Stream
  145. */
  146. proto.to.v1.ApiToClient.prototype.toActionDetail =
  147. function(request, metadata, callback) {
  148. return this.client_.rpcCall(this.hostname_ +
  149. '/to.v1.ApiTo/ToActionDetail',
  150. request,
  151. metadata || {},
  152. methodDescriptor_ApiTo_ToActionDetail,
  153. callback);
  154. };
  155. /**
  156. * @param {!proto.base.v1.IdRequest} request The
  157. * request proto
  158. * @param {?Object<string, string>=} metadata User defined
  159. * call metadata
  160. * @return {!Promise<!proto.to.v1.ToActionDetailReply>}
  161. * Promise that resolves to the response
  162. */
  163. proto.to.v1.ApiToPromiseClient.prototype.toActionDetail =
  164. function(request, metadata) {
  165. return this.client_.unaryCall(this.hostname_ +
  166. '/to.v1.ApiTo/ToActionDetail',
  167. request,
  168. metadata || {},
  169. methodDescriptor_ApiTo_ToActionDetail);
  170. };
  171. /**
  172. * @const
  173. * @type {!grpc.web.MethodDescriptor<
  174. * !proto.base.v1.IdRequest,
  175. * !proto.to.v1.ToActionUsersDetailReply>}
  176. */
  177. const methodDescriptor_ApiTo_ToUsersInGameDetail = new grpc.web.MethodDescriptor(
  178. '/to.v1.ApiTo/ToUsersInGameDetail',
  179. grpc.web.MethodType.UNARY,
  180. base_pb.IdRequest,
  181. proto.to.v1.ToActionUsersDetailReply,
  182. /**
  183. * @param {!proto.base.v1.IdRequest} request
  184. * @return {!Uint8Array}
  185. */
  186. function(request) {
  187. return request.serializeBinary();
  188. },
  189. proto.to.v1.ToActionUsersDetailReply.deserializeBinary
  190. );
  191. /**
  192. * @param {!proto.base.v1.IdRequest} request The
  193. * request proto
  194. * @param {?Object<string, string>} metadata User defined
  195. * call metadata
  196. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionUsersDetailReply)}
  197. * callback The callback function(error, response)
  198. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionUsersDetailReply>|undefined}
  199. * The XHR Node Readable Stream
  200. */
  201. proto.to.v1.ApiToClient.prototype.toUsersInGameDetail =
  202. function(request, metadata, callback) {
  203. return this.client_.rpcCall(this.hostname_ +
  204. '/to.v1.ApiTo/ToUsersInGameDetail',
  205. request,
  206. metadata || {},
  207. methodDescriptor_ApiTo_ToUsersInGameDetail,
  208. callback);
  209. };
  210. /**
  211. * @param {!proto.base.v1.IdRequest} request The
  212. * request proto
  213. * @param {?Object<string, string>=} metadata User defined
  214. * call metadata
  215. * @return {!Promise<!proto.to.v1.ToActionUsersDetailReply>}
  216. * Promise that resolves to the response
  217. */
  218. proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameDetail =
  219. function(request, metadata) {
  220. return this.client_.unaryCall(this.hostname_ +
  221. '/to.v1.ApiTo/ToUsersInGameDetail',
  222. request,
  223. metadata || {},
  224. methodDescriptor_ApiTo_ToUsersInGameDetail);
  225. };
  226. /**
  227. * @const
  228. * @type {!grpc.web.MethodDescriptor<
  229. * !proto.base.v1.IdRequest,
  230. * !proto.to.v1.ToUserGpsQueryReply>}
  231. */
  232. const methodDescriptor_ApiTo_ToUsersInGameGpsQuery = new grpc.web.MethodDescriptor(
  233. '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  234. grpc.web.MethodType.UNARY,
  235. base_pb.IdRequest,
  236. proto.to.v1.ToUserGpsQueryReply,
  237. /**
  238. * @param {!proto.base.v1.IdRequest} request
  239. * @return {!Uint8Array}
  240. */
  241. function(request) {
  242. return request.serializeBinary();
  243. },
  244. proto.to.v1.ToUserGpsQueryReply.deserializeBinary
  245. );
  246. /**
  247. * @param {!proto.base.v1.IdRequest} request The
  248. * request proto
  249. * @param {?Object<string, string>} metadata User defined
  250. * call metadata
  251. * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
  252. * callback The callback function(error, response)
  253. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
  254. * The XHR Node Readable Stream
  255. */
  256. proto.to.v1.ApiToClient.prototype.toUsersInGameGpsQuery =
  257. function(request, metadata, callback) {
  258. return this.client_.rpcCall(this.hostname_ +
  259. '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  260. request,
  261. metadata || {},
  262. methodDescriptor_ApiTo_ToUsersInGameGpsQuery,
  263. callback);
  264. };
  265. /**
  266. * @param {!proto.base.v1.IdRequest} request The
  267. * request proto
  268. * @param {?Object<string, string>=} metadata User defined
  269. * call metadata
  270. * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
  271. * Promise that resolves to the response
  272. */
  273. proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameGpsQuery =
  274. function(request, metadata) {
  275. return this.client_.unaryCall(this.hostname_ +
  276. '/to.v1.ApiTo/ToUsersInGameGpsQuery',
  277. request,
  278. metadata || {},
  279. methodDescriptor_ApiTo_ToUsersInGameGpsQuery);
  280. };
  281. /**
  282. * @const
  283. * @type {!grpc.web.MethodDescriptor<
  284. * !proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
  285. * !proto.to.v1.ToUserGpsQueryReply>}
  286. */
  287. const methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery = new grpc.web.MethodDescriptor(
  288. '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  289. grpc.web.MethodType.UNARY,
  290. proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
  291. proto.to.v1.ToUserGpsQueryReply,
  292. /**
  293. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request
  294. * @return {!Uint8Array}
  295. */
  296. function(request) {
  297. return request.serializeBinary();
  298. },
  299. proto.to.v1.ToUserGpsQueryReply.deserializeBinary
  300. );
  301. /**
  302. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} 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.ToUserGpsQueryReply)}
  307. * callback The callback function(error, response)
  308. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
  309. * The XHR Node Readable Stream
  310. */
  311. proto.to.v1.ApiToClient.prototype.toUsersInGameHistoryGpsQuery =
  312. function(request, metadata, callback) {
  313. return this.client_.rpcCall(this.hostname_ +
  314. '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  315. request,
  316. metadata || {},
  317. methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery,
  318. callback);
  319. };
  320. /**
  321. * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
  322. * request proto
  323. * @param {?Object<string, string>=} metadata User defined
  324. * call metadata
  325. * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
  326. * Promise that resolves to the response
  327. */
  328. proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameHistoryGpsQuery =
  329. function(request, metadata) {
  330. return this.client_.unaryCall(this.hostname_ +
  331. '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
  332. request,
  333. metadata || {},
  334. methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery);
  335. };
  336. /**
  337. * @const
  338. * @type {!grpc.web.MethodDescriptor<
  339. * !proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
  340. * !proto.to.v1.ToUserGpsQueryReply>}
  341. */
  342. const methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery = new grpc.web.MethodDescriptor(
  343. '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  344. grpc.web.MethodType.UNARY,
  345. proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
  346. proto.to.v1.ToUserGpsQueryReply,
  347. /**
  348. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request
  349. * @return {!Uint8Array}
  350. */
  351. function(request) {
  352. return request.serializeBinary();
  353. },
  354. proto.to.v1.ToUserGpsQueryReply.deserializeBinary
  355. );
  356. /**
  357. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} 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.ToUserGpsQueryReply)}
  362. * callback The callback function(error, response)
  363. * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
  364. * The XHR Node Readable Stream
  365. */
  366. proto.to.v1.ApiToClient.prototype.toAnyUserHistoryGpsQuery =
  367. function(request, metadata, callback) {
  368. return this.client_.rpcCall(this.hostname_ +
  369. '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  370. request,
  371. metadata || {},
  372. methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery,
  373. callback);
  374. };
  375. /**
  376. * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
  377. * request proto
  378. * @param {?Object<string, string>=} metadata User defined
  379. * call metadata
  380. * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
  381. * Promise that resolves to the response
  382. */
  383. proto.to.v1.ApiToPromiseClient.prototype.toAnyUserHistoryGpsQuery =
  384. function(request, metadata) {
  385. return this.client_.unaryCall(this.hostname_ +
  386. '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
  387. request,
  388. metadata || {},
  389. methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery);
  390. };
  391. module.exports = proto.to.v1;