google-apis-places_v1 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4b3b3690d26988a929ef5c2bf2bd12428bb90058715387fea9512e82bcabc88
4
- data.tar.gz: eb30af800adcc761bd0e35c128eae693ff6da2c49237e6dae41169b29c01ac14
3
+ metadata.gz: 50935c43d8f7b874c06e1fbe4ac229213d0c207521fa4971d3c20fb59e502aea
4
+ data.tar.gz: 6b8a028240ff9ab4aeaaeea3f516c4424a5a62459690b2ed5a74043a32389916
5
5
  SHA512:
6
- metadata.gz: 35df76543e3d5ecc262d73be86eeb8d6015da6432065c451815c134efc0b7d519b81764903890051138c00c0f64b3a63d34c98cdfc9894bb3839b0b6b5418b0c
7
- data.tar.gz: 27e93f7dd942c85cc8a5990fea17be9793bfea1fd48f3ee7d6f4763f520e4e5a6d69284efef053d3c7a029ea9b0730e0b92a78c56432ddb6714eecc4aaead4af
6
+ metadata.gz: 9fdaea3f4ae1dedb831dd07a108cac73a760d08766659d4a4ed167a36bab1ebe9142931cd646ddffbeb12d47d840e554e580ba56bdf0c9ff90fed79b02bb1fba
7
+ data.tar.gz: 1c1cde00d1d6ce7aab3b744e078719bf71acde11a0d310cdc4f23b3992121acc792503b2b42130a207c0b049c4ae092ac966da6d26e9fa05007408aebb1a56fb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.21.0 (2024-05-19)
4
+
5
+ * Regenerated from discovery document revision 20240512
6
+ * Regenerated using generator version 0.15.0
7
+
8
+ ### v0.20.0 (2024-04-28)
9
+
10
+ * Regenerated from discovery document revision 20240423
11
+
3
12
  ### v0.19.0 (2024-03-17)
4
13
 
5
14
  * Regenerated from discovery document revision 20240310
@@ -545,6 +545,230 @@ module Google
545
545
  end
546
546
  end
547
547
 
