public final class Thread extends 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 Gmail API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Thread() |
Modifier and Type | Method and Description |
---|---|
Thread |
clone() |
BigInteger |
getHistoryId()
The ID of the last history record that modified this thread.
|
String |
getId()
The unique ID of the thread.
|
List<Message> |
getMessages()
The list of messages in the thread.
|
String |
getSnippet()
A short part of the message text.
|
Thread |
set(String fieldName,
Object value) |
Thread |
setHistoryId(BigInteger historyId)
The ID of the last history record that modified this thread.
|
Thread |
setId(String id)
The unique ID of the thread.
|
Thread |
setMessages(List<Message> messages)
The list of messages in the thread.
|
Thread |
setSnippet(String snippet)
A short part of the message text.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public BigInteger getHistoryId()
null
for nonepublic Thread setHistoryId(BigInteger historyId)
historyId
- historyId or null
for nonepublic String getId()
null
for nonepublic Thread setId(String id)
id
- id or null
for nonepublic List<Message> getMessages()
null
for nonepublic Thread setMessages(List<Message> messages)
messages
- messages or null
for nonepublic String getSnippet()
null
for nonepublic Thread setSnippet(String snippet)
snippet
- snippet or null
for nonepublic Thread set(String fieldName, Object value)
set
in class GenericJson
public Thread clone()
clone
in class GenericJson