Package com.heroiclabs.nakama.api
Interface ChannelMessageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ChannelMessage
,ChannelMessage.Builder
public interface ChannelMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe channel this message belongs to.com.google.protobuf.ByteString
The channel this message belongs to.getCode()
The code representing a message type or category.The code representing a message type or category.The content payload.com.google.protobuf.ByteString
The content payload.The UNIX time when the message was created.The UNIX time when the message was created.The ID of the group, or an empty string if this message was not sent through a group channel.com.google.protobuf.ByteString
The ID of the group, or an empty string if this message was not sent through a group channel.The unique ID of this message.com.google.protobuf.ByteString
The unique ID of this message.True if the message was persisted to the channel's history, false otherwise.True if the message was persisted to the channel's history, false otherwise.The name of the chat room, or an empty string if this message was not sent through a chat room.com.google.protobuf.ByteString
The name of the chat room, or an empty string if this message was not sent through a chat room.Message sender, usually a user ID.com.google.protobuf.ByteString
Message sender, usually a user ID.The UNIX time when the message was last updated.The UNIX time when the message was last updated.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
The ID of the first DM user, or an empty string if this message was not sent through a DM chat.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
The ID of the second DM user, or an empty string if this message was not sent through a DM chat.The username of the message sender, if any.com.google.protobuf.ByteString
The username of the message sender, if any.boolean
hasCode()
The code representing a message type or category.boolean
The UNIX time when the message was created.boolean
True if the message was persisted to the channel's history, false otherwise.boolean
The UNIX time when the message was last updated.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getChannelId
String getChannelId()The channel this message belongs to.
string channel_id = 1;
- Returns:
- The channelId.
-
getChannelIdBytes
com.google.protobuf.ByteString getChannelIdBytes()The channel this message belongs to.
string channel_id = 1;
- Returns:
- The bytes for channelId.
-
getMessageId
String getMessageId()The unique ID of this message.
string message_id = 2;
- Returns:
- The messageId.
-
getMessageIdBytes
com.google.protobuf.ByteString getMessageIdBytes()The unique ID of this message.
string message_id = 2;
- Returns:
- The bytes for messageId.
-
hasCode
boolean hasCode()The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
- Returns:
- Whether the code field is set.
-
getCode
Int32Value getCode()The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
- Returns:
- The code.
-
getCodeOrBuilder
Int32ValueOrBuilder getCodeOrBuilder()The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
-
getSenderId
String getSenderId()Message sender, usually a user ID.
string sender_id = 4;
- Returns:
- The senderId.
-
getSenderIdBytes
com.google.protobuf.ByteString getSenderIdBytes()Message sender, usually a user ID.
string sender_id = 4;
- Returns:
- The bytes for senderId.
-
getUsername
String getUsername()The username of the message sender, if any.
string username = 5;
- Returns:
- The username.
-
getUsernameBytes
com.google.protobuf.ByteString getUsernameBytes()The username of the message sender, if any.
string username = 5;
- Returns:
- The bytes for username.
-
getContent
String getContent()The content payload.
string content = 6;
- Returns:
- The content.
-
getContentBytes
com.google.protobuf.ByteString getContentBytes()The content payload.
string content = 6;
- Returns:
- The bytes for content.
-
hasCreateTime
boolean hasCreateTime()The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
- Returns:
- Whether the createTime field is set.
-
getCreateTime
Timestamp getCreateTime()The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
TimestampOrBuilder getCreateTimeOrBuilder()The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
-
hasUpdateTime
boolean hasUpdateTime()The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
Timestamp getUpdateTime()The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
TimestampOrBuilder getUpdateTimeOrBuilder()The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
-
hasPersistent
boolean hasPersistent()True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
- Returns:
- Whether the persistent field is set.
-
getPersistent
BoolValue getPersistent()True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
- Returns:
- The persistent.
-
getPersistentOrBuilder
BoolValueOrBuilder getPersistentOrBuilder()True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
-
getRoomName
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;
- Returns:
- The roomName.
-
getRoomNameBytes
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;
- Returns:
- The bytes for roomName.
-
getGroupId
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;
- Returns:
- The groupId.
-
getGroupIdBytes
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;
- Returns:
- The bytes for groupId.
-
getUserIdOne
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;
- Returns:
- The userIdOne.
-
getUserIdOneBytes
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;
- Returns:
- The bytes for userIdOne.
-
getUserIdTwo
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;
- Returns:
- The userIdTwo.
-
getUserIdTwoBytes
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;
- Returns:
- The bytes for userIdTwo.
-