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.



1779
1780
1781
# File 'lib/google/apis/places_v1/classes.rb', line 1779

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



1755
1756
1757
# File 'lib/google/apis/places_v1/classes.rb', line 1755

def description
  @description
end

#description_flag_content_uriString

A link where users can flag a problem with the description summary. Corresponds to the JSON property descriptionFlagContentUri

Returns:

  • (String)


1760
1761
1762
# File 'lib/google/apis/places_v1/classes.rb', line 1760

def description_flag_content_uri
  @description_flag_content_uri
end

#overviewGoogle::Apis::PlacesV1::GoogleTypeLocalizedText

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



1765
1766
1767
# File 'lib/google/apis/places_v1/classes.rb', line 1765

def overview
  @overview
end

#overview_flag_content_uriString

A link where users can flag a problem with the overview summary. Corresponds to the JSON property overviewFlagContentUri

Returns:

  • (String)


1770
1771
1772
# File 'lib/google/apis/places_v1/classes.rb', line 1770

def overview_flag_content_uri
  @overview_flag_content_uri
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



1777
1778
1779
# File 'lib/google/apis/places_v1/classes.rb', line 1777

def references
  @references
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1784
1785
1786
1787
1788
1789
1790
# File 'lib/google/apis/places_v1/classes.rb', line 1784

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