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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public java.lang.String getId()
The ID of the channel.
string id = 1 [json_name = "id"];
getId
in interface ChannelOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The ID of the channel.
string id = 1 [json_name = "id"];
getIdBytes
in interface ChannelOrBuilder
public java.util.List<UserPresence> getPresencesList()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
getPresencesList
in interface ChannelOrBuilder
public java.util.List<? extends UserPresenceOrBuilder> getPresencesOrBuilderList()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
getPresencesOrBuilderList
in interface ChannelOrBuilder
public int getPresencesCount()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
getPresencesCount
in interface ChannelOrBuilder
public UserPresence getPresences(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
getPresences
in interface ChannelOrBuilder
public UserPresenceOrBuilder getPresencesOrBuilder(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
getPresencesOrBuilder
in interface ChannelOrBuilder
public boolean hasSelf()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
hasSelf
in interface ChannelOrBuilder
public UserPresence getSelf()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
getSelf
in interface ChannelOrBuilder
public UserPresenceOrBuilder getSelfOrBuilder()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
getSelfOrBuilder
in interface ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public 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 ChannelOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Channel parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Channel parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Channel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Channel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Channel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Channel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Channel parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Channel parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Channel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Channel parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Channel parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Channel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Channel.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Channel.Builder newBuilder()
public static Channel.Builder newBuilder(Channel prototype)
public Channel.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Channel.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Channel getDefaultInstance()
public static com.google.protobuf.Parser<Channel> parser()
public com.google.protobuf.Parser<Channel> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Channel getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder