public static enum ChannelJoin.Type extends java.lang.Enum<ChannelJoin.Type> implements com.google.protobuf.ProtocolMessageEnum
The type of chat channel.Protobuf enum
nakama.realtime.ChannelJoin.Type
Enum Constant and Description |
---|
DIRECT_MESSAGE
A private channel for 1-on-1 chat.
|
GROUP
A channel for group chat.
|
ROOM
A room which anyone can join to chat.
|
TYPE_UNSPECIFIED
Default case.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DIRECT_MESSAGE_VALUE
A private channel for 1-on-1 chat.
|
static int |
GROUP_VALUE
A channel for group chat.
|
static int |
ROOM_VALUE
A room which anyone can join to chat.
|
static int |
TYPE_UNSPECIFIED_VALUE
Default case.
|
Modifier and Type | Method and Description |
---|---|
static ChannelJoin.Type |
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<ChannelJoin.Type> |
internalGetValueMap() |
static ChannelJoin.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ChannelJoin.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ChannelJoin.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChannelJoin.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelJoin.Type TYPE_UNSPECIFIED
Default case. Assumed as ROOM type.
TYPE_UNSPECIFIED = 0;
public static final ChannelJoin.Type ROOM
A room which anyone can join to chat.
ROOM = 1;
public static final ChannelJoin.Type DIRECT_MESSAGE
A private channel for 1-on-1 chat.
DIRECT_MESSAGE = 2;
public static final ChannelJoin.Type GROUP
A channel for group chat.
GROUP = 3;
public static final ChannelJoin.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Default case. Assumed as ROOM type.
TYPE_UNSPECIFIED = 0;
public static final int ROOM_VALUE
A room which anyone can join to chat.
ROOM = 1;
public static final int DIRECT_MESSAGE_VALUE
A private channel for 1-on-1 chat.
DIRECT_MESSAGE = 2;
public static final int GROUP_VALUE
A channel for group chat.
GROUP = 3;
public static ChannelJoin.Type[] values()
for (ChannelJoin.Type c : ChannelJoin.Type.values()) System.out.println(c);
public static ChannelJoin.Type 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 ChannelJoin.Type valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ChannelJoin.Type forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ChannelJoin.Type> 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 ChannelJoin.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)