Skip to content

Commit 4d45421

Browse files
feat: Automated regeneration of Places client (googleapis#12432)
Auto-created at 2024-10-30 13:12:24 +0000 using the toys pull request generator.
1 parent 554910d commit 4d45421

11 files changed

+96
-6
lines changed

clients/places/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_places, "~> 0.8"}]
14+
[{:google_api_places, "~> 0.9"}]
1515
end
1616
```
1717

clients/places/lib/google_api/places/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Places.V1 do
2020
API client metadata for GoogleApi.Places.V1.
2121
"""
2222

23-
@discovery_revision "20241022"
23+
@discovery_revision "20241028"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_photo.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo do
2222
## Attributes
2323
2424
* `authorAttributions` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution.t)`, *default:* `nil`) - This photo's authors.
25+
* `flagContentUri` (*type:* `String.t`, *default:* `nil`) - A link where users can flag a problem with the photo.
26+
* `googleMapsUri` (*type:* `String.t`, *default:* `nil`) - A link to show the photo on Google Maps.
2527
* `heightPx` (*type:* `integer()`, *default:* `nil`) - The maximum available height, in pixels.
2628
* `name` (*type:* `String.t`, *default:* `nil`) - Identifier. A reference representing this place photo which may be used to look up this place photo again (also called the API "resource" name: `places/{place_id}/photos/{photo}`).
2729
* `widthPx` (*type:* `integer()`, *default:* `nil`) - The maximum available width, in pixels.
@@ -32,6 +34,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo do
3234
@type t :: %__MODULE__{
3335
:authorAttributions =>
3436
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution.t()) | nil,
37+
:flagContentUri => String.t() | nil,
38+
:googleMapsUri => String.t() | nil,
3539
:heightPx => integer() | nil,
3640
:name => String.t() | nil,
3741
:widthPx => integer() | nil
@@ -42,6 +46,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo do
4246
type: :list
4347
)
4448

49+
field(:flagContentUri)
50+
field(:googleMapsUri)
4551
field(:heightPx)
4652
field(:name)
4753
field(:widthPx)

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_place.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
8585
* `parkingOptions` (*type:* `GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceParkingOptions.t`, *default:* `nil`) - Options of parking provided by the place.
8686
* `adrFormatAddress` (*type:* `String.t`, *default:* `nil`) - The place's address in adr microformat: http://microformats.org/wiki/adr.
8787
* `id` (*type:* `String.t`, *default:* `nil`) - The unique identifier of a place.
88+
* `googleMapsLinks` (*type:* `GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks.t`, *default:* `nil`) - Links to trigger different Google Maps actions.
8889
"""
8990

9091
use GoogleApi.Gax.ModelBase
@@ -166,7 +167,9 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
166167
:parkingOptions =>
167168
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceParkingOptions.t() | nil,
168169
:adrFormatAddress => String.t() | nil,
169-
:id => String.t() | nil
170+
:id => String.t() | nil,
171+
:googleMapsLinks =>
172+
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks.t() | nil
170173
}
171174

172175
field(:liveMusic)
@@ -264,6 +267,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
264267
field(:parkingOptions, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceParkingOptions)
265268
field(:adrFormatAddress)
266269
field(:id)
270+
field(:googleMapsLinks, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks)
267271
end
268272

269273
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_place_area_summary.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceAreaSummary do
2222
## Attributes
2323
2424
* `contentBlocks` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1ContentBlock.t)`, *default:* `nil`) - Content blocks that compose the area summary. Each block has a separate topic about the area.
25+
* `flagContentUri` (*type:* `String.t`, *default:* `nil`) - A link where users can flag a problem with the summary.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
3031
:contentBlocks =>
31-
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1ContentBlock.t()) | nil
32+
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1ContentBlock.t()) | nil,
33+
:flagContentUri => String.t() | nil
3234
}
3335

3436
field(:contentBlocks, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1ContentBlock, type: :list)
37+
field(:flagContentUri)
3538
end
3639

3740
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceAreaSummary do

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_place_generative_summary.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,26 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGenerativeSummary do
2222
## Attributes
2323
2424
* `description` (*type:* `GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t`, *default:* `nil`) - The detailed description of the place.
25+
* `descriptionFlagContentUri` (*type:* `String.t`, *default:* `nil`) - A link where users can flag a problem with the description summary.
2526
* `overview` (*type:* `GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t`, *default:* `nil`) - The overview of the place.
27+
* `overviewFlagContentUri` (*type:* `String.t`, *default:* `nil`) - A link where users can flag a problem with the overview summary.
2628
* `references` (*type:* `GoogleApi.Places.V1.Model.GoogleMapsPlacesV1References.t`, *default:* `nil`) - References that are used to generate the summary description.
2729
"""
2830

2931
use GoogleApi.Gax.ModelBase
3032

3133
@type t :: %__MODULE__{
3234
:description => GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
35+
:descriptionFlagContentUri => String.t() | nil,
3336
:overview => GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
37+
:overviewFlagContentUri => String.t() | nil,
3438
:references => GoogleApi.Places.V1.Model.GoogleMapsPlacesV1References.t() | nil
3539
}
3640

