BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/rules_gapic/tree/master/bazel
  3. # Most of the manual changes to this file will be overwritten.
  4. # It's **only** allowed to change the following rule attribute values:
  5. # - names of *_gapic_assembly_* rules
  6. # - certain parameters of *_gapic_library rules, including but not limited to:
  7. # * extra_protoc_parameters
  8. # * extra_protoc_file_parameters
  9. # The complete list of preserved parameters can be found in the source code.
  10. # This is an API workspace, having public visibility by default makes perfect sense.
  11. package(default_visibility = ["//visibility:public"])
  12. ##############################################################################
  13. # Common
  14. ##############################################################################
  15. load("@rules_proto//proto:defs.bzl", "proto_library")
  16. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  17. proto_library(
  18. name = "routing_proto",
  19. srcs = [
  20. "fallback_info.proto",
  21. "location.proto",
  22. "maneuver.proto",
  23. "navigation_instruction.proto",
  24. "polyline.proto",
  25. "route.proto",
  26. "route_label.proto",
  27. "route_modifiers.proto",
  28. "route_travel_mode.proto",
  29. "routes_service.proto",
  30. "routing_preference.proto",
  31. "speed_reading_interval.proto",
  32. "toll_info.proto",
  33. "toll_passes.proto",
  34. "units.proto",
  35. "vehicle_emission_type.proto",
  36. "vehicle_info.proto",
  37. "waypoint.proto",
  38. ],
  39. deps = [
  40. "//google/api:annotations_proto",
  41. "//google/api:client_proto",
  42. "//google/api:field_behavior_proto",
  43. "//google/geo/type:viewport_proto",
  44. "//google/rpc:status_proto",
  45. "//google/type:latlng_proto",
  46. "//google/type:money_proto",
  47. "@com_google_protobuf//:duration_proto",
  48. "@com_google_protobuf//:struct_proto",
  49. "@com_google_protobuf//:timestamp_proto",
  50. "@com_google_protobuf//:wrappers_proto",
  51. ],
  52. )
  53. proto_library_with_info(
  54. name = "routing_proto_with_info",
  55. deps = [
  56. ":routing_proto",
  57. "//google/cloud:common_resources_proto",
  58. ],
  59. )
  60. ##############################################################################
  61. # Java
  62. ##############################################################################
  63. load(
  64. "@com_google_googleapis_imports//:imports.bzl",
  65. "java_gapic_assembly_gradle_pkg",
  66. "java_gapic_library",
  67. "java_gapic_test",
  68. "java_grpc_library",
  69. "java_proto_library",
  70. )
  71. java_proto_library(
  72. name = "routing_java_proto",
  73. deps = [":routing_proto"],
  74. )
  75. java_grpc_library(
  76. name = "routing_java_grpc",
  77. srcs = [":routing_proto"],
  78. deps = [":routing_java_proto"],
  79. )
  80. java_gapic_library(
  81. name = "routing_java_gapic",
  82. srcs = [":routing_proto_with_info"],
  83. gapic_yaml = None,
  84. grpc_service_config = "library_grpc_service_config.json",
  85. rest_numeric_enums = False,
  86. service_yaml = "routes_v2.yaml",
  87. test_deps = [
  88. ":routing_java_grpc",
  89. ],
  90. transport = "grpc+rest",
  91. deps = [
  92. ":routing_java_proto",
  93. "//google/api:api_java_proto",
  94. ],
  95. )
  96. java_gapic_test(
  97. name = "routing_java_gapic_test_suite",
  98. test_classes = [
  99. "com.google.maps.routing.v2.RoutesClientHttpJsonTest",
  100. "com.google.maps.routing.v2.RoutesClientTest",
  101. ],
  102. runtime_deps = [":routing_java_gapic_test"],
  103. )
  104. # Open Source Packages
  105. java_gapic_assembly_gradle_pkg(
  106. name = "google-maps-routing-v2-java",
  107. include_samples = True,
  108. transport = "grpc+rest",
  109. deps = [
  110. ":routing_java_gapic",
  111. ":routing_java_grpc",
  112. ":routing_java_proto",
  113. ":routing_proto",
  114. ],
  115. )
  116. ##############################################################################
  117. # Go
  118. ##############################################################################
  119. load(
  120. "@com_google_googleapis_imports//:imports.bzl",
  121. "go_gapic_assembly_pkg",
  122. "go_gapic_library",
  123. "go_proto_library",
  124. "go_test",
  125. )
  126. go_proto_library(
  127. name = "routing_go_proto",
  128. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  129. importpath = "google.golang.org/genproto/googleapis/maps/routing/v2",
  130. protos = [":routing_proto"],
  131. deps = [
  132. "//google/api:annotations_go_proto",
  133. "//google/geo/type:viewport_go_proto",
  134. "//google/rpc:status_go_proto",
  135. "//google/type:latlng_go_proto",
  136. "//google/type:money_go_proto",
  137. ],
  138. )
  139. go_gapic_library(
  140. name = "routing_go_gapic",
  141. srcs = [":routing_proto_with_info"],
  142. grpc_service_config = "library_grpc_service_config.json",
  143. importpath = "google.golang.org/google/maps/routing/v2;routing",
  144. metadata = True,
  145. rest_numeric_enums = False,
  146. service_yaml = "routes_v2.yaml",
  147. transport = "grpc+rest",
  148. deps = [
  149. ":routing_go_proto",
  150. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  151. ],
  152. )
  153. go_test(
  154. name = "routing_go_gapic_test",
  155. srcs = [":routing_go_gapic_srcjar_test"],
  156. embed = [":routing_go_gapic"],
  157. importpath = "google.golang.org/google/maps/routing/v2",
  158. )
  159. # Open Source Packages
  160. go_gapic_assembly_pkg(
  161. name = "gapi-maps-routing-v2-go",
  162. deps = [
  163. ":routing_go_gapic",
  164. ":routing_go_gapic_srcjar-metadata.srcjar",
  165. ":routing_go_gapic_srcjar-test.srcjar",
  166. ":routing_go_proto",
  167. ],
  168. )
  169. ##############################################################################
  170. # Python
  171. ##############################################################################
  172. load(
  173. "@com_google_googleapis_imports//:imports.bzl",
  174. "py_gapic_assembly_pkg",
  175. "py_gapic_library",
  176. "py_test",
  177. )
  178. py_gapic_library(
  179. name = "routing_py_gapic",
  180. srcs = [":routing_proto"],
  181. grpc_service_config = "library_grpc_service_config.json",
  182. rest_numeric_enums = False,
  183. service_yaml = "routes_v2.yaml",
  184. transport = "grpc",
  185. deps = [
  186. "//google/geo/type:viewport_py_proto",
  187. ],
  188. )
  189. py_test(
  190. name = "routing_py_gapic_test",
  191. srcs = [
  192. "routing_py_gapic_pytest.py",
  193. "routing_py_gapic_test.py",
  194. ],
  195. legacy_create_init = False,
  196. deps = [":routing_py_gapic"],
  197. )
  198. # Open Source Packages
  199. py_gapic_assembly_pkg(
  200. name = "maps-routing-v2-py",
  201. deps = [
  202. ":routing_py_gapic",
  203. ],
  204. )
  205. ##############################################################################
  206. # PHP
  207. ##############################################################################
  208. load(
  209. "@com_google_googleapis_imports//:imports.bzl",
  210. "php_gapic_assembly_pkg",
  211. "php_gapic_library",
  212. "php_grpc_library",
  213. "php_proto_library",
  214. )
  215. php_proto_library(
  216. name = "routing_php_proto",
  217. deps = [":routing_proto"],
  218. )
  219. php_grpc_library(
  220. name = "routing_php_grpc",
  221. srcs = [":routing_proto"],
  222. deps = [":routing_php_proto"],
  223. )
  224. php_gapic_library(
  225. name = "routing_php_gapic",
  226. srcs = [":routing_proto_with_info"],
  227. grpc_service_config = "library_grpc_service_config.json",
  228. rest_numeric_enums = False,
  229. service_yaml = "routes_v2.yaml",
  230. transport = "grpc+rest",
  231. deps = [
  232. ":routing_php_grpc",
  233. ":routing_php_proto",
  234. ],
  235. )
  236. # Open Source Packages
  237. php_gapic_assembly_pkg(
  238. name = "google-maps-routing-v2-php",
  239. deps = [
  240. ":routing_php_gapic",
  241. ":routing_php_grpc",
  242. ":routing_php_proto",
  243. ],
  244. )
  245. ##############################################################################
  246. # Node.js
  247. ##############################################################################
  248. load(
  249. "@com_google_googleapis_imports//:imports.bzl",
  250. "nodejs_gapic_assembly_pkg",
  251. "nodejs_gapic_library",
  252. )
  253. nodejs_gapic_library(
  254. name = "routing_nodejs_gapic",
  255. package_name = "@googlemaps/routing",
  256. src = ":routing_proto_with_info",
  257. extra_protoc_parameters = ["metadata"],
  258. grpc_service_config = "library_grpc_service_config.json",
  259. package = "google.maps.routing.v2",
  260. rest_numeric_enums = False,
  261. service_yaml = "routes_v2.yaml",
  262. transport = "grpc+rest",
  263. deps = [],
  264. )
  265. nodejs_gapic_assembly_pkg(
  266. name = "maps-routing-v2-nodejs",
  267. deps = [
  268. ":routing_nodejs_gapic",
  269. ":routing_proto",
  270. "//google/geo/type:viewport_proto",
  271. ],
  272. )
  273. ##############################################################################
  274. # Ruby
  275. ##############################################################################
  276. load(
  277. "@com_google_googleapis_imports//:imports.bzl",
  278. "ruby_cloud_gapic_library",
  279. "ruby_gapic_assembly_pkg",
  280. "ruby_grpc_library",
  281. "ruby_proto_library",
  282. )
  283. ruby_proto_library(
  284. name = "routing_ruby_proto",
  285. deps = [":routing_proto"],
  286. )
  287. ruby_grpc_library(
  288. name = "routing_ruby_grpc",
  289. srcs = [":routing_proto"],
  290. deps = [":routing_ruby_proto"],
  291. )
  292. ruby_cloud_gapic_library(
  293. name = "routing_ruby_gapic",
  294. srcs = [":routing_proto_with_info"],
  295. extra_protoc_parameters = [
  296. "ruby-cloud-api-id=routes.googleapis.com",
  297. "ruby-cloud-api-shortname=routes",
  298. "ruby-cloud-gem-name=google-maps-routing-v2",
  299. "ruby-cloud-product-url=https://developers.google.com/maps/documentation/",
  300. ],
  301. grpc_service_config = "library_grpc_service_config.json",
  302. rest_numeric_enums = False,
  303. ruby_cloud_description = "Routing includes the process of calculating a path along the road network, complete with an Estimated Time of Arrival (ETA).",
  304. ruby_cloud_title = "Routes V2",
  305. service_yaml = "routes_v2.yaml",
  306. deps = [
  307. ":routing_ruby_grpc",
  308. ":routing_ruby_proto",
  309. ],
  310. )
  311. # Open Source Packages
  312. ruby_gapic_assembly_pkg(
  313. name = "google-maps-routing-v2-ruby",
  314. deps = [
  315. ":routing_ruby_gapic",
  316. ":routing_ruby_grpc",
  317. ":routing_ruby_proto",
  318. ],
  319. )
  320. ##############################################################################
  321. # C#
  322. ##############################################################################
  323. load(
  324. "@com_google_googleapis_imports//:imports.bzl",
  325. "csharp_gapic_assembly_pkg",
  326. "csharp_gapic_library",
  327. "csharp_grpc_library",
  328. "csharp_proto_library",
  329. )
  330. csharp_proto_library(
  331. name = "routing_csharp_proto",
  332. deps = [":routing_proto"],
  333. )
  334. csharp_grpc_library(
  335. name = "routing_csharp_grpc",
  336. srcs = [":routing_proto"],
  337. deps = [":routing_csharp_proto"],
  338. )
  339. csharp_gapic_library(
  340. name = "routing_csharp_gapic",
  341. srcs = [":routing_proto_with_info"],
  342. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  343. grpc_service_config = "library_grpc_service_config.json",
  344. rest_numeric_enums = False,
  345. service_yaml = "routes_v2.yaml",
  346. deps = [
  347. ":routing_csharp_grpc",
  348. ":routing_csharp_proto",
  349. ],
  350. )
  351. # Open Source Packages
  352. csharp_gapic_assembly_pkg(
  353. name = "google-maps-routing-v2-csharp",
  354. deps = [
  355. ":routing_csharp_gapic",
  356. ":routing_csharp_grpc",
  357. ":routing_csharp_proto",
  358. ],
  359. )
  360. ##############################################################################
  361. # C++
  362. ##############################################################################
  363. load(
  364. "@com_google_googleapis_imports//:imports.bzl",
  365. "cc_grpc_library",
  366. "cc_proto_library",
  367. )
  368. cc_proto_library(
  369. name = "routing_cc_proto",
  370. deps = [":routing_proto"],
  371. )
  372. cc_grpc_library(
  373. name = "routing_cc_grpc",
  374. srcs = [":routing_proto"],
  375. grpc_only = True,
  376. deps = [":routing_cc_proto"],
  377. )