xref: /aosp_15_r20/external/googleapis/google/cloud/functions/v1/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "functions_proto",
23    srcs = [
24        "functions.proto",
25        "operations.proto",
26    ],
27    deps = [
28        "//google/api:annotations_proto",
29        "//google/api:client_proto",
30        "//google/api:field_behavior_proto",
31        "//google/api:resource_proto",
32        "//google/iam/v1:iam_policy_proto",
33        "//google/iam/v1:policy_proto",
34        "//google/longrunning:operations_proto",
35        "@com_google_protobuf//:any_proto",
36        "@com_google_protobuf//:duration_proto",
37        "@com_google_protobuf//:empty_proto",
38        "@com_google_protobuf//:field_mask_proto",
39        "@com_google_protobuf//:timestamp_proto",
40    ],
41)
42
43proto_library_with_info(
44    name = "functions_proto_with_info",
45    deps = [
46        ":functions_proto",
47        "//google/cloud:common_resources_proto",
48        "//google/cloud/location:location_proto",
49        "//google/iam/v1:iam_policy_proto",
50    ],
51)
52
53##############################################################################
54# Java
55##############################################################################
56load(
57    "@com_google_googleapis_imports//:imports.bzl",
58    "java_gapic_assembly_gradle_pkg",
59    "java_gapic_library",
60    "java_gapic_test",
61    "java_grpc_library",
62    "java_proto_library",
63)
64
65java_proto_library(
66    name = "functions_java_proto",
67    deps = [":functions_proto"],
68)
69
70java_grpc_library(
71    name = "functions_java_grpc",
72    srcs = [":functions_proto"],
73    deps = [":functions_java_proto"],
74)
75
76java_gapic_library(
77    name = "functions_java_gapic",
78    srcs = [":functions_proto_with_info"],
79    gapic_yaml = None,
80    grpc_service_config = "functions_grpc_service_config.json",
81    rest_numeric_enums = True,
82    service_yaml = "cloudfunctions_v1.yaml",
83    test_deps = [
84        ":functions_java_grpc",
85        "//google/cloud/location:location_java_grpc",
86        "//google/iam/v1:iam_java_grpc",
87    ],
88    transport = "grpc+rest",
89    deps = [
90        ":functions_java_proto",
91        "//google/api:api_java_proto",
92        "//google/cloud/location:location_java_proto",
93        "//google/iam/v1:iam_java_proto",
94    ],
95)
96
97java_gapic_test(
98    name = "functions_java_gapic_test_suite",
99    test_classes = [
100        "com.google.cloud.functions.v1.CloudFunctionsServiceClientHttpJsonTest",
101        "com.google.cloud.functions.v1.CloudFunctionsServiceClientTest",
102    ],
103    runtime_deps = [":functions_java_gapic_test"],
104)
105
106# Open Source Packages
107java_gapic_assembly_gradle_pkg(
108    name = "google-cloud-functions-v1-java",
109    include_samples = True,
110    transport = "grpc+rest",
111    deps = [
112        ":functions_java_gapic",
113        ":functions_java_grpc",
114        ":functions_java_proto",
115        ":functions_proto",
116    ],
117)
118
119##############################################################################
120# Go
121##############################################################################
122load(
123    "@com_google_googleapis_imports//:imports.bzl",
124    "go_gapic_assembly_pkg",
125    "go_gapic_library",
126    "go_proto_library",
127)
128
129go_proto_library(
130    name = "functions_go_proto",
131    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
132    importpath = "cloud.google.com/go/functions/apiv1/functionspb",
133    protos = [":functions_proto"],
134    deps = [
135        "//google/api:annotations_go_proto",
136        "//google/iam/v1:iam_go_proto",
137        "//google/longrunning:longrunning_go_proto",
138    ],
139)
140
141go_gapic_library(
142    name = "functions_go_gapic",
143    srcs = [":functions_proto_with_info"],
144    grpc_service_config = "functions_grpc_service_config.json",
145    importpath = "cloud.google.com/go/functions/apiv1;functions",
146    metadata = True,
147    release_level = "ga",
148    rest_numeric_enums = True,
149    service_yaml = "cloudfunctions_v1.yaml",
150    transport = "grpc+rest",
151    deps = [
152        ":functions_go_proto",
153        "//google/cloud/location:location_go_proto",
154        "//google/iam/v1:iam_go_proto",
155        "//google/longrunning:longrunning_go_proto",
156        "@com_google_cloud_go_longrunning//:go_default_library",
157        "@com_google_cloud_go_longrunning//autogen:go_default_library",
158        "@io_bazel_rules_go//proto/wkt:any_go_proto",
159        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
160    ],
161)
162
163# Open Source Packages
164go_gapic_assembly_pkg(
165    name = "gapi-cloud-functions-v1-go",
166    deps = [
167        ":functions_go_gapic",
168        ":functions_go_gapic_srcjar-metadata.srcjar",
169        ":functions_go_gapic_srcjar-snippets.srcjar",
170        ":functions_go_gapic_srcjar-test.srcjar",
171        ":functions_go_proto",
172    ],
173)
174
175##############################################################################
176# Python
177##############################################################################
178load(
179    "@com_google_googleapis_imports//:imports.bzl",
180    "py_gapic_assembly_pkg",
181    "py_gapic_library",
182    "py_test",
183)
184
185py_gapic_library(
186    name = "functions_py_gapic",
187    srcs = [":functions_proto"],
188    grpc_service_config = "functions_grpc_service_config.json",
189    rest_numeric_enums = True,
190    service_yaml = "cloudfunctions_v1.yaml",
191    transport = "grpc+rest",
192    deps = [
193        "//google/iam/v1:iam_policy_py_proto",
194    ],
195)
196
197py_test(
198    name = "functions_py_gapic_test",
199    srcs = [
200        "functions_py_gapic_pytest.py",
201        "functions_py_gapic_test.py",
202    ],
203    legacy_create_init = False,
204    deps = [":functions_py_gapic"],
205)
206
207# Open Source Packages
208py_gapic_assembly_pkg(
209    name = "functions-v1-py",
210    deps = [
211        ":functions_py_gapic",
212    ],
213)
214
215##############################################################################
216# PHP
217##############################################################################
218load(
219    "@com_google_googleapis_imports//:imports.bzl",
220    "php_gapic_assembly_pkg",
221    "php_gapic_library",
222    "php_proto_library",
223)
224
225php_proto_library(
226    name = "functions_php_proto",
227    deps = [":functions_proto"],
228)
229
230php_gapic_library(
231    name = "functions_php_gapic",
232    srcs = [":functions_proto_with_info"],
233    grpc_service_config = "functions_grpc_service_config.json",
234    rest_numeric_enums = True,
235    service_yaml = "cloudfunctions_v1.yaml",
236    transport = "grpc+rest",
237    deps = [":functions_php_proto"],
238)
239
240# Open Source Packages
241php_gapic_assembly_pkg(
242    name = "google-cloud-functions-v1-php",
243    deps = [
244        ":functions_php_gapic",
245        ":functions_php_proto",
246    ],
247)
248
249##############################################################################
250# Node.js
251##############################################################################
252load(
253    "@com_google_googleapis_imports//:imports.bzl",
254    "nodejs_gapic_assembly_pkg",
255    "nodejs_gapic_library",
256)
257
258nodejs_gapic_library(
259    name = "functions_nodejs_gapic",
260    package_name = "@google-cloud/functions",
261    src = ":functions_proto_with_info",
262    extra_protoc_parameters = ["metadata"],
263    grpc_service_config = "functions_grpc_service_config.json",
264    package = "google.cloud.functions.v1",
265    rest_numeric_enums = True,
266    service_yaml = "cloudfunctions_v1.yaml",
267    transport = "grpc+rest",
268    mixins = "google.longrunning.Operations;google.cloud.location.Locations",
269    deps = [],
270)
271
272nodejs_gapic_assembly_pkg(
273    name = "functions-v1-nodejs",
274    deps = [
275        ":functions_nodejs_gapic",
276        ":functions_proto",
277    ],
278)
279
280##############################################################################
281# Ruby
282##############################################################################
283load(
284    "@com_google_googleapis_imports//:imports.bzl",
285    "ruby_cloud_gapic_library",
286    "ruby_gapic_assembly_pkg",
287    "ruby_grpc_library",
288    "ruby_proto_library",
289)
290
291ruby_proto_library(
292    name = "functions_ruby_proto",
293    deps = [":functions_proto"],
294)
295
296ruby_grpc_library(
297    name = "functions_ruby_grpc",
298    srcs = [":functions_proto"],
299    deps = [":functions_ruby_proto"],
300)
301
302ruby_cloud_gapic_library(
303    name = "functions_ruby_gapic",
304    srcs = [":functions_proto_with_info"],
305    extra_protoc_parameters = [
306        "ruby-cloud-api-id=cloudfunctions.googleapis.com",
307        "ruby-cloud-api-shortname=cloudfunctions",
308        "ruby-cloud-env-prefix=FUNCTIONS",
309        "ruby-cloud-gem-name=google-cloud-functions-v1",
310        "ruby-cloud-product-url=https://cloud.google.com/functions",
311    ],
312    grpc_service_config = "functions_grpc_service_config.json",
313    rest_numeric_enums = True,
314    ruby_cloud_description = "The Cloud Functions API manages lightweight user-provided functions executed in response to events.",
315    ruby_cloud_title = "Cloud Functions V1",
316    service_yaml = "cloudfunctions_v1.yaml",
317    transport = "grpc+rest",
318    deps = [
319        ":functions_ruby_grpc",
320        ":functions_ruby_proto",
321    ],
322)
323
324# Open Source Packages
325ruby_gapic_assembly_pkg(
326    name = "google-cloud-functions-v1-ruby",
327    deps = [
328        ":functions_ruby_gapic",
329        ":functions_ruby_grpc",
330        ":functions_ruby_proto",
331    ],
332)
333
334##############################################################################
335# C#
336##############################################################################
337load(
338    "@com_google_googleapis_imports//:imports.bzl",
339    "csharp_gapic_assembly_pkg",
340    "csharp_gapic_library",
341    "csharp_grpc_library",
342    "csharp_proto_library",
343)
344
345csharp_proto_library(
346    name = "functions_csharp_proto",
347    deps = [":functions_proto"],
348)
349
350csharp_grpc_library(
351    name = "functions_csharp_grpc",
352    srcs = [":functions_proto"],
353    deps = [":functions_csharp_proto"],
354)
355
356csharp_gapic_library(
357    name = "functions_csharp_gapic",
358    srcs = [":functions_proto_with_info"],
359    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
360    grpc_service_config = "functions_grpc_service_config.json",
361    rest_numeric_enums = True,
362    service_yaml = "cloudfunctions_v1.yaml",
363    transport = "grpc+rest",
364    deps = [
365        ":functions_csharp_grpc",
366        ":functions_csharp_proto",
367    ],
368)
369
370# Open Source Packages
371csharp_gapic_assembly_pkg(
372    name = "google-cloud-functions-v1-csharp",
373    deps = [
374        ":functions_csharp_gapic",
375        ":functions_csharp_grpc",
376        ":functions_csharp_proto",
377    ],
378)
379
380##############################################################################
381# C++
382##############################################################################
383load(
384    "@com_google_googleapis_imports//:imports.bzl",
385    "cc_grpc_library",
386    "cc_proto_library",
387)
388
389cc_proto_library(
390    name = "functions_cc_proto",
391    deps = [":functions_proto"],
392)
393
394cc_grpc_library(
395    name = "functions_cc_grpc",
396    srcs = [":functions_proto"],
397    grpc_only = True,
398    deps = [":functions_cc_proto"],
399)
400