public static enum NS.ServerMode extends Enum<NS.ServerMode> implements com.google.protobuf.ProtocolMessageEnum
openmldb.nameserver.ServerMode| Enum Constant and Description |
|---|
kFOLLOWER
kFOLLOWER = 2; |
kLEADER
kLEADER = 1; |
kNORMAL
kNORMAL = 0; |
| Modifier and Type | Field and Description |
|---|---|
static int |
kFOLLOWER_VALUE
kFOLLOWER = 2; |
static int |
kLEADER_VALUE
kLEADER = 1; |
static int |
kNORMAL_VALUE
kNORMAL = 0; |
| Modifier and Type | Method and Description |
|---|---|
static NS.ServerMode |
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<NS.ServerMode> |
internalGetValueMap() |
static NS.ServerMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static NS.ServerMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static NS.ServerMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NS.ServerMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NS.ServerMode kNORMAL
kNORMAL = 0;public static final NS.ServerMode kLEADER
kLEADER = 1;public static final NS.ServerMode kFOLLOWER
kFOLLOWER = 2;public static final int kNORMAL_VALUE
kNORMAL = 0;public static final int kLEADER_VALUE
kLEADER = 1;public static final int kFOLLOWER_VALUE
kFOLLOWER = 2;public static NS.ServerMode[] values()
for (NS.ServerMode c : NS.ServerMode.values()) System.out.println(c);
public static NS.ServerMode 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static NS.ServerMode valueOf(int value)
forNumber(int) instead.public static NS.ServerMode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<NS.ServerMode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static NS.ServerMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023. All rights reserved.