client/dart/relation/follow.pbgrpc.dart

156 lines
4.9 KiB
Dart

// This is a generated file - do not edit.
//
// Generated from follow.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 'follow.pb.dart';
/// relation-关系管理:关注
@$pb.GrpcServiceName('relation.Follow')
class FollowClient 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 = [
'',
];
FollowClient(super.channel, {super.options, super.interceptors});
/// 执行关注
$grpc.ResponseFuture<$0.StatusReply> doing(
$0.IdentRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$doing, request, options: options);
}
/// 撤销关注
$grpc.ResponseFuture<$0.StatusReply> undo(
$0.IdentRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$undo, request, options: options);
}
/// 关注状态
$grpc.ResponseFuture<$0.StatusReply> state(
$0.IdentRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$state, request, options: options);
}
/// 获取关注列表
$grpc.ResponseFuture<$0.FetchRelationItemReply> fetch(
$0.FetchRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$fetch, request, options: options);
}
// method descriptors
static final _$doing = $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
'/relation.Follow/Doing',
($0.IdentRequest value) => value.writeToBuffer(),
$0.StatusReply.fromBuffer);
static final _$undo = $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
'/relation.Follow/Undo',
($0.IdentRequest value) => value.writeToBuffer(),
$0.StatusReply.fromBuffer);
static final _$state = $grpc.ClientMethod<$0.IdentRequest, $0.StatusReply>(
'/relation.Follow/State',
($0.IdentRequest value) => value.writeToBuffer(),
$0.StatusReply.fromBuffer);
static final _$fetch =
$grpc.ClientMethod<$0.FetchRequest, $0.FetchRelationItemReply>(
'/relation.Follow/Fetch',
($0.FetchRequest value) => value.writeToBuffer(),
$0.FetchRelationItemReply.fromBuffer);
}
@$pb.GrpcServiceName('relation.Follow')
abstract class FollowServiceBase extends $grpc.Service {
$core.String get $name => 'relation.Follow';
FollowServiceBase() {
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
'Doing',
doing_Pre,
false,
false,
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
($0.StatusReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
'Undo',
undo_Pre,
false,
false,
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
($0.StatusReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.IdentRequest, $0.StatusReply>(
'State',
state_Pre,
false,
false,
($core.List<$core.int> value) => $0.IdentRequest.fromBuffer(value),
($0.StatusReply value) => value.writeToBuffer()));
$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()));
}
$async.Future<$0.StatusReply> doing_Pre(
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
return doing($call, await $request);
}
$async.Future<$0.StatusReply> doing(
$grpc.ServiceCall call, $0.IdentRequest request);
$async.Future<$0.StatusReply> undo_Pre(
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
return undo($call, await $request);
}
$async.Future<$0.StatusReply> undo(
$grpc.ServiceCall call, $0.IdentRequest request);
$async.Future<$0.StatusReply> state_Pre(
$grpc.ServiceCall $call, $async.Future<$0.IdentRequest> $request) async {
return state($call, await $request);
}
$async.Future<$0.StatusReply> state(
$grpc.ServiceCall call, $0.IdentRequest request);
$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);
}