Skip to content

Commit 19577ed

Browse files
Google APIscopybara-github
authored andcommitted
feat: added RetentionConfig for enabling retention of output media segments
feat: added Clip resource for performing clip cutting jobs feat: added StaticOverlay for embedding images the whole duration of the live stream docs: clarify the format of key/id fields PiperOrigin-RevId: 651136042
1 parent 99ca978 commit 19577ed

File tree

5 files changed

+395
-24
lines changed

5 files changed

+395
-24
lines changed

google/cloud/video/livestream/v1/BUILD.bazel

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# buildifier: disable=load-on-top
13+
1214
# This is an API workspace, having public visibility by default makes perfect sense.
1315
package(default_visibility = ["//visibility:public"])
1416

1517
##############################################################################
1618
# Common
1719
##############################################################################
18-
load("@rules_proto//proto:defs.bzl", "proto_library")
20+
# buildifier: disable=same-origin-load
1921
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
2023

2124
proto_library(
2225
name = "livestream_proto",
@@ -29,6 +32,7 @@ proto_library(
2932
"//google/api:annotations_proto",
3033
"//google/api:client_proto",
3134
"//google/api:field_behavior_proto",
35+
"//google/api:field_info_proto",
3236
"//google/api:resource_proto",
3337
"//google/longrunning:operations_proto",
3438
"//google/rpc:status_proto",
@@ -52,6 +56,7 @@ proto_library_with_info(
5256
##############################################################################
5357
# Java
5458
##############################################################################
59+
# buildifier: disable=same-origin-load
5560
load(
5661
"@com_google_googleapis_imports//:imports.bzl",
5762
"java_gapic_assembly_gradle_pkg",
@@ -116,6 +121,7 @@ java_gapic_assembly_gradle_pkg(
116121
##############################################################################
117122
# Go
118123
##############################################################################
124+
# buildifier: disable=same-origin-load
119125
load(
120126
"@com_google_googleapis_imports//:imports.bzl",
121127
"go_gapic_assembly_pkg",
@@ -171,6 +177,7 @@ go_gapic_assembly_pkg(
171177
##############################################################################
172178
# Python
173179
##############################################################################
180+
# buildifier: disable=same-origin-load
174181
load(
175182
"@com_google_googleapis_imports//:imports.bzl",
176183
"py_gapic_assembly_pkg",
@@ -215,6 +222,7 @@ py_gapic_assembly_pkg(
215222
##############################################################################
216223
# PHP
217224
##############################################################################
225+
# buildifier: disable=same-origin-load
218226
load(
219227
"@com_google_googleapis_imports//:imports.bzl",
220228
"php_gapic_assembly_pkg",
@@ -235,7 +243,9 @@ php_gapic_library(
235243
rest_numeric_enums = True,
236244
service_yaml = "livestream_v1.yaml",
237245
transport = "grpc+rest",
238-
deps = [":livestream_php_proto"],
246+
deps = [
247+
":livestream_php_proto",
248+
],
239249
)
240250

241251
# Open Source Packages
@@ -250,6 +260,7 @@ php_gapic_assembly_pkg(
250260
##############################################################################
251261
# Node.js
252262
##############################################################################
263+
# buildifier: disable=same-origin-load
253264
load(
254265
"@com_google_googleapis_imports//:imports.bzl",
255266
"nodejs_gapic_assembly_pkg",
@@ -280,6 +291,7 @@ nodejs_gapic_assembly_pkg(
280291
##############################################################################
281292
# Ruby
282293
##############################################################################
294+
# buildifier: disable=same-origin-load
283295
load(
284296
"@com_google_googleapis_imports//:imports.bzl",
285297
"ruby_cloud_gapic_library",
@@ -333,6 +345,7 @@ ruby_gapic_assembly_pkg(
333345
##############################################################################
334346
# C#
335347
##############################################################################
348+
# buildifier: disable=same-origin-load
336349
load(
337350
"@com_google_googleapis_imports//:imports.bzl",
338351
"csharp_gapic_assembly_pkg",
@@ -343,6 +356,7 @@ load(
343356

344357
csharp_proto_library(
345358
name = "livestream_csharp_proto",
359+
extra_opts = [],
346360
deps = [":livestream_proto"],
347361
)
348362

@@ -379,6 +393,7 @@ csharp_gapic_assembly_pkg(
379393
##############################################################################
380394
# C++
381395
##############################################################################
396+
# buildifier: disable=same-origin-load
382397
load(
383398
"@com_google_googleapis_imports//:imports.bzl",
384399
"cc_grpc_library",

google/cloud/video/livestream/v1/livestream_v1.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ documentation:
2020
- selector: google.cloud.location.Locations.ListLocations
2121
description: Lists information about the supported locations for this service.
2222

23-
backend:
24-
rules:
25-
- selector: google.cloud.location.Locations.GetLocation
26-
deadline: 60.0
27-
- selector: google.cloud.location.Locations.ListLocations
28-
deadline: 60.0
29-
- selector: 'google.cloud.video.livestream.v1.LivestreamService.*'
30-
deadline: 60.0
31-
- selector: 'google.longrunning.Operations.*'
32-
deadline: 60.0
33-
3423
http:
3524
rules:
3625
- selector: google.cloud.location.Locations.GetLocation

google/cloud/video/livestream/v1/outputs.proto

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ option ruby_package = "Google::Cloud::Video::LiveStream::V1";
3232
// Elementary streams must be packaged before mapping and sharing between
3333
// different output formats.
3434
message ElementaryStream {
35-
// A unique key for this elementary stream.
35+
// A unique key for this elementary stream. The key must be 1-63
36+
// characters in length. The key must begin and end with a letter (regardless
37+
// of case) or a number, but can contain dashes or underscores in between.
3638
string key = 4;
3739

3840
// Required. Encoding of an audio, video, or text track.
@@ -50,7 +52,9 @@ message ElementaryStream {
5052

5153
// Multiplexing settings for output stream.
5254
message MuxStream {
53-
// A unique key for this multiplexed stream.
55+
// A unique key for this multiplexed stream. The key must be 1-63
56+
// characters in length. The key must begin and end with a letter (regardless
57+
// of case) or a number, but can contain dashes or underscores in between.
5458
string key = 1;
5559

5660
// The container format. The default is `fmp4`.
@@ -122,6 +126,12 @@ message Manifest {
122126
// errors while accessing segments which are listed in the manifest that the
123127
// player has, but were already deleted from the output Google Cloud Storage
124128
// bucket. Default value is `60s`.
129+
//
130+
// If both segment_keep_duration and
131+
// [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration]
132+
// are set,
133+
// [RetentionConfig.retention_window_duration][google.cloud.video.livestream.v1.RetentionConfig.retention_window_duration]
134+
// is used and segment_keep_duration is ignored.
125135
google.protobuf.Duration segment_keep_duration = 5;
126136

127137
// Whether to use the timecode, as specified in timecode config, when setting:
@@ -132,6 +142,9 @@ message Manifest {
132142
// If false, ignore the input timecode and use the time from system clock
133143
// when the manifest is first generated. This is the default behavior.
134144
bool use_timecode_as_timeline = 6;
145+
146+
// Optional. A unique key for this manifest.
147+
string key = 7 [(google.api.field_behavior) = OPTIONAL];
135148
}
136149

137150
// Sprite sheet configuration.

0 commit comments

Comments
 (0)