File

View as Markdown

A file of an object version: its identity and version, name, size, times and checksum.

Full nameMFiles.File
Proto filemfiles/structs.proto

Fields

FieldTypeNumberDescription
file_verFileVer1The file and its version. Pass it unchanged in an ObjFileVer to download the file.
titlestring2The file name without the extension.
extensionstring3The file name extension without the dot, for example "pdf".
sizeint644The size of the file in bytes. Exact when size_precision is FILE_SIZE_PRECISION_EXACT.
size_precisionFileSizePrecision5How exact size is. Do not rely on size if it is FILE_SIZE_PRECISION_UNKNOWN.Values: FILE_SIZE_PRECISION_EXACT (0), FILE_SIZE_PRECISION_ESTIMATE (1), FILE_SIZE_PRECISION_UNKNOWN (2).
created_at_utcgoogle.protobuf.Timestamp6The time in UTC the file was originally created.
accessed_at_utcgoogle.protobuf.Timestamp7The time in UTC the file was last accessed (e.g. read).
written_at_utcgoogle.protobuf.Timestamp8The time in UTC the file was last written to.
changed_at_utcgoogle.protobuf.Timestamp9The time in UTC the file was last written to or its attributes were changed.
guidstring10GUID of the file.
md5_checksumstring11The MD5 checksum of the file as 32 lowercase hexadecimal digits, if available.
is_missingbool12True, if the file is missing.
is_content_volatilebool13True, if the file physical content is volatile. I.e. the physical content can change without the version number change, as long as the logical content is same. The file content is guaranteed to stay physically consistent within single download session only.
flagsOBJECTFILEFLAGS14Object file flags.
master_storage_file_refstring15An optional File reference (GUID) to external Master Storage API. Only used with Master Storage, otherwise empty.

Used by methods

Used in fields