public final class Label
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 Gmail 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 |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
Label |
clone() |
LabelColor |
getColor()
The color to assign to the label.
|
java.lang.String |
getId()
The immutable ID of the label.
|
java.lang.String |
getLabelListVisibility()
The visibility of the label in the label list in the Gmail web interface.
|
java.lang.String |
getMessageListVisibility()
The visibility of the label in the message list in the Gmail web interface.
|
java.lang.Integer |
getMessagesTotal()
The total number of messages with the label.
|
java.lang.Integer |
getMessagesUnread()
The number of unread messages with the label.
|
java.lang.String |
getName()
The display name of the label.
|
java.lang.Integer |
getThreadsTotal()
The total number of threads with the label.
|
java.lang.Integer |
getThreadsUnread()
The number of unread threads with the label.
|
java.lang.String |
getType()
The owner type for the label.
|
Label |
set(java.lang.String fieldName,
java.lang.Object value) |
Label |
setColor(LabelColor color)
The color to assign to the label.
|
Label |
setId(java.lang.String id)
The immutable ID of the label.
|
Label |
setLabelListVisibility(java.lang.String labelListVisibility)
The visibility of the label in the label list in the Gmail web interface.
|
Label |
setMessageListVisibility(java.lang.String messageListVisibility)
The visibility of the label in the message list in the Gmail web interface.
|
Label |
setMessagesTotal(java.lang.Integer messagesTotal)
The total number of messages with the label.
|
Label |
setMessagesUnread(java.lang.Integer messagesUnread)
The number of unread messages with the label.
|
Label |
setName(java.lang.String name)
The display name of the label.
|
Label |
setThreadsTotal(java.lang.Integer threadsTotal)
The total number of threads with the label.
|
Label |
setThreadsUnread(java.lang.Integer threadsUnread)
The number of unread threads with the label.
|
Label |
setType(java.lang.String type)
The owner type for the label.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public LabelColor getColor()
null
for nonepublic Label setColor(LabelColor color)
color
- color or null
for nonepublic java.lang.String getId()
null
for nonepublic Label setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getLabelListVisibility()
null
for nonepublic Label setLabelListVisibility(java.lang.String labelListVisibility)
labelListVisibility
- labelListVisibility or null
for nonepublic java.lang.String getMessageListVisibility()
null
for nonepublic Label setMessageListVisibility(java.lang.String messageListVisibility)
messageListVisibility
- messageListVisibility or null
for nonepublic java.lang.Integer getMessagesTotal()
null
for nonepublic Label setMessagesTotal(java.lang.Integer messagesTotal)
messagesTotal
- messagesTotal or null
for nonepublic java.lang.Integer getMessagesUnread()
null
for nonepublic Label setMessagesUnread(java.lang.Integer messagesUnread)
messagesUnread
- messagesUnread or null
for nonepublic java.lang.String getName()
null
for nonepublic Label setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.Integer getThreadsTotal()
null
for nonepublic Label setThreadsTotal(java.lang.Integer threadsTotal)
threadsTotal
- threadsTotal or null
for nonepublic java.lang.Integer getThreadsUnread()
null
for nonepublic Label setThreadsUnread(java.lang.Integer threadsUnread)
threadsUnread
- threadsUnread or null
for nonepublic java.lang.String getType()
null
for nonepublic Label setType(java.lang.String type)
type
- type or null
for nonepublic Label set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Label clone()
clone
in class com.google.api.client.json.GenericJson