Enum Constant and Description |
---|
AUDIO |
CANVAS |
FILE |
IMAGE |
MEDIA_TYPE_UNSPECIFIED
Reserved value.
|
NONE |
PLUGIN |
UNRECOGNIZED |
VIDEO |
Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_VALUE |
static int |
CANVAS_VALUE |
static int |
FILE_VALUE |
static int |
IMAGE_VALUE |
static int |
MEDIA_TYPE_UNSPECIFIED_VALUE
Reserved value.
|
static int |
NONE_VALUE |
static int |
PLUGIN_VALUE |
static int |
VIDEO_VALUE |
Modifier and Type | Method and Description |
---|---|
static MediaType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static <any> |
internalGetValueMap() |
static MediaType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MediaType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MediaType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaType MEDIA_TYPE_UNSPECIFIED
public static final MediaType NONE
public static final MediaType IMAGE
public static final MediaType VIDEO
public static final MediaType AUDIO
public static final MediaType CANVAS
public static final MediaType FILE
public static final MediaType PLUGIN
public static final MediaType UNRECOGNIZED
public static final int MEDIA_TYPE_UNSPECIFIED_VALUE
public static final int NONE_VALUE
public static final int IMAGE_VALUE
public static final int VIDEO_VALUE
public static final int AUDIO_VALUE
public static final int CANVAS_VALUE
public static final int FILE_VALUE
public static final int PLUGIN_VALUE
public static MediaType[] values()
for (MediaType c : MediaType.values()) System.out.println(c);
public static MediaType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
@Deprecated public static MediaType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MediaType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static <any> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MediaType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)