240 lines
7.9 KiB
Dart
240 lines
7.9 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from member.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 'blocks.pb.dart' as $0;
|
|
import 'member.pb.dart' as $1;
|
|
|
|
export 'member.pb.dart';
|
|
|
|
/// relation-关系管理:群组
|
|
@$pb.GrpcServiceName('group.Member')
|
|
class MemberClient 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 = [
|
|
'',
|
|
];
|
|
|
|
MemberClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 获取群组成员列表
|
|
$grpc.ResponseFuture<$1.GroupMemberReply> fetch(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$fetch, request, options: options);
|
|
}
|
|
|
|
/// 申请加群
|
|
$grpc.ResponseFuture<$0.StatusReply> doJoin(
|
|
$1.DoJoinRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$doJoin, request, options: options);
|
|
}
|
|
|
|
/// 申请加群列表
|
|
$grpc.ResponseFuture<$1.JoinFetchReply> joinFetch(
|
|
$0.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$joinFetch, request, options: options);
|
|
}
|
|
|
|
/// 申请加群处理
|
|
$grpc.ResponseFuture<$0.StatusReply> joinDoHandle(
|
|
$1.GroupOPRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$joinDoHandle, request, options: options);
|
|
}
|
|
|
|
/// 设置或取消管理员
|
|
$grpc.ResponseFuture<$0.StatusReply> doSetManager(
|
|
$1.GroupOPRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$doSetManager, request, options: options);
|
|
}
|
|
|
|
/// 踢人
|
|
$grpc.ResponseFuture<$0.StatusReply> doKick(
|
|
$1.GroupOPRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$doKick, request, options: options);
|
|
}
|
|
|
|
/// 退群
|
|
$grpc.ResponseFuture<$0.StatusReply> doQuit(
|
|
$1.GroupOPRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$doQuit, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$fetch =
|
|
$grpc.ClientMethod<$0.IdentRequest, $1.GroupMemberReply>(
|
|
'/group.Member/Fetch',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$1.GroupMemberReply.fromBuffer);
|
|
static final _$doJoin = $grpc.ClientMethod<$1.DoJoinRequest, $0.StatusReply>(
|
|
'/group.Member/DoJoin',
|
|
($1.DoJoinRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$joinFetch = $grpc.ClientMethod<$0.Empty, $1.JoinFetchReply>(
|
|
'/group.Member/JoinFetch',
|
|
($0.Empty value) => value.writeToBuffer(),
|
|
$1.JoinFetchReply.fromBuffer);
|
|
static final _$joinDoHandle =
|
|
$grpc.ClientMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'/group.Member/JoinDoHandle',
|
|
($1.GroupOPRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$doSetManager =
|
|
$grpc.ClientMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'/group.Member/DoSetManager',
|
|
($1.GroupOPRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$doKick = $grpc.ClientMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'/group.Member/DoKick',
|
|
($1.GroupOPRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$doQuit = $grpc.ClientMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'/group.Member/DoQuit',
|
|
($1.GroupOPRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('group.Member')
|
|
abstract class MemberServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'group.Member';
|
|
|
|
MemberServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $1.GroupMemberReply>(
|
|
'Fetch',
|
|
fetch_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($1.GroupMemberReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.DoJoinRequest, $0.StatusReply>(
|
|
'DoJoin',
|
|
doJoin_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.DoJoinRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.Empty, $1.JoinFetchReply>(
|
|
'JoinFetch',
|
|
joinFetch_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
|
|
($1.JoinFetchReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'JoinDoHandle',
|
|
joinDoHandle_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.GroupOPRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'DoSetManager',
|
|
doSetManager_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.GroupOPRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'DoKick',
|
|
doKick_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.GroupOPRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.GroupOPRequest, $0.StatusReply>(
|
|
'DoQuit',
|
|
doQuit_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.GroupOPRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$1.GroupMemberReply> fetch_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return fetch($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.GroupMemberReply> fetch(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
|
|
$async.Future<$0.StatusReply> doJoin_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.DoJoinRequest> $request) async {
|
|
return doJoin($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> doJoin(
|
|
$grpc.ServiceCall call, $1.DoJoinRequest request);
|
|
|
|
$async.Future<$1.JoinFetchReply> joinFetch_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
|
|
return joinFetch($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.JoinFetchReply> joinFetch(
|
|
$grpc.ServiceCall call, $0.Empty request);
|
|
|
|
$async.Future<$0.StatusReply> joinDoHandle_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$1.GroupOPRequest> $request) async {
|
|
return joinDoHandle($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> joinDoHandle(
|
|
$grpc.ServiceCall call, $1.GroupOPRequest request);
|
|
|
|
$async.Future<$0.StatusReply> doSetManager_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$1.GroupOPRequest> $request) async {
|
|
return doSetManager($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> doSetManager(
|
|
$grpc.ServiceCall call, $1.GroupOPRequest request);
|
|
|
|
$async.Future<$0.StatusReply> doKick_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$1.GroupOPRequest> $request) async {
|
|
return doKick($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> doKick(
|
|
$grpc.ServiceCall call, $1.GroupOPRequest request);
|
|
|
|
$async.Future<$0.StatusReply> doQuit_Pre($grpc.ServiceCall $call,
|
|
$async.Future<$1.GroupOPRequest> $request) async {
|
|
return doQuit($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> doQuit(
|
|
$grpc.ServiceCall call, $1.GroupOPRequest request);
|
|
}
|