Enum Class CommonProto.Contract.ContractUnitRequestType
java.lang.Object
java.lang.Enum<CommonProto.Contract.ContractUnitRequestType>
org.bdware.bdledger.api.grpc.pb.CommonProto.Contract.ContractUnitRequestType
- 所有已实现的接口:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<CommonProto.Contract.ContractUnitRequestType>
,Constable
- 封闭类:
- CommonProto.Contract
public static enum CommonProto.Contract.ContractUnitRequestType
extends Enum<CommonProto.Contract.ContractUnitRequestType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
bdware.bdledger.api.Contract.ContractUnitRequestType
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量 -
字段概要
字段修饰符和类型字段说明static int
ADDPEER = 8;
static int
COMMIT = 7;
static int
DROPPEER = 9;
static int
EXECUTE = 2;
static int
PREPARE = 6;
static int
PREPREPARE = 5;
static int
REPLY = 3;
static int
REQUEST = 4;
static int
START = 0;
static int
STATESYNC = 10;
static int
STOP = 1;
-
方法概要
修饰符和类型方法说明forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
com.google.protobuf.Descriptors.EnumDescriptor
int
com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<CommonProto.Contract.ContractUnitRequestType>
valueOf(int value)
已过时。valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
枚举常量详细资料
-
START
START = 0;
-
STOP
STOP = 1;
-
EXECUTE
EXECUTE = 2;
-
REPLY
REPLY = 3;
-
REQUEST
REQUEST = 4;
-
PREPREPARE
PREPREPARE = 5;
-
PREPARE
PREPARE = 6;
-
COMMIT
COMMIT = 7;
-
ADDPEER
ADDPEER = 8;
-
DROPPEER
DROPPEER = 9;
-
STATESYNC
STATESYNC = 10;
-
UNRECOGNIZED
-
-
字段详细资料
-
START_VALUE
public static final int START_VALUESTART = 0;
- 另请参阅:
- 常量字段值
-
STOP_VALUE
public static final int STOP_VALUESTOP = 1;
- 另请参阅:
- 常量字段值
-
EXECUTE_VALUE
public static final int EXECUTE_VALUEEXECUTE = 2;
- 另请参阅:
- 常量字段值
-
REPLY_VALUE
public static final int REPLY_VALUEREPLY = 3;
- 另请参阅:
- 常量字段值
-
REQUEST_VALUE
public static final int REQUEST_VALUEREQUEST = 4;
- 另请参阅:
- 常量字段值
-
PREPREPARE_VALUE
public static final int PREPREPARE_VALUEPREPREPARE = 5;
- 另请参阅:
- 常量字段值
-
PREPARE_VALUE
public static final int PREPARE_VALUEPREPARE = 6;
- 另请参阅:
- 常量字段值
-
COMMIT_VALUE
public static final int COMMIT_VALUECOMMIT = 7;
- 另请参阅:
- 常量字段值
-
ADDPEER_VALUE
public static final int ADDPEER_VALUEADDPEER = 8;
- 另请参阅:
- 常量字段值
-
DROPPEER_VALUE
public static final int DROPPEER_VALUEDROPPEER = 9;
- 另请参阅:
- 常量字段值
-
STATESYNC_VALUE
public static final int STATESYNC_VALUESTATESYNC = 10;
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- 返回:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-
getNumber
public final int getNumber()- 指定者:
getNumber
在接口中com.google.protobuf.Internal.EnumLite
- 指定者:
getNumber
在接口中com.google.protobuf.ProtocolMessageEnum
-
valueOf
已过时。Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
value
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-
forNumber
- 参数:
value
- The numeric wire value of the corresponding enum entry.- 返回:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CommonProto.Contract.ContractUnitRequestType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- 指定者:
getValueDescriptor
在接口中com.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- 指定者:
getDescriptorForType
在接口中com.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static CommonProto.Contract.ContractUnitRequestType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- 参数:
desc
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值
-