public final class FreshnessOptions
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 Cloud Search 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 |
---|
FreshnessOptions() |
Modifier and Type | Method and Description |
---|---|
FreshnessOptions |
clone() |
java.lang.String |
getFreshnessDuration()
The duration after which an object should be considered stale.
|
java.lang.String |
getFreshnessProperty()
This property indicates the freshness level of the object in the index.
|
FreshnessOptions |
set(java.lang.String fieldName,
java.lang.Object value) |
FreshnessOptions |
setFreshnessDuration(java.lang.String freshnessDuration)
The duration after which an object should be considered stale.
|
FreshnessOptions |
setFreshnessProperty(java.lang.String freshnessProperty)
This property indicates the freshness level of the object in the index.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getFreshnessDuration()
null
for nonepublic FreshnessOptions setFreshnessDuration(java.lang.String freshnessDuration)
freshnessDuration
- freshnessDuration or null
for nonepublic java.lang.String getFreshnessProperty()
null
for nonepublic FreshnessOptions setFreshnessProperty(java.lang.String freshnessProperty)
freshnessProperty
- freshnessProperty or null
for nonepublic FreshnessOptions set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public FreshnessOptions clone()
clone
in class com.google.api.client.json.GenericJson