File
@Serializable
A file uploaded to the API.
Constructors
Link copied to clipboard
constructor(name: String? = null, displayName: String? = null, mimeType: String? = null, sizeBytes: Long? = null, createTime: Instant? = null, expirationTime: Instant? = null, updateTime: Instant? = null, sha256Hash: String? = null, uri: String? = null, downloadUri: String? = null, state: FileState? = null, source: FileSource? = null, videoMetadata: Map<String, JsonElement>? = null, error: FileStatus? = null)
Properties
Link copied to clipboard
Output only. The timestamp of when the File was created.
Link copied to clipboard
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'
Link copied to clipboard
Output only. The URI of the File, only set for downloadable (generated) files.
Link copied to clipboard
Output only. Error status if File processing failed.
Link copied to clipboard
Output only. The timestamp of when the File will be deleted. Only set if the File is scheduled to expire.
Link copied to clipboard
Link copied to clipboard
Output only. SHA-256 hash of the uploaded bytes. The hash value is encoded in base64 format.
Link copied to clipboard
Output only. The source of the File.
Link copied to clipboard
Output only. The timestamp of when the File was last updated.
Link copied to clipboard
Output only. Metadata for a video.