public static final class Channel.Builder extends com.google.protobuf.GeneratedMessage.Builder<Channel.Builder> implements ChannelOrBuilder
A realtime chat channel.Protobuf type
nakama.realtime.Channel
Modifier and Type | Method and Description |
---|---|
Channel.Builder |
addAllPresences(java.lang.Iterable<? extends UserPresence> values)
The users currently in the channel.
|
Channel.Builder |
addPresences(int index,
UserPresence.Builder builderForValue)
The users currently in the channel.
|
Channel.Builder |
addPresences(int index,
UserPresence value)
The users currently in the channel.
|
Channel.Builder |
addPresences(UserPresence.Builder builderForValue)
The users currently in the channel.
|
Channel.Builder |
addPresences(UserPresence value)
The users currently in the channel.
|
UserPresence.Builder |
addPresencesBuilder()
The users currently in the channel.
|
UserPresence.Builder |
addPresencesBuilder(int index)
The users currently in the channel.
|
Channel |
build() |
Channel |
buildPartial() |
Channel.Builder |
clear() |
Channel.Builder |
clearGroupId()
The ID of the group, or an empty string if this message was not sent through a group channel.
|
Channel.Builder |
clearId()
The ID of the channel.
|
Channel.Builder |
clearPresences()
The users currently in the channel.
|
Channel.Builder |
clearRoomName()
The name of the chat room, or an empty string if this message was not sent through a chat room.
|
Channel.Builder |
clearSelf()
A reference to the current user's presence in the channel.
|
Channel.Builder |
clearUserIdOne()
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
|
Channel.Builder |
clearUserIdTwo()
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
|
Channel |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
UserPresence |
getPresences(int index)
The users currently in the channel.
|
UserPresence.Builder |
getPresencesBuilder(int index)
The users currently in the channel.
|
java.util.List<UserPresence.Builder> |
getPresencesBuilderList()
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.
|
UserPresence.Builder |
getSelfBuilder()
A reference to the current user's presence in the channel.
|
UserPresenceOrBuilder |
getSelfOrBuilder()
A reference to the current user's presence in the channel.
|
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.
|
boolean |
hasSelf()
A reference to the current user's presence in the channel.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Channel.Builder |
mergeFrom(Channel other) |
Channel.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Channel.Builder |
mergeFrom(com.google.protobuf.Message other) |
Channel.Builder |
mergeSelf(UserPresence value)
A reference to the current user's presence in the channel.
|
Channel.Builder |
removePresences(int index)
The users currently in the channel.
|
Channel.Builder |
setGroupId(java.lang.String value)
The ID of the group, or an empty string if this message was not sent through a group channel.
|
Channel.Builder |
setGroupIdBytes(com.google.protobuf.ByteString value)
The ID of the group, or an empty string if this message was not sent through a group channel.
|
Channel.Builder |
setId(java.lang.String value)
The ID of the channel.
|
Channel.Builder |
setIdBytes(com.google.protobuf.ByteString value)
The ID of the channel.
|
Channel.Builder |
setPresences(int index,
UserPresence.Builder builderForValue)
The users currently in the channel.
|
Channel.Builder |
setPresences(int index,
UserPresence value)
The users currently in the channel.
|
Channel.Builder |
setRoomName(java.lang.String value)
The name of the chat room, or an empty string if this message was not sent through a chat room.
|
Channel.Builder |
setRoomNameBytes(com.google.protobuf.ByteString value)
The name of the chat room, or an empty string if this message was not sent through a chat room.
|
Channel.Builder |
setSelf(UserPresence.Builder builderForValue)
A reference to the current user's presence in the channel.
|
Channel.Builder |
setSelf(UserPresence value)
A reference to the current user's presence in the channel.
|
Channel.Builder |
setUserIdOne(java.lang.String value)
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
|
Channel.Builder |
setUserIdOneBytes(com.google.protobuf.ByteString value)
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
|
Channel.Builder |
setUserIdTwo(java.lang.String value)
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
|
Channel.Builder |
setUserIdTwoBytes(com.google.protobuf.ByteString value)
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
public Channel.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
public Channel getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Channel build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Channel buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Channel.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Channel.Builder>
public Channel.Builder mergeFrom(Channel other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Channel.Builder>
public Channel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Channel.Builder>
java.io.IOException
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 Channel.Builder setId(java.lang.String value)
The ID of the channel.
string id = 1 [json_name = "id"];
value
- The id to set.public Channel.Builder clearId()
The ID of the channel.
string id = 1 [json_name = "id"];
public Channel.Builder setIdBytes(com.google.protobuf.ByteString value)
The ID of the channel.
string id = 1 [json_name = "id"];
value
- The bytes for id to set.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 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 Channel.Builder setPresences(int index, UserPresence value)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder setPresences(int index, UserPresence.Builder builderForValue)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder addPresences(UserPresence value)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder addPresences(int index, UserPresence value)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder addPresences(UserPresence.Builder builderForValue)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder addPresences(int index, UserPresence.Builder builderForValue)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder addAllPresences(java.lang.Iterable<? extends UserPresence> values)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder clearPresences()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public Channel.Builder removePresences(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public UserPresence.Builder getPresencesBuilder(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
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 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 UserPresence.Builder addPresencesBuilder()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public UserPresence.Builder addPresencesBuilder(int index)
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
public java.util.List<UserPresence.Builder> getPresencesBuilderList()
The users currently in the channel.
repeated .nakama.realtime.UserPresence presences = 2 [json_name = "presences"];
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 Channel.Builder setSelf(UserPresence value)
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
public Channel.Builder setSelf(UserPresence.Builder builderForValue)
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
public Channel.Builder mergeSelf(UserPresence value)
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
public Channel.Builder clearSelf()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
public UserPresence.Builder getSelfBuilder()
A reference to the current user's presence in the channel.
.nakama.realtime.UserPresence self = 3 [json_name = "self"];
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 Channel.Builder setRoomName(java.lang.String value)
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"];
value
- The roomName to set.public Channel.Builder clearRoomName()
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"];
public Channel.Builder setRoomNameBytes(com.google.protobuf.ByteString value)
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"];
value
- The bytes for roomName to set.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 Channel.Builder setGroupId(java.lang.String value)
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"];
value
- The groupId to set.public Channel.Builder clearGroupId()
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"];
public Channel.Builder setGroupIdBytes(com.google.protobuf.ByteString value)
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"];
value
- The bytes for groupId to set.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 Channel.Builder setUserIdOne(java.lang.String value)
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"];
value
- The userIdOne to set.public Channel.Builder clearUserIdOne()
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"];
public Channel.Builder setUserIdOneBytes(com.google.protobuf.ByteString value)
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"];
value
- The bytes for userIdOne to set.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 Channel.Builder setUserIdTwo(java.lang.String value)
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"];
value
- The userIdTwo to set.public Channel.Builder clearUserIdTwo()
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"];
public Channel.Builder setUserIdTwoBytes(com.google.protobuf.ByteString value)
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"];
value
- The bytes for userIdTwo to set.