// // 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 _$toActionBasicQuery = $grpc.ClientMethod<$1.IdRequest, $0.ToActionBasicInfo>( '/toApp.v1.ApiToApp/ToActionBasicQuery', ($1.IdRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.ToActionBasicInfo.fromBuffer(value)); static final _$toUserInActionBasicQuery = $grpc.ClientMethod<$0.ToUserInActionBasicQueryRequest, $0.ToUserInActionBasicInfo>( '/toApp.v1.ApiToApp/ToUserInActionBasicQuery', ($0.ToUserInActionBasicQueryRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.ToUserInActionBasicInfo.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.ToActionBasicInfo> toActionBasicQuery($1.IdRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toActionBasicQuery, request, options: options); } $grpc.ResponseFuture<$0.ToUserInActionBasicInfo> toUserInActionBasicQuery($0.ToUserInActionBasicQueryRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toUserInActionBasicQuery, 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.IdRequest, $0.ToActionBasicInfo>( 'ToActionBasicQuery', toActionBasicQuery_Pre, false, false, ($core.List<$core.int> value) => $1.IdRequest.fromBuffer(value), ($0.ToActionBasicInfo value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.ToUserInActionBasicQueryRequest, $0.ToUserInActionBasicInfo>( 'ToUserInActionBasicQuery', toUserInActionBasicQuery_Pre, false, false, ($core.List<$core.int> value) => $0.ToUserInActionBasicQueryRequest.fromBuffer(value), ($0.ToUserInActionBasicInfo 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.ToActionBasicInfo> toActionBasicQuery_Pre($grpc.ServiceCall call, $async.Future<$1.IdRequest> request) async { return toActionBasicQuery(call, await request); } $async.Future<$0.ToUserInActionBasicInfo> toUserInActionBasicQuery_Pre($grpc.ServiceCall call, $async.Future<$0.ToUserInActionBasicQueryRequest> request) async { return toUserInActionBasicQuery(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.ToActionBasicInfo> toActionBasicQuery($grpc.ServiceCall call, $1.IdRequest request); $async.Future<$0.ToUserInActionBasicInfo> toUserInActionBasicQuery($grpc.ServiceCall call, $0.ToUserInActionBasicQueryRequest request); $async.Future<$0.ToOrienteerInGameInfo> toRedisTest($grpc.ServiceCall call, $1.DefaultRequest request); }