@@ -16,18 +16,21 @@ syntax = "proto3";
1616
1717package google.cloud.video.livestream.v1 ;
1818
19+ import "google/api/annotations.proto" ;
1920import "google/api/field_behavior.proto" ;
2021import "google/api/resource.proto" ;
2122import "google/cloud/video/livestream/v1/outputs.proto" ;
2223import "google/protobuf/duration.proto" ;
2324import "google/protobuf/timestamp.proto" ;
2425import "google/rpc/status.proto" ;
25- import "google/api/annotations.proto" ;
2626
27+ option csharp_namespace = "Google.Cloud.Video.LiveStream.V1" ;
2728option go_package = "google.golang.org/genproto/googleapis/cloud/video/livestream/v1;livestream" ;
2829option java_multiple_files = true ;
2930option java_outer_classname = "ResourcesProto" ;
3031option java_package = "com.google.cloud.video.livestream.v1" ;
32+ option php_namespace = "Google\\Cloud\\Video\\LiveStream\\V1" ;
33+ option ruby_package = "Google::Cloud::Video::LiveStream::V1" ;
3134
3235// Input resource represents the endpoint from which the channel ingests
3336// the input stream.
@@ -37,16 +40,6 @@ message Input {
3740 pattern : "projects/{project}/locations/{location}/inputs/{input}"
3841 };
3942
40- // Security rules for access control. Each field represents one security rule.
41- // Only when the source of the input stream satisfies all the fields, this
42- // input stream can be accepted.
43- message SecurityRule {
44- // At least one ip range must match unless none specified. The IP range is
45- // defined by CIDR block: for example, `192.0.1.0/24` for a range and
46- // `192.0.1.0/32` for a single IP address.
47- repeated string ip_ranges = 1 ;
48- }
49-
5043 // The type of the input.
5144 enum Type {
5245 // Input type is not specified.
@@ -64,16 +57,26 @@ message Input {
6457 // Tier is not specified.
6558 TIER_UNSPECIFIED = 0 ;
6659
67- // Resolution less than 1280x720.
60+ // Resolution < 1280x720. Bitrate <= 6 Mbps. FPS <= 60 .
6861 SD = 1 ;
6962
70- // Resolution from 1280x720 to 1920x1080 .
63+ // Resolution <= 1920x1080. Bitrate <= 25 Mbps. FPS <= 60 .
7164 HD = 2 ;
7265
73- // Resolution more than 1920x1080 to 4096x2160 .
66+ // Resolution <= 4096x2160. Not supported yet .
7467 UHD = 3 ;
7568 }
7669
70+ // Security rules for access control. Each field represents one security rule.
71+ // Only when the source of the input stream satisfies all the fields, this
72+ // input stream can be accepted.
73+ message SecurityRule {
74+ // At least one ip range must match unless none specified. The IP range is
75+ // defined by CIDR block: for example, `192.0.1.0/24` for a range and
76+ // `192.0.1.0/32` for a single IP address.
77+ repeated string ip_ranges = 1 ;
78+ }
79+
7780 // The resource name of the input, in the form of:
7881 // `projects/{project}/locations/{location}/inputs/{inputId}`.
7982 string name = 1 ;
@@ -90,8 +93,10 @@ message Input {
9093 // Source type.
9194 Type type = 5 ;
9295
93- // Tier defines the maximum input specification (for example, resolution)
94- // that will be accepted by the video pipeline. The default is `HD`.
96+ // Tier defines the maximum input specification that is accepted by the
97+ // video pipeline. The billing is charged based on the tier specified here.
98+ // See [Pricing](https://cloud.google.com/livestream/pricing) for more detail.
99+ // The default is `HD`.
95100 Tier tier = 14 ;
96101
97102 // Output only. URI to push the input stream to.
@@ -206,6 +211,46 @@ message Channel {
206211 // always present when [streaming_state][google.cloud.video.livestream.v1.Channel.streaming_state] is
207212 // [STREAMING_ERROR][google.cloud.video.livestream.v1.Channel.StreamingState.STREAMING_ERROR].
208213 google.rpc.Status streaming_error = 18 [(google.api.field_behavior ) = OUTPUT_ONLY ];
214+
215+ // Configuration of platform logs for this channel.
216+ LogConfig log_config = 19 ;
217+ }
218+
219+ // Configuration of platform logs.
220+ // See [Using and managing platform
221+ // logs](https://cloud.google.com/logging/docs/api/platform-logs#managing-logs)
222+ // for more information about how to view platform logs through Cloud Logging.
223+ message LogConfig {
224+ // The severity level of platform logging for this channel. Logs with a
225+ // severity level higher than or equal to the chosen severity level will be
226+ // logged and can be viewed through Cloud Logging.
227+ // The severity level of a log is ranked as followed from low to high: DEBUG <
228+ // INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY.
229+ // See
230+ // [LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity)
231+ // for more information.
232+ enum LogSeverity {
233+ // Log severity is not specified. This is the same as log severity is OFF.
234+ LOG_SEVERITY_UNSPECIFIED = 0 ;
235+
236+ // Log is turned off.
237+ OFF = 1 ;
238+
239+ // Log with severity higher than or equal to DEBUG are logged.
240+ DEBUG = 100 ;
241+
242+ // Logs with severity higher than or equal to INFO are logged.
243+ INFO = 200 ;
244+
245+ // Logs with severity higher than or equal to WARNING are logged.
246+ WARNING = 400 ;
247+
248+ // Logs with severity higher than or equal to ERROR are logged.
249+ ERROR = 500 ;
250+ }
251+
252+ // The severity level of platform logging for this resource.
253+ LogSeverity log_severity = 1 ;
209254}
210255
211256// Properties of the input stream.
0 commit comments