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
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
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 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.GenericJson
public Filter clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.