public final class ChannelMessage extends com.google.protobuf.GeneratedMessage implements ChannelMessageOrBuilder
A message sent on a channel.Protobuf type
nakama.api.ChannelMessage| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelMessage.Builder
A message sent on a 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 |
CHANNEL_ID_FIELD_NUMBER |
static int |
CODE_FIELD_NUMBER |
static int |
CONTENT_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
GROUP_ID_FIELD_NUMBER |
static int |
MESSAGE_ID_FIELD_NUMBER |
static int |
PERSISTENT_FIELD_NUMBER |
static int |
ROOM_NAME_FIELD_NUMBER |
static int |
SENDER_ID_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
USER_ID_ONE_FIELD_NUMBER |
static int |
USER_ID_TWO_FIELD_NUMBER |
static int |
USERNAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChannelId()
The channel this message belongs to.
|
com.google.protobuf.ByteString |
getChannelIdBytes()
The channel this message belongs to.
|
com.google.protobuf.Int32Value |
getCode()
The code representing a message type or category.
|
com.google.protobuf.Int32ValueOrBuilder |
getCodeOrBuilder()
The code representing a message type or category.
|
java.lang.String |
getContent()
The content payload.
|
com.google.protobuf.ByteString |
getContentBytes()
The content payload.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
|
static ChannelMessage |
getDefaultInstance() |
ChannelMessage |
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 |
getMessageId()
The unique ID of this message.
|
com.google.protobuf.ByteString |
getMessageIdBytes()
The unique ID of this message.
|
com.google.protobuf.Parser<ChannelMessage> |
getParserForType() |
com.google.protobuf.BoolValue |
getPersistent()
True if the message was persisted to the channel's history, false otherwise.
|
com.google.protobuf.BoolValueOrBuilder |
getPersistentOrBuilder()
True if the message was persisted to the channel's history, false otherwise.
|
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.
|
java.lang.String |
getSenderId()
Message sender, usually a user ID.
|
com.google.protobuf.ByteString |
getSenderIdBytes()
Message sender, usually a user ID.
|
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
|
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.
|
java.lang.String |
getUsername()
The username of the message sender, if any.
|
com.google.protobuf.ByteString |
getUsernameBytes()
The username of the message sender, if any.
|
boolean |
hasCode()
The code representing a message type or category.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
|
int |
hashCode() |
boolean |
hasPersistent()
True if the message was persisted to the channel's history, false otherwise.
|
boolean |
hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ChannelMessage.Builder |
newBuilder() |
static ChannelMessage.Builder |
newBuilder(ChannelMessage prototype) |
ChannelMessage.Builder |
newBuilderForType() |
protected ChannelMessage.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static ChannelMessage |
parseDelimitedFrom(java.io.InputStream input) |
static ChannelMessage |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChannelMessage |
parseFrom(byte[] data) |
static ChannelMessage |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChannelMessage |
parseFrom(java.nio.ByteBuffer data) |
static ChannelMessage |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChannelMessage |
parseFrom(com.google.protobuf.ByteString data) |
static ChannelMessage |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChannelMessage |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ChannelMessage |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ChannelMessage |
parseFrom(java.io.InputStream input) |
static ChannelMessage |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ChannelMessage> |
parser() |
ChannelMessage.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 CHANNEL_ID_FIELD_NUMBER
public static final int MESSAGE_ID_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
public static final int SENDER_ID_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int PERSISTENT_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 getChannelId()
The channel this message belongs to.
string channel_id = 1 [json_name = "channelId"];getChannelId in interface ChannelMessageOrBuilderpublic com.google.protobuf.ByteString getChannelIdBytes()
The channel this message belongs to.
string channel_id = 1 [json_name = "channelId"];getChannelIdBytes in interface ChannelMessageOrBuilderpublic java.lang.String getMessageId()
The unique ID of this message.
string message_id = 2 [json_name = "messageId"];getMessageId in interface ChannelMessageOrBuilderpublic com.google.protobuf.ByteString getMessageIdBytes()
The unique ID of this message.
string message_id = 2 [json_name = "messageId"];getMessageIdBytes in interface ChannelMessageOrBuilderpublic boolean hasCode()
The code representing a message type or category.
.google.protobuf.Int32Value code = 3 [json_name = "code"];hasCode in interface ChannelMessageOrBuilderpublic com.google.protobuf.Int32Value getCode()
The code representing a message type or category.
.google.protobuf.Int32Value code = 3 [json_name = "code"];getCode in interface ChannelMessageOrBuilderpublic com.google.protobuf.Int32ValueOrBuilder getCodeOrBuilder()
The code representing a message type or category.
.google.protobuf.Int32Value code = 3 [json_name = "code"];getCodeOrBuilder in interface ChannelMessageOrBuilderpublic java.lang.String getSenderId()
Message sender, usually a user ID.
string sender_id = 4 [json_name = "senderId"];getSenderId in interface ChannelMessageOrBuilderpublic com.google.protobuf.ByteString getSenderIdBytes()
Message sender, usually a user ID.
string sender_id = 4 [json_name = "senderId"];getSenderIdBytes in interface ChannelMessageOrBuilderpublic java.lang.String getUsername()
The username of the message sender, if any.
string username = 5 [json_name = "username"];getUsername in interface ChannelMessageOrBuilderpublic com.google.protobuf.ByteString getUsernameBytes()
The username of the message sender, if any.
string username = 5 [json_name = "username"];getUsernameBytes in interface ChannelMessageOrBuilderpublic java.lang.String getContent()
The content payload.
string content = 6 [json_name = "content"];getContent in interface ChannelMessageOrBuilderpublic com.google.protobuf.ByteString getContentBytes()
The content payload.
string content = 6 [json_name = "content"];getContentBytes in interface ChannelMessageOrBuilderpublic boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
.google.protobuf.Timestamp create_time = 7 [json_name = "createTime"];hasCreateTime in interface ChannelMessageOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
.google.protobuf.Timestamp create_time = 7 [json_name = "createTime"];getCreateTime in interface ChannelMessageOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was created.
.google.protobuf.Timestamp create_time = 7 [json_name = "createTime"];getCreateTimeOrBuilder in interface ChannelMessageOrBuilderpublic boolean hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
.google.protobuf.Timestamp update_time = 8 [json_name = "updateTime"];hasUpdateTime in interface ChannelMessageOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
.google.protobuf.Timestamp update_time = 8 [json_name = "updateTime"];getUpdateTime in interface ChannelMessageOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the message was last updated.
.google.protobuf.Timestamp update_time = 8 [json_name = "updateTime"];getUpdateTimeOrBuilder in interface ChannelMessageOrBuilderpublic boolean hasPersistent()
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9 [json_name = "persistent"];hasPersistent in interface ChannelMessageOrBuilderpublic com.google.protobuf.BoolValue getPersistent()
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9 [json_name = "persistent"];getPersistent in interface ChannelMessageOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getPersistentOrBuilder()
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9 [json_name = "persistent"];getPersistentOrBuilder in interface ChannelMessageOrBuilderpublic 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 = 10 [json_name = "roomName"];getRoomName in interface ChannelMessageOrBuilderpublic 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 = 10 [json_name = "roomName"];getRoomNameBytes in interface ChannelMessageOrBuilderpublic 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 = 11 [json_name = "groupId"];getGroupId in interface ChannelMessageOrBuilderpublic 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 = 11 [json_name = "groupId"];getGroupIdBytes in interface ChannelMessageOrBuilderpublic 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 = 12 [json_name = "userIdOne"];getUserIdOne in interface ChannelMessageOrBuilderpublic 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 = 12 [json_name = "userIdOne"];getUserIdOneBytes in interface ChannelMessageOrBuilderpublic 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 = 13 [json_name = "userIdTwo"];getUserIdTwo in interface ChannelMessageOrBuilderpublic 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 = 13 [json_name = "userIdTwo"];getUserIdTwoBytes in interface ChannelMessageOrBuilderpublic 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 ChannelMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ChannelMessage parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ChannelMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ChannelMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ChannelMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ChannelMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ChannelMessage parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ChannelMessage parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ChannelMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ChannelMessage parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ChannelMessage parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ChannelMessage.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ChannelMessage.Builder newBuilder()
public static ChannelMessage.Builder newBuilder(ChannelMessage prototype)
public ChannelMessage.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ChannelMessage.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static ChannelMessage getDefaultInstance()
public static com.google.protobuf.Parser<ChannelMessage> parser()
public com.google.protobuf.Parser<ChannelMessage> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic ChannelMessage getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder