xref: /aosp_15_r20/external/googleapis/google/cloud/alloydb/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 = "alloydb_proto",
23    srcs = [
24        "resources.proto",
25        "service.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/longrunning:operations_proto",
33        "//google/rpc:status_proto",
34        "//google/type:dayofweek_proto",
35        "//google/type:timeofday_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        "@com_google_protobuf//:wrappers_proto",
41    ],
42)
43
44proto_library_with_info(
45    name = "alloydb_proto_with_info",
46    deps = [
47        ":alloydb_proto",
48        "//google/cloud:common_resources_proto",
49        "//google/cloud/location:location_proto",
50        "//google/iam/v1:iam_policy_proto",
51    ],
52)
53
54##############################################################################
55# Java
56##############################################################################
57load(
58    "@com_google_googleapis_imports//:imports.bzl",
59    "java_gapic_assembly_gradle_pkg",
60    "java_gapic_library",
61    "java_gapic_test",
62    "java_grpc_library",
63    "java_proto_library",
64)
65
66java_proto_library(
67    name = "alloydb_java_proto",
68    deps = [":alloydb_proto"],
69)
70
71java_grpc_library(
72    name = "alloydb_java_grpc",
73    srcs = [":alloydb_proto"],
74    deps = [":alloydb_java_proto"],
75)
76
77java_gapic_library(
78    name = "alloydb_java_gapic",
79    srcs = [":alloydb_proto_with_info"],
80    gapic_yaml = None,
81    grpc_service_config = "alloydb_v1_grpc_service_config.json",
82    rest_numeric_enums = True,
83    service_yaml = "alloydb_v1.yaml",
84    test_deps = [
85        ":alloydb_java_grpc",
86        "//google/cloud/location:location_java_grpc",
87        "//google/iam/v1:iam_java_grpc",
88    ],
89    transport = "grpc+rest",
90    deps = [
91        ":alloydb_java_proto",
92        "//google/api:api_java_proto",
93        "//google/cloud/location:location_java_proto",
94        "//google/iam/v1:iam_java_proto",
95    ],
96)
97
98java_gapic_test(
99    name = "alloydb_java_gapic_test_suite",
100    test_classes = [
101        "com.google.cloud.alloydb.v1.AlloyDBAdminClientHttpJsonTest",
102        "com.google.cloud.alloydb.v1.AlloyDBAdminClientTest",
103    ],
104    runtime_deps = [":alloydb_java_gapic_test"],
105)
106
107# Open Source Packages
108java_gapic_assembly_gradle_pkg(
109    name = "google-cloud-alloydb-v1-java",
110    include_samples = True,
111    transport = "grpc+rest",
112    deps = [
113        ":alloydb_java_gapic",
114        ":alloydb_java_grpc",
115        ":alloydb_java_proto",
116        ":alloydb_proto",
117    ],
118)
119
120##############################################################################
121# Go
122##############################################################################
123load(
124    "@com_google_googleapis_imports//:imports.bzl",
125    "go_gapic_assembly_pkg",
126    "go_gapic_library",
127    "go_proto_library",
128)
129
130go_proto_library(
131    name = "alloydb_go_proto",
132    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
133    importpath = "cloud.google.com/go/alloydb/apiv1/alloydbpb",
134    protos = [":alloydb_proto"],
135    deps = [
136        "//google/api:annotations_go_proto",
137        "//google/longrunning:longrunning_go_proto",
138        "//google/rpc:status_go_proto",
139        "//google/type:dayofweek_go_proto",
140        "//google/type:timeofday_go_proto",
141    ],
142)
143
144go_gapic_library(
145    name = "alloydb_go_gapic",
146    srcs = [":alloydb_proto_with_info"],
147    grpc_service_config = "alloydb_v1_grpc_service_config.json",
148    importpath = "cloud.google.com/go/alloydb/apiv1;alloydb",
149    metadata = True,
150    release_level = "ga",
151    rest_numeric_enums = True,
152    service_yaml = "alloydb_v1.yaml",
153    transport = "grpc+rest",
154    deps = [
155        ":alloydb_go_proto",
156        "//google/cloud/location:location_go_proto",
157        "//google/iam/v1:iam_go_proto",
158        "//google/longrunning:longrunning_go_proto",
159        "@com_google_cloud_go_longrunning//:go_default_library",
160        "@com_google_cloud_go_longrunning//autogen:go_default_library",
161        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
162    ],
163)
164
165# Open Source Packages
166go_gapic_assembly_pkg(
167    name = "gapi-cloud-alloydb-v1-go",
168    deps = [
169        ":alloydb_go_gapic",
170        ":alloydb_go_gapic_srcjar-metadata.srcjar",
171        ":alloydb_go_gapic_srcjar-snippets.srcjar",
172        ":alloydb_go_gapic_srcjar-test.srcjar",
173        ":alloydb_go_proto",
174    ],
175)
176
177##############################################################################
178# Python
179##############################################################################
180load(
181    "@com_google_googleapis_imports//:imports.bzl",
182    "py_gapic_assembly_pkg",
183    "py_gapic_library",
184    "py_test",
185)
186
187py_gapic_library(
188    name = "alloydb_py_gapic",
189    srcs = [":alloydb_proto"],
190    grpc_service_config = "alloydb_v1_grpc_service_config.json",
191    rest_numeric_enums = True,
192    service_yaml = "alloydb_v1.yaml",
193    transport = "grpc+rest",
194    deps = [
195        "//google/iam/v1:iam_policy_py_proto",
196    ],
197)
198
199py_test(
200    name = "alloydb_py_gapic_test",
201    srcs = [
202        "alloydb_py_gapic_pytest.py",
203        "alloydb_py_gapic_test.py",
204    ],
205    legacy_create_init = False,
206    deps = [":alloydb_py_gapic"],
207)
208
209# Open Source Packages
210py_gapic_assembly_pkg(
211    name = "alloydb-v1-py",
212    deps = [
213        ":alloydb_py_gapic",
214    ],
215)
216
217##############################################################################
218# PHP
219##############################################################################
220load(
221    "@com_google_googleapis_imports//:imports.bzl",
222    "php_gapic_assembly_pkg",
223    "php_gapic_library",
224    "php_proto_library",
225)
226
227php_proto_library(
228    name = "alloydb_php_proto",
229    deps = [":alloydb_proto"],
230)
231
232php_gapic_library(
233    name = "alloydb_php_gapic",
234    srcs = [":alloydb_proto_with_info"],
235    grpc_service_config = "alloydb_v1_grpc_service_config.json",
236    migration_mode = "MIGRATING",
237    rest_numeric_enums = True,
238    service_yaml = "alloydb_v1.yaml",
239    transport = "grpc+rest",
240    deps = [":alloydb_php_proto"],
241)
242
243# Open Source Packages
244php_gapic_assembly_pkg(
245    name = "google-cloud-alloydb-v1-php",
246    deps = [
247        ":alloydb_php_gapic",
248        ":alloydb_php_proto",
249    ],
250)
251
252##############################################################################
253# Node.js
254##############################################################################
255load(
256    "@com_google_googleapis_imports//:imports.bzl",
257    "nodejs_gapic_assembly_pkg",
258    "nodejs_gapic_library",
259)
260
261nodejs_gapic_library(
262    name = "alloydb_nodejs_gapic",
263    package_name = "@google-cloud/alloydb",
264    src = ":alloydb_proto_with_info",
265    extra_protoc_parameters = ["metadata"],
266    grpc_service_config = "alloydb_v1_grpc_service_config.json",
267    package = "google.cloud.alloydb.v1",
268    rest_numeric_enums = True,
269    service_yaml = "alloydb_v1.yaml",
270    transport = "grpc+rest",
271    deps = [],
272)
273
274nodejs_gapic_assembly_pkg(
275    name = "alloydb-v1-nodejs",
276    deps = [
277        ":alloydb_nodejs_gapic",
278        ":alloydb_proto",
279    ],
280)
281
282##############################################################################
283# Ruby
284##############################################################################
285load(
286    "@com_google_googleapis_imports//:imports.bzl",
287    "ruby_cloud_gapic_library",
288    "ruby_gapic_assembly_pkg",
289    "ruby_grpc_library",
290    "ruby_proto_library",
291)
292
293ruby_proto_library(
294    name = "alloydb_ruby_proto",
295    deps = [":alloydb_proto"],
296)
297
298ruby_grpc_library(
299    name = "alloydb_ruby_grpc",
300    srcs = [":alloydb_proto"],
301    deps = [":alloydb_ruby_proto"],
302)
303
304ruby_cloud_gapic_library(
305    name = "alloydb_ruby_gapic",
306    srcs = [":alloydb_proto_with_info"],
307    extra_protoc_parameters = [
308        "ruby-cloud-gem-name=google-cloud-alloy_db-v1",
309        "ruby-cloud-gem-namespace=Google::Cloud::AlloyDB::V1",
310    ],
311    grpc_service_config = "alloydb_v1_grpc_service_config.json",
312    rest_numeric_enums = True,
313    service_yaml = "alloydb_v1.yaml",
314    transport = "grpc+rest",
315    deps = [
316        ":alloydb_ruby_grpc",
317        ":alloydb_ruby_proto",
318    ],
319)
320
321# Open Source Packages
322ruby_gapic_assembly_pkg(
323    name = "google-cloud-alloydb-v1-ruby",
324    deps = [
325        ":alloydb_ruby_gapic",
326        ":alloydb_ruby_grpc",
327        ":alloydb_ruby_proto",
328    ],
329)
330
331##############################################################################
332# C#
333##############################################################################
334load(
335    "@com_google_googleapis_imports//:imports.bzl",
336    "csharp_gapic_assembly_pkg",
337    "csharp_gapic_library",
338    "csharp_grpc_library",
339    "csharp_proto_library",
340)
341
342csharp_proto_library(
343    name = "alloydb_csharp_proto",
344    deps = [":alloydb_proto"],
345)
346
347csharp_grpc_library(
348    name = "alloydb_csharp_grpc",
349    srcs = [":alloydb_proto"],
350    deps = [":alloydb_csharp_proto"],
351)
352
353csharp_gapic_library(
354    name = "alloydb_csharp_gapic",
355    srcs = [":alloydb_proto_with_info"],
356    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
357    grpc_service_config = "alloydb_v1_grpc_service_config.json",
358    rest_numeric_enums = True,
359    service_yaml = "alloydb_v1.yaml",
360    deps = [
361        ":alloydb_csharp_grpc",
362        ":alloydb_csharp_proto",
363    ],
364)
365
366# Open Source Packages
367csharp_gapic_assembly_pkg(
368    name = "google-cloud-alloydb-v1-csharp",
369    deps = [
370        ":alloydb_csharp_gapic",
371        ":alloydb_csharp_grpc",
372        ":alloydb_csharp_proto",
373    ],
374)
375
376##############################################################################
377# C++
378##############################################################################
379load(
380    "@com_google_googleapis_imports//:imports.bzl",
381    "cc_grpc_library",
382    "cc_proto_library",
383)
384
385cc_proto_library(
386    name = "alloydb_cc_proto",
387    deps = [":alloydb_proto"],
388)
389
390cc_grpc_library(
391    name = "alloydb_cc_grpc",
392    srcs = [":alloydb_proto"],
393    grpc_only = True,
394    deps = [":alloydb_cc_proto"],
395)
396