google-cloud-video-transcoder-v1beta1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 304c821d5ca7fe5c17a704dd8478f860d688adcf458fa434f9856b7e38b250ad
4
- data.tar.gz: 1130aff7a0af59aa1e69ab2099a21619bc8c3a4a422f64c0969fb3dfe6f563cd
3
+ metadata.gz: 82afcbdeaf7f25ad39e1370f03322f72246732d129e6d7d6674c8fee50defda9
4
+ data.tar.gz: b9072943d875039b18e537a38454b5dbc916c2f22e7f15853299a0f3411eae19
5
5
  SHA512:
6
- metadata.gz: c194875d3208de87ec65fa312007fb4599947fb42070f28d4109d06bc3840a34312982c8f992e29a3dcf6b82a18905ac907a934a3ba55801fbe544c226ce0475
7
- data.tar.gz: 1cde5c96a0481eda1289d62ae9718c58e650fa5afd1c2c32a01c1fd7ccc4020aeecff6f33619691d2afd2ebdcd75b49a457c083f45f40968f9a954e9ce16e7bb
6
+ metadata.gz: f3991656081acf897761d399fff9b0fc0b2512b5b02df1e695855582e813ccc55ffaf7eef166baa56c4ea84b0f8299c6504ee9849d457a31d24136d0b4daf524
7
+ data.tar.gz: 161b95adcaffd349f83bc74986e002e233cae1c786ab118187356e08b75ccb91dc26f76dd0f6a48b1cf9e69a10ae981019b66fedfc05b83adb7ba17d1cb42926
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-video-transcoder-v1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Credentials}):
68
68
 
