Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb
Overview
Prediction results for a Query Autocomplete prediction.
Instance Attribute Summary collapse
-
#structured_format ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Contains a breakdown of a Place or query prediction into main text and secondary text.
-
#text ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Text representing a Place or query prediction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
constructor
A new instance of GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction
Returns a new instance of GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionQueryPrediction.
453 454 455 |
# File 'lib/google/apis/places_v1/classes.rb', line 453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#structured_format ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionStructuredFormat
Contains a breakdown of a Place or query prediction into main text and
secondary text. For Place predictions, the main text contains the specific
name of the Place. For query predictions, the main text contains the query.
The secondary text contains additional disambiguating features (such as a city
or region) to further identify the Place or refine the query.
Corresponds to the JSON property structuredFormat
445 446 447 |
# File 'lib/google/apis/places_v1/classes.rb', line 445 def structured_format @structured_format end |
#text ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1AutocompletePlacesResponseSuggestionFormattableText
Text representing a Place or query prediction. The text may be used as is or
formatted.
Corresponds to the JSON property text
451 452 453 |
# File 'lib/google/apis/places_v1/classes.rb', line 451 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
458 459 460 461 |
# File 'lib/google/apis/places_v1/classes.rb', line 458 def update!(**args) @structured_format = args[:structured_format] if args.key?(:structured_format) @text = args[:text] if args.key?(:text) end |