mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-07 03:56:42 +01:00
regen all APIs
This commit is contained in:
@@ -4,12 +4,12 @@
|
||||
[package]
|
||||
|
||||
name = "google-transcoder1"
|
||||
version = "5.0.3+20230105"
|
||||
version = "5.0.3+20240221"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Transcoder (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/main/gen/transcoder1"
|
||||
homepage = "https://cloud.google.com/transcoder/docs/"
|
||||
documentation = "https://docs.rs/google-transcoder1/5.0.3+20230105"
|
||||
documentation = "https://docs.rs/google-transcoder1/5.0.3+20240221"
|
||||
license = "MIT"
|
||||
keywords = ["transcoder", "google", "protocol", "web", "api"]
|
||||
autobins = false
|
||||
|
||||
@@ -5,16 +5,16 @@ DO NOT EDIT !
|
||||
-->
|
||||
The `google-transcoder1` library allows access to all features of the *Google Transcoder* service.
|
||||
|
||||
This documentation was generated from *Transcoder* crate version *5.0.3+20230105*, where *20230105* is the exact revision of the *transcoder:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
This documentation was generated from *Transcoder* crate version *5.0.3+20240221*, where *20240221* is the exact revision of the *transcoder:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
|
||||
Everything else about the *Transcoder* *v1* API can be found at the
|
||||
[official documentation site](https://cloud.google.com/transcoder/docs/).
|
||||
# Features
|
||||
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/Transcoder) ...
|
||||
Handle the following *Resources* with ease from the central [hub](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/Transcoder) ...
|
||||
|
||||
* projects
|
||||
* [*locations job templates create*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobTemplateCreateCall), [*locations job templates delete*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobTemplateDeleteCall), [*locations job templates get*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobTemplateGetCall), [*locations job templates list*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobTemplateListCall), [*locations jobs create*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobCreateCall), [*locations jobs delete*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobDeleteCall), [*locations jobs get*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobGetCall) and [*locations jobs list*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/api::ProjectLocationJobListCall)
|
||||
* [*locations job templates create*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobTemplateCreateCall), [*locations job templates delete*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobTemplateDeleteCall), [*locations job templates get*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobTemplateGetCall), [*locations job templates list*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobTemplateListCall), [*locations jobs create*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobCreateCall), [*locations jobs delete*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobDeleteCall), [*locations jobs get*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobGetCall) and [*locations jobs list*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/api::ProjectLocationJobListCall)
|
||||
|
||||
|
||||
|
||||
@@ -23,17 +23,17 @@ Handle the following *Resources* with ease from the central [hub](https://docs.r
|
||||
|
||||
The API is structured into the following primary items:
|
||||
|
||||
* **[Hub](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/Transcoder)**
|
||||
* **[Hub](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/Transcoder)**
|
||||
* a central object to maintain state and allow accessing all *Activities*
|
||||
* creates [*Method Builders*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::MethodsBuilder) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::CallBuilder)
|
||||
* **[Resources](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Resource)**
|
||||
* creates [*Method Builders*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::MethodsBuilder) which in turn
|
||||
allow access to individual [*Call Builders*](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::CallBuilder)
|
||||
* **[Resources](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Resource)**
|
||||
* primary types that you can apply *Activities* to
|
||||
* a collection of properties and *Parts*
|
||||
* **[Parts](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Part)**
|
||||
* **[Parts](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Part)**
|
||||
* a collection of properties
|
||||
* never directly used in *Activities*
|
||||
* **[Activities](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::CallBuilder)**
|
||||
* **[Activities](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::CallBuilder)**
|
||||
* operations to apply to *Resources*
|
||||
|
||||
All *structures* are marked with applicable traits to further categorize them and ease browsing.
|
||||
@@ -125,17 +125,17 @@ match result {
|
||||
```
|
||||
## Handling Errors
|
||||
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Result) enumeration as return value of
|
||||
All errors produced by the system are provided either as [Result](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Result) enumeration as return value of
|
||||
the doit() methods, or handed as possibly intermediate results to either the
|
||||
[Hub Delegate](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
[Hub Delegate](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Delegate), or the [Authenticator Delegate](https://docs.rs/yup-oauth2/*/yup_oauth2/trait.AuthenticatorDelegate.html).
|
||||
|
||||
When delegates handle errors or intermediate values, they may have a chance to instruct the system to retry. This
|
||||
makes the system potentially resilient to all kinds of errors.
|
||||
|
||||
## Uploads and Downloads
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Result), should be
|
||||
If a method supports downloads, the response body, which is part of the [Result](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Result), should be
|
||||
read by you to obtain the media.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::ResponseResult), it will return that by default.
|
||||
If such a method also supports a [Response Result](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::ResponseResult), it will return that by default.
|
||||
You can see it as meta-data for the actual media. To trigger a media download, you will have to set up the builder by making
|
||||
this call: `.param("alt", "media")`.
|
||||
|
||||
@@ -145,29 +145,29 @@ Methods supporting uploads can do so using up to 2 different protocols:
|
||||
|
||||
## Customization and Callbacks
|
||||
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Delegate) to the
|
||||
[Method Builder](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::CallBuilder) before making the final `doit()` call.
|
||||
You may alter the way an `doit()` method is called by providing a [delegate](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Delegate) to the
|
||||
[Method Builder](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::CallBuilder) before making the final `doit()` call.
|
||||
Respective methods will be called to provide progress information, as well as determine whether the system should
|
||||
retry on failure.
|
||||
|
||||
The [delegate trait](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Delegate) is default-implemented, allowing you to customize it with minimal effort.
|
||||
The [delegate trait](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Delegate) is default-implemented, allowing you to customize it with minimal effort.
|
||||
|
||||
## Optional Parts in Server-Requests
|
||||
|
||||
All structures provided by this library are made to be [encodable](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::RequestValue) and
|
||||
[decodable](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
All structures provided by this library are made to be [encodable](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::RequestValue) and
|
||||
[decodable](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::ResponseResult) via *json*. Optionals are used to indicate that partial requests are responses
|
||||
are valid.
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::Part) which are identifiable by name, which will be sent to
|
||||
Most optionals are are considered [Parts](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::Part) which are identifiable by name, which will be sent to
|
||||
the server to indicate either the set parts of the request or the desired parts in the response.
|
||||
|
||||
## Builder Arguments
|
||||
|
||||
Using [method builders](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
Using [method builders](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::CallBuilder), you are able to prepare an action call by repeatedly calling it's methods.
|
||||
These will always take a single argument, for which the following statements are true.
|
||||
|
||||
* [PODs][wiki-pod] are handed by copy
|
||||
* strings are passed as `&str`
|
||||
* [request values](https://docs.rs/google-transcoder1/5.0.3+20230105/google_transcoder1/client::RequestValue) are moved
|
||||
* [request values](https://docs.rs/google-transcoder1/5.0.3+20240221/google_transcoder1/client::RequestValue) are moved
|
||||
|
||||
Arguments will always be copied or cloned into the builder, to make them independent of their original life times.
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ use crate::{client, client::GetToken, client::serde_with};
|
||||
/// Identifies the an OAuth2 authorization scope.
|
||||
/// A scope is needed when requesting an
|
||||
/// [authorization token](https://developers.google.com/youtube/v3/guides/authentication).
|
||||
#[derive(PartialEq, Eq, Hash)]
|
||||
#[derive(PartialEq, Eq, Ord, PartialOrd, Hash, Debug, Clone, Copy)]
|
||||
pub enum Scope {
|
||||
/// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
||||
CloudPlatform,
|
||||
@@ -181,6 +181,17 @@ pub struct AdBreak {
|
||||
impl client::Part for AdBreak {}
|
||||
|
||||
|
||||
/// Configuration for AES-128 encryption.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Aes128Encryption { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Aes128Encryption {}
|
||||
|
||||
|
||||
/// Animation types.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -205,7 +216,7 @@ pub struct Animation {
|
||||
impl client::Part for Animation {}
|
||||
|
||||
|
||||
/// End previous overlay animation from the video. Without AnimationEnd, the overlay object will keep the state of previous animation until the end of the video.
|
||||
/// End previous overlay animation from the video. Without `AnimationEnd`, the overlay object will keep the state of previous animation until the end of the video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -294,14 +305,14 @@ pub struct Audio {
|
||||
impl client::Part for Audio {}
|
||||
|
||||
|
||||
/// The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
|
||||
/// The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct AudioMapping {
|
||||
/// Required. The `EditAtom.key` that references the atom with audio inputs in the `Job.edit_list`.
|
||||
/// Required. The EditAtom.key that references the atom with audio inputs in the JobConfig.edit_list.
|
||||
#[serde(rename="atomKey")]
|
||||
|
||||
pub atom_key: Option<String>,
|
||||
@@ -313,7 +324,7 @@ pub struct AudioMapping {
|
||||
#[serde(rename="inputChannel")]
|
||||
|
||||
pub input_channel: Option<i32>,
|
||||
/// Required. The `Input.key` that identifies the input file.
|
||||
/// Required. The Input.key that identifies the input file.
|
||||
#[serde(rename="inputKey")]
|
||||
|
||||
pub input_key: Option<String>,
|
||||
@@ -352,7 +363,15 @@ pub struct AudioStream {
|
||||
/// The codec for this audio stream. The default is `aac`. Supported audio codecs: - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3`
|
||||
|
||||
pub codec: Option<String>,
|
||||
/// The mapping for the `Job.edit_list` atoms with audio `EditAtom.inputs`.
|
||||
/// The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
|
||||
#[serde(rename="displayName")]
|
||||
|
||||
pub display_name: Option<String>,
|
||||
/// The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
|
||||
#[serde(rename="languageCode")]
|
||||
|
||||
pub language_code: Option<String>,
|
||||
/// The mapping for the JobConfig.edit_list atoms with audio EditAtom.inputs.
|
||||
|
||||
pub mapping: Option<Vec<AudioMapping>>,
|
||||
/// The audio sample rate in Hertz. The default is 48000 Hertz.
|
||||
@@ -386,6 +405,17 @@ pub struct BwdifConfig {
|
||||
impl client::Part for BwdifConfig {}
|
||||
|
||||
|
||||
/// Clearkey configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Clearkey { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Clearkey {}
|
||||
|
||||
|
||||
/// Color preprocessing configuration. **Note:** This configuration is not supported.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -435,6 +465,22 @@ pub struct Crop {
|
||||
impl client::Part for Crop {}
|
||||
|
||||
|
||||
/// `DASH` manifest configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct DashConfig {
|
||||
/// The segment reference scheme for a `DASH` manifest. The default is `SEGMENT_LIST`.
|
||||
#[serde(rename="segmentReferenceScheme")]
|
||||
|
||||
pub segment_reference_scheme: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for DashConfig {}
|
||||
|
||||
|
||||
/// Deblock preprocessing configuration. **Note:** This configuration is not supported.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -489,6 +535,30 @@ pub struct Denoise {
|
||||
impl client::Part for Denoise {}
|
||||
|
||||
|
||||
/// Defines configuration for DRM systems in use.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct DrmSystems {
|
||||
/// Clearkey configuration.
|
||||
|
||||
pub clearkey: Option<Clearkey>,
|
||||
/// Fairplay configuration.
|
||||
|
||||
pub fairplay: Option<Fairplay>,
|
||||
/// Playready configuration.
|
||||
|
||||
pub playready: Option<Playready>,
|
||||
/// Widevine configuration.
|
||||
|
||||
pub widevine: Option<Widevine>,
|
||||
}
|
||||
|
||||
impl client::Part for DrmSystems {}
|
||||
|
||||
|
||||
/// Edit atom.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -501,7 +571,7 @@ pub struct EditAtom {
|
||||
|
||||
#[serde_as(as = "Option<::client::serde::duration::Wrapper>")]
|
||||
pub end_time_offset: Option<client::chrono::Duration>,
|
||||
/// List of `Input.key`s identifying files that should be used in this atom. The listed `inputs` must have the same timeline.
|
||||
/// List of Input.key values identifying files that should be used in this atom. The listed `inputs` must have the same timeline.
|
||||
|
||||
pub inputs: Option<Vec<String>>,
|
||||
/// A unique key for this atom. Must be specified when using advanced mapping.
|
||||
@@ -560,6 +630,67 @@ pub struct Empty { _never_set: Option<bool> }
|
||||
impl client::ResponseResult for Empty {}
|
||||
|
||||
|
||||
/// Encryption settings.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Encryption {
|
||||
/// Configuration for AES-128 encryption.
|
||||
|
||||
pub aes128: Option<Aes128Encryption>,
|
||||
/// Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.
|
||||
#[serde(rename="drmSystems")]
|
||||
|
||||
pub drm_systems: Option<DrmSystems>,
|
||||
/// Required. Identifier for this set of encryption options.
|
||||
|
||||
pub id: Option<String>,
|
||||
/// Configuration for MPEG Common Encryption (MPEG-CENC).
|
||||
#[serde(rename="mpegCenc")]
|
||||
|
||||
pub mpeg_cenc: Option<MpegCommonEncryption>,
|
||||
/// Configuration for SAMPLE-AES encryption.
|
||||
#[serde(rename="sampleAes")]
|
||||
|
||||
pub sample_aes: Option<SampleAesEncryption>,
|
||||
/// Keys are stored in Google Secret Manager.
|
||||
#[serde(rename="secretManagerKeySource")]
|
||||
|
||||
pub secret_manager_key_source: Option<SecretManagerSource>,
|
||||
}
|
||||
|
||||
impl client::Part for Encryption {}
|
||||
|
||||
|
||||
/// Fairplay configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Fairplay { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Fairplay {}
|
||||
|
||||
|
||||
/// `fmp4` container configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Fmp4Config {
|
||||
/// Optional. Specify the codec tag string that will be used in the media bitstream. When not specified, the codec appropriate value is used. Supported H265 codec tags: - `hvc1` (default) - `hev1`
|
||||
#[serde(rename="codecTag")]
|
||||
|
||||
pub codec_tag: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for Fmp4Config {}
|
||||
|
||||
|
||||
/// H264 codec settings.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -575,7 +706,7 @@ pub struct H264CodecSettings {
|
||||
#[serde(rename="aqStrength")]
|
||||
|
||||
pub aq_strength: Option<f64>,
|
||||
/// The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
|
||||
/// The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than H264CodecSettings.gop_frame_count if set. The default is 0.
|
||||
#[serde(rename="bFrameCount")]
|
||||
|
||||
pub b_frame_count: Option<i32>,
|
||||
@@ -591,7 +722,7 @@ pub struct H264CodecSettings {
|
||||
#[serde(rename="crfLevel")]
|
||||
|
||||
pub crf_level: Option<i32>,
|
||||
/// Use two-pass encoding strategy to achieve better video quality. `VideoStream.rate_control_mode` must be `vbr`. The default is `false`.
|
||||
/// Use two-pass encoding strategy to achieve better video quality. H264CodecSettings.rate_control_mode must be `vbr`. The default is `false`.
|
||||
#[serde(rename="enableTwoPass")]
|
||||
|
||||
pub enable_two_pass: Option<bool>,
|
||||
@@ -599,10 +730,14 @@ pub struct H264CodecSettings {
|
||||
#[serde(rename="entropyCoder")]
|
||||
|
||||
pub entropy_coder: Option<String>,
|
||||
/// Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
|
||||
/// Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.
|
||||
#[serde(rename="frameRate")]
|
||||
|
||||
pub frame_rate: Option<f64>,
|
||||
/// Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`.
|
||||
#[serde(rename="frameRateConversionStrategy")]
|
||||
|
||||
pub frame_rate_conversion_strategy: Option<String>,
|
||||
/// Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
|
||||
#[serde(rename="gopDuration")]
|
||||
|
||||
@@ -616,6 +751,9 @@ pub struct H264CodecSettings {
|
||||
#[serde(rename="heightPixels")]
|
||||
|
||||
pub height_pixels: Option<i32>,
|
||||
/// Optional. HLG color format setting for H264.
|
||||
|
||||
pub hlg: Option<H264ColorFormatHLG>,
|
||||
/// Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format
|
||||
#[serde(rename="pixelFormat")]
|
||||
|
||||
@@ -626,18 +764,21 @@ pub struct H264CodecSettings {
|
||||
/// Enforces the specified codec profile. The following profiles are supported: * `baseline` * `main` * `high` (default) The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
|
||||
|
||||
pub profile: Option<String>,
|
||||
/// Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
|
||||
/// Specify the mode. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
|
||||
#[serde(rename="rateControlMode")]
|
||||
|
||||
pub rate_control_mode: Option<String>,
|
||||
/// Optional. SDR color format setting for H264.
|
||||
|
||||
pub sdr: Option<H264ColorFormatSDR>,
|
||||
/// Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.264#Tune). Note that certain values for this field may cause the transcoder to override other fields you set in the `H264CodecSettings` message.
|
||||
|
||||
pub tune: Option<String>,
|
||||
/// Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of `VideoStream.vbv_size_bits`.
|
||||
/// Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of H264CodecSettings.vbv_size_bits.
|
||||
#[serde(rename="vbvFullnessBits")]
|
||||
|
||||
pub vbv_fullness_bits: Option<i32>,
|
||||
/// Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to `VideoStream.bitrate_bps`.
|
||||
/// Size of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to H264CodecSettings.bitrate_bps.
|
||||
#[serde(rename="vbvSizeBits")]
|
||||
|
||||
pub vbv_size_bits: Option<i32>,
|
||||
@@ -650,6 +791,28 @@ pub struct H264CodecSettings {
|
||||
impl client::Part for H264CodecSettings {}
|
||||
|
||||
|
||||
/// Convert the input video to a Hybrid Log Gamma (HLG) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct H264ColorFormatHLG { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for H264ColorFormatHLG {}
|
||||
|
||||
|
||||
/// Convert the input video to a Standard Dynamic Range (SDR) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct H264ColorFormatSDR { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for H264ColorFormatSDR {}
|
||||
|
||||
|
||||
/// H265 codec settings.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -665,7 +828,7 @@ pub struct H265CodecSettings {
|
||||
#[serde(rename="aqStrength")]
|
||||
|
||||
pub aq_strength: Option<f64>,
|
||||
/// The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than `VideoStream.gop_frame_count` if set. The default is 0.
|
||||
/// The number of consecutive B-frames. Must be greater than or equal to zero. Must be less than H265CodecSettings.gop_frame_count if set. The default is 0.
|
||||
#[serde(rename="bFrameCount")]
|
||||
|
||||
pub b_frame_count: Option<i32>,
|
||||
@@ -681,14 +844,18 @@ pub struct H265CodecSettings {
|
||||
#[serde(rename="crfLevel")]
|
||||
|
||||
pub crf_level: Option<i32>,
|
||||
/// Use two-pass encoding strategy to achieve better video quality. `VideoStream.rate_control_mode` must be `vbr`. The default is `false`.
|
||||
/// Use two-pass encoding strategy to achieve better video quality. H265CodecSettings.rate_control_mode must be `vbr`. The default is `false`.
|
||||
#[serde(rename="enableTwoPass")]
|
||||
|
||||
pub enable_two_pass: Option<bool>,
|
||||
/// Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
|
||||
/// Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.
|
||||
#[serde(rename="frameRate")]
|
||||
|
||||
pub frame_rate: Option<f64>,
|
||||
/// Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`.
|
||||
#[serde(rename="frameRateConversionStrategy")]
|
||||
|
||||
pub frame_rate_conversion_strategy: Option<String>,
|
||||
/// Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
|
||||
#[serde(rename="gopDuration")]
|
||||
|
||||
@@ -698,10 +865,16 @@ pub struct H265CodecSettings {
|
||||
#[serde(rename="gopFrameCount")]
|
||||
|
||||
pub gop_frame_count: Option<i32>,
|
||||
/// Optional. HDR10 color format setting for H265.
|
||||
|
||||
pub hdr10: Option<H265ColorFormatHDR10>,
|
||||
/// The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the height, in pixels, per the horizontal ASR. The API calculates the width per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.
|
||||
#[serde(rename="heightPixels")]
|
||||
|
||||
pub height_pixels: Option<i32>,
|
||||
/// Optional. HLG color format setting for H265.
|
||||
|
||||
pub hlg: Option<H265ColorFormatHLG>,
|
||||
/// Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format
|
||||
#[serde(rename="pixelFormat")]
|
||||
|
||||
@@ -712,14 +885,17 @@ pub struct H265CodecSettings {
|
||||
/// Enforces the specified codec profile. The following profiles are supported: * 8-bit profiles * `main` (default) * `main-intra` * `mainstillpicture` * 10-bit profiles * `main10` (default) * `main10-intra` * `main422-10` * `main422-10-intra` * `main444-10` * `main444-10-intra` * 12-bit profiles * `main12` (default) * `main12-intra` * `main422-12` * `main422-12-intra` * `main444-12` * `main444-12-intra` The available options are [FFmpeg-compatible](https://x265.readthedocs.io/). Note that certain values for this field may cause the transcoder to override other fields you set in the `H265CodecSettings` message.
|
||||
|
||||
pub profile: Option<String>,
|
||||
/// Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
|
||||
/// Specify the mode. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate - `crf` - constant rate factor
|
||||
#[serde(rename="rateControlMode")]
|
||||
|
||||
pub rate_control_mode: Option<String>,
|
||||
/// Optional. SDR color format setting for H265.
|
||||
|
||||
pub sdr: Option<H265ColorFormatSDR>,
|
||||
/// Enforces the specified codec tune. The available options are [FFmpeg-compatible](https://trac.ffmpeg.org/wiki/Encode/H.265). Note that certain values for this field may cause the transcoder to override other fields you set in the `H265CodecSettings` message.
|
||||
|
||||
pub tune: Option<String>,
|
||||
/// Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of `VideoStream.vbv_size_bits`.
|
||||
/// Initial fullness of the Video Buffering Verifier (VBV) buffer in bits. Must be greater than zero. The default is equal to 90% of H265CodecSettings.vbv_size_bits.
|
||||
#[serde(rename="vbvFullnessBits")]
|
||||
|
||||
pub vbv_fullness_bits: Option<i32>,
|
||||
@@ -736,7 +912,40 @@ pub struct H265CodecSettings {
|
||||
impl client::Part for H265CodecSettings {}
|
||||
|
||||
|
||||
/// Overlaid jpeg image.
|
||||
/// Convert the input video to a High Dynamic Range 10 (HDR10) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct H265ColorFormatHDR10 { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for H265ColorFormatHDR10 {}
|
||||
|
||||
|
||||
/// Convert the input video to a Hybrid Log Gamma (HLG) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct H265ColorFormatHLG { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for H265ColorFormatHLG {}
|
||||
|
||||
|
||||
/// Convert the input video to a Standard Dynamic Range (SDR) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct H265ColorFormatSDR { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for H265ColorFormatSDR {}
|
||||
|
||||
|
||||
/// Overlaid image.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
@@ -749,7 +958,7 @@ pub struct Image {
|
||||
/// Normalized image resolution, based on output video resolution. Valid values: `0.0`–`1.0`. To respect the original image aspect ratio, set either `x` or `y` to `0.0`. To use the original image resolution, set both `x` and `y` to `0.0`.
|
||||
|
||||
pub resolution: Option<NormalizedCoordinate>,
|
||||
/// Required. URI of the JPEG image in Cloud Storage. For example, `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
|
||||
/// Required. URI of the image in Cloud Storage. For example, `gs://bucket/inputs/image.png`. Only PNG and JPEG images are supported.
|
||||
|
||||
pub uri: Option<String>,
|
||||
}
|
||||
@@ -771,7 +980,7 @@ pub struct Input {
|
||||
#[serde(rename="preprocessingConfig")]
|
||||
|
||||
pub preprocessing_config: Option<PreprocessingConfig>,
|
||||
/// URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). If empty, the value is populated from `Job.input_uri`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
||||
/// URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). If empty, the value is populated from Job.input_uri. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
||||
|
||||
pub uri: Option<String>,
|
||||
}
|
||||
@@ -791,6 +1000,10 @@ impl client::Part for Input {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Job {
|
||||
/// The processing priority of a batch job. This field can only be set for batch mode jobs. The default value is 0. This value cannot be negative. Higher values correspond to higher priorities for the job.
|
||||
#[serde(rename="batchModePriority")]
|
||||
|
||||
pub batch_mode_priority: Option<i32>,
|
||||
/// The configuration for this job.
|
||||
|
||||
pub config: Option<JobConfig>,
|
||||
@@ -802,7 +1015,7 @@ pub struct Job {
|
||||
#[serde(rename="endTime")]
|
||||
|
||||
pub end_time: Option<client::chrono::DateTime<client::chrono::offset::Utc>>,
|
||||
/// Output only. An error object that describes the reason for the failure. This property is always present when `state` is `FAILED`.
|
||||
/// Output only. An error object that describes the reason for the failure. This property is always present when ProcessingState is `FAILED`.
|
||||
|
||||
pub error: Option<Status>,
|
||||
/// Input only. Specify the `input_uri` to populate empty `uri` fields in each element of `Job.config.inputs` or `JobTemplate.config.inputs` when using template. URI of the media. Input files must be at least 5 seconds in duration and stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`). See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
||||
@@ -812,9 +1025,15 @@ pub struct Job {
|
||||
/// The labels associated with this job. You can use these to organize and group your jobs.
|
||||
|
||||
pub labels: Option<HashMap<String, String>>,
|
||||
/// The processing mode of the job. The default is `PROCESSING_MODE_INTERACTIVE`.
|
||||
|
||||
pub mode: Option<String>,
|
||||
/// The resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}`
|
||||
|
||||
pub name: Option<String>,
|
||||
/// Optional. The optimization strategy of the job. The default is `AUTODETECT`.
|
||||
|
||||
pub optimization: Option<String>,
|
||||
/// Input only. Specify the `output_uri` to populate an empty `Job.config.output.uri` or `JobTemplate.config.output.uri` when using template. URI for the output file(s). For example, `gs://my-bucket/outputs/`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
||||
#[serde(rename="outputUri")]
|
||||
|
||||
@@ -826,7 +1045,7 @@ pub struct Job {
|
||||
/// Output only. The current state of the job.
|
||||
|
||||
pub state: Option<String>,
|
||||
/// Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`. Preset Transcoder templates: - `preset/{preset_id}` - User defined JobTemplate: `{job_template_id}`
|
||||
/// Input only. Specify the `template_id` to use for populating `Job.config`. The default is `preset/web-hd`, which is the only supported preset. User defined JobTemplate: `{job_template_id}`
|
||||
#[serde(rename="templateId")]
|
||||
|
||||
pub template_id: Option<String>,
|
||||
@@ -851,7 +1070,7 @@ pub struct JobConfig {
|
||||
#[serde(rename="adBreaks")]
|
||||
|
||||
pub ad_breaks: Option<Vec<AdBreak>>,
|
||||
/// List of `Edit atom`s. Defines the ultimate timeline of the resulting file or manifest.
|
||||
/// List of edit atoms. Defines the ultimate timeline of the resulting file or manifest.
|
||||
#[serde(rename="editList")]
|
||||
|
||||
pub edit_list: Option<Vec<EditAtom>>,
|
||||
@@ -859,6 +1078,9 @@ pub struct JobConfig {
|
||||
#[serde(rename="elementaryStreams")]
|
||||
|
||||
pub elementary_streams: Option<Vec<ElementaryStream>>,
|
||||
/// List of encryption configurations for the content. Each configuration has an ID. Specify this ID in the MuxStream.encryption_id field to indicate the configuration to use for that `MuxStream` output.
|
||||
|
||||
pub encryptions: Option<Vec<Encryption>>,
|
||||
/// List of input assets stored in Cloud Storage.
|
||||
|
||||
pub inputs: Option<Vec<Input>>,
|
||||
@@ -975,15 +1197,18 @@ impl client::ResponseResult for ListJobsResponse {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Manifest {
|
||||
/// The name of the generated file. The default is `manifest` with the extension suffix corresponding to the `Manifest.type`.
|
||||
/// `DASH` manifest configuration.
|
||||
|
||||
pub dash: Option<DashConfig>,
|
||||
/// The name of the generated file. The default is `manifest` with the extension suffix corresponding to the Manifest.type.
|
||||
#[serde(rename="fileName")]
|
||||
|
||||
pub file_name: Option<String>,
|
||||
/// Required. List of user given `MuxStream.key`s that should appear in this manifest. When `Manifest.type` is `HLS`, a media manifest with name `MuxStream.key` and `.m3u8` extension is generated for each element of the `Manifest.mux_streams`.
|
||||
/// Required. List of user supplied MuxStream.key values that should appear in this manifest. When Manifest.type is `HLS`, a media manifest with name MuxStream.key and `.m3u8` extension is generated for each element in this list.
|
||||
#[serde(rename="muxStreams")]
|
||||
|
||||
pub mux_streams: Option<Vec<String>>,
|
||||
/// Required. Type of the manifest, can be `HLS` or `DASH`.
|
||||
/// Required. Type of the manifest.
|
||||
#[serde(rename="type")]
|
||||
|
||||
pub type_: Option<String>,
|
||||
@@ -992,6 +1217,21 @@ pub struct Manifest {
|
||||
impl client::Part for Manifest {}
|
||||
|
||||
|
||||
/// Configuration for MPEG Common Encryption (MPEG-CENC).
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct MpegCommonEncryption {
|
||||
/// Required. Specify the encryption scheme. Supported encryption schemes: - `cenc` - `cbcs`
|
||||
|
||||
pub scheme: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for MpegCommonEncryption {}
|
||||
|
||||
|
||||
/// Multiplexing settings for output stream.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -1002,15 +1242,22 @@ pub struct MuxStream {
|
||||
/// The container format. The default is `mp4` Supported container formats: - `ts` - `fmp4`- the corresponding file extension is `.m4s` - `mp4` - `vtt` See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)
|
||||
|
||||
pub container: Option<String>,
|
||||
/// List of `ElementaryStream.key`s multiplexed in this stream.
|
||||
/// List of ElementaryStream.key values multiplexed in this stream.
|
||||
#[serde(rename="elementaryStreams")]
|
||||
|
||||
pub elementary_streams: Option<Vec<String>>,
|
||||
/// The name of the generated file. The default is `MuxStream.key` with the extension suffix corresponding to the `MuxStream.container`. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`.
|
||||
/// Identifier of the encryption configuration to use. If omitted, output will be unencrypted.
|
||||
#[serde(rename="encryptionId")]
|
||||
|
||||
pub encryption_id: Option<String>,
|
||||
/// The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`.
|
||||
#[serde(rename="fileName")]
|
||||
|
||||
pub file_name: Option<String>,
|
||||
/// A unique key for this multiplexed stream. HLS media manifests will be named `MuxStream.key` with the `.m3u8` extension suffix.
|
||||
/// Optional. `fmp4` container configuration.
|
||||
|
||||
pub fmp4: Option<Fmp4Config>,
|
||||
/// A unique key for this multiplexed stream.
|
||||
|
||||
pub key: Option<String>,
|
||||
/// Segment settings for `ts`, `fmp4` and `vtt`.
|
||||
@@ -1047,7 +1294,7 @@ impl client::Part for NormalizedCoordinate {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Output {
|
||||
/// URI for the output file(s). For example, `gs://my-bucket/outputs/`. If empty, the value is populated from `Job.output_uri`. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
||||
/// URI for the output file(s). For example, `gs://my-bucket/outputs/`. If empty, the value is populated from Job.output_uri. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
|
||||
|
||||
pub uri: Option<String>,
|
||||
}
|
||||
@@ -1062,7 +1309,7 @@ impl client::Part for Output {}
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Overlay {
|
||||
/// List of Animations. The list should be chronological, without any time overlap.
|
||||
/// List of animations. The list should be chronological, without any time overlap.
|
||||
|
||||
pub animations: Option<Vec<Animation>>,
|
||||
/// Image overlay.
|
||||
@@ -1101,6 +1348,17 @@ pub struct Pad {
|
||||
impl client::Part for Pad {}
|
||||
|
||||
|
||||
/// Playready configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Playready { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Playready {}
|
||||
|
||||
|
||||
/// Preprocessing configurations.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -1149,6 +1407,33 @@ pub struct PubsubDestination {
|
||||
impl client::Part for PubsubDestination {}
|
||||
|
||||
|
||||
/// Configuration for SAMPLE-AES encryption.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct SampleAesEncryption { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for SampleAesEncryption {}
|
||||
|
||||
|
||||
/// Configuration for secrets stored in Google Secret Manager.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct SecretManagerSource {
|
||||
/// Required. The name of the Secret Version containing the encryption key in the following format: `projects/{project}/secrets/{secret_id}/versions/{version_number}` Note that only numbered versions are supported. Aliases like "latest" are not supported.
|
||||
#[serde(rename="secretVersion")]
|
||||
|
||||
pub secret_version: Option<String>,
|
||||
}
|
||||
|
||||
impl client::Part for SecretManagerSource {}
|
||||
|
||||
|
||||
/// Segment settings for `ts`, `fmp4` and `vtt`.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
@@ -1247,18 +1532,18 @@ pub struct Status {
|
||||
impl client::Part for Status {}
|
||||
|
||||
|
||||
/// The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
|
||||
/// The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct TextMapping {
|
||||
/// Required. The `EditAtom.key` that references atom with text inputs in the `Job.edit_list`.
|
||||
/// Required. The EditAtom.key that references atom with text inputs in the JobConfig.edit_list.
|
||||
#[serde(rename="atomKey")]
|
||||
|
||||
pub atom_key: Option<String>,
|
||||
/// Required. The `Input.key` that identifies the input file.
|
||||
/// Required. The Input.key that identifies the input file.
|
||||
#[serde(rename="inputKey")]
|
||||
|
||||
pub input_key: Option<String>,
|
||||
@@ -1281,7 +1566,15 @@ pub struct TextStream {
|
||||
/// The codec for this text stream. The default is `webvtt`. Supported text codecs: - `srt` - `ttml` - `cea608` - `cea708` - `webvtt`
|
||||
|
||||
pub codec: Option<String>,
|
||||
/// The mapping for the `Job.edit_list` atoms with text `EditAtom.inputs`.
|
||||
/// The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
|
||||
#[serde(rename="displayName")]
|
||||
|
||||
pub display_name: Option<String>,
|
||||
/// The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
|
||||
#[serde(rename="languageCode")]
|
||||
|
||||
pub language_code: Option<String>,
|
||||
/// The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
|
||||
|
||||
pub mapping: Option<Vec<TextMapping>>,
|
||||
}
|
||||
@@ -1325,10 +1618,14 @@ pub struct Vp9CodecSettings {
|
||||
#[serde(rename="crfLevel")]
|
||||
|
||||
pub crf_level: Option<i32>,
|
||||
/// Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
|
||||
/// Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120.
|
||||
#[serde(rename="frameRate")]
|
||||
|
||||
pub frame_rate: Option<f64>,
|
||||
/// Optional. Frame rate conversion strategy for desired frame rate. The default is `DOWNSAMPLE`.
|
||||
#[serde(rename="frameRateConversionStrategy")]
|
||||
|
||||
pub frame_rate_conversion_strategy: Option<String>,
|
||||
/// Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
|
||||
#[serde(rename="gopDuration")]
|
||||
|
||||
@@ -1342,6 +1639,9 @@ pub struct Vp9CodecSettings {
|
||||
#[serde(rename="heightPixels")]
|
||||
|
||||
pub height_pixels: Option<i32>,
|
||||
/// Optional. HLG color format setting for VP9.
|
||||
|
||||
pub hlg: Option<Vp9ColorFormatHLG>,
|
||||
/// Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format
|
||||
#[serde(rename="pixelFormat")]
|
||||
|
||||
@@ -1349,10 +1649,13 @@ pub struct Vp9CodecSettings {
|
||||
/// Enforces the specified codec profile. The following profiles are supported: * `profile0` (default) * `profile1` * `profile2` * `profile3` The available options are [WebM-compatible](https://www.webmproject.org/vp9/profiles/). Note that certain values for this field may cause the transcoder to override other fields you set in the `Vp9CodecSettings` message.
|
||||
|
||||
pub profile: Option<String>,
|
||||
/// Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate
|
||||
/// Specify the mode. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate
|
||||
#[serde(rename="rateControlMode")]
|
||||
|
||||
pub rate_control_mode: Option<String>,
|
||||
/// Optional. SDR color format setting for VP9.
|
||||
|
||||
pub sdr: Option<Vp9ColorFormatSDR>,
|
||||
/// The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used. For portrait videos that contain horizontal ASR and rotation metadata, provide the width, in pixels, per the horizontal ASR. The API calculates the height per the horizontal ASR. The API detects any rotation metadata and swaps the requested height and width for the output.
|
||||
#[serde(rename="widthPixels")]
|
||||
|
||||
@@ -1362,6 +1665,39 @@ pub struct Vp9CodecSettings {
|
||||
impl client::Part for Vp9CodecSettings {}
|
||||
|
||||
|
||||
/// Convert the input video to a Hybrid Log Gamma (HLG) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Vp9ColorFormatHLG { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Vp9ColorFormatHLG {}
|
||||
|
||||
|
||||
/// Convert the input video to a Standard Dynamic Range (SDR) video.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Vp9ColorFormatSDR { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Vp9ColorFormatSDR {}
|
||||
|
||||
|
||||
/// Widevine configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
///
|
||||
#[serde_with::serde_as(crate = "::client::serde_with")]
|
||||
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Widevine { _never_set: Option<bool> }
|
||||
|
||||
impl client::Part for Widevine {}
|
||||
|
||||
|
||||
/// Yet Another Deinterlacing Filter Configuration.
|
||||
///
|
||||
/// This type is not used in any activity, and only used as *part* of another schema.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This file was generated automatically from 'src/generator/templates/api/lib.rs.mako'
|
||||
// DO NOT EDIT !
|
||||
|
||||
//! This documentation was generated from *Transcoder* crate version *5.0.3+20230105*, where *20230105* is the exact revision of the *transcoder:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//! This documentation was generated from *Transcoder* crate version *5.0.3+20240221*, where *20240221* is the exact revision of the *transcoder:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v5.0.3*.
|
||||
//!
|
||||
//! Everything else about the *Transcoder* *v1* API can be found at the
|
||||
//! [official documentation site](https://cloud.google.com/transcoder/docs/).
|
||||
|
||||
Reference in New Issue
Block a user