69
- 1. `TRANSCODER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `TRANSCODER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `TRANSCODER_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `TRANSCODER_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/video/transcoder/v1beta1"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/video/transcoder/v1beta1"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/video/transcoder/v1beta1"
data/LICENSE.md CHANGED
@@ -1,192 +1,190 @@
1
- Apache License
2
- ==============
3
-
4
- * Version 2.0, January 2004
5
- * https://www.apache.org/licenses/
6
-
7
- ### TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
-
9
- 1. **Definitions.**
10
-
11
- "License" shall mean the terms and conditions for use, reproduction,
12
- and distribution as defined by Sections 1 through 9 of this document.
13
-
14
- "Licensor" shall mean the copyright owner or entity authorized by
15
- the copyright owner that is granting the License.
16
-
17
- "Legal Entity" shall mean the union of the acting entity and all
18
- other entities that control, are controlled by, or are under common
19
- control with that entity. For the purposes of this definition,
20
- "control" means (i) the power, direct or indirect, to cause the
21
- direction or management of such entity, whether by contract or
22
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
- outstanding shares, or (iii) beneficial ownership of such entity.
24
-
25
- "You" (or "Your") shall mean an individual or Legal Entity
26
- exercising permissions granted by this License.
27
-
28
- "Source" form shall mean the preferred form for making modifications,
29
- including but not limited to software source code, documentation
30
- source, and configuration files.
31
-
32
- "Object" form shall mean any form resulting from mechanical
33
- transformation or translation of a Source form, including but
34
- not limited to compiled object code, generated documentation,
35
- and conversions to other media types.
36
-
37
- "Work" shall mean the work of authorship, whether in Source or
38
- Object form, made available under the License, as indicated by a
39
- copyright notice that is included in or attached to the work
40
- (an example is provided in the Appendix below).
41
-
42
- "Derivative Works" shall mean any work, whether in Source or Object
43
- form, that is based on (or derived from) the Work and for which the
44
- editorial revisions, annotations, elaborations, or other modifications
45
- represent, as a whole, an original work of authorship. For the purposes
46
- of this License, Derivative Works shall not include works that remain
47
- separable from, or merely link (or bind by name) to the interfaces of,
48
- the Work and Derivative Works thereof.
49
-
50
- "Contribution" shall mean any work of authorship, including
51
- the original version of the Work and any modifications or additions
52
- to that Work or Derivative Works thereof, that is intentionally
53
- submitted to Licensor for inclusion in the Work by the copyright owner
54
- or by an individual or Legal Entity authorized to submit on behalf of
55
- the copyright owner. For the purposes of this definition, "submitted"
56
- means any form of electronic, verbal, or written communication sent
57
- to the Licensor or its representatives, including but not limited to
58
- communication on electronic mailing lists, source code control systems,
59
- and issue tracking systems that are managed by, or on behalf of, the
60
- Licensor for the purpose of discussing and improving the Work, but
61
- excluding communication that is conspicuously marked or otherwise
62
- designated in writing by the copyright owner as "Not a Contribution."
63
-
64
- "Contributor" shall mean Licensor and any individual or Legal Entity
65
- on behalf of whom a Contribution has been received by Licensor and
66
- subsequently incorporated within the Work.
67
-
68
- 2. **Grant of Copyright License.** Subject to the terms and conditions of
69
- this License, each Contributor hereby grants to You a perpetual,
70
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
- copyright license to reproduce, prepare Derivative Works of,
72
- publicly display, publicly perform, sublicense, and distribute the
73
- Work and such Derivative Works in Source or Object form.
74
-
75
- 3. **Grant of Patent License.** Subject to the terms and conditions of
76
- this License, each Contributor hereby grants to You a perpetual,
77
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
- (except as stated in this section) patent license to make, have made,
79
- use, offer to sell, sell, import, and otherwise transfer the Work,
80
- where such license applies only to those patent claims licensable
81
- by such Contributor that are necessarily infringed by their
82
- Contribution(s) alone or by combination of their Contribution(s)
83
- with the Work to which such Contribution(s) was submitted. If You
84
- institute patent litigation against any entity (including a
85
- cross-claim or counterclaim in a lawsuit) alleging that the Work
86
- or a Contribution incorporated within the Work constitutes direct
87
- or contributory patent infringement, then any patent licenses
88
- granted to You under this License for that Work shall terminate
89
- as of the date such litigation is filed.
90
-
91
- 4. **Redistribution.** You may reproduce and distribute copies of the
92
- Work or Derivative Works thereof in any medium, with or without
93
- modifications, and in Source or Object form, provided that You
94
- meet the following conditions:
95
-
96
- * **(a)** You must give any other recipients of the Work or
97
- Derivative Works a copy of this License; and
98
-
99
- * **(b)** You must cause any modified files to carry prominent notices
100
- stating that You changed the files; and
101
-
102
- * **(c)** You must retain, in the Source form of any Derivative Works
103
- that You distribute, all copyright, patent, trademark, and
104
- attribution notices from the Source form of the Work,
105
- excluding those notices that do not pertain to any part of
106
- the Derivative Works; and
107
-
108
- * **(d)** If the Work includes a "NOTICE" text file as part of its
109
- distribution, then any Derivative Works that You distribute must
110
- include a readable copy of the attribution notices contained
111
- within such NOTICE file, excluding those notices that do not
112
- pertain to any part of the Derivative Works, in at least one
113
- of the following places: within a NOTICE text file distributed
114
- as part of the Derivative Works; within the Source form or
115
- documentation, if provided along with the Derivative Works; or,
116
- within a display generated by the Derivative Works, if and
117
- wherever such third-party notices normally appear. The contents
118
- of the NOTICE file are for informational purposes only and
119
- do not modify the License. You may add Your own attribution
120
- notices within Derivative Works that You distribute, alongside
121
- or as an addendum to the NOTICE text from the Work, provided
122
- that such additional attribution notices cannot be construed
123
- as modifying the License.
124
-
125
- You may add Your own copyright statement to Your modifications and
126
- may provide additional or different license terms and conditions
127
- for use, reproduction, or distribution of Your modifications, or
128
- for any such Derivative Works as a whole, provided Your use,
129
- reproduction, and distribution of the Work otherwise complies with
130
- the conditions stated in this License.
131
-
132
- 5. **Submission of Contributions.** Unless You explicitly state otherwise,
133
- any Contribution intentionally submitted for inclusion in the Work
134
- by You to the Licensor shall be under the terms and conditions of
135
- this License, without any additional terms or conditions.
136
- Notwithstanding the above, nothing herein shall supersede or modify
137
- the terms of any separate license agreement you may have executed
138
- with Licensor regarding such Contributions.
139
-
140
- 6. **Trademarks.** This License does not grant permission to use the trade
141
- names, trademarks, service marks, or product names of the Licensor,
142
- except as required for reasonable and customary use in describing the
143
- origin of the Work and reproducing the content of the NOTICE file.
144
-
145
- 7. **Disclaimer of Warranty.** Unless required by applicable law or
146
- agreed to in writing, Licensor provides the Work (and each
147
- Contributor provides its Contributions) on an "AS IS" BASIS,
148
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
- implied, including, without limitation, any warranties or conditions
150
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
- PARTICULAR PURPOSE. You are solely responsible for determining the
152
- appropriateness of using or redistributing the Work and assume any
153
- risks associated with Your exercise of permissions under this License.
154
-
155
- 8. **Limitation of Liability.** In no event and under no legal theory,
156
- whether in tort (including negligence), contract, or otherwise,
157
- unless required by applicable law (such as deliberate and grossly
158
- negligent acts) or agreed to in writing, shall any Contributor be
159
- liable to You for damages, including any direct, indirect, special,
160
- incidental, or consequential damages of any character arising as a
161
- result of this License or out of the use or inability to use the
162
- Work (including but not limited to damages for loss of goodwill,
163
- work stoppage, computer failure or malfunction, or any and all
164
- other commercial damages or losses), even if such Contributor
165
- has been advised of the possibility of such damages.
166
-
167
- 9. **Accepting Warranty or Additional Liability.** While redistributing
168
- the Work or Derivative Works thereof, You may choose to offer,
169
- and charge a fee for, acceptance of support, warranty, indemnity,
170
- or other liability obligations and/or rights consistent with this
171
- License. However, in accepting such obligations, You may act only
172
- on Your own behalf and on Your sole responsibility, not on behalf
173
- of any other Contributor, and only if You agree to indemnify,
174
- defend, and hold each Contributor harmless for any liability
175
- incurred by, or claims asserted against, such Contributor by reason
176
- of your accepting any such warranty or additional liability.
177
-
178
- _END OF TERMS AND CONDITIONS_
179
-
180
- ### APPENDIX: How to apply the Apache License to your work.
181
-
182
- To apply the Apache License to your work, attach the following
183
- boilerplate notice, with the fields enclosed by brackets "`[]`"
184
- replaced with your own identifying information. (Don't include
185
- the brackets!) The text should be enclosed in the appropriate
186
- comment syntax for the file format. We also recommend that a
187
- file or class name and description of purpose be included on the
188
- same "printed page" as the copyright notice for easier
189
- identification within third-party archives.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
190
188
 
191
189
  Copyright [yyyy] [name of copyright owner]
192
190
 
@@ -194,7 +192,7 @@ identification within third-party archives.
194
192
  you may not use this file except in compliance with the License.
195
193
  You may obtain a copy of the License at
196
194
 
197
- https://www.apache.org/licenses/LICENSE-2.0
195
+ http://www.apache.org/licenses/LICENSE-2.0
198
196
 
199
197
  Unless required by applicable law or agreed to in writing, software
