public static enum EnumOutter.ErrorType extends Enum<EnumOutter.ErrorType> implements com.google.protobuf.ProtocolMessageEnum
jraft.ErrorType| 枚举常量和说明 |
|---|
ERROR_TYPE_LOG
ERROR_TYPE_LOG = 1; |
ERROR_TYPE_META
ERROR_TYPE_META = 5; |
ERROR_TYPE_NONE
ERROR_TYPE_NONE = 0; |
ERROR_TYPE_SNAPSHOT
ERROR_TYPE_SNAPSHOT = 3; |
ERROR_TYPE_STABLE
ERROR_TYPE_STABLE = 2; |
ERROR_TYPE_STATE_MACHINE
ERROR_TYPE_STATE_MACHINE = 4; |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ERROR_TYPE_LOG_VALUE
ERROR_TYPE_LOG = 1; |
static int |
ERROR_TYPE_META_VALUE
ERROR_TYPE_META = 5; |
static int |
ERROR_TYPE_NONE_VALUE
ERROR_TYPE_NONE = 0; |
static int |
ERROR_TYPE_SNAPSHOT_VALUE
ERROR_TYPE_SNAPSHOT = 3; |
static int |
ERROR_TYPE_STABLE_VALUE
ERROR_TYPE_STABLE = 2; |
static int |
ERROR_TYPE_STATE_MACHINE_VALUE
ERROR_TYPE_STATE_MACHINE = 4; |
| 限定符和类型 | 方法和说明 |
|---|---|
static EnumOutter.ErrorType |
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<EnumOutter.ErrorType> |
internalGetValueMap() |
static EnumOutter.ErrorType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static EnumOutter.ErrorType |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static EnumOutter.ErrorType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static EnumOutter.ErrorType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EnumOutter.ErrorType ERROR_TYPE_NONE
ERROR_TYPE_NONE = 0;public static final EnumOutter.ErrorType ERROR_TYPE_LOG
ERROR_TYPE_LOG = 1;public static final EnumOutter.ErrorType ERROR_TYPE_STABLE
ERROR_TYPE_STABLE = 2;public static final EnumOutter.ErrorType ERROR_TYPE_SNAPSHOT
ERROR_TYPE_SNAPSHOT = 3;public static final EnumOutter.ErrorType ERROR_TYPE_STATE_MACHINE
ERROR_TYPE_STATE_MACHINE = 4;public static final EnumOutter.ErrorType ERROR_TYPE_META
ERROR_TYPE_META = 5;public static final int ERROR_TYPE_NONE_VALUE
ERROR_TYPE_NONE = 0;public static final int ERROR_TYPE_LOG_VALUE
ERROR_TYPE_LOG = 1;public static final int ERROR_TYPE_STABLE_VALUE
ERROR_TYPE_STABLE = 2;public static final int ERROR_TYPE_SNAPSHOT_VALUE
ERROR_TYPE_SNAPSHOT = 3;public static final int ERROR_TYPE_STATE_MACHINE_VALUE
ERROR_TYPE_STATE_MACHINE = 4;public static final int ERROR_TYPE_META_VALUE
ERROR_TYPE_META = 5;public static EnumOutter.ErrorType[] values()
for (EnumOutter.ErrorType c : EnumOutter.ErrorType.values()) System.out.println(c);
public static EnumOutter.ErrorType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static EnumOutter.ErrorType valueOf(int value)
forNumber(int) instead.public static EnumOutter.ErrorType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<EnumOutter.ErrorType> 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 EnumOutter.ErrorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021. All rights reserved.