BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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 = "documentai_proto",
  19. srcs = [
  20. "document.proto",
  21. "document_understanding.proto",
  22. "geometry.proto",
  23. ],
  24. deps = [
  25. "//google/api:annotations_proto",
  26. "//google/api:client_proto",
  27. "//google/api:field_behavior_proto",
  28. "//google/longrunning:operations_proto",
  29. "//google/rpc:status_proto",
  30. "//google/type:color_proto",
  31. "@com_google_protobuf//:timestamp_proto",
  32. ],
  33. )
  34. proto_library_with_info(
  35. name = "documentai_proto_with_info",
  36. deps = [
  37. ":documentai_proto",
  38. "//google/cloud:common_resources_proto",
  39. ],
  40. )
  41. ##############################################################################
  42. # Java
  43. ##############################################################################
  44. load(
  45. "@com_google_googleapis_imports//:imports.bzl",
  46. "java_gapic_assembly_gradle_pkg",
  47. "java_gapic_library",
  48. "java_gapic_test",
  49. "java_grpc_library",
  50. "java_proto_library",
  51. )
  52. java_proto_library(
  53. name = "documentai_java_proto",
  54. deps = [":documentai_proto"],
  55. )
  56. java_grpc_library(
  57. name = "documentai_java_grpc",
  58. srcs = [":documentai_proto"],
  59. deps = [":documentai_java_proto"],
  60. )
  61. java_gapic_library(
  62. name = "documentai_java_gapic",
  63. srcs = [":documentai_proto_with_info"],
  64. grpc_service_config = "documentai_grpc_service_config.json",
  65. rest_numeric_enums = False,
  66. test_deps = [
  67. ":documentai_java_grpc",
  68. ],
  69. transport = "grpc",
  70. deps = [
  71. ":documentai_java_proto",
  72. ],
  73. )
  74. java_gapic_test(
  75. name = "documentai_java_gapic_test_suite",
  76. test_classes = [
  77. "com.google.cloud.documentai.v1beta1.DocumentUnderstandingServiceClientTest",
  78. ],
  79. runtime_deps = [":documentai_java_gapic_test"],
  80. )
  81. # Open Source Packages
  82. java_gapic_assembly_gradle_pkg(
  83. name = "google-cloud-documentai-v1beta1-java",
  84. include_samples = True,
  85. transport = "grpc",
  86. deps = [
  87. ":documentai_java_gapic",
  88. ":documentai_java_grpc",
  89. ":documentai_java_proto",
  90. ":documentai_proto",
  91. ],
  92. )
  93. ##############################################################################
  94. # Go
  95. ##############################################################################
  96. load(
  97. "@com_google_googleapis_imports//:imports.bzl",
  98. "go_gapic_assembly_pkg",
  99. "go_gapic_library",
  100. "go_proto_library",
  101. "go_test",
  102. )
  103. go_proto_library(
  104. name = "documentai_go_proto",
  105. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  106. importpath = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1",
  107. protos = [":documentai_proto"],
  108. deps = [
  109. "//google/api:annotations_go_proto",
  110. "//google/longrunning:longrunning_go_proto",
  111. "//google/rpc:status_go_proto",
  112. "//google/type:color_go_proto",
  113. ],
  114. )
  115. go_gapic_library(
  116. name = "documentai_go_gapic",
  117. srcs = [":documentai_proto_with_info"],
  118. grpc_service_config = "documentai_grpc_service_config.json",
  119. importpath = "cloud.google.com/go/documentai/apiv1beta1;documentai",
  120. rest_numeric_enums = False,
  121. service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml",
  122. deps = [
  123. ":documentai_go_proto",
  124. "//google/longrunning:longrunning_go_proto",
  125. "@com_google_cloud_go//longrunning:go_default_library",
  126. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  127. ],
  128. )
  129. go_test(
  130. name = "documentai_go_gapic_test",
  131. srcs = [":documentai_go_gapic_srcjar_test"],
  132. embed = [":documentai_go_gapic"],
  133. importpath = "cloud.google.com/go/documentai/apiv1beta1",
  134. )
  135. # Open Source Packages
  136. go_gapic_assembly_pkg(
  137. name = "gapi-cloud-documentai-v1beta1-go",
  138. deps = [
  139. ":documentai_go_gapic",
  140. ":documentai_go_gapic_srcjar-test.srcjar",
  141. ":documentai_go_proto",
  142. ],
  143. )
  144. ##############################################################################
  145. # Python
  146. ##############################################################################
  147. load(
  148. "@com_google_googleapis_imports//:imports.bzl",
  149. "py_gapic_assembly_pkg",
  150. "py_gapic_library",
  151. "py_test",
  152. )
  153. py_gapic_library(
  154. name = "documentai_py_gapic",
  155. srcs = [":documentai_proto"],
  156. grpc_service_config = "documentai_grpc_service_config.json",
  157. rest_numeric_enums = False,
  158. transport = "grpc",
  159. )
  160. py_test(
  161. name = "documentai_py_gapic_test",
  162. srcs = [
  163. "documentai_py_gapic_pytest.py",
  164. "documentai_py_gapic_test.py",
  165. ],
  166. legacy_create_init = False,
  167. deps = [":documentai_py_gapic"],
  168. )
  169. # Open Source Packages
  170. py_gapic_assembly_pkg(
  171. name = "documentai-v1beta1-py",
  172. deps = [
  173. ":documentai_py_gapic",
  174. ],
  175. )
  176. ##############################################################################
  177. # PHP
  178. ##############################################################################
  179. load(
  180. "@com_google_googleapis_imports//:imports.bzl",
  181. "php_gapic_assembly_pkg",
  182. "php_gapic_library",
  183. "php_grpc_library",
  184. "php_proto_library",
  185. )
  186. php_proto_library(
  187. name = "documentai_php_proto",
  188. deps = [":documentai_proto"],
  189. )
  190. php_grpc_library(
  191. name = "documentai_php_grpc",
  192. srcs = [":documentai_proto"],
  193. deps = [":documentai_php_proto"],
  194. )
  195. php_gapic_library(
  196. name = "documentai_php_gapic",
  197. srcs = [":documentai_proto_with_info"],
  198. grpc_service_config = "documentai_grpc_service_config.json",
  199. rest_numeric_enums = False,
  200. service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml",
  201. transport = "grpc+rest",
  202. deps = [
  203. ":documentai_php_grpc",
  204. ":documentai_php_proto",
  205. ],
  206. )
  207. # Open Source Packages
  208. php_gapic_assembly_pkg(
  209. name = "google-cloud-documentai-v1beta1-php",
  210. deps = [
  211. ":documentai_php_gapic",
  212. ":documentai_php_grpc",
  213. ":documentai_php_proto",
  214. ],
  215. )
  216. ##############################################################################
  217. # Node.js
  218. ##############################################################################
  219. load(
  220. "@com_google_googleapis_imports//:imports.bzl",
  221. "nodejs_gapic_assembly_pkg",
  222. "nodejs_gapic_library",
  223. )
  224. nodejs_gapic_library(
  225. name = "documentai_nodejs_gapic",
  226. package_name = "@google-cloud/documentai",
  227. src = ":documentai_proto_with_info",
  228. extra_protoc_parameters = ["metadata"],
  229. grpc_service_config = "documentai_grpc_service_config.json",
  230. package = "google.cloud.documentai.v1beta1",
  231. rest_numeric_enums = False,
  232. service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml",
  233. transport = "grpc+rest",
  234. deps = [],
  235. )
  236. nodejs_gapic_assembly_pkg(
  237. name = "documentai-v1beta1-nodejs",
  238. deps = [
  239. ":documentai_nodejs_gapic",
  240. ":documentai_proto",
  241. ],
  242. )
  243. ##############################################################################
  244. # Ruby
  245. ##############################################################################
  246. load(
  247. "@com_google_googleapis_imports//:imports.bzl",
  248. "ruby_cloud_gapic_library",
  249. "ruby_gapic_assembly_pkg",
  250. "ruby_grpc_library",
  251. "ruby_proto_library",
  252. )
  253. ruby_proto_library(
  254. name = "documentai_ruby_proto",
  255. deps = [":documentai_proto"],
  256. )
  257. ruby_grpc_library(
  258. name = "documentai_ruby_grpc",
  259. srcs = [":documentai_proto"],
  260. deps = [":documentai_ruby_proto"],
  261. )
  262. ruby_cloud_gapic_library(
  263. name = "documentai_ruby_gapic",
  264. srcs = [":documentai_proto_with_info"],
  265. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-documentai-v1beta1"],
  266. rest_numeric_enums = False,
  267. deps = [
  268. ":documentai_ruby_grpc",
  269. ":documentai_ruby_proto",
  270. ],
  271. )
  272. # Open Source Packages
  273. ruby_gapic_assembly_pkg(
  274. name = "google-cloud-documentai-v1beta1-ruby",
  275. deps = [
  276. ":documentai_ruby_gapic",
  277. ":documentai_ruby_grpc",
  278. ":documentai_ruby_proto",
  279. ],
  280. )
  281. ##############################################################################
  282. # C#
  283. ##############################################################################
  284. load(
  285. "@com_google_googleapis_imports//:imports.bzl",
  286. "csharp_gapic_assembly_pkg",
  287. "csharp_gapic_library",
  288. "csharp_grpc_library",
  289. "csharp_proto_library",
  290. )
  291. csharp_proto_library(
  292. name = "documentai_csharp_proto",
  293. deps = [":documentai_proto"],
  294. )
  295. csharp_grpc_library(
  296. name = "documentai_csharp_grpc",
  297. srcs = [":documentai_proto"],
  298. deps = [":documentai_csharp_proto"],
  299. )
  300. csharp_gapic_library(
  301. name = "documentai_csharp_gapic",
  302. srcs = [":documentai_proto_with_info"],
  303. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  304. grpc_service_config = "documentai_grpc_service_config.json",
  305. rest_numeric_enums = False,
  306. service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml",
  307. deps = [
  308. ":documentai_csharp_grpc",
  309. ":documentai_csharp_proto",
  310. ],
  311. )
  312. # Open Source Packages
  313. csharp_gapic_assembly_pkg(
  314. name = "google-cloud-documentai-v1beta1-csharp",
  315. deps = [
  316. ":documentai_csharp_gapic",
  317. ":documentai_csharp_grpc",
  318. ":documentai_csharp_proto",
  319. ],
  320. )
  321. ##############################################################################
  322. # C++
  323. ##############################################################################
  324. # Put your C++ rules here