BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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 = "mediatranslation_proto",
  19. srcs = [
  20. "media_translation.proto",
  21. ],
  22. deps = [
  23. "//google/api:client_proto",
  24. "//google/api:field_behavior_proto",
  25. "//google/rpc:status_proto",
  26. ],
  27. )
  28. proto_library_with_info(
  29. name = "mediatranslation_proto_with_info",
  30. deps = [
  31. ":mediatranslation_proto",
  32. "//google/cloud:common_resources_proto",
  33. ],
  34. )
  35. ##############################################################################
  36. # Java
  37. ##############################################################################
  38. load(
  39. "@com_google_googleapis_imports//:imports.bzl",
  40. "java_gapic_assembly_gradle_pkg",
  41. "java_gapic_library",
  42. "java_gapic_test",
  43. "java_grpc_library",
  44. "java_proto_library",
  45. )
  46. java_proto_library(
  47. name = "mediatranslation_java_proto",
  48. deps = [":mediatranslation_proto"],
  49. )
  50. java_grpc_library(
  51. name = "mediatranslation_java_grpc",
  52. srcs = [":mediatranslation_proto"],
  53. deps = [":mediatranslation_java_proto"],
  54. )
  55. java_gapic_library(
  56. name = "mediatranslation_java_gapic",
  57. srcs = [":mediatranslation_proto_with_info"],
  58. grpc_service_config = "mediatranslation_grpc_service_config.json",
  59. rest_numeric_enums = False,
  60. test_deps = [
  61. ":mediatranslation_java_grpc",
  62. ],
  63. transport = "grpc+rest",
  64. deps = [
  65. ":mediatranslation_java_proto",
  66. ],
  67. )
  68. java_gapic_test(
  69. name = "mediatranslation_java_gapic_test_suite",
  70. test_classes = [
  71. "com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClientHttpJsonTest",
  72. "com.google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClientTest",
  73. ],
  74. runtime_deps = [":mediatranslation_java_gapic_test"],
  75. )
  76. # Open Source Packages
  77. java_gapic_assembly_gradle_pkg(
  78. name = "google-cloud-mediatranslation-v1beta1-java",
  79. include_samples = True,
  80. transport = "grpc+rest",
  81. deps = [
  82. ":mediatranslation_java_gapic",
  83. ":mediatranslation_java_grpc",
  84. ":mediatranslation_java_proto",
  85. ":mediatranslation_proto",
  86. ],
  87. )
  88. ##############################################################################
  89. # Go
  90. ##############################################################################
  91. load(
  92. "@com_google_googleapis_imports//:imports.bzl",
  93. "go_gapic_assembly_pkg",
  94. "go_gapic_library",
  95. "go_proto_library",
  96. "go_test",
  97. )
  98. go_proto_library(
  99. name = "mediatranslation_go_proto",
  100. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  101. importpath = "google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1",
  102. protos = [":mediatranslation_proto"],
  103. deps = [
  104. "//google/api:annotations_go_proto",
  105. "//google/rpc:status_go_proto",
  106. ],
  107. )
  108. go_gapic_library(
  109. name = "mediatranslation_go_gapic",
  110. srcs = [":mediatranslation_proto_with_info"],
  111. grpc_service_config = "mediatranslation_grpc_service_config.json",
  112. importpath = "cloud.google.com/go/mediatranslation/apiv1beta1;mediatranslation",
  113. metadata = True,
  114. rest_numeric_enums = False,
  115. service_yaml = "mediatranslation_v1beta1.yaml",
  116. deps = [
  117. ":mediatranslation_go_proto",
  118. ],
  119. )
  120. go_test(
  121. name = "mediatranslation_go_gapic_test",
  122. srcs = [":mediatranslation_go_gapic_srcjar_test"],
  123. embed = [":mediatranslation_go_gapic"],
  124. importpath = "cloud.google.com/go/mediatranslation/apiv1beta1",
  125. )
  126. # Open Source Packages
  127. go_gapic_assembly_pkg(
  128. name = "gapi-cloud-mediatranslation-v1beta1-go",
  129. deps = [
  130. ":mediatranslation_go_gapic",
  131. ":mediatranslation_go_gapic_srcjar-metadata.srcjar",
  132. ":mediatranslation_go_gapic_srcjar-test.srcjar",
  133. ":mediatranslation_go_proto",
  134. ],
  135. )
  136. ##############################################################################
  137. # Python
  138. ##############################################################################
  139. load(
  140. "@com_google_googleapis_imports//:imports.bzl",
  141. "py_gapic_assembly_pkg",
  142. "py_gapic_library",
  143. "py_test",
  144. )
  145. py_gapic_library(
  146. name = "mediatranslation_py_gapic",
  147. srcs = [":mediatranslation_proto"],
  148. grpc_service_config = "mediatranslation_grpc_service_config.json",
  149. opt_args = [
  150. "warehouse-package-name=google-cloud-media-translation",
  151. ],
  152. rest_numeric_enums = False,
  153. transport = "grpc",
  154. )
  155. py_test(
  156. name = "mediatranslation_py_gapic_test",
  157. srcs = [
  158. "mediatranslation_py_gapic_pytest.py",
  159. "mediatranslation_py_gapic_test.py",
  160. ],
  161. legacy_create_init = False,
  162. deps = [":mediatranslation_py_gapic"],
  163. )
  164. # Open Source Packages
  165. py_gapic_assembly_pkg(
  166. name = "mediatranslation-v1beta1-py",
  167. deps = [
  168. ":mediatranslation_py_gapic",
  169. ],
  170. )
  171. ##############################################################################
  172. # PHP
  173. ##############################################################################
  174. load(
  175. "@com_google_googleapis_imports//:imports.bzl",
  176. "php_gapic_assembly_pkg",
  177. "php_gapic_library",
  178. "php_grpc_library",
  179. "php_proto_library",
  180. )
  181. php_proto_library(
  182. name = "mediatranslation_php_proto",
  183. deps = [":mediatranslation_proto"],
  184. )
  185. php_grpc_library(
  186. name = "mediatranslation_php_grpc",
  187. srcs = [":mediatranslation_proto"],
  188. deps = [":mediatranslation_php_proto"],
  189. )
  190. php_gapic_library(
  191. name = "mediatranslation_php_gapic",
  192. srcs = [":mediatranslation_proto_with_info"],
  193. grpc_service_config = "mediatranslation_grpc_service_config.json",
  194. rest_numeric_enums = False,
  195. service_yaml = "mediatranslation_v1beta1.yaml",
  196. transport = "grpc+rest",
  197. deps = [
  198. ":mediatranslation_php_grpc",
  199. ":mediatranslation_php_proto",
  200. ],
  201. )
  202. # Open Source Packages
  203. php_gapic_assembly_pkg(
  204. name = "google-cloud-mediatranslation-v1beta1-php",
  205. deps = [
  206. ":mediatranslation_php_gapic",
  207. ":mediatranslation_php_grpc",
  208. ":mediatranslation_php_proto",
  209. ],
  210. )
  211. ##############################################################################
  212. # Node.js
  213. ##############################################################################
  214. load(
  215. "@com_google_googleapis_imports//:imports.bzl",
  216. "nodejs_gapic_assembly_pkg",
  217. "nodejs_gapic_library",
  218. )
  219. nodejs_gapic_library(
  220. name = "mediatranslation_nodejs_gapic",
  221. package_name = "@google-cloud/media-translation",
  222. src = ":mediatranslation_proto_with_info",
  223. extra_protoc_parameters = ["metadata"],
  224. grpc_service_config = "mediatranslation_grpc_service_config.json",
  225. package = "google.cloud.mediatranslation.v1beta1",
  226. rest_numeric_enums = False,
  227. service_yaml = "mediatranslation_v1beta1.yaml",
  228. transport = "grpc+rest",
  229. deps = [],
  230. )
  231. nodejs_gapic_assembly_pkg(
  232. name = "mediatranslation-v1beta1-nodejs",
  233. deps = [
  234. ":mediatranslation_nodejs_gapic",
  235. ":mediatranslation_proto",
  236. ],
  237. )
  238. ##############################################################################
  239. # Ruby
  240. ##############################################################################
  241. load(
  242. "@com_google_googleapis_imports//:imports.bzl",
  243. "ruby_cloud_gapic_library",
  244. "ruby_gapic_assembly_pkg",
  245. "ruby_grpc_library",
  246. "ruby_proto_library",
  247. )
  248. ruby_proto_library(
  249. name = "mediatranslation_ruby_proto",
  250. deps = [":mediatranslation_proto"],
  251. )
  252. ruby_grpc_library(
  253. name = "mediatranslation_ruby_grpc",
  254. srcs = [":mediatranslation_proto"],
  255. deps = [":mediatranslation_ruby_proto"],
  256. )
  257. ruby_cloud_gapic_library(
  258. name = "mediatranslation_ruby_gapic",
  259. srcs = [":mediatranslation_proto_with_info"],
  260. extra_protoc_parameters = [
  261. "ruby-cloud-api-id=mediatranslation.googleapis.com",
  262. "ruby-cloud-api-shortname=mediatranslation",
  263. "ruby-cloud-env-prefix=MEDIA_TRANSLATION",
  264. "ruby-cloud-gem-name=google-cloud-media_translation-v1beta1",
  265. "ruby-cloud-product-url=https://cloud.google.com/media-translation/",
  266. ],
  267. grpc_service_config = "mediatranslation_grpc_service_config.json",
  268. rest_numeric_enums = False,
  269. ruby_cloud_description = "Media Translation API delivers real-time speech translation to your content and applications directly from your audio data. Leveraging Google’s machine learning technologies, the API offers enhanced accuracy and simplified integration while equipping you with a comprehensive set of features to further refine your translation results. Improve user experience with low-latency streaming translation and scale quickly with straightforward internationalization.",
  270. ruby_cloud_title = "Media Translation V1beta1",
  271. deps = [
  272. ":mediatranslation_ruby_grpc",
  273. ":mediatranslation_ruby_proto",
  274. ],
  275. )
  276. # Open Source Packages
  277. ruby_gapic_assembly_pkg(
  278. name = "google-cloud-mediatranslation-v1beta1-ruby",
  279. deps = [
  280. ":mediatranslation_ruby_gapic",
  281. ":mediatranslation_ruby_grpc",
  282. ":mediatranslation_ruby_proto",
  283. ],
  284. )
  285. ##############################################################################
  286. # C#
  287. ##############################################################################
  288. load(
  289. "@com_google_googleapis_imports//:imports.bzl",
  290. "csharp_gapic_assembly_pkg",
  291. "csharp_gapic_library",
  292. "csharp_grpc_library",
  293. "csharp_proto_library",
  294. )
  295. csharp_proto_library(
  296. name = "mediatranslation_csharp_proto",
  297. deps = [":mediatranslation_proto"],
  298. )
  299. csharp_grpc_library(
  300. name = "mediatranslation_csharp_grpc",
  301. srcs = [":mediatranslation_proto"],
  302. deps = [":mediatranslation_csharp_proto"],
  303. )
  304. csharp_gapic_library(
  305. name = "mediatranslation_csharp_gapic",
  306. srcs = [":mediatranslation_proto_with_info"],
  307. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  308. grpc_service_config = "mediatranslation_grpc_service_config.json",
  309. rest_numeric_enums = False,
  310. service_yaml = "mediatranslation_v1beta1.yaml",
  311. deps = [
  312. ":mediatranslation_csharp_grpc",
  313. ":mediatranslation_csharp_proto",
  314. ],
  315. )
  316. # Open Source Packages
  317. csharp_gapic_assembly_pkg(
  318. name = "google-cloud-mediatranslation-v1beta1-csharp",
  319. deps = [
  320. ":mediatranslation_csharp_gapic",
  321. ":mediatranslation_csharp_grpc",
  322. ":mediatranslation_csharp_proto",
  323. ],
  324. )
  325. ##############################################################################
  326. # C++
  327. ##############################################################################
  328. # Put your C++ rules here