public final class Message
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Hangouts Chat API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Message() |
| Modifier and Type | Method and Description |
|---|---|
Message |
clone() |
ActionResponse |
getActionResponse()
Input only.
|
java.util.List<Annotation> |
getAnnotations()
Output only.
|
java.lang.String |
getArgumentText()
Plain-text body of the message with all bot mentions stripped out.
|
java.util.List<Card> |
getCards()
Rich, formatted and interactive cards that can be used to display UI elements such as:
formatted texts, buttons, clickable images.
|
java.lang.String |
getCreateTime()
Output only.
|
java.lang.String |
getFallbackText()
A plain-text description of the message's cards, used when the actual cards cannot be displayed
(e.g.
|
java.lang.String |
getName()
Resource name, in the form "spaces/messages".
|
java.lang.String |
getPreviewText()
Text for generating preview chips.
|
User |
getSender()
The user who created the message.
|
Space |
getSpace()
The space the message belongs to.
|
java.lang.String |
getText()
Plain-text body of the message.
|
Thread |
getThread()
The thread the message belongs to.
|
Message |
set(java.lang.String fieldName,
java.lang.Object value) |
Message |
setActionResponse(ActionResponse actionResponse)
Input only.
|
Message |
setAnnotations(java.util.List<Annotation> annotations)
Output only.
|
Message |
setArgumentText(java.lang.String argumentText)
Plain-text body of the message with all bot mentions stripped out.
|
Message |
setCards(java.util.List<Card> cards)
Rich, formatted and interactive cards that can be used to display UI elements such as:
formatted texts, buttons, clickable images.
|
Message |
setCreateTime(java.lang.String createTime)
Output only.
|
Message |
setFallbackText(java.lang.String fallbackText)
A plain-text description of the message's cards, used when the actual cards cannot be displayed
(e.g.
|
Message |
setName(java.lang.String name)
Resource name, in the form "spaces/messages".
|
Message |
setPreviewText(java.lang.String previewText)
Text for generating preview chips.
|
Message |
setSender(User sender)
The user who created the message.
|
Message |
setSpace(Space space)
The space the message belongs to.
|
Message |
setText(java.lang.String text)
Plain-text body of the message.
|
Message |
setThread(Thread thread)
The thread the message belongs to.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic ActionResponse getActionResponse()
null for nonepublic Message setActionResponse(ActionResponse actionResponse)
actionResponse - actionResponse or null for nonepublic java.util.List<Annotation> getAnnotations()
null for nonepublic Message setAnnotations(java.util.List<Annotation> annotations)
annotations - annotations or null for nonepublic java.lang.String getArgumentText()
null for nonepublic Message setArgumentText(java.lang.String argumentText)
argumentText - argumentText or null for nonepublic java.util.List<Card> getCards()
null for nonepublic Message setCards(java.util.List<Card> cards)
cards - cards or null for nonepublic java.lang.String getCreateTime()
null for nonepublic Message setCreateTime(java.lang.String createTime)
createTime - createTime or null for nonepublic java.lang.String getFallbackText()
null for nonepublic Message setFallbackText(java.lang.String fallbackText)
fallbackText - fallbackText or null for nonepublic java.lang.String getName()
null for nonepublic Message setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getPreviewText()
null for nonepublic Message setPreviewText(java.lang.String previewText)
previewText - previewText or null for nonepublic User getSender()
null for nonepublic Message setSender(User sender)
sender - sender or null for nonepublic Space getSpace()
null for nonepublic Message setSpace(Space space)
space - space or null for nonepublic java.lang.String getText()
null for nonepublic Message setText(java.lang.String text)
text - text or null for nonepublic Thread getThread()
null for nonepublic Message setThread(Thread thread)
thread - thread or null for nonepublic Message set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Message clone()
clone in class com.google.api.client.json.GenericJson