BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. test_deps = [
  68. ":contactcenterinsights_java_grpc",
  69. ],
  70. deps = [
  71. ":contactcenterinsights_java_proto",
  72. ],
  73. )
  74. java_gapic_test(
  75. name = "contactcenterinsights_java_gapic_test_suite",
  76. test_classes = [
  77. "com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClientTest",
  78. ],
  79. runtime_deps = [":contactcenterinsights_java_gapic_test"],
  80. )
  81. # Open Source Packages
  82. java_gapic_assembly_gradle_pkg(
  83. name = "google-cloud-contactcenterinsights-v1-java",
  84. deps = [
  85. ":contactcenterinsights_java_gapic",
  86. ":contactcenterinsights_java_grpc",
  87. ":contactcenterinsights_java_proto",
  88. ":contactcenterinsights_proto",
  89. ],
  90. )
  91. ##############################################################################
  92. # Go
  93. ##############################################################################
  94. load(
  95. "@com_google_googleapis_imports//:imports.bzl",
  96. "go_gapic_assembly_pkg",
  97. "go_gapic_library",
  98. "go_proto_library",
  99. "go_test",
  100. )
  101. go_proto_library(
  102. name = "contactcenterinsights_go_proto",
  103. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  104. importpath = "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1",
  105. protos = [":contactcenterinsights_proto"],
  106. deps = [
  107. "//google/api:annotations_go_proto",
  108. "//google/longrunning:longrunning_go_proto",
  109. "//google/rpc:status_go_proto",
  110. ],
  111. )
  112. go_gapic_library(
  113. name = "contactcenterinsights_go_gapic",
  114. srcs = [":contactcenterinsights_proto_with_info"],
  115. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  116. importpath = "cloud.google.com/go/contactcenterinsights/apiv1;contactcenterinsights",
  117. metadata = True,
  118. service_yaml = "contactcenterinsights_v1.yaml",
  119. deps = [
  120. ":contactcenterinsights_go_proto",
  121. "//google/longrunning:longrunning_go_proto",
  122. "@com_google_cloud_go//longrunning:go_default_library",
  123. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  124. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  125. ],
  126. )
  127. go_test(
  128. name = "contactcenterinsights_go_gapic_test",
  129. srcs = [":contactcenterinsights_go_gapic_srcjar_test"],
  130. embed = [":contactcenterinsights_go_gapic"],
  131. importpath = "cloud.google.com/go/contactcenterinsights/apiv1",
  132. )
  133. # Open Source Packages
  134. go_gapic_assembly_pkg(
  135. name = "gapi-cloud-contactcenterinsights-v1-go",
  136. deps = [
  137. ":contactcenterinsights_go_gapic",
  138. ":contactcenterinsights_go_gapic_srcjar-metadata.srcjar",
  139. ":contactcenterinsights_go_gapic_srcjar-test.srcjar",
  140. ":contactcenterinsights_go_proto",
  141. ],
  142. )
  143. ##############################################################################
  144. # Python
  145. ##############################################################################
  146. load(
  147. "@com_google_googleapis_imports//:imports.bzl",
  148. "py_gapic_assembly_pkg",
  149. "py_gapic_library",
  150. )
  151. py_gapic_library(
  152. name = "contactcenterinsights_py_gapic",
  153. srcs = [":contactcenterinsights_proto"],
  154. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  155. opt_args = [
  156. "warehouse-package-name=google-cloud-contact-center-insights",
  157. "python-gapic-namespace=google.cloud",
  158. "python-gapic-name=contact_center_insights",
  159. ],
  160. )
  161. # Open Source Packages
  162. py_gapic_assembly_pkg(
  163. name = "contactcenterinsights-v1-py",
  164. deps = [
  165. ":contactcenterinsights_py_gapic",
  166. ],
  167. )
  168. ##############################################################################
  169. # PHP
  170. ##############################################################################
  171. load(
  172. "@com_google_googleapis_imports//:imports.bzl",
  173. "php_gapic_assembly_pkg",
  174. "php_gapic_library",
  175. "php_grpc_library",
  176. "php_proto_library",
  177. )
  178. php_proto_library(
  179. name = "contactcenterinsights_php_proto",
  180. deps = [":contactcenterinsights_proto"],
  181. )
  182. php_grpc_library(
  183. name = "contactcenterinsights_php_grpc",
  184. srcs = [":contactcenterinsights_proto"],
  185. deps = [":contactcenterinsights_php_proto"],
  186. )
  187. php_gapic_library(
  188. name = "contactcenterinsights_php_gapic",
  189. srcs = [":contactcenterinsights_proto_with_info"],
  190. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  191. service_yaml = "contactcenterinsights_v1.yaml",
  192. deps = [
  193. ":contactcenterinsights_php_grpc",
  194. ":contactcenterinsights_php_proto",
  195. ],
  196. )
  197. # Open Source Packages
  198. php_gapic_assembly_pkg(
  199. name = "google-cloud-contactcenterinsights-v1-php",
  200. deps = [
  201. ":contactcenterinsights_php_gapic",
  202. ":contactcenterinsights_php_grpc",
  203. ":contactcenterinsights_php_proto",
  204. ],
  205. )
  206. ##############################################################################
  207. # Node.js
  208. ##############################################################################
  209. load(
  210. "@com_google_googleapis_imports//:imports.bzl",
  211. "nodejs_gapic_assembly_pkg",
  212. "nodejs_gapic_library",
  213. )
  214. nodejs_gapic_library(
  215. name = "contactcenterinsights_nodejs_gapic",
  216. package_name = "@google-cloud/contact-center-insights",
  217. src = ":contactcenterinsights_proto_with_info",
  218. extra_protoc_parameters = ["metadata"],
  219. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  220. package = "google.cloud.contactcenterinsights.v1",
  221. service_yaml = "contactcenterinsights_v1.yaml",
  222. deps = [],
  223. )
  224. nodejs_gapic_assembly_pkg(
  225. name = "contactcenterinsights-v1-nodejs",
  226. deps = [
  227. ":contactcenterinsights_nodejs_gapic",
  228. ":contactcenterinsights_proto",
  229. ],
  230. )
  231. ##############################################################################
  232. # Ruby
  233. ##############################################################################
  234. load(
  235. "@com_google_googleapis_imports//:imports.bzl",
  236. "ruby_cloud_gapic_library",
  237. "ruby_gapic_assembly_pkg",
  238. "ruby_grpc_library",
  239. "ruby_proto_library",
  240. )
  241. ruby_proto_library(
  242. name = "contactcenterinsights_ruby_proto",
  243. deps = [":contactcenterinsights_proto"],
  244. )
  245. ruby_grpc_library(
  246. name = "contactcenterinsights_ruby_grpc",
  247. srcs = [":contactcenterinsights_proto"],
  248. deps = [":contactcenterinsights_ruby_proto"],
  249. )
  250. ruby_cloud_gapic_library(
  251. name = "contactcenterinsights_ruby_gapic",
  252. srcs = [":contactcenterinsights_proto_with_info"],
  253. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-contactcenterinsights-v1"],
  254. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  255. deps = [
  256. ":contactcenterinsights_ruby_grpc",
  257. ":contactcenterinsights_ruby_proto",
  258. ],
  259. )
  260. # Open Source Packages
  261. ruby_gapic_assembly_pkg(
  262. name = "google-cloud-contactcenterinsights-v1-ruby",
  263. deps = [
  264. ":contactcenterinsights_ruby_gapic",
  265. ":contactcenterinsights_ruby_grpc",
  266. ":contactcenterinsights_ruby_proto",
  267. ],
  268. )
  269. ##############################################################################
  270. # C#
  271. ##############################################################################
  272. load(
  273. "@com_google_googleapis_imports//:imports.bzl",
  274. "csharp_gapic_assembly_pkg",
  275. "csharp_gapic_library",
  276. "csharp_grpc_library",
  277. "csharp_proto_library",
  278. )
  279. csharp_proto_library(
  280. name = "contactcenterinsights_csharp_proto",
  281. deps = [":contactcenterinsights_proto"],
  282. )
  283. csharp_grpc_library(
  284. name = "contactcenterinsights_csharp_grpc",
  285. srcs = [":contactcenterinsights_proto"],
  286. deps = [":contactcenterinsights_csharp_proto"],
  287. )
  288. csharp_gapic_library(
  289. name = "contactcenterinsights_csharp_gapic",
  290. srcs = [":contactcenterinsights_proto_with_info"],
  291. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  292. grpc_service_config = "contactcenterinsights_grpc_service_config.json",
  293. deps = [
  294. ":contactcenterinsights_csharp_grpc",
  295. ":contactcenterinsights_csharp_proto",
  296. ],
  297. )
  298. # Open Source Packages
  299. csharp_gapic_assembly_pkg(
  300. name = "google-cloud-contactcenterinsights-v1-csharp",
  301. deps = [
  302. ":contactcenterinsights_csharp_gapic",
  303. ":contactcenterinsights_csharp_grpc",
  304. ":contactcenterinsights_csharp_proto",
  305. ],
  306. )
  307. ##############################################################################
  308. # C++
  309. ##############################################################################
  310. # Put your C++ rules here