xref: /aosp_15_r20/external/googleapis/google/cloud/vpcaccess/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 = "vpcaccess_proto",
23    srcs = [
24        "vpc_access.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//:empty_proto",
33        "@com_google_protobuf//:timestamp_proto",
34    ],
35)
36
37proto_library_with_info(
38    name = "vpcaccess_proto_with_info",
39    deps = [
40        ":vpcaccess_proto",
41        "//google/cloud:common_resources_proto",
42        "//google/cloud/location:location_proto",
43    ],
44)
45
46##############################################################################
47# Java
48##############################################################################
49load(
50    "@com_google_googleapis_imports//:imports.bzl",
51    "java_gapic_assembly_gradle_pkg",
52    "java_gapic_library",
53    "java_gapic_test",
54    "java_grpc_library",
55    "java_proto_library",
56)
57
58java_proto_library(
59    name = "vpcaccess_java_proto",
60    deps = [":vpcaccess_proto"],
61)
62
63java_grpc_library(
64    name = "vpcaccess_java_grpc",
65    srcs = [":vpcaccess_proto"],
66    deps = [":vpcaccess_java_proto"],
67)
68
69java_gapic_library(
70    name = "vpcaccess_java_gapic",
71    srcs = [":vpcaccess_proto_with_info"],
72    gapic_yaml = None,
73    grpc_service_config = "vpcaccess_grpc_service_config.json",
74    rest_numeric_enums = True,
75    service_yaml = "vpcaccess_v1.yaml",
76    test_deps = [
77        ":vpcaccess_java_grpc",
78        "//google/cloud/location:location_java_grpc",
79    ],
80    transport = "grpc+rest",
81    deps = [
82        ":vpcaccess_java_proto",
83        "//google/api:api_java_proto",
84        "//google/cloud/location:location_java_proto",
85    ],
86)
87
88java_gapic_test(
89    name = "vpcaccess_java_gapic_test_suite",
90    test_classes = [
91        "com.google.cloud.vpcaccess.v1.VpcAccessServiceClientHttpJsonTest",
92        "com.google.cloud.vpcaccess.v1.VpcAccessServiceClientTest",
93    ],
94    runtime_deps = [":vpcaccess_java_gapic_test"],
95)
96
97# Open Source Packages
98java_gapic_assembly_gradle_pkg(
99    name = "google-cloud-vpcaccess-v1-java",
100    include_samples = True,
101    transport = "grpc+rest",
102    deps = [
103        ":vpcaccess_java_gapic",
104        ":vpcaccess_java_grpc",
105        ":vpcaccess_java_proto",
106        ":vpcaccess_proto",
107    ],
108)
109
110##############################################################################
111# Go
112##############################################################################
113load(
114    "@com_google_googleapis_imports//:imports.bzl",
115    "go_gapic_assembly_pkg",
116    "go_gapic_library",
117    "go_proto_library",
118)
119
120go_proto_library(
121    name = "vpcaccess_go_proto",
122    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
123    importpath = "cloud.google.com/go/vpcaccess/apiv1/vpcaccesspb",
124    protos = [":vpcaccess_proto"],
125    deps = [
126        "//google/api:annotations_go_proto",
127        "//google/longrunning:longrunning_go_proto",
128    ],
129)
130
131go_gapic_library(
132    name = "vpcaccess_go_gapic",
133    srcs = [":vpcaccess_proto_with_info"],
134    grpc_service_config = "vpcaccess_grpc_service_config.json",
135    importpath = "cloud.google.com/go/vpcaccess/apiv1;vpcaccess",
136    metadata = True,
137    release_level = "ga",
138    rest_numeric_enums = True,
139    service_yaml = "vpcaccess_v1.yaml",
140    transport = "grpc+rest",
141    deps = [
142        ":vpcaccess_go_proto",
143        "//google/cloud/location:location_go_proto",
144        "//google/longrunning:longrunning_go_proto",
145        "@com_google_cloud_go_longrunning//:go_default_library",
146        "@com_google_cloud_go_longrunning//autogen:go_default_library",
147    ],
148)
149
150# Open Source Packages
151go_gapic_assembly_pkg(
152    name = "gapi-cloud-vpcaccess-v1-go",
153    deps = [
154        ":vpcaccess_go_gapic",
155        ":vpcaccess_go_gapic_srcjar-metadata.srcjar",
156        ":vpcaccess_go_gapic_srcjar-snippets.srcjar",
157        ":vpcaccess_go_gapic_srcjar-test.srcjar",
158        ":vpcaccess_go_proto",
159    ],
160)
161
162##############################################################################
163# Python
164##############################################################################
165load(
166    "@com_google_googleapis_imports//:imports.bzl",
167    "py_gapic_assembly_pkg",
168    "py_gapic_library",
169    "py_test",
170)
171
172py_gapic_library(
173    name = "vpcaccess_py_gapic",
174    srcs = [":vpcaccess_proto"],
175    grpc_service_config = "vpcaccess_grpc_service_config.json",
176    opt_args = ["warehouse-package-name=google-cloud-vpc-access"],
177    rest_numeric_enums = True,
178    service_yaml = "vpcaccess_v1.yaml",
179    transport = "grpc+rest",
180    deps = [
181    ],
182)
183
184py_test(
185    name = "vpcaccess_py_gapic_test",
186    srcs = [
187        "vpcaccess_py_gapic_pytest.py",
188        "vpcaccess_py_gapic_test.py",
189    ],
190    legacy_create_init = False,
191    deps = [":vpcaccess_py_gapic"],
192)
193
194# Open Source Packages
195py_gapic_assembly_pkg(
196    name = "vpcaccess-v1-py",
197    deps = [
198        ":vpcaccess_py_gapic",
199    ],
200)
201
202##############################################################################
203# PHP
204##############################################################################
205load(
206    "@com_google_googleapis_imports//:imports.bzl",
207    "php_gapic_assembly_pkg",
208    "php_gapic_library",
209    "php_proto_library",
210)
211
212php_proto_library(
213    name = "vpcaccess_php_proto",
214    deps = [":vpcaccess_proto"],
215)
216
217php_gapic_library(
218    name = "vpcaccess_php_gapic",
219    srcs = [":vpcaccess_proto_with_info"],
220    grpc_service_config = "vpcaccess_grpc_service_config.json",
221    migration_mode = "MIGRATING",
222    rest_numeric_enums = True,
223    service_yaml = "vpcaccess_v1.yaml",
224    transport = "grpc+rest",
225    deps = [":vpcaccess_php_proto"],
226)
227
228# Open Source Packages
229php_gapic_assembly_pkg(
230    name = "google-cloud-vpcaccess-v1-php",
231    deps = [
232        ":vpcaccess_php_gapic",
233        ":vpcaccess_php_proto",
234    ],
235)
236
237##############################################################################
238# Node.js
239##############################################################################
240load(
241    "@com_google_googleapis_imports//:imports.bzl",
242    "nodejs_gapic_assembly_pkg",
243    "nodejs_gapic_library",
244)
245
246nodejs_gapic_library(
247    name = "vpcaccess_nodejs_gapic",
248    package_name = "@google-cloud/vpc-access",
249    src = ":vpcaccess_proto_with_info",
250    extra_protoc_parameters = ["metadata"],
251    grpc_service_config = "vpcaccess_grpc_service_config.json",
252    package = "google.cloud.vpcaccess.v1",
253    rest_numeric_enums = True,
254    service_yaml = "vpcaccess_v1.yaml",
255    transport = "grpc+rest",
256    deps = [],
257)
258
259nodejs_gapic_assembly_pkg(
260    name = "vpcaccess-v1-nodejs",
261    deps = [
262        ":vpcaccess_nodejs_gapic",
263        ":vpcaccess_proto",
264    ],
265)
266
267##############################################################################
268# Ruby
269##############################################################################
270load(
271    "@com_google_googleapis_imports//:imports.bzl",
272    "ruby_cloud_gapic_library",
273    "ruby_gapic_assembly_pkg",
274    "ruby_grpc_library",
275    "ruby_proto_library",
276)
277
278ruby_proto_library(
279    name = "vpcaccess_ruby_proto",
280    deps = [":vpcaccess_proto"],
281)
282
283ruby_grpc_library(
284    name = "vpcaccess_ruby_grpc",
285    srcs = [":vpcaccess_proto"],
286    deps = [":vpcaccess_ruby_proto"],
287)
288
289ruby_cloud_gapic_library(
290    name = "vpcaccess_ruby_gapic",
291    srcs = [":vpcaccess_proto_with_info"],
292    extra_protoc_parameters = [
293        "ruby-cloud-api-id=vpcaccess.googleapis.com",
294        "ruby-cloud-api-shortname=vpcaccess",
295        "ruby-cloud-env-prefix=VPC_ACCESS",
296        "ruby-cloud-gem-name=google-cloud-vpc_access-v1",
297        "ruby-cloud-product-url=https://cloud.google.com/vpc/docs/serverless-vpc-access",
298    ],
299    grpc_service_config = "vpcaccess_grpc_service_config.json",
300    rest_numeric_enums = True,
301    ruby_cloud_description = "Serverless VPC Access enables you to connect from a serverless environment on Google Cloud (Cloud Run, Cloud Functions, or the App Engine standard environment) directly to your VPC network. This connection makes it possible for your serverless environment to access Compute Engine VM instances, Memorystore instances, and any other resources with an internal IP address.",
302    ruby_cloud_title = "Serverless VPC Access V1",
303    service_yaml = "vpcaccess_v1.yaml",
304    transport = "grpc+rest",
305    deps = [
306        ":vpcaccess_ruby_grpc",
307        ":vpcaccess_ruby_proto",
308    ],
309)
310
311# Open Source Packages
312ruby_gapic_assembly_pkg(
313    name = "google-cloud-vpcaccess-v1-ruby",
314    deps = [
315        ":vpcaccess_ruby_gapic",
316        ":vpcaccess_ruby_grpc",
317        ":vpcaccess_ruby_proto",
318    ],
319)
320
321##############################################################################
322# C#
323##############################################################################
324load(
325    "@com_google_googleapis_imports//:imports.bzl",
326    "csharp_gapic_assembly_pkg",
327    "csharp_gapic_library",
328    "csharp_grpc_library",
329    "csharp_proto_library",
330)
331
332csharp_proto_library(
333    name = "vpcaccess_csharp_proto",
334    deps = [":vpcaccess_proto"],
335)
336
337csharp_grpc_library(
338    name = "vpcaccess_csharp_grpc",
339    srcs = [":vpcaccess_proto"],
340    deps = [":vpcaccess_csharp_proto"],
341)
342
343csharp_gapic_library(
344    name = "vpcaccess_csharp_gapic",
345    srcs = [":vpcaccess_proto_with_info"],
346    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
347    grpc_service_config = "vpcaccess_grpc_service_config.json",
348    rest_numeric_enums = True,
349    service_yaml = "vpcaccess_v1.yaml",
350    transport = "grpc+rest",
351    deps = [
352        ":vpcaccess_csharp_grpc",
353        ":vpcaccess_csharp_proto",
354    ],
355)
356
357# Open Source Packages
358csharp_gapic_assembly_pkg(
359    name = "google-cloud-vpcaccess-v1-csharp",
360    deps = [
361        ":vpcaccess_csharp_gapic",
362        ":vpcaccess_csharp_grpc",
363        ":vpcaccess_csharp_proto",
364    ],
365)
366
367##############################################################################
368# C++
369##############################################################################
370load(
371    "@com_google_googleapis_imports//:imports.bzl",
372    "cc_grpc_library",
373    "cc_proto_library",
374)
375
376cc_proto_library(
377    name = "vpcaccess_cc_proto",
378    deps = [":vpcaccess_proto"],
379)
380
381cc_grpc_library(
382    name = "vpcaccess_cc_grpc",
383    srcs = [":vpcaccess_proto"],
384    grpc_only = True,
385    deps = [":vpcaccess_cc_proto"],
386)
387