@Generated(value="Generated by the protocol buffer compiler") public enum MouseButton extends java.lang.Enum<MouseButton> implements com.google.protobuf.ProtocolMessageEnum
Enum Constant and Description |
---|
BACK |
FORWARD |
MIDDLE |
MOUSE_BUTTON_UNSPECIFIED
Reserved value.
|
NO_BUTTON |
PRIMARY |
SECONDARY |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BACK_VALUE |
static int |
FORWARD_VALUE |
static int |
MIDDLE_VALUE |
static int |
MOUSE_BUTTON_UNSPECIFIED_VALUE
Reserved value.
|
static int |
NO_BUTTON_VALUE |
static int |
PRIMARY_VALUE |
static int |
SECONDARY_VALUE |
Modifier and Type | Method and Description |
---|---|
static MouseButton |
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 com.google.protobuf.Internal.EnumLiteMap<MouseButton> |
internalGetValueMap() |
static MouseButton |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MouseButton |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MouseButton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MouseButton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MouseButton MOUSE_BUTTON_UNSPECIFIED
public static final MouseButton NO_BUTTON
public static final MouseButton PRIMARY
public static final MouseButton MIDDLE
public static final MouseButton SECONDARY
public static final MouseButton BACK
public static final MouseButton FORWARD
public static final MouseButton UNRECOGNIZED
public static final int MOUSE_BUTTON_UNSPECIFIED_VALUE
public static final int NO_BUTTON_VALUE
public static final int PRIMARY_VALUE
public static final int MIDDLE_VALUE
public static final int SECONDARY_VALUE
public static final int BACK_VALUE
public static final int FORWARD_VALUE
public static MouseButton[] values()
for (MouseButton c : MouseButton.values()) System.out.println(c);
public static MouseButton 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()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static MouseButton valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MouseButton forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MouseButton> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MouseButton valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)