Skip to content

Commit 6b7f59b

Browse files
1 parent a44ee2b commit 6b7f59b

3,067 files changed

Lines changed: 40 additions & 2933329 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google/cloud/aiplatform_v1beta1/types/content.py

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,10 @@ class RetrievedContext(proto.Message):
16491649
)
16501650

16511651
class Maps(proto.Message):
1652-
r"""Chunk from Google Maps.
1652+
r"""A ``Maps`` chunk is a piece of evidence that comes from Google Maps,
1653+
containing information about places or routes. This is used to
1654+
provide the user with rich, location-based information.
1655+
16531656
16541657
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
16551658
@@ -1676,6 +1679,8 @@ class Maps(proto.Message):
16761679
This includes review snippets and photos that
16771680
were used to generate the answer, as well as
16781681
uris to flag content.
1682+
route (google.cloud.aiplatform_v1beta1.types.GroundingChunk.Maps.Route):
1683+
Output only. Route information.
16791684
"""
16801685

16811686
class PlaceAnswerSources(proto.Message):
@@ -1720,6 +1725,33 @@ class ReviewSnippet(proto.Message):
17201725
message="GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet",
17211726
)
17221727

1728+
class Route(proto.Message):
1729+
r"""Route information from Google Maps.
1730+
1731+
Attributes:
1732+
distance_meters (int):
1733+
The total distance of the route, in meters.
1734+
duration (google.protobuf.duration_pb2.Duration):
1735+
The total duration of the route.
1736+
encoded_polyline (str):
1737+
An encoded polyline of the route. See
1738+
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
1739+
"""
1740+
1741+
distance_meters: int = proto.Field(
1742+
proto.INT32,
1743+
number=1,
1744+
)
1745+
duration: duration_pb2.Duration = proto.Field(
1746+
proto.MESSAGE,
1747+
number=2,
1748+
message=duration_pb2.Duration,
1749+
)
1750+
encoded_polyline: str = proto.Field(
1751+
proto.STRING,
1752+
number=3,
1753+
)
1754+
17231755
uri: str = proto.Field(
17241756
proto.STRING,
17251757
number=1,
@@ -1745,6 +1777,11 @@ class ReviewSnippet(proto.Message):
17451777
number=5,
17461778
message="GroundingChunk.Maps.PlaceAnswerSources",
17471779
)
1780+
route: "GroundingChunk.Maps.Route" = proto.Field(
1781+
proto.MESSAGE,
1782+
number=6,
1783+
message="GroundingChunk.Maps.Route",
1784+
)
17481785

17491786
web: Web = proto.Field(
17501787
proto.MESSAGE,

owl-bot-staging/v1/.coveragerc

Lines changed: 0 additions & 13 deletions
This file was deleted.

owl-bot-staging/v1/.flake8

Lines changed: 0 additions & 34 deletions
This file was deleted.

owl-bot-staging/v1/LICENSE

Lines changed: 0 additions & 202 deletions
This file was deleted.

owl-bot-staging/v1/MANIFEST.in

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)