to_app_api.pbgrpc.dart 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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 _$toRedisTest = $grpc.ClientMethod<$1.DefaultRequest, $0.ToOrienteerInGameInfo>(
  56. '/toApp.v1.ApiToApp/ToRedisTest',
  57. ($1.DefaultRequest value) => value.writeToBuffer(),
  58. ($core.List<$core.int> value) => $0.ToOrienteerInGameInfo.fromBuffer(value));
  59. ApiToAppClient($grpc.ClientChannel channel,
  60. {$grpc.CallOptions? options,
  61. $core.Iterable<$grpc.ClientInterceptor>? interceptors})
  62. : super(channel, options: options,
  63. interceptors: interceptors);
  64. $grpc.ResponseFuture<$1.DefaultReply> toSendCodeToPhoneV2($0.ToSendCodeToPhoneRequestV2 request, {$grpc.CallOptions? options}) {
  65. return $createUnaryCall(_$toSendCodeToPhoneV2, request, options: options);
  66. }
  67. $grpc.ResponseFuture<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($1.GetSmsSendLeftTimeRequest request, {$grpc.CallOptions? options}) {
  68. return $createUnaryCall(_$toGetSmsSendLeftTimeV2, request, options: options);
  69. }
  70. $grpc.ResponseFuture<$1.SignInReply> toSignInV2($0.ToSignInRequestV2 request, {$grpc.CallOptions? options}) {
  71. return $createUnaryCall(_$toSignInV2, request, options: options);
  72. }
  73. $grpc.ResponseFuture<$1.DefaultReply> toSignOutV2($1.DefaultRequest request, {$grpc.CallOptions? options}) {
  74. return $createUnaryCall(_$toSignOutV2, request, options: options);
  75. }
  76. $grpc.ResponseFuture<$0.GetServerTimeRp> toGetServerTime($1.DefaultRequest request, {$grpc.CallOptions? options}) {
  77. return $createUnaryCall(_$toGetServerTime, request, options: options);
  78. }
  79. $grpc.ResponseFuture<$0.ToMapListReplyV2> toMapListV2($0.MapListRequestV2 request, {$grpc.CallOptions? options}) {
  80. return $createUnaryCall(_$toMapListV2, request, options: options);
  81. }
  82. $grpc.ResponseFuture<$0.ToMapInfoV2> toMapDetailV2($1.IdRequest request, {$grpc.CallOptions? options}) {
  83. return $createUnaryCall(_$toMapDetailV2, request, options: options);
  84. }
  85. $grpc.ResponseStream<$1.BinaryPartV2> toGetBinaryByMd5($0.ToGetBinaryByMd5Request request, {$grpc.CallOptions? options}) {
  86. return $createStreamingCall(_$toGetBinaryByMd5, $async.Stream.fromIterable([request]), options: options);
  87. }
  88. $grpc.ResponseFuture<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2($0.ToUserDetailQueryRequestV2 request, {$grpc.CallOptions? options}) {
  89. return $createUnaryCall(_$toUserDetailQueryV2, request, options: options);
  90. }
  91. $grpc.ResponseFuture<$0.ToOrienteerInGameInfo> toRedisTest($1.DefaultRequest request, {$grpc.CallOptions? options}) {
  92. return $createUnaryCall(_$toRedisTest, request, options: options);
  93. }
  94. }
  95. @$pb.GrpcServiceName('toApp.v1.ApiToApp')
  96. abstract class ApiToAppServiceBase extends $grpc.Service {
  97. $core.String get $name => 'toApp.v1.ApiToApp';
  98. ApiToAppServiceBase() {
  99. $addMethod($grpc.ServiceMethod<$0.ToSendCodeToPhoneRequestV2, $1.DefaultReply>(
  100. 'ToSendCodeToPhoneV2',
  101. toSendCodeToPhoneV2_Pre,
  102. false,
  103. false,
  104. ($core.List<$core.int> value) => $0.ToSendCodeToPhoneRequestV2.fromBuffer(value),
  105. ($1.DefaultReply value) => value.writeToBuffer()));
  106. $addMethod($grpc.ServiceMethod<$1.GetSmsSendLeftTimeRequest, $1.GetSmsSendLeftTimeReply>(
  107. 'ToGetSmsSendLeftTimeV2',
  108. toGetSmsSendLeftTimeV2_Pre,
  109. false,
  110. false,
  111. ($core.List<$core.int> value) => $1.GetSmsSendLeftTimeRequest.fromBuffer(value),
  112. ($1.GetSmsSendLeftTimeReply value) => value.writeToBuffer()));
  113. $addMethod($grpc.ServiceMethod<$0.ToSignInRequestV2, $1.SignInReply>(
  114. 'ToSignInV2',
  115. toSignInV2_Pre,
  116. false,
  117. false,
  118. ($core.List<$core.int> value) => $0.ToSignInRequestV2.fromBuffer(value),
  119. ($1.SignInReply value) => value.writeToBuffer()));
  120. $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $1.DefaultReply>(
  121. 'ToSignOutV2',
  122. toSignOutV2_Pre,
  123. false,
  124. false,
  125. ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
  126. ($1.DefaultReply value) => value.writeToBuffer()));
  127. $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $0.GetServerTimeRp>(
  128. 'ToGetServerTime',
  129. toGetServerTime_Pre,
  130. false,
  131. false,
  132. ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
  133. ($0.GetServerTimeRp value) => value.writeToBuffer()));
  134. $addMethod($grpc.ServiceMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
  135. 'ToMapListV2',
  136. toMapListV2_Pre,
  137. false,
  138. false,
  139. ($core.List<$core.int> value) => $0.MapListRequestV2.fromBuffer(value),
  140. ($0.ToMapListReplyV2 value) => value.writeToBuffer()));
  141. $addMethod($grpc.ServiceMethod<$1.IdRequest, $0.ToMapInfoV2>(
  142. 'ToMapDetailV2',
  143. toMapDetailV2_Pre,
  144. false,
  145. false,
  146. ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value),
  147. ($0.ToMapInfoV2 value) => value.writeToBuffer()));
  148. $addMethod($grpc.ServiceMethod<$0.ToGetBinaryByMd5Request, $1.BinaryPartV2>(
  149. 'ToGetBinaryByMd5',
  150. toGetBinaryByMd5_Pre,
  151. false,
  152. true,
  153. ($core.List<$core.int> value) => $0.ToGetBinaryByMd5Request.fromBuffer(value),
  154. ($1.BinaryPartV2 value) => value.writeToBuffer()));
  155. $addMethod($grpc.ServiceMethod<$0.ToUserDetailQueryRequestV2, $0.ToUserDetailQueryReplyV2>(
  156. 'ToUserDetailQueryV2',
  157. toUserDetailQueryV2_Pre,
  158. false,
  159. false,
  160. ($core.List<$core.int> value) => $0.ToUserDetailQueryRequestV2.fromBuffer(value),
  161. ($0.ToUserDetailQueryReplyV2 value) => value.writeToBuffer()));
  162. $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $0.ToOrienteerInGameInfo>(
  163. 'ToRedisTest',
  164. toRedisTest_Pre,
  165. false,
  166. false,
  167. ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
  168. ($0.ToOrienteerInGameInfo value) => value.writeToBuffer()));
  169. }
  170. $async.Future<$1.DefaultReply> toSendCodeToPhoneV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSendCodeToPhoneRequestV2> request) async {
  171. return toSendCodeToPhoneV2(call, await request);
  172. }
  173. $async.Future<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2_Pre($grpc.ServiceCall call, $async.Future<$1.GetSmsSendLeftTimeRequest> request) async {
  174. return toGetSmsSendLeftTimeV2(call, await request);
  175. }
  176. $async.Future<$1.SignInReply> toSignInV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSignInRequestV2> request) async {
  177. return toSignInV2(call, await request);
  178. }
  179. $async.Future<$1.DefaultReply> toSignOutV2_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
  180. return toSignOutV2(call, await request);
  181. }
  182. $async.Future<$0.GetServerTimeRp> toGetServerTime_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
  183. return toGetServerTime(call, await request);
  184. }
  185. $async.Future<$0.ToMapListReplyV2> toMapListV2_Pre($grpc.ServiceCall call, $async.Future<$0.MapListRequestV2> request) async {
  186. return toMapListV2(call, await request);
  187. }
  188. $async.Future<$0.ToMapInfoV2> toMapDetailV2_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async {
  189. return toMapDetailV2(call, await request);
  190. }
  191. $async.Stream<$1.BinaryPartV2> toGetBinaryByMd5_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetBinaryByMd5Request> request) async* {
  192. yield* toGetBinaryByMd5(call, await request);
  193. }
  194. $async.Future<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToUserDetailQueryRequestV2> request) async {
  195. return toUserDetailQueryV2(call, await request);
  196. }
  197. $async.Future<$0.ToOrienteerInGameInfo> toRedisTest_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
  198. return toRedisTest(call, await request);
  199. }
  200. $async.Future<$1.DefaultReply> toSendCodeToPhoneV2($grpc.ServiceCall call, $0.ToSendCodeToPhoneRequestV2 request);
  201. $async.Future<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($grpc.ServiceCall call, $1.GetSmsSendLeftTimeRequest request);
  202. $async.Future<$1.SignInReply> toSignInV2($grpc.ServiceCall call, $0.ToSignInRequestV2 request);
  203. $async.Future<$1.DefaultReply> toSignOutV2($grpc.ServiceCall call, $1.DefaultRequest request);
  204. $async.Future<$0.GetServerTimeRp> toGetServerTime($grpc.ServiceCall call, $1.DefaultRequest request);
  205. $async.Future<$0.ToMapListReplyV2> toMapListV2($grpc.ServiceCall call, $0.MapListRequestV2 request);
  206. $async.Future<$0.ToMapInfoV2> toMapDetailV2($grpc.ServiceCall call, $1.IdRequest request);
  207. $async.Stream<$1.BinaryPartV2> toGetBinaryByMd5($grpc.ServiceCall call, $0.ToGetBinaryByMd5Request request);
  208. $async.Future<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2($grpc.ServiceCall call, $0.ToUserDetailQueryRequestV2 request);
  209. $async.Future<$0.ToOrienteerInGameInfo> toRedisTest($grpc.ServiceCall call, $1.DefaultRequest request);
  210. }