client/dart/feed/setting.pbgrpc.dart

98 lines
2.8 KiB
Dart

// This is a generated file - do not edit.
//
// Generated from setting.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 'setting.pb.dart';
@$pb.GrpcServiceName('feed.Setting')
class SettingClient 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 = [
'',
];
SettingClient(super.channel, {super.options, super.interceptors});
/// 修改个人信息
$grpc.ResponseFuture<$0.Empty> info(
$0.Empty request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$info, request, options: options);
}
/// 修改权限信息
$grpc.ResponseFuture<$0.Empty> rights(
$0.Empty request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$rights, request, options: options);
}
// method descriptors
static final _$info = $grpc.ClientMethod<$0.Empty, $0.Empty>(
'/feed.Setting/Info',
($0.Empty value) => value.writeToBuffer(),
$0.Empty.fromBuffer);
static final _$rights = $grpc.ClientMethod<$0.Empty, $0.Empty>(
'/feed.Setting/Rights',
($0.Empty value) => value.writeToBuffer(),
$0.Empty.fromBuffer);
}
@$pb.GrpcServiceName('feed.Setting')
abstract class SettingServiceBase extends $grpc.Service {
$core.String get $name => 'feed.Setting';
SettingServiceBase() {
$addMethod($grpc.ServiceMethod<$0.Empty, $0.Empty>(
'Info',
info_Pre,
false,
false,
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
($0.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.Empty, $0.Empty>(
'Rights',
rights_Pre,
false,
false,
($core.List<$core.int> value) => $0.Empty.fromBuffer(value),
($0.Empty value) => value.writeToBuffer()));
}
$async.Future<$0.Empty> info_Pre(
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
return info($call, await $request);
}
$async.Future<$0.Empty> info($grpc.ServiceCall call, $0.Empty request);
$async.Future<$0.Empty> rights_Pre(
$grpc.ServiceCall $call, $async.Future<$0.Empty> $request) async {
return rights($call, await $request);
}
$async.Future<$0.Empty> rights($grpc.ServiceCall call, $0.Empty request);
}