BUILD.bazel 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  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 = "contentwarehouse_proto",
  19. srcs = [
  20. "async_document_service_request.proto",
  21. "common.proto",
  22. "document.proto",
  23. "document_link_service.proto",
  24. "document_schema.proto",
  25. "document_schema_service.proto",
  26. "document_service.proto",
  27. "document_service_request.proto",
  28. "filters.proto",
  29. "histogram.proto",
  30. "rule_engine.proto",
  31. "ruleset_service.proto",
  32. "ruleset_service_request.proto",
  33. "synonymset.proto",
  34. "synonymset_service.proto",
  35. "synonymset_service_request.proto",
  36. ],
  37. deps = [
  38. "//google/api:annotations_proto",
  39. "//google/api:client_proto",
  40. "//google/api:field_behavior_proto",
  41. "//google/api:resource_proto",
  42. "//google/cloud/documentai/v1:documentai_proto",
  43. "//google/iam/v1:policy_proto",
  44. "//google/type:datetime_proto",
  45. "//google/type:interval_proto",
  46. "@com_google_protobuf//:duration_proto",
  47. "@com_google_protobuf//:empty_proto",
  48. "@com_google_protobuf//:field_mask_proto",
  49. "@com_google_protobuf//:timestamp_proto",
  50. ],
  51. )
  52. proto_library_with_info(
  53. name = "contentwarehouse_proto_with_info",
  54. deps = [
  55. ":contentwarehouse_proto",
  56. "//google/cloud:common_resources_proto",
  57. ],
  58. )
  59. ##############################################################################
  60. # Java
  61. ##############################################################################
  62. load(
  63. "@com_google_googleapis_imports//:imports.bzl",
  64. "java_gapic_assembly_gradle_pkg",
  65. "java_gapic_library",
  66. "java_gapic_test",
  67. "java_grpc_library",
  68. "java_proto_library",
  69. )
  70. java_proto_library(
  71. name = "contentwarehouse_java_proto",
  72. deps = [":contentwarehouse_proto"],
  73. )
  74. java_grpc_library(
  75. name = "contentwarehouse_java_grpc",
  76. srcs = [":contentwarehouse_proto"],
  77. deps = [":contentwarehouse_java_proto"],
  78. )
  79. java_gapic_library(
  80. name = "contentwarehouse_java_gapic",
  81. srcs = [":contentwarehouse_proto_with_info"],
  82. gapic_yaml = None,
  83. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  84. rest_numeric_enums = False,
  85. service_yaml = "contentwarehouse_v1.yaml",
  86. test_deps = [
  87. ":contentwarehouse_java_grpc",
  88. "//google/iam/v1:iam_java_grpc",
  89. ],
  90. transport = "grpc+rest",
  91. deps = [
  92. ":contentwarehouse_java_proto",
  93. "//google/api:api_java_proto",
  94. "//google/iam/v1:iam_java_proto",
  95. ],
  96. )
  97. # TODO(b/246642734): Re-enable the failed json tests
  98. java_gapic_test(
  99. name = "contentwarehouse_java_gapic_test_suite",
  100. test_classes = [
  101. "com.google.cloud.contentwarehouse.v1.DocumentLinkServiceClientHttpJsonTest",
  102. "com.google.cloud.contentwarehouse.v1.DocumentLinkServiceClientTest",
  103. # "com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceClientHttpJsonTest",
  104. "com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceClientTest",
  105. # "com.google.cloud.contentwarehouse.v1.DocumentServiceClientHttpJsonTest",
  106. "com.google.cloud.contentwarehouse.v1.DocumentServiceClientTest",
  107. # "com.google.cloud.contentwarehouse.v1.RuleSetServiceClientHttpJsonTest",
  108. "com.google.cloud.contentwarehouse.v1.RuleSetServiceClientTest",
  109. # "com.google.cloud.contentwarehouse.v1.SynonymSetServiceClientHttpJsonTest",
  110. "com.google.cloud.contentwarehouse.v1.SynonymSetServiceClientTest",
  111. ],
  112. runtime_deps = [":contentwarehouse_java_gapic_test"],
  113. )
  114. # Open Source Packages
  115. java_gapic_assembly_gradle_pkg(
  116. name = "google-cloud-contentwarehouse-v1-java",
  117. include_samples = True,
  118. transport = "grpc+rest",
  119. deps = [
  120. ":contentwarehouse_java_gapic",
  121. ":contentwarehouse_java_grpc",
  122. ":contentwarehouse_java_proto",
  123. ":contentwarehouse_proto",
  124. ],
  125. )
  126. ##############################################################################
  127. # Go
  128. ##############################################################################
  129. load(
  130. "@com_google_googleapis_imports//:imports.bzl",
  131. "go_gapic_assembly_pkg",
  132. "go_gapic_library",
  133. "go_proto_library",
  134. "go_test",
  135. )
  136. go_proto_library(
  137. name = "contentwarehouse_go_proto",
  138. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  139. importpath = "google.golang.org/genproto/googleapis/cloud/contentwarehouse/v1",
  140. protos = [":contentwarehouse_proto"],
  141. deps = [
  142. "//google/api:annotations_go_proto",
  143. "//google/cloud/documentai/v1:documentai_go_proto",
  144. "//google/iam/v1:iam_go_proto",
  145. "//google/type:datetime_go_proto",
  146. "//google/type:interval_go_proto",
  147. ],
  148. )
  149. go_gapic_library(
  150. name = "contentwarehouse_go_gapic",
  151. srcs = [":contentwarehouse_proto_with_info"],
  152. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  153. importpath = "cloud.google.com/go/contentwarehouse/apiv1;contentwarehouse",
  154. metadata = True,
  155. rest_numeric_enums = False,
  156. service_yaml = "contentwarehouse_v1.yaml",
  157. transport = "grpc+rest",
  158. deps = [
  159. ":contentwarehouse_go_proto",
  160. "//google/iam/v1:iam_go_proto",
  161. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  162. ],
  163. )
  164. go_test(
  165. name = "contentwarehouse_go_gapic_test",
  166. srcs = [":contentwarehouse_go_gapic_srcjar_test"],
  167. embed = [":contentwarehouse_go_gapic"],
  168. importpath = "cloud.google.com/go/contentwarehouse/apiv1",
  169. )
  170. # Open Source Packages
  171. go_gapic_assembly_pkg(
  172. name = "gapi-cloud-contentwarehouse-v1-go",
  173. deps = [
  174. ":contentwarehouse_go_gapic",
  175. ":contentwarehouse_go_gapic_srcjar-metadata.srcjar",
  176. ":contentwarehouse_go_gapic_srcjar-test.srcjar",
  177. ":contentwarehouse_go_proto",
  178. ],
  179. )
  180. ##############################################################################
  181. # Python
  182. ##############################################################################
  183. load(
  184. "@com_google_googleapis_imports//:imports.bzl",
  185. "py_gapic_assembly_pkg",
  186. "py_gapic_library",
  187. "py_test",
  188. )
  189. py_gapic_library(
  190. name = "contentwarehouse_py_gapic",
  191. srcs = [":contentwarehouse_proto"],
  192. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  193. rest_numeric_enums = False,
  194. service_yaml = "contentwarehouse_v1.yaml",
  195. deps = [
  196. "//google/iam/v1:iam_policy_py_proto",
  197. "//google/cloud/documentai/v1:documentai_py_proto",
  198. ],
  199. )
  200. py_test(
  201. name = "contentwarehouse_py_gapic_test",
  202. srcs = [
  203. "contentwarehouse_py_gapic_pytest.py",
  204. "contentwarehouse_py_gapic_test.py",
  205. ],
  206. legacy_create_init = False,
  207. deps = [
  208. ":contentwarehouse_py_gapic",
  209. ],
  210. )
  211. # Open Source Packages
  212. py_gapic_assembly_pkg(
  213. name = "contentwarehouse-v1-py",
  214. deps = [
  215. ":contentwarehouse_py_gapic",
  216. ],
  217. )
  218. ##############################################################################
  219. # PHP
  220. ##############################################################################
  221. load(
  222. "@com_google_googleapis_imports//:imports.bzl",
  223. "php_gapic_assembly_pkg",
  224. "php_gapic_library",
  225. "php_grpc_library",
  226. "php_proto_library",
  227. )
  228. php_proto_library(
  229. name = "contentwarehouse_php_proto",
  230. deps = [":contentwarehouse_proto"],
  231. )
  232. php_grpc_library(
  233. name = "contentwarehouse_php_grpc",
  234. srcs = [":contentwarehouse_proto"],
  235. deps = [":contentwarehouse_php_proto"],
  236. )
  237. php_gapic_library(
  238. name = "contentwarehouse_php_gapic",
  239. srcs = [":contentwarehouse_proto_with_info"],
  240. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  241. rest_numeric_enums = False,
  242. service_yaml = "contentwarehouse_v1.yaml",
  243. transport = "grpc+rest",
  244. deps = [
  245. ":contentwarehouse_php_grpc",
  246. ":contentwarehouse_php_proto",
  247. ],
  248. )
  249. # Open Source Packages
  250. php_gapic_assembly_pkg(
  251. name = "google-cloud-contentwarehouse-v1-php",
  252. deps = [
  253. ":contentwarehouse_php_gapic",
  254. ":contentwarehouse_php_grpc",
  255. ":contentwarehouse_php_proto",
  256. ],
  257. )
  258. ##############################################################################
  259. # Node.js
  260. ##############################################################################
  261. load(
  262. "@com_google_googleapis_imports//:imports.bzl",
  263. "nodejs_gapic_assembly_pkg",
  264. "nodejs_gapic_library",
  265. )
  266. nodejs_gapic_library(
  267. name = "contentwarehouse_nodejs_gapic",
  268. package_name = "@google-cloud/contentwarehouse",
  269. src = ":contentwarehouse_proto_with_info",
  270. extra_protoc_parameters = ["metadata"],
  271. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  272. package = "google.cloud.contentwarehouse.v1",
  273. rest_numeric_enums = False,
  274. service_yaml = "contentwarehouse_v1.yaml",
  275. transport = "grpc+rest",
  276. deps = [],
  277. )
  278. nodejs_gapic_assembly_pkg(
  279. name = "contentwarehouse-v1-nodejs",
  280. deps = [
  281. ":contentwarehouse_nodejs_gapic",
  282. ":contentwarehouse_proto",
  283. # Cross-API dependency requires adding this explicitly to pack protos
  284. "//google/cloud/documentai/v1:documentai_proto",
  285. ],
  286. )
  287. ##############################################################################
  288. # Ruby
  289. ##############################################################################
  290. load(
  291. "@com_google_googleapis_imports//:imports.bzl",
  292. "ruby_cloud_gapic_library",
  293. "ruby_gapic_assembly_pkg",
  294. "ruby_grpc_library",
  295. "ruby_proto_library",
  296. )
  297. ruby_proto_library(
  298. name = "contentwarehouse_ruby_proto",
  299. deps = [":contentwarehouse_proto"],
  300. )
  301. ruby_grpc_library(
  302. name = "contentwarehouse_ruby_grpc",
  303. srcs = [":contentwarehouse_proto"],
  304. deps = [":contentwarehouse_ruby_proto"],
  305. )
  306. ruby_cloud_gapic_library(
  307. name = "contentwarehouse_ruby_gapic",
  308. srcs = [":contentwarehouse_proto_with_info"],
  309. extra_protoc_parameters = [
  310. "ruby-cloud-gem-name=google-cloud-contentwarehouse-v1",
  311. ],
  312. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  313. rest_numeric_enums = False,
  314. service_yaml = "contentwarehouse_v1.yaml",
  315. deps = [
  316. ":contentwarehouse_ruby_grpc",
  317. ":contentwarehouse_ruby_proto",
  318. ],
  319. )
  320. # Open Source Packages
  321. ruby_gapic_assembly_pkg(
  322. name = "google-cloud-contentwarehouse-v1-ruby",
  323. deps = [
  324. ":contentwarehouse_ruby_gapic",
  325. ":contentwarehouse_ruby_grpc",
  326. ":contentwarehouse_ruby_proto",
  327. ],
  328. )
  329. ##############################################################################
  330. # C#
  331. ##############################################################################
  332. load(
  333. "@com_google_googleapis_imports//:imports.bzl",
  334. "csharp_gapic_assembly_pkg",
  335. "csharp_gapic_library",
  336. "csharp_grpc_library",
  337. "csharp_proto_library",
  338. )
  339. csharp_proto_library(
  340. name = "contentwarehouse_csharp_proto",
  341. deps = [":contentwarehouse_proto"],
  342. )
  343. csharp_grpc_library(
  344. name = "contentwarehouse_csharp_grpc",
  345. srcs = [":contentwarehouse_proto"],
  346. deps = [":contentwarehouse_csharp_proto"],
  347. )
  348. csharp_gapic_library(
  349. name = "contentwarehouse_csharp_gapic",
  350. srcs = [":contentwarehouse_proto_with_info"],
  351. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  352. grpc_service_config = "contentwarehouse_grpc_service_config.json",
  353. rest_numeric_enums = False,
  354. service_yaml = "contentwarehouse_v1.yaml",
  355. deps = [
  356. ":contentwarehouse_csharp_grpc",
  357. ":contentwarehouse_csharp_proto",
  358. ],
  359. )
  360. # Open Source Packages
  361. csharp_gapic_assembly_pkg(
  362. name = "google-cloud-contentwarehouse-v1-csharp",
  363. deps = [
  364. ":contentwarehouse_csharp_gapic",
  365. ":contentwarehouse_csharp_grpc",
  366. ":contentwarehouse_csharp_proto",
  367. ],
  368. )
  369. ##############################################################################
  370. # C++
  371. ##############################################################################
  372. load(
  373. "@com_google_googleapis_imports//:imports.bzl",
  374. "cc_grpc_library",
  375. "cc_proto_library",
  376. )
  377. cc_proto_library(
  378. name = "contentwarehouse_cc_proto",
  379. deps = [":contentwarehouse_proto"],
  380. )
  381. cc_grpc_library(
  382. name = "contentwarehouse_cc_grpc",
  383. srcs = [":contentwarehouse_proto"],
  384. grpc_only = True,
  385. deps = [":contentwarehouse_cc_proto"],
  386. )