// This is a generated file - do not edit. // // Generated from history.proto. // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names 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 'history.pb.dart' as $0; export 'history.pb.dart'; /// im auth service @$pb.GrpcServiceName('mcs.History') class HistoryClient extends $grpc.Client { /// The hostname for this service. static const $core.String defaultHost = ''; /// OAuth scopes needed for the client. static const $core.List<$core.String> oauthScopes = [ '', ]; HistoryClient(super.channel, {super.options, super.interceptors}); /// 同步消息 $grpc.ResponseFuture<$0.PullReply> sync( $0.PullRequest request, { $grpc.CallOptions? options, }) { return $createUnaryCall(_$sync, request, options: options); } // method descriptors static final _$sync = $grpc.ClientMethod<$0.PullRequest, $0.PullReply>( '/mcs.History/Sync', ($0.PullRequest value) => value.writeToBuffer(), $0.PullReply.fromBuffer); } @$pb.GrpcServiceName('mcs.History') abstract class HistoryServiceBase extends $grpc.Service { $core.String get $name => 'mcs.History'; HistoryServiceBase() { $addMethod($grpc.ServiceMethod<$0.PullRequest, $0.PullReply>( 'Sync', sync_Pre, false, false, ($core.List<$core.int> value) => $0.PullRequest.fromBuffer(value), ($0.PullReply value) => value.writeToBuffer())); } $async.Future<$0.PullReply> sync_Pre( $grpc.ServiceCall $call, $async.Future<$0.PullRequest> $request) async { return sync($call, await $request); } $async.Future<$0.PullReply> sync( $grpc.ServiceCall call, $0.PullRequest request); }