200
198
  distributed under the License is distributed on an "AS IS" BASIS,
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/video/transcoder/v1beta1"
34
34
 
35
35
  client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::Video::Transcoder::V1beta1::CreateJobRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_job request
38
38
  ```
39
39
 
@@ -71,11 +71,11 @@ end
71
71
 
72
72
  ## Supported Ruby Versions
73
73
 
74
- This library is supported on Ruby 2.4+.
74
+ This library is supported on Ruby 2.5+.
75
75
 
76
76
  Google provides official support for Ruby versions that are actively supported
77
77
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.4
78
+ in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
79
  and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
80
  recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
81
  about the Ruby support schedule.
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  optional :create_time, :message, 12, "google.protobuf.Timestamp"
23
23
  optional :start_time, :message, 13, "google.protobuf.Timestamp"
24
24
  optional :end_time, :message, 14, "google.protobuf.Timestamp"
25
+ optional :ttl_after_completion_days, :int32, 15
25
26
  oneof :job_config do
26
27
  optional :template_id, :string, 4
27
28
  optional :config, :message, 5, "google.cloud.video.transcoder.v1beta1.JobConfig"
@@ -109,6 +110,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
109
110
  optional :row_count, :int32, 6
110
111
  optional :start_time_offset, :message, 7, "google.protobuf.Duration"
111
112
  optional :end_time_offset, :message, 8, "google.protobuf.Duration"
113
+ optional :quality, :int32, 11
112
114
  oneof :extraction_strategy do
113
115
  optional :total_count, :int32, 9
114
116
  optional :interval, :message, 10, "google.protobuf.Duration"
@@ -157,6 +159,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
157
159
  optional :denoise, :message, 2, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise"
158
160
  optional :deblock, :message, 3, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock"
159
161
  optional :audio, :message, 4, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio"
162
+ optional :crop, :message, 5, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop"
163
+ optional :pad, :message, 6, "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad"
160
164
  end
161
165
  add_message "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Color" do
162
166
  optional :saturation, :double, 1
@@ -176,6 +180,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
176
180
  optional :high_boost, :bool, 2
177
181
  optional :low_boost, :bool, 3
178
182
  end
183
+ add_message "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop" do
184
+ optional :top_pixels, :int32, 1
185
+ optional :bottom_pixels, :int32, 2
186
+ optional :left_pixels, :int32, 3
187
+ optional :right_pixels, :int32, 4
188
+ end
189
+ add_message "google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad" do
190
+ optional :top_pixels, :int32, 1
191
+ optional :bottom_pixels, :int32, 2
192
+ optional :left_pixels, :int32, 3
193
+ optional :right_pixels, :int32, 4
194
+ end
179
195
  add_message "google.cloud.video.transcoder.v1beta1.VideoStream" do
180
196
  optional :codec, :string, 1
181
197
  optional :profile, :string, 2
@@ -303,6 +319,8 @@ module Google
303
319
  PreprocessingConfig::Denoise = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise").msgclass
304
320
  PreprocessingConfig::Deblock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Deblock").msgclass
305
321
  PreprocessingConfig::Audio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Audio").msgclass
322
+ PreprocessingConfig::Crop = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop").msgclass
323
+ PreprocessingConfig::Pad = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad").msgclass
306
324
  VideoStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.VideoStream").msgclass
307
325
  AudioStream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.AudioStream").msgclass
308
326
  AudioStream::AudioAtom = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.video.transcoder.v1beta1.AudioStream.AudioAtom").msgclass
@@ -47,13 +47,14 @@ module Google
47
47
  # See {::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client::Configuration}
48
48
  # for a description of the configuration fields.
49
49
  #
50
- # ## Example
50
+ # @deprecated This service is deprecated and may be removed in the next major version update.
51
51
  #
52
- # To modify the configuration for all TranscoderService clients:
52
+ # @example
53
53
  #
54
- # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
55
- # config.timeout = 10.0
56
- # end
54
+ # # Modify the configuration for all TranscoderService clients
55
+ # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
56
+ # config.timeout = 10.0
57
+ # end
57
58
  #
58
59
  # @yield [config] Configure the Client client.
59
60
  # @yieldparam config [Client::Configuration]
@@ -66,17 +67,14 @@ module Google
66
67
  parent_config = while namespace.any?
67
68
  parent_name = namespace.join "::"
68
69
  parent_const = const_get parent_name
69
- break parent_const.configure if parent_const&.respond_to? :configure
70
+ break parent_const.configure if parent_const.respond_to? :configure
70
71
  namespace.pop
71
72
  end
72
73
  default_config = Client::Configuration.new parent_config
73
74
 
74
75
  default_config.timeout = 60.0
75
76
  default_config.retry_policy = {
76
- initial_delay: 1.0,
77
- max_delay: 10.0,
78
- multiplier: 1.3,
79
- retry_codes: [14]
77
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
80
78
  }
81
79
 
82
80
  default_config.rpcs.create_job.timeout = 60.0
@@ -124,19 +122,15 @@ module Google
124
122
  ##
125
123
  # Create a new TranscoderService client object.
126
124
  #
127
- # ## Examples
125
+ # @example
128
126
  #
129
- # To create a new TranscoderService client with the default
130
- # configuration:
127
+ # # Create a client using the default configuration
128
+ # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new
131
129
  #
132
- # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new
133
- #
134
- # To create a new TranscoderService client with a custom
135
- # configuration:
136
- #
137
- # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
138
- # config.timeout = 10.0
139
- # end
130
+ # # Create a client using a custom configuration
131
+ # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
132
+ # config.timeout = 10.0
133
+ # end
140
134
  #
141
135
  # @yield [config] Configure the TranscoderService client.
142
136
  # @yieldparam config [Client::Configuration]
@@ -156,14 +150,13 @@ module Google
156
150
 
157
151
  # Create credentials
158
152
  credentials = @config.credentials
159
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
153
+ # Use self-signed JWT if the endpoint is unchanged from default,
160
154
  # but only if the default endpoint does not have a region prefix.
161
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
162
- @config.endpoint == Client.configure.endpoint &&
155
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
163
156
  !@config.endpoint.split(".").first.include?("-")
164
- credentials ||= Credentials.default scope: @config.scope,
157
+ credentials ||= Credentials.default scope: @config.scope,
165
158
  enable_self_signed_jwt: enable_self_signed_jwt
166
- if credentials.is_a?(String) || credentials.is_a?(Hash)
159
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
167
160
  credentials = Credentials.new credentials, scope: @config.scope
168
161
  end
169
162
  @quota_project_id = @config.quota_project
@@ -238,7 +231,9 @@ module Google
238
231
  options.apply_defaults timeout: @config.rpcs.create_job.timeout,
239
232
  metadata: metadata,
240
233
  retry_policy: @config.rpcs.create_job.retry_policy
241
- options.apply_defaults metadata: @config.metadata,
234
+
235
+ options.apply_defaults timeout: @config.timeout,
236
+ metadata: @config.metadata,
242
237
  retry_policy: @config.retry_policy
243
238
 
244
239
  @transcoder_service_stub.call_rpc :create_job, request, options: options do |response, operation|
@@ -309,7 +304,9 @@ module Google
309
304
  options.apply_defaults timeout: @config.rpcs.list_jobs.timeout,
310
305
  metadata: metadata,
311
306
  retry_policy: @config.rpcs.list_jobs.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
307
+
308
+ options.apply_defaults timeout: @config.timeout,
309
+ metadata: @config.metadata,
313
310
  retry_policy: @config.retry_policy
314
311
 
315
312
  @transcoder_service_stub.call_rpc :list_jobs, request, options: options do |response, operation|
@@ -377,7 +374,9 @@ module Google
377
374
  options.apply_defaults timeout: @config.rpcs.get_job.timeout,
378
375
  metadata: metadata,
379
376
  retry_policy: @config.rpcs.get_job.retry_policy
380
- options.apply_defaults metadata: @config.metadata,
377
+
378
+ options.apply_defaults timeout: @config.timeout,
379
+ metadata: @config.metadata,
381
380
  retry_policy: @config.retry_policy
382
381
 
383
382
  @transcoder_service_stub.call_rpc :get_job, request, options: options do |response, operation|
@@ -444,7 +443,9 @@ module Google
444
443
  options.apply_defaults timeout: @config.rpcs.delete_job.timeout,
445
444
  metadata: metadata,
446
445
  retry_policy: @config.rpcs.delete_job.retry_policy
447
- options.apply_defaults metadata: @config.metadata,
446
+
447
+ options.apply_defaults timeout: @config.timeout,
448
+ metadata: @config.metadata,
448
449
  retry_policy: @config.retry_policy
449
450
 
450
451
  @transcoder_service_stub.call_rpc :delete_job, request, options: options do |response, operation|
@@ -519,7 +520,9 @@ module Google
519
520
  options.apply_defaults timeout: @config.rpcs.create_job_template.timeout,
520
521
  metadata: metadata,
521
522
  retry_policy: @config.rpcs.create_job_template.retry_policy
522
- options.apply_defaults metadata: @config.metadata,
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
523
526
  retry_policy: @config.retry_policy
524
527
 
525
528
  @transcoder_service_stub.call_rpc :create_job_template, request, options: options do |response, operation|
@@ -591,7 +594,9 @@ module Google
591
594
  options.apply_defaults timeout: @config.rpcs.list_job_templates.timeout,
592
595
  metadata: metadata,
593
596
  retry_policy: @config.rpcs.list_job_templates.retry_policy
594
- options.apply_defaults metadata: @config.metadata,
597
+
598
+ options.apply_defaults timeout: @config.timeout,
599
+ metadata: @config.metadata,
595
600
  retry_policy: @config.retry_policy
596
601
 
597
602
  @transcoder_service_stub.call_rpc :list_job_templates, request, options: options do |response, operation|
@@ -660,7 +665,9 @@ module Google
660
665
  options.apply_defaults timeout: @config.rpcs.get_job_template.timeout,
661
666
  metadata: metadata,
662
667
  retry_policy: @config.rpcs.get_job_template.retry_policy
663
- options.apply_defaults metadata: @config.metadata,
668
+
669
+ options.apply_defaults timeout: @config.timeout,
670
+ metadata: @config.metadata,
664
671
  retry_policy: @config.retry_policy
665
672
 
666
673
  @transcoder_service_stub.call_rpc :get_job_template, request, options: options do |response, operation|
@@ -727,7 +734,9 @@ module Google
727
734
  options.apply_defaults timeout: @config.rpcs.delete_job_template.timeout,
728
735
  metadata: metadata,
729
736
  retry_policy: @config.rpcs.delete_job_template.retry_policy
730
- options.apply_defaults metadata: @config.metadata,
737
+
738
+ options.apply_defaults timeout: @config.timeout,
739
+ metadata: @config.metadata,
731
740
  retry_policy: @config.retry_policy
732
741
 
733
742
  @transcoder_service_stub.call_rpc :delete_job_template, request, options: options do |response, operation|
@@ -751,22 +760,21 @@ module Google
751
760
  # Configuration can be applied globally to all clients, or to a single client
752
761
  # on construction.
753
762
  #
754
- # # Examples
755
- #
756
- # To modify the global config, setting the timeout for create_job
757
- # to 20 seconds, and all remaining timeouts to 10 seconds:
758
- #
759
- # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
760
- # config.timeout = 10.0
761
- # config.rpcs.create_job.timeout = 20.0
762
- # end
763
+ # @example
763
764
  #
764
- # To apply the above configuration only to a new client:
765
+ # # Modify the global config, setting the timeout for
766
+ # # create_job to 20 seconds,
767
+ # # and all remaining timeouts to 10 seconds.
768
+ # ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.configure do |config|
769
+ # config.timeout = 10.0
770
+ # config.rpcs.create_job.timeout = 20.0
771
+ # end
765
772
  #
766
- # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
767
- # config.timeout = 10.0
768
- # config.rpcs.create_job.timeout = 20.0
769
- # end
773
+ # # Apply the above configuration only to a new client.
774
+ # client = ::Google::Cloud::Video::Transcoder::V1beta1::TranscoderService::Client.new do |config|
775
+ # config.timeout = 10.0
776
+ # config.rpcs.create_job.timeout = 20.0
777
+ # end
770
778
  #
771
779
  # @!attribute [rw] endpoint
772
780
  # The hostname or hostname:port of the service endpoint.
@@ -830,7 +838,7 @@ module Google
830
838
  config_attr :scope, nil, ::String, ::Array, nil
831
839
  config_attr :lib_name, nil, ::String, nil
832
840
  config_attr :lib_version, nil, ::String, nil
833
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
841
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
834
842
  config_attr :interceptors, nil, ::Array, nil
835
843
  config_attr :timeout, nil, ::Numeric, nil
836
844
  config_attr :metadata, nil, ::Hash, nil
@@ -851,7 +859,7 @@ module Google
851
859
  def rpcs
852
860
  @rpcs ||= begin
853
861
  parent_rpcs = nil
854
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
862
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
855
863
  Rpcs.new parent_rpcs
856
864
  end
857
865
  end
@@ -917,21 +925,21 @@ module Google
917
925
 
918
926
  # @private
919
927
  def initialize parent_rpcs = nil
920
- create_job_config = parent_rpcs&.create_job if parent_rpcs&.respond_to? :create_job
928
+ create_job_config = parent_rpcs.create_job if parent_rpcs.respond_to? :create_job
921
929
  @create_job = ::Gapic::Config::Method.new create_job_config
922
- list_jobs_config = parent_rpcs&.list_jobs if parent_rpcs&.respond_to? :list_jobs
930
+ list_jobs_config = parent_rpcs.list_jobs if parent_rpcs.respond_to? :list_jobs
923
931
  @list_jobs = ::Gapic::Config::Method.new list_jobs_config
924
- get_job_config = parent_rpcs&.get_job if parent_rpcs&.respond_to? :get_job
932
+ get_job_config = parent_rpcs.get_job if parent_rpcs.respond_to? :get_job
925
933
  @get_job = ::Gapic::Config::Method.new get_job_config
926
- delete_job_config = parent_rpcs&.delete_job if parent_rpcs&.respond_to? :delete_job
934
+ delete_job_config = parent_rpcs.delete_job if parent_rpcs.respond_to? :delete_job
927
935
  @delete_job = ::Gapic::Config::Method.new delete_job_config
928
- create_job_template_config = parent_rpcs&.create_job_template if parent_rpcs&.respond_to? :create_job_template
936
+ create_job_template_config = parent_rpcs.create_job_template if parent_rpcs.respond_to? :create_job_template
929
937
  @create_job_template = ::Gapic::Config::Method.new create_job_template_config
930
- list_job_templates_config = parent_rpcs&.list_job_templates if parent_rpcs&.respond_to? :list_job_templates
938
+ list_job_templates_config = parent_rpcs.list_job_templates if parent_rpcs.respond_to? :list_job_templates
931
939
  @list_job_templates = ::Gapic::Config::Method.new list_job_templates_config
932
- get_job_template_config = parent_rpcs&.get_job_template if parent_rpcs&.respond_to? :get_job_template
940
+ get_job_template_config = parent_rpcs.get_job_template if parent_rpcs.respond_to? :get_job_template
933
941
  @get_job_template = ::Gapic::Config::Method.new get_job_template_config
934
- delete_job_template_config = parent_rpcs&.delete_job_template if parent_rpcs&.respond_to? :delete_job_template
942
+ delete_job_template_config = parent_rpcs.delete_job_template if parent_rpcs.respond_to? :delete_job_template
935
943
  @delete_job_template = ::Gapic::Config::Method.new delete_job_template_config
936
944
 
937
945
  yield self if block_given?
@@ -22,7 +22,7 @@ module Google
22
22
  module Video
23
23
  module Transcoder
24
24
  module V1beta1
25
- VERSION = "0.1.0"
25
+ VERSION = "0.3.0"
26
26
  end
27
27
  end
28
28
  end
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -31,8 +31,8 @@ module Google
31
31
  # @return [::String]
32
32
  # Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
33
33
  # `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
