public final class FacetResult
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 |
---|
FacetResult() |
Modifier and Type | Method and Description |
---|---|
FacetResult |
clone() |
java.util.List<FacetBucket> |
getBuckets()
FacetBuckets for values in response containing at least a single result.
|
java.lang.String |
getObjectType()
Object type for which facet results are returned.
|
java.lang.String |
getOperatorName()
Name of the operator chosen for faceting.
|
java.lang.String |
getSourceName()
Source name for which facet results are returned.
|
FacetResult |
set(java.lang.String fieldName,
java.lang.Object value) |
FacetResult |
setBuckets(java.util.List<FacetBucket> buckets)
FacetBuckets for values in response containing at least a single result.
|
FacetResult |
setObjectType(java.lang.String objectType)
Object type for which facet results are returned.
|
FacetResult |
setOperatorName(java.lang.String operatorName)
Name of the operator chosen for faceting.
|
FacetResult |
setSourceName(java.lang.String sourceName)
Source name for which facet results are returned.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<FacetBucket> getBuckets()
null
for nonepublic FacetResult setBuckets(java.util.List<FacetBucket> buckets)
buckets
- buckets or null
for nonepublic java.lang.String getObjectType()
null
for nonepublic FacetResult setObjectType(java.lang.String objectType)
objectType
- objectType or null
for nonepublic java.lang.String getOperatorName()
null
for nonepublic FacetResult setOperatorName(java.lang.String operatorName)
operatorName
- operatorName or null
for nonepublic java.lang.String getSourceName()
null
for nonepublic FacetResult setSourceName(java.lang.String sourceName)
sourceName
- sourceName or null
for nonepublic FacetResult set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public FacetResult clone()
clone
in class com.google.api.client.json.GenericJson