Skip to content

Commit 90a234c

Browse files
Google APIscopybara-github
authored andcommitted
feat: added Google Batch protos
The initial publish of the Google Batch protos, including both v1 and v1alpha versions. They will be used to generate the client libraries for Google Batch. PiperOrigin-RevId: 453298798
1 parent f8e97f9 commit 90a234c

15 files changed

Lines changed: 3154 additions & 7 deletions

google/cloud/batch/v1/BUILD.bazel

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

0 commit comments

Comments
 (0)