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.
786 787 788 |
# File 'lib/google/apis/places_v1/classes.rb', line 786 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
775 776 777 |
# File 'lib/google/apis/places_v1/classes.rb', line 775 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
784 785 786 |
# File 'lib/google/apis/places_v1/classes.rb', line 784 def review_justification @review_justification end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
791 792 793 794 |
# File 'lib/google/apis/places_v1/classes.rb', line 791 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 |