BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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 = "contactcenterinsights_proto",
  19. srcs = [
  20. "contact_center_insights.proto",
  21. "resources.proto",
  22. ],
  23. deps = [
  24. "//google/api:annotations_proto",
  25. "//google/api:client_proto",
  26. "//google/api:field_behavior_proto",
  27. "//google/api:resource_proto",
  28. "//google/longrunning:operations_proto",
  29. "//google/rpc:status_proto",
  30. "@com_google_protobuf//:duration_proto",
  31. "@com_google_protobuf//:empty_proto",
  32. "@com_google_protobuf//:field_mask_proto",
  33. "@com_google_protobuf//:timestamp_proto",
  34. ],
  35. )
  36. proto_library_with_info(
  37. name = "contactcenterinsights_proto_with_info",
  38. deps = [
  39. ":contactcenterinsights_proto",
  40. "//google/cloud:common_resources_proto",
  41. ],
  42. )
  43. ##############################################################################
  44. # Java
  45. ##############################################################################
  46. load(
  47. "@com_google_googleapis_imports//:imports.bzl",
  48. "java_gapic_assembly_gradle_pkg",
  49. "java_gapic_library",
  50. "java_gapic_test",
  51. "java_grpc_library",
  52. "java_proto_library",
  53. )
  54. java_proto_library(
  55. name = "contactcenterinsights_java_proto",
  56. deps = [":contactcenterinsights_proto"],
  57. )
  58. java_grpc_library(
  59. name = "contactcenterinsights_java_grpc",
  60. srcs = [":contactcenterinsights_proto"],
  61. deps = [":contactcenterinsights_java_proto"],
  62. )
  63. java_gapic_library(
  64. name = "contactcenterinsights_java_gapic",
  65. srcs = [":contactcenterinsights_proto_with_info"],
  66. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  67. rest_numeric_enums = False,
  68. test_deps = [
  69. ":contactcenterinsights_java_grpc",
  70. ],
  71. transport = "grpc+rest",
  72. deps = [
  73. ":contactcenterinsights_java_proto",
  74. ],
  75. )
  76. java_gapic_test(
  77. name = "contactcenterinsights_java_gapic_test_suite",
  78. test_classes = [
  79. "com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClientHttpJsonTest",
  80. "com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClientTest",
  81. ],
  82. runtime_deps = [":contactcenterinsights_java_gapic_test"],
  83. )
  84. # Open Source Packages
  85. java_gapic_assembly_gradle_pkg(
  86. name = "google-cloud-contactcenterinsights-v1-java",
  87. include_samples = True,
  88. transport = "grpc+rest",
  89. deps = [
  90. ":contactcenterinsights_java_gapic",
  91. ":contactcenterinsights_java_grpc",
  92. ":contactcenterinsights_java_proto",
  93. ":contactcenterinsights_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 = "contactcenterinsights_go_proto",
  108. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  109. importpath = "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1",
  110. protos = [":contactcenterinsights_proto"],
  111. deps = [
  112. "//google/api:annotations_go_proto",
  113. "//google/longrunning:longrunning_go_proto",
  114. "//google/rpc:status_go_proto",
  115. ],
  116. )
  117. go_gapic_library(
  118. name = "contactcenterinsights_go_gapic",
  119. srcs = [":contactcenterinsights_proto_with_info"],
  120. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  121. importpath = "cloud.google.com/go/contactcenterinsights/apiv1;contactcenterinsights",
  122. metadata = True,
  123. rest_numeric_enums = False,
  124. service_yaml = "contactcenterinsights_v1.yaml",
  125. transport = "grpc+rest",
  126. deps = [
  127. ":contactcenterinsights_go_proto",
  128. "//google/longrunning:longrunning_go_proto",
  129. "@com_google_cloud_go//longrunning:go_default_library",
  130. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  131. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  132. ],
  133. )
  134. go_test(
  135. name = "contactcenterinsights_go_gapic_test",
  136. srcs = [":contactcenterinsights_go_gapic_srcjar_test"],
  137. embed = [":contactcenterinsights_go_gapic"],
  138. importpath = "cloud.google.com/go/contactcenterinsights/apiv1",
  139. )
  140. # Open Source Packages
  141. go_gapic_assembly_pkg(
  142. name = "gapi-cloud-contactcenterinsights-v1-go",
  143. deps = [
  144. ":contactcenterinsights_go_gapic",
  145. ":contactcenterinsights_go_gapic_srcjar-metadata.srcjar",
  146. ":contactcenterinsights_go_gapic_srcjar-test.srcjar",
  147. ":contactcenterinsights_go_proto",
  148. ],
  149. )
  150. ##############################################################################
  151. # Python
  152. ##############################################################################
  153. load(
  154. "@com_google_googleapis_imports//:imports.bzl",
  155. "py_gapic_assembly_pkg",
  156. "py_gapic_library",
  157. "py_test",
  158. )
  159. py_gapic_library(
  160. name = "contactcenterinsights_py_gapic",
  161. srcs = [":contactcenterinsights_proto"],
  162. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  163. opt_args = [
  164. "warehouse-package-name=google-cloud-contact-center-insights",
  165. "python-gapic-namespace=google.cloud",
  166. "python-gapic-name=contact_center_insights",
  167. ],
  168. rest_numeric_enums = False,
  169. transport = "grpc",
  170. )
  171. py_test(
  172. name = "contactcenterinsights_py_gapic_test",
  173. srcs = [
  174. "contactcenterinsights_py_gapic_pytest.py",
  175. "contactcenterinsights_py_gapic_test.py",
  176. ],
  177. legacy_create_init = False,
  178. deps = [":contactcenterinsights_py_gapic"],
  179. )
  180. # Open Source Packages
  181. py_gapic_assembly_pkg(
  182. name = "contactcenterinsights-v1-py",
  183. deps = [
  184. ":contactcenterinsights_py_gapic",
  185. ],
  186. )
  187. ##############################################################################
  188. # PHP
  189. ##############################################################################
  190. load(
  191. "@com_google_googleapis_imports//:imports.bzl",
  192. "php_gapic_assembly_pkg",
  193. "php_gapic_library",
  194. "php_grpc_library",
  195. "php_proto_library",
  196. )
  197. php_proto_library(
  198. name = "contactcenterinsights_php_proto",
  199. deps = [":contactcenterinsights_proto"],
  200. )
  201. php_grpc_library(
  202. name = "contactcenterinsights_php_grpc",
  203. srcs = [":contactcenterinsights_proto"],
  204. deps = [":contactcenterinsights_php_proto"],
  205. )
  206. php_gapic_library(
  207. name = "contactcenterinsights_php_gapic",
  208. srcs = [":contactcenterinsights_proto_with_info"],
  209. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  210. rest_numeric_enums = False,
  211. service_yaml = "contactcenterinsights_v1.yaml",
  212. transport = "grpc+rest",
  213. deps = [
  214. ":contactcenterinsights_php_grpc",
  215. ":contactcenterinsights_php_proto",
  216. ],
  217. )
  218. # Open Source Packages
  219. php_gapic_assembly_pkg(
  220. name = "google-cloud-contactcenterinsights-v1-php",
  221. deps = [
  222. ":contactcenterinsights_php_gapic",
  223. ":contactcenterinsights_php_grpc",
  224. ":contactcenterinsights_php_proto",
  225. ],
  226. )
  227. ##############################################################################
  228. # Node.js
  229. ##############################################################################
  230. load(
  231. "@com_google_googleapis_imports//:imports.bzl",
  232. "nodejs_gapic_assembly_pkg",
  233. "nodejs_gapic_library",
  234. )
  235. nodejs_gapic_library(
  236. name = "contactcenterinsights_nodejs_gapic",
  237. package_name = "@google-cloud/contact-center-insights",
  238. src = ":contactcenterinsights_proto_with_info",
  239. extra_protoc_parameters = ["metadata"],
  240. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  241. package = "google.cloud.contactcenterinsights.v1",
  242. rest_numeric_enums = False,
  243. service_yaml = "contactcenterinsights_v1.yaml",
  244. transport = "grpc+rest",
  245. deps = [],
  246. )
  247. nodejs_gapic_assembly_pkg(
  248. name = "contactcenterinsights-v1-nodejs",
  249. deps = [
  250. ":contactcenterinsights_nodejs_gapic",
  251. ":contactcenterinsights_proto",
  252. ],
  253. )
  254. ##############################################################################
  255. # Ruby
  256. ##############################################################################
  257. load(
  258. "@com_google_googleapis_imports//:imports.bzl",
  259. "ruby_cloud_gapic_library",
  260. "ruby_gapic_assembly_pkg",
  261. "ruby_grpc_library",
  262. "ruby_proto_library",
  263. )
  264. ruby_proto_library(
  265. name = "contactcenterinsights_ruby_proto",
  266. deps = [":contactcenterinsights_proto"],
  267. )
  268. ruby_grpc_library(
  269. name = "contactcenterinsights_ruby_grpc",
  270. srcs = [":contactcenterinsights_proto"],
  271. deps = [":contactcenterinsights_ruby_proto"],
  272. )
  273. ruby_cloud_gapic_library(
  274. name = "contactcenterinsights_ruby_gapic",
  275. srcs = [":contactcenterinsights_proto_with_info"],
  276. extra_protoc_parameters = [
  277. "ruby-cloud-gem-name=google-cloud-contact_center_insights-v1",
  278. "ruby-cloud-product-url=https://cloud.google.com/contact-center/insights/docs",
  279. "ruby-cloud-api-id=contactcenterinsights.googleapis.com",
  280. "ruby-cloud-api-shortname=contactcenterinsights",
  281. ],
  282. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  283. rest_numeric_enums = False,
  284. ruby_cloud_description = "Contact Center AI Insights helps users detect and visualize patterns in their contact center data. Understanding conversational data drives business value, improves operational efficiency, and provides a voice for customer feedback.",
  285. ruby_cloud_title = "Contact Center AI Insights V1",
  286. deps = [
  287. ":contactcenterinsights_ruby_grpc",
  288. ":contactcenterinsights_ruby_proto",
  289. ],
  290. )
  291. # Open Source Packages
  292. ruby_gapic_assembly_pkg(
  293. name = "google-cloud-contactcenterinsights-v1-ruby",
  294. deps = [
  295. ":contactcenterinsights_ruby_gapic",
  296. ":contactcenterinsights_ruby_grpc",
  297. ":contactcenterinsights_ruby_proto",
  298. ],
  299. )
  300. ##############################################################################
  301. # C#
  302. ##############################################################################
  303. load(
  304. "@com_google_googleapis_imports//:imports.bzl",
  305. "csharp_gapic_assembly_pkg",
  306. "csharp_gapic_library",
  307. "csharp_grpc_library",
  308. "csharp_proto_library",
  309. )
  310. csharp_proto_library(
  311. name = "contactcenterinsights_csharp_proto",
  312. deps = [":contactcenterinsights_proto"],
  313. )
  314. csharp_grpc_library(
  315. name = "contactcenterinsights_csharp_grpc",
  316. srcs = [":contactcenterinsights_proto"],
  317. deps = [":contactcenterinsights_csharp_proto"],
  318. )
  319. csharp_gapic_library(
  320. name = "contactcenterinsights_csharp_gapic",
  321. srcs = [":contactcenterinsights_proto_with_info"],
  322. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  323. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  324. rest_numeric_enums = False,
  325. service_yaml = "contactcenterinsights_v1.yaml",
  326. deps = [
  327. ":contactcenterinsights_csharp_grpc",
  328. ":contactcenterinsights_csharp_proto",
  329. ],
  330. )
  331. # Open Source Packages
  332. csharp_gapic_assembly_pkg(
  333. name = "google-cloud-contactcenterinsights-v1-csharp",
  334. deps = [
  335. ":contactcenterinsights_csharp_gapic",
  336. ":contactcenterinsights_csharp_grpc",
  337. ":contactcenterinsights_csharp_proto",
  338. ],
  339. )
  340. ##############################################################################
  341. # C++
  342. ##############################################################################
  343. load(
  344. "@com_google_googleapis_imports//:imports.bzl",
  345. "cc_grpc_library",
  346. "cc_proto_library",
  347. )
  348. cc_proto_library(
  349. name = "contactcenterinsights_cc_proto",
  350. deps = [":contactcenterinsights_proto"],
  351. )
  352. cc_grpc_library(
  353. name = "contactcenterinsights_cc_grpc",
  354. srcs = [":contactcenterinsights_proto"],
  355. grpc_only = True,
  356. deps = [":contactcenterinsights_cc_proto"],
  357. )