public final class SmartReplyMessage

  1. Object
  2. 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

text String
message body; null becomes an empty string
participantId String
stable speaker id used to group conversation turns; null becomes "remote"
localUser boolean
whether this message was written by the current user
timestampMillis long
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 null

isLocalUser

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