BUILD.bazel 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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. "cc_grpc_library",
  17. "cc_proto_library",
  18. "csharp_gapic_assembly_pkg",
  19. "csharp_gapic_library",
  20. "csharp_grpc_library",
  21. "csharp_proto_library",
  22. "go_gapic_assembly_pkg",
  23. "go_gapic_library",
  24. "go_proto_library",
  25. "go_test",
  26. "java_gapic_assembly_gradle_pkg",
  27. "java_gapic_library",
  28. "java_gapic_test",
  29. "java_grpc_library",
  30. "java_proto_library",
  31. "nodejs_gapic_assembly_pkg",
  32. "nodejs_gapic_library",
  33. "php_gapic_assembly_pkg",
  34. "php_gapic_library",
  35. "php_grpc_library",
  36. "php_proto_library",
  37. "proto_library_with_info",
  38. "py_gapic_assembly_pkg",
  39. "py_gapic_library",
  40. "py_test",
  41. "ruby_cloud_gapic_library",
  42. "ruby_gapic_assembly_pkg",
  43. "ruby_grpc_library",
  44. "ruby_proto_library",
  45. )
  46. # This is an API workspace, having public visibility by default makes perfect sense.
  47. package(default_visibility = ["//visibility:public"])
  48. proto_library(
  49. name = "regionlookup_proto",
  50. srcs = [
  51. "region_identifier.proto",
  52. "region_lookup_service.proto",
  53. "region_match.proto",
  54. "region_search_values.proto",
  55. ],
  56. deps = [
  57. "//google/api:annotations_proto",
  58. "//google/api:client_proto",
  59. "//google/api:field_behavior_proto",
  60. "//google/type:latlng_proto",
  61. ],
  62. )
  63. proto_library_with_info(
  64. name = "regionlookup_proto_with_info",
  65. deps = [
  66. ":regionlookup_proto",
  67. "//google/cloud:common_resources_proto",
  68. ],
  69. )
  70. java_proto_library(
  71. name = "regionlookup_java_proto",
  72. deps = [":regionlookup_proto"],
  73. )
  74. java_grpc_library(
  75. name = "regionlookup_java_grpc",
  76. srcs = [":regionlookup_proto"],
  77. deps = [":regionlookup_java_proto"],
  78. )
  79. java_gapic_library(
  80. name = "regionlookup_java_gapic",
  81. srcs = [":regionlookup_proto_with_info"],
  82. gapic_yaml = None,
  83. grpc_service_config = "regionlookup_grpc_service_config.json",
  84. rest_numeric_enums = False,
  85. service_yaml = "regionlookup_v1alpha.yaml",
  86. test_deps = [
  87. ":regionlookup_java_grpc",
  88. ],
  89. transport = "grpc+rest",
  90. deps = [
  91. ":regionlookup_java_proto",
  92. "//google/api:api_java_proto",
  93. ],
  94. )
  95. java_gapic_test(
  96. name = "regionlookup_java_gapic_test_suite",
  97. test_classes = [
  98. "com.google.maps.regionlookup.v1alpha.RegionLookupClientHttpJsonTest",
  99. "com.google.maps.regionlookup.v1alpha.RegionLookupClientTest",
  100. ],
  101. runtime_deps = [":regionlookup_java_gapic_test"],
  102. )
  103. # Open Source Packages
  104. java_gapic_assembly_gradle_pkg(
  105. name = "google-cloud-maps-regionlookup-v1alpha-java",
  106. include_samples = True,
  107. transport = "grpc+rest",
  108. deps = [
  109. ":regionlookup_java_gapic",
  110. ":regionlookup_java_grpc",
  111. ":regionlookup_java_proto",
  112. ":regionlookup_proto",
  113. ],
  114. )
  115. go_proto_library(
  116. name = "regionlookup_go_proto",
  117. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  118. importpath = "google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha",
  119. protos = [":regionlookup_proto"],
  120. deps = [
  121. "//google/api:annotations_go_proto",
  122. "//google/type:latlng_go_proto",
  123. ],
  124. )
  125. go_gapic_library(
  126. name = "regionlookup_go_gapic",
  127. srcs = [":regionlookup_proto_with_info"],
  128. grpc_service_config = "regionlookup_grpc_service_config.json",
  129. importpath = "google.golang.org/google/maps/regionlookup/v1alpha;regionlookup",
  130. metadata = True,
  131. rest_numeric_enums = False,
  132. service_yaml = "regionlookup_v1alpha.yaml",
  133. transport = "grpc+rest",
  134. deps = [
  135. ":regionlookup_go_proto",
  136. ],
  137. )
  138. go_test(
  139. name = "regionlookup_go_gapic_test",
  140. srcs = [":regionlookup_go_gapic_srcjar_test"],
  141. embed = [":regionlookup_go_gapic"],
  142. importpath = "google.golang.org/google/maps/regionlookup/v1alpha",
  143. )
  144. # Open Source Packages
  145. go_gapic_assembly_pkg(
  146. name = "gapi-cloud-maps-regionlookup-v1alpha-go",
  147. deps = [
  148. ":regionlookup_go_gapic",
  149. ":regionlookup_go_gapic_srcjar-metadata.srcjar",
  150. ":regionlookup_go_gapic_srcjar-test.srcjar",
  151. ":regionlookup_go_proto",
  152. ],
  153. )
  154. py_gapic_library(
  155. name = "regionlookup_py_gapic",
  156. srcs = [":regionlookup_proto"],
  157. grpc_service_config = "regionlookup_grpc_service_config.json",
  158. rest_numeric_enums = False,
  159. service_yaml = "regionlookup_v1alpha.yaml",
  160. transport = "grpc",
  161. )
  162. py_test(
  163. name = "regionlookup_py_gapic_test",
  164. srcs = [
  165. "regionlookup_py_gapic_pytest.py",
  166. "regionlookup_py_gapic_test.py",
  167. ],
  168. legacy_create_init = False,
  169. deps = [":regionlookup_py_gapic"],
  170. )
  171. # Open Source Packages
  172. py_gapic_assembly_pkg(
  173. name = "maps-regionlookup-v1alpha-py",
  174. deps = [
  175. ":regionlookup_py_gapic",
  176. ],
  177. )
  178. php_proto_library(
  179. name = "regionlookup_php_proto",
  180. deps = [":regionlookup_proto"],
  181. )
  182. php_grpc_library(
  183. name = "regionlookup_php_grpc",
  184. srcs = [":regionlookup_proto"],
  185. deps = [":regionlookup_php_proto"],
  186. )
  187. php_gapic_library(
  188. name = "regionlookup_php_gapic",
  189. srcs = [":regionlookup_proto_with_info"],
  190. grpc_service_config = "regionlookup_grpc_service_config.json",
  191. rest_numeric_enums = False,
  192. service_yaml = "regionlookup_v1alpha.yaml",
  193. transport = "grpc+rest",
  194. deps = [
  195. ":regionlookup_php_grpc",
  196. ":regionlookup_php_proto",
  197. ],
  198. )
  199. # Open Source Packages
  200. php_gapic_assembly_pkg(
  201. name = "google-cloud-maps-regionlookup-v1alpha-php",
  202. deps = [
  203. ":regionlookup_php_gapic",
  204. ":regionlookup_php_grpc",
  205. ":regionlookup_php_proto",
  206. ],
  207. )
  208. nodejs_gapic_library(
  209. name = "regionlookup_nodejs_gapic",
  210. package_name = "@google-cloud/regionlookup",
  211. src = ":regionlookup_proto_with_info",
  212. extra_protoc_parameters = ["metadata"],
  213. grpc_service_config = "regionlookup_grpc_service_config.json",
  214. package = "google.maps.regionlookup.v1alpha",
  215. rest_numeric_enums = False,
  216. service_yaml = "regionlookup_v1alpha.yaml",
  217. transport = "grpc+rest",
  218. deps = [],
  219. )
  220. nodejs_gapic_assembly_pkg(
  221. name = "maps-regionlookup-v1alpha-nodejs",
  222. deps = [
  223. ":regionlookup_nodejs_gapic",
  224. ":regionlookup_proto",
  225. ],
  226. )
  227. ruby_proto_library(
  228. name = "regionlookup_ruby_proto",
  229. deps = [":regionlookup_proto"],
  230. )
  231. ruby_grpc_library(
  232. name = "regionlookup_ruby_grpc",
  233. srcs = [":regionlookup_proto"],
  234. deps = [":regionlookup_ruby_proto"],
  235. )
  236. ruby_cloud_gapic_library(
  237. name = "regionlookup_ruby_gapic",
  238. srcs = [":regionlookup_proto_with_info"],
  239. extra_protoc_parameters = [
  240. "ruby-cloud-gem-name=google-cloud-maps-regionlookup-v1alpha",
  241. ],
  242. grpc_service_config = "regionlookup_grpc_service_config.json",
  243. rest_numeric_enums = False,
  244. deps = [
  245. ":regionlookup_ruby_grpc",
  246. ":regionlookup_ruby_proto",
  247. ],
  248. )
  249. # Open Source Packages
  250. ruby_gapic_assembly_pkg(
  251. name = "google-cloud-maps-regionlookup-v1alpha-ruby",
  252. deps = [
  253. ":regionlookup_ruby_gapic",
  254. ":regionlookup_ruby_grpc",
  255. ":regionlookup_ruby_proto",
  256. ],
  257. )
  258. csharp_proto_library(
  259. name = "regionlookup_csharp_proto",
  260. deps = [":regionlookup_proto"],
  261. )
  262. csharp_grpc_library(
  263. name = "regionlookup_csharp_grpc",
  264. srcs = [":regionlookup_proto"],
  265. deps = [":regionlookup_csharp_proto"],
  266. )
  267. csharp_gapic_library(
  268. name = "regionlookup_csharp_gapic",
  269. srcs = [":regionlookup_proto_with_info"],
  270. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  271. grpc_service_config = "regionlookup_grpc_service_config.json",
  272. rest_numeric_enums = False,
  273. service_yaml = "regionlookup_v1alpha.yaml",
  274. deps = [
  275. ":regionlookup_csharp_grpc",
  276. ":regionlookup_csharp_proto",
  277. ],
  278. )
  279. # Open Source Packages
  280. csharp_gapic_assembly_pkg(
  281. name = "google-cloud-maps-regionlookup-v1alpha-csharp",
  282. deps = [
  283. ":regionlookup_csharp_gapic",
  284. ":regionlookup_csharp_grpc",
  285. ":regionlookup_csharp_proto",
  286. ],
  287. )
  288. cc_proto_library(
  289. name = "regionlookup_cc_proto",
  290. deps = [":regionlookup_proto"],
  291. )
  292. cc_grpc_library(
  293. name = "regionlookup_cc_grpc",
  294. srcs = [":regionlookup_proto"],
  295. grpc_only = True,
  296. deps = [":regionlookup_cc_proto"],
  297. )