/** * @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} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionListReply)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream|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=} metadata User defined * call metadata * @return {!Promise} * 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} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionDetailReply)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream|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=} metadata User defined * call metadata * @return {!Promise} * 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} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToActionUsersDetailReply)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream|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=} metadata User defined * call metadata * @return {!Promise} * 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} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream|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=} metadata User defined * call metadata * @return {!Promise} * 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} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream|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=} metadata User defined * call metadata * @return {!Promise} * 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} metadata User defined * call metadata * @param {function(?grpc.web.RpcError, ?proto.to.v1.ToUserGpsQueryReply)} * callback The callback function(error, response) * @return {!grpc.web.ClientReadableStream|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=} metadata User defined * call metadata * @return {!Promise} * 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;