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