548
+ # A block of content that can be served individually.
549
+ class GoogleMapsPlacesV1ContentBlock
550
+ include Google::Apis::Core::Hashable
551
+
552
+ # Localized variant of a text in a particular language.
553
+ # Corresponds to the JSON property `content`
554
+ # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
555
+ attr_accessor :content
556
+
557
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
558
+ # service/experimental/places-generative for more details. Reference that the
559
+ # generative content is related to.
560
+ # Corresponds to the JSON property `references`
561
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1References]
562
+ attr_accessor :references
563
+
564
+ # The topic of the content, for example "overview" or "restaurant".
565
+ # Corresponds to the JSON property `topic`
566
+ # @return [String]
567
+ attr_accessor :topic
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @content = args[:content] if args.key?(:content)
576
+ @references = args[:references] if args.key?(:references)
577
+ @topic = args[:topic] if args.key?(:topic)
578
+ end
579
+ end
580
+
581
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
582
+ # service/experimental/places-generative for more details. Content that is
583
+ # contextual to the place query.
584
+ class GoogleMapsPlacesV1ContextualContent
585
+ include Google::Apis::Core::Hashable
586
+
587
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
588
+ # service/experimental/places-generative for more details. Justifications for
589
+ # the place.
590
+ # Corresponds to the JSON property `justifications`
591
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification>]
592
+ attr_accessor :justifications
593
+
594
+ # Information (including references) about photos of this place, contexual to
595
+ # the place query.
596
+ # Corresponds to the JSON property `photos`
597
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo>]
598
+ attr_accessor :photos
599
+
600
+ # List of reviews about this place, contexual to the place query.
601
+ # Corresponds to the JSON property `reviews`
602
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
603
+ attr_accessor :reviews
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @justifications = args[:justifications] if args.key?(:justifications)
612
+ @photos = args[:photos] if args.key?(:photos)
613
+ @reviews = args[:reviews] if args.key?(:reviews)
614
+ end
615
+ end
616
+
617
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
618
+ # service/experimental/places-generative for more details. Justifications for
619
+ # the place. Justifications answers the question of why a place could interest
620
+ # an end user.
621
+ class GoogleMapsPlacesV1ContextualContentJustification
622
+ include Google::Apis::Core::Hashable
623
+
624
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
625
+ # service/experimental/places-generative for more details.
626
+ # BusinessAvailabilityAttributes justifications. This shows some attributes a
627
+ # business has that could interest an end user.
628
+ # Corresponds to the JSON property `businessAvailabilityAttributesJustification`
629
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification]
630
+ attr_accessor :business_availability_attributes_justification
631
+
632
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
633
+ # service/experimental/places-generative for more details. User review
634
+ # justifications. This highlights a section of the user review that would
635
+ # interest an end user. For instance, if the search query is "firewood pizza",
636
+ # the review justification highlights the text relevant to the search query.
637
+ # Corresponds to the JSON property `reviewJustification`
638
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification]
639
+ attr_accessor :review_justification
640
+
641
+ def initialize(**args)
642
+ update!(**args)
643
+ end
644
+
645
+ # Update properties of this object
646
+ def update!(**args)
647
+ @business_availability_attributes_justification = args[:business_availability_attributes_justification] if args.key?(:business_availability_attributes_justification)
648
+ @review_justification = args[:review_justification] if args.key?(:review_justification)
649
+ end
650
+ end
651
+
652
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
653
+ # service/experimental/places-generative for more details.
654
+ # BusinessAvailabilityAttributes justifications. This shows some attributes a
655
+ # business has that could interest an end user.
656
+ class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
657
+ include Google::Apis::Core::Hashable
658
+
659
+ # If a place provides delivery.
660
+ # Corresponds to the JSON property `delivery`
661
+ # @return [Boolean]
662
+ attr_accessor :delivery
663
+ alias_method :delivery?, :delivery
664
+
665
+ # If a place provides dine-in.
666
+ # Corresponds to the JSON property `dineIn`
667
+ # @return [Boolean]
668
+ attr_accessor :dine_in
669
+ alias_method :dine_in?, :dine_in
670
+
671
+ # If a place provides takeout.
672
+ # Corresponds to the JSON property `takeout`
673
+ # @return [Boolean]
674
+ attr_accessor :takeout
675
+ alias_method :takeout?, :takeout
676
+
677
+ def initialize(**args)
678
+ update!(**args)
679
+ end
680
+
681
+ # Update properties of this object
682
+ def update!(**args)
683
+ @delivery = args[:delivery] if args.key?(:delivery)
684
+ @dine_in = args[:dine_in] if args.key?(:dine_in)
685
+ @takeout = args[:takeout] if args.key?(:takeout)
686
+ end
687
+ end
688
+
689
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
690
+ # service/experimental/places-generative for more details. User review
691
+ # justifications. This highlights a section of the user review that would
692
+ # interest an end user. For instance, if the search query is "firewood pizza",
693
+ # the review justification highlights the text relevant to the search query.
694
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
695
+ include Google::Apis::Core::Hashable
696
+
697
+ # The text highlighted by the justification. This is a subset of the review
698
+ # itself. The exact word to highlight is marked by the HighlightedTextRange.
699
+ # There could be several words in the text being highlighted.
700
+ # Corresponds to the JSON property `highlightedText`
701
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText]
702
+ attr_accessor :highlighted_text
703
+
704
+ # Information about a review of a place.
705
+ # Corresponds to the JSON property `review`
706
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1Review]
707
+ attr_accessor :review
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @highlighted_text = args[:highlighted_text] if args.key?(:highlighted_text)
716
+ @review = args[:review] if args.key?(:review)
717
+ end
718
+ end
719
+
720
+ # The text highlighted by the justification. This is a subset of the review
721
+ # itself. The exact word to highlight is marked by the HighlightedTextRange.
722
+ # There could be several words in the text being highlighted.
723
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
724
+ include Google::Apis::Core::Hashable
725
+
726
+ # The list of the ranges of the highlighted text.
727
+ # Corresponds to the JSON property `highlightedTextRanges`
728
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange>]
729
+ attr_accessor :highlighted_text_ranges
730
+
731
+ #
732
+ # Corresponds to the JSON property `text`
733
+ # @return [String]
734
+ attr_accessor :text
735
+
736
+ def initialize(**args)
737
+ update!(**args)
738
+ end
739
+
740
+ # Update properties of this object
741
+ def update!(**args)
742
+ @highlighted_text_ranges = args[:highlighted_text_ranges] if args.key?(:highlighted_text_ranges)
743
+ @text = args[:text] if args.key?(:text)
744
+ end
745
+ end
746
+
747
+ # The range of highlighted text.
748
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange
749
+ include Google::Apis::Core::Hashable
750
+
751
+ #
752
+ # Corresponds to the JSON property `endIndex`
753
+ # @return [Fixnum]
754
+ attr_accessor :end_index
755
+
756
+ #
757
+ # Corresponds to the JSON property `startIndex`
758
+ # @return [Fixnum]
759
+ attr_accessor :start_index
760
+
761
+ def initialize(**args)
762
+ update!(**args)
763
+ end
764
+
765
+ # Update properties of this object
766
+ def update!(**args)
767
+ @end_index = args[:end_index] if args.key?(:end_index)
768
+ @start_index = args[:start_index] if args.key?(:start_index)
769
+ end
770
+ end
771
+
548
772
  # Information about the EV Charge Station hosted in Place. Terminology follows
