156 lines
5.0 KiB
Dart
156 lines
5.0 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from match.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;
|
|
|
|
export 'match.pb.dart';
|
|
|
|
/// relation-关系管理:匹配
|
|
@$pb.GrpcServiceName('relation.Match')
|
|
class MatchClient 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 = [
|
|
'',
|
|
];
|
|
|
|
MatchClient(super.channel, {super.options, super.interceptors});
|
|
|
|
/// 获取匹配列表
|
|
$grpc.ResponseFuture<$0.FetchRelationItemReply> fetch(
|
|
$0.FetchRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$fetch, request, options: options);
|
|
}
|
|
|
|
/// 获取匹配详情
|
|
$grpc.ResponseFuture<$0.RelationItem> get(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$get, request, options: options);
|
|
}
|
|
|
|
/// 执行通过,加为好友
|
|
$grpc.ResponseFuture<$0.StatusReply> doJoin(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$doJoin, request, options: options);
|
|
}
|
|
|
|
/// 执行忽略
|
|
$grpc.ResponseFuture<$0.StatusReply> doIgnore(
|
|
$0.IdentRequest request, {
|
|
$grpc.CallOptions? options,
|
|
}) {
|
|
return $createUnaryCall(_$doIgnore, request, options: options);
|
|
}
|
|
|
|
// method descriptors
|
|
|
|
static final _$fetch =
|
|
$grpc.ClientMethod<$0.FetchRequest, $0.FetchRelationItemReply>(
|
|
'/relation.Match/Fetch',
|
|
($0.FetchRequest value) => value.writeToBuffer(),
|
|
$0.FetchRelationItemReply.fromBuffer);
|
|
static final _$get = $grpc.ClientMethod<$0.IdentRequest, $0.RelationItem>(
|
|
'/relation.Match/Get',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$0.RelationItem.fromBuffer);
|
|
static final _$doJoin = $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
|
|
'/relation.Match/DoJoin',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
static final _$doIgnore = $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
|
|
'/relation.Match/DoIgnore',
|
|
($0.IdentRequest value) => value.writeToBuffer(),
|
|
$0.StatusReply.fromBuffer);
|
|
}
|
|
|
|
@$pb.GrpcServiceName('relation.Match')
|
|
abstract class MatchServiceBase extends $grpc.Service {
|
|
$core.String get $name => 'relation.Match';
|
|
|
|
MatchServiceBase() {
|
|
$addMethod($grpc.ServiceMethod<$0.FetchRequest, $0.FetchRelationItemReply>(
|
|
'Fetch',
|
|
fetch_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.FetchRequest.fromBuffer(value),
|
|
($0.FetchRelationItemReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.RelationItem>(
|
|
'Get',
|
|
get_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($0.RelationItem value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
|
|
'DoJoin',
|
|
doJoin_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
|
|
'DoIgnore',
|
|
doIgnore_Pre,
|
|
false,
|
|
false,
|
|
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
|
|
($0.StatusReply value) => value.writeToBuffer()));
|
|
}
|
|
|
|
$async.Future<$0.FetchRelationItemReply> fetch_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.FetchRequest> $request) async {
|
|
return fetch($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.FetchRelationItemReply> fetch(
|
|
$grpc.ServiceCall call, $0.FetchRequest request);
|
|
|
|
$async.Future<$0.RelationItem> get_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return get($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.RelationItem> get(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
|
|
$async.Future<$0.StatusReply> doJoin_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return doJoin($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> doJoin(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
|
|
$async.Future<$0.StatusReply> doIgnore_Pre(
|
|
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
|
|
return doIgnore($call, await $request);
|
|
}
|
|
|
|
$async.Future<$0.StatusReply> doIgnore(
|
|
$grpc.ServiceCall call, $0.IdentRequest request);
|
|
}
|