Skip to content

Commit 7cb9c26

Browse files
feat: Automated regeneration of Places client (googleapis#12327)
Auto-created at 2024-10-15 13:15:34 +0000 using the toys pull request generator.
1 parent 6119845 commit 7cb9c26

File tree

7 files changed

+181
-3
lines changed

7 files changed

+181
-3
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.7"}]
14+
[{:google_api_places, "~> 0.8"}]
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 "20240920"
23+
@discovery_revision "20241013"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.GoogleMapsPlacesV1AddressDescriptor do
19+
@moduledoc """
20+
A relational description of a location. Includes a ranked set of nearby landmarks and precise containing areas and their relationship to the target location.
21+
22+
## Attributes
23+
24+
* `areas` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorArea.t)`, *default:* `nil`) - A ranked list of containing or adjacent areas. The most recognizable and precise areas are ranked first.
25+
* `landmarks` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark.t)`, *default:* `nil`) - A ranked list of nearby landmarks. The most recognizable and nearby landmarks are ranked first.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:areas =>
32+
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorArea.t()) | nil,
33+
:landmarks =>
34+
list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark.t()) | nil
35+
}
36+
37+
field(:areas, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorArea, type: :list)
38+
39+
field(:landmarks,
40+
as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark,
41+
type: :list
42+
)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptor do
46+
def decode(value, options) do
47+
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptor.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptor do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.GoogleMapsPlacesV1AddressDescriptorArea do
19+
@moduledoc """
20+
Area information and the area's relationship with the target location. Areas includes precise sublocality, neighborhoods, and large compounds that are useful for describing a location.
21+
22+
## Attributes
23+
24+
* `containment` (*type:* `String.t`, *default:* `nil`) - Defines the spatial relationship between the target location and the area.
25+
* `displayName` (*type:* `GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t`, *default:* `nil`) - The area's display name.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - The area's resource name.
27+
* `placeId` (*type:* `String.t`, *default:* `nil`) - The area's place id.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:containment => String.t() | nil,
34+
:displayName => GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
35+
:name => String.t() | nil,
36+
:placeId => String.t() | nil
37+
}
38+
39+
field(:containment)
40+
field(:displayName, as: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText)
41+
field(:name)
42+
field(:placeId)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorArea do
46+
def decode(value, options) do
47+
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorArea.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorArea do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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.GoogleMapsPlacesV1AddressDescriptorLandmark do
19+
@moduledoc """
20+
Basic landmark information and the landmark's relationship with the target location. Landmarks are prominent places that can be used to describe a location.
21+
22+
## Attributes
23+
24+
* `displayName` (*type:* `GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t`, *default:* `nil`) - The landmark's display name.
25+
* `name` (*type:* `String.t`, *default:* `nil`) - The landmark's resource name.
26+
* `placeId` (*type:* `String.t`, *default:* `nil`) - The landmark's place id.
27+
* `spatialRelationship` (*type:* `String.t`, *default:* `nil`) - Defines the spatial relationship between the target location and the landmark.
28+
* `straightLineDistanceMeters` (*type:* `number()`, *default:* `nil`) - The straight line distance in meters between the target location and the landmark.
29+
* `travelDistanceMeters` (*type:* `number()`, *default:* `nil`) - The travel distance in meters along the road network if known. This does not take into account the mode of transportation (walking/driving).
30+
* `types` (*type:* `list(String.t)`, *default:* `nil`) - A set of type tags for this landmark. For a complete list of possible values, see https://developers.google.com/maps/documentation/places/web-service/place-types.
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:displayName => GoogleApi.Places.V1.Model.GoogleTypeLocalizedText.t() | nil,
37+
:name => String.t() | nil,
38+
:placeId => String.t() | nil,
39+
:spatialRelationship => String.t() | nil,
40+
:straightLineDistanceMeters => number() | nil,
41+
:travelDistanceMeters => number() | nil,
42+
:types => list(String.t()) | nil
43+
}
44+
45+
field(:displayName, as: GoogleApi.Places.V1.Model.GoogleTypeLocalizedText)
46+
field(:name)
47+
field(:placeId)
48+
field(:spatialRelationship)
49+
field(:straightLineDistanceMeters)
50+
field(:travelDistanceMeters)
51+
field(:types, type: :list)
52+
end
53+
54+
defimpl Poison.Decoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark do
55+
def decode(value, options) do
56+
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark.decode(value, options)
57+
end
58+
end
59+
60+
defimpl Poison.Encoder, for: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptorLandmark do
61+
def encode(value, options) do
62+
GoogleApi.Gax.ModelBase.encode(value, options)
63+
end
64+
end

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
7070
* `servesWine` (*type:* `boolean()`, *default:* `nil`) - Specifies if the place serves wine.
7171
* `goodForWatchingSports` (*type:* `boolean()`, *default:* `nil`) - Place is suitable for watching sports.
7272
* `fuelOptions` (*type:* `GoogleApi.Places.V1.Model.GoogleMapsPlacesV1FuelOptions.t`, *default:* `nil`) - The most recent information about fuel options in a gas station. This information is updated regularly.
73+
* `addressDescriptor` (*type:* `GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptor.t`, *default:* `nil`) - The address descriptor of the place. Address descriptors include additional information that help describe a location using landmarks and areas. See address descriptor regional coverage in https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
7374
* `formattedAddress` (*type:* `String.t`, *default:* `nil`) - A full, human-readable address for this place.
7475
* `photos` (*type:* `list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo.t)`, *default:* `nil`) - Information (including references) about photos of this place. A maximum of 10 photos can be returned.
7576
* `reservable` (*type:* `boolean()`, *default:* `nil`) - Specifies if the place supports reservations.
@@ -148,6 +149,8 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
148149
:servesWine => boolean() | nil,
149150
:goodForWatchingSports => boolean() | nil,
150151
:fuelOptions => GoogleApi.Places.V1.Model.GoogleMapsPlacesV1FuelOptions.t() | nil,
152+
:addressDescriptor =>
153+
GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptor.t() | nil,
151154
:formattedAddress => String.t() | nil,
152155
:photos => list(GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo.t()) | nil,
153156
:reservable => boolean() | nil,
@@ -242,6 +245,7 @@ defmodule GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Place do
242245
field(:servesWine)
243246
field(:goodForWatchingSports)
244247
field(:fuelOptions, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1FuelOptions)
248+
field(:addressDescriptor, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1AddressDescriptor)
245249
field(:formattedAddress)
246250
field(:photos, as: GoogleApi.Places.V1.Model.GoogleMapsPlacesV1Photo, type: :list)
247251
field(:reservable)

clients/places/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.Places.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.7.0"
21+
@version "0.8.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)