BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  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 = "reservation_proto",
  19. srcs = [
  20. "reservation.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/rpc:status_proto",
  28. "@com_google_protobuf//:empty_proto",
  29. "@com_google_protobuf//:field_mask_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "reservation_proto_with_info",
  35. deps = [
  36. ":reservation_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 = "reservation_java_proto",
  53. deps = [":reservation_proto"],
  54. )
  55. java_grpc_library(
  56. name = "reservation_java_grpc",
  57. srcs = [":reservation_proto"],
  58. deps = [":reservation_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "reservation_java_gapic",
  62. srcs = [":reservation_proto_with_info"],
  63. gapic_yaml = None,
  64. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  65. rest_numeric_enums = False,
  66. service_yaml = "bigqueryreservation_v1.yaml",
  67. test_deps = [
  68. ":reservation_java_grpc",
  69. ],
  70. transport = "grpc+rest",
  71. deps = [
  72. ":reservation_java_proto",
  73. "//google/api:api_java_proto",
  74. ],
  75. )
  76. java_gapic_test(
  77. name = "reservation_java_gapic_test_suite",
  78. test_classes = [
  79. "com.google.cloud.bigquery.reservation.v1.ReservationServiceClientHttpJsonTest",
  80. "com.google.cloud.bigquery.reservation.v1.ReservationServiceClientTest",
  81. ],
  82. runtime_deps = [":reservation_java_gapic_test"],
  83. )
  84. # Open Source Packages
  85. java_gapic_assembly_gradle_pkg(
  86. name = "google-cloud-bigquery-reservation-v1-java",
  87. include_samples = True,
  88. transport = "grpc+rest",
  89. deps = [
  90. ":reservation_java_gapic",
  91. ":reservation_java_grpc",
  92. ":reservation_java_proto",
  93. ":reservation_proto",
  94. ],
  95. )
  96. ##############################################################################
  97. # Go
  98. ##############################################################################
  99. load(
  100. "@com_google_googleapis_imports//:imports.bzl",
  101. "go_gapic_assembly_pkg",
  102. "go_gapic_library",
  103. "go_proto_library",
  104. "go_test",
  105. )
  106. go_proto_library(
  107. name = "reservation_go_proto",
  108. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  109. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/reservation/v1",
  110. protos = [":reservation_proto"],
  111. deps = [
  112. "//google/api:annotations_go_proto",
  113. "//google/rpc:status_go_proto",
  114. ],
  115. )
  116. go_gapic_library(
  117. name = "reservation_go_gapic",
  118. srcs = [":reservation_proto_with_info"],
  119. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  120. importpath = "cloud.google.com/go/bigquery/reservation/apiv1;reservation",
  121. metadata = True,
  122. rest_numeric_enums = False,
  123. service_yaml = "bigqueryreservation_v1.yaml",
  124. transport = "grpc+rest",
  125. deps = [
  126. ":reservation_go_proto",
  127. ],
  128. )
  129. go_test(
  130. name = "reservation_go_gapic_test",
  131. srcs = [":reservation_go_gapic_srcjar_test"],
  132. embed = [":reservation_go_gapic"],
  133. importpath = "cloud.google.com/go/bigquery/reservation/apiv1",
  134. )
  135. # Open Source Packages
  136. go_gapic_assembly_pkg(
  137. name = "gapi-cloud-bigquery-reservation-v1-go",
  138. deps = [
  139. ":reservation_go_gapic",
  140. ":reservation_go_gapic_srcjar-metadata.srcjar",
  141. ":reservation_go_gapic_srcjar-test.srcjar",
  142. ":reservation_go_proto",
  143. ],
  144. )
  145. ##############################################################################
  146. # Python
  147. ##############################################################################
  148. load(
  149. "@com_google_googleapis_imports//:imports.bzl",
  150. "py_gapic_assembly_pkg",
  151. "py_gapic_library",
  152. "py_test",
  153. )
  154. py_gapic_library(
  155. name = "reservation_py_gapic",
  156. srcs = [":reservation_proto"],
  157. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  158. opt_args = [
  159. "python-gapic-name=bigquery_reservation",
  160. "python-gapic-namespace=google.cloud",
  161. ],
  162. rest_numeric_enums = False,
  163. transport = "grpc",
  164. )
  165. py_test(
  166. name = "reservation_py_gapic_test",
  167. srcs = [
  168. "reservation_py_gapic_pytest.py",
  169. "reservation_py_gapic_test.py",
  170. ],
  171. legacy_create_init = False,
  172. deps = [":reservation_py_gapic"],
  173. )
  174. # Open Source Packages
  175. py_gapic_assembly_pkg(
  176. name = "bigquery-reservation-v1-py",
  177. deps = [
  178. ":reservation_py_gapic",
  179. ],
  180. )
  181. ##############################################################################
  182. # PHP
  183. ##############################################################################
  184. load(
  185. "@com_google_googleapis_imports//:imports.bzl",
  186. "php_gapic_assembly_pkg",
  187. "php_gapic_library",
  188. "php_grpc_library",
  189. "php_proto_library",
  190. )
  191. php_proto_library(
  192. name = "reservation_php_proto",
  193. deps = [":reservation_proto"],
  194. )
  195. php_grpc_library(
  196. name = "reservation_php_grpc",
  197. srcs = [":reservation_proto"],
  198. deps = [":reservation_php_proto"],
  199. )
  200. php_gapic_library(
  201. name = "reservation_php_gapic",
  202. srcs = [":reservation_proto_with_info"],
  203. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  204. rest_numeric_enums = False,
  205. service_yaml = "bigqueryreservation_v1.yaml",
  206. transport = "grpc+rest",
  207. deps = [
  208. ":reservation_php_grpc",
  209. ":reservation_php_proto",
  210. ],
  211. )
  212. # Open Source Packages
  213. php_gapic_assembly_pkg(
  214. name = "google-cloud-bigquery-reservation-v1-php",
  215. deps = [
  216. ":reservation_php_gapic",
  217. ":reservation_php_grpc",
  218. ":reservation_php_proto",
  219. ],
  220. )
  221. ##############################################################################
  222. # Node.js
  223. ##############################################################################
  224. load(
  225. "@com_google_googleapis_imports//:imports.bzl",
  226. "nodejs_gapic_assembly_pkg",
  227. "nodejs_gapic_library",
  228. )
  229. nodejs_gapic_library(
  230. name = "reservation_nodejs_gapic",
  231. package_name = "@google-cloud/bigquery-reservation",
  232. src = ":reservation_proto_with_info",
  233. extra_protoc_parameters = ["metadata"],
  234. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  235. package = "google.cloud.bigquery.reservation.v1",
  236. rest_numeric_enums = False,
  237. service_yaml = "bigqueryreservation_v1.yaml",
  238. transport = "grpc+rest",
  239. deps = [],
  240. )
  241. nodejs_gapic_assembly_pkg(
  242. name = "bigquery-reservation-v1-nodejs",
  243. deps = [
  244. ":reservation_nodejs_gapic",
  245. ":reservation_proto",
  246. ],
  247. )
  248. ##############################################################################
  249. # Ruby
  250. ##############################################################################
  251. load(
  252. "@com_google_googleapis_imports//:imports.bzl",
  253. "ruby_cloud_gapic_library",
  254. "ruby_gapic_assembly_pkg",
  255. "ruby_grpc_library",
  256. "ruby_proto_library",
  257. )
  258. ruby_proto_library(
  259. name = "reservation_ruby_proto",
  260. deps = [":reservation_proto"],
  261. )
  262. ruby_grpc_library(
  263. name = "reservation_ruby_grpc",
  264. srcs = [":reservation_proto"],
  265. deps = [":reservation_ruby_proto"],
  266. )
  267. ruby_cloud_gapic_library(
  268. name = "reservation_ruby_gapic",
  269. srcs = [":reservation_proto_with_info"],
  270. extra_protoc_parameters = [
  271. "ruby-cloud-api-id=bigqueryreservation.googleapis.com",
  272. "ruby-cloud-api-shortname=bigqueryreservation",
  273. "ruby-cloud-env-prefix=BIGQUERY_RESERVATION",
  274. "ruby-cloud-gem-name=google-cloud-bigquery-reservation-v1",
  275. "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/reservations",
  276. ],
  277. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  278. rest_numeric_enums = False,
  279. ruby_cloud_description = "The BigQuery Reservation API provides the mechanisms by which enterprise users can provision and manage dedicated resources such as slots and BigQuery BI Engine memory allocations.",
  280. ruby_cloud_title = "BigQuery Reservation V1",
  281. deps = [
  282. ":reservation_ruby_grpc",
  283. ":reservation_ruby_proto",
  284. ],
  285. )
  286. # Open Source Packages
  287. ruby_gapic_assembly_pkg(
  288. name = "google-cloud-bigquery-reservation-v1-ruby",
  289. deps = [
  290. ":reservation_ruby_gapic",
  291. ":reservation_ruby_grpc",
  292. ":reservation_ruby_proto",
  293. ],
  294. )
  295. ##############################################################################
  296. # C#
  297. ##############################################################################
  298. load(
  299. "@com_google_googleapis_imports//:imports.bzl",
  300. "csharp_gapic_assembly_pkg",
  301. "csharp_gapic_library",
  302. "csharp_grpc_library",
  303. "csharp_proto_library",
  304. )
  305. csharp_proto_library(
  306. name = "reservation_csharp_proto",
  307. deps = [":reservation_proto"],
  308. )
  309. csharp_grpc_library(
  310. name = "reservation_csharp_grpc",
  311. srcs = [":reservation_proto"],
  312. deps = [":reservation_csharp_proto"],
  313. )
  314. csharp_gapic_library(
  315. name = "reservation_csharp_gapic",
  316. srcs = [":reservation_proto_with_info"],
  317. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  318. grpc_service_config = "bigqueryreservation_grpc_service_config.json",
  319. rest_numeric_enums = False,
  320. service_yaml = "bigqueryreservation_v1.yaml",
  321. deps = [
  322. ":reservation_csharp_grpc",
  323. ":reservation_csharp_proto",
  324. ],
  325. )
  326. # Open Source Packages
  327. csharp_gapic_assembly_pkg(
  328. name = "google-cloud-bigquery-reservation-v1-csharp",
  329. deps = [
  330. ":reservation_csharp_gapic",
  331. ":reservation_csharp_grpc",
  332. ":reservation_csharp_proto",
  333. ],
  334. )
  335. ##############################################################################
  336. # C++
  337. ##############################################################################
  338. load(
  339. "@com_google_googleapis_imports//:imports.bzl",
  340. "cc_grpc_library",
  341. "cc_proto_library",
  342. )
  343. cc_proto_library(
  344. name = "reservation_cc_proto",
  345. deps = [":reservation_proto"],
  346. )
  347. cc_grpc_library(
  348. name = "reservation_cc_grpc",
  349. srcs = [":reservation_proto"],
  350. grpc_only = True,
  351. deps = [":reservation_cc_proto"],
  352. )