public static enum Packet.Agreement extends Enum<Packet.Agreement> implements com.google.protobuf.ProtocolMessageEnum
枚举消息类型Protobuf enum
xin.alum.aim.model.proto.Agreement| 枚举常量和说明 |
|---|
Binary
字节数据
Binary = 2; |
Json
JSON数据
Json = 1; |
ProtoBuf
ProtoBuf协议数据
ProtoBuf = 3; |
Text
proto3版本中,首成员必须为0,成员不应有相同的值
Text = 0; |
Tlv
简单数据传输协议
Tlv = 4; |
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
Binary_VALUE
字节数据
Binary = 2; |
static int |
Json_VALUE
JSON数据
Json = 1; |
static int |
ProtoBuf_VALUE
ProtoBuf协议数据
ProtoBuf = 3; |
static int |
Text_VALUE
proto3版本中,首成员必须为0,成员不应有相同的值
Text = 0; |
static int |
Tlv_VALUE
简单数据传输协议
Tlv = 4; |
| 限定符和类型 | 方法和说明 |
|---|---|
static Packet.Agreement |
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<Packet.Agreement> |
internalGetValueMap() |
static Packet.Agreement |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Packet.Agreement |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static Packet.Agreement |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Packet.Agreement[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Packet.Agreement Text
proto3版本中,首成员必须为0,成员不应有相同的值
Text = 0;public static final Packet.Agreement Json
JSON数据
Json = 1;public static final Packet.Agreement Binary
字节数据
Binary = 2;public static final Packet.Agreement ProtoBuf
ProtoBuf协议数据
ProtoBuf = 3;public static final Packet.Agreement Tlv
简单数据传输协议
Tlv = 4;public static final Packet.Agreement UNRECOGNIZED
public static final int Text_VALUE
proto3版本中,首成员必须为0,成员不应有相同的值
Text = 0;public static final int Json_VALUE
JSON数据
Json = 1;public static final int Binary_VALUE
字节数据
Binary = 2;public static final int ProtoBuf_VALUE
ProtoBuf协议数据
ProtoBuf = 3;public static final int Tlv_VALUE
简单数据传输协议
Tlv = 4;public static Packet.Agreement[] values()
for (Packet.Agreement c : Packet.Agreement.values()) System.out.println(c);
public static Packet.Agreement valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static Packet.Agreement valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Packet.Agreement forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Packet.Agreement> 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 Packet.Agreement valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020–2022 The AIM Project. All rights reserved.