public final class Filter
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 |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
FilterAction |
getAction()
Action that the filter performs.
|
FilterCriteria |
getCriteria()
Matching criteria for the filter.
|
String |
getId()
The server assigned ID of the filter.
|
Filter |
set(String fieldName,
Object value) |
Filter |
setAction(FilterAction action)
Action that the filter performs.
|
Filter |
setCriteria(FilterCriteria criteria)
Matching criteria for the filter.
|
Filter |
setId(String id)
The server assigned ID of the filter.
|
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 FilterAction getAction()
null for nonepublic Filter setAction(FilterAction action)
action - action or null for nonepublic FilterCriteria getCriteria()
null for nonepublic Filter setCriteria(FilterCriteria criteria)
criteria - criteria or null for nonepublic String getId()
null for nonepublic Filter setId(String id)
id - id or null for nonepublic Filter set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Filter clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.