public static enum ReplicationModepb.ReplicationMode extends Enum<ReplicationModepb.ReplicationMode> implements com.google.protobuf.ProtocolMessageEnum
replication_modepb.ReplicationMode
Enum Constant and Description |
---|
DR_AUTO_SYNC
DR mode.
|
MAJORITY
The standard mode.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DR_AUTO_SYNC_VALUE
DR mode.
|
static int |
MAJORITY_VALUE
The standard mode.
|
Modifier and Type | Method and Description |
---|---|
static ReplicationModepb.ReplicationMode |
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.ReplicationMode> |
internalGetValueMap() |
static ReplicationModepb.ReplicationMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ReplicationModepb.ReplicationMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ReplicationModepb.ReplicationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicationModepb.ReplicationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicationModepb.ReplicationMode MAJORITY
The standard mode. Replicate logs to majority peer.
MAJORITY = 0;
public static final ReplicationModepb.ReplicationMode DR_AUTO_SYNC
DR mode. Replicate logs among 2 DCs.
DR_AUTO_SYNC = 1;
public static final ReplicationModepb.ReplicationMode UNRECOGNIZED
public static final int MAJORITY_VALUE
The standard mode. Replicate logs to majority peer.
MAJORITY = 0;
public static final int DR_AUTO_SYNC_VALUE
DR mode. Replicate logs among 2 DCs.
DR_AUTO_SYNC = 1;
public static ReplicationModepb.ReplicationMode[] values()
for (ReplicationModepb.ReplicationMode c : ReplicationModepb.ReplicationMode.values()) System.out.println(c);
public static ReplicationModepb.ReplicationMode 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.ReplicationMode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ReplicationModepb.ReplicationMode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ReplicationModepb.ReplicationMode> 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.ReplicationMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 PingCAP. All rights reserved.