BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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 = "texttospeech_proto",
  19. srcs = [
  20. "cloud_tts.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. ],
  28. )
  29. proto_library_with_info(
  30. name = "texttospeech_proto_with_info",
  31. deps = [
  32. ":texttospeech_proto",
  33. "//google/cloud:common_resources_proto",
  34. ],
  35. )
  36. ##############################################################################
  37. # Java
  38. ##############################################################################
  39. load(
  40. "@com_google_googleapis_imports//:imports.bzl",
  41. "java_gapic_assembly_gradle_pkg",
  42. "java_gapic_library",
  43. "java_gapic_test",
  44. "java_grpc_library",
  45. "java_proto_library",
  46. )
  47. java_proto_library(
  48. name = "texttospeech_java_proto",
  49. deps = [":texttospeech_proto"],
  50. )
  51. java_grpc_library(
  52. name = "texttospeech_java_grpc",
  53. srcs = [":texttospeech_proto"],
  54. deps = [":texttospeech_java_proto"],
  55. )
  56. java_gapic_library(
  57. name = "texttospeech_java_gapic",
  58. srcs = [":texttospeech_proto_with_info"],
  59. gapic_yaml = None,
  60. grpc_service_config = "texttospeech_grpc_service_config.json",
  61. rest_numeric_enums = False,
  62. service_yaml = "texttospeech_v1.yaml",
  63. test_deps = [
  64. ":texttospeech_java_grpc",
  65. ],
  66. transport = "grpc+rest",
  67. deps = [
  68. ":texttospeech_java_proto",
  69. "//google/api:api_java_proto",
  70. ],
  71. )
  72. java_gapic_test(
  73. name = "texttospeech_java_gapic_test_suite",
  74. test_classes = [
  75. "com.google.cloud.texttospeech.v1.TextToSpeechClientHttpJsonTest",
  76. "com.google.cloud.texttospeech.v1.TextToSpeechClientTest",
  77. ],
  78. runtime_deps = [":texttospeech_java_gapic_test"],
  79. )
  80. # Open Source Packages
  81. java_gapic_assembly_gradle_pkg(
  82. name = "google-cloud-texttospeech-v1-java",
  83. include_samples = True,
  84. transport = "grpc+rest",
  85. deps = [
  86. ":texttospeech_java_gapic",
  87. ":texttospeech_java_grpc",
  88. ":texttospeech_java_proto",
  89. ":texttospeech_proto",
  90. ],
  91. )
  92. ##############################################################################
  93. # Go
  94. ##############################################################################
  95. load(
  96. "@com_google_googleapis_imports//:imports.bzl",
  97. "go_gapic_assembly_pkg",
  98. "go_gapic_library",
  99. "go_proto_library",
  100. "go_test",
  101. )
  102. go_proto_library(
  103. name = "texttospeech_go_proto",
  104. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  105. importpath = "google.golang.org/genproto/googleapis/cloud/texttospeech/v1",
  106. protos = [":texttospeech_proto"],
  107. deps = [
  108. "//google/api:annotations_go_proto",
  109. ],
  110. )
  111. go_gapic_library(
  112. name = "texttospeech_go_gapic",
  113. srcs = [":texttospeech_proto_with_info"],
  114. grpc_service_config = "texttospeech_grpc_service_config.json",
  115. importpath = "cloud.google.com/go/texttospeech/apiv1;texttospeech",
  116. metadata = True,
  117. rest_numeric_enums = False,
  118. service_yaml = "texttospeech_v1.yaml",
  119. transport = "grpc+rest",
  120. deps = [
  121. ":texttospeech_go_proto",
  122. ],
  123. )
  124. go_test(
  125. name = "texttospeech_go_gapic_test",
  126. srcs = [":texttospeech_go_gapic_srcjar_test"],
  127. embed = [":texttospeech_go_gapic"],
  128. importpath = "cloud.google.com/go/texttospeech/apiv1",
  129. )
  130. # Open Source Packages
  131. go_gapic_assembly_pkg(
  132. name = "gapi-cloud-texttospeech-v1-go",
  133. deps = [
  134. ":texttospeech_go_gapic",
  135. ":texttospeech_go_gapic_srcjar-metadata.srcjar",
  136. ":texttospeech_go_gapic_srcjar-test.srcjar",
  137. ":texttospeech_go_proto",
  138. ],
  139. )
  140. ##############################################################################
  141. # Python
  142. ##############################################################################
  143. load(
  144. "@com_google_googleapis_imports//:imports.bzl",
  145. "py_gapic_assembly_pkg",
  146. "py_gapic_library",
  147. "py_test",
  148. )
  149. py_gapic_library(
  150. name = "texttospeech_py_gapic",
  151. srcs = [":texttospeech_proto"],
  152. grpc_service_config = "texttospeech_grpc_service_config.json",
  153. rest_numeric_enums = False,
  154. transport = "grpc",
  155. )
  156. py_test(
  157. name = "texttospeech_py_gapic_test",
  158. srcs = [
  159. "texttospeech_py_gapic_pytest.py",
  160. "texttospeech_py_gapic_test.py",
  161. ],
  162. legacy_create_init = False,
  163. deps = [":texttospeech_py_gapic"],
  164. )
  165. # Open Source Packages
  166. py_gapic_assembly_pkg(
  167. name = "texttospeech-v1-py",
  168. deps = [
  169. ":texttospeech_py_gapic",
  170. ],
  171. )
  172. ##############################################################################
  173. # PHP
  174. ##############################################################################
  175. load(
  176. "@com_google_googleapis_imports//:imports.bzl",
  177. "php_gapic_assembly_pkg",
  178. "php_gapic_library",
  179. "php_grpc_library",
  180. "php_proto_library",
  181. )
  182. php_proto_library(
  183. name = "texttospeech_php_proto",
  184. deps = [":texttospeech_proto"],
  185. )
  186. php_grpc_library(
  187. name = "texttospeech_php_grpc",
  188. srcs = [":texttospeech_proto"],
  189. deps = [":texttospeech_php_proto"],
  190. )
  191. php_gapic_library(
  192. name = "texttospeech_php_gapic",
  193. srcs = [":texttospeech_proto_with_info"],
  194. grpc_service_config = "texttospeech_grpc_service_config.json",
  195. rest_numeric_enums = False,
  196. service_yaml = "texttospeech_v1.yaml",
  197. transport = "grpc+rest",
  198. deps = [
  199. ":texttospeech_php_grpc",
  200. ":texttospeech_php_proto",
  201. ],
  202. )
  203. # Open Source Packages
  204. php_gapic_assembly_pkg(
  205. name = "google-cloud-texttospeech-v1-php",
  206. deps = [
  207. ":texttospeech_php_gapic",
  208. ":texttospeech_php_grpc",
  209. ":texttospeech_php_proto",
  210. ],
  211. )
  212. ##############################################################################
  213. # Node.js
  214. ##############################################################################
  215. load(
  216. "@com_google_googleapis_imports//:imports.bzl",
  217. "nodejs_gapic_assembly_pkg",
  218. "nodejs_gapic_library",
  219. )
  220. nodejs_gapic_library(
  221. name = "texttospeech_nodejs_gapic",
  222. package_name = "@google-cloud/text-to-speech",
  223. src = ":texttospeech_proto_with_info",
  224. extra_protoc_parameters = ["metadata"],
  225. grpc_service_config = "texttospeech_grpc_service_config.json",
  226. package = "google.cloud.texttospeech.v1",
  227. rest_numeric_enums = False,
  228. service_yaml = "texttospeech_v1.yaml",
  229. transport = "grpc+rest",
  230. deps = [],
  231. )
  232. nodejs_gapic_assembly_pkg(
  233. name = "texttospeech-v1-nodejs",
  234. deps = [
  235. ":texttospeech_nodejs_gapic",
  236. ":texttospeech_proto",
  237. ],
  238. )
  239. ##############################################################################
  240. # Ruby
  241. ##############################################################################
  242. load(
  243. "@com_google_googleapis_imports//:imports.bzl",
  244. "ruby_cloud_gapic_library",
  245. "ruby_gapic_assembly_pkg",
  246. "ruby_grpc_library",
  247. "ruby_proto_library",
  248. )
  249. ruby_proto_library(
  250. name = "texttospeech_ruby_proto",
  251. deps = [":texttospeech_proto"],
  252. )
  253. ruby_grpc_library(
  254. name = "texttospeech_ruby_grpc",
  255. srcs = [":texttospeech_proto"],
  256. deps = [":texttospeech_ruby_proto"],
  257. )
  258. ruby_cloud_gapic_library(
  259. name = "texttospeech_ruby_gapic",
  260. srcs = [":texttospeech_proto_with_info"],
  261. extra_protoc_parameters = [
  262. "ruby-cloud-api-id=texttospeech.googleapis.com",
  263. "ruby-cloud-api-shortname=texttospeech",
  264. "ruby-cloud-env-prefix=TEXTTOSPEECH",
  265. "ruby-cloud-gem-name=google-cloud-text_to_speech-v1",
  266. "ruby-cloud-product-url=https://cloud.google.com/text-to-speech",
  267. ],
  268. grpc_service_config = "texttospeech_grpc_service_config.json",
  269. rest_numeric_enums = False,
  270. ruby_cloud_description = "Text-to-Speech converts text or Speech Synthesis Markup Language (SSML) input into audio data of natural human speech.",
  271. ruby_cloud_title = "Cloud Text-to-Speech V1",
  272. deps = [
  273. ":texttospeech_ruby_grpc",
  274. ":texttospeech_ruby_proto",
  275. ],
  276. )
  277. # Open Source Packages
  278. ruby_gapic_assembly_pkg(
  279. name = "google-cloud-texttospeech-v1-ruby",
  280. deps = [
  281. ":texttospeech_ruby_gapic",
  282. ":texttospeech_ruby_grpc",
  283. ":texttospeech_ruby_proto",
  284. ],
  285. )
  286. ##############################################################################
  287. # C#
  288. ##############################################################################
  289. load(
  290. "@com_google_googleapis_imports//:imports.bzl",
  291. "csharp_gapic_assembly_pkg",
  292. "csharp_gapic_library",
  293. "csharp_grpc_library",
  294. "csharp_proto_library",
  295. )
  296. csharp_proto_library(
  297. name = "texttospeech_csharp_proto",
  298. deps = [":texttospeech_proto"],
  299. )
  300. csharp_grpc_library(
  301. name = "texttospeech_csharp_grpc",
  302. srcs = [":texttospeech_proto"],
  303. deps = [":texttospeech_csharp_proto"],
  304. )
  305. csharp_gapic_library(
  306. name = "texttospeech_csharp_gapic",
  307. srcs = [":texttospeech_proto_with_info"],
  308. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  309. grpc_service_config = "texttospeech_grpc_service_config.json",
  310. rest_numeric_enums = False,
  311. service_yaml = "texttospeech_v1.yaml",
  312. deps = [
  313. ":texttospeech_csharp_grpc",
  314. ":texttospeech_csharp_proto",
  315. ],
  316. )
  317. # Open Source Packages
  318. csharp_gapic_assembly_pkg(
  319. name = "google-cloud-texttospeech-v1-csharp",
  320. deps = [
  321. ":texttospeech_csharp_gapic",
  322. ":texttospeech_csharp_grpc",
  323. ":texttospeech_csharp_proto",
  324. ],
  325. )
  326. ##############################################################################
  327. # C++
  328. ##############################################################################
  329. load(
  330. "@com_google_googleapis_imports//:imports.bzl",
  331. "cc_grpc_library",
  332. "cc_proto_library",
  333. )
  334. cc_proto_library(
  335. name = "texttospeech_cc_proto",
  336. deps = [":texttospeech_proto"],
  337. )
  338. cc_grpc_library(
  339. name = "texttospeech_cc_grpc",
  340. srcs = [":texttospeech_proto"],
  341. grpc_only = True,
  342. deps = [":texttospeech_cc_proto"],
  343. )