BUILD.bazel 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. ##############################################################################
  11. # Common
  12. ##############################################################################
  13. load("@rules_proto//proto:defs.bzl", "proto_library")
  14. load(
  15. "@com_google_googleapis_imports//:imports.bzl",
  16. "csharp_gapic_assembly_pkg",
  17. "csharp_gapic_library",
  18. "csharp_grpc_library",
  19. "csharp_proto_library",
  20. "go_gapic_assembly_pkg",
  21. "go_gapic_library",
  22. "go_proto_library",
  23. "go_test",
  24. "java_gapic_assembly_gradle_pkg",
  25. "java_gapic_library",
  26. "java_gapic_test",
  27. "java_grpc_library",
  28. "java_proto_library",
  29. "nodejs_gapic_assembly_pkg",
  30. "nodejs_gapic_library",
  31. "php_gapic_assembly_pkg",
  32. "php_gapic_library",
  33. "php_grpc_library",
  34. "php_proto_library",
  35. "proto_library_with_info",
  36. "py_gapic_assembly_pkg",
  37. "py_gapic_library",
  38. "ruby_cloud_gapic_library",
  39. "ruby_gapic_assembly_pkg",
  40. "ruby_grpc_library",
  41. "ruby_proto_library",
  42. )
  43. # This is an API workspace, having public visibility by default makes perfect sense.
  44. package(default_visibility = ["//visibility:public"])
  45. proto_library(
  46. name = "delivery_proto",
  47. srcs = [
  48. "common.proto",
  49. "delivery_api.proto",
  50. "delivery_vehicles.proto",
  51. "header.proto",
  52. "tasks.proto",
  53. ],
  54. deps = [
  55. "//google/api:annotations_proto",
  56. "//google/api:client_proto",
  57. "//google/api:field_behavior_proto",
  58. "//google/api:resource_proto",
  59. "//google/api:routing_proto",
  60. "//google/geo/type:viewport_proto",
  61. "//google/type:latlng_proto",
  62. "@com_google_protobuf//:duration_proto",
  63. "@com_google_protobuf//:field_mask_proto",
  64. "@com_google_protobuf//:timestamp_proto",
  65. "@com_google_protobuf//:wrappers_proto",
  66. ],
  67. )
  68. proto_library_with_info(
  69. name = "delivery_proto_with_info",
  70. deps = [
  71. ":delivery_proto",
  72. "//google/cloud:common_resources_proto",
  73. ],
  74. )
  75. java_proto_library(
  76. name = "delivery_java_proto",
  77. deps = [":delivery_proto"],
  78. )
  79. java_grpc_library(
  80. name = "delivery_java_grpc",
  81. srcs = [":delivery_proto"],
  82. deps = [":delivery_java_proto"],
  83. )
  84. java_gapic_library(
  85. name = "delivery_java_gapic",
  86. srcs = [":delivery_proto_with_info"],
  87. gapic_yaml = None,
  88. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  89. rest_numeric_enums = False,
  90. service_yaml = "fleetengine.yaml",
  91. test_deps = [
  92. ":delivery_java_grpc",
  93. "//google/maps/fleetengine/v1:fleetengine_java_proto",
  94. ],
  95. transport = "grpc+rest",
  96. deps = [
  97. ":delivery_java_proto",
  98. "//google/api:api_java_proto",
  99. ],
  100. )
  101. java_gapic_test(
  102. name = "delivery_java_gapic_test_suite",
  103. test_classes = [
  104. "google.maps.fleetengine.delivery.v1.DeliveryServiceClientHttpJsonTest",
  105. "google.maps.fleetengine.delivery.v1.DeliveryServiceClientTest",
  106. ],
  107. runtime_deps = [":delivery_java_gapic_test"],
  108. )
  109. # Open Source Packages
  110. java_gapic_assembly_gradle_pkg(
  111. name = "google-maps-fleetengine-delivery-v1-java",
  112. include_samples = True,
  113. transport = "grpc+rest",
  114. deps = [
  115. ":delivery_java_gapic",
  116. ":delivery_java_grpc",
  117. ":delivery_java_proto",
  118. ":delivery_proto",
  119. ],
  120. )
  121. go_proto_library(
  122. name = "delivery_go_proto",
  123. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  124. importpath = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1",
  125. protos = [":delivery_proto"],
  126. deps = [
  127. "//google/api:annotations_go_proto",
  128. "//google/geo/type:viewport_go_proto",
  129. "//google/type:latlng_go_proto",
  130. ],
  131. )
  132. go_gapic_library(
  133. name = "delivery_go_gapic",
  134. srcs = [":delivery_proto_with_info"],
  135. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  136. importpath = "google.golang.org/maps/fleetengine/delivery/v1;delivery",
  137. metadata = True,
  138. rest_numeric_enums = False,
  139. service_yaml = "fleetengine.yaml",
  140. transport = "grpc+rest",
  141. deps = [
  142. ":delivery_go_proto",
  143. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  144. ],
  145. )
  146. go_test(
  147. name = "delivery_go_gapic_test",
  148. srcs = [":delivery_go_gapic_srcjar_test"],
  149. embed = [":delivery_go_gapic"],
  150. importpath = "google.golang.org/maps/fleetengine/delivery/v1",
  151. )
  152. # Open Source Packages
  153. go_gapic_assembly_pkg(
  154. name = "gapi-maps-fleetengine-delivery-v1-go",
  155. deps = [
  156. ":delivery_go_gapic",
  157. ":delivery_go_gapic_srcjar-metadata.srcjar",
  158. ":delivery_go_gapic_srcjar-test.srcjar",
  159. ":delivery_go_proto",
  160. ],
  161. )
  162. py_gapic_library(
  163. name = "delivery_py_gapic",
  164. srcs = [":delivery_proto"],
  165. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  166. rest_numeric_enums = False,
  167. transport = "grpc",
  168. deps = [
  169. "//google/geo/type:viewport_py_proto",
  170. ],
  171. )
  172. # Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1371 is fixed
  173. #py_test(
  174. # name = "delivery_py_gapic_test",
  175. # srcs = [
  176. # "delivery_py_gapic_pytest.py",
  177. # "delivery_py_gapic_test.py",
  178. # ],
  179. # legacy_create_init = False,
  180. # deps = [":delivery_py_gapic"],
  181. #)
  182. # Open Source Packages
  183. py_gapic_assembly_pkg(
  184. name = "maps-fleetengine-delivery-v1-py",
  185. deps = [
  186. ":delivery_py_gapic",
  187. ],
  188. )
  189. php_proto_library(
  190. name = "delivery_php_proto",
  191. deps = [":delivery_proto"],
  192. )
  193. php_grpc_library(
  194. name = "delivery_php_grpc",
  195. srcs = [":delivery_proto"],
  196. deps = [":delivery_php_proto"],
  197. )
  198. php_gapic_library(
  199. name = "delivery_php_gapic",
  200. srcs = [":delivery_proto_with_info"],
  201. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  202. rest_numeric_enums = False,
  203. service_yaml = "fleetengine.yaml",
  204. transport = "grpc+rest",
  205. deps = [
  206. ":delivery_php_grpc",
  207. ":delivery_php_proto",
  208. ],
  209. )
  210. # Open Source Packages
  211. php_gapic_assembly_pkg(
  212. name = "google-maps-fleetengine-delivery-v1-php",
  213. deps = [
  214. ":delivery_php_gapic",
  215. ":delivery_php_grpc",
  216. ":delivery_php_proto",
  217. ],
  218. )
  219. nodejs_gapic_library(
  220. name = "delivery_nodejs_gapic",
  221. package_name = "@googlemaps/fleetengine-delivery",
  222. src = ":delivery_proto_with_info",
  223. extra_protoc_parameters = ["metadata"],
  224. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  225. package = "maps.fleetengine.delivery.v1",
  226. rest_numeric_enums = False,
  227. service_yaml = "fleetengine.yaml",
  228. transport = "grpc+rest",
  229. deps = [],
  230. )
  231. nodejs_gapic_assembly_pkg(
  232. name = "maps-fleetengine-delivery-v1-nodejs",
  233. deps = [
  234. ":delivery_nodejs_gapic",
  235. ":delivery_proto",
  236. "//google/geo/type:viewport_proto",
  237. ],
  238. )
  239. ruby_proto_library(
  240. name = "delivery_ruby_proto",
  241. deps = [":delivery_proto"],
  242. )
  243. ruby_grpc_library(
  244. name = "delivery_ruby_grpc",
  245. srcs = [":delivery_proto"],
  246. deps = [":delivery_ruby_proto"],
  247. )
  248. ruby_cloud_gapic_library(
  249. name = "delivery_ruby_gapic",
  250. srcs = [":delivery_proto_with_info"],
  251. extra_protoc_parameters = [
  252. "ruby-cloud-gem-name=google-maps-fleetengine-delivery-v1",
  253. ],
  254. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  255. rest_numeric_enums = False,
  256. deps = [
  257. ":delivery_ruby_grpc",
  258. ":delivery_ruby_proto",
  259. ],
  260. )
  261. # Open Source Packages
  262. ruby_gapic_assembly_pkg(
  263. name = "google-maps-fleetengine-delivery-v1-ruby",
  264. deps = [
  265. ":delivery_ruby_gapic",
  266. ":delivery_ruby_grpc",
  267. ":delivery_ruby_proto",
  268. ],
  269. )
  270. csharp_proto_library(
  271. name = "delivery_csharp_proto",
  272. deps = [":delivery_proto"],
  273. )
  274. csharp_grpc_library(
  275. name = "delivery_csharp_grpc",
  276. srcs = [":delivery_proto"],
  277. deps = [":delivery_csharp_proto"],
  278. )
  279. csharp_gapic_library(
  280. name = "delivery_csharp_gapic",
  281. srcs = [":delivery_proto_with_info"],
  282. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  283. grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json",
  284. rest_numeric_enums = False,
  285. deps = [
  286. ":delivery_csharp_grpc",
  287. ":delivery_csharp_proto",
  288. ],
  289. )
  290. # Open Source Packages
  291. csharp_gapic_assembly_pkg(
  292. name = "google-maps-fleetengine-delivery-v1-csharp",
  293. deps = [
  294. ":delivery_csharp_gapic",
  295. ":delivery_csharp_grpc",
  296. ":delivery_csharp_proto",
  297. ],
  298. )
  299. ##############################################################################
  300. # C++
  301. ##############################################################################
  302. # Put your C++ rules here