public final class SmartReplyMessage
- Object
- SmartReplyMessage
One message supplied to the on-device smart-reply model.
Constructors
public SmartReplyMessage(String text, String participantId, boolean localUser, long timestampMillis) | Creates one conversation turn used to generate reply suggestions. |
Methods
public String getText() | |
public String getParticipantId() | |
public boolean isLocalUser() | |
public long getTimestampMillis() |
Inherited methods
Constructor details
SmartReplyMessage
public SmartReplyMessage(String text, String participantId, boolean localUser, long timestampMillis)Creates one conversation turn used to generate reply suggestions.
Parameters
textString- message body;
nullbecomes an empty string participantIdString- stable speaker id used to group conversation turns;
nullbecomes"remote" localUserboolean- whether this message was written by the current user
timestampMillislong- message time in Unix epoch milliseconds
Method details
getText
public String getText()Returns
message text supplied to the local model
getParticipantId
public String getParticipantId()Returns
stable participant identifier used to group remote speakers,
never
nullisLocalUser
public boolean isLocalUser()Returns
whether this message was authored by the device user
getTimestampMillis
public long getTimestampMillis()Returns
conversation timestamp in milliseconds since the epoch