FileService class final

An API for uploading and managing files.

Constructors

FileService({required Client client})
Creates a FileService using client for transport.
FileService.fromApiKey([String? apiKey])
Creates a FileService that does authentication through an API key.
factory

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

cancelOperation(CancelOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
close() → void
Closes the client and cleans up any resources associated with it.
createFile(CreateFileRequest request) Future<CreateFileResponse>
Creates a File.
deleteFile(DeleteFileRequest request) Future<void>
Deletes the File.
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
downloadFile(DownloadFileRequest request) Future<DownloadFileResponse>
Download the File.
getFile(GetFileRequest request) Future<File>
Gets the metadata for the given File.
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
listFiles(ListFilesRequest request) Future<ListFilesResponse>
Lists the metadata for Files owned by the requesting project.
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service functionality in this service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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