public static enum ReplicationModepb.RegionReplicationState extends Enum<ReplicationModepb.RegionReplicationState> implements com.google.protobuf.ProtocolMessageEnum
replication_modepb.RegionReplicationState| 枚举常量和说明 |
|---|
INTEGRITY_OVER_LABEL
Logs sync to different DCs
INTEGRITY_OVER_LABEL = 2; |
SIMPLE_MAJORITY
Logs sync to majority peers
SIMPLE_MAJORITY = 1; |
UNKNOWN
The region's state is unknown
UNKNOWN = 0; |
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
INTEGRITY_OVER_LABEL_VALUE
Logs sync to different DCs
INTEGRITY_OVER_LABEL = 2; |
static int |
SIMPLE_MAJORITY_VALUE
Logs sync to majority peers
SIMPLE_MAJORITY = 1; |
static int |
UNKNOWN_VALUE
The region's state is unknown
UNKNOWN = 0; |
| 限定符和类型 | 方法和说明 |
|---|---|
static ReplicationModepb.RegionReplicationState |
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<ReplicationModepb.RegionReplicationState> |
internalGetValueMap() |
static ReplicationModepb.RegionReplicationState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ReplicationModepb.RegionReplicationState |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static ReplicationModepb.RegionReplicationState |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ReplicationModepb.RegionReplicationState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ReplicationModepb.RegionReplicationState UNKNOWN
The region's state is unknown
UNKNOWN = 0;public static final ReplicationModepb.RegionReplicationState SIMPLE_MAJORITY
Logs sync to majority peers
SIMPLE_MAJORITY = 1;public static final ReplicationModepb.RegionReplicationState INTEGRITY_OVER_LABEL
Logs sync to different DCs
INTEGRITY_OVER_LABEL = 2;public static final ReplicationModepb.RegionReplicationState UNRECOGNIZED
public static final int UNKNOWN_VALUE
The region's state is unknown
UNKNOWN = 0;public static final int SIMPLE_MAJORITY_VALUE
Logs sync to majority peers
SIMPLE_MAJORITY = 1;public static final int INTEGRITY_OVER_LABEL_VALUE
Logs sync to different DCs
INTEGRITY_OVER_LABEL = 2;public static ReplicationModepb.RegionReplicationState[] values()
for (ReplicationModepb.RegionReplicationState c : ReplicationModepb.RegionReplicationState.values()) System.out.println(c);
public static ReplicationModepb.RegionReplicationState valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static ReplicationModepb.RegionReplicationState valueOf(int value)
forNumber(int) instead.public static ReplicationModepb.RegionReplicationState forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ReplicationModepb.RegionReplicationState> 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 ReplicationModepb.RegionReplicationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 PingCAP. All rights reserved.