209 lines
6.6 KiB
Dart
209 lines
6.6 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from group.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 'group.pb.dart' as $1;
|
|
|
|
export 'group.pb.dart';
|
|
|
|
/// 群组
|
|
@$pb.GrpcServiceName('group.Basic')
|
|
class BasicClient 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 = [
|
|
'',
|
|
];
|
|
|
|
BasicClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 搜索
|
|
$grpc.ResponseFuture<$1.GroupsReply> search(
|
|
$0.SearchRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$search, request, options: options);
|
|
}
|
|
|
|
/// 获取群组列表
|
|
$grpc.ResponseFuture<$1.GroupsReply> fetch(
|
|
$0.Empty request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$fetch, request, options: options);
|
|
}
|
|
|
|
/// 获取群组信息
|
|
$grpc.ResponseFuture<$1.GroupItem> get(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
/// 创建群组
|
|
$grpc.ResponseFuture<$0.StatusReply> create(
|
|
$1.GroupItem request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$create, request, options: options);
|
|
}
|
|
|
|
/// 修改群组信息
|
|
$grpc.ResponseFuture<$0.StatusReply> modify(
|
|
$1.GroupItem request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$modify, request, options: options);
|
|
}
|
|
|
|
/// 解散群组
|
|
$grpc.ResponseFuture<$0.StatusReply> disband(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$disband, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$search = $grpc.ClientMethod<$0.SearchRequest, $1.GroupsReply>(
|
|
'/group.Basic/Search',
|
|
($0.SearchRequest value) => value.writeToBuffer(),
|
|
$1.GroupsReply.fromBuffer);
|
|
static final _$fetch = $grpc.ClientMethod<$0.Empty, $1.GroupsReply>(
|
|
'/group.Basic/Fetch',
|
|
($0.Empty value) => value.writeToBuffer(),
|
|
$1.GroupsReply.fromBuffer);
|
|
static final _$get = $grpc.ClientMethod<$0.IdentRequest, $1.GroupItem>(
|
|
'/group.Basic/Get',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$1.GroupItem.fromBuffer);
|
|
static final _$create = $grpc.ClientMethod<$1.GroupItem, $0.StatusReply>(
|
|
'/group.Basic/Create',
|
|
($1.GroupItem value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$modify = $grpc.ClientMethod<$1.GroupItem, $0.StatusReply>(
|
|
'/group.Basic/Modify',
|
|
($1.GroupItem value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$disband = $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
|
|
'/group.Basic/Disband',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('group.Basic')
|
|
abstract class BasicServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'group.Basic';
|
|
|
|
BasicServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.SearchRequest, $1.GroupsReply>(
|
|
'Search',
|
|
search_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.SearchRequest.fromBuffer(value),
|
|
($1.GroupsReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.Empty, $1.GroupsReply>(
|
|
'Fetch',
|
|
fetch_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
|
|
($1.GroupsReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $1.GroupItem>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($1.GroupItem value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.GroupItem, $0.StatusReply>(
|
|
'Create',
|
|
create_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.GroupItem.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$1.GroupItem, $0.StatusReply>(
|
|
'Modify',
|
|
modify_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $1.GroupItem.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
|
|
'Disband',
|
|
disband_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$1.GroupsReply> search_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.SearchRequest> $request) async {
|
|
return search($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.GroupsReply> search(
|
|
$grpc.ServiceCall call, $0.SearchRequest request);
|
|
|
|
$async.Future<$1.GroupsReply> fetch_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
|
|
return fetch($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.GroupsReply> fetch($grpc.ServiceCall call, $0.Empty request);
|
|
|
|
$async.Future<$1.GroupItem> get_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$1.GroupItem> get(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
|
|
$async.Future<$0.StatusReply> create_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.GroupItem> $request) async {
|
|
return create($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> create(
|
|
$grpc.ServiceCall call, $1.GroupItem request);
|
|
|
|
$async.Future<$0.StatusReply> modify_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$1.GroupItem> $request) async {
|
|
return modify($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> modify(
|
|
$grpc.ServiceCall call, $1.GroupItem request);
|
|
|
|
$async.Future<$0.StatusReply> disband_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return disband($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> disband(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
}
|