549
773
  # https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could
550
774
  # charge one car at a time. One port has one or more connectors. One station has
@@ -781,6 +1005,13 @@ module Google
781
1005
  attr_accessor :allows_dogs
782
1006
  alias_method :allows_dogs?, :allows_dogs
783
1007
 
1008
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
1009
+ # service/experimental/places-generative for more details. AI-generated summary
1010
+ # of the area that the place is in.
1011
+ # Corresponds to the JSON property `areaSummary`
1012
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary]
1013
+ attr_accessor :area_summary
1014
+
784
1015
  # A set of data provider that must be shown with this result.
785
1016
  # Corresponds to the JSON property `attributions`
786
1017
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
@@ -855,6 +1086,13 @@ module Google
855
1086
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions]
856
1087
  attr_accessor :fuel_options
857
1088
 
1089
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
1090
+ # service/experimental/places-generative for more details. AI-generated summary
1091
+ # of the place.
1092
+ # Corresponds to the JSON property `generativeSummary`
1093
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary]
1094
+ attr_accessor :generative_summary
1095
+
858
1096
  # Place is good for children.
859
1097
  # Corresponds to the JSON property `goodForChildren`
860
1098
  # @return [Boolean]
@@ -1149,6 +1387,7 @@ module Google
1149
1387
  @address_components = args[:address_components] if args.key?(:address_components)
1150
1388
  @adr_format_address = args[:adr_format_address] if args.key?(:adr_format_address)
1151
1389
  @allows_dogs = args[:allows_dogs] if args.key?(:allows_dogs)
1390
+ @area_summary = args[:area_summary] if args.key?(:area_summary)
1152
1391
  @attributions = args[:attributions] if args.key?(:attributions)
1153
1392
  @business_status = args[:business_status] if args.key?(:business_status)
1154
1393
  @curbside_pickup = args[:curbside_pickup] if args.key?(:curbside_pickup)
@@ -1161,6 +1400,7 @@ module Google
1161
1400
  @ev_charge_options = args[:ev_charge_options] if args.key?(:ev_charge_options)
1162
1401
  @formatted_address = args[:formatted_address] if args.key?(:formatted_address)
1163
1402
  @fuel_options = args[:fuel_options] if args.key?(:fuel_options)
1403
+ @generative_summary = args[:generative_summary] if args.key?(:generative_summary)
1164
1404
  @good_for_children = args[:good_for_children] if args.key?(:good_for_children)
1165
1405
  @good_for_groups = args[:good_for_groups] if args.key?(:good_for_groups)
1166
1406
  @good_for_watching_sports = args[:good_for_watching_sports] if args.key?(:good_for_watching_sports)
@@ -1292,6 +1532,28 @@ module Google
1292
1532
  end
1293
1533
  end
1294
1534
 
