client/dart/initial/disk.pbgrpc.dart

318 lines
11 KiB
Dart

// This is a generated file - do not edit.
//
// Generated from disk.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 'disk.pb.dart' as $0;
export 'disk.pb.dart';
/// 全都需要登录
@$pb.GrpcServiceName('cloud.Disk')
class DiskClient 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 = [
'',
];
DiskClient(super.channel, {super.options, super.interceptors});
/// 本级目录列表
$grpc.ResponseFuture<$0.ListResponse> list(
$0.ListRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$list, request, options: options);
}
/// 目录树
$grpc.ResponseFuture<$0.DirTreeResponse> dirTree(
$0.DirTreeRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$dirTree, request, options: options);
}
/// 本级及子级递归列表
$grpc.ResponseFuture<$0.ListResponse> download(
$0.DownloadRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$download, request, options: options);
}
/// 创建文件/文件夹
$grpc.ResponseFuture<$0.MakeResponse> make(
$0.MakeRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$make, request, options: options);
}
/// 修改文件/文件夹名称
$grpc.ResponseFuture<$0.Empty> rename(
$0.RenameRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$rename, request, options: options);
}
/// 移除文件/文件夹及其子级递归列表
$grpc.ResponseFuture<$0.Empty> remove(
$0.RemoveRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$remove, request, options: options);
}
/// 移动文件/文件夹及其子级递归列表
$grpc.ResponseFuture<$0.Empty> move(
$0.MoveRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$move, request, options: options);
}
/// 复制文件/文件夹及其子级递归列表
$grpc.ResponseFuture<$0.Empty> copy(
$0.CopyRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$copy, request, options: options);
}
/// 分享文件/文件夹及其子级递归列表
$grpc.ResponseFuture<$0.ShareResponse> share(
$0.ShareRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$share, request, options: options);
}
/// 解析分享内容
$grpc.ResponseFuture<$0.ParseShareResponse> parseShare(
$0.ParseShareRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$parseShare, request, options: options);
}
// method descriptors
static final _$list = $grpc.ClientMethod<$0.ListRequest, $0.ListResponse>(
'/cloud.Disk/List',
($0.ListRequest value) => value.writeToBuffer(),
$0.ListResponse.fromBuffer);
static final _$dirTree =
$grpc.ClientMethod<$0.DirTreeRequest, $0.DirTreeResponse>(
'/cloud.Disk/DirTree',
($0.DirTreeRequest value) => value.writeToBuffer(),
$0.DirTreeResponse.fromBuffer);
static final _$download =
$grpc.ClientMethod<$0.DownloadRequest, $0.ListResponse>(
'/cloud.Disk/Download',
($0.DownloadRequest value) => value.writeToBuffer(),
$0.ListResponse.fromBuffer);
static final _$make = $grpc.ClientMethod<$0.MakeRequest, $0.MakeResponse>(
'/cloud.Disk/Make',
($0.MakeRequest value) => value.writeToBuffer(),
$0.MakeResponse.fromBuffer);
static final _$rename = $grpc.ClientMethod<$0.RenameRequest, $0.Empty>(
'/cloud.Disk/Rename',
($0.RenameRequest value) => value.writeToBuffer(),
$0.Empty.fromBuffer);
static final _$remove = $grpc.ClientMethod<$0.RemoveRequest, $0.Empty>(
'/cloud.Disk/Remove',
($0.RemoveRequest value) => value.writeToBuffer(),
$0.Empty.fromBuffer);
static final _$move = $grpc.ClientMethod<$0.MoveRequest, $0.Empty>(
'/cloud.Disk/Move',
($0.MoveRequest value) => value.writeToBuffer(),
$0.Empty.fromBuffer);
static final _$copy = $grpc.ClientMethod<$0.CopyRequest, $0.Empty>(
'/cloud.Disk/Copy',
($0.CopyRequest value) => value.writeToBuffer(),
$0.Empty.fromBuffer);
static final _$share = $grpc.ClientMethod<$0.ShareRequest, $0.ShareResponse>(
'/cloud.Disk/Share',
($0.ShareRequest value) => value.writeToBuffer(),
$0.ShareResponse.fromBuffer);
static final _$parseShare =
$grpc.ClientMethod<$0.ParseShareRequest, $0.ParseShareResponse>(
'/cloud.Disk/ParseShare',
($0.ParseShareRequest value) => value.writeToBuffer(),
$0.ParseShareResponse.fromBuffer);
}
@$pb.GrpcServiceName('cloud.Disk')
abstract class DiskServiceBase extends $grpc.Service {
$core.String get $name => 'cloud.Disk';
DiskServiceBase() {
$addMethod($grpc.ServiceMethod<$0.ListRequest, $0.ListResponse>(
'List',
list_Pre,
false,
false,
($core.List<$core.int> value) => $0.ListRequest.fromBuffer(value),
($0.ListResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DirTreeRequest, $0.DirTreeResponse>(
'DirTree',
dirTree_Pre,
false,
false,
($core.List<$core.int> value) => $0.DirTreeRequest.fromBuffer(value),
($0.DirTreeResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.DownloadRequest, $0.ListResponse>(
'Download',
download_Pre,
false,
false,
($core.List<$core.int> value) => $0.DownloadRequest.fromBuffer(value),
($0.ListResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.MakeRequest, $0.MakeResponse>(
'Make',
make_Pre,
false,
false,
($core.List<$core.int> value) => $0.MakeRequest.fromBuffer(value),
($0.MakeResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.RenameRequest, $0.Empty>(
'Rename',
rename_Pre,
false,
false,
($core.List<$core.int> value) => $0.RenameRequest.fromBuffer(value),
($0.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.RemoveRequest, $0.Empty>(
'Remove',
remove_Pre,
false,
false,
($core.List<$core.int> value) => $0.RemoveRequest.fromBuffer(value),
($0.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.MoveRequest, $0.Empty>(
'Move',
move_Pre,
false,
false,
($core.List<$core.int> value) => $0.MoveRequest.fromBuffer(value),
($0.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.CopyRequest, $0.Empty>(
'Copy',
copy_Pre,
false,
false,
($core.List<$core.int> value) => $0.CopyRequest.fromBuffer(value),
($0.Empty value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ShareRequest, $0.ShareResponse>(
'Share',
share_Pre,
false,
false,
($core.List<$core.int> value) => $0.ShareRequest.fromBuffer(value),
($0.ShareResponse value) => value.writeToBuffer()));
$addMethod($grpc.ServiceMethod<$0.ParseShareRequest, $0.ParseShareResponse>(
'ParseShare',
parseShare_Pre,
false,
false,
($core.List<$core.int> value) => $0.ParseShareRequest.fromBuffer(value),
($0.ParseShareResponse value) => value.writeToBuffer()));
}
$async.Future<$0.ListResponse> list_Pre(
$grpc.ServiceCall $call, $async.Future<$0.ListRequest> $request) async {
return list($call, await $request);
}
$async.Future<$0.ListResponse> list(
$grpc.ServiceCall call, $0.ListRequest request);
$async.Future<$0.DirTreeResponse> dirTree_Pre($grpc.ServiceCall $call,
$async.Future<$0.DirTreeRequest> $request) async {
return dirTree($call, await $request);
}
$async.Future<$0.DirTreeResponse> dirTree(
$grpc.ServiceCall call, $0.DirTreeRequest request);
$async.Future<$0.ListResponse> download_Pre($grpc.ServiceCall $call,
$async.Future<$0.DownloadRequest> $request) async {
return download($call, await $request);
}
$async.Future<$0.ListResponse> download(
$grpc.ServiceCall call, $0.DownloadRequest request);
$async.Future<$0.MakeResponse> make_Pre(
$grpc.ServiceCall $call, $async.Future<$0.MakeRequest> $request) async {
return make($call, await $request);
}
$async.Future<$0.MakeResponse> make(
$grpc.ServiceCall call, $0.MakeRequest request);
$async.Future<$0.Empty> rename_Pre(
$grpc.ServiceCall $call, $async.Future<$0.RenameRequest> $request) async {
return rename($call, await $request);
}
$async.Future<$0.Empty> rename(
$grpc.ServiceCall call, $0.RenameRequest request);
$async.Future<$0.Empty> remove_Pre(
$grpc.ServiceCall $call, $async.Future<$0.RemoveRequest> $request) async {
return remove($call, await $request);
}
$async.Future<$0.Empty> remove(
$grpc.ServiceCall call, $0.RemoveRequest request);
$async.Future<$0.Empty> move_Pre(
$grpc.ServiceCall $call, $async.Future<$0.MoveRequest> $request) async {
return move($call, await $request);
}
$async.Future<$0.Empty> move($grpc.ServiceCall call, $0.MoveRequest request);
$async.Future<$0.Empty> copy_Pre(
$grpc.ServiceCall $call, $async.Future<$0.CopyRequest> $request) async {
return copy($call, await $request);
}
$async.Future<$0.Empty> copy($grpc.ServiceCall call, $0.CopyRequest request);
$async.Future<$0.ShareResponse> share_Pre(
$grpc.ServiceCall $call, $async.Future<$0.ShareRequest> $request) async {
return share($call, await $request);
}
$async.Future<$0.ShareResponse> share(
$grpc.ServiceCall call, $0.ShareRequest request);
$async.Future<$0.ParseShareResponse> parseShare_Pre($grpc.ServiceCall $call,
$async.Future<$0.ParseShareRequest> $request) async {
return parseShare($call, await $request);
}
$async.Future<$0.ParseShareResponse> parseShare(
$grpc.ServiceCall call, $0.ParseShareRequest request);
}