public final class

MessageBuilder

extends IndexableBuilder<MessageBuilder>
java.lang.Object
   ↳ com.google.firebase.appindexing.builders.IndexableBuilder<com.google.firebase.appindexing.builders.MessageBuilder>
     ↳ com.google.firebase.appindexing.builders.MessageBuilder

Class Overview

Builder to construct an Indexable for a message.

For reference, see: http://schema.org/Message.

Summary

Public Methods
MessageBuilder setDateRead(Date dateRead)
Sets the date on which the message was read.
MessageBuilder setDateReceived(Date dateReceived)
Sets the date on which the message was received.
MessageBuilder setDateSent(Date dateSent)
Sets the date on which the message was sent.
MessageBuilder setIsPartOf(ConversationBuilder... conversation)
Sets the converstation to which this message belongs.
MessageBuilder setMessageAttachment(DigitalDocumentBuilder... attachments)
Sets the attachments of the message.
MessageBuilder setRecipient(PersonBuilder... recipients)
Sets the recipients of the message.
MessageBuilder setSender(PersonBuilder sender)
Sets the sender of the message.
MessageBuilder setText(String text)
Sets the textual content of the message.
[Expand]
Inherited Methods
From class com.google.firebase.appindexing.builders.IndexableBuilder
From class java.lang.Object

Public Methods

public MessageBuilder setDateRead (Date dateRead)

Sets the date on which the message was read.

Parameters
dateRead Date: The date on which the message was read.
Returns
MessageBuilder

public MessageBuilder setDateReceived (Date dateReceived)

Sets the date on which the message was received.

Parameters
dateReceived Date: The date on which the message was received.
Returns
MessageBuilder

public MessageBuilder setDateSent (Date dateSent)

Sets the date on which the message was sent.

Parameters
dateSent Date: The date on which the message was sent.
Returns
MessageBuilder

public MessageBuilder setIsPartOf (ConversationBuilder... conversation)

Sets the converstation to which this message belongs.

Parameters
conversation ConversationBuilder: The conversation to which this message belongs.
Returns
MessageBuilder

public MessageBuilder setMessageAttachment (DigitalDocumentBuilder... attachments)

Sets the attachments of the message.

Parameters
attachments DigitalDocumentBuilder: The attachments of the message.
Returns
MessageBuilder

public MessageBuilder setRecipient (PersonBuilder... recipients)

Sets the recipients of the message.

Parameters
recipients PersonBuilder: The recipients of the message.
Returns
MessageBuilder

public MessageBuilder setSender (PersonBuilder sender)

Sets the sender of the message.

Parameters
sender PersonBuilder: The sender of the message.
Returns
MessageBuilder

public MessageBuilder setText (String text)

Sets the textual content of the message.

Parameters
text String: The textual content of the document.
Returns
MessageBuilder