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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
FilterCriteria() |
| Modifier and Type | Method and Description |
|---|---|
FilterCriteria |
clone() |
Boolean |
getExcludeChats()
Whether the response should exclude chats.
|
String |
getFrom()
The sender's display name or email address.
|
Boolean |
getHasAttachment()
Whether the message has any attachment.
|
String |
getNegatedQuery()
Only return messages not matching the specified query.
|
String |
getQuery()
Only return messages matching the specified query.
|
Integer |
getSize()
The size of the entire RFC822 message in bytes, including all headers and attachments.
|
String |
getSizeComparison()
How the message size in bytes should be in relation to the size field.
|
String |
getSubject()
Case-insensitive phrase found in the message's subject.
|
String |
getTo()
The recipient's display name or email address.
|
FilterCriteria |
set(String fieldName,
Object value) |
FilterCriteria |
setExcludeChats(Boolean excludeChats)
Whether the response should exclude chats.
|
FilterCriteria |
setFrom(String from)
The sender's display name or email address.
|
FilterCriteria |
setHasAttachment(Boolean hasAttachment)
Whether the message has any attachment.
|
FilterCriteria |
setNegatedQuery(String negatedQuery)
Only return messages not matching the specified query.
|
FilterCriteria |
setQuery(String query)
Only return messages matching the specified query.
|
FilterCriteria |
setSize(Integer size)
The size of the entire RFC822 message in bytes, including all headers and attachments.
|
FilterCriteria |
setSizeComparison(String sizeComparison)
How the message size in bytes should be in relation to the size field.
|
FilterCriteria |
setSubject(String subject)
Case-insensitive phrase found in the message's subject.
|
FilterCriteria |
setTo(String to)
The recipient's display name or email address.
|
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 Boolean getExcludeChats()
null for nonepublic FilterCriteria setExcludeChats(Boolean excludeChats)
excludeChats - excludeChats or null for nonepublic String getFrom()
null for nonepublic FilterCriteria setFrom(String from)
from - from or null for nonepublic Boolean getHasAttachment()
null for nonepublic FilterCriteria setHasAttachment(Boolean hasAttachment)
hasAttachment - hasAttachment or null for nonepublic String getNegatedQuery()
null for nonepublic FilterCriteria setNegatedQuery(String negatedQuery)
negatedQuery - negatedQuery or null for nonepublic String getQuery()
null for nonepublic FilterCriteria setQuery(String query)
query - query or null for nonepublic Integer getSize()
null for nonepublic FilterCriteria setSize(Integer size)
size - size or null for nonepublic String getSizeComparison()
null for nonepublic FilterCriteria setSizeComparison(String sizeComparison)
sizeComparison - sizeComparison or null for nonepublic String getSubject()
null for nonepublic FilterCriteria setSubject(String subject)
subject - subject or null for nonepublic String getTo()
null for nonepublic FilterCriteria setTo(String to)
to - to or null for nonepublic FilterCriteria set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic FilterCriteria clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.