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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Label() |
| Modifier and Type | Method and Description |
|---|---|
Label |
clone() |
LabelColor |
getColor()
The color to assign to the label.
|
String |
getId()
The immutable ID of the label.
|
String |
getLabelListVisibility()
The visibility of the label in the label list in the Gmail web interface.
|
String |
getMessageListVisibility()
The visibility of messages with this label in the message list in the Gmail web interface.
|
Integer |
getMessagesTotal()
The total number of messages with the label.
|
Integer |
getMessagesUnread()
The number of unread messages with the label.
|
String |
getName()
The display name of the label.
|
Integer |
getThreadsTotal()
The total number of threads with the label.
|
Integer |
getThreadsUnread()
The number of unread threads with the label.
|
String |
getType()
The owner type for the label.
|
Label |
set(String fieldName,
Object value) |
Label |
setColor(LabelColor color)
The color to assign to the label.
|
Label |
setId(String id)
The immutable ID of the label.
|
Label |
setLabelListVisibility(String labelListVisibility)
The visibility of the label in the label list in the Gmail web interface.
|
Label |
setMessageListVisibility(String messageListVisibility)
The visibility of messages with this label in the message list in the Gmail web interface.
|
Label |
setMessagesTotal(Integer messagesTotal)
The total number of messages with the label.
|
Label |
setMessagesUnread(Integer messagesUnread)
The number of unread messages with the label.
|
Label |
setName(String name)
The display name of the label.
|
Label |
setThreadsTotal(Integer threadsTotal)
The total number of threads with the label.
|
Label |
setThreadsUnread(Integer threadsUnread)
The number of unread threads with the label.
|
Label |
setType(String type)
The owner type for the label.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic LabelColor getColor()
null for nonepublic Label setColor(LabelColor color)
color - color or null for nonepublic String getId()
null for nonepublic Label setId(String id)
id - id or null for nonepublic String getLabelListVisibility()
null for nonepublic Label setLabelListVisibility(String labelListVisibility)
labelListVisibility - labelListVisibility or null for nonepublic String getMessageListVisibility()
null for nonepublic Label setMessageListVisibility(String messageListVisibility)
messageListVisibility - messageListVisibility or null for nonepublic Integer getMessagesTotal()
null for nonepublic Label setMessagesTotal(Integer messagesTotal)
messagesTotal - messagesTotal or null for nonepublic Integer getMessagesUnread()
null for nonepublic Label setMessagesUnread(Integer messagesUnread)
messagesUnread - messagesUnread or null for nonepublic String getName()
null for nonepublic Label setName(String name)
name - name or null for nonepublic Integer getThreadsTotal()
null for nonepublic Label setThreadsTotal(Integer threadsTotal)
threadsTotal - threadsTotal or null for nonepublic Integer getThreadsUnread()
null for nonepublic Label setThreadsUnread(Integer threadsUnread)
threadsUnread - threadsUnread or null for nonepublic String getType()
null for nonepublic Label setType(String type)
type - type or null for nonepublic Label set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Label clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.