Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification
- 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. Justifications for the place. Justifications answers the question of why a place could interest an end user.
Instance Attribute Summary collapse
-
#business_availability_attributes_justification ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details.
-
#review_justification ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
Experimental: See https://developers.google.com/maps/documentation/places/web- service/experimental/places-generative for more details.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustification
constructor
A new instance of GoogleMapsPlacesV1ContextualContentJustification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1ContextualContentJustification
Returns a new instance of GoogleMapsPlacesV1ContextualContentJustification.
773 774 775 |
# File 'lib/google/apis/places_v1/classes.rb', line 773 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business_availability_attributes_justification ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
Experimental: See https://developers.google.com/maps/documentation/places/web-
service/experimental/places-generative for more details.
BusinessAvailabilityAttributes justifications. This shows some attributes a
business has that could interest an end user.
Corresponds to the JSON property businessAvailabilityAttributesJustification
762 763 764 |
# File 'lib/google/apis/places_v1/classes.rb', line 762 def business_availability_attributes_justification @business_availability_attributes_justification end |
#review_justification ⇒ Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
Experimental: See https://developers.google.com/maps/documentation/places/web-
service/experimental/places-generative for more details. User review
justifications. This highlights a section of the user review that would
interest an end user. For instance, if the search query is "firewood pizza",
the review justification highlights the text relevant to the search query.
Corresponds to the JSON property reviewJustification
771 772 773 |
# File 'lib/google/apis/places_v1/classes.rb', line 771 def review_justification @review_justification end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
778 779 780 781 |
# File 'lib/google/apis/places_v1/classes.rb', line 778 def update!(**args) @business_availability_attributes_justification = args[:business_availability_attributes_justification] if args.key?(:business_availability_attributes_justification) @review_justification = args[:review_justification] if args.key?(:review_justification) end |