xref: /aosp_15_r20/external/googleapis/google/devtools/cloudprofiler/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# buildifier: disable=load-on-top
13
14# This is an API workspace, having public visibility by default makes perfect sense.
15package(default_visibility = ["//visibility:public"])
16
17##############################################################################
18# Common
19##############################################################################
20# buildifier: disable=same-origin-load
21load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22load("@rules_proto//proto:defs.bzl", "proto_library")
23
24proto_library(
25    name = "cloudprofiler_proto",
26    srcs = [
27        "profiler.proto",
28    ],
29    deps = [
30        "//google/api:annotations_proto",
31        "//google/api:client_proto",
32        "//google/api:field_behavior_proto",
33        "//google/api:resource_proto",
34        "@com_google_protobuf//:duration_proto",
35        "@com_google_protobuf//:field_mask_proto",
36        "@com_google_protobuf//:timestamp_proto",
37    ],
38)
39
40proto_library_with_info(
41    name = "cloudprofiler_proto_with_info",
42    deps = [
43        ":cloudprofiler_proto",
44        "//google/cloud:common_resources_proto",
45    ],
46)
47
48##############################################################################
49# Java
50##############################################################################
51# buildifier: disable=same-origin-load
52load(
53    "@com_google_googleapis_imports//:imports.bzl",
54    "java_gapic_assembly_gradle_pkg",
55    "java_gapic_library",
56    "java_gapic_test",
57    "java_grpc_library",
58    "java_proto_library",
59)
60
61java_proto_library(
62    name = "cloudprofiler_java_proto",
63    deps = [":cloudprofiler_proto"],
64)
65
66java_grpc_library(
67    name = "cloudprofiler_java_grpc",
68    srcs = [":cloudprofiler_proto"],
69    deps = [":cloudprofiler_java_proto"],
70)
71
72java_gapic_library(
73    name = "cloudprofiler_java_gapic",
74    srcs = [":cloudprofiler_proto_with_info"],
75    gapic_yaml = None,
76    grpc_service_config = "cloudprofiler_grpc_service_config.json",
77    rest_numeric_enums = True,
78    service_yaml = "cloudprofiler_v2.yaml",
79    test_deps = [
80        ":cloudprofiler_java_grpc",
81    ],
82    transport = "grpc+rest",
83    deps = [
84        ":cloudprofiler_java_proto",
85        "//google/api:api_java_proto",
86    ],
87)
88
89java_gapic_test(
90    name = "cloudprofiler_java_gapic_test_suite",
91    test_classes = [
92        "com.google.devtools.cloudprofiler.v2.ExportServiceClientHttpJsonTest",
93        "com.google.devtools.cloudprofiler.v2.ExportServiceClientTest",
94        "com.google.devtools.cloudprofiler.v2.ProfilerServiceClientHttpJsonTest",
95        "com.google.devtools.cloudprofiler.v2.ProfilerServiceClientTest",
96    ],
97    runtime_deps = [":cloudprofiler_java_gapic_test"],
98)
99
100# Open Source Packages
101java_gapic_assembly_gradle_pkg(
102    name = "google-cloud-devtools-cloudprofiler-v2-java",
103    include_samples = True,
104    transport = "grpc+rest",
105    deps = [
106        ":cloudprofiler_java_gapic",
107        ":cloudprofiler_java_grpc",
108        ":cloudprofiler_java_proto",
109        ":cloudprofiler_proto",
110    ],
111)
112
113##############################################################################
114# Go
115##############################################################################
116# buildifier: disable=same-origin-load
117load(
118    "@com_google_googleapis_imports//:imports.bzl",
119    "go_gapic_assembly_pkg",
120    "go_gapic_library",
121    "go_proto_library",
122)
123
124go_proto_library(
125    name = "cloudprofiler_go_proto",
126    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
127    importpath = "cloud.google.com/go/cloudprofiler/apiv2/cloudprofilerpb",
128    protos = [":cloudprofiler_proto"],
129    deps = [
130        "//google/api:annotations_go_proto",
131    ],
132)
133
134go_gapic_library(
135    name = "cloudprofiler_go_gapic",
136    srcs = [":cloudprofiler_proto_with_info"],
137    grpc_service_config = "cloudprofiler_grpc_service_config.json",
138    importpath = "cloud.google.com/go/cloudprofiler/apiv2;cloudprofiler",
139    metadata = True,
140    release_level = "beta",
141    rest_numeric_enums = True,
142    service_yaml = "cloudprofiler_v2.yaml",
143    transport = "grpc+rest",
144    deps = [
145        ":cloudprofiler_go_proto",
146        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
147    ],
148)
149
150# Open Source Packages
151go_gapic_assembly_pkg(
152    name = "gapi-cloud-devtools-cloudprofiler-v2-go",
153    deps = [
154        ":cloudprofiler_go_gapic",
155        ":cloudprofiler_go_gapic_srcjar-metadata.srcjar",
156        ":cloudprofiler_go_gapic_srcjar-snippets.srcjar",
157        ":cloudprofiler_go_gapic_srcjar-test.srcjar",
158        ":cloudprofiler_go_proto",
159    ],
160)
161
162##############################################################################
163# Python
164##############################################################################
165# buildifier: disable=same-origin-load
166load(
167    "@com_google_googleapis_imports//:imports.bzl",
168    "py_gapic_assembly_pkg",
169    "py_gapic_library",
170    "py_test",
171)
172
173py_gapic_library(
174    name = "cloudprofiler_py_gapic",
175    srcs = [":cloudprofiler_proto"],
176    grpc_service_config = "cloudprofiler_grpc_service_config.json",
177    rest_numeric_enums = True,
178    service_yaml = "cloudprofiler_v2.yaml",
179    transport = "grpc+rest",
180    deps = [
181    ],
182)
183
184py_test(
185    name = "cloudprofiler_py_gapic_test",
186    srcs = [
187        "cloudprofiler_py_gapic_pytest.py",
188        "cloudprofiler_py_gapic_test.py",
189    ],
190    legacy_create_init = False,
191    deps = [":cloudprofiler_py_gapic"],
192)
193
194# Open Source Packages
195py_gapic_assembly_pkg(
196    name = "devtools-cloudprofiler-v2-py",
197    deps = [
198        ":cloudprofiler_py_gapic",
199    ],
200)
201
202##############################################################################
203# PHP
204##############################################################################
205# buildifier: disable=same-origin-load
206load(
207    "@com_google_googleapis_imports//:imports.bzl",
208    "php_gapic_assembly_pkg",
209    "php_gapic_library",
210    "php_proto_library",
211)
212
213php_proto_library(
214    name = "cloudprofiler_php_proto",
215    deps = [":cloudprofiler_proto"],
216)
217
218php_gapic_library(
219    name = "cloudprofiler_php_gapic",
220    srcs = [":cloudprofiler_proto_with_info"],
221    grpc_service_config = "cloudprofiler_grpc_service_config.json",
222    migration_mode = "MIGRATING",
223    rest_numeric_enums = True,
224    service_yaml = "cloudprofiler_v2.yaml",
225    transport = "grpc+rest",
226    deps = [
227        ":cloudprofiler_php_proto",
228    ],
229)
230
231# Open Source Packages
232php_gapic_assembly_pkg(
233    name = "google-cloud-devtools-cloudprofiler-v2-php",
234    deps = [
235        ":cloudprofiler_php_gapic",
236        ":cloudprofiler_php_proto",
237    ],
238)
239
240##############################################################################
241# Node.js
242##############################################################################
243# buildifier: disable=same-origin-load
244load(
245    "@com_google_googleapis_imports//:imports.bzl",
246    "nodejs_gapic_assembly_pkg",
247    "nodejs_gapic_library",
248)
249
250nodejs_gapic_library(
251    name = "cloudprofiler_nodejs_gapic",
252    package_name = "@google-cloud/cloudprofiler",
253    src = ":cloudprofiler_proto_with_info",
254    extra_protoc_parameters = ["metadata"],
255    grpc_service_config = "cloudprofiler_grpc_service_config.json",
256    package = "google.devtools.cloudprofiler.v2",
257    rest_numeric_enums = True,
258    service_yaml = "cloudprofiler_v2.yaml",
259    transport = "grpc+rest",
260    deps = [],
261)
262
263nodejs_gapic_assembly_pkg(
264    name = "devtools-cloudprofiler-v2-nodejs",
265    deps = [
266        ":cloudprofiler_nodejs_gapic",
267        ":cloudprofiler_proto",
268    ],
269)
270
271##############################################################################
272# Ruby
273##############################################################################
274# buildifier: disable=same-origin-load
275load(
276    "@com_google_googleapis_imports//:imports.bzl",
277    "ruby_cloud_gapic_library",
278    "ruby_gapic_assembly_pkg",
279    "ruby_grpc_library",
280    "ruby_proto_library",
281)
282
283ruby_proto_library(
284    name = "cloudprofiler_ruby_proto",
285    deps = [":cloudprofiler_proto"],
286)
287
288ruby_grpc_library(
289    name = "cloudprofiler_ruby_grpc",
290    srcs = [":cloudprofiler_proto"],
291    deps = [":cloudprofiler_ruby_proto"],
292)
293
294ruby_cloud_gapic_library(
295    name = "cloudprofiler_ruby_gapic",
296    srcs = [":cloudprofiler_proto_with_info"],
297    extra_protoc_parameters = [
298        "ruby-cloud-api-id=cloudprofiler.googleapis.com",
299        "ruby-cloud-api-shortname=cloudprofiler",
300        "ruby-cloud-env-prefix=PROFILER",
301        "ruby-cloud-gem-name=google-cloud-profiler-v2",
302        "ruby-cloud-product-url=https://cloud.google.com/profiler/",
303    ],
304    grpc_service_config = "cloudprofiler_grpc_service_config.json",
305    rest_numeric_enums = True,
306    ruby_cloud_description = "Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code.",
307    ruby_cloud_title = "Cloud Profiler V2",
308    service_yaml = "cloudprofiler_v2.yaml",
309    transport = "grpc+rest",
310    deps = [
311        ":cloudprofiler_ruby_grpc",
312        ":cloudprofiler_ruby_proto",
313    ],
314)
315
316# Open Source Packages
317ruby_gapic_assembly_pkg(
318    name = "google-cloud-devtools-cloudprofiler-v2-ruby",
319    deps = [
320        ":cloudprofiler_ruby_gapic",
321        ":cloudprofiler_ruby_grpc",
322        ":cloudprofiler_ruby_proto",
323    ],
324)
325
326##############################################################################
327# C#
328##############################################################################
329# buildifier: disable=same-origin-load
330load(
331    "@com_google_googleapis_imports//:imports.bzl",
332    "csharp_gapic_assembly_pkg",
333    "csharp_gapic_library",
334    "csharp_grpc_library",
335    "csharp_proto_library",
336)
337
338csharp_proto_library(
339    name = "cloudprofiler_csharp_proto",
340    deps = [":cloudprofiler_proto"],
341)
342
343csharp_grpc_library(
344    name = "cloudprofiler_csharp_grpc",
345    srcs = [":cloudprofiler_proto"],
346    deps = [":cloudprofiler_csharp_proto"],
347)
348
349csharp_gapic_library(
350    name = "cloudprofiler_csharp_gapic",
351    srcs = [":cloudprofiler_proto_with_info"],
352    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
353    grpc_service_config = "cloudprofiler_grpc_service_config.json",
354    rest_numeric_enums = True,
355    service_yaml = "cloudprofiler_v2.yaml",
356    transport = "grpc+rest",
357    deps = [
358        ":cloudprofiler_csharp_grpc",
359        ":cloudprofiler_csharp_proto",
360    ],
361)
362
363# Open Source Packages
364csharp_gapic_assembly_pkg(
365    name = "google-cloud-devtools-cloudprofiler-v2-csharp",
366    deps = [
367        ":cloudprofiler_csharp_gapic",
368        ":cloudprofiler_csharp_grpc",
369        ":cloudprofiler_csharp_proto",
370    ],
371)
372
373##############################################################################
374# C++
375##############################################################################
376# buildifier: disable=same-origin-load
377load(
378    "@com_google_googleapis_imports//:imports.bzl",
379    "cc_grpc_library",
380    "cc_proto_library",
381)
382
383cc_proto_library(
384    name = "cloudprofiler_cc_proto",
385    deps = [":cloudprofiler_proto"],
386)
387
388cc_grpc_library(
389    name = "cloudprofiler_cc_grpc",
390    srcs = [":cloudprofiler_proto"],
391    grpc_only = True,
392    deps = [":cloudprofiler_cc_proto"],
393)
394