MediaType

enum MediaType : ProtocolMessageEnum
Defines broad types of media that may be expressed.
Protobuf enum elide.page.MediaType

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val AUDIO_VALUE: Int = 2
This media is an audio asset of some kind.
AUDIO = 2;
Link copied to clipboard
The media is an arbitrary kind of digital document.
DOCUMENT = 4;
Link copied to clipboard
val IMAGE_VALUE: Int = 0
This media is an image asset of some kind.
IMAGE = 0;
Link copied to clipboard
val LINK_VALUE: Int = 3
The media is a link to another asset or page of some kind.
LINK = 3;
Link copied to clipboard
val VIDEO_VALUE: Int = 1
This media is a video asset of some kind.
VIDEO = 1;

Functions

Link copied to clipboard
open fun forNumber(value: Int): MediaType
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<MediaType>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): MediaType
open fun valueOf(value: Int): MediaType

open fun valueOf(name: String): MediaType

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
open fun values(): Array<MediaType>

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.