Skip to content

Commit 0481138

Browse files
Google APIscopybara-github
authored andcommitted
feat: publishing Testing API protos
Committer: @alexander-fenster PiperOrigin-RevId: 379505638
1 parent cbd13d8 commit 0481138

6 files changed

Lines changed: 2250 additions & 0 deletions

File tree

Lines changed: 349 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,349 @@
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 = "testing_proto",
23+
srcs = [
24+
"application_details.proto",
25+
"test_environment_discovery.proto",
26+
"test_execution.proto",
27+
],
28+
deps = [
29+
"//google/api:annotations_proto",
30+
"//google/api:client_proto",
31+
"//google/api:field_behavior_proto",
32+
"//google/type:date_proto",
33+
"@com_google_protobuf//:duration_proto",
34+
"@com_google_protobuf//:timestamp_proto",
35+
],
36+
)
37+
38+
proto_library_with_info(
39+
name = "testing_proto_with_info",
40+
deps = [
41+
":testing_proto",
42+
"//google/cloud:common_resources_proto",
43+
],
44+
)
45+
46+
##############################################################################
47+
# Java
48+
##############################################################################
49+
load(
50+
"@com_google_googleapis_imports//:imports.bzl",
51+
"java_gapic_assembly_gradle_pkg",
52+
"java_gapic_library",
53+
"java_gapic_test",
54+
"java_grpc_library",
55+
"java_proto_library",
56+
)
57+
58+
java_proto_library(
59+
name = "testing_java_proto",
60+
deps = [":testing_proto"],
61+
)
62+
63+
java_grpc_library(
64+
name = "testing_java_grpc",
65+
srcs = [":testing_proto"],
66+
deps = [":testing_java_proto"],
67+
)
68+
69+
java_gapic_library(
70+
name = "testing_java_gapic",
71+
srcs = [":testing_proto_with_info"],
72+
grpc_service_config = "testing_grpc_service_config.json",
73+
test_deps = [
74+
":testing_java_grpc",
75+
],
76+
deps = [
77+
":testing_java_proto",
78+
],
79+
)
80+
81+
java_gapic_test(
82+
name = "testing_java_gapic_test_suite",
83+
test_classes = [
84+
"com.google.devtools.testing.v1.ApplicationDetailServiceClientTest",
85+
"com.google.devtools.testing.v1.TestEnvironmentDiscoveryServiceClientTest",
86+
"com.google.devtools.testing.v1.TestExecutionServiceClientTest",
87+
],
88+
runtime_deps = [":testing_java_gapic_test"],
89+
)
90+
91+
# Open Source Packages
92+
java_gapic_assembly_gradle_pkg(
93+
name = "google-cloud-devtools-testing-v1-java",
94+
deps = [
95+
":testing_java_gapic",
96+
":testing_java_grpc",
97+
":testing_java_proto",
98+
":testing_proto",
99+
],
100+
)
101+
102+
##############################################################################
103+
# Go
104+
##############################################################################
105+
#
106+
# Commented out because of a build failure:
107+
# bazel-out/k8-fastbuild/bin/google/devtools/testing/v1/testing_go_gapic_srcjar_main.go/cloud.google.com/go/devtools/testing/apiv1/test_environment_discovery_client.go:23:2: imported and not used: "net/url"
108+
# compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/compile: exit status 2
109+
#
110+
# load(
111+
# "@com_google_googleapis_imports//:imports.bzl",
112+
# "go_gapic_assembly_pkg",
113+
# "go_gapic_library",
114+
# "go_proto_library",
115+
# "go_test",
116+
# )
117+
118+
# go_proto_library(
119+
# name = "testing_go_proto",
120+
# compilers = ["@io_bazel_rules_go//proto:go_grpc"],
121+
# importpath = "google.golang.org/genproto/googleapis/devtools/testing/v1",
122+
# protos = [":testing_proto"],
123+
# deps = [
124+
# "//google/api:annotations_go_proto",
125+
# "//google/type:date_go_proto",
126+
# ],
127+
# )
128+
129+
# go_gapic_library(
130+
# name = "testing_go_gapic",
131+
# srcs = [":testing_proto_with_info"],
132+
# grpc_service_config = "testing_grpc_service_config.json",
133+
# importpath = "cloud.google.com/go/devtools/testing/apiv1;testing",
134+
# service_yaml = "testing_v1.yaml",
135+
# metadata = True,
136+
# deps = [
137+
# ":testing_go_proto",
138+
# "@io_bazel_rules_go//proto/wkt:duration_go_proto",
139+
# ],
140+
# )
141+
142+
# go_test(
143+
# name = "testing_go_gapic_test",
144+
# srcs = [":testing_go_gapic_srcjar_test"],
145+
# embed = [":testing_go_gapic"],
146+
# importpath = "cloud.google.com/go/devtools/testing/apiv1",
147+
# )
148+
149+
# # Open Source Packages
150+
# go_gapic_assembly_pkg(
151+
# name = "gapi-cloud-devtools-testing-v1-go",
152+
# deps = [
153+
# ":testing_go_gapic",
154+
# ":testing_go_gapic_srcjar-test.srcjar",
155+
# ":testing_go_gapic_srcjar-metadata.srcjar",
156+
# ":testing_go_proto",
157+
# ],
158+
# )
159+
160+
##############################################################################
161+
# Python
162+
##############################################################################
163+
load(
164+
"@com_google_googleapis_imports//:imports.bzl",
165+
"py_gapic_assembly_pkg",
166+
"py_gapic_library",
167+
)
168+
169+
py_gapic_library(
170+
name = "testing_py_gapic",
171+
srcs = [":testing_proto"],
172+
grpc_service_config = "testing_grpc_service_config.json",
173+
)
174+
175+
# Open Source Packages
176+
py_gapic_assembly_pkg(
177+
name = "devtools-testing-v1-py",
178+
deps = [
179+
":testing_py_gapic",
180+
],
181+
)
182+
183+
##############################################################################
184+
# PHP
185+
##############################################################################
186+
load(
187+
"@com_google_googleapis_imports//:imports.bzl",
188+
"php_gapic_assembly_pkg",
189+
"php_gapic_library",
190+
"php_grpc_library",
191+
"php_proto_library",
192+
)
193+
194+
php_proto_library(
195+
name = "testing_php_proto",
196+
deps = [":testing_proto"],
197+
)
198+
199+
php_grpc_library(
200+
name = "testing_php_grpc",
201+
srcs = [":testing_proto"],
202+
deps = [":testing_php_proto"],
203+
)
204+
205+
php_gapic_library(
206+
name = "testing_php_gapic",
207+
srcs = [":testing_proto_with_info"],
208+
grpc_service_config = "testing_grpc_service_config.json",
209+
service_yaml = "testing_v1.yaml",
210+
deps = [
211+
":testing_php_grpc",
212+
":testing_php_proto",
213+
],
214+
)
215+
216+
# Open Source Packages
217+
php_gapic_assembly_pkg(
218+
name = "google-cloud-devtools-testing-v1-php",
219+
deps = [
220+
":testing_php_gapic",
221+
":testing_php_grpc",
222+
":testing_php_proto",
223+
],
224+
)
225+
226+
##############################################################################
227+
# Node.js
228+
##############################################################################
229+
load(
230+
"@com_google_googleapis_imports//:imports.bzl",
231+
"nodejs_gapic_assembly_pkg",
232+
"nodejs_gapic_library",
233+
)
234+
235+
nodejs_gapic_library(
236+
name = "testing_nodejs_gapic",
237+
package_name = "@google-cloud/testing",
238+
src = ":testing_proto_with_info",
239+
extra_protoc_parameters = ["metadata"],
240+
grpc_service_config = "testing_grpc_service_config.json",
241+
package = "google.devtools.testing.v1",
242+
service_yaml = "testing_v1.yaml",
243+
deps = [],
244+
)
245+
246+
nodejs_gapic_assembly_pkg(
247+
name = "devtools-testing-v1-nodejs",
248+
deps = [
249+
":testing_nodejs_gapic",
250+
":testing_proto",
251+
],
252+
)
253+
254+
##############################################################################
255+
# Ruby
256+
##############################################################################
257+
load(
258+
"@com_google_googleapis_imports//:imports.bzl",
259+
"ruby_gapic_assembly_pkg",
260+
"ruby_cloud_gapic_library",
261+
"ruby_grpc_library",
262+
"ruby_proto_library",
263+
)
264+
265+
ruby_proto_library(
266+
name = "testing_ruby_proto",
267+
deps = [":testing_proto"],
268+
)
269+
270+
ruby_grpc_library(
271+
name = "testing_ruby_grpc",
272+
srcs = [":testing_proto"],
273+
deps = [":testing_ruby_proto"],
274+
)
275+
276+
ruby_cloud_gapic_library(
277+
name = "testing_ruby_gapic",
278+
srcs = [":testing_proto_with_info"],
279+
extra_protoc_parameters = [
280+
"ruby-cloud-gem-name=google-cloud-devtools-testing-v1",
281+
],
282+
grpc_service_config = "testing_grpc_service_config.json",
283+
deps = [
284+
":testing_ruby_grpc",
285+
":testing_ruby_proto",
286+
],
287+
)
288+
289+
# Open Source Packages
290+
ruby_gapic_assembly_pkg(
291+
name = "google-cloud-devtools-testing-v1-ruby",
292+
deps = [
293+
":testing_ruby_gapic",
294+
":testing_ruby_grpc",
295+
":testing_ruby_proto",
296+
],
297+
)
298+
299+
##############################################################################
300+
# C#
301+
##############################################################################
302+
#
303+
# Commented out until enum path segments are supported.
304+
# --gapic_out: System.InvalidOperationException: Path in http url must resolve to a string field: 'environment_type'.
305+
#
306+
# load(
307+
# "@com_google_googleapis_imports//:imports.bzl",
308+
# "csharp_gapic_assembly_pkg",
309+
# "csharp_gapic_library",
310+
# "csharp_grpc_library",
311+
# "csharp_proto_library",
312+
# )
313+
314+
# csharp_proto_library(
315+
# name = "testing_csharp_proto",
316+
# deps = [":testing_proto"],
317+
# )
318+
319+
# csharp_grpc_library(
320+
# name = "testing_csharp_grpc",
321+
# srcs = [":testing_proto"],
322+
# deps = [":testing_csharp_proto"],
323+
# )
324+
325+
# csharp_gapic_library(
326+
# name = "testing_csharp_gapic",
327+
# srcs = [":testing_proto_with_info"],
328+
# common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
329+
# grpc_service_config = "testing_grpc_service_config.json",
330+
# deps = [
331+
# ":testing_csharp_grpc",
332+
# ":testing_csharp_proto",
333+
# ],
334+
# )
335+
336+
# # Open Source Packages
337+
# csharp_gapic_assembly_pkg(
338+
# name = "google-cloud-devtools-testing-v1-csharp",
339+
# deps = [
340+
# ":testing_csharp_gapic",
341+
# ":testing_csharp_grpc",
342+
# ":testing_csharp_proto",
343+
# ],
344+
# )
345+
346+
##############################################################################
347+
# C++
348+
##############################################################################
349+
# Put your C++ rules here

0 commit comments

Comments
 (0)