BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  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 = "datapolicies_proto",
  19. srcs = [
  20. "datapolicy.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. "//google/iam/v1:iam_policy_proto",
  28. "//google/iam/v1:policy_proto",
  29. "@com_google_protobuf//:empty_proto",
  30. "@com_google_protobuf//:field_mask_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "datapolicies_proto_with_info",
  35. deps = [
  36. ":datapolicies_proto",
  37. "//google/cloud:common_resources_proto",
  38. ],
  39. )
  40. ##############################################################################
  41. # Java
  42. ##############################################################################
  43. load(
  44. "@com_google_googleapis_imports//:imports.bzl",
  45. "java_gapic_assembly_gradle_pkg",
  46. "java_gapic_library",
  47. "java_gapic_test",
  48. "java_grpc_library",
  49. "java_proto_library",
  50. )
  51. java_proto_library(
  52. name = "datapolicies_java_proto",
  53. deps = [":datapolicies_proto"],
  54. )
  55. java_grpc_library(
  56. name = "datapolicies_java_grpc",
  57. srcs = [":datapolicies_proto"],
  58. deps = [":datapolicies_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "datapolicies_java_gapic",
  62. srcs = [":datapolicies_proto_with_info"],
  63. gapic_yaml = None,
  64. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  65. rest_numeric_enums = False,
  66. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  67. test_deps = [
  68. ":datapolicies_java_grpc",
  69. "//google/iam/v1:iam_java_grpc",
  70. ],
  71. transport = "grpc+rest",
  72. deps = [
  73. ":datapolicies_java_proto",
  74. "//google/api:api_java_proto",
  75. "//google/iam/v1:iam_java_proto",
  76. ],
  77. )
  78. java_gapic_test(
  79. name = "datapolicies_java_gapic_test_suite",
  80. test_classes = [
  81. "com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClientHttpJsonTest",
  82. "com.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClientTest",
  83. ],
  84. runtime_deps = [":datapolicies_java_gapic_test"],
  85. )
  86. # Open Source Packages
  87. java_gapic_assembly_gradle_pkg(
  88. name = "google-cloud-bigquery-datapolicies-v1beta1-java",
  89. include_samples = True,
  90. transport = "grpc+rest",
  91. deps = [
  92. ":datapolicies_java_gapic",
  93. ":datapolicies_java_grpc",
  94. ":datapolicies_java_proto",
  95. ":datapolicies_proto",
  96. ],
  97. )
  98. ##############################################################################
  99. # Go
  100. ##############################################################################
  101. load(
  102. "@com_google_googleapis_imports//:imports.bzl",
  103. "go_gapic_assembly_pkg",
  104. "go_gapic_library",
  105. "go_proto_library",
  106. "go_test",
  107. )
  108. go_proto_library(
  109. name = "datapolicies_go_proto",
  110. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  111. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/datapolicies/v1beta1",
  112. protos = [":datapolicies_proto"],
  113. deps = [
  114. "//google/api:annotations_go_proto",
  115. "//google/iam/v1:iam_go_proto",
  116. ],
  117. )
  118. go_gapic_library(
  119. name = "datapolicies_go_gapic",
  120. srcs = [":datapolicies_proto_with_info"],
  121. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  122. importpath = "cloud.google.com/go/bigquery/datapolicies/apiv1beta1;datapolicies",
  123. metadata = True,
  124. rest_numeric_enums = False,
  125. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  126. transport = "grpc+rest",
  127. deps = [
  128. ":datapolicies_go_proto",
  129. "//google/iam/v1:iam_go_proto",
  130. ],
  131. )
  132. go_test(
  133. name = "datapolicies_go_gapic_test",
  134. srcs = [":datapolicies_go_gapic_srcjar_test"],
  135. embed = [":datapolicies_go_gapic"],
  136. importpath = "cloud.google.com/go/bigquery/datapolicies/apiv1beta1",
  137. )
  138. # Open Source Packages
  139. go_gapic_assembly_pkg(
  140. name = "gapi-cloud-bigquery-datapolicies-v1beta1-go",
  141. deps = [
  142. ":datapolicies_go_gapic",
  143. ":datapolicies_go_gapic_srcjar-metadata.srcjar",
  144. ":datapolicies_go_gapic_srcjar-test.srcjar",
  145. ":datapolicies_go_proto",
  146. ],
  147. )
  148. ##############################################################################
  149. # Python
  150. ##############################################################################
  151. load(
  152. "@com_google_googleapis_imports//:imports.bzl",
  153. "py_gapic_assembly_pkg",
  154. "py_gapic_library",
  155. "py_test",
  156. )
  157. py_gapic_library(
  158. name = "datapolicies_py_gapic",
  159. srcs = [":datapolicies_proto"],
  160. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  161. rest_numeric_enums = False,
  162. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  163. transport = "grpc",
  164. deps = [
  165. "//google/iam/v1:iam_policy_py_proto",
  166. ],
  167. )
  168. py_test(
  169. name = "datapolicies_py_gapic_test",
  170. srcs = [
  171. "datapolicies_py_gapic_pytest.py",
  172. "datapolicies_py_gapic_test.py",
  173. ],
  174. legacy_create_init = False,
  175. deps = [":datapolicies_py_gapic"],
  176. )
  177. # Open Source Packages
  178. py_gapic_assembly_pkg(
  179. name = "bigquery-datapolicies-v1beta1-py",
  180. deps = [
  181. ":datapolicies_py_gapic",
  182. ],
  183. )
  184. ##############################################################################
  185. # PHP
  186. ##############################################################################
  187. load(
  188. "@com_google_googleapis_imports//:imports.bzl",
  189. "php_gapic_assembly_pkg",
  190. "php_gapic_library",
  191. "php_grpc_library",
  192. "php_proto_library",
  193. )
  194. php_proto_library(
  195. name = "datapolicies_php_proto",
  196. deps = [":datapolicies_proto"],
  197. )
  198. php_grpc_library(
  199. name = "datapolicies_php_grpc",
  200. srcs = [":datapolicies_proto"],
  201. deps = [":datapolicies_php_proto"],
  202. )
  203. php_gapic_library(
  204. name = "datapolicies_php_gapic",
  205. srcs = [":datapolicies_proto_with_info"],
  206. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  207. rest_numeric_enums = False,
  208. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  209. transport = "grpc+rest",
  210. deps = [
  211. ":datapolicies_php_grpc",
  212. ":datapolicies_php_proto",
  213. ],
  214. )
  215. # Open Source Packages
  216. php_gapic_assembly_pkg(
  217. name = "google-cloud-bigquery-datapolicies-v1beta1-php",
  218. deps = [
  219. ":datapolicies_php_gapic",
  220. ":datapolicies_php_grpc",
  221. ":datapolicies_php_proto",
  222. ],
  223. )
  224. ##############################################################################
  225. # Node.js
  226. ##############################################################################
  227. load(
  228. "@com_google_googleapis_imports//:imports.bzl",
  229. "nodejs_gapic_assembly_pkg",
  230. "nodejs_gapic_library",
  231. )
  232. nodejs_gapic_library(
  233. name = "datapolicies_nodejs_gapic",
  234. package_name = "@google-cloud/bigquery-datapolicies",
  235. src = ":datapolicies_proto_with_info",
  236. extra_protoc_parameters = ["metadata"],
  237. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  238. package = "google.cloud.bigquery.datapolicies.v1beta1",
  239. rest_numeric_enums = False,
  240. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  241. transport = "grpc+rest",
  242. deps = [],
  243. )
  244. nodejs_gapic_assembly_pkg(
  245. name = "bigquery-datapolicies-v1beta1-nodejs",
  246. deps = [
  247. ":datapolicies_nodejs_gapic",
  248. ":datapolicies_proto",
  249. ],
  250. )
  251. ##############################################################################
  252. # Ruby
  253. ##############################################################################
  254. load(
  255. "@com_google_googleapis_imports//:imports.bzl",
  256. "ruby_cloud_gapic_library",
  257. "ruby_gapic_assembly_pkg",
  258. "ruby_grpc_library",
  259. "ruby_proto_library",
  260. )
  261. ruby_proto_library(
  262. name = "datapolicies_ruby_proto",
  263. deps = [":datapolicies_proto"],
  264. )
  265. ruby_grpc_library(
  266. name = "datapolicies_ruby_grpc",
  267. srcs = [":datapolicies_proto"],
  268. deps = [":datapolicies_ruby_proto"],
  269. )
  270. ruby_cloud_gapic_library(
  271. name = "datapolicies_ruby_gapic",
  272. srcs = [":datapolicies_proto_with_info"],
  273. extra_protoc_parameters = [
  274. "ruby-cloud-api-id=bigquerydatapolicy.googleapis.com",
  275. "ruby-cloud-api-shortname=bigquerydatapolicy",
  276. "ruby-cloud-gem-name=google-cloud-bigquery-data_policies-v1beta1",
  277. "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs",
  278. ],
  279. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  280. rest_numeric_enums = False,
  281. ruby_cloud_description = "The Data Policy Service provides APIs for managing the BigQuery label-policy bindings.",
  282. ruby_cloud_title = "BigQuery Data Policy Service V1beta1",
  283. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  284. deps = [
  285. ":datapolicies_ruby_grpc",
  286. ":datapolicies_ruby_proto",
  287. ],
  288. )
  289. # Open Source Packages
  290. ruby_gapic_assembly_pkg(
  291. name = "google-cloud-bigquery-datapolicies-v1beta1-ruby",
  292. deps = [
  293. ":datapolicies_ruby_gapic",
  294. ":datapolicies_ruby_grpc",
  295. ":datapolicies_ruby_proto",
  296. ],
  297. )
  298. ##############################################################################
  299. # C#
  300. ##############################################################################
  301. load(
  302. "@com_google_googleapis_imports//:imports.bzl",
  303. "csharp_gapic_assembly_pkg",
  304. "csharp_gapic_library",
  305. "csharp_grpc_library",
  306. "csharp_proto_library",
  307. )
  308. csharp_proto_library(
  309. name = "datapolicies_csharp_proto",
  310. deps = [":datapolicies_proto"],
  311. )
  312. csharp_grpc_library(
  313. name = "datapolicies_csharp_grpc",
  314. srcs = [":datapolicies_proto"],
  315. deps = [":datapolicies_csharp_proto"],
  316. )
  317. csharp_gapic_library(
  318. name = "datapolicies_csharp_gapic",
  319. srcs = [":datapolicies_proto_with_info"],
  320. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  321. grpc_service_config = "datapolicies_v1beta1_grpc_service_config.json",
  322. rest_numeric_enums = False,
  323. service_yaml = "bigquerydatapolicy_v1beta1.yaml",
  324. deps = [
  325. ":datapolicies_csharp_grpc",
  326. ":datapolicies_csharp_proto",
  327. ],
  328. )
  329. # Open Source Packages
  330. csharp_gapic_assembly_pkg(
  331. name = "google-cloud-bigquery-datapolicies-v1beta1-csharp",
  332. deps = [
  333. ":datapolicies_csharp_gapic",
  334. ":datapolicies_csharp_grpc",
  335. ":datapolicies_csharp_proto",
  336. ],
  337. )
  338. ##############################################################################
  339. # C++
  340. ##############################################################################
  341. load(
  342. "@com_google_googleapis_imports//:imports.bzl",
  343. "cc_grpc_library",
  344. "cc_proto_library",
  345. )
  346. cc_proto_library(
  347. name = "datapolicies_cc_proto",
  348. deps = [":datapolicies_proto"],
  349. )
  350. cc_grpc_library(
  351. name = "datapolicies_cc_grpc",
  352. srcs = [":datapolicies_proto"],
  353. grpc_only = True,
  354. deps = [":datapolicies_cc_proto"],
  355. )