client/dart/feed/timeline.pbgrpc.dart

156 lines
4.9 KiB
Dart

// This is a generated file - do not edit.
//
// Generated from timeline.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 'timeline.pb.dart';
/// 实时动态
@$pb.GrpcServiceName('feed.Timeline')
class TimelineClient 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 = [
'',
];
TimelineClient(super.channel, {super.options, super.interceptors});
/// 推荐
$grpc.ResponseFuture<$0.PostListReply> recommend(
$0.FetchRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$recommend, request, options: options);
}
/// 好友动态
$grpc.ResponseFuture<$0.PostListReply> friend(
$0.FetchRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$friend, request, options: options);
}
/// 关注的动态
$grpc.ResponseFuture<$0.PostListReply> follow(
$0.FetchRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$follow, request, options: options);
}
/// 热门
$grpc.ResponseFuture<$0.PostListReply> hot(
$0.FetchRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$hot, request, options: options);
}
// method descriptors
static final _$recommend =
$grpc.ClientMethod<$0.FetchRequest, $0.PostListReply>(
'/feed.Timeline/Recommend',
($0.FetchRequest value) => value.writeToBuffer(),
$0.PostListReply.fromBuffer);
static final _$friend = $grpc.ClientMethod<$0.FetchRequest, $0.PostListReply>(
'/feed.Timeline/Friend',
($0.FetchRequest value) => value.writeToBuffer(),
$0.PostListReply.fromBuffer);
static final _$follow = $grpc.ClientMethod<$0.FetchRequest, $0.PostListReply>(
'/feed.Timeline/Follow',
($0.FetchRequest value) => value.writeToBuffer(),
$0.PostListReply.fromBuffer);
static final _$hot = $grpc.ClientMethod<$0.FetchRequest, $0.PostListReply>(
'/feed.Timeline/Hot',
($0.FetchRequest value) => value.writeToBuffer(),
$0.PostListReply.fromBuffer);
}
@$pb.GrpcServiceName('feed.Timeline')
abstract class TimelineServiceBase extends $grpc.Service {
$core.String get $name => 'feed.Timeline';
TimelineServiceBase() {
$addMethod($grpc.ServiceMethod<$0.FetchRequest, $0.PostListReply>(
'Recommend',
recommend_Pre,
false,
false,
($core.List<$core.int> value) => $0.FetchRequest.fromBuffer(value),
($0.PostListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.FetchRequest, $0.PostListReply>(
'Friend',
friend_Pre,
false,
false,
($core.List<$core.int> value) => $0.FetchRequest.fromBuffer(value),
($0.PostListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.FetchRequest, $0.PostListReply>(
'Follow',
follow_Pre,
false,
false,
($core.List<$core.int> value) => $0.FetchRequest.fromBuffer(value),
($0.PostListReply value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.FetchRequest, $0.PostListReply>(
'Hot',
hot_Pre,
false,
false,
($core.List<$core.int> value) => $0.FetchRequest.fromBuffer(value),
($0.PostListReply value) => value.writeToBuffer()));
}
$async.Future<$0.PostListReply> recommend_Pre(
$grpc.ServiceCall $call, $async.Future<$0.FetchRequest> $request) async {
return recommend($call, await $request);
}
$async.Future<$0.PostListReply> recommend(
$grpc.ServiceCall call, $0.FetchRequest request);
$async.Future<$0.PostListReply> friend_Pre(
$grpc.ServiceCall $call, $async.Future<$0.FetchRequest> $request) async {
return friend($call, await $request);
}
$async.Future<$0.PostListReply> friend(
$grpc.ServiceCall call, $0.FetchRequest request);
$async.Future<$0.PostListReply> follow_Pre(
$grpc.ServiceCall $call, $async.Future<$0.FetchRequest> $request) async {
return follow($call, await $request);
}
$async.Future<$0.PostListReply> follow(
$grpc.ServiceCall call, $0.FetchRequest request);
$async.Future<$0.PostListReply> hot_Pre(
$grpc.ServiceCall $call, $async.Future<$0.FetchRequest> $request) async {
return hot($call, await $request);
}
$async.Future<$0.PostListReply> hot(
$grpc.ServiceCall call, $0.FetchRequest request);
}