Skip to content

Commit f296ef5

Browse files
Google APIscopybara-github
authored andcommitted
feat: add asset_id and stream_id fields to VodSession and LiveSession responses
fix!: remove COMPLETE_POD stitching option PiperOrigin-RevId: 454023909
1 parent f30516e commit f296ef5

4 files changed

Lines changed: 10 additions & 49 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ proto_library(
3939
"@com_google_protobuf//:empty_proto",
4040
"@com_google_protobuf//:field_mask_proto",
4141
"@com_google_protobuf//:struct_proto",
42-
"@com_google_protobuf//:timestamp_proto",
4342
],
4443
)
4544

@@ -134,8 +133,8 @@ go_gapic_library(
134133
srcs = [":stitcher_proto_with_info"],
135134
grpc_service_config = "videostitcher_grpc_service_config.json",
136135
importpath = "cloud.google.com/go/video/stitcher/apiv1;stitcher",
137-
service_yaml = "videostitcher_v1.yaml",
138136
metadata = True,
137+
service_yaml = "videostitcher_v1.yaml",
139138
deps = [
140139
":stitcher_go_proto",
141140
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
@@ -154,8 +153,8 @@ go_gapic_assembly_pkg(
154153
name = "gapi-cloud-video-stitcher-v1-go",
155154
deps = [
156155
":stitcher_go_gapic",
157-
":stitcher_go_gapic_srcjar-test.srcjar",
158156
":stitcher_go_gapic_srcjar-metadata.srcjar",
157+
":stitcher_go_gapic_srcjar-test.srcjar",
159158
":stitcher_go_proto",
160159
],
161160
)
@@ -173,6 +172,7 @@ py_gapic_library(
173172
name = "stitcher_py_gapic",
174173
srcs = [":stitcher_proto"],
175174
grpc_service_config = "videostitcher_grpc_service_config.json",
175+
service_yaml = "videostitcher_v1.yaml",
176176
)
177177

178178
# Open Source Packages
@@ -259,8 +259,8 @@ nodejs_gapic_assembly_pkg(
259259
##############################################################################
260260
load(
261261
"@com_google_googleapis_imports//:imports.bzl",
262-
"ruby_gapic_assembly_pkg",
263262
"ruby_cloud_gapic_library",
263+
"ruby_gapic_assembly_pkg",
264264
"ruby_grpc_library",
265265
"ruby_proto_library",
266266
)

google/cloud/video/stitcher/v1/sessions.proto

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ message VodSession {
7474

7575
// Additional options that affect the output of the manifest.
7676
ManifestOptions manifest_options = 9;
77+
78+
// Output only. The generated ID of the VodSession's source media.
79+
string asset_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
7780
}
7881

7982
// Describes what was stitched into a VOD session's manifest.
@@ -139,9 +142,6 @@ message LiveSession {
139142
// Finishes stitching the current ad before returning to content.
140143
COMPLETE_AD = 1;
141144

142-
// Finishes stitching the current pod before returning to content.
143-
COMPLETE_POD = 2;
144-
145145
// Cuts an ad short and returns to content in the middle of the ad.
146146
CUT_CURRENT = 3;
147147
}
@@ -200,6 +200,9 @@ message LiveSession {
200200

201201
// Additional options that affect the output of the manifest.
202202
ManifestOptions manifest_options = 10;
203+
204+
// Output only. The generated ID of the LiveSession's source stream.
205+
string stream_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
203206
}
204207

205208
// Metadata of an ad tag.

google/cloud/video/stitcher/v1/video_stitcher_service.proto

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ import "google/cloud/video/stitcher/v1/cdn_keys.proto";
2525
import "google/cloud/video/stitcher/v1/sessions.proto";
2626
import "google/cloud/video/stitcher/v1/slates.proto";
2727
import "google/cloud/video/stitcher/v1/stitch_details.proto";
28-
import "google/protobuf/duration.proto";
2928
import "google/protobuf/empty.proto";
3029
import "google/protobuf/field_mask.proto";
31-
import "google/protobuf/timestamp.proto";
3230

3331
option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher";
3432
option java_multiple_files = true;
@@ -548,15 +546,6 @@ message DeleteSlateRequest {
548546
message CreateLiveSessionRequest {
549547
// Required. The project and location in which the live session should be created,
550548
// in the form of `projects/{project_number}/locations/{location}`.
551-
//
552-
// Valid locations:
553-
//
554-
// * `-` (Video Stitcher API will pick a location that is closest to the
555-
// caller.)
556-
// * `us-east1`
557-
// * `us-west1`
558-
// * `us-central1`
559-
// * `europe-west1`
560549
string parent = 1 [
561550
(google.api.field_behavior) = REQUIRED,
562551
(google.api.resource_reference) = {

google/cloud/video/stitcher/v1/videostitcher_v1.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,14 @@ title: Video Stitcher API
66
apis:
77
- name: google.cloud.video.stitcher.v1.VideoStitcherService
88

9-
documentation:
10-
rules:
11-
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
12-
description: |-
13-
Gets the access control policy for a resource. Returns an empty policy
14-
if the resource exists and does not have a policy set.
15-
16-
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
17-
description: |-
18-
Sets the access control policy on the specified resource. Replaces
19-
any existing policy.
20-
21-
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
22-
errors.
23-
24-
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
25-
description: |-
26-
Returns permissions that a caller has on the specified resource. If the
27-
resource does not exist, this will return an empty set of
28-
permissions, not a `NOT_FOUND` error.
29-
30-
Note: This operation is designed to be used for building
31-
permission-aware UIs and command-line tools, not for authorization
32-
checking. This operation may "fail open" without warning.
33-
349
backend:
3510
rules:
3611
- selector: 'google.cloud.video.stitcher.v1.VideoStitcherService.*'
3712
deadline: 30.0
38-
- selector: 'google.iam.v1.IAMPolicy.*'
39-
deadline: 30.0
4013

4114
authentication:
4215
rules:
4316
- selector: 'google.cloud.video.stitcher.v1.VideoStitcherService.*'
4417
oauth:
4518
canonical_scopes: |-
4619
https://www.googleapis.com/auth/cloud-platform
47-
- selector: 'google.iam.v1.IAMPolicy.*'
48-
oauth:
49-
canonical_scopes: |-
50-
https://www.googleapis.com/auth/cloud-platform

0 commit comments

Comments
 (0)