1535
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
1536
+ # service/experimental/places-generative for more details. AI-generated summary
1537
+ # of the area that the place is in.
1538
+ class GoogleMapsPlacesV1PlaceAreaSummary
1539
+ include Google::Apis::Core::Hashable
1540
+
1541
+ # Content blocks that compose the area summary. Each block has a separate topic
1542
+ # about the area.
1543
+ # Corresponds to the JSON property `contentBlocks`
1544
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock>]
1545
+ attr_accessor :content_blocks
1546
+
1547
+ def initialize(**args)
1548
+ update!(**args)
1549
+ end
1550
+
1551
+ # Update properties of this object
1552
+ def update!(**args)
1553
+ @content_blocks = args[:content_blocks] if args.key?(:content_blocks)
1554
+ end
1555
+ end
1556
+
1295
1557
  # Information about data providers of this place.
1296
1558
  class GoogleMapsPlacesV1PlaceAttribution
1297
1559
  include Google::Apis::Core::Hashable
@@ -1317,6 +1579,41 @@ module Google
1317
1579
  end
1318
1580
  end
1319
1581
 
1582
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
1583
+ # service/experimental/places-generative for more details. AI-generated summary
1584
+ # of the place.
1585
+ class GoogleMapsPlacesV1PlaceGenerativeSummary
1586
+ include Google::Apis::Core::Hashable
1587
+
1588
+ # Localized variant of a text in a particular language.
1589
+ # Corresponds to the JSON property `description`
1590
+ # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
1591
+ attr_accessor :description
1592
+
1593
+ # Localized variant of a text in a particular language.
1594
+ # Corresponds to the JSON property `overview`
1595
+ # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
1596
+ attr_accessor :overview
1597
+
1598
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
1599
+ # service/experimental/places-generative for more details. Reference that the
1600
+ # generative content is related to.
1601
+ # Corresponds to the JSON property `references`
1602
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1References]
1603
+ attr_accessor :references
1604
+
1605
+ def initialize(**args)
1606
+ update!(**args)
1607
+ end
1608
+
1609
+ # Update properties of this object
1610
+ def update!(**args)
1611
+ @description = args[:description] if args.key?(:description)
1612
+ @overview = args[:overview] if args.key?(:overview)
1613
+ @references = args[:references] if args.key?(:references)
1614
+ end
1615
+ end
1616
+
1320
1617
  # Information about business hour of the place.
1321
1618
  class GoogleMapsPlacesV1PlaceOpeningHours
1322
1619
  include Google::Apis::Core::Hashable
@@ -1639,6 +1936,34 @@ module Google
1639
1936
  end
1640
1937
  end
1641
1938
 
1939
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
1940
+ # service/experimental/places-generative for more details. Reference that the
1941
+ # generative content is related to.
1942
+ class GoogleMapsPlacesV1References
1943
+ include Google::Apis::Core::Hashable
1944
+
1945
+ # The list of resource names of the referenced places. This name can be used in
1946
+ # other APIs that accept Place resource names.
1947
+ # Corresponds to the JSON property `places`
1948
+ # @return [Array<String>]
1949
+ attr_accessor :places
1950
+
1951
+ # Reviews that serve as references.
1952
+ # Corresponds to the JSON property `reviews`
1953
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Review>]
1954
+ attr_accessor :reviews
1955
+
1956
+ def initialize(**args)
1957
+ update!(**args)
1958
+ end
1959
+
1960
+ # Update properties of this object
1961
+ def update!(**args)
1962
+ @places = args[:places] if args.key?(:places)
1963
+ @reviews = args[:reviews] if args.key?(:reviews)
1964
+ end
1965
+ end
1966
+
1642
1967
  # Information about a review of a place.
1643
1968
  class GoogleMapsPlacesV1Review
1644
1969
  include Google::Apis::Core::Hashable
@@ -1896,10 +2221,14 @@ module Google
1896
2221
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationRestriction]
1897
2222
  attr_accessor :location_restriction
1898
2223
 
1899
- # Maximum number of results to return. It must be between 1 and 20, inclusively.
1900
- # The default is 20. If the number is unset, it falls back to the upper limit.
1901
- # If the number is set to negative or exceeds the upper limit, an
1902
- # INVALID_ARGUMENT error is returned.
2224
+ # Deprecated: Use `page_size` instead. The maximum number of results per page
2225
+ # that can be returned. If the number of available results is larger than `
2226
+ # max_result_count`, a `next_page_token` is returned which can be passed to `
2227
+ # page_token` to get the next page of results in subsequent requests. If 0 or no
2228
+ # value is provided, a default of 20 is used. The maximum value is 20; values
2229
+ # above 20 will be coerced to 20. Negative values will return an
2230
+ # INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are
2231
+ # specified, `max_result_count` will be ignored.
1903
2232
  # Corresponds to the JSON property `maxResultCount`
