xref: /aosp_15_r20/external/googleapis/google/cloud/speech/v2/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 = "speech_proto",
23    srcs = [
24        "cloud_speech.proto",
25    ],
26    deps = [
27        "//google/api:annotations_proto",
28        "//google/api:client_proto",
29        "//google/api:field_behavior_proto",
30        "//google/api:resource_proto",
31        "//google/longrunning:operations_proto",
32        "//google/rpc:status_proto",
33        "@com_google_protobuf//:duration_proto",
34        "@com_google_protobuf//:field_mask_proto",
35        "@com_google_protobuf//:timestamp_proto",
36    ],
37)
38
39proto_library_with_info(
40    name = "speech_proto_with_info",
41    deps = [
42        ":speech_proto",
43        "//google/cloud:common_resources_proto",
44        "//google/cloud/location:location_proto",
45    ],
46)
47
48##############################################################################
49# Java
50##############################################################################
51load(
52    "@com_google_googleapis_imports//:imports.bzl",
53    "java_gapic_assembly_gradle_pkg",
54    "java_gapic_library",
55    "java_gapic_test",
56    "java_grpc_library",
57    "java_proto_library",
58)
59
60java_proto_library(
61    name = "speech_java_proto",
62    deps = [":speech_proto"],
63)
64
65java_grpc_library(
66    name = "speech_java_grpc",
67    srcs = [":speech_proto"],
68    deps = [":speech_java_proto"],
69)
70
71java_gapic_library(
72    name = "speech_java_gapic",
73    srcs = [":speech_proto_with_info"],
74    gapic_yaml = None,
75    grpc_service_config = "speech_grpc_service_config.json",
76    rest_numeric_enums = True,
77    service_yaml = "speech_v2.yaml",
78    test_deps = [
79        ":speech_java_grpc",
80        "//google/cloud/location:location_java_grpc",
81    ],
82    transport = "grpc+rest",
83    deps = [
84        ":speech_java_proto",
85        "//google/api:api_java_proto",
86        "//google/cloud/location:location_java_proto",
87    ],
88)
89
90java_gapic_test(
91    name = "speech_java_gapic_test_suite",
92    test_classes = [
93        "com.google.cloud.speech.v2.SpeechClientHttpJsonTest",
94        "com.google.cloud.speech.v2.SpeechClientTest",
95    ],
96    runtime_deps = [":speech_java_gapic_test"],
97)
98
99# Open Source Packages
100java_gapic_assembly_gradle_pkg(
101    name = "google-cloud-speech-v2-java",
102    include_samples = True,
103    transport = "grpc+rest",
104    deps = [
105        ":speech_java_gapic",
106        ":speech_java_grpc",
107        ":speech_java_proto",
108        ":speech_proto",
109    ],
110)
111
112##############################################################################
113# Go
114##############################################################################
115load(
116    "@com_google_googleapis_imports//:imports.bzl",
117    "go_gapic_assembly_pkg",
118    "go_gapic_library",
119    "go_proto_library",
120)
121
122go_proto_library(
123    name = "speech_go_proto",
124    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
125    importpath = "cloud.google.com/go/speech/apiv2/speechpb",
126    protos = [":speech_proto"],
127    deps = [
128        "//google/api:annotations_go_proto",
129        "//google/longrunning:longrunning_go_proto",
130        "//google/rpc:status_go_proto",
131    ],
132)
133
134go_gapic_library(
135    name = "speech_go_gapic",
136    srcs = [":speech_proto_with_info"],
137    grpc_service_config = "speech_grpc_service_config.json",
138    importpath = "cloud.google.com/go/speech/apiv2;speech",
139    metadata = True,
140    release_level = "ga",
141    rest_numeric_enums = True,
142    service_yaml = "speech_v2.yaml",
143    transport = "grpc+rest",
144    deps = [
145        ":speech_go_proto",
146        "//google/cloud/location:location_go_proto",
147        "//google/longrunning:longrunning_go_proto",
148        "@com_google_cloud_go_longrunning//:go_default_library",
149        "@com_google_cloud_go_longrunning//autogen:go_default_library",
150        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
151    ],
152)
153
154# Open Source Packages
155go_gapic_assembly_pkg(
156    name = "gapi-cloud-speech-v2-go",
157    deps = [
158        ":speech_go_gapic",
159        ":speech_go_gapic_srcjar-metadata.srcjar",
160        ":speech_go_gapic_srcjar-snippets.srcjar",
161        ":speech_go_gapic_srcjar-test.srcjar",
162        ":speech_go_proto",
163    ],
164)
165
166##############################################################################
167# Python
168##############################################################################
169load(
170    "@com_google_googleapis_imports//:imports.bzl",
171    "py_gapic_assembly_pkg",
172    "py_gapic_library",
173    "py_test",
174)
175
176py_gapic_library(
177    name = "speech_py_gapic",
178    srcs = [":speech_proto"],
179    grpc_service_config = "speech_grpc_service_config.json",
180    rest_numeric_enums = True,
181    service_yaml = "speech_v2.yaml",
182    transport = "grpc+rest",
183    deps = [
184    ],
185)
186
187py_test(
188    name = "speech_py_gapic_test",
189    srcs = [
190        "speech_py_gapic_pytest.py",
191        "speech_py_gapic_test.py",
192    ],
193    legacy_create_init = False,
194    deps = [":speech_py_gapic"],
195)
196
197# Open Source Packages
198py_gapic_assembly_pkg(
199    name = "speech-v2-py",
200    deps = [
201        ":speech_py_gapic",
202    ],
203)
204
205##############################################################################
206# PHP
207##############################################################################
208load(
209    "@com_google_googleapis_imports//:imports.bzl",
210    "php_gapic_assembly_pkg",
211    "php_gapic_library",
212    "php_proto_library",
213)
214
215php_proto_library(
216    name = "speech_php_proto",
217    deps = [":speech_proto"],
218)
219
220php_gapic_library(
221    name = "speech_php_gapic",
222    srcs = [":speech_proto_with_info"],
223    grpc_service_config = "speech_grpc_service_config.json",
224    migration_mode = "MIGRATING",
225    rest_numeric_enums = True,
226    service_yaml = "speech_v2.yaml",
227    transport = "grpc+rest",
228    deps = [
229        ":speech_php_proto",
230    ],
231)
232
233# Open Source Packages
234php_gapic_assembly_pkg(
235    name = "google-cloud-speech-v2-php",
236    deps = [
237        ":speech_php_gapic",
238        ":speech_php_proto",
239    ],
240)
241
242##############################################################################
243# Node.js
244##############################################################################
245load(
246    "@com_google_googleapis_imports//:imports.bzl",
247    "nodejs_gapic_assembly_pkg",
248    "nodejs_gapic_library",
249)
250
251nodejs_gapic_library(
252    name = "speech_nodejs_gapic",
253    package_name = "@google-cloud/speech",
254    src = ":speech_proto_with_info",
255    extra_protoc_parameters = ["metadata"],
256    grpc_service_config = "speech_grpc_service_config.json",
257    package = "google.cloud.speech.v2",
258    rest_numeric_enums = True,
259    service_yaml = "speech_v2.yaml",
260    transport = "grpc+rest",
261    deps = [],
262)
263
264nodejs_gapic_assembly_pkg(
265    name = "speech-v2-nodejs",
266    deps = [
267        ":speech_nodejs_gapic",
268        ":speech_proto",
269    ],
270)
271
272##############################################################################
273# Ruby
274##############################################################################
275load(
276    "@com_google_googleapis_imports//:imports.bzl",
277    "ruby_cloud_gapic_library",
278    "ruby_gapic_assembly_pkg",
279    "ruby_grpc_library",
280    "ruby_proto_library",
281)
282
283ruby_proto_library(
284    name = "speech_ruby_proto",
285    deps = [":speech_proto"],
286)
287
288ruby_grpc_library(
289    name = "speech_ruby_grpc",
290    srcs = [":speech_proto"],
291    deps = [":speech_ruby_proto"],
292)
293
294ruby_cloud_gapic_library(
295    name = "speech_ruby_gapic",
296    srcs = [":speech_proto_with_info"],
297    extra_protoc_parameters = [
298        "ruby-cloud-api-id=speech.googleapis.com",
299        "ruby-cloud-api-shortname=speech",
300        "ruby-cloud-env-prefix=SPEECH",
301        "ruby-cloud-gem-name=google-cloud-speech-v2",
302        "ruby-cloud-product-url=https://cloud.google.com/speech-to-text",
303    ],
304    grpc_service_config = "speech_grpc_service_config.json",
305    rest_numeric_enums = True,
306    ruby_cloud_description = "Google Speech-to-Text enables developers to convert audio to text by applying powerful neural network models in an easy-to-use API. The API recognizes more than 120 languages and variants to support your global user base. You can enable voice command-and-control, transcribe audio from call centers, and more. It can process real-time streaming or prerecorded audio, using Google's machine learning technology.",
307    ruby_cloud_title = "Cloud Speech-to-Text V2",
308    service_yaml = "speech_v2.yaml",
309    transport = "grpc+rest",
310    deps = [
311        ":speech_ruby_grpc",
312        ":speech_ruby_proto",
313    ],
314)
315
316# Open Source Packages
317ruby_gapic_assembly_pkg(
318    name = "google-cloud-speech-v2-ruby",
319    deps = [
320        ":speech_ruby_gapic",
321        ":speech_ruby_grpc",
322        ":speech_ruby_proto",
323    ],
324)
325
326##############################################################################
327# C#
328##############################################################################
329load(
330    "@com_google_googleapis_imports//:imports.bzl",
331    "csharp_gapic_assembly_pkg",
332    "csharp_gapic_library",
333    "csharp_grpc_library",
334    "csharp_proto_library",
335)
336
337csharp_proto_library(
338    name = "speech_csharp_proto",
339    extra_opts = [],
340    deps = [":speech_proto"],
341)
342
343csharp_grpc_library(
344    name = "speech_csharp_grpc",
345    srcs = [":speech_proto"],
346    deps = [":speech_csharp_proto"],
347)
348
349csharp_gapic_library(
350    name = "speech_csharp_gapic",
351    srcs = [":speech_proto_with_info"],
352    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
353    grpc_service_config = "speech_grpc_service_config.json",
354    rest_numeric_enums = True,
355    service_yaml = "speech_v2.yaml",
356    transport = "grpc+rest",
357    deps = [
358        ":speech_csharp_grpc",
359        ":speech_csharp_proto",
360    ],
361)
362
363# Open Source Packages
364csharp_gapic_assembly_pkg(
365    name = "google-cloud-speech-v2-csharp",
366    deps = [
367        ":speech_csharp_gapic",
368        ":speech_csharp_grpc",
369        ":speech_csharp_proto",
370    ],
371)
372
373##############################################################################
374# C++
375##############################################################################
376load(
377    "@com_google_googleapis_imports//:imports.bzl",
378    "cc_grpc_library",
379    "cc_proto_library",
380)
381
382cc_proto_library(
383    name = "speech_cc_proto",
384    deps = [":speech_proto"],
385)
386
387cc_grpc_library(
388    name = "speech_cc_grpc",
389    srcs = [":speech_proto"],
390    grpc_only = True,
391    deps = [":speech_cc_proto"],
392)
393