xref: /aosp_15_r20/external/googleapis/google/cloud/commerce/consumer/procurement/v1alpha1/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 = "procurement_proto",
23    srcs = [
24        "order.proto",
25        "procurement_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//:timestamp_proto",
34    ],
35)
36
37proto_library_with_info(
38    name = "procurement_proto_with_info",
39    deps = [
40        ":procurement_proto",
41        "//google/cloud:common_resources_proto",
42    ],
43)
44
45##############################################################################
46# Java
47##############################################################################
48load(
49    "@com_google_googleapis_imports//:imports.bzl",
50    "java_gapic_assembly_gradle_pkg",
51    "java_gapic_library",
52    "java_gapic_test",
53    "java_grpc_library",
54    "java_proto_library",
55)
56
57java_proto_library(
58    name = "procurement_java_proto",
59    deps = [":procurement_proto"],
60)
61
62java_grpc_library(
63    name = "procurement_java_grpc",
64    srcs = [":procurement_proto"],
65    deps = [":procurement_java_proto"],
66)
67
68java_gapic_library(
69    name = "procurement_java_gapic",
70    srcs = [":procurement_proto_with_info"],
71    gapic_yaml = None,
72    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
73    rest_numeric_enums = True,
74    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
75    test_deps = [
76        ":procurement_java_grpc",
77    ],
78    transport = "grpc+rest",
79    deps = [
80        ":procurement_java_proto",
81        "//google/api:api_java_proto",
82    ],
83)
84
85java_gapic_test(
86    name = "procurement_java_gapic_test_suite",
87    test_classes = [
88        "com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClientHttpJsonTest",
89        "com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClientTest",
90    ],
91    runtime_deps = [":procurement_java_gapic_test"],
92)
93
94# Open Source Packages
95java_gapic_assembly_gradle_pkg(
96    name = "google-cloud-consumer-procurement-v1alpha1-java",
97    include_samples = True,
98    transport = "grpc+rest",
99    deps = [
100        ":procurement_java_gapic",
101        ":procurement_java_grpc",
102        ":procurement_java_proto",
103        ":procurement_proto",
104    ],
105)
106
107##############################################################################
108# Go
109##############################################################################
110load(
111    "@com_google_googleapis_imports//:imports.bzl",
112    "go_gapic_assembly_pkg",
113    "go_gapic_library",
114    "go_proto_library",
115)
116
117go_proto_library(
118    name = "procurement_go_proto",
119    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
120    importpath = "cloud.google.com/go/commerce/consumer/procurement/apiv1alpha1/procurementpb",
121    protos = [":procurement_proto"],
122    deps = [
123        "//google/api:annotations_go_proto",
124        "//google/longrunning:longrunning_go_proto",
125    ],
126)
127
128go_gapic_library(
129    name = "procurement_go_gapic",
130    srcs = [":procurement_proto_with_info"],
131    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
132    importpath = "cloud.google.com/go/commerce/consumer/procurement/apiv1alpha1;procurement",
133    metadata = True,
134    release_level = "alpha",
135    rest_numeric_enums = True,
136    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
137    transport = "grpc+rest",
138    deps = [
139        ":procurement_go_proto",
140        "//google/longrunning:longrunning_go_proto",
141        "@com_google_cloud_go_longrunning//:go_default_library",
142        "@com_google_cloud_go_longrunning//autogen:go_default_library",
143    ],
144)
145
146# Open Source Packages
147go_gapic_assembly_pkg(
148    name = "gapi-cloud-consumer-procurement-v1alpha1-go",
149    deps = [
150        ":procurement_go_gapic",
151        ":procurement_go_gapic_srcjar-metadata.srcjar",
152        ":procurement_go_gapic_srcjar-snippets.srcjar",
153        ":procurement_go_gapic_srcjar-test.srcjar",
154        ":procurement_go_proto",
155    ],
156)
157
158##############################################################################
159# Python
160##############################################################################
161load(
162    "@com_google_googleapis_imports//:imports.bzl",
163    "py_gapic_assembly_pkg",
164    "py_gapic_library",
165    "py_test",
166)
167
168py_gapic_library(
169    name = "procurement_py_gapic",
170    srcs = [":procurement_proto"],
171    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
172    rest_numeric_enums = True,
173    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
174    transport = "grpc+rest",
175    opt_args = [
176        "python-gapic-namespace=google.cloud",
177        "python-gapic-name=commerce_consumer_procurement",
178    ],
179)
180
181py_test(
182    name = "procurement_py_gapic_test",
183    srcs = [
184        "procurement_py_gapic_pytest.py",
185        "procurement_py_gapic_test.py",
186    ],
187    legacy_create_init = False,
188    deps = [":procurement_py_gapic"],
189)
190
191# Open Source Packages
192py_gapic_assembly_pkg(
193    name = "consumer-procurement-v1alpha1-py",
194    deps = [
195        ":procurement_py_gapic",
196    ],
197)
198
199##############################################################################
200# PHP
201##############################################################################
202load(
203    "@com_google_googleapis_imports//:imports.bzl",
204    "php_gapic_assembly_pkg",
205    "php_gapic_library",
206    "php_proto_library",
207)
208
209php_proto_library(
210    name = "procurement_php_proto",
211    deps = [":procurement_proto"],
212)
213
214php_gapic_library(
215    name = "procurement_php_gapic",
216    srcs = [":procurement_proto_with_info"],
217    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
218    rest_numeric_enums = True,
219    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
220    transport = "grpc+rest",
221    deps = [":procurement_php_proto"],
222)
223
224# Open Source Packages
225php_gapic_assembly_pkg(
226    name = "google-cloud-consumer-procurement-v1alpha1-php",
227    deps = [
228        ":procurement_php_gapic",
229        ":procurement_php_proto",
230    ],
231)
232
233##############################################################################
234# Node.js
235##############################################################################
236load(
237    "@com_google_googleapis_imports//:imports.bzl",
238    "nodejs_gapic_assembly_pkg",
239    "nodejs_gapic_library",
240)
241
242nodejs_gapic_library(
243    name = "procurement_nodejs_gapic",
244    package_name = "@google-cloud/procurement",
245    src = ":procurement_proto_with_info",
246    extra_protoc_parameters = ["metadata"],
247    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
248    package = "google.cloud.commerce.consumer.procurement.v1alpha1",
249    rest_numeric_enums = True,
250    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
251    transport = "grpc+rest",
252    deps = [],
253)
254
255nodejs_gapic_assembly_pkg(
256    name = "consumer-procurement-v1alpha1-nodejs",
257    deps = [
258        ":procurement_nodejs_gapic",
259        ":procurement_proto",
260    ],
261)
262
263##############################################################################
264# Ruby
265##############################################################################
266load(
267    "@com_google_googleapis_imports//:imports.bzl",
268    "ruby_cloud_gapic_library",
269    "ruby_gapic_assembly_pkg",
270    "ruby_grpc_library",
271    "ruby_proto_library",
272)
273
274ruby_proto_library(
275    name = "procurement_ruby_proto",
276    deps = [":procurement_proto"],
277)
278
279ruby_grpc_library(
280    name = "procurement_ruby_grpc",
281    srcs = [":procurement_proto"],
282    deps = [":procurement_ruby_proto"],
283)
284
285ruby_cloud_gapic_library(
286    name = "procurement_ruby_gapic",
287    srcs = [":procurement_proto_with_info"],
288    extra_protoc_parameters = [
289        "ruby-cloud-gem-name=google-cloud-consumer-procurement-v1alpha1",
290    ],
291    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
292    rest_numeric_enums = True,
293    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
294    transport = "grpc+rest",
295    deps = [
296        ":procurement_ruby_grpc",
297        ":procurement_ruby_proto",
298    ],
299)
300
301# Open Source Packages
302ruby_gapic_assembly_pkg(
303    name = "google-cloud-consumer-procurement-v1alpha1-ruby",
304    deps = [
305        ":procurement_ruby_gapic",
306        ":procurement_ruby_grpc",
307        ":procurement_ruby_proto",
308    ],
309)
310
311##############################################################################
312# C#
313##############################################################################
314load(
315    "@com_google_googleapis_imports//:imports.bzl",
316    "csharp_gapic_assembly_pkg",
317    "csharp_gapic_library",
318    "csharp_grpc_library",
319    "csharp_proto_library",
320)
321
322csharp_proto_library(
323    name = "procurement_csharp_proto",
324    deps = [":procurement_proto"],
325)
326
327csharp_grpc_library(
328    name = "procurement_csharp_grpc",
329    srcs = [":procurement_proto"],
330    deps = [":procurement_csharp_proto"],
331)
332
333csharp_gapic_library(
334    name = "procurement_csharp_gapic",
335    srcs = [":procurement_proto_with_info"],
336    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
337    grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
338    rest_numeric_enums = True,
339    service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
340    transport = "grpc+rest",
341    deps = [
342        ":procurement_csharp_grpc",
343        ":procurement_csharp_proto",
344    ],
345)
346
347# Open Source Packages
348csharp_gapic_assembly_pkg(
349    name = "google-cloud-consumer-procurement-v1alpha1-csharp",
350    deps = [
351        ":procurement_csharp_gapic",
352        ":procurement_csharp_grpc",
353        ":procurement_csharp_proto",
354    ],
355)
356
357##############################################################################
358# C++
359##############################################################################
360load(
361    "@com_google_googleapis_imports//:imports.bzl",
362    "cc_grpc_library",
363    "cc_proto_library",
364)
365
366cc_proto_library(
367    name = "procurement_cc_proto",
368    deps = [":procurement_proto"],
369)
370
371cc_grpc_library(
372    name = "procurement_cc_grpc",
373    srcs = [":procurement_proto"],
374    grpc_only = True,
375    deps = [":procurement_cc_proto"],
376)
377