34
- # URI of the media. It must be stored in Cloud Storage. For example,
35
- # `gs://bucket/inputs/file.mp4`.
34
+ # URI of the media. Input files must be at least 5 seconds in duration and
35
+ # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
36
36
  # @!attribute [rw] output_uri
37
37
  # @return [::String]
38
38
  # Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or
@@ -58,6 +58,7 @@ module Google
58
58
  # @!attribute [r] origin_uri
59
59
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Job::OriginUri]
60
60
  # Output only. The origin URI.
61
+ # <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
61
62
  # @!attribute [r] state
62
63
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Job::ProcessingState]
63
64
  # Output only. The current state of the job.
@@ -65,6 +66,7 @@ module Google
65
66
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Progress]
66
67
  # Output only. Estimated fractional progress, from `0` to `1` for each
67
68
  # step.
69
+ # <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
68
70
  # @!attribute [r] failure_reason
69
71
  # @return [::String]
70
72
  # Output only. A description of the reason for the failure. This property is
@@ -73,6 +75,7 @@ module Google
73
75
  # @return [::Array<::Google::Cloud::Video::Transcoder::V1beta1::FailureDetail>]
74
76
  # Output only. List of failure details. This property may contain additional
75
77
  # information about the failure when `failure_reason` is present.
78
+ # <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
76
79
  # @!attribute [r] create_time
