public final class Channel extends com.google.protobuf.GeneratedMessage implements ChannelOrBuilder
A realtime chat channel.Protobuf type
nakama.realtime.Channel| Modifier and Type | Class and Description |
|---|---|
static class |
Channel.Builder
A realtime chat channel.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
GROUP_ID_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
PRESENCES_FIELD_NUMBER |
static int |
ROOM_NAME_FIELD_NUMBER |
static int |
SELF_FIELD_NUMBER |
static int |
USER_ID_ONE_FIELD_NUMBER |
static int |
USER_ID_TWO_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static Channel |
getDefaultInstance() |
Channel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getGroupId()
The ID of the group, or an empty string if this message was not sent through a group channel.
|
com.google.protobuf.ByteString |
getGroupIdBytes()
The ID of the group, or an empty string if this message was not sent through a group channel.
|
java.lang.String |
getId()
The ID of the channel.
|
com.google.protobuf.ByteString |
getIdBytes()
The ID of the channel.
|
com.google.protobuf.Parser<Channel> |
getParserForType() |
UserPresence |
getPresences(int index)
The users currently in the channel.
|
int |
getPresencesCount()
The users currently in the channel.
|
java.util.List<UserPresence> |
getPresencesList()
The users currently in the channel.
|
UserPresenceOrBuilder |
getPresencesOrBuilder(int index)
The users currently in the channel.
|
java.util.List<? extends UserPresenceOrBuilder> |
getPresencesOrBuilderList()
The users currently in the channel.
|
java.lang.String |
getRoomName()
The name of the chat room, or an empty string if this message was not sent through a chat room.
|
com.google.protobuf.ByteString |
getRoomNameBytes()
The name of the chat room, or an empty string if this message was not sent through a chat room.
|
UserPresence |
getSelf()
A reference to the current user's presence in the channel.
|
UserPresenceOrBuilder |
getSelfOrBuilder()
A reference to the current user's presence in the channel.
|
int |
getSerializedSize() |
java.lang.String |
getUserIdOne()
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
|
com.google.protobuf.ByteString |
getUserIdOneBytes()
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
|
java.lang.String |
getUserIdTwo()
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
|
com.google.protobuf.ByteString |
getUserIdTwoBytes()
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
|
int |
hashCode() |
boolean |
hasSelf()
A reference to the current user's presence in the channel.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Channel.Builder |
newBuilder() |
static Channel.Builder |
newBuilder(Channel prototype) |
Channel.Builder |
newBuilderForType() |
protected Channel.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Channel |
parseDelimitedFrom(java.io.InputStream input) |
static Channel |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Channel |
parseFrom(byte[] data) |
static Channel |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Channel |
parseFrom(java.nio.ByteBuffer data) |
static Channel |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Channel |
parseFrom(com.google.protobuf.ByteString data) |
static Channel |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Channel |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Channel |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Channel |
parseFrom(java.io.InputStream input) |
static Channel |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Channel> |
parser() |
Channel.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int PRESENCES_FIELD_NUMBER
public static final int SELF_FIELD_NUMBER
public static final int ROOM_NAME_FIELD_NUMBER
public static final int GROUP_ID_FIELD_NUMBER
public static final int USER_ID_ONE_FIELD_NUMBER
public static final int USER_ID_TWO_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic java.lang.String getId()
The ID of the channel.
string id = 1 [json_name = "id"];getId in interface ChannelOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The ID of the channel.
string id = 1 [json_name = "id"];getIdBytes in interface ChannelOrBuilderpublic java.util.List<UserPresence> getPresencesList()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];getPresencesList in interface ChannelOrBuilderpublic java.util.List<? extends UserPresenceOrBuilder> getPresencesOrBuilderList()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];getPresencesOrBuilderList in interface ChannelOrBuilderpublic int getPresencesCount()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];getPresencesCount in interface ChannelOrBuilderpublic UserPresence getPresences(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];getPresences in interface ChannelOrBuilderpublic UserPresenceOrBuilder getPresencesOrBuilder(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];getPresencesOrBuilder in interface ChannelOrBuilderpublic boolean hasSelf()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];hasSelf in interface ChannelOrBuilderpublic UserPresence getSelf()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];getSelf in interface ChannelOrBuilderpublic UserPresenceOrBuilder getSelfOrBuilder()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];getSelfOrBuilder in interface ChannelOrBuilderpublic java.lang.String getRoomName()
The name of the chat room, or an empty string if this message was not sent through a chat room.
string room_name = 4 [json_name = "roomName"];getRoomName in interface ChannelOrBuilderpublic com.google.protobuf.ByteString getRoomNameBytes()
The name of the chat room, or an empty string if this message was not sent through a chat room.
string room_name = 4 [json_name = "roomName"];getRoomNameBytes in interface ChannelOrBuilderpublic java.lang.String getGroupId()
The ID of the group, or an empty string if this message was not sent through a group channel.
string group_id = 5 [json_name = "groupId"];getGroupId in interface ChannelOrBuilderpublic com.google.protobuf.ByteString getGroupIdBytes()
The ID of the group, or an empty string if this message was not sent through a group channel.
string group_id = 5 [json_name = "groupId"];getGroupIdBytes in interface ChannelOrBuilderpublic java.lang.String getUserIdOne()
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
string user_id_one = 6 [json_name = "userIdOne"];getUserIdOne in interface ChannelOrBuilderpublic com.google.protobuf.ByteString getUserIdOneBytes()
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
string user_id_one = 6 [json_name = "userIdOne"];getUserIdOneBytes in interface ChannelOrBuilderpublic java.lang.String getUserIdTwo()
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
string user_id_two = 7 [json_name = "userIdTwo"];getUserIdTwo in interface ChannelOrBuilderpublic com.google.protobuf.ByteString getUserIdTwoBytes()
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
string user_id_two = 7 [json_name = "userIdTwo"];getUserIdTwoBytes in interface ChannelOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Channel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Channel parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Channel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Channel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Channel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Channel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Channel parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Channel parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Channel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Channel parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Channel parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Channel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Channel.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Channel.Builder newBuilder()
public static Channel.Builder newBuilder(Channel prototype)
public Channel.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Channel.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Channel getDefaultInstance()
public static com.google.protobuf.Parser<Channel> parser()
public com.google.protobuf.Parser<Channel> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Channel getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder