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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public java.lang.String getChannelId()
The channel this message belongs to.
string channel_id = 1 [json_name = "channelId"];
getChannelId
in interface ChannelMessageOrBuilder
public com.google.protobuf.ByteString getChannelIdBytes()
The channel this message belongs to.
string channel_id = 1 [json_name = "channelId"];
getChannelIdBytes
in interface ChannelMessageOrBuilder
public java.lang.String getMessageId()
The unique ID of this message.
string message_id = 2 [json_name = "messageId"];
getMessageId
in interface ChannelMessageOrBuilder
public com.google.protobuf.ByteString getMessageIdBytes()
The unique ID of this message.
string message_id = 2 [json_name = "messageId"];
getMessageIdBytes
in interface ChannelMessageOrBuilder
public boolean hasCode()
The code representing a message type or category.
.google.protobuf.Int32Value code = 3 [json_name = "code"];
hasCode
in interface ChannelMessageOrBuilder
public com.google.protobuf.Int32Value getCode()
The code representing a message type or category.
.google.protobuf.Int32Value code = 3 [json_name = "code"];
getCode
in interface ChannelMessageOrBuilder
public com.google.protobuf.Int32ValueOrBuilder getCodeOrBuilder()
The code representing a message type or category.
.google.protobuf.Int32Value code = 3 [json_name = "code"];
getCodeOrBuilder
in interface ChannelMessageOrBuilder
public java.lang.String getSenderId()
Message sender, usually a user ID.
string sender_id = 4 [json_name = "senderId"];
getSenderId
in interface ChannelMessageOrBuilder
public com.google.protobuf.ByteString getSenderIdBytes()
Message sender, usually a user ID.
string sender_id = 4 [json_name = "senderId"];
getSenderIdBytes
in interface ChannelMessageOrBuilder
public java.lang.String getUsername()
The username of the message sender, if any.
string username = 5 [json_name = "username"];
getUsername
in interface ChannelMessageOrBuilder
public com.google.protobuf.ByteString getUsernameBytes()
The username of the message sender, if any.
string username = 5 [json_name = "username"];
getUsernameBytes
in interface ChannelMessageOrBuilder
public java.lang.String getContent()
The content payload.
string content = 6 [json_name = "content"];
getContent
in interface ChannelMessageOrBuilder
public com.google.protobuf.ByteString getContentBytes()
The content payload.
string content = 6 [json_name = "content"];
getContentBytes
in interface ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
public 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 ChannelMessageOrBuilder
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 = 10 [json_name = "roomName"];
getRoomName
in interface ChannelMessageOrBuilder
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 = 10 [json_name = "roomName"];
getRoomNameBytes
in interface ChannelMessageOrBuilder
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 = 11 [json_name = "groupId"];
getGroupId
in interface ChannelMessageOrBuilder
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 = 11 [json_name = "groupId"];
getGroupIdBytes
in interface ChannelMessageOrBuilder
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 = 12 [json_name = "userIdOne"];
getUserIdOne
in interface ChannelMessageOrBuilder
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 = 12 [json_name = "userIdOne"];
getUserIdOneBytes
in interface ChannelMessageOrBuilder
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 = 13 [json_name = "userIdTwo"];
getUserIdTwo
in interface ChannelMessageOrBuilder
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 = 13 [json_name = "userIdTwo"];
getUserIdTwoBytes
in interface ChannelMessageOrBuilder
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 ChannelMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChannelMessage parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChannelMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChannelMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChannelMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChannelMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ChannelMessage parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ChannelMessage parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ChannelMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static ChannelMessage parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static ChannelMessage parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static ChannelMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public ChannelMessage.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ChannelMessage.Builder newBuilder()
public static ChannelMessage.Builder newBuilder(ChannelMessage prototype)
public ChannelMessage.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected ChannelMessage.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static ChannelMessage getDefaultInstance()
public static com.google.protobuf.Parser<ChannelMessage> parser()
public com.google.protobuf.Parser<ChannelMessage> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public ChannelMessage getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder