Class V4Message

java.lang.Object
com.symphony.bdk.gen.api.model.V4Message

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-26T16:14:53.869723549Z[Etc/UTC]") public class V4Message extends Object
A representation of a message sent by a user of Symphony
  • Field Details

  • Constructor Details

    • V4Message

      public V4Message()
  • Method Details

    • messageId

      public V4Message messageId(String messageId)
    • getMessageId

      @Nullable public String getMessageId()
      Id of the message
      Returns:
      messageId
    • setMessageId

      public void setMessageId(String messageId)
    • parentMessageId

      public V4Message parentMessageId(String parentMessageId)
    • getParentMessageId

      @Nullable public String getParentMessageId()
      Id of the parent message, set when the message is a reply to another message or a forwarded message. Since Agent 20.14.
      Returns:
      parentMessageId
    • setParentMessageId

      public void setParentMessageId(String parentMessageId)
    • timestamp

      public V4Message timestamp(Long timestamp)
    • getTimestamp

      @Nullable public Long getTimestamp()
      Timestamp of the message in milliseconds since Jan 1 1970
      Returns:
      timestamp
    • setTimestamp

      public void setTimestamp(Long timestamp)
    • message

      public V4Message message(String message)
    • getMessage

      @Nullable public String getMessage()
      Message content in MessageMLV2
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • sharedMessage

      public V4Message sharedMessage(V4Message sharedMessage)
    • getSharedMessage

      @Nullable public V4Message getSharedMessage()
      Get sharedMessage
      Returns:
      sharedMessage
    • setSharedMessage

      public void setSharedMessage(V4Message sharedMessage)
    • data

      public V4Message data(String data)
    • getData

      @Nullable public String getData()
      Message data in EntityJSON
      Returns:
      data
    • setData

      public void setData(String data)
    • attachments

      public V4Message attachments(List<V4AttachmentInfo> attachments)
    • addAttachmentsItem

      public V4Message addAttachmentsItem(V4AttachmentInfo attachmentsItem)
    • getAttachments

      @Nullable public List<V4AttachmentInfo> getAttachments()
      Message attachments
      Returns:
      attachments
    • setAttachments

      public void setAttachments(List<V4AttachmentInfo> attachments)
    • user

      public V4Message user(V4User user)
    • getUser

      @Nullable public V4User getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(V4User user)
    • stream

      public V4Message stream(V4Stream stream)
    • getStream

      @Nullable public V4Stream getStream()
      Get stream
      Returns:
      stream
    • setStream

      public void setStream(V4Stream stream)
    • externalRecipients

      public V4Message externalRecipients(Boolean externalRecipients)
    • getExternalRecipients

      @Nullable public Boolean getExternalRecipients()
      Indicates if the message have external recipients. Only present on real time messaging.
      Returns:
      externalRecipients
    • setExternalRecipients

      public void setExternalRecipients(Boolean externalRecipients)
    • diagnostic

      public V4Message diagnostic(String diagnostic)
    • getDiagnostic

      @Nullable public String getDiagnostic()
      Details if event failed to parse for any reason. The contents of this field may not be useful, depending on the nature of the error. Only present when error occurs.
      Returns:
      diagnostic
    • setDiagnostic

      public void setDiagnostic(String diagnostic)
    • userAgent

      public V4Message userAgent(String userAgent)
    • getUserAgent

      @Nullable public String getUserAgent()
      User agent string for client that sent the message. Allows callers to identify which client sent the origin message (e.g. API Agent, SFE Client, mobile, etc)
      Returns:
      userAgent
    • setUserAgent

      public void setUserAgent(String userAgent)
    • originalFormat

      public V4Message originalFormat(String originalFormat)
    • getOriginalFormat

      @Nullable public String getOriginalFormat()
      Indicates the format in which the message was originally sent. This could have been either: - com.symphony.markdown - Markdown OR Message ML V1 - com.symphony.messageml.v2 - Message ML V2
      Returns:
      originalFormat
    • setOriginalFormat

      public void setOriginalFormat(String originalFormat)
    • disclaimer

      public V4Message disclaimer(String disclaimer)
    • getDisclaimer

      @Nullable public String getDisclaimer()
      Message that may be sent along with a regular message if configured for the POD, usually the first message sent in a room that day.
      Returns:
      disclaimer
    • setDisclaimer

      public void setDisclaimer(String disclaimer)
    • sid

      public V4Message sid(String sid)
    • getSid

      @Nullable public String getSid()
      Unique session identifier from where the message was created.
      Returns:
      sid
    • setSid

      public void setSid(String sid)
    • replacing

      public V4Message replacing(String replacing)
    • getReplacing

      @Nullable public String getReplacing()
      Id of the message that the current message is replacing (present only if set)
      Returns:
      replacing
    • setReplacing

      public void setReplacing(String replacing)
    • replacedBy

      public V4Message replacedBy(String replacedBy)
    • getReplacedBy

      @Nullable public String getReplacedBy()
      Id of the message that the current message is being replaced with (present only if set)
      Returns:
      replacedBy
    • setReplacedBy

      public void setReplacedBy(String replacedBy)
    • initialTimestamp

      public V4Message initialTimestamp(Long initialTimestamp)
    • getInitialTimestamp

      @Nullable public Long getInitialTimestamp()
      Timestamp of when the initial message has been created in milliseconds since Jan 1 1970 (present only if set)
      Returns:
      initialTimestamp
    • setInitialTimestamp

      public void setInitialTimestamp(Long initialTimestamp)
    • initialMessageId

      public V4Message initialMessageId(String initialMessageId)
    • getInitialMessageId

      @Nullable public String getInitialMessageId()
      Id the the initial message that has been updated (present only if set)
      Returns:
      initialMessageId
    • setInitialMessageId

      public void setInitialMessageId(String initialMessageId)
    • silent

      public V4Message silent(Boolean silent)
    • getSilent

      @Nullable public Boolean getSilent()
      When false the user/s will receive the message update as unread (true by default)
      Returns:
      silent
    • setSilent

      public void setSilent(Boolean silent)
    • equals

      public boolean equals(Object o)
      Return true if this V4Message object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object