KnownMimeType

enum KnownMimeType : ProtocolMessageEnum
# VFS: Known MIME-Type

Enumerates known mime-types to the VM implementation, which can be expressed symbolically rather than in string form.
These types are only created for files which are expected to be frequently used by the VM FS.
Protobuf enum elide.vfs.KnownMimeType

Entries

Link copied to clipboard

Properties

Link copied to clipboard
Unknown or unspecified known-mime-type; regular code should never use this value, as it also represents the default
value if a known-mime-type is not specified, or if the specified value is not recognized.
KNOWN_MIME_UNSPECIFIED = 0;

Functions

Link copied to clipboard
open fun forNumber(value: Int): KnownMimeType
Link copied to clipboard
fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<KnownMimeType>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): KnownMimeType
open fun valueOf(value: Int): KnownMimeType

open fun valueOf(name: String): KnownMimeType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.