1904
2233
  # @return [Fixnum]
1905
2234
  attr_accessor :max_result_count
@@ -1920,6 +2249,26 @@ module Google
1920
2249
  attr_accessor :open_now
1921
2250
  alias_method :open_now?, :open_now
1922
2251
 
2252
+ # Optional. The maximum number of results per page that can be returned. If the
2253
+ # number of available results is larger than `page_size`, a `next_page_token` is
2254
+ # returned which can be passed to `page_token` to get the next page of results
2255
+ # in subsequent requests. If 0 or no value is provided, a default of 20 is used.
2256
+ # The maximum value is 20; values above 20 will be set to 20. Negative values
2257
+ # will return an INVALID_ARGUMENT error. If both `max_result_count` and `
2258
+ # page_size` are specified, `max_result_count` will be ignored.
2259
+ # Corresponds to the JSON property `pageSize`
2260
+ # @return [Fixnum]
2261
+ attr_accessor :page_size
2262
+
2263
+ # Optional. A page token, received from a previous TextSearch call. Provide this
2264
+ # to retrieve the subsequent page. When paginating, all parameters other than `
2265
+ # page_token`, `page_size`, and `max_result_count` provided to TextSearch must
2266
+ # match the initial call that provided the page token. Otherwise an
2267
+ # INVALID_ARGUMENT error is returned.
2268
+ # Corresponds to the JSON property `pageToken`
2269
+ # @return [String]
2270
+ attr_accessor :page_token
2271
+
1923
2272
  # Used to restrict the search to places that are marked as certain price levels.
1924
2273
  # Users can choose any combinations of price levels. Default to select all price
1925
2274
  # levels.
@@ -1968,6 +2317,8 @@ module Google
1968
2317
  @max_result_count = args[:max_result_count] if args.key?(:max_result_count)
1969
2318
  @min_rating = args[:min_rating] if args.key?(:min_rating)
1970
2319
  @open_now = args[:open_now] if args.key?(:open_now)
2320
+ @page_size = args[:page_size] if args.key?(:page_size)
2321
+ @page_token = args[:page_token] if args.key?(:page_token)
1971
2322
  @price_levels = args[:price_levels] if args.key?(:price_levels)
1972
2323
  @rank_preference = args[:rank_preference] if args.key?(:rank_preference)
1973
2324
  @region_code = args[:region_code] if args.key?(:region_code)
@@ -1981,13 +2332,13 @@ module Google
1981
2332
  include Google::Apis::Core::Hashable
1982
2333
 
1983
2334
  # Optional. The list of preferred EV connector types. A place that does not
1984
- # support any of the listed connector types are filter out.
2335
+ # support any of the listed connector types is filtered out.
1985
2336
  # Corresponds to the JSON property `connectorTypes`
1986
2337
  # @return [Array<String>]
1987
2338
  attr_accessor :connector_types
1988
2339
 
1989
- # Optional. Filtering places by minimum charging rate. Any places with charging
1990
- # a rate less than the minimum charging rate are filtered out.
2340
+ # Optional. Minimum required charging rate in kilowatts. A place with a charging
2341
+ # rate less than the specified rate is filtered out.
1991
2342
  # Corresponds to the JSON property `minimumChargingRateKw`
1992
2343
  # @return [Float]
1993
2344
  attr_accessor :minimum_charging_rate_kw
@@ -2083,6 +2434,24 @@ module Google
2083
2434
  class GoogleMapsPlacesV1SearchTextResponse
2084
2435
  include Google::Apis::Core::Hashable
2085
2436
 
