| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447 |
- /**
- * @fileoverview gRPC-Web generated client stub for to.v1
- * @enhanceable
- * @public
- */
- // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
- // versions:
- // protoc-gen-grpc-web v1.4.2
- // protoc v3.20.3
- // source: track_offical.proto
- /* eslint-disable */
- // @ts-nocheck
- const grpc = {};
- grpc.web = require('grpc-web');
- var base_pb = require('./base_pb.js')
- const proto = {};
- proto.to = {};
- proto.to.v1 = require('./track_offical_pb.js');
- /**
- * @param {string} hostname
- * @param {?Object} credentials
- * @param {?grpc.web.ClientOptions} options
- * @constructor
- * @struct
- * @final
- */
- proto.to.v1.ApiToClient =
- function(hostname, credentials, options) {
- if (!options) options = {};
- options.format = 'text';
- /**
- * @private @const {!grpc.web.GrpcWebClientBase} The client
- */
- this.client_ = new grpc.web.GrpcWebClientBase(options);
- /**
- * @private @const {string} The hostname
- */
- this.hostname_ = hostname.replace(/\/+$/, '');
- };
- /**
- * @param {string} hostname
- * @param {?Object} credentials
- * @param {?grpc.web.ClientOptions} options
- * @constructor
- * @struct
- * @final
- */
- proto.to.v1.ApiToPromiseClient =
- function(hostname, credentials, options) {
- if (!options) options = {};
- options.format = 'text';
- /**
- * @private @const {!grpc.web.GrpcWebClientBase} The client
- */
- this.client_ = new grpc.web.GrpcWebClientBase(options);
- /**
- * @private @const {string} The hostname
- */
- this.hostname_ = hostname.replace(/\/+$/, '');
- };
- /**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.base.v1.DefaultRequest,
- * !proto.to.v1.ToActionListReply>}
- */
- const methodDescriptor_ApiTo_ToActionList = new grpc.web.MethodDescriptor(
- '/to.v1.ApiTo/ToActionList',
- grpc.web.MethodType.UNARY,
- base_pb.DefaultRequest,
- proto.to.v1.ToActionListReply,
- /**
- * @param {!proto.base.v1.DefaultRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.to.v1.ToActionListReply.deserializeBinary
- );
- /**
- * @param {!proto.base.v1.DefaultRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionListReply)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionListReply>|undefined}
- * The XHR Node Readable Stream
- */
- proto.to.v1.ApiToClient.prototype.toActionList =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/to.v1.ApiTo/ToActionList',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToActionList,
- callback);
- };
- /**
- * @param {!proto.base.v1.DefaultRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.to.v1.ToActionListReply>}
- * Promise that resolves to the response
- */
- proto.to.v1.ApiToPromiseClient.prototype.toActionList =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/to.v1.ApiTo/ToActionList',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToActionList);
- };
- /**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.base.v1.IdRequest,
- * !proto.to.v1.ToActionDetailReply>}
- */
- const methodDescriptor_ApiTo_ToActionDetail = new grpc.web.MethodDescriptor(
- '/to.v1.ApiTo/ToActionDetail',
- grpc.web.MethodType.UNARY,
- base_pb.IdRequest,
- proto.to.v1.ToActionDetailReply,
- /**
- * @param {!proto.base.v1.IdRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.to.v1.ToActionDetailReply.deserializeBinary
- );
- /**
- * @param {!proto.base.v1.IdRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionDetailReply)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionDetailReply>|undefined}
- * The XHR Node Readable Stream
- */
- proto.to.v1.ApiToClient.prototype.toActionDetail =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/to.v1.ApiTo/ToActionDetail',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToActionDetail,
- callback);
- };
- /**
- * @param {!proto.base.v1.IdRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.to.v1.ToActionDetailReply>}
- * Promise that resolves to the response
- */
- proto.to.v1.ApiToPromiseClient.prototype.toActionDetail =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/to.v1.ApiTo/ToActionDetail',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToActionDetail);
- };
- /**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.base.v1.IdRequest,
- * !proto.to.v1.ToActionUsersDetailReply>}
- */
- const methodDescriptor_ApiTo_ToUsersInGameDetail = new grpc.web.MethodDescriptor(
- '/to.v1.ApiTo/ToUsersInGameDetail',
- grpc.web.MethodType.UNARY,
- base_pb.IdRequest,
- proto.to.v1.ToActionUsersDetailReply,
- /**
- * @param {!proto.base.v1.IdRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.to.v1.ToActionUsersDetailReply.deserializeBinary
- );
- /**
- * @param {!proto.base.v1.IdRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionUsersDetailReply)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToActionUsersDetailReply>|undefined}
- * The XHR Node Readable Stream
- */
- proto.to.v1.ApiToClient.prototype.toUsersInGameDetail =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/to.v1.ApiTo/ToUsersInGameDetail',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToUsersInGameDetail,
- callback);
- };
- /**
- * @param {!proto.base.v1.IdRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.to.v1.ToActionUsersDetailReply>}
- * Promise that resolves to the response
- */
- proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameDetail =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/to.v1.ApiTo/ToUsersInGameDetail',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToUsersInGameDetail);
- };
- /**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.base.v1.IdRequest,
- * !proto.to.v1.ToUserGpsQueryReply>}
- */
- const methodDescriptor_ApiTo_ToUsersInGameGpsQuery = new grpc.web.MethodDescriptor(
- '/to.v1.ApiTo/ToUsersInGameGpsQuery',
- grpc.web.MethodType.UNARY,
- base_pb.IdRequest,
- proto.to.v1.ToUserGpsQueryReply,
- /**
- * @param {!proto.base.v1.IdRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.to.v1.ToUserGpsQueryReply.deserializeBinary
- );
- /**
- * @param {!proto.base.v1.IdRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
- * The XHR Node Readable Stream
- */
- proto.to.v1.ApiToClient.prototype.toUsersInGameGpsQuery =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/to.v1.ApiTo/ToUsersInGameGpsQuery',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToUsersInGameGpsQuery,
- callback);
- };
- /**
- * @param {!proto.base.v1.IdRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
- * Promise that resolves to the response
- */
- proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameGpsQuery =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/to.v1.ApiTo/ToUsersInGameGpsQuery',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToUsersInGameGpsQuery);
- };
- /**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
- * !proto.to.v1.ToUserGpsQueryReply>}
- */
- const methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery = new grpc.web.MethodDescriptor(
- '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
- grpc.web.MethodType.UNARY,
- proto.to.v1.ToUsersInGameHistoryGpsQueryRequest,
- proto.to.v1.ToUserGpsQueryReply,
- /**
- * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.to.v1.ToUserGpsQueryReply.deserializeBinary
- );
- /**
- * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
- * The XHR Node Readable Stream
- */
- proto.to.v1.ApiToClient.prototype.toUsersInGameHistoryGpsQuery =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery,
- callback);
- };
- /**
- * @param {!proto.to.v1.ToUsersInGameHistoryGpsQueryRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
- * Promise that resolves to the response
- */
- proto.to.v1.ApiToPromiseClient.prototype.toUsersInGameHistoryGpsQuery =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/to.v1.ApiTo/ToUsersInGameHistoryGpsQuery',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToUsersInGameHistoryGpsQuery);
- };
- /**
- * @const
- * @type {!grpc.web.MethodDescriptor<
- * !proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
- * !proto.to.v1.ToUserGpsQueryReply>}
- */
- const methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery = new grpc.web.MethodDescriptor(
- '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
- grpc.web.MethodType.UNARY,
- proto.to.v1.ToAnyUserHistoryGpsQueryRequest,
- proto.to.v1.ToUserGpsQueryReply,
- /**
- * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request
- * @return {!Uint8Array}
- */
- function(request) {
- return request.serializeBinary();
- },
- proto.to.v1.ToUserGpsQueryReply.deserializeBinary
- );
- /**
- * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
- * request proto
- * @param {?Object<string, string>} metadata User defined
- * call metadata
- * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)}
- * callback The callback function(error, response)
- * @return {!grpc.web.ClientReadableStream<!proto.to.v1.ToUserGpsQueryReply>|undefined}
- * The XHR Node Readable Stream
- */
- proto.to.v1.ApiToClient.prototype.toAnyUserHistoryGpsQuery =
- function(request, metadata, callback) {
- return this.client_.rpcCall(this.hostname_ +
- '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery,
- callback);
- };
- /**
- * @param {!proto.to.v1.ToAnyUserHistoryGpsQueryRequest} request The
- * request proto
- * @param {?Object<string, string>=} metadata User defined
- * call metadata
- * @return {!Promise<!proto.to.v1.ToUserGpsQueryReply>}
- * Promise that resolves to the response
- */
- proto.to.v1.ApiToPromiseClient.prototype.toAnyUserHistoryGpsQuery =
- function(request, metadata) {
- return this.client_.unaryCall(this.hostname_ +
- '/to.v1.ApiTo/ToAnyUserHistoryGpsQuery',
- request,
- metadata || {},
- methodDescriptor_ApiTo_ToAnyUserHistoryGpsQuery);
- };
- module.exports = proto.to.v1;
|