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.Flags
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.
|
java.lang.String |
getId()
The server assigned ID of the filter.
|
Filter |
set(java.lang.String fieldName,
java.lang.Object value) |
Filter |
setAction(FilterAction action)
Action that the filter performs.
|
Filter |
setCriteria(FilterCriteria criteria)
Matching criteria for the filter.
|
Filter |
setId(java.lang.String id)
The server assigned ID of the filter.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 java.lang.String getId()
null
for nonepublic Filter setId(java.lang.String id)
id
- id or null
for nonepublic Filter set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Filter clone()
clone
in class com.google.api.client.json.GenericJson