Skip to content

Commit 748c2d6

Browse files
Google APIscopybara-github
authored andcommitted
feat: initial client library implementation for Timeseries Insights API
Client library for Timeseries Insights API. PiperOrigin-RevId: 469938383
1 parent eb382ed commit 748c2d6

4 files changed

Lines changed: 1367 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)