public static enum SocketCommon.Command extends Enum<SocketCommon.Command> implements com.google.protobuf.ProtocolMessageEnum
request and response commandProtobuf enum
com.tigerbrokers.stock.openapi.client.socket.data.pb.SocketCommon.Command| 枚举常量和说明 |
|---|
CONNECT
CONNECT = 1; |
CONNECTED
CONNECTED = 2; |
DISCONNECT
DISCONNECT = 6; |
ERROR
ERROR = 9; |
HEARTBEAT
HEARTBEAT = 8; |
MESSAGE
MESSAGE = 7; |
SEND
SEND = 3; |
SUBSCRIBE
SUBSCRIBE = 4; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
UNSUBSCRIBE
UNSUBSCRIBE = 5; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CONNECT_VALUE
CONNECT = 1; |
static int |
CONNECTED_VALUE
CONNECTED = 2; |
static int |
DISCONNECT_VALUE
DISCONNECT = 6; |
static int |
ERROR_VALUE
ERROR = 9; |
static int |
HEARTBEAT_VALUE
HEARTBEAT = 8; |
static int |
MESSAGE_VALUE
MESSAGE = 7; |
static int |
SEND_VALUE
SEND = 3; |
static int |
SUBSCRIBE_VALUE
SUBSCRIBE = 4; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
static int |
UNSUBSCRIBE_VALUE
UNSUBSCRIBE = 5; |
| 限定符和类型 | 方法和说明 |
|---|---|
static SocketCommon.Command |
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<SocketCommon.Command> |
internalGetValueMap() |
static SocketCommon.Command |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SocketCommon.Command |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static SocketCommon.Command |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SocketCommon.Command[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SocketCommon.Command UNKNOWN
UNKNOWN = 0;public static final SocketCommon.Command CONNECT
CONNECT = 1;public static final SocketCommon.Command CONNECTED
CONNECTED = 2;public static final SocketCommon.Command SEND
SEND = 3;public static final SocketCommon.Command SUBSCRIBE
SUBSCRIBE = 4;public static final SocketCommon.Command UNSUBSCRIBE
UNSUBSCRIBE = 5;public static final SocketCommon.Command DISCONNECT
DISCONNECT = 6;public static final SocketCommon.Command MESSAGE
MESSAGE = 7;public static final SocketCommon.Command HEARTBEAT
HEARTBEAT = 8;public static final SocketCommon.Command ERROR
ERROR = 9;public static final SocketCommon.Command UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;public static final int CONNECT_VALUE
CONNECT = 1;public static final int CONNECTED_VALUE
CONNECTED = 2;public static final int SEND_VALUE
SEND = 3;public static final int SUBSCRIBE_VALUE
SUBSCRIBE = 4;public static final int UNSUBSCRIBE_VALUE
UNSUBSCRIBE = 5;public static final int DISCONNECT_VALUE
DISCONNECT = 6;public static final int MESSAGE_VALUE
MESSAGE = 7;public static final int HEARTBEAT_VALUE
HEARTBEAT = 8;public static final int ERROR_VALUE
ERROR = 9;public static SocketCommon.Command[] values()
for (SocketCommon.Command c : SocketCommon.Command.values()) System.out.println(c);
public static SocketCommon.Command valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static SocketCommon.Command valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SocketCommon.Command forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SocketCommon.Command> 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 SocketCommon.Command valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.