Skip to content

Commit b35c85c

Browse files
Google APIscopybara-github
authored andcommitted
feat: Initial release of Live Stream API v1 Public Preview
PiperOrigin-RevId: 411133022
1 parent 68b0c8a commit b35c85c

6 files changed

Lines changed: 1864 additions & 0 deletions

File tree

Lines changed: 347 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
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 = "livestream_proto",
23+
srcs = [
24+
"outputs.proto",
25+
"resources.proto",
26+
"service.proto",
27+
],
28+
deps = [
29+
"//google/api:annotations_proto",
30+
"//google/api:client_proto",
31+
"//google/api:field_behavior_proto",
32+
"//google/api:resource_proto",
33+
"//google/longrunning:operations_proto",
34+
"//google/rpc:status_proto",
35+
"@com_google_protobuf//:duration_proto",
36+
"@com_google_protobuf//:empty_proto",
37+
"@com_google_protobuf//:field_mask_proto",
38+
"@com_google_protobuf//:timestamp_proto",
39+
],
40+
)
41+
42+
proto_library_with_info(
43+
name = "livestream_proto_with_info",
44+
deps = [
45+
":livestream_proto",
46+
"//google/cloud:common_resources_proto",
47+
],
48+
)
49+
50+
##############################################################################
51+
# Java
52+
##############################################################################
53+
load(
54+
"@com_google_googleapis_imports//:imports.bzl",
55+
"java_gapic_assembly_gradle_pkg",
56+
"java_gapic_library",
57+
"java_gapic_test",
58+
"java_grpc_library",
59+
"java_proto_library",
60+
)
61+
62+
java_proto_library(
63+
name = "livestream_java_proto",
64+
deps = [":livestream_proto"],
65+
)
66+
67+
java_grpc_library(
68+
name = "livestream_java_grpc",
69+
srcs = [":livestream_proto"],
70+
deps = [":livestream_java_proto"],
71+
)
72+
73+
java_gapic_library(
74+
name = "livestream_java_gapic",
75+
srcs = [":livestream_proto_with_info"],
76+
gapic_yaml = None,
77+
grpc_service_config = "livestream_grpc_service_config.json",
78+
service_yaml = "livestream_v1.yaml",
79+
test_deps = [
80+
":livestream_java_grpc",
81+
],
82+
deps = [
83+
":livestream_java_proto",
84+
"//google/api:api_java_proto",
85+
],
86+
)
87+
88+
java_gapic_test(
89+
name = "livestream_java_gapic_test_suite",
90+
test_classes = [
91+
"com.google.cloud.video.livestream.v1.LivestreamServiceClientTest",
92+
],
93+
runtime_deps = [":livestream_java_gapic_test"],
94+
)
95+
96+
# Open Source Packages
97+
java_gapic_assembly_gradle_pkg(
98+
name = "google-cloud-video-livestream-v1-java",
99+
deps = [
100+
":livestream_java_gapic",
101+
":livestream_java_grpc",
102+
":livestream_java_proto",
103+
":livestream_proto",
104+
],
105+
)
106+
107+
##############################################################################
108+
# Go
109+
##############################################################################
110+
load(
111+
"@com_google_googleapis_imports//:imports.bzl",
112+
"go_gapic_assembly_pkg",
113+
"go_gapic_library",
114+
"go_proto_library",
115+
"go_test",
116+
)
117+
118+
go_proto_library(
119+
name = "livestream_go_proto",
120+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
121+
importpath = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1",
122+
protos = [":livestream_proto"],
123+
deps = [
124+
"//google/api:annotations_go_proto",
125+
"//google/longrunning:longrunning_go_proto",
126+
"//google/rpc:status_go_proto",
127+
],
128+
)
129+
130+
go_gapic_library(
131+
name = "livestream_go_gapic",
132+
srcs = [":livestream_proto_with_info"],
133+
grpc_service_config = "livestream_grpc_service_config.json",
134+
importpath = "cloud.google.com/go/video/livestream/apiv1;livestream",
135+
metadata = True,
136+
service_yaml = "livestream_v1.yaml",
137+
deps = [
138+
":livestream_go_proto",
139+
"//google/longrunning:longrunning_go_proto",
140+
"@com_google_cloud_go//longrunning:go_default_library",
141+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
142+
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
143+
],
144+
)
145+
146+
go_test(
147+
name = "livestream_go_gapic_test",
148+
srcs = [":livestream_go_gapic_srcjar_test"],
149+
embed = [":livestream_go_gapic"],
150+
importpath = "cloud.google.com/go/video/livestream/apiv1",
151+
)
152+
153+
# Open Source Packages
154+
go_gapic_assembly_pkg(
155+
name = "gapi-cloud-video-livestream-v1-go",
156+
deps = [
157+
":livestream_go_gapic",
158+
":livestream_go_gapic_srcjar-metadata.srcjar",
159+
":livestream_go_gapic_srcjar-test.srcjar",
160+
":livestream_go_proto",
161+
],
162+
)
163+
164+
##############################################################################
165+
# Python
166+
##############################################################################
167+
load(
168+
"@com_google_googleapis_imports//:imports.bzl",
169+
"py_gapic_assembly_pkg",
170+
"py_gapic_library",
171+
)
172+
173+
py_gapic_library(
174+
name = "livestream_py_gapic",
175+
srcs = [":livestream_proto"],
176+
grpc_service_config = "livestream_grpc_service_config.json",
177+
)
178+
179+
# Open Source Packages
180+
py_gapic_assembly_pkg(
181+
name = "video-livestream-v1-py",
182+
deps = [
183+
":livestream_py_gapic",
184+
],
185+
)
186+
187+
##############################################################################
188+
# PHP
189+
##############################################################################
190+
load(
191+
"@com_google_googleapis_imports//:imports.bzl",
192+
"php_gapic_assembly_pkg",
193+
"php_gapic_library",
194+
"php_grpc_library",
195+
"php_proto_library",
196+
)
197+
198+
php_proto_library(
199+
name = "livestream_php_proto",
200+
deps = [":livestream_proto"],
201+
)
202+
203+
php_grpc_library(
204+
name = "livestream_php_grpc",
205+
srcs = [":livestream_proto"],
206+
deps = [":livestream_php_proto"],
207+
)
208+
209+
php_gapic_library(
210+
name = "livestream_php_gapic",
211+
srcs = [":livestream_proto_with_info"],
212+
grpc_service_config = "livestream_grpc_service_config.json",
213+
service_yaml = "livestream_v1.yaml",
214+
deps = [
215+
":livestream_php_grpc",
216+
":livestream_php_proto",
217+
],
218+
)
219+
220+
# Open Source Packages
221+
php_gapic_assembly_pkg(
222+
name = "google-cloud-video-livestream-v1-php",
223+
deps = [
224+
":livestream_php_gapic",
225+
":livestream_php_grpc",
226+
":livestream_php_proto",
227+
],
228+
)
229+
230+
##############################################################################
231+
# Node.js
232+
##############################################################################
233+
load(
234+
"@com_google_googleapis_imports//:imports.bzl",
235+
"nodejs_gapic_assembly_pkg",
236+
"nodejs_gapic_library",
237+
)
238+
239+
nodejs_gapic_library(
240+
name = "livestream_nodejs_gapic",
241+
package_name = "@google-cloud/livestream",
242+
src = ":livestream_proto_with_info",
243+
extra_protoc_parameters = ["metadata"],
244+
grpc_service_config = "livestream_grpc_service_config.json",
245+
package = "google.cloud.video.livestream.v1",
246+
service_yaml = "livestream_v1.yaml",
247+
deps = [],
248+
)
249+
250+
nodejs_gapic_assembly_pkg(
251+
name = "video-livestream-v1-nodejs",
252+
deps = [
253+
":livestream_nodejs_gapic",
254+
":livestream_proto",
255+
],
256+
)
257+
258+
##############################################################################
259+
# Ruby
260+
##############################################################################
261+
load(
262+
"@com_google_googleapis_imports//:imports.bzl",
263+
"ruby_cloud_gapic_library",
264+
"ruby_gapic_assembly_pkg",
265+
"ruby_grpc_library",
266+
"ruby_proto_library",
267+
)
268+
269+
ruby_proto_library(
270+
name = "livestream_ruby_proto",
271+
deps = [":livestream_proto"],
272+
)
273+
274+
ruby_grpc_library(
275+
name = "livestream_ruby_grpc",
276+
srcs = [":livestream_proto"],
277+
deps = [":livestream_ruby_proto"],
278+
)
279+
280+
ruby_cloud_gapic_library(
281+
name = "livestream_ruby_gapic",
282+
srcs = [":livestream_proto_with_info"],
283+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-video-livestream-v1"],
284+
grpc_service_config = "livestream_grpc_service_config.json",
285+
deps = [
286+
":livestream_ruby_grpc",
287+
":livestream_ruby_proto",
288+
],
289+
)
290+
291+
# Open Source Packages
292+
ruby_gapic_assembly_pkg(
293+
name = "google-cloud-video-livestream-v1-ruby",
294+
deps = [
295+
":livestream_ruby_gapic",
296+
":livestream_ruby_grpc",
297+
":livestream_ruby_proto",
298+
],
299+
)
300+
301+
##############################################################################
302+
# C#
303+
##############################################################################
304+
load(
305+
"@com_google_googleapis_imports//:imports.bzl",
306+
"csharp_gapic_assembly_pkg",
307+
"csharp_gapic_library",
308+
"csharp_grpc_library",
309+
"csharp_proto_library",
310+
)
311+
312+
csharp_proto_library(
313+
name = "livestream_csharp_proto",
314+
deps = [":livestream_proto"],
315+
)
316+
317+
csharp_grpc_library(
318+
name = "livestream_csharp_grpc",
319+
srcs = [":livestream_proto"],
320+
deps = [":livestream_csharp_proto"],
321+
)
322+
323+
csharp_gapic_library(
324+
name = "livestream_csharp_gapic",
325+
srcs = [":livestream_proto_with_info"],
326+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
327+
grpc_service_config = "livestream_grpc_service_config.json",
328+
deps = [
329+
":livestream_csharp_grpc",
330+
":livestream_csharp_proto",
331+
],
332+
)
333+
334+
# Open Source Packages
335+
csharp_gapic_assembly_pkg(
336+
name = "google-cloud-video-livestream-v1-csharp",
337+
deps = [
338+
":livestream_csharp_gapic",
339+
":livestream_csharp_grpc",
340+
":livestream_csharp_proto",
341+
],
342+
)
343+
344+
##############################################################################
345+
# C++
346+
##############################################################################
347+
# Put your C++ rules here
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"methodConfig": [{
3+
"name": [
4+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "ListChannels" },
5+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "GetChannel" },
6+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "ListInputs" },
7+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "GetInput" },
8+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "ListEvents" },
9+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "GetEvent" }
10+
],
11+
"timeout": "60s",
12+
"retryPolicy": {
13+
"maxAttempts": 5,
14+
"initialBackoff": "1s",
15+
"maxBackoff": "10s",
16+
"backoffMultiplier": 1.3,
17+
"retryableStatusCodes": ["UNAVAILABLE"]
18+
}
19+
},
20+
{
21+
"name": [
22+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "CreateChannel" },
23+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "DeleteChannel" },
24+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "UpdateChannel" },
25+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "StartChannel" },
26+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "StopChannel" },
27+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "CreateInput" },
28+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "DeleteInput" },
29+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "UpdateInput" },
30+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "CreateEvent" },
31+
{ "service": "google.cloud.video.livestream.v1.LivestreamService", "method": "DeleteEvent" }
32+
],
33+
"timeout": "60s"
34+
}]
35+
}

0 commit comments

Comments
 (0)