com.aliyun.openservices.ots.protocol
枚举 OtsProtocol2.OperationType
java.lang.Object
java.lang.Enum<OtsProtocol2.OperationType>
com.aliyun.openservices.ots.protocol.OtsProtocol2.OperationType
- 所有已实现的接口:
- com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<OtsProtocol2.OperationType>
- 包容类:
- OtsProtocol2
public static enum OtsProtocol2.OperationType
- extends Enum<OtsProtocol2.OperationType>
- implements com.google.protobuf.ProtocolMessageEnum
PUT
public static final OtsProtocol2.OperationType PUT
DELETE
public static final OtsProtocol2.OperationType DELETE
PUT_VALUE
public static final int PUT_VALUE
- 另请参见:
- 常量字段值
DELETE_VALUE
public static final int DELETE_VALUE
- 另请参见:
- 常量字段值
values
public static OtsProtocol2.OperationType[] values()
- 按照声明该枚举类型的常量的顺序,返回
包含这些常量的数组。该方法可用于迭代
常量,如下所示:
for (OtsProtocol2.OperationType c : OtsProtocol2.OperationType.values())
System.out.println(c);
valueOf
public static OtsProtocol2.OperationType valueOf(String name)
- 返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格。)
- 参数:
name - 要返回的枚举常量的名称。
- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException
getNumber
public final int getNumber()
- 指定者:
- 接口
com.google.protobuf.Internal.EnumLite 中的 getNumber - 指定者:
- 接口
com.google.protobuf.ProtocolMessageEnum 中的 getNumber
valueOf
public static OtsProtocol2.OperationType valueOf(int value)
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<OtsProtocol2.OperationType> internalGetValueMap()
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- 指定者:
- 接口
com.google.protobuf.ProtocolMessageEnum 中的 getValueDescriptor
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- 指定者:
- 接口
com.google.protobuf.ProtocolMessageEnum 中的 getDescriptorForType
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
valueOf
public static OtsProtocol2.OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2014. All Rights Reserved.