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