Skip to content

Commit 9c07d5f

Browse files
Google APIscopybara-github
authored andcommitted
feat: Publish Cloud Batch v1alpha1 API Client
PiperOrigin-RevId: 435137708
1 parent dfdd5ee commit 9c07d5f

7 files changed

Lines changed: 1564 additions & 0 deletions

File tree

Lines changed: 363 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,363 @@
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 = "batch_proto",
23+
srcs = [
24+
"batch.proto",
25+
"job.proto",
26+
"task.proto",
27+
"volume.proto",
28+
],
29+
deps = [
30+
"//google/api:annotations_proto",
31+
"//google/api:client_proto",
32+
"//google/api:field_behavior_proto",
33+
"//google/api:resource_proto",
34+
"//google/longrunning:operations_proto",
35+
"@com_google_protobuf//:duration_proto",
36+
"@com_google_protobuf//:timestamp_proto",
37+
],
38+
)
39+
40+
proto_library_with_info(
41+
name = "batch_proto_with_info",
42+
deps = [
43+
":batch_proto",
44+
"//google/cloud:common_resources_proto",
45+
],
46+
)
47+
48+
##############################################################################
49+
# Java
50+
##############################################################################
51+
load(
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+
60+
java_proto_library(
61+
name = "batch_java_proto",
62+
deps = [":batch_proto"],
63+
)
64+
65+
java_grpc_library(
66+
name = "batch_java_grpc",
67+
srcs = [":batch_proto"],
68+
deps = [":batch_java_proto"],
69+
)
70+
71+
java_gapic_library(
72+
name = "batch_java_gapic",
73+
srcs = [":batch_proto_with_info"],
74+
gapic_yaml = None,
75+
grpc_service_config = "batch_grpc_service_config.json",
76+
service_yaml = "batch_v1alpha1.yaml",
77+
test_deps = [
78+
":batch_java_grpc",
79+
],
80+
deps = [
81+
":batch_java_proto",
82+
"//google/api:api_java_proto",
83+
],
84+
)
85+
86+
java_gapic_test(
87+
name = "batch_java_gapic_test_suite",
88+
test_classes = [
89+
"com.google.cloud.batch.v1alpha1.BatchServiceClientTest",
90+
],
91+
runtime_deps = [":batch_java_gapic_test"],
92+
)
93+
94+
# Open Source Packages
95+
java_gapic_assembly_gradle_pkg(
96+
name = "google-cloud-batch-v1alpha1-java",
97+
deps = [
98+
":batch_java_gapic",
99+
":batch_java_grpc",
100+
":batch_java_proto",
101+
":batch_proto",
102+
],
103+
)
104+
105+
##############################################################################
106+
# Go
107+
##############################################################################
108+
load(
109+
"@com_google_googleapis_imports//:imports.bzl",
110+
"go_gapic_assembly_pkg",
111+
"go_gapic_library",
112+
"go_proto_library",
113+
"go_test",
114+
)
115+
116+
go_proto_library(
117+
name = "batch_go_proto",
118+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
119+
importpath = "google.golang.org/genproto/googleapis/cloud/batch/v1alpha1",
120+
protos = [":batch_proto"],
121+
deps = [
122+
"//google/api:annotations_go_proto",
123+
"//google/longrunning:longrunning_go_proto",
124+
],
125+
)
126+
127+
go_gapic_library(
128+
name = "batch_go_gapic",
129+
srcs = [":batch_proto_with_info"],
130+
grpc_service_config = "batch_grpc_service_config.json",
131+
importpath = "cloud.google.com/go/batch/apiv1alpha1;batch",
132+
service_yaml = "batch_v1alpha1.yaml",
133+
metadata = True,
134+
deps = [
135+
":batch_go_proto",
136+
"//google/longrunning:longrunning_go_proto",
137+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
138+
"@com_google_cloud_go//longrunning:go_default_library",
139+
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
140+
],
141+
)
142+
143+
go_test(
144+
name = "batch_go_gapic_test",
145+
srcs = [":batch_go_gapic_srcjar_test"],
146+
embed = [":batch_go_gapic"],
147+
importpath = "cloud.google.com/go/batch/apiv1alpha1",
148+
)
149+
150+
# Open Source Packages
151+
go_gapic_assembly_pkg(
152+
name = "gapi-cloud-batch-v1alpha1-go",
153+
deps = [
154+
":batch_go_gapic",
155+
":batch_go_gapic_srcjar-test.srcjar",
156+
":batch_go_gapic_srcjar-metadata.srcjar",
157+
":batch_go_proto",
158+
],
159+
)
160+
161+
##############################################################################
162+
# Python
163+
##############################################################################
164+
load(
165+
"@com_google_googleapis_imports//:imports.bzl",
166+
"py_gapic_assembly_pkg",
167+
"py_gapic_library",
168+
)
169+
170+
py_gapic_library(
171+
name = "batch_py_gapic",
172+
srcs = [":batch_proto"],
173+
grpc_service_config = "batch_grpc_service_config.json",
174+
)
175+
176+
# Open Source Packages
177+
py_gapic_assembly_pkg(
178+
name = "batch-v1alpha1-py",
179+
deps = [
180+
":batch_py_gapic",
181+
],
182+
)
183+
184+
##############################################################################
185+
# PHP
186+
##############################################################################
187+
load(
188+
"@com_google_googleapis_imports//:imports.bzl",
189+
"php_gapic_assembly_pkg",
190+
"php_gapic_library",
191+
"php_grpc_library",
192+
"php_proto_library",
193+
)
194+
195+
php_proto_library(
196+
name = "batch_php_proto",
197+
deps = [":batch_proto"],
198+
)
199+
200+
php_grpc_library(
201+
name = "batch_php_grpc",
202+
srcs = [":batch_proto"],
203+
deps = [":batch_php_proto"],
204+
)
205+
206+
php_gapic_library(
207+
name = "batch_php_gapic",
208+
srcs = [":batch_proto_with_info"],
209+
grpc_service_config = "batch_grpc_service_config.json",
210+
service_yaml = "batch_v1alpha1.yaml",
211+
deps = [
212+
":batch_php_grpc",
213+
":batch_php_proto",
214+
],
215+
)
216+
217+
# Open Source Packages
218+
php_gapic_assembly_pkg(
219+
name = "google-cloud-batch-v1alpha1-php",
220+
deps = [
221+
":batch_php_gapic",
222+
":batch_php_grpc",
223+
":batch_php_proto",
224+
],
225+
)
226+
227+
##############################################################################
228+
# Node.js
229+
##############################################################################
230+
load(
231+
"@com_google_googleapis_imports//:imports.bzl",
232+
"nodejs_gapic_assembly_pkg",
233+
"nodejs_gapic_library",
234+
)
235+
236+
nodejs_gapic_library(
237+
name = "batch_nodejs_gapic",
238+
package_name = "@google-cloud/batch",
239+
src = ":batch_proto_with_info",
240+
extra_protoc_parameters = ["metadata"],
241+
grpc_service_config = "batch_grpc_service_config.json",
242+
package = "google.cloud.batch.v1alpha1",
243+
service_yaml = "batch_v1alpha1.yaml",
244+
deps = [],
245+
)
246+
247+
nodejs_gapic_assembly_pkg(
248+
name = "batch-v1alpha1-nodejs",
249+
deps = [
250+
":batch_nodejs_gapic",
251+
":batch_proto",
252+
],
253+
)
254+
255+
##############################################################################
256+
# Ruby
257+
##############################################################################
258+
load(
259+
"@com_google_googleapis_imports//:imports.bzl",
260+
"ruby_gapic_assembly_pkg",
261+
"ruby_cloud_gapic_library",
262+
"ruby_grpc_library",
263+
"ruby_proto_library",
264+
)
265+
266+
ruby_proto_library(
267+
name = "batch_ruby_proto",
268+
deps = [":batch_proto"],
269+
)
270+
271+
ruby_grpc_library(
272+
name = "batch_ruby_grpc",
273+
srcs = [":batch_proto"],
274+
deps = [":batch_ruby_proto"],
275+
)
276+
277+
ruby_cloud_gapic_library(
278+
name = "batch_ruby_gapic",
279+
srcs = [":batch_proto_with_info"],
280+
extra_protoc_parameters = [
281+
"ruby-cloud-gem-name=google-cloud-batch-v1alpha1",
282+
],
283+
grpc_service_config = "batch_grpc_service_config.json",
284+
deps = [
285+
":batch_ruby_grpc",
286+
":batch_ruby_proto",
287+
],
288+
)
289+
290+
# Open Source Packages
291+
ruby_gapic_assembly_pkg(
292+
name = "google-cloud-batch-v1alpha1-ruby",
293+
deps = [
294+
":batch_ruby_gapic",
295+
":batch_ruby_grpc",
296+
":batch_ruby_proto",
297+
],
298+
)
299+
300+
##############################################################################
301+
# C#
302+
##############################################################################
303+
load(
304+
"@com_google_googleapis_imports//:imports.bzl",
305+
"csharp_gapic_assembly_pkg",
306+
"csharp_gapic_library",
307+
"csharp_grpc_library",
308+
"csharp_proto_library",
309+
)
310+
311+
csharp_proto_library(
312+
name = "batch_csharp_proto",
313+
deps = [":batch_proto"],
314+
)
315+
316+
csharp_grpc_library(
317+
name = "batch_csharp_grpc",
318+
srcs = [":batch_proto"],
319+
deps = [":batch_csharp_proto"],
320+
)
321+
322+
csharp_gapic_library(
323+
name = "batch_csharp_gapic",
324+
srcs = [":batch_proto_with_info"],
325+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
326+
grpc_service_config = "batch_grpc_service_config.json",
327+
service_yaml = "batch_v1alpha1.yaml",
328+
deps = [
329+
":batch_csharp_grpc",
330+
":batch_csharp_proto",
331+
],
332+
)
333+
334+
# Open Source Packages
335+
csharp_gapic_assembly_pkg(
336+
name = "google-cloud-batch-v1alpha1-csharp",
337+
deps = [
338+
":batch_csharp_gapic",
339+
":batch_csharp_grpc",
340+
":batch_csharp_proto",
341+
],
342+
)
343+
344+
##############################################################################
345+
# C++
346+
##############################################################################
347+
load(
348+
"@com_google_googleapis_imports//:imports.bzl",
349+
"cc_grpc_library",
350+
"cc_proto_library",
351+
)
352+
353+
cc_proto_library(
354+
name = "batch_cc_proto",
355+
deps = [":batch_proto"],
356+
)
357+
358+
cc_grpc_library(
359+
name = "batch_cc_grpc",
360+
srcs = [":batch_proto"],
361+
grpc_only = True,
362+
deps = [":batch_cc_proto"],
363+
)

0 commit comments

Comments
 (0)