public enum Role extends Enum<Role> implements com.google.protobuf.ProtocolMessageEnum
io.axoniq.axonserver.grpc.admin.Role| Enum Constant and Description |
|---|
ROLE_ACTIVE_BACKUP
ROLE_ACTIVE_BACKUP = 2; |
ROLE_MESSAGING_ONLY
ROLE_MESSAGING_ONLY = 4; |
ROLE_PASSIVE_BACKUP
ROLE_PASSIVE_BACKUP = 3; |
ROLE_PRIMARY
ROLE_PRIMARY = 0; |
ROLE_SECONDARY
ROLE_SECONDARY = 5; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ROLE_ACTIVE_BACKUP_VALUE
ROLE_ACTIVE_BACKUP = 2; |
static int |
ROLE_MESSAGING_ONLY_VALUE
ROLE_MESSAGING_ONLY = 4; |
static int |
ROLE_PASSIVE_BACKUP_VALUE
ROLE_PASSIVE_BACKUP = 3; |
static int |
ROLE_PRIMARY_VALUE
ROLE_PRIMARY = 0; |
static int |
ROLE_SECONDARY_VALUE
ROLE_SECONDARY = 5; |
| Modifier and Type | Method and Description |
|---|---|
static Role |
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<Role> |
internalGetValueMap() |
static Role |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Role |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Role ROLE_PRIMARY
ROLE_PRIMARY = 0;public static final Role ROLE_ACTIVE_BACKUP
ROLE_ACTIVE_BACKUP = 2;public static final Role ROLE_PASSIVE_BACKUP
ROLE_PASSIVE_BACKUP = 3;public static final Role ROLE_MESSAGING_ONLY
ROLE_MESSAGING_ONLY = 4;public static final Role ROLE_SECONDARY
ROLE_SECONDARY = 5;public static final Role UNRECOGNIZED
public static final int ROLE_PRIMARY_VALUE
ROLE_PRIMARY = 0;public static final int ROLE_ACTIVE_BACKUP_VALUE
ROLE_ACTIVE_BACKUP = 2;public static final int ROLE_PASSIVE_BACKUP_VALUE
ROLE_PASSIVE_BACKUP = 3;public static final int ROLE_MESSAGING_ONLY_VALUE
ROLE_MESSAGING_ONLY = 4;public static final int ROLE_SECONDARY_VALUE
ROLE_SECONDARY = 5;public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role 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 Role valueOf(int value)
forNumber(int) instead.public static Role forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Role> 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 Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020–2022 AxonIQ BV. All rights reserved.