public final class FacetOptions
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 |
---|
FacetOptions() |
Modifier and Type | Method and Description |
---|---|
FacetOptions |
clone() |
java.lang.Integer |
getNumFacetBuckets()
Maximum number of facet buckets that should be returned for this facet.
|
java.lang.String |
getObjectType()
If object_type is set, only those objects of that type will be used to compute facets.
|
java.lang.String |
getOperatorName()
Name of the operator chosen for faceting.
|
java.lang.String |
getSourceName()
Source name to facet on.
|
FacetOptions |
set(java.lang.String fieldName,
java.lang.Object value) |
FacetOptions |
setNumFacetBuckets(java.lang.Integer numFacetBuckets)
Maximum number of facet buckets that should be returned for this facet.
|
FacetOptions |
setObjectType(java.lang.String objectType)
If object_type is set, only those objects of that type will be used to compute facets.
|
FacetOptions |
setOperatorName(java.lang.String operatorName)
Name of the operator chosen for faceting.
|
FacetOptions |
setSourceName(java.lang.String sourceName)
Source name to facet on.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Integer getNumFacetBuckets()
null
for nonepublic FacetOptions setNumFacetBuckets(java.lang.Integer numFacetBuckets)
numFacetBuckets
- numFacetBuckets or null
for nonepublic java.lang.String getObjectType()
null
for nonepublic FacetOptions setObjectType(java.lang.String objectType)
objectType
- objectType or null
for nonepublic java.lang.String getOperatorName()
null
for nonepublic FacetOptions setOperatorName(java.lang.String operatorName)
operatorName
- operatorName or null
for nonepublic java.lang.String getSourceName()
null
for nonepublic FacetOptions setSourceName(java.lang.String sourceName)
sourceName
- sourceName or null
for nonepublic FacetOptions set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public FacetOptions clone()
clone
in class com.google.api.client.json.GenericJson