public final class SuggestRequest
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 |
---|
SuggestRequest() |
Modifier and Type | Method and Description |
---|---|
SuggestRequest |
clone() |
java.util.List<DataSourceRestriction> |
getDataSourceRestrictions()
The sources to use for suggestions.
|
java.lang.String |
getQuery()
Partial query for which autocomplete suggestions will be shown.
|
RequestOptions |
getRequestOptions()
Request options, such as the search application and user timezone.
|
SuggestRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
SuggestRequest |
setDataSourceRestrictions(java.util.List<DataSourceRestriction> dataSourceRestrictions)
The sources to use for suggestions.
|
SuggestRequest |
setQuery(java.lang.String query)
Partial query for which autocomplete suggestions will be shown.
|
SuggestRequest |
setRequestOptions(RequestOptions requestOptions)
Request options, such as the search application and user timezone.
|
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<DataSourceRestriction> getDataSourceRestrictions()
null
for nonepublic SuggestRequest setDataSourceRestrictions(java.util.List<DataSourceRestriction> dataSourceRestrictions)
dataSourceRestrictions
- dataSourceRestrictions or null
for nonepublic java.lang.String getQuery()
null
for nonepublic SuggestRequest setQuery(java.lang.String query)
query
- query or null
for nonepublic RequestOptions getRequestOptions()
null
for nonepublic SuggestRequest setRequestOptions(RequestOptions requestOptions)
requestOptions
- requestOptions or null
for nonepublic SuggestRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public SuggestRequest clone()
clone
in class com.google.api.client.json.GenericJson