Skip to content

Commit 05576c8

Browse files
Google APIscopybara-github
authored andcommitted
feat: generating GAPIC libraries for Google Cloud Functions v2beta
PiperOrigin-RevId: 454900284
1 parent b416c4c commit 05576c8

4 files changed

Lines changed: 1538 additions & 0 deletions

File tree

Lines changed: 370 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,370 @@
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 = "functions_proto",
23+
srcs = [
24+
"functions.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+
"@com_google_protobuf//:any_proto",
33+
"@com_google_protobuf//:field_mask_proto",
34+
"@com_google_protobuf//:timestamp_proto",
35+
],
36+
)
37+
38+
proto_library_with_info(
39+
name = "functions_proto_with_info",
40+
deps = [
41+
":functions_proto",
42+
"//google/cloud/location:location_proto",
43+
"//google/cloud:common_resources_proto",
44+
"//google/iam/v1:iam_policy_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 = "functions_java_proto",
62+
deps = [":functions_proto"],
63+
)
64+
65+
java_grpc_library(
66+
name = "functions_java_grpc",
67+
srcs = [":functions_proto"],
68+
deps = [":functions_java_proto"],
69+
)
70+
71+
java_gapic_library(
72+
name = "functions_java_gapic",
73+
srcs = [":functions_proto_with_info"],
74+
gapic_yaml = None,
75+
grpc_service_config = "functions_grpc_service_config.json",
76+
service_yaml = "cloudfunctions_v2beta.yaml",
77+
test_deps = [
78+
":functions_java_grpc",
79+
"//google/cloud/location:location_java_grpc",
80+
"//google/iam/v1:iam_java_grpc",
81+
],
82+
deps = [
83+
":functions_java_proto",
84+
"//google/api:api_java_proto",
85+
"//google/cloud/location:location_java_proto",
86+
"//google/iam/v1:iam_java_proto",
87+
],
88+
)
89+
90+
java_gapic_test(
91+
name = "functions_java_gapic_test_suite",
92+
test_classes = [
93+
"com.google.cloud.functions.v2beta.FunctionServiceClientTest",
94+
],
95+
runtime_deps = [":functions_java_gapic_test"],
96+
)
97+
98+
# Open Source Packages
99+
java_gapic_assembly_gradle_pkg(
100+
name = "google-cloud-functions-v2beta-java",
101+
deps = [
102+
":functions_java_gapic",
103+
":functions_java_grpc",
104+
":functions_java_proto",
105+
":functions_proto",
106+
],
107+
)
108+
109+
##############################################################################
110+
# Go
111+
##############################################################################
112+
load(
113+
"@com_google_googleapis_imports//:imports.bzl",
114+
"go_gapic_assembly_pkg",
115+
"go_gapic_library",
116+
"go_proto_library",
117+
"go_test",
118+
)
119+
120+
go_proto_library(
121+
name = "functions_go_proto",
122+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
123+
importpath = "google.golang.org/genproto/googleapis/cloud/functions/v2beta",
124+
protos = [":functions_proto"],
125+
deps = [
126+
"//google/api:annotations_go_proto",
127+
"//google/longrunning:longrunning_go_proto",
128+
],
129+
)
130+
131+
go_gapic_library(
132+
name = "functions_go_gapic",
133+
srcs = [":functions_proto_with_info"],
134+
grpc_service_config = "functions_grpc_service_config.json",
135+
importpath = "cloud.google.com/go/functions/apiv2beta;functions",
136+
service_yaml = "cloudfunctions_v2beta.yaml",
137+
metadata = True,
138+
deps = [
139+
":functions_go_proto",
140+
"//google/cloud/location:location_go_proto",
141+
"//google/iam/v1:iam_go_proto",
142+
"//google/longrunning:longrunning_go_proto",
143+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
144+
"@com_google_cloud_go//longrunning:go_default_library",
145+
"@io_bazel_rules_go//proto/wkt:any_go_proto",
146+
],
147+
)
148+
149+
go_test(
150+
name = "functions_go_gapic_test",
151+
srcs = [":functions_go_gapic_srcjar_test"],
152+
embed = [":functions_go_gapic"],
153+
importpath = "cloud.google.com/go/functions/apiv2beta",
154+
)
155+
156+
# Open Source Packages
157+
go_gapic_assembly_pkg(
158+
name = "gapi-cloud-functions-v2beta-go",
159+
deps = [
160+
":functions_go_gapic",
161+
":functions_go_gapic_srcjar-test.srcjar",
162+
":functions_go_gapic_srcjar-metadata.srcjar",
163+
":functions_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+
)
175+
176+
py_gapic_library(
177+
name = "functions_py_gapic",
178+
srcs = [":functions_proto"],
179+
grpc_service_config = "functions_grpc_service_config.json",
180+
service_yaml = "cloudfunctions_v2beta.yaml",
181+
)
182+
183+
# Open Source Packages
184+
py_gapic_assembly_pkg(
185+
name = "functions-v2beta-py",
186+
deps = [
187+
":functions_py_gapic",
188+
],
189+
)
190+
191+
##############################################################################
192+
# PHP
193+
##############################################################################
194+
load(
195+
"@com_google_googleapis_imports//:imports.bzl",
196+
"php_gapic_assembly_pkg",
197+
"php_gapic_library",
198+
"php_grpc_library",
199+
"php_proto_library",
200+
)
201+
202+
php_proto_library(
203+
name = "functions_php_proto",
204+
deps = [":functions_proto"],
205+
)
206+
207+
php_grpc_library(
208+
name = "functions_php_grpc",
209+
srcs = [":functions_proto"],
210+
deps = [":functions_php_proto"],
211+
)
212+
213+
php_gapic_library(
214+
name = "functions_php_gapic",
215+
srcs = [":functions_proto_with_info"],
216+
grpc_service_config = "functions_grpc_service_config.json",
217+
service_yaml = "cloudfunctions_v2beta.yaml",
218+
deps = [
219+
":functions_php_grpc",
220+
":functions_php_proto",
221+
],
222+
)
223+
224+
# Open Source Packages
225+
php_gapic_assembly_pkg(
226+
name = "google-cloud-functions-v2beta-php",
227+
deps = [
228+
":functions_php_gapic",
229+
":functions_php_grpc",
230+
":functions_php_proto",
231+
],
232+
)
233+
234+
##############################################################################
235+
# Node.js
236+
##############################################################################
237+
load(
238+
"@com_google_googleapis_imports//:imports.bzl",
239+
"nodejs_gapic_assembly_pkg",
240+
"nodejs_gapic_library",
241+
)
242+
243+
nodejs_gapic_library(
244+
name = "functions_nodejs_gapic",
245+
package_name = "@google-cloud/functions",
246+
src = ":functions_proto_with_info",
247+
extra_protoc_parameters = ["metadata"],
248+
grpc_service_config = "functions_grpc_service_config.json",
249+
package = "google.cloud.functions.v2beta",
250+
service_yaml = "cloudfunctions_v2beta.yaml",
251+
deps = [],
252+
)
253+
254+
nodejs_gapic_assembly_pkg(
255+
name = "functions-v2beta-nodejs",
256+
deps = [
257+
":functions_nodejs_gapic",
258+
":functions_proto",
259+
],
260+
)
261+
262+
##############################################################################
263+
# Ruby
264+
##############################################################################
265+
load(
266+
"@com_google_googleapis_imports//:imports.bzl",
267+
"ruby_gapic_assembly_pkg",
268+
"ruby_cloud_gapic_library",
269+
"ruby_grpc_library",
270+
"ruby_proto_library",
271+
)
272+
273+
ruby_proto_library(
274+
name = "functions_ruby_proto",
275+
deps = [":functions_proto"],
276+
)
277+
278+
ruby_grpc_library(
279+
name = "functions_ruby_grpc",
280+
srcs = [":functions_proto"],
281+
deps = [":functions_ruby_proto"],
282+
)
283+
284+
ruby_cloud_gapic_library(
285+
name = "functions_ruby_gapic",
286+
srcs = [":functions_proto_with_info"],
287+
extra_protoc_parameters = [
288+
"ruby-cloud-gem-name=google-cloud-functions-v2beta",
289+
],
290+
grpc_service_config = "functions_grpc_service_config.json",
291+
deps = [
292+
":functions_ruby_grpc",
293+
":functions_ruby_proto",
294+
],
295+
)
296+
297+
# Open Source Packages
298+
ruby_gapic_assembly_pkg(
299+
name = "google-cloud-functions-v2beta-ruby",
300+
deps = [
301+
":functions_ruby_gapic",
302+
":functions_ruby_grpc",
303+
":functions_ruby_proto",
304+
],
305+
)
306+
307+
##############################################################################
308+
# C#
309+
##############################################################################
310+
load(
311+
"@com_google_googleapis_imports//:imports.bzl",
312+
"csharp_gapic_assembly_pkg",
313+
"csharp_gapic_library",
314+
"csharp_grpc_library",
315+
"csharp_proto_library",
316+
)
317+
318+
csharp_proto_library(
319+
name = "functions_csharp_proto",
320+
deps = [":functions_proto"],
321+
)
322+
323+
csharp_grpc_library(
324+
name = "functions_csharp_grpc",
325+
srcs = [":functions_proto"],
326+
deps = [":functions_csharp_proto"],
327+
)
328+
329+
csharp_gapic_library(
330+
name = "functions_csharp_gapic",
331+
srcs = [":functions_proto_with_info"],
332+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
333+
grpc_service_config = "functions_grpc_service_config.json",
334+
service_yaml = "cloudfunctions_v2beta.yaml",
335+
deps = [
336+
":functions_csharp_grpc",
337+
":functions_csharp_proto",
338+
],
339+
)
340+
341+
# Open Source Packages
342+
csharp_gapic_assembly_pkg(
343+
name = "google-cloud-functions-v2beta-csharp",
344+
deps = [
345+
":functions_csharp_gapic",
346+
":functions_csharp_grpc",
347+
":functions_csharp_proto",
348+
],
349+
)
350+
351+
##############################################################################
352+
# C++
353+
##############################################################################
354+
load(
355+
"@com_google_googleapis_imports//:imports.bzl",
356+
"cc_grpc_library",
357+
"cc_proto_library",
358+
)
359+
360+
cc_proto_library(
361+
name = "functions_cc_proto",
362+
deps = [":functions_proto"],
363+
)
364+
365+
cc_grpc_library(
366+
name = "functions_cc_grpc",
367+
srcs = [":functions_proto"],
368+
grpc_only = True,
369+
deps = [":functions_cc_proto"],
370+
)

0 commit comments

Comments
 (0)