Skip to content

Commit bb4d7f4

Browse files
Google APIscopybara-github
authored andcommitted
feat: added Speech-to-Text V2 API proto
The next generation Speech-to-Text V2 API provides the same features clients are familiar with in the existing Speech-to-Text API, while modernizing and simplifying the API using API best practices, resourceful methods, and updated infrastructure. Although this proto is published, the service is not yet available. PiperOrigin-RevId: 474926510
1 parent 9a3dd7a commit bb4d7f4

4 files changed

Lines changed: 2423 additions & 0 deletions

File tree

google/cloud/speech/v2/BUILD.bazel

Lines changed: 384 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,384 @@
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.
13+
package(default_visibility = ["//visibility:public"])
14+
15+
##############################################################################
16+
# Common
17+
##############################################################################
18+
load("@rules_proto//proto:defs.bzl", "proto_library")
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20+
21+
proto_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+
39+
proto_library_with_info(
40+
name = "speech_proto_with_info",
41+
deps = [
42+
":speech_proto",
43+
"//google/cloud:common_resources_proto",
44+
],
45+
)
46+
47+
##############################################################################
48+
# Java
49+
##############################################################################
50+
load(
51+
"@com_google_googleapis_imports//:imports.bzl",
52+
"java_gapic_assembly_gradle_pkg",
53+
"java_gapic_library",
54+
"java_gapic_test",
55+
"java_grpc_library",
56+
"java_proto_library",
57+
)
58+
59+
java_proto_library(
60+
name = "speech_java_proto",
61+
deps = [":speech_proto"],
62+
)
63+
64+
java_grpc_library(
65+
name = "speech_java_grpc",
66+
srcs = [":speech_proto"],
67+
deps = [":speech_java_proto"],
68+
)
69+
70+
java_gapic_library(
71+
name = "speech_java_gapic",
72+
srcs = [":speech_proto_with_info"],
73+
gapic_yaml = None,
74+
grpc_service_config = "speech_grpc_service_config.json",
75+
service_yaml = "speech_v2.yaml",
76+
test_deps = [
77+
":speech_java_grpc",
78+
],
79+
transport = "grpc+rest",
80+
deps = [
81+
":speech_java_proto",
82+
"//google/api:api_java_proto",
83+
],
84+
)
85+
86+
java_gapic_test(
87+
name = "speech_java_gapic_test_suite",
88+
test_classes = [
89+
"com.google.cloud.speech.v2.SpeechClientHttpJsonTest",
90+
"com.google.cloud.speech.v2.SpeechClientTest",
91+
],
92+
runtime_deps = [":speech_java_gapic_test"],
93+
)
94+
95+
# Open Source Packages
96+
java_gapic_assembly_gradle_pkg(
97+
name = "google-cloud-speech-v2-java",
98+
include_samples = True,
99+
transport = "grpc+rest",
100+
deps = [
101+
":speech_java_gapic",
102+
":speech_java_grpc",
103+
":speech_java_proto",
104+
":speech_proto",
105+
],
106+
)
107+
108+
##############################################################################
109+
# Go
110+
##############################################################################
111+
load(
112+
"@com_google_googleapis_imports//:imports.bzl",
113+
"go_gapic_assembly_pkg",
114+
"go_gapic_library",
115+
"go_proto_library",
116+
"go_test",
117+
)
118+
119+
go_proto_library(
120+
name = "speech_go_proto",
121+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
122+
importpath = "google.golang.org/genproto/googleapis/cloud/speech/v2",
123+
protos = [":speech_proto"],
124+
deps = [
125+
"//google/api:annotations_go_proto",
126+
"//google/longrunning:longrunning_go_proto",
127+
"//google/rpc:status_go_proto",
128+
],
129+
)
130+
131+
go_gapic_library(
132+
name = "speech_go_gapic",
133+
srcs = [":speech_proto_with_info"],
134+
grpc_service_config = "speech_grpc_service_config.json",
135+
importpath = "cloud.google.com/go/speech/apiv2;speech",
136+
metadata = True,
137+
rest_numeric_enums = True,
138+
service_yaml = "speech_v2.yaml",
139+
transport = "grpc+rest",
140+
deps = [
141+
":speech_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+
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
146+
],
147+
)
148+
149+
go_test(
150+
name = "speech_go_gapic_test",
151+
srcs = [":speech_go_gapic_srcjar_test"],
152+
embed = [":speech_go_gapic"],
153+
importpath = "cloud.google.com/go/speech/apiv2",
154+
)
155+
156+
# Open Source Packages
157+
go_gapic_assembly_pkg(
158+
name = "gapi-cloud-speech-v2-go",
159+
deps = [
160+
":speech_go_gapic",
161+
":speech_go_gapic_srcjar-metadata.srcjar",
162+
":speech_go_gapic_srcjar-test.srcjar",
163+
":speech_go_proto",
164+
],
165+
)
166+
167+
##############################################################################
168+
# Python
169+
##############################################################################
170+
load(
171+
"@com_google_googleapis_imports//:imports.bzl",
172+
"py_gapic_assembly_pkg",
173+
"py_gapic_library",
174+
"py_test",
175+
)
176+
177+
py_gapic_library(
178+
name = "speech_py_gapic",
179+
srcs = [":speech_proto"],
180+
grpc_service_config = "speech_grpc_service_config.json",
181+
service_yaml = "speech_v2.yaml",
182+
deps = [
183+
],
184+
)
185+
186+
py_test(
187+
name = "speech_py_gapic_test",
188+
srcs = [
189+
"speech_py_gapic_pytest.py",
190+
"speech_py_gapic_test.py",
191+
],
192+
legacy_create_init = False,
193+
deps = [":speech_py_gapic"],
194+
)
195+
196+
# Open Source Packages
197+
py_gapic_assembly_pkg(
198+
name = "speech-v2-py",
199+
deps = [
200+
":speech_py_gapic",
201+
],
202+
)
203+
204+
##############################################################################
205+
# PHP
206+
##############################################################################
207+
load(
208+
"@com_google_googleapis_imports//:imports.bzl",
209+
"php_gapic_assembly_pkg",
210+
"php_gapic_library",
211+
"php_grpc_library",
212+
"php_proto_library",
213+
)
214+
215+
php_proto_library(
216+
name = "speech_php_proto",
217+
deps = [":speech_proto"],
218+
)
219+
220+
php_grpc_library(
221+
name = "speech_php_grpc",
222+
srcs = [":speech_proto"],
223+
deps = [":speech_php_proto"],
224+
)
225+
226+
php_gapic_library(
227+
name = "speech_php_gapic",
228+
srcs = [":speech_proto_with_info"],
229+
grpc_service_config = "speech_grpc_service_config.json",
230+
service_yaml = "speech_v2.yaml",
231+
deps = [
232+
":speech_php_grpc",
233+
":speech_php_proto",
234+
],
235+
)
236+
237+
# Open Source Packages
238+
php_gapic_assembly_pkg(
239+
name = "google-cloud-speech-v2-php",
240+
deps = [
241+
":speech_php_gapic",
242+
":speech_php_grpc",
243+
":speech_php_proto",
244+
],
245+
)
246+
247+
##############################################################################
248+
# Node.js
249+
##############################################################################
250+
load(
251+
"@com_google_googleapis_imports//:imports.bzl",
252+
"nodejs_gapic_assembly_pkg",
253+
"nodejs_gapic_library",
254+
)
255+
256+
nodejs_gapic_library(
257+
name = "speech_nodejs_gapic",
258+
package_name = "@google-cloud/speech",
259+
src = ":speech_proto_with_info",
260+
extra_protoc_parameters = ["metadata"],
261+
grpc_service_config = "speech_grpc_service_config.json",
262+
package = "google.cloud.speech.v2",
263+
service_yaml = "speech_v2.yaml",
264+
deps = [],
265+
)
266+
267+
nodejs_gapic_assembly_pkg(
268+
name = "speech-v2-nodejs",
269+
deps = [
270+
":speech_nodejs_gapic",
271+
":speech_proto",
272+
],
273+
)
274+
275+
##############################################################################
276+
# Ruby
277+
##############################################################################
278+
load(
279+
"@com_google_googleapis_imports//:imports.bzl",
280+
"ruby_cloud_gapic_library",
281+
"ruby_gapic_assembly_pkg",
282+
"ruby_grpc_library",
283+
"ruby_proto_library",
284+
)
285+
286+
ruby_proto_library(
287+
name = "speech_ruby_proto",
288+
deps = [":speech_proto"],
289+
)
290+
291+
ruby_grpc_library(
292+
name = "speech_ruby_grpc",
293+
srcs = [":speech_proto"],
294+
deps = [":speech_ruby_proto"],
295+
)
296+
297+
ruby_cloud_gapic_library(
298+
name = "speech_ruby_gapic",
299+
srcs = [":speech_proto_with_info"],
300+
extra_protoc_parameters = [
301+
"ruby-cloud-gem-name=google-cloud-speech-v2",
302+
],
303+
grpc_service_config = "speech_grpc_service_config.json",
304+
service_yaml = "speech_v2.yaml",
305+
deps = [
306+
":speech_ruby_grpc",
307+
":speech_ruby_proto",
308+
],
309+
)
310+
311+
# Open Source Packages
312+
ruby_gapic_assembly_pkg(
313+
name = "google-cloud-speech-v2-ruby",
314+
deps = [
315+
":speech_ruby_gapic",
316+
":speech_ruby_grpc",
317+
":speech_ruby_proto",
318+
],
319+
)
320+
321+
##############################################################################
322+
# C#
323+
##############################################################################
324+
load(
325+
"@com_google_googleapis_imports//:imports.bzl",
326+
"csharp_gapic_assembly_pkg",
327+
"csharp_gapic_library",
328+
"csharp_grpc_library",
329+
"csharp_proto_library",
330+
)
331+
332+
csharp_proto_library(
333+
name = "speech_csharp_proto",
334+
deps = [":speech_proto"],
335+
)
336+
337+
csharp_grpc_library(
338+
name = "speech_csharp_grpc",
339+
srcs = [":speech_proto"],
340+
deps = [":speech_csharp_proto"],
341+
)
342+
343+
csharp_gapic_library(
344+
name = "speech_csharp_gapic",
345+
srcs = [":speech_proto_with_info"],
346+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
347+
grpc_service_config = "speech_grpc_service_config.json",
348+
service_yaml = "speech_v2.yaml",
349+
deps = [
350+
":speech_csharp_grpc",
351+
":speech_csharp_proto",
352+
],
353+
)
354+
355+
# Open Source Packages
356+
csharp_gapic_assembly_pkg(
357+
name = "google-cloud-speech-v2-csharp",
358+
deps = [
359+
":speech_csharp_gapic",
360+
":speech_csharp_grpc",
361+
":speech_csharp_proto",
362+
],
363+
)
364+
365+
##############################################################################
366+
# C++
367+
##############################################################################
368+
load(
369+
"@com_google_googleapis_imports//:imports.bzl",
370+
"cc_grpc_library",
371+
"cc_proto_library",
372+
)
373+
374+
cc_proto_library(
375+
name = "speech_cc_proto",
376+
deps = [":speech_proto"],
377+
)
378+
379+
cc_grpc_library(
380+
name = "speech_cc_grpc",
381+
srcs = [":speech_proto"],
382+
grpc_only = True,
383+
deps = [":speech_cc_proto"],
384+
)

0 commit comments

Comments
 (0)