public final class FilterCriteria
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 |
|---|
FilterCriteria() |
| Modifier and Type | Method and Description |
|---|---|
FilterCriteria |
clone() |
java.lang.Boolean |
getExcludeChats()
Whether the response should exclude chats.
|
java.lang.String |
getFrom()
The sender's display name or email address.
|
java.lang.Boolean |
getHasAttachment()
Whether the message has any attachment.
|
java.lang.String |
getNegatedQuery()
Only return messages not matching the specified query.
|
java.lang.String |
getQuery()
Only return messages matching the specified query.
|
java.lang.Integer |
getSize()
The size of the entire RFC822 message in bytes, including all headers and attachments.
|
java.lang.String |
getSizeComparison()
How the message size in bytes should be in relation to the size field.
|
java.lang.String |
getSubject()
Case-insensitive phrase found in the message's subject.
|
java.lang.String |
getTo()
The recipient's display name or email address.
|
FilterCriteria |
set(java.lang.String fieldName,
java.lang.Object value) |
FilterCriteria |
setExcludeChats(java.lang.Boolean excludeChats)
Whether the response should exclude chats.
|
FilterCriteria |
setFrom(java.lang.String from)
The sender's display name or email address.
|
FilterCriteria |
setHasAttachment(java.lang.Boolean hasAttachment)
Whether the message has any attachment.
|
FilterCriteria |
setNegatedQuery(java.lang.String negatedQuery)
Only return messages not matching the specified query.
|
FilterCriteria |
setQuery(java.lang.String query)
Only return messages matching the specified query.
|
FilterCriteria |
setSize(java.lang.Integer size)
The size of the entire RFC822 message in bytes, including all headers and attachments.
|
FilterCriteria |
setSizeComparison(java.lang.String sizeComparison)
How the message size in bytes should be in relation to the size field.
|
FilterCriteria |
setSubject(java.lang.String subject)
Case-insensitive phrase found in the message's subject.
|
FilterCriteria |
setTo(java.lang.String to)
The recipient's display name or email address.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Boolean getExcludeChats()
null for nonepublic FilterCriteria setExcludeChats(java.lang.Boolean excludeChats)
excludeChats - excludeChats or null for nonepublic java.lang.String getFrom()
null for nonepublic FilterCriteria setFrom(java.lang.String from)
from - from or null for nonepublic java.lang.Boolean getHasAttachment()
null for nonepublic FilterCriteria setHasAttachment(java.lang.Boolean hasAttachment)
hasAttachment - hasAttachment or null for nonepublic java.lang.String getNegatedQuery()
null for nonepublic FilterCriteria setNegatedQuery(java.lang.String negatedQuery)
negatedQuery - negatedQuery or null for nonepublic java.lang.String getQuery()
null for nonepublic FilterCriteria setQuery(java.lang.String query)
query - query or null for nonepublic java.lang.Integer getSize()
null for nonepublic FilterCriteria setSize(java.lang.Integer size)
size - size or null for nonepublic java.lang.String getSizeComparison()
null for nonepublic FilterCriteria setSizeComparison(java.lang.String sizeComparison)
sizeComparison - sizeComparison or null for nonepublic java.lang.String getSubject()
null for nonepublic FilterCriteria setSubject(java.lang.String subject)
subject - subject or null for nonepublic java.lang.String getTo()
null for nonepublic FilterCriteria setTo(java.lang.String to)
to - to or null for nonepublic FilterCriteria set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic FilterCriteria clone()
clone in class com.google.api.client.json.GenericJson