| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- //
- // Generated code. Do not modify.
- // source: to_app_api.proto
- //
- // @dart = 2.12
- // ignore_for_file: annotate_overrides, camel_case_types, comment_references
- // ignore_for_file: constant_identifier_names, library_prefixes
- // ignore_for_file: non_constant_identifier_names, prefer_final_fields
- // ignore_for_file: unnecessary_import, unnecessary_this, unused_import
- import 'dart:async' as $async;
- import 'dart:core' as $core;
- import 'package:grpc/service_api.dart' as $grpc;
- import 'package:protobuf/protobuf.dart' as $pb;
- import 'base.pb.dart' as $1;
- import 'to_app_api.pb.dart' as $0;
- export 'to_app_api.pb.dart';
- @$pb.GrpcServiceName('toApp.v1.ApiToApp')
- class ApiToAppClient extends $grpc.Client {
- static final _$toSendCodeToPhoneV2 = $grpc.ClientMethod<$0.ToSendCodeToPhoneRequestV2, $1.DefaultReply>(
- '/toApp.v1.ApiToApp/ToSendCodeToPhoneV2',
- ($0.ToSendCodeToPhoneRequestV2 value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $1.DefaultReply.fromBuffer(value));
- static final _$toGetSmsSendLeftTimeV2 = $grpc.ClientMethod<$1.GetSmsSendLeftTimeRequest, $1.GetSmsSendLeftTimeReply>(
- '/toApp.v1.ApiToApp/ToGetSmsSendLeftTimeV2',
- ($1.GetSmsSendLeftTimeRequest value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $1.GetSmsSendLeftTimeReply.fromBuffer(value));
- static final _$toSignInV2 = $grpc.ClientMethod<$0.ToSignInRequestV2, $1.SignInReply>(
- '/toApp.v1.ApiToApp/ToSignInV2',
- ($0.ToSignInRequestV2 value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $1.SignInReply.fromBuffer(value));
- static final _$toSignOutV2 = $grpc.ClientMethod<$1.DefaultRequest, $1.DefaultReply>(
- '/toApp.v1.ApiToApp/ToSignOutV2',
- ($1.DefaultRequest value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $1.DefaultReply.fromBuffer(value));
- static final _$toGetServerTime = $grpc.ClientMethod<$1.DefaultRequest, $0.GetServerTimeRp>(
- '/toApp.v1.ApiToApp/ToGetServerTime',
- ($1.DefaultRequest value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $0.GetServerTimeRp.fromBuffer(value));
- static final _$toMapListV2 = $grpc.ClientMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
- '/toApp.v1.ApiToApp/ToMapListV2',
- ($0.MapListRequestV2 value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $0.ToMapListReplyV2.fromBuffer(value));
- static final _$toMapDetailV2 = $grpc.ClientMethod<$1.IdRequest, $0.ToMapInfoV2>(
- '/toApp.v1.ApiToApp/ToMapDetailV2',
- ($1.IdRequest value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $0.ToMapInfoV2.fromBuffer(value));
- static final _$toGetBinaryByMd5 = $grpc.ClientMethod<$0.ToGetBinaryByMd5Request, $1.BinaryPartV2>(
- '/toApp.v1.ApiToApp/ToGetBinaryByMd5',
- ($0.ToGetBinaryByMd5Request value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $1.BinaryPartV2.fromBuffer(value));
- static final _$toUserDetailQueryV2 = $grpc.ClientMethod<$0.ToUserDetailQueryRequestV2, $0.ToUserDetailQueryReplyV2>(
- '/toApp.v1.ApiToApp/ToUserDetailQueryV2',
- ($0.ToUserDetailQueryRequestV2 value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $0.ToUserDetailQueryReplyV2.fromBuffer(value));
- static final _$toRedisTest = $grpc.ClientMethod<$1.DefaultRequest, $0.ToOrienteerInGameInfo>(
- '/toApp.v1.ApiToApp/ToRedisTest',
- ($1.DefaultRequest value) => value.writeToBuffer(),
- ($core.List<$core.int> value) => $0.ToOrienteerInGameInfo.fromBuffer(value));
- ApiToAppClient($grpc.ClientChannel channel,
- {$grpc.CallOptions? options,
- $core.Iterable<$grpc.ClientInterceptor>? interceptors})
- : super(channel, options: options,
- interceptors: interceptors);
- $grpc.ResponseFuture<$1.DefaultReply> toSendCodeToPhoneV2($0.ToSendCodeToPhoneRequestV2 request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toSendCodeToPhoneV2, request, options: options);
- }
- $grpc.ResponseFuture<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($1.GetSmsSendLeftTimeRequest request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toGetSmsSendLeftTimeV2, request, options: options);
- }
- $grpc.ResponseFuture<$1.SignInReply> toSignInV2($0.ToSignInRequestV2 request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toSignInV2, request, options: options);
- }
- $grpc.ResponseFuture<$1.DefaultReply> toSignOutV2($1.DefaultRequest request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toSignOutV2, request, options: options);
- }
- $grpc.ResponseFuture<$0.GetServerTimeRp> toGetServerTime($1.DefaultRequest request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toGetServerTime, request, options: options);
- }
- $grpc.ResponseFuture<$0.ToMapListReplyV2> toMapListV2($0.MapListRequestV2 request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toMapListV2, request, options: options);
- }
- $grpc.ResponseFuture<$0.ToMapInfoV2> toMapDetailV2($1.IdRequest request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toMapDetailV2, request, options: options);
- }
- $grpc.ResponseStream<$1.BinaryPartV2> toGetBinaryByMd5($0.ToGetBinaryByMd5Request request, {$grpc.CallOptions? options}) {
- return $createStreamingCall(_$toGetBinaryByMd5, $async.Stream.fromIterable([request]), options: options);
- }
- $grpc.ResponseFuture<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2($0.ToUserDetailQueryRequestV2 request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toUserDetailQueryV2, request, options: options);
- }
- $grpc.ResponseFuture<$0.ToOrienteerInGameInfo> toRedisTest($1.DefaultRequest request, {$grpc.CallOptions? options}) {
- return $createUnaryCall(_$toRedisTest, request, options: options);
- }
- }
- @$pb.GrpcServiceName('toApp.v1.ApiToApp')
- abstract class ApiToAppServiceBase extends $grpc.Service {
- $core.String get $name => 'toApp.v1.ApiToApp';
- ApiToAppServiceBase() {
- $addMethod($grpc.ServiceMethod<$0.ToSendCodeToPhoneRequestV2, $1.DefaultReply>(
- 'ToSendCodeToPhoneV2',
- toSendCodeToPhoneV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $0.ToSendCodeToPhoneRequestV2.fromBuffer(value),
- ($1.DefaultReply value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$1.GetSmsSendLeftTimeRequest, $1.GetSmsSendLeftTimeReply>(
- 'ToGetSmsSendLeftTimeV2',
- toGetSmsSendLeftTimeV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $1.GetSmsSendLeftTimeRequest.fromBuffer(value),
- ($1.GetSmsSendLeftTimeReply value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$0.ToSignInRequestV2, $1.SignInReply>(
- 'ToSignInV2',
- toSignInV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $0.ToSignInRequestV2.fromBuffer(value),
- ($1.SignInReply value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $1.DefaultReply>(
- 'ToSignOutV2',
- toSignOutV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
- ($1.DefaultReply value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $0.GetServerTimeRp>(
- 'ToGetServerTime',
- toGetServerTime_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
- ($0.GetServerTimeRp value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>(
- 'ToMapListV2',
- toMapListV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $0.MapListRequestV2.fromBuffer(value),
- ($0.ToMapListReplyV2 value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$1.IdRequest, $0.ToMapInfoV2>(
- 'ToMapDetailV2',
- toMapDetailV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value),
- ($0.ToMapInfoV2 value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$0.ToGetBinaryByMd5Request, $1.BinaryPartV2>(
- 'ToGetBinaryByMd5',
- toGetBinaryByMd5_Pre,
- false,
- true,
- ($core.List<$core.int> value) => $0.ToGetBinaryByMd5Request.fromBuffer(value),
- ($1.BinaryPartV2 value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$0.ToUserDetailQueryRequestV2, $0.ToUserDetailQueryReplyV2>(
- 'ToUserDetailQueryV2',
- toUserDetailQueryV2_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $0.ToUserDetailQueryRequestV2.fromBuffer(value),
- ($0.ToUserDetailQueryReplyV2 value) => value.writeToBuffer()));
- $addMethod($grpc.ServiceMethod<$1.DefaultRequest, $0.ToOrienteerInGameInfo>(
- 'ToRedisTest',
- toRedisTest_Pre,
- false,
- false,
- ($core.List<$core.int> value) => $1.DefaultRequest.fromBuffer(value),
- ($0.ToOrienteerInGameInfo value) => value.writeToBuffer()));
- }
- $async.Future<$1.DefaultReply> toSendCodeToPhoneV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSendCodeToPhoneRequestV2> request) async {
- return toSendCodeToPhoneV2(call, await request);
- }
- $async.Future<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2_Pre($grpc.ServiceCall call, $async.Future<$1.GetSmsSendLeftTimeRequest> request) async {
- return toGetSmsSendLeftTimeV2(call, await request);
- }
- $async.Future<$1.SignInReply> toSignInV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSignInRequestV2> request) async {
- return toSignInV2(call, await request);
- }
- $async.Future<$1.DefaultReply> toSignOutV2_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
- return toSignOutV2(call, await request);
- }
- $async.Future<$0.GetServerTimeRp> toGetServerTime_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
- return toGetServerTime(call, await request);
- }
- $async.Future<$0.ToMapListReplyV2> toMapListV2_Pre($grpc.ServiceCall call, $async.Future<$0.MapListRequestV2> request) async {
- return toMapListV2(call, await request);
- }
- $async.Future<$0.ToMapInfoV2> toMapDetailV2_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async {
- return toMapDetailV2(call, await request);
- }
- $async.Stream<$1.BinaryPartV2> toGetBinaryByMd5_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetBinaryByMd5Request> request) async* {
- yield* toGetBinaryByMd5(call, await request);
- }
- $async.Future<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToUserDetailQueryRequestV2> request) async {
- return toUserDetailQueryV2(call, await request);
- }
- $async.Future<$0.ToOrienteerInGameInfo> toRedisTest_Pre($grpc.ServiceCall call, $async.Future<$1.DefaultRequest> request) async {
- return toRedisTest(call, await request);
- }
- $async.Future<$1.DefaultReply> toSendCodeToPhoneV2($grpc.ServiceCall call, $0.ToSendCodeToPhoneRequestV2 request);
- $async.Future<$1.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($grpc.ServiceCall call, $1.GetSmsSendLeftTimeRequest request);
- $async.Future<$1.SignInReply> toSignInV2($grpc.ServiceCall call, $0.ToSignInRequestV2 request);
- $async.Future<$1.DefaultReply> toSignOutV2($grpc.ServiceCall call, $1.DefaultRequest request);
- $async.Future<$0.GetServerTimeRp> toGetServerTime($grpc.ServiceCall call, $1.DefaultRequest request);
- $async.Future<$0.ToMapListReplyV2> toMapListV2($grpc.ServiceCall call, $0.MapListRequestV2 request);
- $async.Future<$0.ToMapInfoV2> toMapDetailV2($grpc.ServiceCall call, $1.IdRequest request);
- $async.Stream<$1.BinaryPartV2> toGetBinaryByMd5($grpc.ServiceCall call, $0.ToGetBinaryByMd5Request request);
- $async.Future<$0.ToUserDetailQueryReplyV2> toUserDetailQueryV2($grpc.ServiceCall call, $0.ToUserDetailQueryRequestV2 request);
- $async.Future<$0.ToOrienteerInGameInfo> toRedisTest($grpc.ServiceCall call, $1.DefaultRequest request);
- }
|