java.io.Serializablepublic class AutocompletePrediction
extends java.lang.Object
implements java.io.Serializable
Please see Query Autocomplete Responses for more detail.
| Modifier and Type | Class | Description | 
|---|---|---|
static class  | 
AutocompletePrediction.MatchedSubstring | 
 Describes the location of the entered term in the prediction result text, so that the term can
 be highlighted if desired. 
 | 
static class  | 
AutocompletePrediction.Term | 
 Identifies each section of the returned description. 
 | 
| Modifier and Type | Field | Description | 
|---|---|---|
java.lang.String | 
description | 
 Description of the matched prediction. 
 | 
AutocompletePrediction.MatchedSubstring[] | 
matchedSubstrings | 
 The locations of the entered term in the prediction result text, so that the term can be
 highlighted if desired. 
 | 
java.lang.String | 
placeId | 
 The Place ID of the place. 
 | 
AutocompleteStructuredFormatting | 
structuredFormatting | 
 A description of how the autocomplete query matched the returned result. 
 | 
AutocompletePrediction.Term[] | 
terms | 
 An array of terms identifying each section of the returned description. 
 | 
java.lang.String[] | 
types | 
 An array indicating the type of the address component. 
 | 
| Constructor | Description | 
|---|---|
AutocompletePrediction() | 
| Modifier and Type | Method | Description | 
|---|---|---|
java.lang.String | 
toString() | 
public java.lang.String description
public java.lang.String placeId
public java.lang.String[] types
Please see supported types for a list of types that can be returned.
public AutocompletePrediction.Term[] terms
public AutocompletePrediction.MatchedSubstring[] matchedSubstrings
public AutocompleteStructuredFormatting structuredFormatting