2437
+ # Experimental: See https://developers.google.com/maps/documentation/places/web-
2438
+ # service/experimental/places-generative for more details. A list of contextual
2439
+ # contents where each entry associates to the corresponding place in the same
2440
+ # index in the places field. The contents that are relevant to the `text_query`
2441
+ # in the request are preferred. If the contextual content is not available for
2442
+ # one of the places, it will return non-contextual content. It will be empty
2443
+ # only when the content is unavailable for this place. This list should have as
2444
+ # many entries as the list of places if requested.
2445
+ # Corresponds to the JSON property `contextualContents`
2446
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent>]
2447
+ attr_accessor :contextual_contents
2448
+
2449
+ # A token that can be sent as `page_token` to retrieve the next page. If this
2450
+ # field is omitted or empty, there are no subsequent pages.
2451
+ # Corresponds to the JSON property `nextPageToken`
2452
+ # @return [String]
2453
+ attr_accessor :next_page_token
2454
+
2086
2455
  # A list of places that meet the user's text search criteria.
2087
2456
  # Corresponds to the JSON property `places`
2088
2457
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Place>]
@@ -2094,6 +2463,8 @@ module Google
2094
2463
 
2095
2464
  # Update properties of this object
2096
2465
  def update!(**args)
2466
+ @contextual_contents = args[:contextual_contents] if args.key?(:contextual_contents)
2467
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2097
2468
  @places = args[:places] if args.key?(:places)
2098
2469
  end
2099
2470
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PlacesV1
18
18
  # Version of the google-apis-places_v1 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.14.0"
22
+ GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240310"
25
+ REVISION = "20240512"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,48 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class GoogleMapsPlacesV1ContentBlock
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleMapsPlacesV1ContextualContent
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleMapsPlacesV1ContextualContentJustification
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
103
145
  class GoogleMapsPlacesV1EvChargeOptions
104
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
147
 
@@ -154,12 +196,24 @@ module Google
154
196
  include Google::Apis::Core::JsonObjectSupport
155
197
  end
156
198
 
199
+ class GoogleMapsPlacesV1PlaceAreaSummary
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
157
205
  class GoogleMapsPlacesV1PlaceAttribution
158
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
207
 
160
208
  include Google::Apis::Core::JsonObjectSupport
161
209
  end
162
210
 
211
+ class GoogleMapsPlacesV1PlaceGenerativeSummary
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
163
217
  class GoogleMapsPlacesV1PlaceOpeningHours
164
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
219
 
@@ -208,6 +262,12 @@ module Google
208
262
  include Google::Apis::Core::JsonObjectSupport
209
263
  end
210
264
 
265
+ class GoogleMapsPlacesV1References
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
211
271
  class GoogleMapsPlacesV1Review
212
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
273
 
@@ -423,6 +483,75 @@ module Google
423
483
  end
424
484
  end
425
485
 
486
+ class GoogleMapsPlacesV1ContentBlock
487
+ # @private
488
+ class Representation < Google::Apis::Core::JsonRepresentation
489
+ property :content, as: 'content', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
490
+
491
+ property :references, as: 'references', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1References, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1References::Representation
492
+
493
+ property :topic, as: 'topic'
494
+ end
495
+ end
496
+
497
+ class GoogleMapsPlacesV1ContextualContent
498
+ # @private
499
+ class Representation < Google::Apis::Core::JsonRepresentation
500
+ collection :justifications, as: 'justifications', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustification::Representation
501
+
502
+ collection :photos, as: 'photos', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Photo::Representation
503
+
504
+ collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
505
+
506
+ end
507
+ end
508
+
509
+ class GoogleMapsPlacesV1ContextualContentJustification
510
+ # @private
511
+ class Representation < Google::Apis::Core::JsonRepresentation
512
+ property :business_availability_attributes_justification, as: 'businessAvailabilityAttributesJustification', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification::Representation
513
+
514
+ property :review_justification, as: 'reviewJustification', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustification::Representation
515
+
516
+ end
517
+ end
518
+
519
+ class GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification
520
+ # @private
521
+ class Representation < Google::Apis::Core::JsonRepresentation
522
+ property :delivery, as: 'delivery'
523
+ property :dine_in, as: 'dineIn'
524
+ property :takeout, as: 'takeout'
525
+ end
526
+ end
527
+
528
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustification
529
+ # @private
530
+ class Representation < Google::Apis::Core::JsonRepresentation
531
+ property :highlighted_text, as: 'highlightedText', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText::Representation
532
+
533
+ property :review, as: 'review', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
534
+
535
+ end
536
+ end
537
+
538
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText
539
+ # @private
540
+ class Representation < Google::Apis::Core::JsonRepresentation
541
+ collection :highlighted_text_ranges, as: 'highlightedTextRanges', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange::Representation
542
+
543
+ property :text, as: 'text'
544
+ end
545
+ end
546
+
547
+ class GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange
548
+ # @private
549
+ class Representation < Google::Apis::Core::JsonRepresentation
550
+ property :end_index, as: 'endIndex'
551
+ property :start_index, as: 'startIndex'
552
+ end
553
+ end
554
+
426
555
  class GoogleMapsPlacesV1EvChargeOptions
