• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package google.cloud.video.stitcher.v1;
18
19import "google/api/field_behavior.proto";
20import "google/api/resource.proto";
21import "google/protobuf/duration.proto";
22import "google/protobuf/struct.proto";
23
24option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb";
25option java_multiple_files = true;
26option java_outer_classname = "StitchDetailsProto";
27option java_package = "com.google.cloud.video.stitcher.v1";
28
29// Detailed information related to the interstitial of a VOD session. This
30// resource is only available for VOD sessions that do not implement Google Ad
31// Manager ad insertion.
32message VodStitchDetail {
33  option (google.api.resource) = {
34    type: "videostitcher.googleapis.com/VodStitchDetail"
35    pattern: "projects/{project}/locations/{location}/vodSessions/{vod_session}/vodStitchDetails/{vod_stitch_detail}"
36  };
37
38  // The name of the stitch detail in the specified VOD session, in the form of
39  // `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`.
40  string name = 1;
41
42  // A list of ad processing details for the fetched ad playlist.
43  repeated AdStitchDetail ad_stitch_details = 3;
44}
45
46// Metadata for a stitched ad.
47message AdStitchDetail {
48  // Required. The ad break ID of the processed ad.
49  string ad_break_id = 1 [(google.api.field_behavior) = REQUIRED];
50
51  // Required. The ad ID of the processed ad.
52  string ad_id = 2 [(google.api.field_behavior) = REQUIRED];
53
54  // Required. The time offset of the processed ad.
55  google.protobuf.Duration ad_time_offset = 3
56      [(google.api.field_behavior) = REQUIRED];
57
58  // Optional. Indicates the reason why the ad has been skipped.
59  string skip_reason = 4 [(google.api.field_behavior) = OPTIONAL];
60
61  // Optional. The metadata of the chosen media file for the ad.
62  map<string, google.protobuf.Value> media = 5
63      [(google.api.field_behavior) = OPTIONAL];
64}
65