BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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 = "notebooks_proto",
  19. srcs = [
  20. "environment.proto",
  21. "instance.proto",
  22. "service.proto",
  23. ],
  24. deps = [
  25. "//google/api:annotations_proto",
  26. "//google/api:client_proto",
  27. "//google/api:field_behavior_proto",
  28. "//google/api:resource_proto",
  29. "//google/longrunning:operations_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "notebooks_proto_with_info",
  35. deps = [
  36. ":notebooks_proto",
  37. "//google/cloud:common_resources_proto",
  38. "//google/cloud/location:location_proto",
  39. "//google/iam/v1:iam_policy_proto",
  40. ],
  41. )
  42. ##############################################################################
  43. # Java
  44. ##############################################################################
  45. load(
  46. "@com_google_googleapis_imports//:imports.bzl",
  47. "java_gapic_assembly_gradle_pkg",
  48. "java_gapic_library",
  49. "java_gapic_test",
  50. "java_grpc_library",
  51. "java_proto_library",
  52. )
  53. java_proto_library(
  54. name = "notebooks_java_proto",
  55. deps = [":notebooks_proto"],
  56. )
  57. java_grpc_library(
  58. name = "notebooks_java_grpc",
  59. srcs = [":notebooks_proto"],
  60. deps = [":notebooks_java_proto"],
  61. )
  62. java_gapic_library(
  63. name = "notebooks_java_gapic",
  64. srcs = [":notebooks_proto_with_info"],
  65. gapic_yaml = None,
  66. grpc_service_config = "notebooks_grpc_service_config.json",
  67. rest_numeric_enums = False,
  68. service_yaml = "notebooks_v1beta1.yaml",
  69. test_deps = [
  70. ":notebooks_java_grpc",
  71. "//google/cloud/location:location_java_grpc",
  72. "//google/iam/v1:iam_java_grpc",
  73. ],
  74. transport = "grpc",
  75. deps = [
  76. ":notebooks_java_proto",
  77. "//google/api:api_java_proto",
  78. "//google/cloud/location:location_java_proto",
  79. "//google/iam/v1:iam_java_proto",
  80. ],
  81. )
  82. java_gapic_test(
  83. name = "notebooks_java_gapic_test_suite",
  84. test_classes = [
  85. "com.google.cloud.notebooks.v1beta1.NotebookServiceClientTest",
  86. ],
  87. runtime_deps = [":notebooks_java_gapic_test"],
  88. )
  89. # Open Source Packages
  90. java_gapic_assembly_gradle_pkg(
  91. name = "google-cloud-notebooks-v1beta1-java",
  92. include_samples = True,
  93. transport = "grpc+rest",
  94. deps = [
  95. ":notebooks_java_gapic",
  96. ":notebooks_java_grpc",
  97. ":notebooks_java_proto",
  98. ":notebooks_proto",
  99. ],
  100. )
  101. ##############################################################################
  102. # Go
  103. ##############################################################################
  104. load(
  105. "@com_google_googleapis_imports//:imports.bzl",
  106. "go_gapic_assembly_pkg",
  107. "go_gapic_library",
  108. "go_proto_library",
  109. "go_test",
  110. )
  111. go_proto_library(
  112. name = "notebooks_go_proto",
  113. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  114. importpath = "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1",
  115. protos = [":notebooks_proto"],
  116. deps = [
  117. "//google/api:annotations_go_proto",
  118. "//google/longrunning:longrunning_go_proto",
  119. ],
  120. )
  121. go_gapic_library(
  122. name = "notebooks_go_gapic",
  123. srcs = [":notebooks_proto_with_info"],
  124. grpc_service_config = "notebooks_grpc_service_config.json",
  125. importpath = "cloud.google.com/go/notebooks/apiv1beta1;notebooks",
  126. metadata = True,
  127. rest_numeric_enums = False,
  128. service_yaml = "notebooks_v1beta1.yaml",
  129. transport = "grpc+rest",
  130. deps = [
  131. ":notebooks_go_proto",
  132. "//google/cloud/location:location_go_proto",
  133. "//google/iam/v1:iam_go_proto",
  134. "//google/longrunning:longrunning_go_proto",
  135. "@com_google_cloud_go//longrunning:go_default_library",
  136. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  137. ],
  138. )
  139. go_test(
  140. name = "notebooks_go_gapic_test",
  141. srcs = [":notebooks_go_gapic_srcjar_test"],
  142. embed = [":notebooks_go_gapic"],
  143. importpath = "cloud.google.com/go/notebooks/apiv1beta1",
  144. )
  145. # Open Source Packages
  146. go_gapic_assembly_pkg(
  147. name = "gapi-cloud-notebooks-v1beta1-go",
  148. deps = [
  149. ":notebooks_go_gapic",
  150. ":notebooks_go_gapic_srcjar-metadata.srcjar",
  151. ":notebooks_go_gapic_srcjar-test.srcjar",
  152. ":notebooks_go_proto",
  153. ],
  154. )
  155. ##############################################################################
  156. # Python
  157. ##############################################################################
  158. load(
  159. "@com_google_googleapis_imports//:imports.bzl",
  160. "py_gapic_assembly_pkg",
  161. "py_gapic_library",
  162. "py_test",
  163. )
  164. py_gapic_library(
  165. name = "notebooks_py_gapic",
  166. srcs = [":notebooks_proto"],
  167. grpc_service_config = "notebooks_grpc_service_config.json",
  168. rest_numeric_enums = False,
  169. service_yaml = "notebooks_v1beta1.yaml",
  170. transport = "grpc",
  171. deps = [
  172. "//google/iam/v1:iam_policy_py_proto",
  173. ],
  174. )
  175. py_test(
  176. name = "notebooks_py_gapic_test",
  177. srcs = [
  178. "notebooks_py_gapic_pytest.py",
  179. "notebooks_py_gapic_test.py",
  180. ],
  181. legacy_create_init = False,
  182. deps = [":notebooks_py_gapic"],
  183. )
  184. # Open Source Packages
  185. py_gapic_assembly_pkg(
  186. name = "notebooks-v1beta1-py",
  187. deps = [
  188. ":notebooks_py_gapic",
  189. ],
  190. )
  191. ##############################################################################
  192. # PHP
  193. ##############################################################################
  194. load(
  195. "@com_google_googleapis_imports//:imports.bzl",
  196. "php_gapic_assembly_pkg",
  197. "php_gapic_library",
  198. "php_grpc_library",
  199. "php_proto_library",
  200. )
  201. php_proto_library(
  202. name = "notebooks_php_proto",
  203. deps = [":notebooks_proto"],
  204. )
  205. php_grpc_library(
  206. name = "notebooks_php_grpc",
  207. srcs = [":notebooks_proto"],
  208. deps = [":notebooks_php_proto"],
  209. )
  210. php_gapic_library(
  211. name = "notebooks_php_gapic",
  212. srcs = [":notebooks_proto_with_info"],
  213. grpc_service_config = "notebooks_grpc_service_config.json",
  214. rest_numeric_enums = False,
  215. service_yaml = "notebooks_v1beta1.yaml",
  216. transport = "grpc+rest",
  217. deps = [
  218. ":notebooks_php_grpc",
  219. ":notebooks_php_proto",
  220. ],
  221. )
  222. # Open Source Packages
  223. php_gapic_assembly_pkg(
  224. name = "google-cloud-notebooks-v1beta1-php",
  225. deps = [
  226. ":notebooks_php_gapic",
  227. ":notebooks_php_grpc",
  228. ":notebooks_php_proto",
  229. ],
  230. )
  231. ##############################################################################
  232. # Node.js
  233. ##############################################################################
  234. load(
  235. "@com_google_googleapis_imports//:imports.bzl",
  236. "nodejs_gapic_assembly_pkg",
  237. "nodejs_gapic_library",
  238. )
  239. nodejs_gapic_library(
  240. name = "notebooks_nodejs_gapic",
  241. package_name = "@google-cloud/notebooks",
  242. src = ":notebooks_proto_with_info",
  243. extra_protoc_parameters = ["metadata"],
  244. grpc_service_config = "notebooks_grpc_service_config.json",
  245. package = "google.cloud.notebooks.v1beta1",
  246. rest_numeric_enums = False,
  247. service_yaml = "notebooks_v1beta1.yaml",
  248. transport = "grpc+rest",
  249. deps = [],
  250. )
  251. nodejs_gapic_assembly_pkg(
  252. name = "notebooks-v1beta1-nodejs",
  253. deps = [
  254. ":notebooks_nodejs_gapic",
  255. ":notebooks_proto",
  256. ],
  257. )
  258. ##############################################################################
  259. # Ruby
  260. ##############################################################################
  261. load(
  262. "@com_google_googleapis_imports//:imports.bzl",
  263. "ruby_cloud_gapic_library",
  264. "ruby_gapic_assembly_pkg",
  265. "ruby_grpc_library",
  266. "ruby_proto_library",
  267. )
  268. ruby_proto_library(
  269. name = "notebooks_ruby_proto",
  270. deps = [":notebooks_proto"],
  271. )
  272. ruby_grpc_library(
  273. name = "notebooks_ruby_grpc",
  274. srcs = [":notebooks_proto"],
  275. deps = [":notebooks_ruby_proto"],
  276. )
  277. ruby_cloud_gapic_library(
  278. name = "notebooks_ruby_gapic",
  279. srcs = [":notebooks_proto_with_info"],
  280. extra_protoc_parameters = [
  281. "ruby-cloud-api-id=notebooks.googleapis.com",
  282. "ruby-cloud-api-shortname=notebooks",
  283. "ruby-cloud-env-prefix=NOTEBOOKS",
  284. "ruby-cloud-gem-name=google-cloud-notebooks-v1beta1",
  285. "ruby-cloud-product-url=https://cloud.google.com/ai-platform-notebooks",
  286. ],
  287. grpc_service_config = "notebooks_grpc_service_config.json",
  288. rest_numeric_enums = False,
  289. ruby_cloud_description = "AI Platform Notebooks makes it easy to manage JupyterLab instances through a protected, publicly available notebook instance URL. A JupyterLab instance is a Deep Learning virtual machine instance with the latest machine learning and data science libraries pre-installed.",
  290. ruby_cloud_title = "AI Platform Notebooks V1beta1",
  291. service_yaml = "notebooks_v1beta1.yaml",
  292. deps = [
  293. ":notebooks_ruby_grpc",
  294. ":notebooks_ruby_proto",
  295. ],
  296. )
  297. # Open Source Packages
  298. ruby_gapic_assembly_pkg(
  299. name = "google-cloud-notebooks-v1beta1-ruby",
  300. deps = [
  301. ":notebooks_ruby_gapic",
  302. ":notebooks_ruby_grpc",
  303. ":notebooks_ruby_proto",
  304. ],
  305. )
  306. ##############################################################################
  307. # C#
  308. ##############################################################################
  309. load(
  310. "@com_google_googleapis_imports//:imports.bzl",
  311. "csharp_gapic_assembly_pkg",
  312. "csharp_gapic_library",
  313. "csharp_grpc_library",
  314. "csharp_proto_library",
  315. )
  316. csharp_proto_library(
  317. name = "notebooks_csharp_proto",
  318. deps = [":notebooks_proto"],
  319. )
  320. csharp_grpc_library(
  321. name = "notebooks_csharp_grpc",
  322. srcs = [":notebooks_proto"],
  323. deps = [":notebooks_csharp_proto"],
  324. )
  325. csharp_gapic_library(
  326. name = "notebooks_csharp_gapic",
  327. srcs = [":notebooks_proto_with_info"],
  328. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  329. grpc_service_config = "notebooks_grpc_service_config.json",
  330. rest_numeric_enums = False,
  331. service_yaml = "notebooks_v1beta1.yaml",
  332. deps = [
  333. ":notebooks_csharp_grpc",
  334. ":notebooks_csharp_proto",
  335. ],
  336. )
  337. # Open Source Packages
  338. csharp_gapic_assembly_pkg(
  339. name = "google-cloud-notebooks-v1beta1-csharp",
  340. deps = [
  341. ":notebooks_csharp_gapic",
  342. ":notebooks_csharp_grpc",
  343. ":notebooks_csharp_proto",
  344. ],
  345. )
  346. ##############################################################################
  347. # C++
  348. ##############################################################################
  349. load(
  350. "@com_google_googleapis_imports//:imports.bzl",
  351. "cc_grpc_library",
  352. "cc_proto_library",
  353. )
  354. cc_proto_library(
  355. name = "notebooks_cc_proto",
  356. deps = [":notebooks_proto"],
  357. )
  358. cc_grpc_library(
  359. name = "notebooks_cc_grpc",
  360. srcs = [":notebooks_proto"],
  361. grpc_only = True,
  362. deps = [":notebooks_cc_proto"],
  363. )