// This is a generated file - do not edit. // // Generated from auth.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 'auth.pb.dart' as $0; export 'auth.pb.dart'; /// im auth service @$pb.GrpcServiceName('mcs.Auth') class AuthClient 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 = [ '', ]; AuthClient(super.channel, {super.options, super.interceptors}); /// 将用户注册进IM系统,系统会自动分配它预链接的WS服务器 $grpc.ResponseFuture<$0.McsRegisterReply> register( $0.McsRegisterRequest request, { $grpc.CallOptions? options, }) { return $createUnaryCall(_$register, request, options: options); } // method descriptors static final _$register = $grpc.ClientMethod<$0.McsRegisterRequest, $0.McsRegisterReply>( '/mcs.Auth/Register', ($0.McsRegisterRequest value) => value.writeToBuffer(), $0.McsRegisterReply.fromBuffer); } @$pb.GrpcServiceName('mcs.Auth') abstract class AuthServiceBase extends $grpc.Service { $core.String get $name => 'mcs.Auth'; AuthServiceBase() { $addMethod($grpc.ServiceMethod<$0.McsRegisterRequest, $0.McsRegisterReply>( 'Register', register_Pre, false, false, ($core.List<$core.int> value) => $0.McsRegisterRequest.fromBuffer(value), ($0.McsRegisterReply value) => value.writeToBuffer())); } $async.Future<$0.McsRegisterReply> register_Pre($grpc.ServiceCall $call, $async.Future<$0.McsRegisterRequest> $request) async { return register($call, await $request); } $async.Future<$0.McsRegisterReply> register( $grpc.ServiceCall call, $0.McsRegisterRequest request); }