77
80
  # @return [::Google::Protobuf::Timestamp]
78
81
  # Output only. The time the job was created.
@@ -82,6 +85,11 @@ module Google
82
85
  # @!attribute [r] end_time
83
86
  # @return [::Google::Protobuf::Timestamp]
84
87
  # Output only. The time the transcoding finished.
88
+ # @!attribute [rw] ttl_after_completion_days
89
+ # @return [::Integer]
90
+ # Job time to live value in days, which will be effective after job
91
+ # completion. Job should be deleted automatically after the given TTL. Enter
92
+ # a value between 1 and 90. The default is 30.
85
93
  class Job
86
94
  include ::Google::Protobuf::MessageExts
87
95
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -89,8 +97,8 @@ module Google
89
97
  # The origin URI.
90
98
  # @!attribute [rw] hls
91
99
  # @return [::String]
92
- # HLS master manifest URI. If multiple HLS master manifests are created
93
- # only first one is listed.
100
+ # HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
101
+ # If multiple HLS manifests are created, only the first one is listed.
94
102
  # @!attribute [rw] dash
95
103
  # @return [::String]
96
104
  # Dash manifest URI. If multiple Dash manifests are created, only the first
@@ -179,9 +187,9 @@ module Google
179
187
  # mapping and edit lists.
