FileBasicClient class

File Service

Annotations
  • @GrpcServiceName.new('jmash.basic.FileBasic')

Constructors

FileBasicClient(ClientChannel channel, {CallOptions? options, Iterable<ClientInterceptor>? interceptors})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$createCall<Q, R>(ClientMethod<Q, R> method, Stream<Q> requests, {CallOptions? options}) → ClientCall<Q, R>
inherited
$createStreamingCall<Q, R>(ClientMethod<Q, R> method, Stream<Q> requests, {CallOptions? options}) → ResponseStream<R>
inherited
$createUnaryCall<Q, R>(ClientMethod<Q, R> method, Q request, {CallOptions? options}) → ResponseFuture<R>
inherited
downloadFile(DownloadReq request, {CallOptions? options}) → ResponseStream<HttpBody>
下载文件通过ID
downloadFileBySrc(DownloadSrcReq request, {CallOptions? options}) → ResponseStream<HttpBody>
下载文件通过Src
downloadFileRange(FileRangeReq request, {CallOptions? options}) → ResponseStream<FileRangeResp>
文件Range数据
downloadThumb(ThumbDownloadReq request, {CallOptions? options}) → ResponseStream<HttpBody>
下载缩略图通过ID
downloadThumbBySrc(ThumbSrcDownloadReq request, {CallOptions? options}) → ResponseStream<HttpBody>
下载缩略图通过Src
existFile(FileHash request, {CallOptions? options}) → ResponseFuture<FileInfo>
文件是否存在
existFileHex(FileHashHex request, {CallOptions? options}) → ResponseFuture<FileInfo>
文件是否存在
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFile(FileSrcReq request, {CallOptions? options}) → ResponseFuture<BoolValue>
移除文件
toString() String
A string representation of this object.
inherited
uploadBase64File(FileBase64Req request, {CallOptions? options}) → ResponseFuture<FileInfo>
上传Base64文件 3.5M限制
uploadFile(Stream<FileUploadReq> request, {CallOptions? options}) → ResponseFuture<FileInfo>
上传文件
uploadFileWeb(FileWebUploadReq request, {CallOptions? options}) → ResponseFuture<FileInfo>
通过Web上传文件
version(Empty request, {CallOptions? options}) → ResponseFuture<StringValue>
版本

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultHost → const String
The hostname for this service.
oauthScopes → const List<String>
OAuth scopes needed for the client.