google-cloud-video-transcoder-v1 0.4.0 → 0.6.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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/video/transcoder/v1/resources_pb.rb +25 -0
- data/lib/google/cloud/video/transcoder/v1/transcoder_service/client.rb +12 -16
- data/lib/google/cloud/video/transcoder/v1/transcoder_service.rb +1 -1
- data/lib/google/cloud/video/transcoder/v1/version.rb +1 -1
- data/lib/google/cloud/video/transcoder/v1.rb +2 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/video/transcoder/v1/resources.rb +180 -41
- data/proto_docs/google/cloud/video/transcoder/v1/services.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c1a8217f18c0b59be327c9a6629205aa35e13b45db02528c7c1034560841fda
|
4
|
+
data.tar.gz: 5b4165b7372641e647b527e6591b05ad1750313006be9663786c32455eaa6c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 927ea1ca217a2a2c48715b2468b58bdf093dbaa28b07238e35e6a35c29588e81a54efd9da8c90de64206814a71114b170193d6e3090558d4e042717f30cff00b
|
7
|
+
data.tar.gz: a52906efefa5eea0128a5fde060aeab192040b062b88231e80499248f1b16c5326a2154c447fcc71e1cfb8776caa307f493ec58319825493c74bb3284ca27175
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Transcoder V1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
This API converts video files into formats suitable for consumer distribution. For more information, see the <a href="https://cloud.google.com/transcoder/docs/concepts/overview">Transcoder API overview</a>.
|
4
4
|
|
5
5
|
The Transcoder API allows you to convert video files and package them for optimized delivery to web, mobile and connected TVs.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -156,6 +156,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
156
156
|
optional :audio, :message, 4, "google.cloud.video.transcoder.v1.PreprocessingConfig.Audio"
|
157
157
|
optional :crop, :message, 5, "google.cloud.video.transcoder.v1.PreprocessingConfig.Crop"
|
158
158
|
optional :pad, :message, 6, "google.cloud.video.transcoder.v1.PreprocessingConfig.Pad"
|
159
|
+
optional :deinterlace, :message, 7, "google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace"
|
159
160
|
end
|
160
161
|
add_message "google.cloud.video.transcoder.v1.PreprocessingConfig.Color" do
|
161
162
|
optional :saturation, :double, 1
|
@@ -187,6 +188,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
187
188
|
optional :left_pixels, :int32, 3
|
188
189
|
optional :right_pixels, :int32, 4
|
189
190
|
end
|
191
|
+
add_message "google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace" do
|
192
|
+
oneof :deinterlacing_filter do
|
193
|
+
optional :yadif, :message, 1, "google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.YadifConfig"
|
194
|
+
optional :bwdif, :message, 2, "google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.BwdifConfig"
|
195
|
+
end
|
196
|
+
end
|
197
|
+
add_message "google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.YadifConfig" do
|
198
|
+
optional :mode, :string, 1
|
199
|
+
optional :disable_spatial_interlacing, :bool, 2
|
200
|
+
optional :parity, :string, 3
|
201
|
+
optional :deinterlace_all_frames, :bool, 4
|
202
|
+
end
|
203
|
+
add_message "google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.BwdifConfig" do
|
204
|
+
optional :mode, :string, 1
|
205
|
+
optional :parity, :string, 2
|
206
|
+
optional :deinterlace_all_frames, :bool, 3
|
207
|
+
end
|
190
208
|
add_message "google.cloud.video.transcoder.v1.VideoStream" do
|
191
209
|
oneof :codec_settings do
|
192
210
|
optional :h264, :message, 1, "google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings"
|
@@ -262,6 +280,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
262
280
|
repeated :channel_layout, :string, 4
|
263
281
|
repeated :mapping, :message, 5, "google.cloud.video.transcoder.v1.AudioStream.AudioMapping"
|
264
282
|
optional :sample_rate_hertz, :int32, 6
|
283
|
+
optional :language_code, :string, 7
|
284
|
+
optional :display_name, :string, 8
|
265
285
|
end
|
266
286
|
add_message "google.cloud.video.transcoder.v1.AudioStream.AudioMapping" do
|
267
287
|
optional :atom_key, :string, 1
|
@@ -273,7 +293,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
273
293
|
end
|
274
294
|
add_message "google.cloud.video.transcoder.v1.TextStream" do
|
275
295
|
optional :codec, :string, 1
|
296
|
+
optional :language_code, :string, 2
|
276
297
|
repeated :mapping, :message, 3, "google.cloud.video.transcoder.v1.TextStream.TextMapping"
|
298
|
+
optional :display_name, :string, 4
|
277
299
|
end
|
278
300
|
add_message "google.cloud.video.transcoder.v1.TextStream.TextMapping" do
|
279
301
|
optional :atom_key, :string, 1
|
@@ -321,6 +343,9 @@ module Google
|
|
321
343
|
PreprocessingConfig::Audio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.PreprocessingConfig.Audio").msgclass
|
322
344
|
PreprocessingConfig::Crop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.PreprocessingConfig.Crop").msgclass
|
323
345
|
PreprocessingConfig::Pad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.PreprocessingConfig.Pad").msgclass
|
346
|
+
PreprocessingConfig::Deinterlace = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace").msgclass
|
347
|
+
PreprocessingConfig::Deinterlace::YadifConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.YadifConfig").msgclass
|
348
|
+
PreprocessingConfig::Deinterlace::BwdifConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.BwdifConfig").msgclass
|
324
349
|
VideoStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.VideoStream").msgclass
|
325
350
|
VideoStream::H264CodecSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings").msgclass
|
326
351
|
VideoStream::H265CodecSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings").msgclass
|
@@ -311,13 +311,11 @@ module Google
|
|
311
311
|
# # Call the list_jobs method.
|
312
312
|
# result = client.list_jobs request
|
313
313
|
#
|
314
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
315
|
-
# #
|
316
|
-
#
|
317
|
-
# # methods are also available for managing paging directly.
|
318
|
-
# result.each do |response|
|
314
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
315
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
316
|
+
# result.each do |item|
|
319
317
|
# # Each element is of type ::Google::Cloud::Video::Transcoder::V1::Job.
|
320
|
-
# p
|
318
|
+
# p item
|
321
319
|
# end
|
322
320
|
#
|
323
321
|
def list_jobs request, options = nil
|
@@ -561,8 +559,8 @@ module Google
|
|
561
559
|
# @param job_template [::Google::Cloud::Video::Transcoder::V1::JobTemplate, ::Hash]
|
562
560
|
# Required. Parameters for creating job template.
|
563
561
|
# @param job_template_id [::String]
|
564
|
-
# Required. The ID to use for the job template, which will become the final
|
565
|
-
# of the job template's resource name.
|
562
|
+
# Required. The ID to use for the job template, which will become the final
|
563
|
+
# component of the job template's resource name.
|
566
564
|
#
|
567
565
|
# This value should be 4-63 characters, and valid characters must match the
|
568
566
|
# regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
|
@@ -650,8 +648,8 @@ module Google
|
|
650
648
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
651
649
|
#
|
652
650
|
# @param parent [::String]
|
653
|
-
# Required. The parent location from which to retrieve the collection of job
|
654
|
-
# Format: `projects/{project}/locations/{location}`
|
651
|
+
# Required. The parent location from which to retrieve the collection of job
|
652
|
+
# templates. Format: `projects/{project}/locations/{location}`
|
655
653
|
# @param page_size [::Integer]
|
656
654
|
# The maximum number of items to return.
|
657
655
|
# @param page_token [::String]
|
@@ -684,13 +682,11 @@ module Google
|
|
684
682
|
# # Call the list_job_templates method.
|
685
683
|
# result = client.list_job_templates request
|
686
684
|
#
|
687
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
688
|
-
# #
|
689
|
-
#
|
690
|
-
# # methods are also available for managing paging directly.
|
691
|
-
# result.each do |response|
|
685
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
686
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
687
|
+
# result.each do |item|
|
692
688
|
# # Each element is of type ::Google::Cloud::Video::Transcoder::V1::JobTemplate.
|
693
|
-
# p
|
689
|
+
# p item
|
694
690
|
# end
|
695
691
|
#
|
696
692
|
def list_job_templates request, options = nil
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# features such as Digital Rights Management (DRM), audio equalization, content
|
40
40
|
# concatenation, and digital ad-stitch ready content generation.
|
41
41
|
#
|
42
|
-
#
|
42
|
+
# @example Load this service and instantiate a gRPC client
|
43
43
|
#
|
44
44
|
# require "google/cloud/video/transcoder/v1/transcoder_service"
|
45
45
|
# client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
|
@@ -24,9 +24,9 @@ module Google
|
|
24
24
|
module Video
|
25
25
|
module Transcoder
|
26
26
|
##
|
27
|
-
#
|
27
|
+
# API client module.
|
28
28
|
#
|
29
|
-
# @example
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
30
|
#
|
31
31
|
# require "google/cloud/video/transcoder/v1"
|
32
32
|
# client = ::Google::Cloud::Video::Transcoder::V1::TranscoderService::Client.new
|
@@ -0,0 +1,318 @@
|
|
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 Api
|
22
|
+
# Required information for every language.
|
23
|
+
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @return [::String]
|
25
|
+
# Link to automatically generated reference documentation. Example:
|
26
|
+
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
27
|
+
# @!attribute [rw] destinations
|
28
|
+
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
29
|
+
# The destination where API teams want this client library to be published.
|
30
|
+
class CommonLanguageSettings
|
31
|
+
include ::Google::Protobuf::MessageExts
|
32
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
end
|
34
|
+
|
35
|
+
# Details about how and where to publish client libraries.
|
36
|
+
# @!attribute [rw] version
|
37
|
+
# @return [::String]
|
38
|
+
# Version of the API to apply these settings to.
|
39
|
+
# @!attribute [rw] launch_stage
|
40
|
+
# @return [::Google::Api::LaunchStage]
|
41
|
+
# Launch stage of this version of the API.
|
42
|
+
# @!attribute [rw] rest_numeric_enums
|
43
|
+
# @return [::Boolean]
|
44
|
+
# When using transport=rest, the client request will encode enums as
|
45
|
+
# numbers rather than strings.
|
46
|
+
# @!attribute [rw] java_settings
|
47
|
+
# @return [::Google::Api::JavaSettings]
|
48
|
+
# Settings for legacy Java features, supported in the Service YAML.
|
49
|
+
# @!attribute [rw] cpp_settings
|
50
|
+
# @return [::Google::Api::CppSettings]
|
51
|
+
# Settings for C++ client libraries.
|
52
|
+
# @!attribute [rw] php_settings
|
53
|
+
# @return [::Google::Api::PhpSettings]
|
54
|
+
# Settings for PHP client libraries.
|
55
|
+
# @!attribute [rw] python_settings
|
56
|
+
# @return [::Google::Api::PythonSettings]
|
57
|
+
# Settings for Python client libraries.
|
58
|
+
# @!attribute [rw] node_settings
|
59
|
+
# @return [::Google::Api::NodeSettings]
|
60
|
+
# Settings for Node client libraries.
|
61
|
+
# @!attribute [rw] dotnet_settings
|
62
|
+
# @return [::Google::Api::DotnetSettings]
|
63
|
+
# Settings for .NET client libraries.
|
64
|
+
# @!attribute [rw] ruby_settings
|
65
|
+
# @return [::Google::Api::RubySettings]
|
66
|
+
# Settings for Ruby client libraries.
|
67
|
+
# @!attribute [rw] go_settings
|
68
|
+
# @return [::Google::Api::GoSettings]
|
69
|
+
# Settings for Go client libraries.
|
70
|
+
class ClientLibrarySettings
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
|
75
|
+
# This message configures the settings for publishing [Google Cloud Client
|
76
|
+
# libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
|
77
|
+
# generated from the service config.
|
78
|
+
# @!attribute [rw] method_settings
|
79
|
+
# @return [::Array<::Google::Api::MethodSettings>]
|
80
|
+
# A list of API method settings, e.g. the behavior for methods that use the
|
81
|
+
# long-running operation pattern.
|
82
|
+
# @!attribute [rw] new_issue_uri
|
83
|
+
# @return [::String]
|
84
|
+
# Link to a place that API users can report issues. Example:
|
85
|
+
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
|
+
# @!attribute [rw] documentation_uri
|
87
|
+
# @return [::String]
|
88
|
+
# Link to product home page. Example:
|
89
|
+
# https://cloud.google.com/asset-inventory/docs/overview
|
90
|
+
# @!attribute [rw] api_short_name
|
91
|
+
# @return [::String]
|
92
|
+
# Used as a tracking tag when collecting data about the APIs developer
|
93
|
+
# relations artifacts like docs, packages delivered to package managers,
|
94
|
+
# etc. Example: "speech".
|
95
|
+
# @!attribute [rw] github_label
|
96
|
+
# @return [::String]
|
97
|
+
# GitHub label to apply to issues and pull requests opened for this API.
|
98
|
+
# @!attribute [rw] codeowner_github_teams
|
99
|
+
# @return [::Array<::String>]
|
100
|
+
# GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
101
|
+
# containing source code for the client libraries for this API.
|
102
|
+
# @!attribute [rw] doc_tag_prefix
|
103
|
+
# @return [::String]
|
104
|
+
# A prefix used in sample code when demarking regions to be included in
|
105
|
+
# documentation.
|
106
|
+
# @!attribute [rw] organization
|
107
|
+
# @return [::Google::Api::ClientLibraryOrganization]
|
108
|
+
# For whom the client library is being published.
|
109
|
+
# @!attribute [rw] library_settings
|
110
|
+
# @return [::Array<::Google::Api::ClientLibrarySettings>]
|
111
|
+
# Client library settings. If the same version string appears multiple
|
112
|
+
# times in this list, then the last one wins. Settings from earlier
|
113
|
+
# settings with the same version string are discarded.
|
114
|
+
class Publishing
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
|
119
|
+
# Settings for Java client libraries.
|
120
|
+
# @!attribute [rw] library_package
|
121
|
+
# @return [::String]
|
122
|
+
# The package name to use in Java. Clobbers the java_package option
|
123
|
+
# set in the protobuf. This should be used **only** by APIs
|
124
|
+
# who have already set the language_settings.java.package_name" field
|
125
|
+
# in gapic.yaml. API teams should use the protobuf java_package option
|
126
|
+
# where possible.
|
127
|
+
#
|
128
|
+
# Example of a YAML configuration::
|
129
|
+
#
|
130
|
+
# publishing:
|
131
|
+
# java_settings:
|
132
|
+
# library_package: com.google.cloud.pubsub.v1
|
133
|
+
# @!attribute [rw] service_class_names
|
134
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
135
|
+
# Configure the Java class name to use instead of the service's for its
|
136
|
+
# corresponding generated GAPIC client. Keys are fully-qualified
|
137
|
+
# service names as they appear in the protobuf (including the full
|
138
|
+
# the language_settings.java.interface_names" field in gapic.yaml. API
|
139
|
+
# teams should otherwise use the service name as it appears in the
|
140
|
+
# protobuf.
|
141
|
+
#
|
142
|
+
# Example of a YAML configuration::
|
143
|
+
#
|
144
|
+
# publishing:
|
145
|
+
# java_settings:
|
146
|
+
# service_class_names:
|
147
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
148
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
149
|
+
# @!attribute [rw] common
|
150
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
151
|
+
# Some settings.
|
152
|
+
class JavaSettings
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
|
+
|
156
|
+
# @!attribute [rw] key
|
157
|
+
# @return [::String]
|
158
|
+
# @!attribute [rw] value
|
159
|
+
# @return [::String]
|
160
|
+
class ServiceClassNamesEntry
|
161
|
+
include ::Google::Protobuf::MessageExts
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# Settings for C++ client libraries.
|
167
|
+
# @!attribute [rw] common
|
168
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
169
|
+
# Some settings.
|
170
|
+
class CppSettings
|
171
|
+
include ::Google::Protobuf::MessageExts
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
173
|
+
end
|
174
|
+
|
175
|
+
# Settings for Php client libraries.
|
176
|
+
# @!attribute [rw] common
|
177
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
178
|
+
# Some settings.
|
179
|
+
class PhpSettings
|
180
|
+
include ::Google::Protobuf::MessageExts
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
182
|
+
end
|
183
|
+
|
184
|
+
# Settings for Python client libraries.
|
185
|
+
# @!attribute [rw] common
|
186
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
187
|
+
# Some settings.
|
188
|
+
class PythonSettings
|
189
|
+
include ::Google::Protobuf::MessageExts
|
190
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
191
|
+
end
|
192
|
+
|
193
|
+
# Settings for Node client libraries.
|
194
|
+
# @!attribute [rw] common
|
195
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
196
|
+
# Some settings.
|
197
|
+
class NodeSettings
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
end
|
201
|
+
|
202
|
+
# Settings for Dotnet client libraries.
|
203
|
+
# @!attribute [rw] common
|
204
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
205
|
+
# Some settings.
|
206
|
+
class DotnetSettings
|
207
|
+
include ::Google::Protobuf::MessageExts
|
208
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
end
|
210
|
+
|
211
|
+
# Settings for Ruby client libraries.
|
212
|
+
# @!attribute [rw] common
|
213
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
214
|
+
# Some settings.
|
215
|
+
class RubySettings
|
216
|
+
include ::Google::Protobuf::MessageExts
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
218
|
+
end
|
219
|
+
|
220
|
+
# Settings for Go client libraries.
|
221
|
+
# @!attribute [rw] common
|
222
|
+
# @return [::Google::Api::CommonLanguageSettings]
|
223
|
+
# Some settings.
|
224
|
+
class GoSettings
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
|
229
|
+
# Describes the generator configuration for a method.
|
230
|
+
# @!attribute [rw] selector
|
231
|
+
# @return [::String]
|
232
|
+
# The fully qualified name of the method, for which the options below apply.
|
233
|
+
# This is used to find the method to apply the options.
|
234
|
+
# @!attribute [rw] long_running
|
235
|
+
# @return [::Google::Api::MethodSettings::LongRunning]
|
236
|
+
# Describes settings to use for long-running operations when generating
|
237
|
+
# API methods for RPCs. Complements RPCs that use the annotations in
|
238
|
+
# google/longrunning/operations.proto.
|
239
|
+
#
|
240
|
+
# Example of a YAML configuration::
|
241
|
+
#
|
242
|
+
# publishing:
|
243
|
+
# method_behavior:
|
244
|
+
# - selector: CreateAdDomain
|
245
|
+
# long_running:
|
246
|
+
# initial_poll_delay:
|
247
|
+
# seconds: 60 # 1 minute
|
248
|
+
# poll_delay_multiplier: 1.5
|
249
|
+
# max_poll_delay:
|
250
|
+
# seconds: 360 # 6 minutes
|
251
|
+
# total_poll_timeout:
|
252
|
+
# seconds: 54000 # 90 minutes
|
253
|
+
class MethodSettings
|
254
|
+
include ::Google::Protobuf::MessageExts
|
255
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
256
|
+
|
257
|
+
# Describes settings to use when generating API methods that use the
|
258
|
+
# long-running operation pattern.
|
259
|
+
# All default values below are from those used in the client library
|
260
|
+
# generators (e.g.
|
261
|
+
# [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
262
|
+
# @!attribute [rw] initial_poll_delay
|
263
|
+
# @return [::Google::Protobuf::Duration]
|
264
|
+
# Initial delay after which the first poll request will be made.
|
265
|
+
# Default value: 5 seconds.
|
266
|
+
# @!attribute [rw] poll_delay_multiplier
|
267
|
+
# @return [::Float]
|
268
|
+
# Multiplier to gradually increase delay between subsequent polls until it
|
269
|
+
# reaches max_poll_delay.
|
270
|
+
# Default value: 1.5.
|
271
|
+
# @!attribute [rw] max_poll_delay
|
272
|
+
# @return [::Google::Protobuf::Duration]
|
273
|
+
# Maximum time between two subsequent poll requests.
|
274
|
+
# Default value: 45 seconds.
|
275
|
+
# @!attribute [rw] total_poll_timeout
|
276
|
+
# @return [::Google::Protobuf::Duration]
|
277
|
+
# Total polling timeout.
|
278
|
+
# Default value: 5 minutes.
|
279
|
+
class LongRunning
|
280
|
+
include ::Google::Protobuf::MessageExts
|
281
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# The organization for which the client libraries are being published.
|
286
|
+
# Affects the url where generated docs are published, etc.
|
287
|
+
module ClientLibraryOrganization
|
288
|
+
# Not useful.
|
289
|
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0
|
290
|
+
|
291
|
+
# Google Cloud Platform Org.
|
292
|
+
CLOUD = 1
|
293
|
+
|
294
|
+
# Ads (Advertising) Org.
|
295
|
+
ADS = 2
|
296
|
+
|
297
|
+
# Photos Org.
|
298
|
+
PHOTOS = 3
|
299
|
+
|
300
|
+
# Street View Org.
|
301
|
+
STREET_VIEW = 4
|
302
|
+
end
|
303
|
+
|
304
|
+
# To where should client libraries be published?
|
305
|
+
module ClientLibraryDestination
|
306
|
+
# Client libraries will neither be generated nor published to package
|
307
|
+
# managers.
|
308
|
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0
|
309
|
+
|
310
|
+
# Generate the client library in a repo under github.com/googleapis,
|
311
|
+
# but don't publish it to package managers.
|
312
|
+
GITHUB = 10
|
313
|
+
|
314
|
+
# Publish the library to package managers like nuget.org and npmjs.com.
|
315
|
+
PACKAGE_MANAGER = 20
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# The launch stage as defined by [Google Cloud Platform
|
23
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
24
|
+
module LaunchStage
|
25
|
+
# Do not use this default value.
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
27
|
+
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
29
|
+
UNIMPLEMENTED = 6
|
30
|
+
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
32
|
+
PRELAUNCH = 7
|
33
|
+
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
38
|
+
# guaranteed to be released.
|
39
|
+
EARLY_ACCESS = 1
|
40
|
+
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
45
|
+
# projects allowlisted. Alpha releases don't have to be feature complete,
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
47
|
+
# they will be far enough along that customers can actually use them in
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
49
|
+
# normal production cases.
|
50
|
+
ALPHA = 2
|
51
|
+
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
56
|
+
# limited production use cases.
|
57
|
+
BETA = 3
|
58
|
+
|
59
|
+
# GA features are open to all developers and are considered stable and
|
60
|
+
# fully qualified for production use.
|
61
|
+
GA = 4
|
62
|
+
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
64
|
+
# information, see the "Deprecation Policy" section of our [Terms of
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
68
|
+
DEPRECATED = 5
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -29,23 +29,23 @@ module Google
|
|
29
29
|
# Format: `projects/{project_number}/locations/{location}/jobs/{job}`
|
30
30
|
# @!attribute [rw] input_uri
|
31
31
|
# @return [::String]
|
32
|
-
# Input only. Specify the `input_uri` to populate empty `uri` fields in each
|
33
|
-
# `Job.config.inputs` or `JobTemplate.config.inputs` when using
|
34
|
-
# URI of the media. Input files must be at least 5 seconds in
|
35
|
-
# stored in Cloud Storage (for example,
|
36
|
-
# [Supported input and output
|
32
|
+
# Input only. Specify the `input_uri` to populate empty `uri` fields in each
|
33
|
+
# element of `Job.config.inputs` or `JobTemplate.config.inputs` when using
|
34
|
+
# template. URI of the media. Input files must be at least 5 seconds in
|
35
|
+
# duration and stored in Cloud Storage (for example,
|
36
|
+
# `gs://bucket/inputs/file.mp4`). See [Supported input and output
|
37
37
|
# formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
38
38
|
# @!attribute [rw] output_uri
|
39
39
|
# @return [::String]
|
40
|
-
# Input only. Specify the `output_uri` to populate an empty
|
41
|
-
# `JobTemplate.config.output.uri` when using
|
42
|
-
# URI for the output file(s). For example,
|
43
|
-
# [Supported input and output
|
40
|
+
# Input only. Specify the `output_uri` to populate an empty
|
41
|
+
# `Job.config.output.uri` or `JobTemplate.config.output.uri` when using
|
42
|
+
# template. URI for the output file(s). For example,
|
43
|
+
# `gs://my-bucket/outputs/`. See [Supported input and output
|
44
44
|
# formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
45
45
|
# @!attribute [rw] template_id
|
46
46
|
# @return [::String]
|
47
|
-
# Input only. Specify the `template_id` to use for populating `Job.config`.
|
48
|
-
# is `preset/web-hd`.
|
47
|
+
# Input only. Specify the `template_id` to use for populating `Job.config`.
|
48
|
+
# The default is `preset/web-hd`.
|
49
49
|
#
|
50
50
|
# Preset Transcoder templates:
|
51
51
|
# - `preset/{preset_id}`
|
@@ -311,7 +311,8 @@ module Google
|
|
311
311
|
# Required. Type of the manifest, can be `HLS` or `DASH`.
|
312
312
|
# @!attribute [rw] mux_streams
|
313
313
|
# @return [::Array<::String>]
|
314
|
-
# Required. List of user given `MuxStream.key`s that should appear in this
|
314
|
+
# Required. List of user given `MuxStream.key`s that should appear in this
|
315
|
+
# manifest.
|
315
316
|
#
|
316
317
|
# When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key`
|
317
318
|
# and `.m3u8` extension is generated for each element of the
|
@@ -359,16 +360,32 @@ module Google
|
|
359
360
|
# from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.
|
360
361
|
# @!attribute [rw] sprite_width_pixels
|
361
362
|
# @return [::Integer]
|
362
|
-
# Required. The width of sprite in pixels. Must be an even integer. To
|
363
|
-
# source aspect ratio, set the
|
364
|
-
#
|
365
|
-
#
|
363
|
+
# Required. The width of sprite in pixels. Must be an even integer. To
|
364
|
+
# preserve the source aspect ratio, set the
|
365
|
+
# {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels}
|
366
|
+
# field or the
|
367
|
+
# {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels}
|
368
|
+
# field, but not both (the API will automatically calculate the missing
|
369
|
+
# field).
|
370
|
+
#
|
371
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
372
|
+
# provide the width, in pixels, per the horizontal ASR. The API calculates
|
373
|
+
# the height per the horizontal ASR. The API detects any rotation metadata
|
374
|
+
# and swaps the requested height and width for the output.
|
366
375
|
# @!attribute [rw] sprite_height_pixels
|
367
376
|
# @return [::Integer]
|
368
|
-
# Required. The height of sprite in pixels. Must be an even integer. To
|
369
|
-
# source aspect ratio, set the
|
370
|
-
#
|
371
|
-
#
|
377
|
+
# Required. The height of sprite in pixels. Must be an even integer. To
|
378
|
+
# preserve the source aspect ratio, set the
|
379
|
+
# {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels}
|
380
|
+
# field or the
|
381
|
+
# {::Google::Cloud::Video::Transcoder::V1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels}
|
382
|
+
# field, but not both (the API will automatically calculate the missing
|
383
|
+
# field).
|
384
|
+
#
|
385
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
386
|
+
# provide the height, in pixels, per the horizontal ASR. The API calculates
|
387
|
+
# the width per the horizontal ASR. The API detects any rotation metadata
|
388
|
+
# and swaps the requested height and width for the output.
|
372
389
|
# @!attribute [rw] column_count
|
373
390
|
# @return [::Integer]
|
374
391
|
# The maximum number of sprites per row in a sprite sheet. The default is 0,
|
@@ -548,6 +565,9 @@ module Google
|
|
548
565
|
# @!attribute [rw] pad
|
549
566
|
# @return [::Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Pad]
|
550
567
|
# Specify the video pad filter configuration.
|
568
|
+
# @!attribute [rw] deinterlace
|
569
|
+
# @return [::Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Deinterlace]
|
570
|
+
# Specify the video deinterlace configuration.
|
551
571
|
class PreprocessingConfig
|
552
572
|
include ::Google::Protobuf::MessageExts
|
553
573
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -677,6 +697,76 @@ module Google
|
|
677
697
|
include ::Google::Protobuf::MessageExts
|
678
698
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
679
699
|
end
|
700
|
+
|
701
|
+
# Deinterlace configuration for input video.
|
702
|
+
# @!attribute [rw] yadif
|
703
|
+
# @return [::Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Deinterlace::YadifConfig]
|
704
|
+
# Specifies the Yet Another Deinterlacing Filter Configuration.
|
705
|
+
# @!attribute [rw] bwdif
|
706
|
+
# @return [::Google::Cloud::Video::Transcoder::V1::PreprocessingConfig::Deinterlace::BwdifConfig]
|
707
|
+
# Specifies the Bob Weaver Deinterlacing Filter Configuration.
|
708
|
+
class Deinterlace
|
709
|
+
include ::Google::Protobuf::MessageExts
|
710
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
711
|
+
|
712
|
+
# Yet Another Deinterlacing Filter Configuration.
|
713
|
+
# @!attribute [rw] mode
|
714
|
+
# @return [::String]
|
715
|
+
# Specifies the deinterlacing mode to adopt.
|
716
|
+
# The default is `send_frame`.
|
717
|
+
# Supported values:
|
718
|
+
#
|
719
|
+
# - `send_frame`: Output one frame for each frame
|
720
|
+
# - `send_field`: Output one frame for each field
|
721
|
+
# @!attribute [rw] disable_spatial_interlacing
|
722
|
+
# @return [::Boolean]
|
723
|
+
# Disable spacial interlacing.
|
724
|
+
# The default is `false`.
|
725
|
+
# @!attribute [rw] parity
|
726
|
+
# @return [::String]
|
727
|
+
# The picture field parity assumed for the input interlaced video.
|
728
|
+
# The default is `auto`.
|
729
|
+
# Supported values:
|
730
|
+
#
|
731
|
+
# - `tff`: Assume the top field is first
|
732
|
+
# - `bff`: Assume the bottom field is first
|
733
|
+
# - `auto`: Enable automatic detection of field parity
|
734
|
+
# @!attribute [rw] deinterlace_all_frames
|
735
|
+
# @return [::Boolean]
|
736
|
+
# Deinterlace all frames rather than just the frames identified as
|
737
|
+
# interlaced. The default is `false`.
|
738
|
+
class YadifConfig
|
739
|
+
include ::Google::Protobuf::MessageExts
|
740
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
741
|
+
end
|
742
|
+
|
743
|
+
# Bob Weaver Deinterlacing Filter Configuration.
|
744
|
+
# @!attribute [rw] mode
|
745
|
+
# @return [::String]
|
746
|
+
# Specifies the deinterlacing mode to adopt.
|
747
|
+
# The default is `send_frame`.
|
748
|
+
# Supported values:
|
749
|
+
#
|
750
|
+
# - `send_frame`: Output one frame for each frame
|
751
|
+
# - `send_field`: Output one frame for each field
|
752
|
+
# @!attribute [rw] parity
|
753
|
+
# @return [::String]
|
754
|
+
# The picture field parity assumed for the input interlaced video.
|
755
|
+
# The default is `auto`.
|
756
|
+
# Supported values:
|
757
|
+
#
|
758
|
+
# - `tff`: Assume the top field is first
|
759
|
+
# - `bff`: Assume the bottom field is first
|
760
|
+
# - `auto`: Enable automatic detection of field parity
|
761
|
+
# @!attribute [rw] deinterlace_all_frames
|
762
|
+
# @return [::Boolean]
|
763
|
+
# Deinterlace all frames rather than just the frames identified as
|
764
|
+
# interlaced. The default is `false`.
|
765
|
+
class BwdifConfig
|
766
|
+
include ::Google::Protobuf::MessageExts
|
767
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
768
|
+
end
|
769
|
+
end
|
680
770
|
end
|
681
771
|
|
682
772
|
# Video stream resource.
|
@@ -699,24 +789,34 @@ module Google
|
|
699
789
|
# The width of the video in pixels. Must be an even integer.
|
700
790
|
# When not specified, the width is adjusted to match the specified height
|
701
791
|
# and input aspect ratio. If both are omitted, the input width is used.
|
792
|
+
#
|
793
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
794
|
+
# provide the width, in pixels, per the horizontal ASR. The API calculates
|
795
|
+
# the height per the horizontal ASR. The API detects any rotation metadata
|
796
|
+
# and swaps the requested height and width for the output.
|
702
797
|
# @!attribute [rw] height_pixels
|
703
798
|
# @return [::Integer]
|
704
799
|
# The height of the video in pixels. Must be an even integer.
|
705
800
|
# When not specified, the height is adjusted to match the specified width
|
706
801
|
# and input aspect ratio. If both are omitted, the input height is used.
|
802
|
+
#
|
803
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
804
|
+
# provide the height, in pixels, per the horizontal ASR. The API calculates
|
805
|
+
# the width per the horizontal ASR. The API detects any rotation metadata
|
806
|
+
# and swaps the requested height and width for the output.
|
707
807
|
# @!attribute [rw] frame_rate
|
708
808
|
# @return [::Float]
|
709
|
-
# Required. The target video frame rate in frames per second (FPS). Must be
|
710
|
-
# or equal to 120. Will default to the input frame rate if larger
|
711
|
-
# input frame rate. The API will generate an output FPS that is
|
712
|
-
# by the input FPS, and smaller or equal to the target FPS. See
|
809
|
+
# Required. The target video frame rate in frames per second (FPS). Must be
|
810
|
+
# less than or equal to 120. Will default to the input frame rate if larger
|
811
|
+
# than the input frame rate. The API will generate an output FPS that is
|
812
|
+
# divisible by the input FPS, and smaller or equal to the target FPS. See
|
713
813
|
# [Calculating frame
|
714
814
|
# rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
|
715
815
|
# more information.
|
716
816
|
# @!attribute [rw] bitrate_bps
|
717
817
|
# @return [::Integer]
|
718
|
-
# Required. The video bitrate in bits per second. The minimum value is
|
719
|
-
# The maximum value is 800,000,000.
|
818
|
+
# Required. The video bitrate in bits per second. The minimum value is
|
819
|
+
# 1,000. The maximum value is 800,000,000.
|
720
820
|
# @!attribute [rw] pixel_format
|
721
821
|
# @return [::String]
|
722
822
|
# Pixel format to use. The default is `yuv420p`.
|
@@ -834,24 +934,34 @@ module Google
|
|
834
934
|
# The width of the video in pixels. Must be an even integer.
|
835
935
|
# When not specified, the width is adjusted to match the specified height
|
836
936
|
# and input aspect ratio. If both are omitted, the input width is used.
|
937
|
+
#
|
938
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
939
|
+
# provide the width, in pixels, per the horizontal ASR. The API calculates
|
940
|
+
# the height per the horizontal ASR. The API detects any rotation metadata
|
941
|
+
# and swaps the requested height and width for the output.
|
837
942
|
# @!attribute [rw] height_pixels
|
838
943
|
# @return [::Integer]
|
839
944
|
# The height of the video in pixels. Must be an even integer.
|
840
945
|
# When not specified, the height is adjusted to match the specified width
|
841
946
|
# and input aspect ratio. If both are omitted, the input height is used.
|
947
|
+
#
|
948
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
949
|
+
# provide the height, in pixels, per the horizontal ASR. The API calculates
|
950
|
+
# the width per the horizontal ASR. The API detects any rotation metadata
|
951
|
+
# and swaps the requested height and width for the output.
|
842
952
|
# @!attribute [rw] frame_rate
|
843
953
|
# @return [::Float]
|
844
|
-
# Required. The target video frame rate in frames per second (FPS). Must be
|
845
|
-
# or equal to 120. Will default to the input frame rate if larger
|
846
|
-
# input frame rate. The API will generate an output FPS that is
|
847
|
-
# by the input FPS, and smaller or equal to the target FPS. See
|
954
|
+
# Required. The target video frame rate in frames per second (FPS). Must be
|
955
|
+
# less than or equal to 120. Will default to the input frame rate if larger
|
956
|
+
# than the input frame rate. The API will generate an output FPS that is
|
957
|
+
# divisible by the input FPS, and smaller or equal to the target FPS. See
|
848
958
|
# [Calculating frame
|
849
959
|
# rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
|
850
960
|
# more information.
|
851
961
|
# @!attribute [rw] bitrate_bps
|
852
962
|
# @return [::Integer]
|
853
|
-
# Required. The video bitrate in bits per second. The minimum value is
|
854
|
-
# The maximum value is 800,000,000.
|
963
|
+
# Required. The video bitrate in bits per second. The minimum value is
|
964
|
+
# 1,000. The maximum value is 800,000,000.
|
855
965
|
# @!attribute [rw] pixel_format
|
856
966
|
# @return [::String]
|
857
967
|
# Pixel format to use. The default is `yuv420p`.
|
@@ -976,24 +1086,34 @@ module Google
|
|
976
1086
|
# The width of the video in pixels. Must be an even integer.
|
977
1087
|
# When not specified, the width is adjusted to match the specified height
|
978
1088
|
# and input aspect ratio. If both are omitted, the input width is used.
|
1089
|
+
#
|
1090
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
1091
|
+
# provide the width, in pixels, per the horizontal ASR. The API calculates
|
1092
|
+
# the height per the horizontal ASR. The API detects any rotation metadata
|
1093
|
+
# and swaps the requested height and width for the output.
|
979
1094
|
# @!attribute [rw] height_pixels
|
980
1095
|
# @return [::Integer]
|
981
1096
|
# The height of the video in pixels. Must be an even integer.
|
982
1097
|
# When not specified, the height is adjusted to match the specified width
|
983
1098
|
# and input aspect ratio. If both are omitted, the input height is used.
|
1099
|
+
#
|
1100
|
+
# For portrait videos that contain horizontal ASR and rotation metadata,
|
1101
|
+
# provide the height, in pixels, per the horizontal ASR. The API calculates
|
1102
|
+
# the width per the horizontal ASR. The API detects any rotation metadata
|
1103
|
+
# and swaps the requested height and width for the output.
|
984
1104
|
# @!attribute [rw] frame_rate
|
985
1105
|
# @return [::Float]
|
986
|
-
# Required. The target video frame rate in frames per second (FPS). Must be
|
987
|
-
# or equal to 120. Will default to the input frame rate if larger
|
988
|
-
# input frame rate. The API will generate an output FPS that is
|
989
|
-
# by the input FPS, and smaller or equal to the target FPS. See
|
1106
|
+
# Required. The target video frame rate in frames per second (FPS). Must be
|
1107
|
+
# less than or equal to 120. Will default to the input frame rate if larger
|
1108
|
+
# than the input frame rate. The API will generate an output FPS that is
|
1109
|
+
# divisible by the input FPS, and smaller or equal to the target FPS. See
|
990
1110
|
# [Calculating frame
|
991
1111
|
# rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
|
992
1112
|
# more information.
|
993
1113
|
# @!attribute [rw] bitrate_bps
|
994
1114
|
# @return [::Integer]
|
995
|
-
# Required. The video bitrate in bits per second. The minimum value is
|
996
|
-
# The maximum value is 480,000,000.
|
1115
|
+
# Required. The video bitrate in bits per second. The minimum value is
|
1116
|
+
# 1,000. The maximum value is 480,000,000.
|
997
1117
|
# @!attribute [rw] pixel_format
|
998
1118
|
# @return [::String]
|
999
1119
|
# Pixel format to use. The default is `yuv420p`.
|
@@ -1069,7 +1189,8 @@ module Google
|
|
1069
1189
|
# - `eac3`
|
1070
1190
|
# @!attribute [rw] bitrate_bps
|
1071
1191
|
# @return [::Integer]
|
1072
|
-
# Required. Audio bitrate in bits per second. Must be between 1 and
|
1192
|
+
# Required. Audio bitrate in bits per second. Must be between 1 and
|
1193
|
+
# 10,000,000.
|
1073
1194
|
# @!attribute [rw] channel_count
|
1074
1195
|
# @return [::Integer]
|
1075
1196
|
# Number of audio channels. Must be between 1 and 6. The default is 2.
|
@@ -1093,6 +1214,15 @@ module Google
|
|
1093
1214
|
# @!attribute [rw] sample_rate_hertz
|
1094
1215
|
# @return [::Integer]
|
1095
1216
|
# The audio sample rate in Hertz. The default is 48000 Hertz.
|
1217
|
+
# @!attribute [rw] language_code
|
1218
|
+
# @return [::String]
|
1219
|
+
# The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
|
1220
|
+
# information, see
|
1221
|
+
# https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1222
|
+
# @!attribute [rw] display_name
|
1223
|
+
# @return [::String]
|
1224
|
+
# The name for this particular audio stream that
|
1225
|
+
# will be added to the HLS/DASH manifest.
|
1096
1226
|
class AudioStream
|
1097
1227
|
include ::Google::Protobuf::MessageExts
|
1098
1228
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1100,8 +1230,8 @@ module Google
|
|
1100
1230
|
# The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
|
1101
1231
|
# @!attribute [rw] atom_key
|
1102
1232
|
# @return [::String]
|
1103
|
-
# Required. The `EditAtom.key` that references the atom with audio inputs
|
1104
|
-
# `Job.edit_list`.
|
1233
|
+
# Required. The `EditAtom.key` that references the atom with audio inputs
|
1234
|
+
# in the `Job.edit_list`.
|
1105
1235
|
# @!attribute [rw] input_key
|
1106
1236
|
# @return [::String]
|
1107
1237
|
# Required. The `Input.key` that identifies the input file.
|
@@ -1136,9 +1266,18 @@ module Google
|
|
1136
1266
|
# - `cea608`
|
1137
1267
|
# - `cea708`
|
1138
1268
|
# - `webvtt`
|
1269
|
+
# @!attribute [rw] language_code
|
1270
|
+
# @return [::String]
|
1271
|
+
# The BCP-47 language code, such as `en-US` or `sr-Latn`. For more
|
1272
|
+
# information, see
|
1273
|
+
# https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1139
1274
|
# @!attribute [rw] mapping
|
1140
1275
|
# @return [::Array<::Google::Cloud::Video::Transcoder::V1::TextStream::TextMapping>]
|
1141
1276
|
# The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
|
1277
|
+
# @!attribute [rw] display_name
|
1278
|
+
# @return [::String]
|
1279
|
+
# The name for this particular text stream that
|
1280
|
+
# will be added to the HLS/DASH manifest.
|
1142
1281
|
class TextStream
|
1143
1282
|
include ::Google::Protobuf::MessageExts
|
1144
1283
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -109,8 +109,8 @@ module Google
|
|
109
109
|
# Required. Parameters for creating job template.
|
110
110
|
# @!attribute [rw] job_template_id
|
111
111
|
# @return [::String]
|
112
|
-
# Required. The ID to use for the job template, which will become the final
|
113
|
-
# of the job template's resource name.
|
112
|
+
# Required. The ID to use for the job template, which will become the final
|
113
|
+
# component of the job template's resource name.
|
114
114
|
#
|
115
115
|
# This value should be 4-63 characters, and valid characters must match the
|
116
116
|
# regular expression `[a-zA-Z][a-zA-Z0-9_-]*`.
|
@@ -122,8 +122,8 @@ module Google
|
|
122
122
|
# Request message for `TranscoderService.ListJobTemplates`.
|
123
123
|
# @!attribute [rw] parent
|
124
124
|
# @return [::String]
|
125
|
-
# Required. The parent location from which to retrieve the collection of job
|
126
|
-
# Format: `projects/{project}/locations/{location}`
|
125
|
+
# Required. The parent location from which to retrieve the collection of job
|
126
|
+
# templates. Format: `projects/{project}/locations/{location}`
|
127
127
|
# @!attribute [rw] page_size
|
128
128
|
# @return [::Integer]
|
129
129
|
# The maximum number of items to return.
|
@@ -26,8 +26,6 @@ module Google
|
|
26
26
|
# service Foo {
|
27
27
|
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
28
|
# }
|
29
|
-
#
|
30
|
-
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
29
|
class Empty
|
32
30
|
include ::Google::Protobuf::MessageExts
|
33
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-video-transcoder-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.18.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.
|
53
|
+
version: 1.26.3
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +181,9 @@ files:
|
|
181
181
|
- lib/google/cloud/video/transcoder/v1/transcoder_service/paths.rb
|
182
182
|
- lib/google/cloud/video/transcoder/v1/version.rb
|
183
183
|
- proto_docs/README.md
|
184
|
+
- proto_docs/google/api/client.rb
|
184
185
|
- proto_docs/google/api/field_behavior.rb
|
186
|
+
- proto_docs/google/api/launch_stage.rb
|
185
187
|
- proto_docs/google/api/resource.rb
|
186
188
|
- proto_docs/google/cloud/video/transcoder/v1/resources.rb
|
187
189
|
- proto_docs/google/cloud/video/transcoder/v1/services.rb
|
@@ -209,8 +211,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
211
|
- !ruby/object:Gem::Version
|
210
212
|
version: '0'
|
211
213
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
214
|
+
rubygems_version: 3.4.2
|
213
215
|
signing_key:
|
214
216
|
specification_version: 4
|
215
|
-
summary: API
|
217
|
+
summary: This API converts video files into formats suitable for consumer distribution.
|
218
|
+
For more information, see the <a href="https://cloud.google.com/transcoder/docs/concepts/overview">Transcoder
|
219
|
+
API overview</a>.
|
216
220
|
test_files: []
|