public static enum Friend.State extends java.lang.Enum<Friend.State> implements com.google.protobuf.ProtocolMessageEnum
The friendship status.Protobuf enum
nakama.api.Friend.State
Enum Constant and Description |
---|
BLOCKED
The current user has blocked this user.
|
FRIEND
The user is a friend of the current user.
|
INVITE_RECEIVED
The current user has received an invite from this user.
|
INVITE_SENT
The current user has sent an invite to the user.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BLOCKED_VALUE
The current user has blocked this user.
|
static int |
FRIEND_VALUE
The user is a friend of the current user.
|
static int |
INVITE_RECEIVED_VALUE
The current user has received an invite from this user.
|
static int |
INVITE_SENT_VALUE
The current user has sent an invite to the user.
|
Modifier and Type | Method and Description |
---|---|
static Friend.State |
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<Friend.State> |
internalGetValueMap() |
static Friend.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Friend.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Friend.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Friend.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Friend.State FRIEND
The user is a friend of the current user.
FRIEND = 0;
public static final Friend.State INVITE_SENT
The current user has sent an invite to the user.
INVITE_SENT = 1;
public static final Friend.State INVITE_RECEIVED
The current user has received an invite from this user.
INVITE_RECEIVED = 2;
public static final Friend.State BLOCKED
The current user has blocked this user.
BLOCKED = 3;
public static final Friend.State UNRECOGNIZED
public static final int FRIEND_VALUE
The user is a friend of the current user.
FRIEND = 0;
public static final int INVITE_SENT_VALUE
The current user has sent an invite to the user.
INVITE_SENT = 1;
public static final int INVITE_RECEIVED_VALUE
The current user has received an invite from this user.
INVITE_RECEIVED = 2;
public static final int BLOCKED_VALUE
The current user has blocked this user.
BLOCKED = 3;
public static Friend.State[] values()
for (Friend.State c : Friend.State.values()) System.out.println(c);
public static Friend.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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 Friend.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Friend.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Friend.State> 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 Friend.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)