3741
field(:description, as: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText)
42+
field(:descriptionFlagContentUri)
3843
field(:overview, as: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText)
44+
field(:overviewFlagContentUri)
3945
field(:references, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1References)
4046
end
4147

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks do
19+
@moduledoc """
20+
Links to trigger different Google Maps actions.
21+
22+
## Attributes
23+
24+
* `directionsUri` (*type:* `String.t`, *default:* `nil`) - A link to show the directions to the place. The link only populates the destination location and uses the default travel mode `DRIVE`.
25+
* `photosUri` (*type:* `String.t`, *default:* `nil`) - A link to show photos of this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.
26+
* `placeUri` (*type:* `String.t`, *default:* `nil`) - A link to show this place.
27+
* `reviewsUri` (*type:* `String.t`, *default:* `nil`) - A link to show reviews of this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.
28+
* `writeAReviewUri` (*type:* `String.t`, *default:* `nil`) - A link to write a review for this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:directionsUri => String.t() | nil,
35+
:photosUri => String.t() | nil,
36+
:placeUri => String.t() | nil,
37+
:reviewsUri => String.t() | nil,
38+
:writeAReviewUri => String.t() | nil
39+
}
40+
41+
field(:directionsUri)
42+
field(:photosUri)
43+
field(:placeUri)
44+
field(:reviewsUri)
45+
field(:writeAReviewUri)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks do
49+
def decode(value, options) do
50+
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1PlaceGoogleMapsLinks do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_review.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Review do
2222
## Attributes
2323
2424
* `authorAttribution` (*type:* `GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution.t`, *default:* `nil`) - This review's author.
25+
* `flagContentUri` (*type:* `String.t`, *default:* `nil`) - A link where users can flag a problem with the review.
26+
* `googleMapsUri` (*type:* `String.t`, *default:* `nil`) - A link to show the review on Google Maps.
2527
* `name` (*type:* `String.t`, *default:* `nil`) - A reference representing this place review which may be used to look up this place review again (also called the API "resource" name: `places/{place_id}/reviews/{review}`).
2628
* `originalText` (*type:* `GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t`, *default:* `nil`) - The review text in its original language.
2729
* `publishTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp for the review.
@@ -35,6 +37,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Review do
3537
@type t :: %__MODULE__{
3638
:authorAttribution =>
3739
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution.t() | nil,
40+
:flagContentUri => String.t() | nil,
41+
:googleMapsUri => String.t() | nil,
3842
:name => String.t() | nil,
3943
:originalText => GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
4044
:publishTime => DateTime.t() | nil,
@@ -44,6 +48,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Review do
4448
}
4549

4650
field(:authorAttribution, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AuthorAttribution)
51+
field(:flagContentUri)
52+
field(:googleMapsUri)
4753
field(:name)
4854
field(:originalText, as: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText)
4955
field(:publishTime, as: DateTime)

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_routing_summary.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary do
2121
2222
## Attributes
2323
24+
* `directionsUri` (*type:* `String.t`, *default:* `nil`) - A link to show directions on Google Maps using the waypoints from the given routing summary. The route generated by this link is not guaranteed to be the same as the route used to generate the routing summary. The link uses information provided in the request, from fields including `routingParameters` and `searchAlongRouteParameters` when applicable, to generate the directions link.
2425
* `legs` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummaryLeg.t)`, *default:* `nil`) - The legs of the trip. When you calculate travel duration and distance from a set origin, `legs` contains a single leg containing the duration and distance from the origin to the destination. When you do a search along route, `legs` contains two legs: one from the origin to place, and one from the place to the destination.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
31+
:directionsUri => String.t() | nil,
3032
:legs => list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummaryLeg.t()) | nil
3133
}
3234

35+
field(:directionsUri)
3336
field(:legs, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummaryLeg, type: :list)
3437
end
3538

clients/places/lib/google_api/places/v1/model/google_maps_places_v1_search_text_response.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1SearchTextResponse do
2525
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token that can be sent as `page_token` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
2626
* `places` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place.t)`, *default:* `nil`) - A list of places that meet the user's text search criteria.
2727
* `routingSummaries` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary.t)`, *default:* `nil`) - A list of routing summaries where each entry associates to the corresponding place in the same index in the `places` field. If the routing summary is not available for one of the places, it will contain an empty entry. This list will have as many entries as the list of places if requested.
28+
* `searchUri` (*type:* `String.t`, *default:* `nil`) - A link allows the user to search with the same text query as specified in the request on Google Maps.
2829
"""
2930

3031
use GoogleApi.Gax.ModelBase
@@ -35,7 +36,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1SearchTextResponse do
3536
:nextPageToken => String.t() | nil,
3637
:places => list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place.t()) | nil,
3738
:routingSummaries =>
38-
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary.t()) | nil
39+
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary.t()) | nil,
40+
:searchUri => String.t() | nil
3941
}
4042

4143
field(:contextualContents,
@@ -50,6 +52,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1SearchTextResponse do
5052
as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1RoutingSummary,
5153
type: :list
5254
)
55+
56+
field(:searchUri)
5357
end
5458

5559
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1SearchTextResponse do

0 commit comments

Comments
 (0)