public static enum ReplicationModepb.RegionReplicationState extends Enum<ReplicationModepb.RegionReplicationState> implements com.google.protobuf.ProtocolMessageEnum
replication_modepb.RegionReplicationState
Enum Constant and Description |
---|
INTEGRITY_OVER_LABEL
Logs sync to different DCs
|
SIMPLE_MAJORITY
Logs sync to majority peers
|
UNKNOWN
The region's state is unknown
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
INTEGRITY_OVER_LABEL_VALUE
Logs sync to different DCs
|
static int |
SIMPLE_MAJORITY_VALUE
Logs sync to majority peers
|
static int |
UNKNOWN_VALUE
The region's state is unknown
|
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Use
forNumber(int) instead. |
static ReplicationModepb.RegionReplicationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationModepb.RegionReplicationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static ReplicationModepb.RegionReplicationState valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ReplicationModepb.RegionReplicationState forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ReplicationModepb.RegionReplicationState> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ReplicationModepb.RegionReplicationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.