xref: /aosp_15_r20/external/googleapis/google/cloud/timeseriesinsights/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 = "timeseriesinsights_proto",
23    srcs = [
24        "timeseries_insights.proto",
25    ],
26    deps = [
27        "//google/api:annotations_proto",
28        "//google/api:client_proto",
29        "//google/api:field_behavior_proto",
30        "//google/api:resource_proto",
31        "//google/rpc:status_proto",
32        "@com_google_protobuf//:duration_proto",
33        "@com_google_protobuf//:empty_proto",
34        "@com_google_protobuf//:timestamp_proto",
35    ],
36)
37
38proto_library_with_info(
39    name = "timeseriesinsights_proto_with_info",
40    deps = [
41        ":timeseriesinsights_proto",
42        "//google/cloud:common_resources_proto",
43        "//google/cloud/location:location_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 = "timeseriesinsights_java_proto",
61    deps = [":timeseriesinsights_proto"],
62)
63
64java_grpc_library(
65    name = "timeseriesinsights_java_grpc",
66    srcs = [":timeseriesinsights_proto"],
67    deps = [":timeseriesinsights_java_proto"],
68)
69
70java_gapic_library(
71    name = "timeseriesinsights_java_gapic",
72    srcs = [":timeseriesinsights_proto_with_info"],
73    gapic_yaml = None,
74    grpc_service_config = "timeseries_insights_grpc_service_config.json",
75    rest_numeric_enums = True,
76    service_yaml = "timeseriesinsights_v1.yaml",
77    test_deps = [
78        ":timeseriesinsights_java_grpc",
79        "//google/cloud/location:location_java_grpc",
80    ],
81    transport = "grpc+rest",
82    deps = [
83        ":timeseriesinsights_java_proto",
84        "//google/api:api_java_proto",
85        "//google/cloud/location:location_java_proto",
86    ],
87)
88
89java_gapic_test(
90    name = "timeseriesinsights_java_gapic_test_suite",
91    test_classes = [
92        "com.google.cloud.timeseriesinsights.v1.TimeseriesInsightsControllerClientHttpJsonTest",
93        "com.google.cloud.timeseriesinsights.v1.TimeseriesInsightsControllerClientTest",
94    ],
95    runtime_deps = [":timeseriesinsights_java_gapic_test"],
96)
97
98# Open Source Packages
99java_gapic_assembly_gradle_pkg(
100    name = "google-cloud-timeseriesinsights-v1-java",
101    include_samples = True,
102    transport = "grpc+rest",
103    deps = [
104        ":timeseriesinsights_java_gapic",
105        ":timeseriesinsights_java_grpc",
106        ":timeseriesinsights_java_proto",
107        ":timeseriesinsights_proto",
108    ],
109)
110
111##############################################################################
112# Go
113##############################################################################
114load(
115    "@com_google_googleapis_imports//:imports.bzl",
116    "go_gapic_assembly_pkg",
117    "go_gapic_library",
118    "go_proto_library",
119)
120
121go_proto_library(
122    name = "timeseriesinsights_go_proto",
123    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
124    importpath = "cloud.google.com/go/timeseriesinsights/apiv1/timeseriesinsightspb",
125    protos = [":timeseriesinsights_proto"],
126    deps = [
127        "//google/api:annotations_go_proto",
128        "//google/rpc:status_go_proto",
129    ],
130)
131
132go_gapic_library(
133    name = "timeseriesinsights_go_gapic",
134    srcs = [":timeseriesinsights_proto_with_info"],
135    grpc_service_config = "timeseries_insights_grpc_service_config.json",
136    importpath = "cloud.google.com/go/timeseriesinsights/apiv1;timeseriesinsights",
137    metadata = True,
138    release_level = "ga",
139    rest_numeric_enums = True,
140    service_yaml = "timeseriesinsights_v1.yaml",
141    transport = "grpc+rest",
142    deps = [
143        ":timeseriesinsights_go_proto",
144        "//google/cloud/location:location_go_proto",
145        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
146    ],
147)
148
149# Open Source Packages
150go_gapic_assembly_pkg(
151    name = "gapi-cloud-timeseriesinsights-v1-go",
152    deps = [
153        ":timeseriesinsights_go_gapic",
154        ":timeseriesinsights_go_gapic_srcjar-metadata.srcjar",
155        ":timeseriesinsights_go_gapic_srcjar-snippets.srcjar",
156        ":timeseriesinsights_go_gapic_srcjar-test.srcjar",
157        ":timeseriesinsights_go_proto",
158    ],
159)
160
161##############################################################################
162# Python
163##############################################################################
164load(
165    "@com_google_googleapis_imports//:imports.bzl",
166    "py_gapic_assembly_pkg",
167    "py_gapic_library",
168    "py_test",
169)
170
171py_gapic_library(
172    name = "timeseriesinsights_py_gapic",
173    srcs = [":timeseriesinsights_proto"],
174    grpc_service_config = "timeseries_insights_grpc_service_config.json",
175    rest_numeric_enums = True,
176    service_yaml = "timeseriesinsights_v1.yaml",
177    transport = "grpc+rest",
178    deps = [
179    ],
180)
181
182py_test(
183    name = "timeseriesinsights_py_gapic_test",
184    srcs = [
185        "timeseriesinsights_py_gapic_pytest.py",
186        "timeseriesinsights_py_gapic_test.py",
187    ],
188    legacy_create_init = False,
189    deps = [":timeseriesinsights_py_gapic"],
190)
191
192# Open Source Packages
193py_gapic_assembly_pkg(
194    name = "timeseriesinsights-v1-py",
195    deps = [
196        ":timeseriesinsights_py_gapic",
197    ],
198)
199
200##############################################################################
201# PHP
202##############################################################################
203load(
204    "@com_google_googleapis_imports//:imports.bzl",
205    "php_gapic_assembly_pkg",
206    "php_gapic_library",
207    "php_proto_library",
208)
209
210php_proto_library(
211    name = "timeseriesinsights_php_proto",
212    deps = [":timeseriesinsights_proto"],
213)
214
215php_gapic_library(
216    name = "timeseriesinsights_php_gapic",
217    srcs = [":timeseriesinsights_proto_with_info"],
218    grpc_service_config = "timeseries_insights_grpc_service_config.json",
219    rest_numeric_enums = True,
220    service_yaml = "timeseriesinsights_v1.yaml",
221    transport = "grpc+rest",
222    deps = [":timeseriesinsights_php_proto"],
223)
224
225# Open Source Packages
226php_gapic_assembly_pkg(
227    name = "google-cloud-timeseriesinsights-v1-php",
228    deps = [
229        ":timeseriesinsights_php_gapic",
230        ":timeseriesinsights_php_proto",
231    ],
232)
233
234##############################################################################
235# Node.js
236##############################################################################
237load(
238    "@com_google_googleapis_imports//:imports.bzl",
239    "nodejs_gapic_assembly_pkg",
240    "nodejs_gapic_library",
241)
242
243nodejs_gapic_library(
244    name = "timeseriesinsights_nodejs_gapic",
245    package_name = "@google-cloud/timeseriesinsights",
246    src = ":timeseriesinsights_proto_with_info",
247    extra_protoc_parameters = ["metadata"],
248    grpc_service_config = "timeseries_insights_grpc_service_config.json",
249    package = "google.cloud.timeseriesinsights.v1",
250    rest_numeric_enums = True,
251    service_yaml = "timeseriesinsights_v1.yaml",
252    transport = "grpc+rest",
253    deps = [],
254)
255
256nodejs_gapic_assembly_pkg(
257    name = "timeseriesinsights-v1-nodejs",
258    deps = [
259        ":timeseriesinsights_nodejs_gapic",
260        ":timeseriesinsights_proto",
261    ],
262)
263
264##############################################################################
265# Ruby
266##############################################################################
267load(
268    "@com_google_googleapis_imports//:imports.bzl",
269    "ruby_cloud_gapic_library",
270    "ruby_gapic_assembly_pkg",
271    "ruby_grpc_library",
272    "ruby_proto_library",
273)
274
275ruby_proto_library(
276    name = "timeseriesinsights_ruby_proto",
277    deps = [":timeseriesinsights_proto"],
278)
279
280ruby_grpc_library(
281    name = "timeseriesinsights_ruby_grpc",
282    srcs = [":timeseriesinsights_proto"],
283    deps = [":timeseriesinsights_ruby_proto"],
284)
285
286ruby_cloud_gapic_library(
287    name = "timeseriesinsights_ruby_gapic",
288    srcs = [":timeseriesinsights_proto_with_info"],
289    extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-timeseriesinsights-v1"],
290    grpc_service_config = "timeseries_insights_grpc_service_config.json",
291    rest_numeric_enums = True,
292    service_yaml = "timeseriesinsights_v1.yaml",
293    transport = "grpc+rest",
294    deps = [
295        ":timeseriesinsights_ruby_grpc",
296        ":timeseriesinsights_ruby_proto",
297    ],
298)
299
300# Open Source Packages
301ruby_gapic_assembly_pkg(
302    name = "google-cloud-timeseriesinsights-v1-ruby",
303    deps = [
304        ":timeseriesinsights_ruby_gapic",
305        ":timeseriesinsights_ruby_grpc",
306        ":timeseriesinsights_ruby_proto",
307    ],
308)
309
310##############################################################################
311# C#
312##############################################################################
313load(
314    "@com_google_googleapis_imports//:imports.bzl",
315    "csharp_gapic_assembly_pkg",
316    "csharp_gapic_library",
317    "csharp_grpc_library",
318    "csharp_proto_library",
319)
320
321csharp_proto_library(
322    name = "timeseriesinsights_csharp_proto",
323    deps = [":timeseriesinsights_proto"],
324)
325
326csharp_grpc_library(
327    name = "timeseriesinsights_csharp_grpc",
328    srcs = [":timeseriesinsights_proto"],
329    deps = [":timeseriesinsights_csharp_proto"],
330)
331
332csharp_gapic_library(
333    name = "timeseriesinsights_csharp_gapic",
334    srcs = [":timeseriesinsights_proto_with_info"],
335    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
336    grpc_service_config = "timeseries_insights_grpc_service_config.json",
337    rest_numeric_enums = True,
338    service_yaml = "timeseriesinsights_v1.yaml",
339    transport = "grpc+rest",
340    deps = [
341        ":timeseriesinsights_csharp_grpc",
342        ":timeseriesinsights_csharp_proto",
343    ],
344)
345
346# Open Source Packages
347csharp_gapic_assembly_pkg(
348    name = "google-cloud-timeseriesinsights-v1-csharp",
349    deps = [
350        ":timeseriesinsights_csharp_gapic",
351        ":timeseriesinsights_csharp_grpc",
352        ":timeseriesinsights_csharp_proto",
353    ],
354)
355
356##############################################################################
357# C++
358##############################################################################
359load(
360    "@com_google_googleapis_imports//:imports.bzl",
361    "cc_grpc_library",
362    "cc_proto_library",
363)
364
365cc_proto_library(
366    name = "timeseriesinsights_cc_proto",
367    deps = [":timeseriesinsights_proto"],
368)
369
370cc_grpc_library(
371    name = "timeseriesinsights_cc_grpc",
372    srcs = [":timeseriesinsights_proto"],
373    grpc_only = True,
374    deps = [":timeseriesinsights_cc_proto"],
375)
376