track_offical.pbgrpc.dart 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. //
  2. // Generated code. Do not modify.
  3. // source: track_offical.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 $0;
  15. export 'track_offical.pb.dart';
  16. @$pb.GrpcServiceName('to.v1.ApiTo')
  17. class ApiToClient extends $grpc.Client {
  18. static final _$toSendCodeToPhoneV2 = $grpc.ClientMethod<$0.ToSendCodeToPhoneRequestV2, $0.DefaultReply>(
  19. '/to.v1.ApiTo/ToSendCodeToPhoneV2',
  20. ($0.ToSendCodeToPhoneRequestV2 value) => value.writeToBuffer(),
  21. ($core.List<$core.int> value) => $0.DefaultReply.fromBuffer(value));
  22. static final _$toGetSmsSendLeftTimeV2 = $grpc.ClientMethod<$0.GetSmsSendLeftTimeRequest, $0.GetSmsSendLeftTimeReply>(
  23. '/to.v1.ApiTo/ToGetSmsSendLeftTimeV2',
  24. ($0.GetSmsSendLeftTimeRequest value) => value.writeToBuffer(),
  25. ($core.List<$core.int> value) => $0.GetSmsSendLeftTimeReply.fromBuffer(value));
  26. static final _$toSignInV2 = $grpc.ClientMethod<$0.ToSignInRequestV2, $0.SignInReply>(
  27. '/to.v1.ApiTo/ToSignInV2',
  28. ($0.ToSignInRequestV2 value) => value.writeToBuffer(),
  29. ($core.List<$core.int> value) => $0.SignInReply.fromBuffer(value));
  30. static final _$toSignOutV2 = $grpc.ClientMethod<$0.DefaultRequest, $0.DefaultReply>(
  31. '/to.v1.ApiTo/ToSignOutV2',
  32. ($0.DefaultRequest value) => value.writeToBuffer(),
  33. ($core.List<$core.int> value) => $0.DefaultReply.fromBuffer(value));
  34. static final _$toGetServerTime = $grpc.ClientMethod<$0.DefaultRequest, $0.GetServerTimeRp>(
  35. '/to.v1.ApiTo/ToGetServerTime',
  36. ($0.DefaultRequest value) => value.writeToBuffer(),
  37. ($core.List<$core.int> value) => $0.GetServerTimeRp.fromBuffer(value));
  38. static final _$toGetUpdateVersion = $grpc.ClientMethod<$0.ToGetUpdateVersionRequest, $0.ToGetUpdateVersionReply>(
  39. '/to.v1.ApiTo/ToGetUpdateVersion',
  40. ($0.ToGetUpdateVersionRequest value) => value.writeToBuffer(),
  41. ($core.List<$core.int> value) => $0.ToGetUpdateVersionReply.fromBuffer(value));
  42. static final _$toMapListV2 = $grpc.ClientMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
  43. '/to.v1.ApiTo/ToMapListV2',
  44. ($0.MapListRequestV2 value) => value.writeToBuffer(),
  45. ($core.List<$core.int> value) => $0.ToMapListReplyV2.fromBuffer(value));
  46. static final _$toMapDetailV2 = $grpc.ClientMethod<$0.IdRequest, $0.ToMapInfoV2>(
  47. '/to.v1.ApiTo/ToMapDetailV2',
  48. ($0.IdRequest value) => value.writeToBuffer(),
  49. ($core.List<$core.int> value) => $0.ToMapInfoV2.fromBuffer(value));
  50. static final _$toGetBinaryByMd5 = $grpc.ClientMethod<$0.ToGetBinaryByMd5Request, $0.BinaryPartV2>(
  51. '/to.v1.ApiTo/ToGetBinaryByMd5',
  52. ($0.ToGetBinaryByMd5Request value) => value.writeToBuffer(),
  53. ($core.List<$core.int> value) => $0.BinaryPartV2.fromBuffer(value));
  54. ApiToClient($grpc.ClientChannel channel,
  55. {$grpc.CallOptions? options,
  56. $core.Iterable<$grpc.ClientInterceptor>? interceptors})
  57. : super(channel, options: options,
  58. interceptors: interceptors);
  59. $grpc.ResponseFuture<$0.DefaultReply> toSendCodeToPhoneV2($0.ToSendCodeToPhoneRequestV2 request, {$grpc.CallOptions? options}) {
  60. return $createUnaryCall(_$toSendCodeToPhoneV2, request, options: options);
  61. }
  62. $grpc.ResponseFuture<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($0.GetSmsSendLeftTimeRequest request, {$grpc.CallOptions? options}) {
  63. return $createUnaryCall(_$toGetSmsSendLeftTimeV2, request, options: options);
  64. }
  65. $grpc.ResponseFuture<$0.SignInReply> toSignInV2($0.ToSignInRequestV2 request, {$grpc.CallOptions? options}) {
  66. return $createUnaryCall(_$toSignInV2, request, options: options);
  67. }
  68. $grpc.ResponseFuture<$0.DefaultReply> toSignOutV2($0.DefaultRequest request, {$grpc.CallOptions? options}) {
  69. return $createUnaryCall(_$toSignOutV2, request, options: options);
  70. }
  71. $grpc.ResponseFuture<$0.GetServerTimeRp> toGetServerTime($0.DefaultRequest request, {$grpc.CallOptions? options}) {
  72. return $createUnaryCall(_$toGetServerTime, request, options: options);
  73. }
  74. $grpc.ResponseFuture<$0.ToGetUpdateVersionReply> toGetUpdateVersion($0.ToGetUpdateVersionRequest request, {$grpc.CallOptions? options}) {
  75. return $createUnaryCall(_$toGetUpdateVersion, request, options: options);
  76. }
  77. $grpc.ResponseFuture<$0.ToMapListReplyV2> toMapListV2($0.MapListRequestV2 request, {$grpc.CallOptions? options}) {
  78. return $createUnaryCall(_$toMapListV2, request, options: options);
  79. }
  80. $grpc.ResponseFuture<$0.ToMapInfoV2> toMapDetailV2($0.IdRequest request, {$grpc.CallOptions? options}) {
  81. return $createUnaryCall(_$toMapDetailV2, request, options: options);
  82. }
  83. $grpc.ResponseStream<$0.BinaryPartV2> toGetBinaryByMd5($0.ToGetBinaryByMd5Request request, {$grpc.CallOptions? options}) {
  84. return $createStreamingCall(_$toGetBinaryByMd5, $async.Stream.fromIterable([request]), options: options);
  85. }
  86. }
  87. @$pb.GrpcServiceName('to.v1.ApiTo')
  88. abstract class ApiToServiceBase extends $grpc.Service {
  89. $core.String get $name => 'to.v1.ApiTo';
  90. ApiToServiceBase() {
  91. $addMethod($grpc.ServiceMethod<$0.ToSendCodeToPhoneRequestV2, $0.DefaultReply>(
  92. 'ToSendCodeToPhoneV2',
  93. toSendCodeToPhoneV2_Pre,
  94. false,
  95. false,
  96. ($core.List<$core.int> value) => $0.ToSendCodeToPhoneRequestV2.fromBuffer(value),
  97. ($0.DefaultReply value) => value.writeToBuffer()));
  98. $addMethod($grpc.ServiceMethod<$0.GetSmsSendLeftTimeRequest, $0.GetSmsSendLeftTimeReply>(
  99. 'ToGetSmsSendLeftTimeV2',
  100. toGetSmsSendLeftTimeV2_Pre,
  101. false,
  102. false,
  103. ($core.List<$core.int> value) => $0.GetSmsSendLeftTimeRequest.fromBuffer(value),
  104. ($0.GetSmsSendLeftTimeReply value) => value.writeToBuffer()));
  105. $addMethod($grpc.ServiceMethod<$0.ToSignInRequestV2, $0.SignInReply>(
  106. 'ToSignInV2',
  107. toSignInV2_Pre,
  108. false,
  109. false,
  110. ($core.List<$core.int> value) => $0.ToSignInRequestV2.fromBuffer(value),
  111. ($0.SignInReply value) => value.writeToBuffer()));
  112. $addMethod($grpc.ServiceMethod<$0.DefaultRequest, $0.DefaultReply>(
  113. 'ToSignOutV2',
  114. toSignOutV2_Pre,
  115. false,
  116. false,
  117. ($core.List<$core.int> value) => $0.DefaultRequest.fromBuffer(value),
  118. ($0.DefaultReply value) => value.writeToBuffer()));
  119. $addMethod($grpc.ServiceMethod<$0.DefaultRequest, $0.GetServerTimeRp>(
  120. 'ToGetServerTime',
  121. toGetServerTime_Pre,
  122. false,
  123. false,
  124. ($core.List<$core.int> value) => $0.DefaultRequest.fromBuffer(value),
  125. ($0.GetServerTimeRp value) => value.writeToBuffer()));
  126. $addMethod($grpc.ServiceMethod<$0.ToGetUpdateVersionRequest, $0.ToGetUpdateVersionReply>(
  127. 'ToGetUpdateVersion',
  128. toGetUpdateVersion_Pre,
  129. false,
  130. false,
  131. ($core.List<$core.int> value) => $0.ToGetUpdateVersionRequest.fromBuffer(value),
  132. ($0.ToGetUpdateVersionReply value) => value.writeToBuffer()));
  133. $addMethod($grpc.ServiceMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
  134. 'ToMapListV2',
  135. toMapListV2_Pre,
  136. false,
  137. false,
  138. ($core.List<$core.int> value) => $0.MapListRequestV2.fromBuffer(value),
  139. ($0.ToMapListReplyV2 value) => value.writeToBuffer()));
  140. $addMethod($grpc.ServiceMethod<$0.IdRequest, $0.ToMapInfoV2>(
  141. 'ToMapDetailV2',
  142. toMapDetailV2_Pre,
  143. false,
  144. false,
  145. ($core.List<$core.int> value) => $0.IdRequest.fromBuffer(value),
  146. ($0.ToMapInfoV2 value) => value.writeToBuffer()));
  147. $addMethod($grpc.ServiceMethod<$0.ToGetBinaryByMd5Request, $0.BinaryPartV2>(
  148. 'ToGetBinaryByMd5',
  149. toGetBinaryByMd5_Pre,
  150. false,
  151. true,
  152. ($core.List<$core.int> value) => $0.ToGetBinaryByMd5Request.fromBuffer(value),
  153. ($0.BinaryPartV2 value) => value.writeToBuffer()));
  154. }
  155. $async.Future<$0.DefaultReply> toSendCodeToPhoneV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSendCodeToPhoneRequestV2> request) async {
  156. return toSendCodeToPhoneV2(call, await request);
  157. }
  158. $async.Future<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2_Pre($grpc.ServiceCall call, $async.Future<$0.GetSmsSendLeftTimeRequest> request) async {
  159. return toGetSmsSendLeftTimeV2(call, await request);
  160. }
  161. $async.Future<$0.SignInReply> toSignInV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSignInRequestV2> request) async {
  162. return toSignInV2(call, await request);
  163. }
  164. $async.Future<$0.DefaultReply> toSignOutV2_Pre($grpc.ServiceCall call, $async.Future<$0.DefaultRequest> request) async {
  165. return toSignOutV2(call, await request);
  166. }
  167. $async.Future<$0.GetServerTimeRp> toGetServerTime_Pre($grpc.ServiceCall call, $async.Future<$0.DefaultRequest> request) async {
  168. return toGetServerTime(call, await request);
  169. }
  170. $async.Future<$0.ToGetUpdateVersionReply> toGetUpdateVersion_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetUpdateVersionRequest> request) async {
  171. return toGetUpdateVersion(call, await request);
  172. }
  173. $async.Future<$0.ToMapListReplyV2> toMapListV2_Pre($grpc.ServiceCall call, $async.Future<$0.MapListRequestV2> request) async {
  174. return toMapListV2(call, await request);
  175. }
  176. $async.Future<$0.ToMapInfoV2> toMapDetailV2_Pre($grpc.ServiceCall call, $async.Future<$0.IdRequest> request) async {
  177. return toMapDetailV2(call, await request);
  178. }
  179. $async.Stream<$0.BinaryPartV2> toGetBinaryByMd5_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetBinaryByMd5Request> request) async* {
  180. yield* toGetBinaryByMd5(call, await request);
  181. }
  182. $async.Future<$0.DefaultReply> toSendCodeToPhoneV2($grpc.ServiceCall call, $0.ToSendCodeToPhoneRequestV2 request);
  183. $async.Future<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($grpc.ServiceCall call, $0.GetSmsSendLeftTimeRequest request);
  184. $async.Future<$0.SignInReply> toSignInV2($grpc.ServiceCall call, $0.ToSignInRequestV2 request);
  185. $async.Future<$0.DefaultReply> toSignOutV2($grpc.ServiceCall call, $0.DefaultRequest request);
  186. $async.Future<$0.GetServerTimeRp> toGetServerTime($grpc.ServiceCall call, $0.DefaultRequest request);
  187. $async.Future<$0.ToGetUpdateVersionReply> toGetUpdateVersion($grpc.ServiceCall call, $0.ToGetUpdateVersionRequest request);
  188. $async.Future<$0.ToMapListReplyV2> toMapListV2($grpc.ServiceCall call, $0.MapListRequestV2 request);
  189. $async.Future<$0.ToMapInfoV2> toMapDetailV2($grpc.ServiceCall call, $0.IdRequest request);
  190. $async.Stream<$0.BinaryPartV2> toGetBinaryByMd5($grpc.ServiceCall call, $0.ToGetBinaryByMd5Request request);
  191. }