Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary

Inherits:
Object
  • Object
show all
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

Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details. AI-generated summary of the place.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceGenerativeSummary

Returns a new instance of GoogleMapsPlacesV1PlaceGenerativeSummary.



1745
1746
1747
# File 'lib/google/apis/places_v1/classes.rb', line 1745

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

Localized variant of a text in a particular language. Corresponds to the JSON property description



1731
1732
1733
# File 'lib/google/apis/places_v1/classes.rb', line 1731

def description
  @description
end

#overviewGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

Localized variant of a text in a particular language. Corresponds to the JSON property overview



1736
1737
1738
# File 'lib/google/apis/places_v1/classes.rb', line 1736

def overview
  @overview
end

#referencesGoogle::Apis::PlacesV1::GoogleMapsPlacesV1References

Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details. Reference that the generative content is related to. Corresponds to the JSON property references



1743
1744
1745
# File 'lib/google/apis/places_v1/classes.rb', line 1743

def references
  @references
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1750
1751
1752
1753
1754
# File 'lib/google/apis/places_v1/classes.rb', line 1750

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @overview = args[:overview] if args.key?(:overview)
  @references = args[:references] if args.key?(:references)
end