427
556
  # @private
428
557
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -490,6 +619,8 @@ module Google
490
619
 
491
620
  property :adr_format_address, as: 'adrFormatAddress'
492
621
  property :allows_dogs, as: 'allowsDogs'
622
+ property :area_summary, as: 'areaSummary', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAreaSummary::Representation
623
+
493
624
  collection :attributions, as: 'attributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution::Representation
494
625
 
495
626
  property :business_status, as: 'businessStatus'
@@ -509,6 +640,8 @@ module Google
509
640
  property :formatted_address, as: 'formattedAddress'
510
641
  property :fuel_options, as: 'fuelOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1FuelOptions::Representation
511
642
 
643
+ property :generative_summary, as: 'generativeSummary', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceGenerativeSummary::Representation
644
+
512
645
  property :good_for_children, as: 'goodForChildren'
513
646
  property :good_for_groups, as: 'goodForGroups'
514
647
  property :good_for_watching_sports, as: 'goodForWatchingSports'
@@ -588,6 +721,14 @@ module Google
588
721
  end
589
722
  end
590
723
 
724
+ class GoogleMapsPlacesV1PlaceAreaSummary
725
+ # @private
726
+ class Representation < Google::Apis::Core::JsonRepresentation
727
+ collection :content_blocks, as: 'contentBlocks', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContentBlock::Representation
728
+
729
+ end
730
+ end
731
+
591
732
  class GoogleMapsPlacesV1PlaceAttribution
592
733
  # @private
593
734
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -596,6 +737,18 @@ module Google
596
737
  end
597
738
  end
598
739
 
740
+ class GoogleMapsPlacesV1PlaceGenerativeSummary
741
+ # @private
742
+ class Representation < Google::Apis::Core::JsonRepresentation
743
+ property :description, as: 'description', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
744
+
745
+ property :overview, as: 'overview', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
746
+
747
+ property :references, as: 'references', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1References, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1References::Representation
748
+
749
+ end
750
+ end
751
+
599
752
  class GoogleMapsPlacesV1PlaceOpeningHours
600
753
  # @private
601
754
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -678,6 +831,15 @@ module Google
678
831
  end
679
832
  end
680
833
 
834
+ class GoogleMapsPlacesV1References
835
+ # @private
836
+ class Representation < Google::Apis::Core::JsonRepresentation
837
+ collection :places, as: 'places'
838
+ collection :reviews, as: 'reviews', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Review::Representation
839
+
840
+ end
841
+ end
842
+
681
843
  class GoogleMapsPlacesV1Review
682
844
  # @private
683
845
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -740,6 +902,8 @@ module Google
740
902
  property :max_result_count, as: 'maxResultCount'
741
903
  property :min_rating, as: 'minRating'
742
904
  property :open_now, as: 'openNow'
905
+ property :page_size, as: 'pageSize'
906
+ property :page_token, as: 'pageToken'
743
907
  collection :price_levels, as: 'priceLevels'
744
908
  property :rank_preference, as: 'rankPreference'
745
909
  property :region_code, as: 'regionCode'
@@ -777,6 +941,9 @@ module Google
777
941
  class GoogleMapsPlacesV1SearchTextResponse
778
942
  # @private
779
943
  class Representation < Google::Apis::Core::JsonRepresentation
944
+ collection :contextual_contents, as: 'contextualContents', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1ContextualContent::Representation
945
+
946
+ property :next_page_token, as: 'nextPageToken'
780
947
  collection :places, as: 'places', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place::Representation
781
948
 
782
949
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-places_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.15.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
63
63
  post_install_message:
64
64
  rdoc_options: []