public static enum GatewayOuterClass.Partition.PartitionBrokerRole extends Enum<GatewayOuterClass.Partition.PartitionBrokerRole> implements com.google.protobuf.ProtocolMessageEnum
Describes the Raft role of the broker for a given partitionProtobuf enum
gateway_protocol.Partition.PartitionBrokerRole
Enum Constant and Description |
---|
FOLLOWER
FOLLOWER = 1; |
LEADER
LEADER = 0; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FOLLOWER_VALUE
FOLLOWER = 1; |
static int |
LEADER_VALUE
LEADER = 0; |
Modifier and Type | Method and Description |
---|---|
static GatewayOuterClass.Partition.PartitionBrokerRole |
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<GatewayOuterClass.Partition.PartitionBrokerRole> |
internalGetValueMap() |
static GatewayOuterClass.Partition.PartitionBrokerRole |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GatewayOuterClass.Partition.PartitionBrokerRole |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GatewayOuterClass.Partition.PartitionBrokerRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GatewayOuterClass.Partition.PartitionBrokerRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GatewayOuterClass.Partition.PartitionBrokerRole LEADER
LEADER = 0;
public static final GatewayOuterClass.Partition.PartitionBrokerRole FOLLOWER
FOLLOWER = 1;
public static final GatewayOuterClass.Partition.PartitionBrokerRole UNRECOGNIZED
public static final int LEADER_VALUE
LEADER = 0;
public static final int FOLLOWER_VALUE
FOLLOWER = 1;
public static GatewayOuterClass.Partition.PartitionBrokerRole[] values()
for (GatewayOuterClass.Partition.PartitionBrokerRole c : GatewayOuterClass.Partition.PartitionBrokerRole.values()) System.out.println(c);
public static GatewayOuterClass.Partition.PartitionBrokerRole 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 GatewayOuterClass.Partition.PartitionBrokerRole valueOf(int value)
forNumber(int)
instead.public static GatewayOuterClass.Partition.PartitionBrokerRole forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<GatewayOuterClass.Partition.PartitionBrokerRole> 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 GatewayOuterClass.Partition.PartitionBrokerRole valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2017–2019 camunda services GmbH. All rights reserved.