// // Generated code. Do not modify. // source: track_offical.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 $0; export 'track_offical.pb.dart'; @$pb.GrpcServiceName('to.v1.ApiTo') class ApiToClient extends $grpc.Client { static final _$toSendCodeToPhoneV2 = $grpc.ClientMethod<$0.ToSendCodeToPhoneRequestV2, $0.DefaultReply>( '/to.v1.ApiTo/ToSendCodeToPhoneV2', ($0.ToSendCodeToPhoneRequestV2 value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.DefaultReply.fromBuffer(value)); static final _$toGetSmsSendLeftTimeV2 = $grpc.ClientMethod<$0.GetSmsSendLeftTimeRequest, $0.GetSmsSendLeftTimeReply>( '/to.v1.ApiTo/ToGetSmsSendLeftTimeV2', ($0.GetSmsSendLeftTimeRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.GetSmsSendLeftTimeReply.fromBuffer(value)); static final _$toSignInV2 = $grpc.ClientMethod<$0.ToSignInRequestV2, $0.SignInReply>( '/to.v1.ApiTo/ToSignInV2', ($0.ToSignInRequestV2 value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.SignInReply.fromBuffer(value)); static final _$toSignOutV2 = $grpc.ClientMethod<$0.DefaultRequest, $0.DefaultReply>( '/to.v1.ApiTo/ToSignOutV2', ($0.DefaultRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.DefaultReply.fromBuffer(value)); static final _$toGetServerTime = $grpc.ClientMethod<$0.DefaultRequest, $0.GetServerTimeRp>( '/to.v1.ApiTo/ToGetServerTime', ($0.DefaultRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.GetServerTimeRp.fromBuffer(value)); static final _$toGetUpdateVersion = $grpc.ClientMethod<$0.ToGetUpdateVersionRequest, $0.ToGetUpdateVersionReply>( '/to.v1.ApiTo/ToGetUpdateVersion', ($0.ToGetUpdateVersionRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.ToGetUpdateVersionReply.fromBuffer(value)); static final _$toMapListV2 = $grpc.ClientMethod<$0.MapListRequestV2, $0.ToMapListReplyV2>( '/to.v1.ApiTo/ToMapListV2', ($0.MapListRequestV2 value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.ToMapListReplyV2.fromBuffer(value)); static final _$toMapDetailV2 = $grpc.ClientMethod<$0.IdRequest, $0.ToMapInfoV2>( '/to.v1.ApiTo/ToMapDetailV2', ($0.IdRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.ToMapInfoV2.fromBuffer(value)); static final _$toGetBinaryByMd5 = $grpc.ClientMethod<$0.ToGetBinaryByMd5Request, $0.BinaryPartV2>( '/to.v1.ApiTo/ToGetBinaryByMd5', ($0.ToGetBinaryByMd5Request value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.BinaryPartV2.fromBuffer(value)); ApiToClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, $core.Iterable<$grpc.ClientInterceptor>? interceptors}) : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.DefaultReply> toSendCodeToPhoneV2($0.ToSendCodeToPhoneRequestV2 request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toSendCodeToPhoneV2, request, options: options); } $grpc.ResponseFuture<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($0.GetSmsSendLeftTimeRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toGetSmsSendLeftTimeV2, request, options: options); } $grpc.ResponseFuture<$0.SignInReply> toSignInV2($0.ToSignInRequestV2 request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toSignInV2, request, options: options); } $grpc.ResponseFuture<$0.DefaultReply> toSignOutV2($0.DefaultRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toSignOutV2, request, options: options); } $grpc.ResponseFuture<$0.GetServerTimeRp> toGetServerTime($0.DefaultRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toGetServerTime, request, options: options); } $grpc.ResponseFuture<$0.ToGetUpdateVersionReply> toGetUpdateVersion($0.ToGetUpdateVersionRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toGetUpdateVersion, 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($0.IdRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$toMapDetailV2, request, options: options); } $grpc.ResponseStream<$0.BinaryPartV2> toGetBinaryByMd5($0.ToGetBinaryByMd5Request request, {$grpc.CallOptions? options}) { return $createStreamingCall(_$toGetBinaryByMd5, $async.Stream.fromIterable([request]), options: options); } } @$pb.GrpcServiceName('to.v1.ApiTo') abstract class ApiToServiceBase extends $grpc.Service { $core.String get $name => 'to.v1.ApiTo'; ApiToServiceBase() { $addMethod($grpc.ServiceMethod<$0.ToSendCodeToPhoneRequestV2, $0.DefaultReply>( 'ToSendCodeToPhoneV2', toSendCodeToPhoneV2_Pre, false, false, ($core.List<$core.int> value) => $0.ToSendCodeToPhoneRequestV2.fromBuffer(value), ($0.DefaultReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.GetSmsSendLeftTimeRequest, $0.GetSmsSendLeftTimeReply>( 'ToGetSmsSendLeftTimeV2', toGetSmsSendLeftTimeV2_Pre, false, false, ($core.List<$core.int> value) => $0.GetSmsSendLeftTimeRequest.fromBuffer(value), ($0.GetSmsSendLeftTimeReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.ToSignInRequestV2, $0.SignInReply>( 'ToSignInV2', toSignInV2_Pre, false, false, ($core.List<$core.int> value) => $0.ToSignInRequestV2.fromBuffer(value), ($0.SignInReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.DefaultRequest, $0.DefaultReply>( 'ToSignOutV2', toSignOutV2_Pre, false, false, ($core.List<$core.int> value) => $0.DefaultRequest.fromBuffer(value), ($0.DefaultReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.DefaultRequest, $0.GetServerTimeRp>( 'ToGetServerTime', toGetServerTime_Pre, false, false, ($core.List<$core.int> value) => $0.DefaultRequest.fromBuffer(value), ($0.GetServerTimeRp value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.ToGetUpdateVersionRequest, $0.ToGetUpdateVersionReply>( 'ToGetUpdateVersion', toGetUpdateVersion_Pre, false, false, ($core.List<$core.int> value) => $0.ToGetUpdateVersionRequest.fromBuffer(value), ($0.ToGetUpdateVersionReply 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<$0.IdRequest, $0.ToMapInfoV2>( 'ToMapDetailV2', toMapDetailV2_Pre, false, false, ($core.List<$core.int> value) => $0.IdRequest.fromBuffer(value), ($0.ToMapInfoV2 value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.ToGetBinaryByMd5Request, $0.BinaryPartV2>( 'ToGetBinaryByMd5', toGetBinaryByMd5_Pre, false, true, ($core.List<$core.int> value) => $0.ToGetBinaryByMd5Request.fromBuffer(value), ($0.BinaryPartV2 value) => value.writeToBuffer())); } $async.Future<$0.DefaultReply> toSendCodeToPhoneV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSendCodeToPhoneRequestV2> request) async { return toSendCodeToPhoneV2(call, await request); } $async.Future<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2_Pre($grpc.ServiceCall call, $async.Future<$0.GetSmsSendLeftTimeRequest> request) async { return toGetSmsSendLeftTimeV2(call, await request); } $async.Future<$0.SignInReply> toSignInV2_Pre($grpc.ServiceCall call, $async.Future<$0.ToSignInRequestV2> request) async { return toSignInV2(call, await request); } $async.Future<$0.DefaultReply> toSignOutV2_Pre($grpc.ServiceCall call, $async.Future<$0.DefaultRequest> request) async { return toSignOutV2(call, await request); } $async.Future<$0.GetServerTimeRp> toGetServerTime_Pre($grpc.ServiceCall call, $async.Future<$0.DefaultRequest> request) async { return toGetServerTime(call, await request); } $async.Future<$0.ToGetUpdateVersionReply> toGetUpdateVersion_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetUpdateVersionRequest> request) async { return toGetUpdateVersion(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<$0.IdRequest> request) async { return toMapDetailV2(call, await request); } $async.Stream<$0.BinaryPartV2> toGetBinaryByMd5_Pre($grpc.ServiceCall call, $async.Future<$0.ToGetBinaryByMd5Request> request) async* { yield* toGetBinaryByMd5(call, await request); } $async.Future<$0.DefaultReply> toSendCodeToPhoneV2($grpc.ServiceCall call, $0.ToSendCodeToPhoneRequestV2 request); $async.Future<$0.GetSmsSendLeftTimeReply> toGetSmsSendLeftTimeV2($grpc.ServiceCall call, $0.GetSmsSendLeftTimeRequest request); $async.Future<$0.SignInReply> toSignInV2($grpc.ServiceCall call, $0.ToSignInRequestV2 request); $async.Future<$0.DefaultReply> toSignOutV2($grpc.ServiceCall call, $0.DefaultRequest request); $async.Future<$0.GetServerTimeRp> toGetServerTime($grpc.ServiceCall call, $0.DefaultRequest request); $async.Future<$0.ToGetUpdateVersionReply> toGetUpdateVersion($grpc.ServiceCall call, $0.ToGetUpdateVersionRequest request); $async.Future<$0.ToMapListReplyV2> toMapListV2($grpc.ServiceCall call, $0.MapListRequestV2 request); $async.Future<$0.ToMapInfoV2> toMapDetailV2($grpc.ServiceCall call, $0.IdRequest request); $async.Stream<$0.BinaryPartV2> toGetBinaryByMd5($grpc.ServiceCall call, $0.ToGetBinaryByMd5Request request); }