xref: /aosp_15_r20/external/googleapis/google/cloud/texttospeech/v1/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This file was automatically generated by BuildFileGenerator
2# https://github.com/googleapis/rules_gapic/tree/master/bazel
3
4# Most of the manual changes to this file will be overwritten.
5# It's **only** allowed to change the following rule attribute values:
6# - names of *_gapic_assembly_* rules
7# - certain parameters of *_gapic_library rules, including but not limited to:
8#    * extra_protoc_parameters
9#    * extra_protoc_file_parameters
10# The complete list of preserved parameters can be found in the source code.
11
12# This is an API workspace, having public visibility by default makes perfect sense.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "texttospeech_proto",
23    srcs = [
24        "cloud_tts.proto",
25        "cloud_tts_lrs.proto",
26    ],
27    deps = [
28        "//google/api:annotations_proto",
29        "//google/api:client_proto",
30        "//google/api:field_behavior_proto",
31        "//google/api:resource_proto",
32        "//google/longrunning:operations_proto",
33        "@com_google_protobuf//:timestamp_proto",
34    ],
35)
36
37proto_library_with_info(
38    name = "texttospeech_proto_with_info",
39    deps = [
40        ":texttospeech_proto",
41        "//google/cloud:common_resources_proto",
42    ],
43)
44
45##############################################################################
46# Java
47##############################################################################
48load(
49    "@com_google_googleapis_imports//:imports.bzl",
50    "java_gapic_assembly_gradle_pkg",
51    "java_gapic_library",
52    "java_gapic_test",
53    "java_grpc_library",
54    "java_proto_library",
55)
56
57java_proto_library(
58    name = "texttospeech_java_proto",
59    deps = [":texttospeech_proto"],
60)
61
62java_grpc_library(
63    name = "texttospeech_java_grpc",
64    srcs = [":texttospeech_proto"],
65    deps = [":texttospeech_java_proto"],
66)
67
68java_gapic_library(
69    name = "texttospeech_java_gapic",
70    srcs = [":texttospeech_proto_with_info"],
71    gapic_yaml = None,
72    grpc_service_config = "texttospeech_grpc_service_config.json",
73    rest_numeric_enums = True,
74    service_yaml = "texttospeech_v1.yaml",
75    test_deps = [
76        ":texttospeech_java_grpc",
77    ],
78    transport = "grpc+rest",
79    deps = [
80        ":texttospeech_java_proto",
81        "//google/api:api_java_proto",
82    ],
83)
84
85java_gapic_test(
86    name = "texttospeech_java_gapic_test_suite",
87    test_classes = [
88        "com.google.cloud.texttospeech.v1.TextToSpeechClientHttpJsonTest",
89        "com.google.cloud.texttospeech.v1.TextToSpeechClientTest",
90        "com.google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClientHttpJsonTest",
91        "com.google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClientTest",
92    ],
93    runtime_deps = [":texttospeech_java_gapic_test"],
94)
95
96# Open Source Packages
97java_gapic_assembly_gradle_pkg(
98    name = "google-cloud-texttospeech-v1-java",
99    include_samples = True,
100    transport = "grpc+rest",
101    deps = [
102        ":texttospeech_java_gapic",
103        ":texttospeech_java_grpc",
104        ":texttospeech_java_proto",
105        ":texttospeech_proto",
106    ],
107)
108
109##############################################################################
110# Go
111##############################################################################
112load(
113    "@com_google_googleapis_imports//:imports.bzl",
114    "go_gapic_assembly_pkg",
115    "go_gapic_library",
116    "go_proto_library",
117)
118
119go_proto_library(
120    name = "texttospeech_go_proto",
121    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
122    importpath = "cloud.google.com/go/texttospeech/apiv1/texttospeechpb",
123    protos = [":texttospeech_proto"],
124    deps = [
125        "//google/api:annotations_go_proto",
126        "//google/longrunning:longrunning_go_proto",
127    ],
128)
129
130go_gapic_library(
131    name = "texttospeech_go_gapic",
132    srcs = [":texttospeech_proto_with_info"],
133    grpc_service_config = "texttospeech_grpc_service_config.json",
134    importpath = "cloud.google.com/go/texttospeech/apiv1;texttospeech",
135    metadata = True,
136    release_level = "ga",
137    rest_numeric_enums = True,
138    service_yaml = "texttospeech_v1.yaml",
139    transport = "grpc+rest",
140    deps = [
141        ":texttospeech_go_proto",
142        "//google/longrunning:longrunning_go_proto",
143        "@com_google_cloud_go_longrunning//:go_default_library",
144        "@com_google_cloud_go_longrunning//autogen:go_default_library",
145    ],
146)
147
148# Open Source Packages
149go_gapic_assembly_pkg(
150    name = "gapi-cloud-texttospeech-v1-go",
151    deps = [
152        ":texttospeech_go_gapic",
153        ":texttospeech_go_gapic_srcjar-metadata.srcjar",
154        ":texttospeech_go_gapic_srcjar-snippets.srcjar",
155        ":texttospeech_go_gapic_srcjar-test.srcjar",
156        ":texttospeech_go_proto",
157    ],
158)
159
160##############################################################################
161# Python
162##############################################################################
163load(
164    "@com_google_googleapis_imports//:imports.bzl",
165    "py_gapic_assembly_pkg",
166    "py_gapic_library",
167    "py_test",
168)
169
170py_gapic_library(
171    name = "texttospeech_py_gapic",
172    srcs = [":texttospeech_proto"],
173    grpc_service_config = "texttospeech_grpc_service_config.json",
174    rest_numeric_enums = False,
175    service_yaml = "texttospeech_v1.yaml",
176    transport = "grpc+rest",
177    deps = [
178    ],
179)
180
181py_test(
182    name = "texttospeech_py_gapic_test",
183    srcs = [
184        "texttospeech_py_gapic_pytest.py",
185        "texttospeech_py_gapic_test.py",
186    ],
187    legacy_create_init = False,
188    deps = [":texttospeech_py_gapic"],
189)
190
191# Open Source Packages
192py_gapic_assembly_pkg(
193    name = "texttospeech-v1-py",
194    deps = [
195        ":texttospeech_py_gapic",
196    ],
197)
198
199##############################################################################
200# PHP
201##############################################################################
202load(
203    "@com_google_googleapis_imports//:imports.bzl",
204    "php_gapic_assembly_pkg",
205    "php_gapic_library",
206    "php_proto_library",
207)
208
209php_proto_library(
210    name = "texttospeech_php_proto",
211    deps = [":texttospeech_proto"],
212)
213
214php_gapic_library(
215    name = "texttospeech_php_gapic",
216    srcs = [":texttospeech_proto_with_info"],
217    grpc_service_config = "texttospeech_grpc_service_config.json",
218    migration_mode = "MIGRATING",
219    rest_numeric_enums = True,
220    service_yaml = "texttospeech_v1.yaml",
221    transport = "grpc+rest",
222    deps = [":texttospeech_php_proto"],
223)
224
225# Open Source Packages
226php_gapic_assembly_pkg(
227    name = "google-cloud-texttospeech-v1-php",
228    deps = [
229        ":texttospeech_php_gapic",
230        ":texttospeech_php_proto",
231    ],
232)
233
234##############################################################################
235# Node.js
236##############################################################################
237load(
238    "@com_google_googleapis_imports//:imports.bzl",
239    "nodejs_gapic_assembly_pkg",
240    "nodejs_gapic_library",
241)
242
243nodejs_gapic_library(
244    name = "texttospeech_nodejs_gapic",
245    package_name = "@google-cloud/text-to-speech",
246    src = ":texttospeech_proto_with_info",
247    extra_protoc_parameters = ["metadata"],
248    grpc_service_config = "texttospeech_grpc_service_config.json",
249    package = "google.cloud.texttospeech.v1",
250    rest_numeric_enums = True,
251    service_yaml = "texttospeech_v1.yaml",
252    transport = "grpc+rest",
253    deps = [],
254)
255
256nodejs_gapic_assembly_pkg(
257    name = "texttospeech-v1-nodejs",
258    deps = [
259        ":texttospeech_nodejs_gapic",
260        ":texttospeech_proto",
261    ],
262)
263
264##############################################################################
265# Ruby
266##############################################################################
267load(
268    "@com_google_googleapis_imports//:imports.bzl",
269    "ruby_cloud_gapic_library",
270    "ruby_gapic_assembly_pkg",
271    "ruby_grpc_library",
272    "ruby_proto_library",
273)
274
275ruby_proto_library(
276    name = "texttospeech_ruby_proto",
277    deps = [":texttospeech_proto"],
278)
279
280ruby_grpc_library(
281    name = "texttospeech_ruby_grpc",
282    srcs = [":texttospeech_proto"],
283    deps = [":texttospeech_ruby_proto"],
284)
285
286ruby_cloud_gapic_library(
287    name = "texttospeech_ruby_gapic",
288    srcs = [":texttospeech_proto_with_info"],
289    extra_protoc_parameters = [
290        "ruby-cloud-api-id=texttospeech.googleapis.com",
291        "ruby-cloud-api-shortname=texttospeech",
292        "ruby-cloud-env-prefix=TEXTTOSPEECH",
293        "ruby-cloud-gem-name=google-cloud-text_to_speech-v1",
294        "ruby-cloud-product-url=https://cloud.google.com/text-to-speech",
295    ],
296    grpc_service_config = "texttospeech_grpc_service_config.json",
297    rest_numeric_enums = True,
298    ruby_cloud_description = "Text-to-Speech converts text or Speech Synthesis Markup Language (SSML) input into audio data of natural human speech.",
299    ruby_cloud_title = "Cloud Text-to-Speech V1",
300    service_yaml = "texttospeech_v1.yaml",
301    transport = "grpc+rest",
302    deps = [
303        ":texttospeech_ruby_grpc",
304        ":texttospeech_ruby_proto",
305    ],
306)
307
308# Open Source Packages
309ruby_gapic_assembly_pkg(
310    name = "google-cloud-texttospeech-v1-ruby",
311    deps = [
312        ":texttospeech_ruby_gapic",
313        ":texttospeech_ruby_grpc",
314        ":texttospeech_ruby_proto",
315    ],
316)
317
318##############################################################################
319# C#
320##############################################################################
321load(
322    "@com_google_googleapis_imports//:imports.bzl",
323    "csharp_gapic_assembly_pkg",
324    "csharp_gapic_library",
325    "csharp_grpc_library",
326    "csharp_proto_library",
327)
328
329csharp_proto_library(
330    name = "texttospeech_csharp_proto",
331    deps = [":texttospeech_proto"],
332)
333
334csharp_grpc_library(
335    name = "texttospeech_csharp_grpc",
336    srcs = [":texttospeech_proto"],
337    deps = [":texttospeech_csharp_proto"],
338)
339
340csharp_gapic_library(
341    name = "texttospeech_csharp_gapic",
342    srcs = [":texttospeech_proto_with_info"],
343    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
344    grpc_service_config = "texttospeech_grpc_service_config.json",
345    rest_numeric_enums = True,
346    service_yaml = "texttospeech_v1.yaml",
347    transport = "grpc+rest",
348    deps = [
349        ":texttospeech_csharp_grpc",
350        ":texttospeech_csharp_proto",
351    ],
352)
353
354# Open Source Packages
355csharp_gapic_assembly_pkg(
356    name = "google-cloud-texttospeech-v1-csharp",
357    deps = [
358        ":texttospeech_csharp_gapic",
359        ":texttospeech_csharp_grpc",
360        ":texttospeech_csharp_proto",
361    ],
362)
363
364##############################################################################
365# C++
366##############################################################################
367load(
368    "@com_google_googleapis_imports//:imports.bzl",
369    "cc_grpc_library",
370    "cc_proto_library",
371)
372
373cc_proto_library(
374    name = "texttospeech_cc_proto",
375    deps = [":texttospeech_proto"],
376)
377
378cc_grpc_library(
379    name = "texttospeech_cc_grpc",
380    srcs = [":texttospeech_proto"],
381    grpc_only = True,
382    deps = [":texttospeech_cc_proto"],
383)
384