Package com.heroiclabs.nakama.api
Class ChannelMessage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
com.heroiclabs.nakama.api.ChannelMessage.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ChannelMessageOrBuilder
,Cloneable
- Enclosing class:
- ChannelMessage
public static final class ChannelMessage.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
implements ChannelMessageOrBuilder
A message sent on a channel.Protobuf type
nakama.api.ChannelMessage
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The channel this message belongs to.The code representing a message type or category.The content payload.The UNIX time when the message was created.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) 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.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.Message sender, usually a user ID.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.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.clone()
The 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 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 UNIX time when the message was created.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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.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 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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCode
(Int32Value value) The code representing a message type or category.mergeCreateTime
(Timestamp value) The UNIX time when the message was created.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ChannelMessage other) mergePersistent
(BoolValue value) True if the message was persisted to the channel's history, false otherwise.final ChannelMessage.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpdateTime
(Timestamp value) The UNIX time when the message was last updated.setChannelId
(String value) The channel this message belongs to.setChannelIdBytes
(com.google.protobuf.ByteString value) The channel this message belongs to.setCode
(Int32Value value) The code representing a message type or category.setCode
(Int32Value.Builder builderForValue) The code representing a message type or category.setContent
(String value) The content payload.setContentBytes
(com.google.protobuf.ByteString value) The content payload.setCreateTime
(Timestamp value) The UNIX time when the message was created.setCreateTime
(Timestamp.Builder builderForValue) The UNIX time when the message was created.setGroupId
(String value) The ID of the group, or an empty string if this message was not sent through a group channel.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.setMessageId
(String value) The unique ID of this message.setMessageIdBytes
(com.google.protobuf.ByteString value) The unique ID of this message.setPersistent
(BoolValue value) True if the message was persisted to the channel's history, false otherwise.setPersistent
(BoolValue.Builder builderForValue) True if the message was persisted to the channel's history, false otherwise.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRoomName
(String value) The name of the chat room, or an empty string if this message was not sent through a chat room.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.setSenderId
(String value) Message sender, usually a user ID.setSenderIdBytes
(com.google.protobuf.ByteString value) Message sender, usually a user ID.final ChannelMessage.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setUpdateTime
(Timestamp value) The UNIX time when the message was last updated.setUpdateTime
(Timestamp.Builder builderForValue) The UNIX time when the message was last updated.setUserIdOne
(String value) The ID of the first DM user, or an empty string if this message was not sent through a DM chat.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.setUserIdTwo
(String value) The ID of the second DM user, or an empty string if this message was not sent through a DM chat.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.setUsername
(String value) The username of the message sender, if any.setUsernameBytes
(com.google.protobuf.ByteString value) The username of the message sender, if any.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
setField
public ChannelMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
setRepeatedField
public ChannelMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
addRepeatedField
public ChannelMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ChannelMessage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
mergeFrom
public ChannelMessage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ChannelMessage.Builder>
- Throws:
IOException
-
getChannelId
The channel this message belongs to.
string channel_id = 1;
- Specified by:
getChannelId
in interfaceChannelMessageOrBuilder
- Returns:
- The channelId.
-
getChannelIdBytes
public com.google.protobuf.ByteString getChannelIdBytes()The channel this message belongs to.
string channel_id = 1;
- Specified by:
getChannelIdBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for channelId.
-
setChannelId
The channel this message belongs to.
string channel_id = 1;
- Parameters:
value
- The channelId to set.- Returns:
- This builder for chaining.
-
clearChannelId
The channel this message belongs to.
string channel_id = 1;
- Returns:
- This builder for chaining.
-
setChannelIdBytes
The channel this message belongs to.
string channel_id = 1;
- Parameters:
value
- The bytes for channelId to set.- Returns:
- This builder for chaining.
-
getMessageId
The unique ID of this message.
string message_id = 2;
- Specified by:
getMessageId
in interfaceChannelMessageOrBuilder
- Returns:
- The messageId.
-
getMessageIdBytes
public com.google.protobuf.ByteString getMessageIdBytes()The unique ID of this message.
string message_id = 2;
- Specified by:
getMessageIdBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for messageId.
-
setMessageId
The unique ID of this message.
string message_id = 2;
- Parameters:
value
- The messageId to set.- Returns:
- This builder for chaining.
-
clearMessageId
The unique ID of this message.
string message_id = 2;
- Returns:
- This builder for chaining.
-
setMessageIdBytes
The unique ID of this message.
string message_id = 2;
- Parameters:
value
- The bytes for messageId to set.- Returns:
- This builder for chaining.
-
hasCode
public boolean hasCode()The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
- Specified by:
hasCode
in interfaceChannelMessageOrBuilder
- Returns:
- Whether the code field is set.
-
getCode
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
- Specified by:
getCode
in interfaceChannelMessageOrBuilder
- Returns:
- The code.
-
setCode
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
-
setCode
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
-
mergeCode
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
-
clearCode
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
-
getCodeBuilder
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
-
getCodeOrBuilder
The code representing a message type or category.
.google.protobuf.Int32Value code = 3;
- Specified by:
getCodeOrBuilder
in interfaceChannelMessageOrBuilder
-
getSenderId
Message sender, usually a user ID.
string sender_id = 4;
- Specified by:
getSenderId
in interfaceChannelMessageOrBuilder
- Returns:
- The senderId.
-
getSenderIdBytes
public com.google.protobuf.ByteString getSenderIdBytes()Message sender, usually a user ID.
string sender_id = 4;
- Specified by:
getSenderIdBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for senderId.
-
setSenderId
Message sender, usually a user ID.
string sender_id = 4;
- Parameters:
value
- The senderId to set.- Returns:
- This builder for chaining.
-
clearSenderId
Message sender, usually a user ID.
string sender_id = 4;
- Returns:
- This builder for chaining.
-
setSenderIdBytes
Message sender, usually a user ID.
string sender_id = 4;
- Parameters:
value
- The bytes for senderId to set.- Returns:
- This builder for chaining.
-
getUsername
The username of the message sender, if any.
string username = 5;
- Specified by:
getUsername
in interfaceChannelMessageOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()The username of the message sender, if any.
string username = 5;
- Specified by:
getUsernameBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for username.
-
setUsername
The username of the message sender, if any.
string username = 5;
- Parameters:
value
- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
The username of the message sender, if any.
string username = 5;
- Returns:
- This builder for chaining.
-
setUsernameBytes
The username of the message sender, if any.
string username = 5;
- Parameters:
value
- The bytes for username to set.- Returns:
- This builder for chaining.
-
getContent
The content payload.
string content = 6;
- Specified by:
getContent
in interfaceChannelMessageOrBuilder
- Returns:
- The content.
-
getContentBytes
public com.google.protobuf.ByteString getContentBytes()The content payload.
string content = 6;
- Specified by:
getContentBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for content.
-
setContent
The content payload.
string content = 6;
- Parameters:
value
- The content to set.- Returns:
- This builder for chaining.
-
clearContent
The content payload.
string content = 6;
- Returns:
- This builder for chaining.
-
setContentBytes
The content payload.
string content = 6;
- Parameters:
value
- The bytes for content to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
hasCreateTime
in interfaceChannelMessageOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
getCreateTime
in interfaceChannelMessageOrBuilder
- Returns:
- The createTime.
-
setCreateTime
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
-
setCreateTime
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
-
mergeCreateTime
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
-
clearCreateTime
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
-
getCreateTimeBuilder
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
-
getCreateTimeOrBuilder
The UNIX time when the message was created.
.google.protobuf.Timestamp create_time = 7;
- Specified by:
getCreateTimeOrBuilder
in interfaceChannelMessageOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
- Specified by:
hasUpdateTime
in interfaceChannelMessageOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
- Specified by:
getUpdateTime
in interfaceChannelMessageOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
-
setUpdateTime
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
-
mergeUpdateTime
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
-
clearUpdateTime
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
-
getUpdateTimeBuilder
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
-
getUpdateTimeOrBuilder
The UNIX time when the message was last updated.
.google.protobuf.Timestamp update_time = 8;
- Specified by:
getUpdateTimeOrBuilder
in interfaceChannelMessageOrBuilder
-
hasPersistent
public boolean hasPersistent()True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
- Specified by:
hasPersistent
in interfaceChannelMessageOrBuilder
- Returns:
- Whether the persistent field is set.
-
getPersistent
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
- Specified by:
getPersistent
in interfaceChannelMessageOrBuilder
- Returns:
- The persistent.
-
setPersistent
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
-
setPersistent
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
-
mergePersistent
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
-
clearPersistent
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
-
getPersistentBuilder
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
-
getPersistentOrBuilder
True if the message was persisted to the channel's history, false otherwise.
.google.protobuf.BoolValue persistent = 9;
- Specified by:
getPersistentOrBuilder
in interfaceChannelMessageOrBuilder
-
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;
- Specified by:
getRoomName
in interfaceChannelMessageOrBuilder
- Returns:
- The roomName.
-
getRoomNameBytes
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;
- Specified by:
getRoomNameBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for roomName.
-
setRoomName
The name of the chat room, or an empty string if this message was not sent through a chat room.
string room_name = 10;
- Parameters:
value
- The roomName to set.- Returns:
- This builder for chaining.
-
clearRoomName
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:
- This builder for chaining.
-
setRoomNameBytes
The name of the chat room, or an empty string if this message was not sent through a chat room.
string room_name = 10;
- Parameters:
value
- The bytes for roomName to set.- Returns:
- This builder for chaining.
-
getGroupId
The ID of the group, or an empty string if this message was not sent through a group channel.
string group_id = 11;
- Specified by:
getGroupId
in interfaceChannelMessageOrBuilder
- Returns:
- The groupId.
-
getGroupIdBytes
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;
- Specified by:
getGroupIdBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for groupId.
-
setGroupId
The ID of the group, or an empty string if this message was not sent through a group channel.
string group_id = 11;
- Parameters:
value
- The groupId to set.- Returns:
- This builder for chaining.
-
clearGroupId
The ID of the group, or an empty string if this message was not sent through a group channel.
string group_id = 11;
- Returns:
- This builder for chaining.
-
setGroupIdBytes
The ID of the group, or an empty string if this message was not sent through a group channel.
string group_id = 11;
- Parameters:
value
- The bytes for groupId to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getUserIdOne
in interfaceChannelMessageOrBuilder
- Returns:
- The userIdOne.
-
getUserIdOneBytes
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;
- Specified by:
getUserIdOneBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for userIdOne.
-
setUserIdOne
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;
- Parameters:
value
- The userIdOne to set.- Returns:
- This builder for chaining.
-
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 = 12;
- Returns:
- This builder for chaining.
-
setUserIdOneBytes
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;
- Parameters:
value
- The bytes for userIdOne to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getUserIdTwo
in interfaceChannelMessageOrBuilder
- Returns:
- The userIdTwo.
-
getUserIdTwoBytes
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;
- Specified by:
getUserIdTwoBytes
in interfaceChannelMessageOrBuilder
- Returns:
- The bytes for userIdTwo.
-
setUserIdTwo
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;
- Parameters:
value
- The userIdTwo to set.- Returns:
- This builder for chaining.
-
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 = 13;
- Returns:
- This builder for chaining.
-
setUserIdTwoBytes
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;
- Parameters:
value
- The bytes for userIdTwo to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ChannelMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-
mergeUnknownFields
public final ChannelMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelMessage.Builder>
-