180
188
  # @!attribute [rw] uri
181
189
  # @return [::String]
182
- # URI of the media. It must be stored in Cloud Storage. Example
183
- # `gs://bucket/inputs/file.mp4`.
184
- # If empty the value will be populated from `Job.input_uri`.
190
+ # URI of the media. Input files must be at least 5 seconds in duration and
191
+ # stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
192
+ # If empty, the value will be populated from `Job.input_uri`.
185
193
  # @!attribute [rw] preprocessing_config
186
194
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig]
187
195
  # Preprocessing configurations.
@@ -345,10 +353,16 @@ module Google
345
353
  # from 0 before the extension, such as `"sprite_sheet0000000123.jpeg"`.
346
354
  # @!attribute [rw] sprite_width_pixels
347
355
  # @return [::Integer]
348
- # Required. The width of sprite in pixels. Must be an even integer.
356
+ # Required. The width of sprite in pixels. Must be an even integer. To preserve the
357
+ # source aspect ratio, set the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels} field or
358
+ # the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels} field, but not both (the API will
359
+ # automatically calculate the missing field).
349
360
  # @!attribute [rw] sprite_height_pixels
350
361
  # @return [::Integer]
351
- # Required. The height of sprite in pixels. Must be an even integer.
362
+ # Required. The height of sprite in pixels. Must be an even integer. To preserve the
363
+ # source aspect ratio, set the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_height_pixels SpriteSheet.sprite_height_pixels} field or
364
+ # the {::Google::Cloud::Video::Transcoder::V1beta1::SpriteSheet#sprite_width_pixels SpriteSheet.sprite_width_pixels} field, but not both (the API will
365
+ # automatically calculate the missing field).
352
366
  # @!attribute [rw] column_count
353
367
  # @return [::Integer]
354
368
  # The maximum number of sprites per row in a sprite sheet. The default is 0,
@@ -376,6 +390,12 @@ module Google
376
390
  # @return [::Google::Protobuf::Duration]
377
391
  # Starting from `0s`, create sprites at regular intervals. Specify the
378
392
  # interval value in seconds.
393
+ # @!attribute [rw] quality
394
+ # @return [::Integer]
395
+ # The quality of the generated sprite sheet. Enter a value between 1
396
+ # and 100, where 1 is the lowest quality and 100 is the highest quality.
397
+ # The default is 100. A high quality value corresponds to a low image data
398
+ # compression ratio.
379
399
  class SpriteSheet
380
400
  include ::Google::Protobuf::MessageExts
381
401
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -408,8 +428,8 @@ module Google
408
428
  # Overlaid jpeg image.
409
429
  # @!attribute [rw] uri
410
430
  # @return [::String]
411
- # Required. URI of the image in Cloud Storage. For example,
412
- # `gs://bucket/inputs/image.jpeg`.
431
+ # Required. URI of the JPEG image in Cloud Storage. For example,
432
+ # `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
413
433
  # @!attribute [rw] resolution
414
434
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Overlay::NormalizedCoordinate]
415
435
  # Normalized image resolution, based on output video resolution. Valid
@@ -418,8 +438,8 @@ module Google
418
438
  # both `x` and `y` to `0.0`.
419
439
  # @!attribute [rw] alpha
420
440
  # @return [::Float]
421
- # Target image opacity. Valid values: `1` (solid, default),
422
- # `0` (transparent).
441
+ # Target image opacity. Valid values are from `1.0` (solid, default) to
442
+ # `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
423
443
  class Image
424
444
  include ::Google::Protobuf::MessageExts
425
445
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -430,7 +450,9 @@ module Google
430
450
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Overlay::NormalizedCoordinate]
431
451
  # Normalized coordinates based on output video resolution. Valid
432
452
  # values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
433
- # object.
453
+ # object. For example, use the x and y coordinates \\{0,0} to position the
454
+ # top-left corner of the overlay animation in the top-left corner of the
455
+ # output video.
434
456
  # @!attribute [rw] start_time_offset
