-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
ad_tag_details.proto
95 lines (75 loc) · 2.98 KB
/
ad_tag_details.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.video.stitcher.v1;
import "google/api/resource.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
option go_package = "cloud.google.com/go/video/stitcher/apiv1/stitcherpb;stitcherpb";
option java_multiple_files = true;
option java_outer_classname = "AdTagDetailsProto";
option java_package = "com.google.cloud.video.stitcher.v1";
// Container for a live session's ad tag detail.
message LiveAdTagDetail {
option (google.api.resource) = {
type: "videostitcher.googleapis.com/LiveAdTagDetail"
pattern: "projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}"
};
// The resource name in the form of
// `projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{id}`.
string name = 1;
// A list of ad requests.
repeated AdRequest ad_requests = 2;
}
// Information related to the details for one ad tag.
message VodAdTagDetail {
option (google.api.resource) = {
type: "videostitcher.googleapis.com/VodAdTagDetail"
pattern: "projects/{project}/locations/{location}/vodSessions/{vod_session}/vodAdTagDetails/{vod_ad_tag_detail}"
};
// The name of the ad tag detail for the specified VOD session, in the form of
// `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{id}`.
string name = 1;
// A list of ad requests for one ad tag.
repeated AdRequest ad_requests = 2;
}
// Details of an ad request to an ad server.
message AdRequest {
// The ad tag URI processed with integrated macros.
string uri = 1;
// The request metadata used to make the ad request.
RequestMetadata request_metadata = 2;
// The response metadata received from the ad request.
ResponseMetadata response_metadata = 3;
}
// Metadata for an ad request.
message RequestMetadata {
// The HTTP headers of the ad request.
google.protobuf.Struct headers = 1;
}
// Metadata for the response of an ad request.
message ResponseMetadata {
// Error message received when making the ad request.
string error = 1;
// Headers from the response.
google.protobuf.Struct headers = 2;
// Status code for the response.
string status_code = 3;
// Size in bytes of the response.
int32 size_bytes = 4;
// Total time elapsed for the response.
google.protobuf.Duration duration = 5;
// The body of the response.
string body = 6;
}