File class final

A file uploaded to the API. Next ID: 15

Constructors

File({VideoFileMetadata? videoMetadata, String name = '', String displayName = '', String mimeType = '', int sizeBytes = 0, Timestamp? createTime, Timestamp? updateTime, Timestamp? expirationTime, Uint8List? sha256Hash, String uri = '', String downloadUri = '', File_State state = File_State.$default, File_Source source = File_Source.$default, Status? error})
File.fromJson(Object? j)
factory

Properties

createTime → Timestamp?
Output only. The timestamp of when the File was created.
final
displayName → String
Optional. The human-readable display name for the File. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image"
final
downloadUri → String
Output only. The download uri of the File.
final
error → Status?
Output only. Error status if File processing failed.
final
expirationTime → Timestamp?
Output only. The timestamp of when the File will be deleted. Only set if the File is scheduled to expire.
final
hashCode → int
The hash code for this object.
no setterinherited
mimeType → String
Output only. MIME type of the file.
final
name → String
Immutable. Identifier. The File resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: files/123-456
final
qualifiedName → String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sha256Hash → Uint8List
Output only. SHA-256 hash of the uploaded bytes.
final
sizeBytes → int
Output only. Size of the file in bytes.
final
source → File_Source
Source of the File.
final
state → File_State
Output only. Processing state of the File.
final
updateTime → Timestamp?
Output only. The timestamp of when the File was last updated.
final
uri → String
Output only. The uri of the File.
final
videoMetadata → VideoFileMetadata?
Output only. Metadata for a video.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object
toString() → String
A string representation of this object.
override

Operators

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

Constants

fullyQualifiedName → const String