Skip to content

Commit 8bfe341

Browse files
1 parent 38de084 commit 8bfe341

3,067 files changed

Lines changed: 40 additions & 2933292 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_v1/types/content.py

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

18091809
class Maps(proto.Message):
1810-
r"""Chunk from Google Maps.
1810+
r"""A ``Maps`` chunk is a piece of evidence that comes from Google Maps,
1811+
containing information about places or routes. This is used to
1812+
provide the user with rich, location-based information.
1813+
18111814
18121815
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
18131816
@@ -1834,6 +1837,8 @@ class Maps(proto.Message):
18341837
This includes review snippets and photos that
18351838
were used to generate the answer, as well as
18361839
uris to flag content.
1840+
route (google.cloud.aiplatform_v1.types.GroundingChunk.Maps.Route):
1841+
Output only. Route information.
18371842
"""
18381843

18391844
class PlaceAnswerSources(proto.Message):
@@ -1878,6 +1883,33 @@ class ReviewSnippet(proto.Message):
18781883
message="GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet",
18791884
)
18801885

1886+
class Route(proto.Message):
1887+
r"""Route information from Google Maps.
1888+
1889+
Attributes:
1890+
distance_meters (int):
1891+
The total distance of the route, in meters.
1892+
duration (google.protobuf.duration_pb2.Duration):
1893+
The total duration of the route.
1894+
encoded_polyline (str):
1895+
An encoded polyline of the route. See
1896+
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
1897+
"""
1898+
1899+
distance_meters: int = proto.Field(
1900+
proto.INT32,
1901+
number=1,
1902+
)
1903+
duration: duration_pb2.Duration = proto.Field(
1904+
proto.MESSAGE,
1905+
number=2,
1906+
message=duration_pb2.Duration,
1907+
)
1908+
encoded_polyline: str = proto.Field(
1909+
proto.STRING,
1910+
number=3,
1911+
)
1912+
18811913
uri: str = proto.Field(
18821914
proto.STRING,
18831915
number=1,
@@ -1903,6 +1935,11 @@ class ReviewSnippet(proto.Message):
19031935
number=5,
19041936
message="GroundingChunk.Maps.PlaceAnswerSources",
19051937
)
1938+
route: "GroundingChunk.Maps.Route" = proto.Field(
1939+
proto.MESSAGE,
1940+
number=6,
1941+
message="GroundingChunk.Maps.Route",
1942+
)
19061943

19071944
web: Web = proto.Field(
19081945
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)