Skip to content

Commit 61b3dca

Browse files
Google APIscopybara-github
authored andcommitted
chore(python): Add google.geo.type as a proto-plus dependency for google/maps/routing/v2
PiperOrigin-RevId: 519870009
1 parent 617ec74 commit 61b3dca

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

google/maps/routing/v2/BUILD.bazel

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,17 @@ load(
192192
"@com_google_googleapis_imports//:imports.bzl",
193193
"py_gapic_assembly_pkg",
194194
"py_gapic_library",
195+
"py_import",
195196
"py_test",
196197
)
197198

199+
py_import(
200+
name="viewport",
201+
srcs = [
202+
"//google/geo/type:viewport_py_gapic",
203+
],
204+
)
205+
198206
py_gapic_library(
199207
name = "routing_py_gapic",
200208
srcs = [":routing_proto"],
@@ -203,8 +211,11 @@ py_gapic_library(
203211
service_yaml = "routes_v2.yaml",
204212
transport = "grpc+rest",
205213
deps = [
206-
"//google/geo/type:viewport_py_proto",
214+
":viewport",
207215
],
216+
opt_args = [
217+
"proto-plus-deps=google.geo.type",
218+
]
208219
)
209220

210221
py_test(

0 commit comments

Comments
 (0)