to_app_api.pbgrpc.dart 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. //
  2. // Generated code. Do not modify.
  3. // source: to_app_api.proto
  4. //
  5. // @dart = 2.12
  6. // ignore_for_file: annotate_overrides, camel_case_types, comment_references
  7. // ignore_for_file: constant_identifier_names, library_prefixes
  8. // ignore_for_file: non_constant_identifier_names, prefer_final_fields
  9. // ignore_for_file: unnecessary_import, unnecessary_this, unused_import
  10. import 'dart:async' as $async;
  11. import 'dart:core' as $core;
  12. import 'package:grpc/service_api.dart' as $grpc;
  13. import 'package:protobuf/protobuf.dart' as $pb;
  14. import 'base.pb.dart' as $1;
  15. import 'to_app_api.pb.dart' as $0;
  16. export 'to_app_api.pb.dart';
  17. @$pb.GrpcServiceName('toApp.v1.ApiToApp')
  18. class ApiToAppClient extends $grpc.Client {
  19. static final _$toSendCodeToPhoneV2 = $grpc.ClientMethod<$0.ToSendCodeToPhoneRequestV2, $1.DefaultReply>(
  20. '/toApp.v1.ApiToApp/ToSendCodeToPhoneV2',
  21. ($0.ToSendCodeToPhoneRequestV2 value) => value.writeToBuffer(),
  22. ($core.List<$core.int> value) => $1.DefaultReply.fromBuffer(value));
  23. static final _$toGetSmsSendLeftTimeV2 = $grpc.ClientMethod<$1.GetSmsSendLeftTimeRequest, $1.GetSmsSendLeftTimeReply>(
  24. '/toApp.v1.ApiToApp/ToGetSmsSendLeftTimeV2',
  25. ($1.GetSmsSendLeftTimeRequest value) => value.writeToBuffer(),
  26. ($core.List<$core.int> value) => $1.GetSmsSendLeftTimeReply.fromBuffer(value));
  27. static final _$toSignInV2 = $grpc.ClientMethod<$0.ToSignInRequestV2, $1.SignInReply>(
  28. '/toApp.v1.ApiToApp/ToSignInV2',
  29. ($0.ToSignInRequestV2 value) => value.writeToBuffer(),
  30. ($core.List<$core.int> value) => $1.SignInReply.fromBuffer(value));
  31. static final _$toSignOutV2 = $grpc.ClientMethod<$1.DefaultRequest, $1.DefaultReply>(
  32. '/toApp.v1.ApiToApp/ToSignOutV2',
  33. ($1.DefaultRequest value) => value.writeToBuffer(),
  34. ($core.List<$core.int> value) => $1.DefaultReply.fromBuffer(value));
  35. static final _$toGetServerTime = $grpc.ClientMethod<$1.DefaultRequest, $0.GetServerTimeRp>(
  36. '/toApp.v1.ApiToApp/ToGetServerTime',
  37. ($1.DefaultRequest value) => value.writeToBuffer(),
  38. ($core.List<$core.int> value) => $0.GetServerTimeRp.fromBuffer(value));
  39. static final _$toMapListV2 = $grpc.ClientMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
  40. '/toApp.v1.ApiToApp/ToMapListV2',
  41. ($0.MapListRequestV2 value) => value.writeToBuffer(),
  42. ($core.List<$core.int> value) => $0.ToMapListReplyV2.fromBuffer(value));
  43. static final _$toMapDetailV2 = $grpc.ClientMethod<$1.IdRequest, $0.ToMapInfoV2>(
  44. '/toApp.v1.ApiToApp/ToMapDetailV2',
  45. ($1.IdRequest value) => value.writeToBuffer(),
  46. ($core.List<$core.int> value) => $0.ToMapInfoV2.fromBuffer(value));
  47. static final _$toGetBinaryByMd5 = $grpc.ClientMethod<$0.ToGetBinaryByMd5Request, $1.BinaryPartV2>(
  48. '/toApp.v1.ApiToApp/ToGetBinaryByMd5',
  49. ($0.ToGetBinaryByMd5Request value) => value.writeToBuffer(),
  50. ($core.List<$core.int> value) => $1.BinaryPartV2.fromBuffer(value));
  51. static final _$toUserDetailQueryV2 = $grpc.ClientMethod<$0.ToUserDetailQueryRequestV2, $0.ToUserDetailQueryReplyV2>(
  52. '/toApp.v1.ApiToApp/ToUserDetailQueryV2',
  53. ($0.ToUserDetailQueryRequestV2 value) => value.writeToBuffer(),
  54. ($core.List<$core.int> value) => $0.ToUserDetailQueryReplyV2.fromBuffer(value));
  55. static final _$toActionBasicQuery = $grpc.ClientMethod<$1.IdRequest, $0.ToActionBasicInfo>(
  56. '/toApp.v1.ApiToApp/ToActionBasicQuery',
  57. ($1.IdRequest value) => value.writeToBuffer(),
  58. ($core.List<$core.int> value) => $0.ToActionBasicInfo.fromBuffer(value));
  59. static final _$toUserInActionBasicQuery = $grpc.ClientMethod<$0.ToUserInActionBasicQueryRequest, $0.ToUserInActionBasicInfo>(
  60. '/toApp.v1.ApiToApp/ToUserInActionBasicQuery',
  61. ($0.ToUserInActionBasicQueryRequest value) => value.writeToBuffer(),
  62. ($core.List<$core.int> value) => $0.ToUserInActionBasicInfo.fromBuffer(value));
  63. static final _$toRedisTest = $grpc.ClientMethod<$1.DefaultRequest, $0.ToOrienteerInGameInfo>(
  64. '/toApp.v1.ApiToApp/ToRedisTest',
  65. ($1.DefaultRequest value) => value.writeToBuffer(),
  66. ($core.List<$core.int> value) => $0.ToOrienteerInGameInfo.fromBuffer(value));
  67. static final _$toHistoryUserListQuery = $grpc.ClientMethod<$1.IdRequest, $0.ToHisUserListQueryReply>(
  68. '/toApp.v1.ApiToApp/ToHistoryUserListQuery',
  69. ($1.IdRequest value) => value.writeToBuffer(),
  70. ($core.List<$core.int> value) => $0.ToHisUserListQueryReply.fromBuffer(value));
  71. static final _$toHistoryGameDetail = $grpc.ClientMethod<$1.IdRequest, $0.ToGameDetailReply>(
  72. '/toApp.v1.ApiToApp/ToHistoryGameDetail',
  73. ($1.IdRequest value) => value.writeToBuffer(),
  74. ($core.List<$core.int> value) => $0.ToGameDetailReply.fromBuffer(value));
  75. ApiToAppClient($grpc.ClientChannel channel,
  76. {$grpc.CallOptions? options,
  77. $core.Iterable<$grpc.ClientInterceptor>? interceptors})
  78. : super(channel, options: options,
  79. interceptors: interceptors);
  80. $grpc.ResponseFuture<$1.DefaultReply> toSendCodeToPhoneV2($0.ToSendCodeToPhoneRequestV2 request, {$grpc.CallOptions? options}) {
  81. return $createUnaryCall(_$toSendCodeToPhoneV2, request, options: options);
  82. }
  83. $grpc.ResponseFuture<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($1.GetSmsSendLeftTimeRequest request, {$grpc.CallOptions? options}) {
  84. return $createUnaryCall(_$toGetSmsSendLeftTimeV2, request, options: options);
  85. }
  86. $grpc.ResponseFuture<$1.SignInReply> toSignInV2($0.ToSignInRequestV2 request, {$grpc.CallOptions? options}) {
  87. return $createUnaryCall(_$toSignInV2, request, options: options);
  88. }
  89. $grpc.ResponseFuture<$1.DefaultReply> toSignOutV2($1.DefaultRequest request, {$grpc.CallOptions? options}) {
  90. return $createUnaryCall(_$toSignOutV2, request, options: options);
  91. }
  92. $grpc.ResponseFuture<$0.GetServerTimeRp> toGetServerTime($1.DefaultRequest request, {$grpc.CallOptions? options}) {
  93. return $createUnaryCall(_$toGetServerTime, request, options: options);
  94. }
  95. $grpc.ResponseFuture<$0.ToMapListReplyV2> toMapListV2($0.MapListRequestV2 request, {$grpc.CallOptions? options}) {
  96. return $createUnaryCall(_$toMapListV2, request, options: options);
  97. }
  98. $grpc.ResponseFuture<$0.ToMapInfoV2> toMapDetailV2($1.IdRequest request, {$grpc.CallOptions? options}) {
  99. return $createUnaryCall(_$toMapDetailV2, request, options: options);
  100. }
  101. $grpc.ResponseStream<$1.BinaryPartV2> toGetBinaryByMd5($0.ToGetBinaryByMd5Request request, {$grpc.CallOptions? options}) {
  102. return $createStreamingCall(_$toGetBinaryByMd5, $async.Stream.fromIterable([request]), options: options);
  103. }
  104. $grpc.ResponseFuture<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2($0.ToUserDetailQueryRequestV2 request, {$grpc.CallOptions? options}) {
  105. return $createUnaryCall(_$toUserDetailQueryV2, request, options: options);
  106. }
  107. $grpc.ResponseFuture<$0.ToActionBasicInfo> toActionBasicQuery($1.IdRequest request, {$grpc.CallOptions? options}) {
  108. return $createUnaryCall(_$toActionBasicQuery, request, options: options);
  109. }
  110. $grpc.ResponseFuture<$0.ToUserInActionBasicInfo> toUserInActionBasicQuery($0.ToUserInActionBasicQueryRequest request, {$grpc.CallOptions? options}) {
  111. return $createUnaryCall(_$toUserInActionBasicQuery, request, options: options);
  112. }
  113. $grpc.ResponseFuture<$0.ToOrienteerInGameInfo> toRedisTest($1.DefaultRequest request, {$grpc.CallOptions? options}) {
  114. return $createUnaryCall(_$toRedisTest, request, options: options);
  115. }
  116. $grpc.ResponseFuture<$0.ToHisUserListQueryReply> toHistoryUserListQuery($1.IdRequest request, {$grpc.CallOptions? options}) {
  117. return $createUnaryCall(_$toHistoryUserListQuery, request, options: options);
  118. }
  119. $grpc.ResponseFuture<$0.ToGameDetailReply> toHistoryGameDetail($1.IdRequest request, {$grpc.CallOptions? options}) {
  120. return $createUnaryCall(_$toHistoryGameDetail, request, options: options);
  121. }
  122. }
  123. @$pb.GrpcServiceName('toApp.v1.ApiToApp')
  124. abstract class ApiToAppServiceBase extends $grpc.Service {
  125. $core.String get $name => 'toApp.v1.ApiToApp';
  126. ApiToAppServiceBase() {
  127. $addMethod($grpc.ServiceMethod<$0.ToSendCodeToPhoneRequestV2, $1.DefaultReply>(
  128. 'ToSendCodeToPhoneV2',
  129. toSendCodeToPhoneV2_Pre,
  130. false,
  131. false,
  132. ($core.List<$core.int> value) => $0.ToSendCodeToPhoneRequestV2.fromBuffer(value),
  133. ($1.DefaultReply value) => value.writeToBuffer()));
  134. $addMethod($grpc.ServiceMethod<$1.GetSmsSendLeftTimeRequest, $1.GetSmsSendLeftTimeReply>(
  135. 'ToGetSmsSendLeftTimeV2',
  136. toGetSmsSendLeftTimeV2_Pre,
  137. false,
  138. false,
  139. ($core.List<$core.int> value) => $1.GetSmsSendLeftTimeRequest.fromBuffer(value),
  140. ($1.GetSmsSendLeftTimeReply value) => value.writeToBuffer()));
  141. $addMethod($grpc.ServiceMethod<$0.ToSignInRequestV2, $1.SignInReply>(
  142. 'ToSignInV2',
  143. toSignInV2_Pre,
  144. false,
  145. false,
  146. ($core.List<$core.int> value) => $0.ToSignInRequestV2.fromBuffer(value),
  147. ($1.SignInReply value) => value.writeToBuffer()));
  148. $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $1.DefaultReply>(
  149. 'ToSignOutV2',
  150. toSignOutV2_Pre,
  151. false,
  152. false,
  153. ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
  154. ($1.DefaultReply value) => value.writeToBuffer()));
  155. $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $0.GetServerTimeRp>(
  156. 'ToGetServerTime',
  157. toGetServerTime_Pre,
  158. false,
  159. false,
  160. ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
  161. ($0.GetServerTimeRp value) => value.writeToBuffer()));
  162. $addMethod($grpc.ServiceMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
  163. 'ToMapListV2',
  164. toMapListV2_Pre,
  165. false,
  166. false,
  167. ($core.List<$core.int> value) => $0.MapListRequestV2.fromBuffer(value),
  168. ($0.ToMapListReplyV2 value) => value.writeToBuffer()));
  169. $addMethod($grpc.ServiceMethod<$1.IdRequest, $0.ToMapInfoV2>(
  170. 'ToMapDetailV2',
  171. toMapDetailV2_Pre,
  172. false,
  173. false,
  174. ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value),
  175. ($0.ToMapInfoV2 value) => value.writeToBuffer()));
  176. $addMethod($grpc.ServiceMethod<$0.ToGetBinaryByMd5Request, $1.BinaryPartV2>(
  177. 'ToGetBinaryByMd5',
  178. toGetBinaryByMd5_Pre,
  179. false,
  180. true,
  181. ($core.List<$core.int> value) => $0.ToGetBinaryByMd5Request.fromBuffer(value),
  182. ($1.BinaryPartV2 value) => value.writeToBuffer()));
  183. $addMethod($grpc.ServiceMethod<$0.ToUserDetailQueryRequestV2, $0.ToUserDetailQueryReplyV2>(
  184. 'ToUserDetailQueryV2',
  185. toUserDetailQueryV2_Pre,
  186. false,
  187. false,
  188. ($core.List<$core.int> value) => $0.ToUserDetailQueryRequestV2.fromBuffer(value),
  189. ($0.ToUserDetailQueryReplyV2 value) => value.writeToBuffer()));
  190. $addMethod($grpc.ServiceMethod<$1.IdRequest, $0.ToActionBasicInfo>(
  191. 'ToActionBasicQuery',
  192. toActionBasicQuery_Pre,
  193. false,
  194. false,
  195. ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value),
  196. ($0.ToActionBasicInfo value) => value.writeToBuffer()));
  197. $addMethod($grpc.ServiceMethod<$0.ToUserInActionBasicQueryRequest, $0.ToUserInActionBasicInfo>(
  198. 'ToUserInActionBasicQuery',
  199. toUserInActionBasicQuery_Pre,
  200. false,
  201. false,
  202. ($core.List<$core.int> value) => $0.ToUserInActionBasicQueryRequest.fromBuffer(value),
  203. ($0.ToUserInActionBasicInfo value) => value.writeToBuffer()));
  204. $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $0.ToOrienteerInGameInfo>(
  205. 'ToRedisTest',
  206. toRedisTest_Pre,
  207. false,
  208. false,
  209. ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
  210. ($0.ToOrienteerInGameInfo value) => value.writeToBuffer()));
  211. $addMethod($grpc.ServiceMethod<$1.IdRequest, $0.ToHisUserListQueryReply>(
  212. 'ToHistoryUserListQuery',
  213. toHistoryUserListQuery_Pre,
  214. false,
  215. false,
  216. ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value),
  217. ($0.ToHisUserListQueryReply value) => value.writeToBuffer()));
  218. $addMethod($grpc.ServiceMethod<$1.IdRequest, $0.ToGameDetailReply>(
  219. 'ToHistoryGameDetail',
  220. toHistoryGameDetail_Pre,
  221. false,
  222. false,
  223. ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value),
  224. ($0.ToGameDetailReply value) => value.writeToBuffer()));
  225. }
  226. $async.Future<$1.DefaultReply> toSendCodeToPhoneV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSendCodeToPhoneRequestV2> request) async {
  227. return toSendCodeToPhoneV2(call, await request);
  228. }
  229. $async.Future<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2_Pre($grpc.ServiceCall call, $async.Future<$1.GetSmsSendLeftTimeRequest> request) async {
  230. return toGetSmsSendLeftTimeV2(call, await request);
  231. }
  232. $async.Future<$1.SignInReply> toSignInV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSignInRequestV2> request) async {
  233. return toSignInV2(call, await request);
  234. }
  235. $async.Future<$1.DefaultReply> toSignOutV2_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
  236. return toSignOutV2(call, await request);
  237. }
  238. $async.Future<$0.GetServerTimeRp> toGetServerTime_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
  239. return toGetServerTime(call, await request);
  240. }
  241. $async.Future<$0.ToMapListReplyV2> toMapListV2_Pre($grpc.ServiceCall call, $async.Future<$0.MapListRequestV2> request) async {
  242. return toMapListV2(call, await request);
  243. }
  244. $async.Future<$0.ToMapInfoV2> toMapDetailV2_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async {
  245. return toMapDetailV2(call, await request);
  246. }
  247. $async.Stream<$1.BinaryPartV2> toGetBinaryByMd5_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetBinaryByMd5Request> request) async* {
  248. yield* toGetBinaryByMd5(call, await request);
  249. }
  250. $async.Future<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToUserDetailQueryRequestV2> request) async {
  251. return toUserDetailQueryV2(call, await request);
  252. }
  253. $async.Future<$0.ToActionBasicInfo> toActionBasicQuery_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async {
  254. return toActionBasicQuery(call, await request);
  255. }
  256. $async.Future<$0.ToUserInActionBasicInfo> toUserInActionBasicQuery_Pre($grpc.ServiceCall call, $async.Future<$0.ToUserInActionBasicQueryRequest> request) async {
  257. return toUserInActionBasicQuery(call, await request);
  258. }
  259. $async.Future<$0.ToOrienteerInGameInfo> toRedisTest_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
  260. return toRedisTest(call, await request);
  261. }
  262. $async.Future<$0.ToHisUserListQueryReply> toHistoryUserListQuery_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async {
  263. return toHistoryUserListQuery(call, await request);
  264. }
  265. $async.Future<$0.ToGameDetailReply> toHistoryGameDetail_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async {
  266. return toHistoryGameDetail(call, await request);
  267. }
  268. $async.Future<$1.DefaultReply> toSendCodeToPhoneV2($grpc.ServiceCall call, $0.ToSendCodeToPhoneRequestV2 request);
  269. $async.Future<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($grpc.ServiceCall call, $1.GetSmsSendLeftTimeRequest request);
  270. $async.Future<$1.SignInReply> toSignInV2($grpc.ServiceCall call, $0.ToSignInRequestV2 request);
  271. $async.Future<$1.DefaultReply> toSignOutV2($grpc.ServiceCall call, $1.DefaultRequest request);
  272. $async.Future<$0.GetServerTimeRp> toGetServerTime($grpc.ServiceCall call, $1.DefaultRequest request);
  273. $async.Future<$0.ToMapListReplyV2> toMapListV2($grpc.ServiceCall call, $0.MapListRequestV2 request);
  274. $async.Future<$0.ToMapInfoV2> toMapDetailV2($grpc.ServiceCall call, $1.IdRequest request);
  275. $async.Stream<$1.BinaryPartV2> toGetBinaryByMd5($grpc.ServiceCall call, $0.ToGetBinaryByMd5Request request);
  276. $async.Future<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2($grpc.ServiceCall call, $0.ToUserDetailQueryRequestV2 request);
  277. $async.Future<$0.ToActionBasicInfo> toActionBasicQuery($grpc.ServiceCall call, $1.IdRequest request);
  278. $async.Future<$0.ToUserInActionBasicInfo> toUserInActionBasicQuery($grpc.ServiceCall call, $0.ToUserInActionBasicQueryRequest request);
  279. $async.Future<$0.ToOrienteerInGameInfo> toRedisTest($grpc.ServiceCall call, $1.DefaultRequest request);
  280. $async.Future<$0.ToHisUserListQueryReply> toHistoryUserListQuery($grpc.ServiceCall call, $1.IdRequest request);
  281. $async.Future<$0.ToGameDetailReply> toHistoryGameDetail($grpc.ServiceCall call, $1.IdRequest request);
  282. }