xref: /aosp_15_r20/external/googleapis/google/cloud/paymentgateway/issuerswitch/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 = "issuerswitch_proto",
23    srcs = [
24        "common_fields.proto",
25        "logs.proto",
26        "participants.proto",
27        "resolutions.proto",
28        "rules.proto",
29        "transactions.proto",
30    ],
31    deps = [
32        "//google/api:annotations_proto",
33        "//google/api:client_proto",
34        "//google/api:field_behavior_proto",
35        "//google/api:resource_proto",
36        "//google/logging/type:type_proto",
37        "//google/longrunning:operations_proto",
38        "//google/type:date_proto",
39        "//google/type:latlng_proto",
40        "//google/type:money_proto",
41        "@com_google_protobuf//:empty_proto",
42        "@com_google_protobuf//:field_mask_proto",
43        "@com_google_protobuf//:timestamp_proto",
44    ],
45)
46
47proto_library_with_info(
48    name = "issuerswitch_proto_with_info",
49    deps = [
50        ":issuerswitch_proto",
51        "//google/cloud:common_resources_proto",
52    ],
53)
54
55##############################################################################
56# Java
57##############################################################################
58load(
59    "@com_google_googleapis_imports//:imports.bzl",
60    "java_gapic_assembly_gradle_pkg",
61    "java_gapic_library",
62    "java_gapic_test",
63    "java_grpc_library",
64    "java_proto_library",
65)
66
67java_proto_library(
68    name = "issuerswitch_java_proto",
69    deps = [":issuerswitch_proto"],
70)
71
72java_grpc_library(
73    name = "issuerswitch_java_grpc",
74    srcs = [":issuerswitch_proto"],
75    deps = [":issuerswitch_java_proto"],
76)
77
78java_gapic_library(
79    name = "issuerswitch_java_gapic",
80    srcs = [":issuerswitch_proto_with_info"],
81    gapic_yaml = None,
82    grpc_service_config = "issuerswitch_grpc_service_config.json",
83    rest_numeric_enums = False,
84    service_yaml = "issuerswitch_v1.yaml",
85    test_deps = [
86        ":issuerswitch_java_grpc",
87    ],
88    transport = "grpc+rest",
89    deps = [
90        ":issuerswitch_java_proto",
91        "//google/api:api_java_proto",
92    ],
93)
94
95java_gapic_test(
96    name = "issuerswitch_java_gapic_test_suite",
97    test_classes = [
98        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipantsClientHttpJsonTest",
99        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchParticipantsClientTest",
100        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchResolutionsClientHttpJsonTest",
101        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchResolutionsClientTest",
102        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRulesClientHttpJsonTest",
103        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchRulesClientTest",
104        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactionsClientHttpJsonTest",
105        "com.google.cloud.paymentgateway.issuerswitch.v1.IssuerSwitchTransactionsClientTest",
106    ],
107    runtime_deps = [":issuerswitch_java_gapic_test"],
108)
109
110# Open Source Packages
111java_gapic_assembly_gradle_pkg(
112    name = "google-cloud-paymentgateway-issuerswitch-v1-java",
113    include_samples = True,
114    transport = "grpc+rest",
115    deps = [
116        ":issuerswitch_java_gapic",
117        ":issuerswitch_java_grpc",
118        ":issuerswitch_java_proto",
119        ":issuerswitch_proto",
120    ],
121)
122
123##############################################################################
124# Go
125##############################################################################
126load(
127    "@com_google_googleapis_imports//:imports.bzl",
128    "go_gapic_assembly_pkg",
129    "go_gapic_library",
130    "go_proto_library",
131)
132
133go_proto_library(
134    name = "issuerswitch_go_proto",
135    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
136    importpath = "cloud.google.com/go/paymentgateway/issuerswitch/apiv1/issuerswitchpb",
137    protos = [":issuerswitch_proto"],
138    deps = [
139        "//google/api:annotations_go_proto",
140        "//google/logging/type:type_go_proto",
141        "//google/longrunning:longrunning_go_proto",
142        "//google/type:date_go_proto",
143        "//google/type:latlng_go_proto",
144        "//google/type:money_go_proto",
145    ],
146)
147
148go_gapic_library(
149    name = "issuerswitch_go_gapic",
150    srcs = [":issuerswitch_proto_with_info"],
151    grpc_service_config = "issuerswitch_grpc_service_config.json",
152    importpath = "cloud.google.com/go/paymentgateway/issuerswitch/apiv1;issuerswitch",
153    metadata = True,
154    release_level = "ga",
155    rest_numeric_enums = False,
156    service_yaml = "issuerswitch_v1.yaml",
157    transport = "grpc",
158    deps = [
159        ":issuerswitch_go_proto",
160        "//google/longrunning:longrunning_go_proto",
161        "@com_google_cloud_go_longrunning//:go_default_library",
162        "@com_google_cloud_go_longrunning//autogen:go_default_library",
163    ],
164)
165
166# Open Source Packages
167go_gapic_assembly_pkg(
168    name = "gapi-cloud-paymentgateway-issuerswitch-v1-go",
169    deps = [
170        ":issuerswitch_go_gapic",
171        ":issuerswitch_go_gapic_srcjar-metadata.srcjar",
172        ":issuerswitch_go_gapic_srcjar-snippets.srcjar",
173        ":issuerswitch_go_gapic_srcjar-test.srcjar",
174        ":issuerswitch_go_proto",
175    ],
176)
177
178##############################################################################
179# Python
180##############################################################################
181load(
182    "@com_google_googleapis_imports//:imports.bzl",
183    "py_gapic_assembly_pkg",
184    "py_gapic_library",
185    "py_test",
186)
187
188py_gapic_library(
189    name = "issuerswitch_py_gapic",
190    srcs = [":issuerswitch_proto"],
191    grpc_service_config = "issuerswitch_grpc_service_config.json",
192    opt_args = [
193        "python-gapic-name=payment_gateway_issuer_switch",
194        "python-gapic-namespace=google.cloud",
195        "warehouse-package-name=google-cloud-payment-gateway-issuer-switch",
196    ],
197    rest_numeric_enums = False,
198    service_yaml = "issuerswitch_v1.yaml",
199    transport = "grpc",
200    deps = [
201    ],
202)
203
204py_test(
205    name = "issuerswitch_py_gapic_test",
206    srcs = [
207        "issuerswitch_py_gapic_pytest.py",
208        "issuerswitch_py_gapic_test.py",
209    ],
210    legacy_create_init = False,
211    deps = [":issuerswitch_py_gapic"],
212)
213
214# Open Source Packages
215py_gapic_assembly_pkg(
216    name = "paymentgateway-issuerswitch-v1-py",
217    deps = [
218        ":issuerswitch_py_gapic",
219    ],
220)
221
222##############################################################################
223# PHP
224##############################################################################
225load(
226    "@com_google_googleapis_imports//:imports.bzl",
227    "php_gapic_assembly_pkg",
228    "php_gapic_library",
229    "php_proto_library",
230)
231
232php_proto_library(
233    name = "issuerswitch_php_proto",
234    deps = [":issuerswitch_proto"],
235)
236
237php_gapic_library(
238    name = "issuerswitch_php_gapic",
239    srcs = [":issuerswitch_proto_with_info"],
240    grpc_service_config = "issuerswitch_grpc_service_config.json",
241    migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
242    rest_numeric_enums = False,
243    service_yaml = "issuerswitch_v1.yaml",
244    transport = "grpc+rest",
245    deps = [
246        ":issuerswitch_php_proto",
247    ],
248)
249
250# Open Source Packages
251php_gapic_assembly_pkg(
252    name = "google-cloud-paymentgateway-issuerswitch-v1-php",
253    deps = [
254        ":issuerswitch_php_gapic",
255        ":issuerswitch_php_proto",
256    ],
257)
258
259##############################################################################
260# Node.js
261##############################################################################
262load(
263    "@com_google_googleapis_imports//:imports.bzl",
264    "nodejs_gapic_assembly_pkg",
265    "nodejs_gapic_library",
266)
267
268nodejs_gapic_library(
269    name = "issuerswitch_nodejs_gapic",
270    package_name = "@google-cloud/issuerswitch",
271    src = ":issuerswitch_proto_with_info",
272    extra_protoc_parameters = ["metadata"],
273    grpc_service_config = "issuerswitch_grpc_service_config.json",
274    package = "google.cloud.paymentgateway.issuerswitch.v1",
275    rest_numeric_enums = False,
276    service_yaml = "issuerswitch_v1.yaml",
277    transport = "grpc",
278    deps = [],
279)
280
281nodejs_gapic_assembly_pkg(
282    name = "paymentgateway-issuerswitch-v1-nodejs",
283    deps = [
284        ":issuerswitch_nodejs_gapic",
285        ":issuerswitch_proto",
286        "//google/logging/type:type_proto",
287    ],
288)
289
290##############################################################################
291# Ruby
292##############################################################################
293load(
294    "@com_google_googleapis_imports//:imports.bzl",
295    "ruby_cloud_gapic_library",
296    "ruby_gapic_assembly_pkg",
297    "ruby_grpc_library",
298    "ruby_proto_library",
299)
300
301ruby_proto_library(
302    name = "issuerswitch_ruby_proto",
303    deps = [":issuerswitch_proto"],
304)
305
306ruby_grpc_library(
307    name = "issuerswitch_ruby_grpc",
308    srcs = [":issuerswitch_proto"],
309    deps = [":issuerswitch_ruby_proto"],
310)
311
312ruby_cloud_gapic_library(
313    name = "issuerswitch_ruby_gapic",
314    srcs = [":issuerswitch_proto_with_info"],
315    extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-paymentgateway-issuerswitch-v1"],
316    grpc_service_config = "issuerswitch_grpc_service_config.json",
317    rest_numeric_enums = False,
318    service_yaml = "issuerswitch_v1.yaml",
319    transport = "grpc+rest",
320    deps = [
321        ":issuerswitch_ruby_grpc",
322        ":issuerswitch_ruby_proto",
323    ],
324)
325
326# Open Source Packages
327ruby_gapic_assembly_pkg(
328    name = "google-cloud-paymentgateway-issuerswitch-v1-ruby",
329    deps = [
330        ":issuerswitch_ruby_gapic",
331        ":issuerswitch_ruby_grpc",
332        ":issuerswitch_ruby_proto",
333    ],
334)
335
336##############################################################################
337# C#
338##############################################################################
339load(
340    "@com_google_googleapis_imports//:imports.bzl",
341    "csharp_gapic_assembly_pkg",
342    "csharp_gapic_library",
343    "csharp_grpc_library",
344    "csharp_proto_library",
345)
346
347csharp_proto_library(
348    name = "issuerswitch_csharp_proto",
349    extra_opts = [],
350    deps = [":issuerswitch_proto"],
351)
352
353csharp_grpc_library(
354    name = "issuerswitch_csharp_grpc",
355    srcs = [":issuerswitch_proto"],
356    deps = [":issuerswitch_csharp_proto"],
357)
358
359csharp_gapic_library(
360    name = "issuerswitch_csharp_gapic",
361    srcs = [":issuerswitch_proto_with_info"],
362    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
363    grpc_service_config = "issuerswitch_grpc_service_config.json",
364    rest_numeric_enums = False,
365    service_yaml = "issuerswitch_v1.yaml",
366    deps = [
367        ":issuerswitch_csharp_grpc",
368        ":issuerswitch_csharp_proto",
369    ],
370)
371
372# Open Source Packages
373csharp_gapic_assembly_pkg(
374    name = "google-cloud-paymentgateway-issuerswitch-v1-csharp",
375    deps = [
376        ":issuerswitch_csharp_gapic",
377        ":issuerswitch_csharp_grpc",
378        ":issuerswitch_csharp_proto",
379    ],
380)
381
382##############################################################################
383# C++
384##############################################################################
385load(
386    "@com_google_googleapis_imports//:imports.bzl",
387    "cc_grpc_library",
388    "cc_proto_library",
389)
390
391cc_proto_library(
392    name = "issuerswitch_cc_proto",
393    deps = [":issuerswitch_proto"],
394)
395
396cc_grpc_library(
397    name = "issuerswitch_cc_grpc",
398    srcs = [":issuerswitch_proto"],
399    grpc_only = True,
400    deps = [":issuerswitch_cc_proto"],
401)
402