Skip to content

Commit 756fe00

Browse files
Google APIscopybara-github
authored andcommitted
feat: Live Stream API logging proto for documentation
PiperOrigin-RevId: 414026995
1 parent 26ab5dd commit 756fe00

2 files changed

Lines changed: 334 additions & 0 deletions

File tree

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
3+
# This is an API workspace, having public visibility by default makes perfect sense.
4+
package(default_visibility = ["//visibility:public"])
5+
6+
##############################################################################
7+
# Common
8+
##############################################################################
9+
load("@rules_proto//proto:defs.bzl", "proto_library")
10+
11+
proto_library(
12+
name = "logging_proto",
13+
srcs = [
14+
"logs.proto",
15+
],
16+
deps = [
17+
"//google/cloud/video/livestream/v1:livestream_proto",
18+
"//google/rpc:status_proto",
19+
],
20+
)
21+
22+
##############################################################################
23+
# Java
24+
##############################################################################
25+
load(
26+
"@com_google_googleapis_imports//:imports.bzl",
27+
"java_grpc_library",
28+
"java_proto_library",
29+
)
30+
31+
java_proto_library(
32+
name = "logging_java_proto",
33+
deps = [":logging_proto"],
34+
)
35+
36+
java_grpc_library(
37+
name = "logging_java_grpc",
38+
srcs = [":logging_proto"],
39+
deps = [":logging_java_proto"],
40+
)
41+
42+
##############################################################################
43+
# Go
44+
##############################################################################
45+
load(
46+
"@com_google_googleapis_imports//:imports.bzl",
47+
"go_proto_library",
48+
)
49+
50+
go_proto_library(
51+
name = "logging_go_proto",
52+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
53+
importpath = "google.golang.org/genproto/googleapis/cloud/video/livestream/logging/v1",
54+
protos = [":logging_proto"],
55+
deps = [
56+
"//google/cloud/video/livestream/v1:livestream_go_proto",
57+
"//google/rpc:status_go_proto",
58+
],
59+
)
60+
61+
##############################################################################
62+
# Python
63+
##############################################################################
64+
load(
65+
"@com_google_googleapis_imports//:imports.bzl",
66+
"moved_proto_library",
67+
"py_grpc_library",
68+
"py_proto_library",
69+
)
70+
71+
moved_proto_library(
72+
name = "logging_moved_proto",
73+
srcs = [":logging_proto"],
74+
deps = [
75+
"//google/cloud/video/livestream/v1:livestream_proto",
76+
"//google/rpc:status_proto",
77+
],
78+
)
79+
80+
py_proto_library(
81+
name = "logging_py_proto",
82+
deps = [":logging_moved_proto"],
83+
)
84+
85+
py_grpc_library(
86+
name = "logging_py_grpc",
87+
srcs = [":logging_moved_proto"],
88+
deps = [":logging_py_proto"],
89+
)
90+
91+
##############################################################################
92+
# PHP
93+
##############################################################################
94+
load(
95+
"@com_google_googleapis_imports//:imports.bzl",
96+
"php_grpc_library",
97+
"php_proto_library",
98+
)
99+
100+
php_proto_library(
101+
name = "logging_php_proto",
102+
deps = [":logging_proto"],
103+
)
104+
105+
php_grpc_library(
106+
name = "logging_php_grpc",
107+
srcs = [":logging_proto"],
108+
deps = [":logging_php_proto"],
109+
)
110+
111+
##############################################################################
112+
# Node.js
113+
##############################################################################
114+
load(
115+
"@com_google_googleapis_imports//:imports.bzl",
116+
"nodejs_gapic_assembly_pkg",
117+
"nodejs_gapic_library",
118+
)
119+
120+
##############################################################################
121+
# Ruby
122+
##############################################################################
123+
load(
124+
"@com_google_googleapis_imports//:imports.bzl",
125+
"ruby_grpc_library",
126+
"ruby_proto_library",
127+
)
128+
129+
ruby_proto_library(
130+
name = "logging_ruby_proto",
131+
deps = [":logging_proto"],
132+
)
133+
134+
ruby_grpc_library(
135+
name = "logging_ruby_grpc",
136+
srcs = [":logging_proto"],
137+
deps = [":logging_ruby_proto"],
138+
)
139+
140+
##############################################################################
141+
# C#
142+
##############################################################################
143+
load(
144+
"@com_google_googleapis_imports//:imports.bzl",
145+
"csharp_grpc_library",
146+
"csharp_proto_library",
147+
)
148+
149+
csharp_proto_library(
150+
name = "logging_csharp_proto",
151+
deps = [":logging_proto"],
152+
)
153+
154+
csharp_grpc_library(
155+
name = "logging_csharp_grpc",
156+
srcs = [":logging_proto"],
157+
deps = [":logging_csharp_proto"],
158+
)
159+
160+
##############################################################################
161+
# C++
162+
##############################################################################
163+
load(
164+
"@com_google_googleapis_imports//:imports.bzl",
165+
"cc_grpc_library",
166+
"cc_proto_library",
167+
)
168+
169+
cc_proto_library(
170+
name = "logging_cc_proto",
171+
deps = [":logging_proto"],
172+
)
173+
174+
cc_grpc_library(
175+
name = "logging_cc_grpc",
176+
srcs = [":logging_proto"],
177+
grpc_only = True,
178+
deps = [":logging_cc_proto"],
179+
)
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
// Copyright 2021 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+
15+
syntax = "proto3";
16+
17+
package google.cloud.video.livestream.logging.v1;
18+
19+
import "google/cloud/video/livestream/v1/resources.proto";
20+
import "google/rpc/status.proto";
21+
22+
option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/logging/v1;logging";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "LogsProto";
25+
option java_package = "com.google.cloud.video.livestream.logging.v1";
26+
27+
// Logs of activities related to the Channels.
28+
message ChannelActivity {
29+
// Message is for more details of the log and instructions to users.
30+
string message = 1;
31+
32+
// Different types of the logs.
33+
oneof activity_type {
34+
// The channel streaming state changes.
35+
StreamingStateChange streaming_state_change = 2;
36+
37+
// An error happens with the video pipeline.
38+
StreamingError streaming_error = 3;
39+
40+
// The channel has accepted an input stream.
41+
InputAccept input_accept = 4;
42+
43+
// An error happens with the input stream.
44+
InputError input_error = 5;
45+
46+
// An input stream disconnects.
47+
InputDisconnect input_disconnect = 6;
48+
}
49+
}
50+
51+
// StreamingStateChange records when the channel streaming state changes.
52+
message StreamingStateChange {
53+
// New streaming state of the channel.
54+
google.cloud.video.livestream.v1.Channel.StreamingState new_state = 1;
55+
56+
// Previous streaming state of the channel.
57+
google.cloud.video.livestream.v1.Channel.StreamingState previous_state = 2;
58+
}
59+
60+
// StreamingError records when an error happens with the video pipeline.
61+
message StreamingError {
62+
// A description of the reason for the streaming error.
63+
google.rpc.Status error = 1;
64+
}
65+
66+
// InputAccept records when the channel has accepted an input stream.
67+
message InputAccept {
68+
// ID of the input stream.
69+
string stream_id = 1;
70+
71+
// The user-defined key for the input attachment.
72+
string input_attachment = 2;
73+
74+
// Properties of the input stream.
75+
InputStreamProperty input_stream_property = 3;
76+
}
77+
78+
// InputError records when an error happens with the input stream.
79+
message InputError {
80+
// ID of the input stream.
81+
string stream_id = 1;
82+
83+
// The user-defined key for the input attachment. If the stream doesn’t belong
84+
// to any input attachment, this field is empty.
85+
string input_attachment = 2;
86+
87+
// Properties of the input stream.
88+
InputStreamProperty input_stream_property = 3;
89+
90+
// A description of the reason for the error with the input stream.
91+
google.rpc.Status error = 4;
92+
}
93+
94+
// Properties of the input stream.
95+
message InputStreamProperty {
96+
// Properties of the video streams.
97+
repeated VideoStream video_streams = 1;
98+
99+
// Properties of the audio streams.
100+
repeated AudioStream audio_streams = 2;
101+
}
102+
103+
// Properties of the video stream.
104+
message VideoStream {
105+
// Index of this video stream.
106+
int32 index = 1;
107+
108+
// Properties of the video format.
109+
VideoFormat video_format = 2;
110+
}
111+
112+
// Properties of the video format.
113+
message VideoFormat {
114+
// Video codec used in this video stream.
115+
string codec = 1;
116+
117+
// The width of the video stream in pixels.
118+
int32 width_pixels = 2;
119+
120+
// The height of the video stream in pixels.
121+
int32 height_pixels = 3;
122+
123+
// The frame rate of the input video stream.
124+
double frame_rate = 4;
125+
}
126+
127+
// Properties of the audio stream.
128+
message AudioStream {
129+
// Index of this audio stream.
130+
int32 index = 1;
131+
132+
// Properties of the audio format.
133+
AudioFormat audio_format = 2;
134+
}
135+
136+
// Properties of the audio format.
137+
message AudioFormat {
138+
// Audio codec used in this audio stream.
139+
string codec = 1;
140+
141+
// The number of audio channels.
142+
int32 channel_count = 2;
143+
144+
// A list of channel names specifying the layout of the audio channels.
145+
repeated string channel_layout = 3;
146+
}
147+
148+
// InputDisconnect records when an input stream disconnects.
149+
message InputDisconnect {
150+
// ID of the input stream.
151+
string stream_id = 1;
152+
153+
// The user-defined key for the input attachment.
154+
string input_attachment = 2;
155+
}

0 commit comments

Comments
 (0)