google-cloud-video-live_stream-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb +2162 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/credentials.rb +49 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/operations.rb +769 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb +111 -0
- data/lib/google/cloud/video/live_stream/v1/livestream_service.rb +56 -0
- data/lib/google/cloud/video/live_stream/v1/version.rb +30 -0
- data/lib/google/cloud/video/live_stream/v1.rb +40 -0
- data/lib/google/cloud/video/livestream/v1/outputs_pb.rb +134 -0
- data/lib/google/cloud/video/livestream/v1/resources_pb.rb +168 -0
- data/lib/google/cloud/video/livestream/v1/service_pb.rb +154 -0
- data/lib/google/cloud/video/livestream/v1/service_services_pb.rb +84 -0
- data/lib/google-cloud-video-live_stream-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/video/livestream/v1/outputs.rb +427 -0
- data/proto_docs/google/cloud/video/livestream/v1/resources.rb +450 -0
- data/proto_docs/google/cloud/video/livestream/v1/service.rb +523 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +222 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Video
|
23
|
+
module LiveStream
|
24
|
+
module V1
|
25
|
+
module LivestreamService
|
26
|
+
# Path helper methods for the LivestreamService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Channel resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/channels/{channel}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param channel [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def channel_path project:, location:, channel:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/channels/#{channel}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Event resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}/channels/{channel}/events/{event}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
# @param channel [String]
|
57
|
+
# @param event [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def event_path project:, location:, channel:, event:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "channel cannot contain /" if channel.to_s.include? "/"
|
64
|
+
|
65
|
+
"projects/#{project}/locations/#{location}/channels/#{channel}/events/#{event}"
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Create a fully-qualified Input resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/inputs/{input}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param input [String]
|
78
|
+
#
|
79
|
+
# @return [::String]
|
80
|
+
def input_path project:, location:, input:
|
81
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
82
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
83
|
+
|
84
|
+
"projects/#{project}/locations/#{location}/inputs/#{input}"
|
85
|
+
end
|
86
|
+
|
87
|
+
##
|
88
|
+
# Create a fully-qualified Location resource string.
|
89
|
+
#
|
90
|
+
# The resource will be in the following format:
|
91
|
+
#
|
92
|
+
# `projects/{project}/locations/{location}`
|
93
|
+
#
|
94
|
+
# @param project [String]
|
95
|
+
# @param location [String]
|
96
|
+
#
|
97
|
+
# @return [::String]
|
98
|
+
def location_path project:, location:
|
99
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
100
|
+
|
101
|
+
"projects/#{project}/locations/#{location}"
|
102
|
+
end
|
103
|
+
|
104
|
+
extend self
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/video/live_stream/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/video/live_stream/v1/livestream_service/credentials"
|
26
|
+
require "google/cloud/video/live_stream/v1/livestream_service/paths"
|
27
|
+
require "google/cloud/video/live_stream/v1/livestream_service/operations"
|
28
|
+
require "google/cloud/video/live_stream/v1/livestream_service/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Video
|
33
|
+
module LiveStream
|
34
|
+
module V1
|
35
|
+
##
|
36
|
+
# Using Live Stream API, you can generate live streams in the various
|
37
|
+
# renditions and streaming formats. The streaming format include HTTP Live
|
38
|
+
# Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can send
|
39
|
+
# a source stream in the various ways, including Real-Time Messaging
|
40
|
+
# Protocol (RTMP) and Secure Reliable Transport (SRT).
|
41
|
+
#
|
42
|
+
# To load this service and instantiate a client:
|
43
|
+
#
|
44
|
+
# require "google/cloud/video/live_stream/v1/livestream_service"
|
45
|
+
# client = ::Google::Cloud::Video::LiveStream::V1::LivestreamService::Client.new
|
46
|
+
#
|
47
|
+
module LivestreamService
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "livestream_service", "helpers.rb"
|
56
|
+
require "google/cloud/video/live_stream/v1/livestream_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Video
|
23
|
+
module LiveStream
|
24
|
+
module V1
|
25
|
+
VERSION = "0.1.0"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/video/live_stream/v1/livestream_service"
|
20
|
+
require "google/cloud/video/live_stream/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Video
|
25
|
+
module LiveStream
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# require "google/cloud/video/live_stream/v1"
|
30
|
+
# client = ::Google::Cloud::Video::LiveStream::V1::LivestreamService::Client.new
|
31
|
+
#
|
32
|
+
module V1
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
40
|
+
require "google/cloud/video/live_stream/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/video/livestream/v1/outputs.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/protobuf/duration_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/video/livestream/v1/outputs.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.video.livestream.v1.ElementaryStream" do
|
12
|
+
optional :key, :string, 4
|
13
|
+
oneof :elementary_stream do
|
14
|
+
optional :video_stream, :message, 1, "google.cloud.video.livestream.v1.VideoStream"
|
15
|
+
optional :audio_stream, :message, 2, "google.cloud.video.livestream.v1.AudioStream"
|
16
|
+
optional :text_stream, :message, 3, "google.cloud.video.livestream.v1.TextStream"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
add_message "google.cloud.video.livestream.v1.MuxStream" do
|
20
|
+
optional :key, :string, 1
|
21
|
+
optional :container, :string, 3
|
22
|
+
repeated :elementary_streams, :string, 4
|
23
|
+
optional :segment_settings, :message, 5, "google.cloud.video.livestream.v1.SegmentSettings"
|
24
|
+
end
|
25
|
+
add_message "google.cloud.video.livestream.v1.Manifest" do
|
26
|
+
optional :file_name, :string, 1
|
27
|
+
optional :type, :enum, 2, "google.cloud.video.livestream.v1.Manifest.ManifestType"
|
28
|
+
repeated :mux_streams, :string, 3
|
29
|
+
optional :max_segment_count, :int32, 4
|
30
|
+
optional :segment_keep_duration, :message, 5, "google.protobuf.Duration"
|
31
|
+
end
|
32
|
+
add_enum "google.cloud.video.livestream.v1.Manifest.ManifestType" do
|
33
|
+
value :MANIFEST_TYPE_UNSPECIFIED, 0
|
34
|
+
value :HLS, 1
|
35
|
+
value :DASH, 2
|
36
|
+
end
|
37
|
+
add_message "google.cloud.video.livestream.v1.SpriteSheet" do
|
38
|
+
optional :format, :string, 1
|
39
|
+
optional :file_prefix, :string, 2
|
40
|
+
optional :sprite_width_pixels, :int32, 3
|
41
|
+
optional :sprite_height_pixels, :int32, 4
|
42
|
+
optional :column_count, :int32, 5
|
43
|
+
optional :row_count, :int32, 6
|
44
|
+
optional :interval, :message, 7, "google.protobuf.Duration"
|
45
|
+
optional :quality, :int32, 8
|
46
|
+
end
|
47
|
+
add_message "google.cloud.video.livestream.v1.PreprocessingConfig" do
|
48
|
+
optional :crop, :message, 2, "google.cloud.video.livestream.v1.PreprocessingConfig.Crop"
|
49
|
+
optional :pad, :message, 3, "google.cloud.video.livestream.v1.PreprocessingConfig.Pad"
|
50
|
+
end
|
51
|
+
add_message "google.cloud.video.livestream.v1.PreprocessingConfig.Crop" do
|
52
|
+
optional :top_pixels, :int32, 1
|
53
|
+
optional :bottom_pixels, :int32, 2
|
54
|
+
optional :left_pixels, :int32, 3
|
55
|
+
optional :right_pixels, :int32, 4
|
56
|
+
end
|
57
|
+
add_message "google.cloud.video.livestream.v1.PreprocessingConfig.Pad" do
|
58
|
+
optional :top_pixels, :int32, 1
|
59
|
+
optional :bottom_pixels, :int32, 2
|
60
|
+
optional :left_pixels, :int32, 3
|
61
|
+
optional :right_pixels, :int32, 4
|
62
|
+
end
|
63
|
+
add_message "google.cloud.video.livestream.v1.VideoStream" do
|
64
|
+
oneof :codec_settings do
|
65
|
+
optional :h264, :message, 20, "google.cloud.video.livestream.v1.VideoStream.H264CodecSettings"
|
66
|
+
end
|
67
|
+
end
|
68
|
+
add_message "google.cloud.video.livestream.v1.VideoStream.H264CodecSettings" do
|
69
|
+
optional :width_pixels, :int32, 1
|
70
|
+
optional :height_pixels, :int32, 2
|
71
|
+
optional :frame_rate, :double, 3
|
72
|
+
optional :bitrate_bps, :int32, 4
|
73
|
+
optional :allow_open_gop, :bool, 6
|
74
|
+
optional :vbv_size_bits, :int32, 9
|
75
|
+
optional :vbv_fullness_bits, :int32, 10
|
76
|
+
optional :entropy_coder, :string, 11
|
77
|
+
optional :b_pyramid, :bool, 12
|
78
|
+
optional :b_frame_count, :int32, 13
|
79
|
+
optional :aq_strength, :double, 14
|
80
|
+
optional :profile, :string, 15
|
81
|
+
optional :tune, :string, 16
|
82
|
+
oneof :gop_mode do
|
83
|
+
optional :gop_frame_count, :int32, 7
|
84
|
+
optional :gop_duration, :message, 8, "google.protobuf.Duration"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
add_message "google.cloud.video.livestream.v1.AudioStream" do
|
88
|
+
optional :transmux, :bool, 8
|
89
|
+
optional :codec, :string, 1
|
90
|
+
optional :bitrate_bps, :int32, 2
|
91
|
+
optional :channel_count, :int32, 3
|
92
|
+
repeated :channel_layout, :string, 4
|
93
|
+
repeated :mapping, :message, 5, "google.cloud.video.livestream.v1.AudioStream.AudioMapping"
|
94
|
+
optional :sample_rate_hertz, :int32, 6
|
95
|
+
end
|
96
|
+
add_message "google.cloud.video.livestream.v1.AudioStream.AudioMapping" do
|
97
|
+
optional :input_key, :string, 6
|
98
|
+
optional :input_track, :int32, 2
|
99
|
+
optional :input_channel, :int32, 3
|
100
|
+
optional :output_channel, :int32, 4
|
101
|
+
end
|
102
|
+
add_message "google.cloud.video.livestream.v1.TextStream" do
|
103
|
+
optional :codec, :string, 1
|
104
|
+
end
|
105
|
+
add_message "google.cloud.video.livestream.v1.SegmentSettings" do
|
106
|
+
optional :segment_duration, :message, 1, "google.protobuf.Duration"
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
module Google
|
112
|
+
module Cloud
|
113
|
+
module Video
|
114
|
+
module LiveStream
|
115
|
+
module V1
|
116
|
+
ElementaryStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.ElementaryStream").msgclass
|
117
|
+
MuxStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.MuxStream").msgclass
|
118
|
+
Manifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Manifest").msgclass
|
119
|
+
Manifest::ManifestType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Manifest.ManifestType").enummodule
|
120
|
+
SpriteSheet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.SpriteSheet").msgclass
|
121
|
+
PreprocessingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig").msgclass
|
122
|
+
PreprocessingConfig::Crop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig.Crop").msgclass
|
123
|
+
PreprocessingConfig::Pad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.PreprocessingConfig.Pad").msgclass
|
124
|
+
VideoStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.VideoStream").msgclass
|
125
|
+
VideoStream::H264CodecSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.VideoStream.H264CodecSettings").msgclass
|
126
|
+
AudioStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.AudioStream").msgclass
|
127
|
+
AudioStream::AudioMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.AudioStream.AudioMapping").msgclass
|
128
|
+
TextStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.TextStream").msgclass
|
129
|
+
SegmentSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.SegmentSettings").msgclass
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/video/livestream/v1/resources.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
require 'google/cloud/video/livestream/v1/outputs_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/rpc/status_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/video/livestream/v1/resources.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.video.livestream.v1.Input" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
19
|
+
map :labels, :string, :string, 4
|
20
|
+
optional :type, :enum, 5, "google.cloud.video.livestream.v1.Input.Type"
|
21
|
+
optional :tier, :enum, 14, "google.cloud.video.livestream.v1.Input.Tier"
|
22
|
+
optional :uri, :string, 6
|
23
|
+
optional :preprocessing_config, :message, 9, "google.cloud.video.livestream.v1.PreprocessingConfig"
|
24
|
+
optional :security_rules, :message, 12, "google.cloud.video.livestream.v1.Input.SecurityRule"
|
25
|
+
optional :input_stream_property, :message, 15, "google.cloud.video.livestream.v1.InputStreamProperty"
|
26
|
+
end
|
27
|
+
add_message "google.cloud.video.livestream.v1.Input.SecurityRule" do
|
28
|
+
repeated :ip_ranges, :string, 1
|
29
|
+
end
|
30
|
+
add_enum "google.cloud.video.livestream.v1.Input.Type" do
|
31
|
+
value :TYPE_UNSPECIFIED, 0
|
32
|
+
value :RTMP_PUSH, 1
|
33
|
+
value :SRT_PUSH, 2
|
34
|
+
end
|
35
|
+
add_enum "google.cloud.video.livestream.v1.Input.Tier" do
|
36
|
+
value :TIER_UNSPECIFIED, 0
|
37
|
+
value :SD, 1
|
38
|
+
value :HD, 2
|
39
|
+
value :UHD, 3
|
40
|
+
end
|
41
|
+
add_message "google.cloud.video.livestream.v1.Channel" do
|
42
|
+
optional :name, :string, 1
|
43
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
44
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
45
|
+
map :labels, :string, :string, 4
|
46
|
+
repeated :input_attachments, :message, 16, "google.cloud.video.livestream.v1.InputAttachment"
|
47
|
+
optional :active_input, :string, 6
|
48
|
+
optional :output, :message, 9, "google.cloud.video.livestream.v1.Channel.Output"
|
49
|
+
repeated :elementary_streams, :message, 10, "google.cloud.video.livestream.v1.ElementaryStream"
|
50
|
+
repeated :mux_streams, :message, 11, "google.cloud.video.livestream.v1.MuxStream"
|
51
|
+
repeated :manifests, :message, 12, "google.cloud.video.livestream.v1.Manifest"
|
52
|
+
repeated :sprite_sheets, :message, 13, "google.cloud.video.livestream.v1.SpriteSheet"
|
53
|
+
optional :streaming_state, :enum, 14, "google.cloud.video.livestream.v1.Channel.StreamingState"
|
54
|
+
optional :streaming_error, :message, 18, "google.rpc.Status"
|
55
|
+
optional :log_config, :message, 19, "google.cloud.video.livestream.v1.LogConfig"
|
56
|
+
end
|
57
|
+
add_message "google.cloud.video.livestream.v1.Channel.Output" do
|
58
|
+
optional :uri, :string, 1
|
59
|
+
end
|
60
|
+
add_enum "google.cloud.video.livestream.v1.Channel.StreamingState" do
|
61
|
+
value :STREAMING_STATE_UNSPECIFIED, 0
|
62
|
+
value :STREAMING, 1
|
63
|
+
value :AWAITING_INPUT, 2
|
64
|
+
value :STREAMING_ERROR, 4
|
65
|
+
value :STREAMING_NO_INPUT, 5
|
66
|
+
value :STOPPED, 6
|
67
|
+
value :STARTING, 7
|
68
|
+
value :STOPPING, 8
|
69
|
+
end
|
70
|
+
add_message "google.cloud.video.livestream.v1.LogConfig" do
|
71
|
+
optional :log_severity, :enum, 1, "google.cloud.video.livestream.v1.LogConfig.LogSeverity"
|
72
|
+
end
|
73
|
+
add_enum "google.cloud.video.livestream.v1.LogConfig.LogSeverity" do
|
74
|
+
value :LOG_SEVERITY_UNSPECIFIED, 0
|
75
|
+
value :OFF, 1
|
76
|
+
value :DEBUG, 100
|
77
|
+
value :INFO, 200
|
78
|
+
value :WARNING, 400
|
79
|
+
value :ERROR, 500
|
80
|
+
end
|
81
|
+
add_message "google.cloud.video.livestream.v1.InputStreamProperty" do
|
82
|
+
optional :last_establish_time, :message, 1, "google.protobuf.Timestamp"
|
83
|
+
repeated :video_streams, :message, 2, "google.cloud.video.livestream.v1.VideoStreamProperty"
|
84
|
+
repeated :audio_streams, :message, 3, "google.cloud.video.livestream.v1.AudioStreamProperty"
|
85
|
+
end
|
86
|
+
add_message "google.cloud.video.livestream.v1.VideoStreamProperty" do
|
87
|
+
optional :index, :int32, 1
|
88
|
+
optional :video_format, :message, 2, "google.cloud.video.livestream.v1.VideoFormat"
|
89
|
+
end
|
90
|
+
add_message "google.cloud.video.livestream.v1.VideoFormat" do
|
91
|
+
optional :codec, :string, 1
|
92
|
+
optional :width_pixels, :int32, 2
|
93
|
+
optional :height_pixels, :int32, 3
|
94
|
+
optional :frame_rate, :double, 4
|
95
|
+
end
|
96
|
+
add_message "google.cloud.video.livestream.v1.AudioStreamProperty" do
|
97
|
+
optional :index, :int32, 1
|
98
|
+
optional :audio_format, :message, 2, "google.cloud.video.livestream.v1.AudioFormat"
|
99
|
+
end
|
100
|
+
add_message "google.cloud.video.livestream.v1.AudioFormat" do
|
101
|
+
optional :codec, :string, 1
|
102
|
+
optional :channel_count, :int32, 2
|
103
|
+
repeated :channel_layout, :string, 3
|
104
|
+
end
|
105
|
+
add_message "google.cloud.video.livestream.v1.InputAttachment" do
|
106
|
+
optional :key, :string, 1
|
107
|
+
optional :input, :string, 2
|
108
|
+
optional :automatic_failover, :message, 3, "google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover"
|
109
|
+
end
|
110
|
+
add_message "google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover" do
|
111
|
+
repeated :input_keys, :string, 1
|
112
|
+
end
|
113
|
+
add_message "google.cloud.video.livestream.v1.Event" do
|
114
|
+
optional :name, :string, 1
|
115
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
116
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
117
|
+
map :labels, :string, :string, 4
|
118
|
+
optional :execute_now, :bool, 9
|
119
|
+
optional :execution_time, :message, 10, "google.protobuf.Timestamp"
|
120
|
+
optional :state, :enum, 11, "google.cloud.video.livestream.v1.Event.State"
|
121
|
+
optional :error, :message, 12, "google.rpc.Status"
|
122
|
+
oneof :task do
|
123
|
+
optional :ad_break, :message, 6, "google.cloud.video.livestream.v1.Event.AdBreakTask"
|
124
|
+
end
|
125
|
+
end
|
126
|
+
add_message "google.cloud.video.livestream.v1.Event.AdBreakTask" do
|
127
|
+
optional :duration, :message, 1, "google.protobuf.Duration"
|
128
|
+
end
|
129
|
+
add_enum "google.cloud.video.livestream.v1.Event.State" do
|
130
|
+
value :STATE_UNSPECIFIED, 0
|
131
|
+
value :SCHEDULED, 1
|
132
|
+
value :RUNNING, 2
|
133
|
+
value :SUCCEEDED, 3
|
134
|
+
value :FAILED, 4
|
135
|
+
value :PENDING, 5
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
module Google
|
141
|
+
module Cloud
|
142
|
+
module Video
|
143
|
+
module LiveStream
|
144
|
+
module V1
|
145
|
+
Input = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Input").msgclass
|
146
|
+
Input::SecurityRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Input.SecurityRule").msgclass
|
147
|
+
Input::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Input.Type").enummodule
|
148
|
+
Input::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Input.Tier").enummodule
|
149
|
+
Channel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Channel").msgclass
|
150
|
+
Channel::Output = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Channel.Output").msgclass
|
151
|
+
Channel::StreamingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Channel.StreamingState").enummodule
|
152
|
+
LogConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.LogConfig").msgclass
|
153
|
+
LogConfig::LogSeverity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.LogConfig.LogSeverity").enummodule
|
154
|
+
InputStreamProperty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.InputStreamProperty").msgclass
|
155
|
+
VideoStreamProperty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.VideoStreamProperty").msgclass
|
156
|
+
VideoFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.VideoFormat").msgclass
|
157
|
+
AudioStreamProperty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.AudioStreamProperty").msgclass
|
158
|
+
AudioFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.AudioFormat").msgclass
|
159
|
+
InputAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.InputAttachment").msgclass
|
160
|
+
InputAttachment::AutomaticFailover = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.InputAttachment.AutomaticFailover").msgclass
|
161
|
+
Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event").msgclass
|
162
|
+
Event::AdBreakTask = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.AdBreakTask").msgclass
|
163
|
+
Event::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.livestream.v1.Event.State").enummodule
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|