xref: /aosp_15_r20/external/googleapis/google/cloud/apigateway/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 = "apigateway_proto",
23    srcs = [
24        "apigateway.proto",
25        "apigateway_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        "@com_google_protobuf//:empty_proto",
34        "@com_google_protobuf//:field_mask_proto",
35        "@com_google_protobuf//:timestamp_proto",
36    ],
37)
38
39proto_library_with_info(
40    name = "apigateway_proto_with_info",
41    deps = [
42        ":apigateway_proto",
43        "//google/cloud:common_resources_proto",
44    ],
45)
46
47##############################################################################
48# Java
49##############################################################################
50load(
51    "@com_google_googleapis_imports//:imports.bzl",
52    "java_gapic_assembly_gradle_pkg",
53    "java_gapic_library",
54    "java_gapic_test",
55    "java_grpc_library",
56    "java_proto_library",
57)
58
59java_proto_library(
60    name = "apigateway_java_proto",
61    deps = [":apigateway_proto"],
62)
63
64java_grpc_library(
65    name = "apigateway_java_grpc",
66    srcs = [":apigateway_proto"],
67    deps = [":apigateway_java_proto"],
68)
69
70java_gapic_library(
71    name = "apigateway_java_gapic",
72    srcs = [":apigateway_proto_with_info"],
73    grpc_service_config = "apigateway_grpc_service_config.json",
74    rest_numeric_enums = True,
75    service_yaml = "apigateway_v1.yaml",
76    test_deps = [
77        ":apigateway_java_grpc",
78    ],
79    transport = "grpc+rest",
80    deps = [
81        ":apigateway_java_proto",
82        "//google/api:api_java_proto",
83    ],
84)
85
86java_gapic_test(
87    name = "apigateway_java_gapic_test_suite",
88    test_classes = [
89        "com.google.cloud.apigateway.v1.ApiGatewayServiceClientHttpJsonTest",
90        "com.google.cloud.apigateway.v1.ApiGatewayServiceClientTest",
91    ],
92    runtime_deps = [":apigateway_java_gapic_test"],
93)
94
95# Open Source Packages
96java_gapic_assembly_gradle_pkg(
97    name = "google-cloud-apigateway-v1-java",
98    include_samples = True,
99    transport = "grpc+rest",
100    deps = [
101        ":apigateway_java_gapic",
102        ":apigateway_java_grpc",
103        ":apigateway_java_proto",
104        ":apigateway_proto",
105    ],
106)
107
108##############################################################################
109# Go
110##############################################################################
111load(
112    "@com_google_googleapis_imports//:imports.bzl",
113    "go_gapic_assembly_pkg",
114    "go_gapic_library",
115    "go_proto_library",
116)
117
118go_proto_library(
119    name = "apigateway_go_proto",
120    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
121    importpath = "cloud.google.com/go/apigateway/apiv1/apigatewaypb",
122    protos = [":apigateway_proto"],
123    deps = [
124        "//google/api:annotations_go_proto",
125        "//google/longrunning:longrunning_go_proto",
126    ],
127)
128
129go_gapic_library(
130    name = "apigateway_go_gapic",
131    srcs = [":apigateway_proto_with_info"],
132    grpc_service_config = "apigateway_grpc_service_config.json",
133    importpath = "cloud.google.com/go/apigateway/apiv1;apigateway",
134    metadata = True,
135    release_level = "ga",
136    rest_numeric_enums = True,
137    service_yaml = "apigateway_v1.yaml",
138    transport = "grpc+rest",
139    deps = [
140        ":apigateway_go_proto",
141        "//google/longrunning:longrunning_go_proto",
142        "@com_google_cloud_go_longrunning//:go_default_library",
143        "@com_google_cloud_go_longrunning//autogen:go_default_library",
144    ],
145)
146
147# Open Source Packages
148go_gapic_assembly_pkg(
149    name = "gapi-cloud-apigateway-v1-go",
150    deps = [
151        ":apigateway_go_gapic",
152        ":apigateway_go_gapic_srcjar-metadata.srcjar",
153        ":apigateway_go_gapic_srcjar-snippets.srcjar",
154        ":apigateway_go_gapic_srcjar-test.srcjar",
155        ":apigateway_go_proto",
156    ],
157)
158
159##############################################################################
160# Python
161##############################################################################
162load(
163    "@com_google_googleapis_imports//:imports.bzl",
164    "py_gapic_assembly_pkg",
165    "py_gapic_library",
166    "py_test",
167)
168
169py_gapic_library(
170    name = "apigateway_py_gapic",
171    srcs = [":apigateway_proto"],
172    grpc_service_config = "apigateway_grpc_service_config.json",
173    opt_args = ["warehouse-package-name=google-cloud-api-gateway"],
174    rest_numeric_enums = True,
175    service_yaml = "apigateway_v1.yaml",
176    transport = "grpc+rest",
177)
178
179py_test(
180    name = "apigateway_py_gapic_test",
181    srcs = [
182        "apigateway_py_gapic_pytest.py",
183        "apigateway_py_gapic_test.py",
184    ],
185    legacy_create_init = False,
186    deps = [":apigateway_py_gapic"],
187)
188
189# Open Source Packages
190py_gapic_assembly_pkg(
191    name = "google-cloud-apigateway-v1-py",
192    deps = [
193        ":apigateway_py_gapic",
194    ],
195)
196
197##############################################################################
198# PHP
199##############################################################################
200load(
201    "@com_google_googleapis_imports//:imports.bzl",
202    "php_gapic_assembly_pkg",
203    "php_gapic_library",
204    "php_proto_library",
205)
206
207php_proto_library(
208    name = "apigateway_php_proto",
209    deps = [":apigateway_proto"],
210)
211
212php_gapic_library(
213    name = "apigateway_php_gapic",
214    srcs = [":apigateway_proto_with_info"],
215    grpc_service_config = "apigateway_grpc_service_config.json",
216    migration_mode = "MIGRATING",
217    rest_numeric_enums = True,
218    service_yaml = "apigateway_v1.yaml",
219    transport = "grpc+rest",
220    deps = [":apigateway_php_proto"],
221)
222
223# Open Source Packages
224php_gapic_assembly_pkg(
225    name = "google-cloud-apigateway-v1-php",
226    deps = [
227        ":apigateway_php_gapic",
228        ":apigateway_php_proto",
229    ],
230)
231
232##############################################################################
233# Node.js
234##############################################################################
235load(
236    "@com_google_googleapis_imports//:imports.bzl",
237    "nodejs_gapic_assembly_pkg",
238    "nodejs_gapic_library",
239)
240
241nodejs_gapic_library(
242    name = "apigateway_nodejs_gapic",
243    package_name = "@google-cloud/api-gateway",
244    src = ":apigateway_proto_with_info",
245    extra_protoc_parameters = ["metadata"],
246    grpc_service_config = "apigateway_grpc_service_config.json",
247    package = "google.cloud.apigateway.v1",
248    rest_numeric_enums = True,
249    service_yaml = "apigateway_v1.yaml",
250    transport = "grpc+rest",
251    deps = [],
252)
253
254nodejs_gapic_assembly_pkg(
255    name = "apigateway-v1-nodejs",
256    deps = [
257        ":apigateway_nodejs_gapic",
258        ":apigateway_proto",
259    ],
260)
261
262##############################################################################
263# Ruby
264##############################################################################
265load(
266    "@com_google_googleapis_imports//:imports.bzl",
267    "ruby_cloud_gapic_library",
268    "ruby_gapic_assembly_pkg",
269    "ruby_grpc_library",
270    "ruby_proto_library",
271)
272
273ruby_proto_library(
274    name = "apigateway_ruby_proto",
275    deps = [":apigateway_proto"],
276)
277
278ruby_grpc_library(
279    name = "apigateway_ruby_grpc",
280    srcs = [":apigateway_proto"],
281    deps = [":apigateway_ruby_proto"],
282)
283
284ruby_cloud_gapic_library(
285    name = "apigateway_ruby_gapic",
286    srcs = [":apigateway_proto_with_info"],
287    extra_protoc_parameters = [
288        "ruby-cloud-gem-name=google-cloud-api_gateway-v1",
289        "ruby-cloud-env-prefix=API_GATEWAY",
290        "ruby-cloud-product-url=https://cloud.google.com/api-gateway/",
291        "ruby-cloud-api-id=apigateway.googleapis.com",
292        "ruby-cloud-api-shortname=apigateway",
293    ],
294    grpc_service_config = "apigateway_grpc_service_config.json",
295    rest_numeric_enums = True,
296    ruby_cloud_description = "API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint.",
297    ruby_cloud_title = "API Gateway V1",
298    service_yaml = "apigateway_v1.yaml",
299    transport = "grpc+rest",
300    deps = [
301        ":apigateway_ruby_grpc",
302        ":apigateway_ruby_proto",
303    ],
304)
305
306# Open Source Packages
307ruby_gapic_assembly_pkg(
308    name = "google-cloud-apigateway-v1-ruby",
309    deps = [
310        ":apigateway_ruby_gapic",
311        ":apigateway_ruby_grpc",
312        ":apigateway_ruby_proto",
313    ],
314)
315
316##############################################################################
317# C#
318##############################################################################
319load(
320    "@com_google_googleapis_imports//:imports.bzl",
321    "csharp_gapic_assembly_pkg",
322    "csharp_gapic_library",
323    "csharp_grpc_library",
324    "csharp_proto_library",
325)
326
327csharp_proto_library(
328    name = "apigateway_csharp_proto",
329    deps = [":apigateway_proto"],
330)
331
332csharp_grpc_library(
333    name = "apigateway_csharp_grpc",
334    srcs = [":apigateway_proto"],
335    deps = [":apigateway_csharp_proto"],
336)
337
338csharp_gapic_library(
339    name = "apigateway_csharp_gapic",
340    srcs = [":apigateway_proto_with_info"],
341    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
342    grpc_service_config = "apigateway_grpc_service_config.json",
343    rest_numeric_enums = True,
344    service_yaml = "apigateway_v1.yaml",
345    transport = "grpc+rest",
346    deps = [
347        ":apigateway_csharp_grpc",
348        ":apigateway_csharp_proto",
349    ],
350)
351
352# Open Source Packages
353csharp_gapic_assembly_pkg(
354    name = "google-cloud-apigateway-v1-csharp",
355    deps = [
356        ":apigateway_csharp_gapic",
357        ":apigateway_csharp_grpc",
358        ":apigateway_csharp_proto",
359    ],
360)
361
362##############################################################################
363# C++
364##############################################################################
365load(
366    "@com_google_googleapis_imports//:imports.bzl",
367    "cc_grpc_library",
368    "cc_proto_library",
369)
370
371cc_proto_library(
372    name = "apigateway_cc_proto",
373    deps = [":apigateway_proto"],
374)
375
376cc_grpc_library(
377    name = "apigateway_cc_grpc",
378    srcs = [":apigateway_proto"],
379    grpc_only = True,
380    deps = [":apigateway_cc_proto"],
381)
382