435
457
  # @return [::Google::Protobuf::Duration]
436
458
  # The time to start displaying the overlay object, in seconds. Default: 0
@@ -447,7 +469,9 @@ module Google
447
469
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::Overlay::NormalizedCoordinate]
448
470
  # Normalized coordinates based on output video resolution. Valid
449
471
  # values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
450
- # object.
472
+ # object. For example, use the x and y coordinates \\{0,0} to position the
473
+ # top-left corner of the overlay animation in the top-left corner of the
474
+ # output video.
451
475
  # @!attribute [rw] start_time_offset
452
476
  # @return [::Google::Protobuf::Duration]
453
477
  # The time to start the fade animation, in seconds. Default: 0
@@ -512,6 +536,12 @@ module Google
512
536
  # @!attribute [rw] audio
513
537
  # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig::Audio]
514
538
  # Audio preprocessing configuration.
539
+ # @!attribute [rw] crop
540
+ # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig::Crop]
541
+ # Specify the video cropping configuration.
542
+ # @!attribute [rw] pad
543
+ # @return [::Google::Cloud::Video::Transcoder::V1beta1::PreprocessingConfig::Pad]
544
+ # Specify the video pad filter configuration.
515
545
  class PreprocessingConfig
516
546
  include ::Google::Protobuf::MessageExts
517
547
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -572,12 +602,16 @@ module Google
572
602
  # @!attribute [rw] lufs
573
603
  # @return [::Float]
574
604
  # Specify audio loudness normalization in loudness units relative to full
575
- # scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
576
- # Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
577
- # standard, -19 is the prior standard for online mono audio, -18 is the
578
- # ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
579
- # the new online audio standard recommended by Spotify, as well as Amazon
580
- # Echo, and 0 disables normalization. The default is 0.
605
+ # scale (LUFS). Enter a value between -24 and 0 (the default), where:
606
+ #
607
+ # * -24 is the Advanced Television Systems Committee (ATSC A/85) standard
608
+ # * -23 is the EU R128 broadcast standard
609
+ # * -19 is the prior standard for online mono audio
610
+ # * -18 is the ReplayGain standard
611
+ # * -16 is the prior standard for stereo audio
612
+ # * -14 is the new online audio standard recommended by Spotify, as well
613
+ # as Amazon Echo
614
+ # * 0 disables normalization
581
615
  # @!attribute [rw] high_boost
582
616
  # @return [::Boolean]
583
617
  # Enable boosting high frequency components. The default is `false`.
@@ -588,31 +622,82 @@ module Google
588
622
  include ::Google::Protobuf::MessageExts
589
623
  extend ::Google::Protobuf::MessageExts::ClassMethods
590
624
  end
625
+
626
+ # Video cropping configuration for the input video. The cropped input video
627
+ # is scaled to match the output resolution.
628
+ # @!attribute [rw] top_pixels
629
+ # @return [::Integer]
630
+ # The number of pixels to crop from the top. The default is 0.
631
+ # @!attribute [rw] bottom_pixels
632
+ # @return [::Integer]
633
+ # The number of pixels to crop from the bottom. The default is 0.
634
+ # @!attribute [rw] left_pixels
635
+ # @return [::Integer]
636
+ # The number of pixels to crop from the left. The default is 0.
637
+ # @!attribute [rw] right_pixels
638
+ # @return [::Integer]
639
+ # The number of pixels to crop from the right. The default is 0.
640
+ class Crop
641
+ include ::Google::Protobuf::MessageExts
642
+ extend ::Google::Protobuf::MessageExts::ClassMethods
643
+ end
644
+
645
+ # Pad filter configuration for the input video. The padded input video
646
+ # is scaled after padding with black to match the output resolution.
647
+ # @!attribute [rw] top_pixels
648
+ # @return [::Integer]
649
+ # The number of pixels to add to the top. The default is 0.
650
+ # @!attribute [rw] bottom_pixels
651
+ # @return [::Integer]
652
+ # The number of pixels to add to the bottom. The default is 0.
653
+ # @!attribute [rw] left_pixels
654
+ # @return [::Integer]
655
+ # The number of pixels to add to the left. The default is 0.
656
+ # @!attribute [rw] right_pixels
657
+ # @return [::Integer]
658
+ # The number of pixels to add to the right. The default is 0.
659
+ class Pad
660
+ include ::Google::Protobuf::MessageExts
661
+ extend ::Google::Protobuf::MessageExts::ClassMethods
662
+ end
591
663
  end
592
664
 
593
665
  # Video stream resource.
594
666
  # @!attribute [rw] codec
595
667
  # @return [::String]
596
- # Codec type. The default is `"h264"`.
668
+ # Codec type. The following codecs are supported:
597
669
  #
598
- # Supported codecs:
599
- # - 'h264'
600
- # - 'h265'
601
- # - 'vp9'
670
+ # * `h264` (default)
671
+ # * `h265`
672
+ # * `vp9`
602
673
  # @!attribute [rw] profile
603
674
  # @return [::String]
604
- # Enforce specified codec profile. The default is `"high"`.
675
+ # Enforces the specified codec profile. The following profiles are supported:
676
+ #
677
+ # * `baseline`
678
+ # * `main`
679
+ # * `high` (default)
605
680
  #
606
- # Supported codec profiles:
607
- # - 'baseline'
608
- # - 'main'
609
- # - 'high'
681
+ # The available options are
682
+ # <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Profile"
683
+ # class="external">FFmpeg-compatible</a>. Note that certain values for this
684
+ # field may cause the transcoder to override other fields you set in the
685
+ # `VideoStream` message.
610
686
  # @!attribute [rw] tune
