xref: /aosp_15_r20/external/googleapis/google/cloud/billing/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 = "billing_proto",
23    srcs = [
24        "cloud_billing.proto",
25        "cloud_catalog.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/type:money_proto",
35        "@com_google_protobuf//:field_mask_proto",
36        "@com_google_protobuf//:timestamp_proto",
37    ],
38)
39
40proto_library_with_info(
41    name = "billing_proto_with_info",
42    deps = [
43        ":billing_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 = "billing_java_proto",
61    deps = [":billing_proto"],
62)
63
64java_grpc_library(
65    name = "billing_java_grpc",
66    srcs = [":billing_proto"],
67    deps = [":billing_java_proto"],
68)
69
70java_gapic_library(
71    name = "billing_java_gapic",
72    srcs = [":billing_proto_with_info"],
73    gapic_yaml = None,
74    grpc_service_config = "cloud_billing_grpc_service_config.json",
75    rest_numeric_enums = True,
76    service_yaml = "cloudbilling_v1.yaml",
77    test_deps = [
78        ":billing_java_grpc",
79        "//google/iam/v1:iam_java_grpc",
80    ],
81    transport = "grpc+rest",
82    deps = [
83        ":billing_java_proto",
84        "//google/api:api_java_proto",
85        "//google/iam/v1:iam_java_proto",
86    ],
87)
88
89java_gapic_test(
90    name = "billing_java_gapic_test_suite",
91    test_classes = [
92        # This test is temporarily disabled due to the issue:
93        # https://github.com/googleapis/sdk-platform-java/issues/1780
94        # "com.google.cloud.billing.v1.CloudBillingClientHttpJsonTest",
95        "com.google.cloud.billing.v1.CloudBillingClientTest",
96        "com.google.cloud.billing.v1.CloudCatalogClientHttpJsonTest",
97        "com.google.cloud.billing.v1.CloudCatalogClientTest",
98    ],
99    runtime_deps = [":billing_java_gapic_test"],
100)
101
102# Open Source Packages
103java_gapic_assembly_gradle_pkg(
104    name = "google-cloud-billing-v1-java",
105    include_samples = True,
106    transport = "grpc+rest",
107    deps = [
108        ":billing_java_gapic",
109        ":billing_java_grpc",
110        ":billing_java_proto",
111        ":billing_proto",
112    ],
113)
114
115##############################################################################
116# Go
117##############################################################################
118load(
119    "@com_google_googleapis_imports//:imports.bzl",
120    "go_gapic_assembly_pkg",
121    "go_gapic_library",
122    "go_proto_library",
123)
124
125go_proto_library(
126    name = "billing_go_proto",
127    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
128    importpath = "cloud.google.com/go/billing/apiv1/billingpb",
129    protos = [":billing_proto"],
130    deps = [
131        "//google/api:annotations_go_proto",
132        "//google/iam/v1:iam_go_proto",
133        "//google/type:money_go_proto",
134    ],
135)
136
137go_gapic_library(
138    name = "billing_go_gapic",
139    srcs = [":billing_proto_with_info"],
140    grpc_service_config = "cloud_billing_grpc_service_config.json",
141    importpath = "cloud.google.com/go/billing/apiv1;billing",
142    metadata = True,
143    release_level = "ga",
144    rest_numeric_enums = True,
145    service_yaml = "cloudbilling_v1.yaml",
146    transport = "grpc+rest",
147    deps = [
148        ":billing_go_proto",
149        "//google/iam/v1:iam_go_proto",
150    ],
151)
152
153# Open Source Packages
154go_gapic_assembly_pkg(
155    name = "gapi-cloud-billing-v1-go",
156    deps = [
157        ":billing_go_gapic",
158        ":billing_go_gapic_srcjar-metadata.srcjar",
159        ":billing_go_gapic_srcjar-snippets.srcjar",
160        ":billing_go_gapic_srcjar-test.srcjar",
161        ":billing_go_proto",
162    ],
163)
164
165##############################################################################
166# Python
167##############################################################################
168load(
169    "@com_google_googleapis_imports//:imports.bzl",
170    "py_gapic_assembly_pkg",
171    "py_gapic_library",
172    "py_test",
173)
174
175py_gapic_library(
176    name = "billing_py_gapic",
177    srcs = [":billing_proto"],
178    grpc_service_config = "cloud_billing_grpc_service_config.json",
179    rest_numeric_enums = True,
180    service_yaml = "cloudbilling_v1.yaml",
181    transport = "grpc+rest",
182    deps = [
183        "//google/iam/v1:iam_policy_py_proto",
184    ],
185)
186
187py_test(
188    name = "billing_py_gapic_test",
189    srcs = [
190        "billing_py_gapic_pytest.py",
191        "billing_py_gapic_test.py",
192    ],
193    legacy_create_init = False,
194    deps = [":billing_py_gapic"],
195)
196
197# Open Source Packages
198py_gapic_assembly_pkg(
199    name = "billing-v1-py",
200    deps = [
201        ":billing_py_gapic",
202    ],
203)
204
205##############################################################################
206# PHP
207##############################################################################
208load(
209    "@com_google_googleapis_imports//:imports.bzl",
210    "php_gapic_assembly_pkg",
211    "php_gapic_library",
212    "php_proto_library",
213)
214
215php_proto_library(
216    name = "billing_php_proto",
217    deps = [":billing_proto"],
218)
219
220php_gapic_library(
221    name = "billing_php_gapic",
222    srcs = [":billing_proto_with_info"],
223    grpc_service_config = "cloud_billing_grpc_service_config.json",
224    migration_mode = "MIGRATING",
225    rest_numeric_enums = True,
226    service_yaml = "cloudbilling_v1.yaml",
227    transport = "grpc+rest",
228    deps = [":billing_php_proto"],
229)
230
231# Open Source Packages
232php_gapic_assembly_pkg(
233    name = "google-cloud-billing-v1-php",
234    deps = [
235        ":billing_php_gapic",
236        ":billing_php_proto",
237    ],
238)
239
240##############################################################################
241# Node.js
242##############################################################################
243load(
244    "@com_google_googleapis_imports//:imports.bzl",
245    "nodejs_gapic_assembly_pkg",
246    "nodejs_gapic_library",
247)
248
249nodejs_gapic_library(
250    name = "billing_nodejs_gapic",
251    package_name = "@google-cloud/billing",
252    src = ":billing_proto_with_info",
253    extra_protoc_parameters = ["metadata"],
254    grpc_service_config = "cloud_billing_grpc_service_config.json",
255    package = "google.cloud.billing.v1",
256    rest_numeric_enums = True,
257    service_yaml = "cloudbilling_v1.yaml",
258    transport = "grpc+rest",
259    deps = [],
260)
261
262nodejs_gapic_assembly_pkg(
263    name = "billing-v1-nodejs",
264    deps = [
265        ":billing_nodejs_gapic",
266        ":billing_proto",
267    ],
268)
269
270##############################################################################
271# Ruby
272##############################################################################
273load(
274    "@com_google_googleapis_imports//:imports.bzl",
275    "ruby_cloud_gapic_library",
276    "ruby_gapic_assembly_pkg",
277    "ruby_grpc_library",
278    "ruby_proto_library",
279)
280
281ruby_proto_library(
282    name = "billing_ruby_proto",
283    deps = [":billing_proto"],
284)
285
286ruby_grpc_library(
287    name = "billing_ruby_grpc",
288    srcs = [":billing_proto"],
289    deps = [":billing_ruby_proto"],
290)
291
292ruby_cloud_gapic_library(
293    name = "billing_ruby_gapic",
294    srcs = [":billing_proto_with_info"],
295    extra_protoc_parameters = [
296        "ruby-cloud-api-id=cloudbilling.googleapis.com",
297        "ruby-cloud-api-shortname=cloudbilling",
298        "ruby-cloud-env-prefix=BILLING",
299        "ruby-cloud-gem-name=google-cloud-billing-v1",
300        "ruby-cloud-product-url=https://cloud.google.com/billing",
301    ],
302    grpc_service_config = "cloud_billing_grpc_service_config.json",
303    rest_numeric_enums = True,
304    ruby_cloud_description = "Allows developers to manage billing for their Google Cloud Platform projects programmatically.",
305    ruby_cloud_title = "Billing V1",
306    service_yaml = "cloudbilling_v1.yaml",
307    transport = "grpc+rest",
308    deps = [
309        ":billing_ruby_grpc",
310        ":billing_ruby_proto",
311    ],
312)
313
314# Open Source Packages
315ruby_gapic_assembly_pkg(
316    name = "google-cloud-billing-v1-ruby",
317    deps = [
318        ":billing_ruby_gapic",
319        ":billing_ruby_grpc",
320        ":billing_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 = "billing_csharp_proto",
337    deps = [":billing_proto"],
338)
339
340csharp_grpc_library(
341    name = "billing_csharp_grpc",
342    srcs = [":billing_proto"],
343    deps = [":billing_csharp_proto"],
344)
345
346csharp_gapic_library(
347    name = "billing_csharp_gapic",
348    srcs = [":billing_proto_with_info"],
349    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
350    grpc_service_config = "cloud_billing_grpc_service_config.json",
351    rest_numeric_enums = True,
352    service_yaml = "cloudbilling_v1.yaml",
353    transport = "grpc+rest",
354    deps = [
355        ":billing_csharp_grpc",
356        ":billing_csharp_proto",
357    ],
358)
359
360# Open Source Packages
361csharp_gapic_assembly_pkg(
362    name = "google-cloud-billing-v1-csharp",
363    deps = [
364        ":billing_csharp_gapic",
365        ":billing_csharp_grpc",
366        ":billing_csharp_proto",
367    ],
368)
369
370##############################################################################
371# C++
372##############################################################################
373load(
374    "@com_google_googleapis_imports//:imports.bzl",
375    "cc_grpc_library",
376    "cc_proto_library",
377)
378
379cc_proto_library(
380    name = "billing_cc_proto",
381    deps = [":billing_proto"],
382)
383
384cc_grpc_library(
385    name = "billing_cc_grpc",
386    srcs = [":billing_proto"],
387    grpc_only = True,
388    deps = [":billing_cc_proto"],
389)
390