public static enum Event.EventType extends Enum<Event.EventType> implements com.google.protobuf.ProtocolMessageEnum
wechaty.puppet.EventType| 枚举常量和说明 |
|---|
EVENT_TYPE_DONG
EVENT_TYPE_DONG = 3; |
EVENT_TYPE_ERROR
EVENT_TYPE_ERROR = 16; |
EVENT_TYPE_FRIENDSHIP
EVENT_TYPE_FRIENDSHIP = 17; |
EVENT_TYPE_HEARTBEAT
EVENT_TYPE_HEARTBEAT = 1; |
EVENT_TYPE_LOGIN
EVENT_TYPE_LOGIN = 25; |
EVENT_TYPE_LOGOUT
EVENT_TYPE_LOGOUT = 26; |
EVENT_TYPE_MESSAGE
EVENT_TYPE_MESSAGE = 2; |
EVENT_TYPE_READY
EVENT_TYPE_READY = 23; |
EVENT_TYPE_RESET
EVENT_TYPE_RESET = 24; |
EVENT_TYPE_ROOM_INVITE
EVENT_TYPE_ROOM_INVITE = 18; |
EVENT_TYPE_ROOM_JOIN
EVENT_TYPE_ROOM_JOIN = 19; |
EVENT_TYPE_ROOM_LEAVE
EVENT_TYPE_ROOM_LEAVE = 20; |
EVENT_TYPE_ROOM_TOPIC
EVENT_TYPE_ROOM_TOPIC = 21; |
EVENT_TYPE_SCAN
EVENT_TYPE_SCAN = 22; |
EVENT_TYPE_UNSPECIFIED
EVENT_TYPE_UNSPECIFIED = 0; |
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
EVENT_TYPE_DONG_VALUE
EVENT_TYPE_DONG = 3; |
static int |
EVENT_TYPE_ERROR_VALUE
EVENT_TYPE_ERROR = 16; |
static int |
EVENT_TYPE_FRIENDSHIP_VALUE
EVENT_TYPE_FRIENDSHIP = 17; |
static int |
EVENT_TYPE_HEARTBEAT_VALUE
EVENT_TYPE_HEARTBEAT = 1; |
static int |
EVENT_TYPE_LOGIN_VALUE
EVENT_TYPE_LOGIN = 25; |
static int |
EVENT_TYPE_LOGOUT_VALUE
EVENT_TYPE_LOGOUT = 26; |
static int |
EVENT_TYPE_MESSAGE_VALUE
EVENT_TYPE_MESSAGE = 2; |
static int |
EVENT_TYPE_READY_VALUE
EVENT_TYPE_READY = 23; |
static int |
EVENT_TYPE_RESET_VALUE
EVENT_TYPE_RESET = 24; |
static int |
EVENT_TYPE_ROOM_INVITE_VALUE
EVENT_TYPE_ROOM_INVITE = 18; |
static int |
EVENT_TYPE_ROOM_JOIN_VALUE
EVENT_TYPE_ROOM_JOIN = 19; |
static int |
EVENT_TYPE_ROOM_LEAVE_VALUE
EVENT_TYPE_ROOM_LEAVE = 20; |
static int |
EVENT_TYPE_ROOM_TOPIC_VALUE
EVENT_TYPE_ROOM_TOPIC = 21; |
static int |
EVENT_TYPE_SCAN_VALUE
EVENT_TYPE_SCAN = 22; |
static int |
EVENT_TYPE_UNSPECIFIED_VALUE
EVENT_TYPE_UNSPECIFIED = 0; |
| 限定符和类型 | 方法和说明 |
|---|---|
static Event.EventType |
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<Event.EventType> |
internalGetValueMap() |
static Event.EventType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Event.EventType |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static Event.EventType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Event.EventType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Event.EventType EVENT_TYPE_UNSPECIFIED
EVENT_TYPE_UNSPECIFIED = 0;public static final Event.EventType EVENT_TYPE_HEARTBEAT
EVENT_TYPE_HEARTBEAT = 1;public static final Event.EventType EVENT_TYPE_MESSAGE
EVENT_TYPE_MESSAGE = 2;public static final Event.EventType EVENT_TYPE_DONG
EVENT_TYPE_DONG = 3;public static final Event.EventType EVENT_TYPE_ERROR
EVENT_TYPE_ERROR = 16;public static final Event.EventType EVENT_TYPE_FRIENDSHIP
EVENT_TYPE_FRIENDSHIP = 17;public static final Event.EventType EVENT_TYPE_ROOM_INVITE
EVENT_TYPE_ROOM_INVITE = 18;public static final Event.EventType EVENT_TYPE_ROOM_JOIN
EVENT_TYPE_ROOM_JOIN = 19;public static final Event.EventType EVENT_TYPE_ROOM_LEAVE
EVENT_TYPE_ROOM_LEAVE = 20;public static final Event.EventType EVENT_TYPE_ROOM_TOPIC
EVENT_TYPE_ROOM_TOPIC = 21;public static final Event.EventType EVENT_TYPE_SCAN
EVENT_TYPE_SCAN = 22;public static final Event.EventType EVENT_TYPE_READY
EVENT_TYPE_READY = 23;public static final Event.EventType EVENT_TYPE_RESET
EVENT_TYPE_RESET = 24;public static final Event.EventType EVENT_TYPE_LOGIN
EVENT_TYPE_LOGIN = 25;public static final Event.EventType EVENT_TYPE_LOGOUT
EVENT_TYPE_LOGOUT = 26;public static final Event.EventType UNRECOGNIZED
public static final int EVENT_TYPE_UNSPECIFIED_VALUE
EVENT_TYPE_UNSPECIFIED = 0;public static final int EVENT_TYPE_HEARTBEAT_VALUE
EVENT_TYPE_HEARTBEAT = 1;public static final int EVENT_TYPE_MESSAGE_VALUE
EVENT_TYPE_MESSAGE = 2;public static final int EVENT_TYPE_DONG_VALUE
EVENT_TYPE_DONG = 3;public static final int EVENT_TYPE_ERROR_VALUE
EVENT_TYPE_ERROR = 16;public static final int EVENT_TYPE_FRIENDSHIP_VALUE
EVENT_TYPE_FRIENDSHIP = 17;public static final int EVENT_TYPE_ROOM_INVITE_VALUE
EVENT_TYPE_ROOM_INVITE = 18;public static final int EVENT_TYPE_ROOM_JOIN_VALUE
EVENT_TYPE_ROOM_JOIN = 19;public static final int EVENT_TYPE_ROOM_LEAVE_VALUE
EVENT_TYPE_ROOM_LEAVE = 20;public static final int EVENT_TYPE_ROOM_TOPIC_VALUE
EVENT_TYPE_ROOM_TOPIC = 21;public static final int EVENT_TYPE_SCAN_VALUE
EVENT_TYPE_SCAN = 22;public static final int EVENT_TYPE_READY_VALUE
EVENT_TYPE_READY = 23;public static final int EVENT_TYPE_RESET_VALUE
EVENT_TYPE_RESET = 24;public static final int EVENT_TYPE_LOGIN_VALUE
EVENT_TYPE_LOGIN = 25;public static final int EVENT_TYPE_LOGOUT_VALUE
EVENT_TYPE_LOGOUT = 26;public static Event.EventType[] values()
for (Event.EventType c : Event.EventType.values()) System.out.println(c);
public static Event.EventType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static Event.EventType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Event.EventType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Event.EventType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Event.EventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020. All rights reserved.