611
687
  # @return [::String]
612
- # Enforce specified codec tune.
688
+ # Enforces the specified codec tune. The available options are
689
+ # <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Tune"
690
+ # class="external">FFmpeg-compatible</a>. Note that certain values for this
691
+ # field may cause the transcoder to override other fields you set in the
692
+ # `VideoStream` message.
613
693
  # @!attribute [rw] preset
614
694
  # @return [::String]
615
- # Enforce specified codec preset. The default is `"veryfast"`.
695
+ # Enforces the specified codec preset. The default is `veryfast`. The
696
+ # available options are
697
+ # <a href="https://trac.ffmpeg.org/wiki/Encode/H.264#Preset"
698
+ # class="external">FFmpeg-compatible</a>. Note that certain values for this
699
+ # field may cause the transcoder to override other fields you set in the
700
+ # `VideoStream` message.
616
701
  # @!attribute [rw] height_pixels
617
702
  # @return [::Integer]
618
703
  # The height of the video in pixels. Must be an even integer.
@@ -639,7 +724,9 @@ module Google
639
724
  # - 'yuv444p12' 12-bit HDR pixel format.
640
725
  # @!attribute [rw] bitrate_bps
641
726
  # @return [::Integer]
642
- # Required. The video bitrate in bits per second. Must be between 1 and 1,000,000,000.
727
+ # Required. The video bitrate in bits per second. The minimum value is 1,000.
728
+ # The maximum value for H264/H265 is 800,000,000. The maximum value for VP9
729
+ # is 480,000,000.
643
730
  # @!attribute [rw] rate_control_mode
644
731
  # @return [::String]
645
732
  # Specify the `rate_control_mode`. The default is `"vbr"`.
@@ -675,7 +762,9 @@ module Google
675
762
  # @!attribute [rw] gop_duration
676
763
  # @return [::Google::Protobuf::Duration]
677
764
  # Select the GOP size based on the specified duration. The default is
678
- # `"3s"`.
765
+ # `"3s"`. Note that `gopDuration` must be less than or equal to
766
+ # [`segmentDuration`](#SegmentSettings), and
767
+ # [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
679
768
  # @!attribute [rw] entropy_coder
680
769
  # @return [::String]
681
770
  # The entropy coder to use. The default is `"cabac"`.
@@ -696,28 +785,10 @@ module Google
696
785
  # Required. The target video frame rate in frames per second (FPS). Must be less than
697
786
  # or equal to 120. Will default to the input frame rate if larger than the
698
787
  # input frame rate. The API will generate an output FPS that is divisible by
699
- # the input FPS, and smaller or equal to the target FPS.
700
- #
701
- # The following table shows the computed video FPS given the target FPS (in
702
- # parenthesis) and input FPS (in the first column):
703
- # ```
704
- # | | (30) | (60) | (25) | (50) |
705
- # |--------|--------|--------|------|------|
706
- # | 240 | Fail | Fail | Fail | Fail |
707
- # | 120 | 30 | 60 | 20 | 30 |
708
- # | 100 | 25 | 50 | 20 | 30 |
709
- # | 50 | 25 | 50 | 20 | 30 |
710
- # | 60 | 30 | 60 | 20 | 30 |
711
- # | 59.94 | 29.97 | 59.94 | 20 | 30 |
712
- # | 48 | 24 | 48 | 20 | 30 |
713
- # | 30 | 30 | 30 | 20 | 30 |
714
- # | 25 | 25 | 25 | 20 | 30 |
715
- # | 24 | 24 | 24 | 20 | 30 |
716
- # | 23.976 | 23.976 | 23.976 | 20 | 30 |
717
- # | 15 | 15 | 15 | 20 | 30 |
718
- # | 12 | 12 | 12 | 20 | 30 |
719
- # | 10 | 10 | 10 | 20 | 30 |
720
- # ```
788
+ # the input FPS, and smaller or equal to the target FPS. See
789
+ # [Calculate frame
790
+ # rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for
791
+ # more information.
721
792
  # @!attribute [rw] aq_strength
722
793
  # @return [::Float]
723
794
  # Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
@@ -865,7 +936,10 @@ module Google
865
936
  # Segment settings for `"ts"`, `"fmp4"` and `"vtt"`.
866
937
  # @!attribute [rw] segment_duration
867
938
  # @return [::Google::Protobuf::Duration]
868
- # Duration of the segments in seconds. The default is `"6.0s"`.
939
+ # Duration of the segments in seconds. The default is `"6.0s"`. Note that
940
+ # `segmentDuration` must be greater than or equal to
941
+ # [`gopDuration`](#videostream), and `segmentDuration` must be divisible by
942
+ # [`gopDuration`](#videostream).
869
943
  # @!attribute [rw] individual_segments
870
944
  # @return [::Boolean]
871
945
  # Required. Create an individual segment file. The default is `false`.
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-video-transcoder-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.3.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: 2021-02-23 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.7'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.3'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.7'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.3'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +50,14 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 1.24.0
53
+ version: 1.25.1
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: 1.24.0
60
+ version: 1.25.1
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: minitest
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -194,14 +200,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
200
  requirements:
195
201
  - - ">="
196
202
  - !ruby/object:Gem::Version
197
- version: '2.4'
203
+ version: '2.5'
198
204
  required_rubygems_version: !ruby/object:Gem::Requirement
199
205
  requirements:
200
206
  - - ">="
201
207
  - !ruby/object:Gem::Version
202
208
  version: '0'
203
209
  requirements: []
204
- rubygems_version: 3.2.6
210
+ rubygems_version: 3.2.17
205
211
  signing_key:
206
212
  specification_version: 4
207
213
  summary: API Client library for the Transcoder V1beta1 API