NAME

Google::Cloud::Video::Transcoder::V1::Resources - Compiled Protocol Buffers messages for google/cloud/video/transcoder/v1/resources.proto

SYNOPSIS

use Google::Cloud::Video::Transcoder::V1::Resources;

my $msg = Google::Cloud::Video::Transcoder::V1::Resources::Job->new({
    name => $name,
    input_uri => $input_uri,
    output_uri => $output_uri,
    template_id => $template_id,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Video::Transcoder::V1::Resources::Job->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/video/transcoder/v1/resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Video::Transcoder::V1::Resources::Job

Transcoding job resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The resource name of the job. Format: `projects/{project_number}/locations/{location}/jobs/{job}`

  • $msg->input_uri() / $msg->input_uri($value)

    Type: String

    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).

  • $msg->output_uri() / $msg->output_uri($value)

    Type: 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).

  • $msg->template_id() / $msg->template_id($value)

    Type: String

    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}`

  • $msg->config() / $msg->config($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::JobConfig)

    The configuration for this job.

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Video::Transcoder::V1::Job::ProcessingState)

    Output only. The current state of the job.

  • $msg->create_time() / $msg->create_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the job was created.

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the transcoding started.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time the transcoding finished.

  • $msg->ttl_after_completion_days() / $msg->ttl_after_completion_days($value)

    Type: Int32

    Job time to live value in days, which will be effective after job completion. Job should be deleted automatically after the given TTL. Enter a value between 1 and 90. The default is 30.

  • $msg->labels() / $msg->labels($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::Job::LabelsEntry)

    The labels associated with this job. You can use these to organize and group your jobs.

  • $msg->error() / $msg->error($value)

    Type: Message (Google::Rpc::Status::Status)

    Output only. An error object that describes the reason for the failure. This property is always present when [ProcessingState][google.cloud.video.transcoder.v1.Job.ProcessingState] is `FAILED`.

  • $msg->mode() / $msg->mode($value)

    Type: Enum (Google::Cloud::Video::Transcoder::V1::Job::ProcessingMode)

    The processing mode of the job. The default is `PROCESSING_MODE_INTERACTIVE`.

  • $msg->batch_mode_priority() / $msg->batch_mode_priority($value)

    Type: Int32

    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.

  • $msg->optimization() / $msg->optimization($value)

    Type: Enum (Google::Cloud::Video::Transcoder::V1::Job::OptimizationStrategy)

    Optional. The optimization strategy of the job. The default is `AUTODETECT`.

  • $msg->fill_content_gaps() / $msg->fill_content_gaps($value)

    Type: Bool

    Optional. Insert silence and duplicate frames when timestamp gaps are detected in a given stream.

Enum: Job::ProcessingState

  • PROCESSING_STATE_UNSPECIFIED => 0

  • PENDING => 1

  • RUNNING => 2

  • SUCCEEDED => 3

  • FAILED => 4

Enum: Job::ProcessingMode

  • PROCESSING_MODE_UNSPECIFIED => 0

  • PROCESSING_MODE_INTERACTIVE => 1

  • PROCESSING_MODE_BATCH => 2

Enum: Job::OptimizationStrategy

  • OPTIMIZATION_STRATEGY_UNSPECIFIED => 0

  • AUTODETECT => 1

  • DISABLED => 2

Google::Cloud::Video::Transcoder::V1::Resources::JobTemplate

Transcoding job template resource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Transcoder::V1::Resources::JobConfig

Job configuration

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Transcoder::V1::Resources::Input

Input asset.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    A unique key for this input. Must be specified when using advanced mapping and edit lists.

  • $msg->uri() / $msg->uri($value)

    Type: String

    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][google.cloud.video.transcoder.v1.Job.input_uri]. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).

  • $msg->preprocessing_config() / $msg->preprocessing_config($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig)

    Preprocessing configurations.

  • $msg->attributes() / $msg->attributes($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::InputAttributes)

    Optional. Input Attributes.

Google::Cloud::Video::Transcoder::V1::Resources::Output

Location of output file(s) in a Cloud Storage bucket.

Inherits from Protobuf::Message.

Accessors

  • $msg->uri() / $msg->uri($value)

    Type: String

    URI for the output file(s). For example, `gs://my-bucket/outputs/`. Must be a directory and not a top-level bucket. If empty, the value is populated from [Job.output_uri][google.cloud.video.transcoder.v1.Job.output_uri]. See [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).

Google::Cloud::Video::Transcoder::V1::Resources::EditAtom

Edit atom.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    A unique key for this atom. Must be specified when using advanced mapping.

  • $msg->inputs() / $msg->inputs($value)

    Type: String

    List of [Input.key][google.cloud.video.transcoder.v1.Input.key] values identifying files that should be used in this atom. The listed `inputs` must have the same timeline.

  • $msg->end_time_offset() / $msg->end_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    End time in seconds for the atom, relative to the input file timeline. When `end_time_offset` is not specified, the `inputs` are used until the end of the atom.

  • $msg->start_time_offset() / $msg->start_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Start time in seconds for the atom, relative to the input file timeline. The default is `0s`.

Google::Cloud::Video::Transcoder::V1::Resources::AdBreak

Ad break.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time_offset() / $msg->start_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Start time in seconds for the ad break, relative to the output file timeline. The default is `0s`.

Google::Cloud::Video::Transcoder::V1::Resources::ElementaryStream

Encoding of an input file such as an audio, video, or text track. Elementary streams must be packaged before mapping and sharing between different output formats.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Transcoder::V1::Resources::MuxStream

Multiplexing settings for output stream.

Inherits from Protobuf::Message.

Accessors

  • $msg->key() / $msg->key($value)

    Type: String

    A unique key for this multiplexed stream.

  • $msg->file_name() / $msg->file_name($value)

    Type: String

    The name of the generated file. The default is [MuxStream.key][google.cloud.video.transcoder.v1.MuxStream.key] with the extension suffix corresponding to the [MuxStream.container][google.cloud.video.transcoder.v1.MuxStream.container].

    Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `mux_stream0000000123.ts`.

  • $msg->container() / $msg->container($value)

    Type: String

    The container format. The default is `mp4`

    Supported streaming formats:

    - `ts` - `fmp4`- the corresponding file extension is `.m4s`

    Supported standalone file formats:

    - `mp4` - `mp3` - `ogg` - `vtt`

    See also: [Supported input and output formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats)

  • $msg->elementary_streams() / $msg->elementary_streams($value)

    Type: String

    List of [ElementaryStream.key][google.cloud.video.transcoder.v1.ElementaryStream.key] values multiplexed in this stream.

  • $msg->segment_settings() / $msg->segment_settings($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::SegmentSettings)

    Segment settings for `ts`, `fmp4` and `vtt`.

  • $msg->encryption_id() / $msg->encryption_id($value)

    Type: String

    Identifier of the encryption configuration to use. If omitted, output will be unencrypted.

  • $msg->fmp4() / $msg->fmp4($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::MuxStream::Fmp4Config)

    Optional. `fmp4` container configuration.

Google::Cloud::Video::Transcoder::V1::Resources::Manifest

Manifest configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->file_name() / $msg->file_name($value)

    Type: String

    The name of the generated file. The default is `manifest` with the extension suffix corresponding to the [Manifest.type][google.cloud.video.transcoder.v1.Manifest.type].

  • $msg->type() / $msg->type($value)

    Type: Enum (Google::Cloud::Video::Transcoder::V1::Manifest::ManifestType)

    Required. Type of the manifest.

  • $msg->mux_streams() / $msg->mux_streams($value)

    Type: String

    Required. List of user supplied [MuxStream.key][google.cloud.video.transcoder.v1.MuxStream.key] values that should appear in this manifest.

    When [Manifest.type][google.cloud.video.transcoder.v1.Manifest.type] is `HLS`, a media manifest with name [MuxStream.key][google.cloud.video.transcoder.v1.MuxStream.key] and `.m3u8` extension is generated for each element in this list.

  • $msg->dash() / $msg->dash($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::Manifest::DashConfig)

    `DASH` manifest configuration.

Enum: Manifest::ManifestType

  • MANIFEST_TYPE_UNSPECIFIED => 0

  • HLS => 1

  • DASH => 2

Google::Cloud::Video::Transcoder::V1::Resources::PubsubDestination

A Pub/Sub destination.

Inherits from Protobuf::Message.

Accessors

  • $msg->topic() / $msg->topic($value)

    Type: String

    The name of the Pub/Sub topic to publish job completion notification to. For example: `projects/{project}/topics/{topic}`.

Google::Cloud::Video::Transcoder::V1::Resources::SpriteSheet

Sprite sheet configuration.

Inherits from Protobuf::Message.

Accessors

  • $msg->format() / $msg->format($value)

    Type: String

    Format type. The default is `jpeg`.

    Supported formats:

    - `jpeg`

  • $msg->file_prefix() / $msg->file_prefix($value)

    Type: String

    Required. File name prefix for the generated sprite sheets.

    Each sprite sheet has an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as `sprite_sheet0000000123.jpeg`.

  • $msg->sprite_width_pixels() / $msg->sprite_width_pixels($value)

    Type: Int32

    Required. The width of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field or the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field, but not both (the API will automatically calculate the missing field).

    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.

  • $msg->sprite_height_pixels() / $msg->sprite_height_pixels($value)

    Type: Int32

    Required. The height of sprite in pixels. Must be an even integer. To preserve the source aspect ratio, set the [SpriteSheet.sprite_height_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_height_pixels] field or the [SpriteSheet.sprite_width_pixels][google.cloud.video.transcoder.v1.SpriteSheet.sprite_width_pixels] field, but not both (the API will automatically calculate the missing field).

    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.

  • $msg->column_count() / $msg->column_count($value)

    Type: Int32

    The maximum number of sprites per row in a sprite sheet. The default is 0, which indicates no maximum limit.

  • $msg->row_count() / $msg->row_count($value)

    Type: Int32

    The maximum number of rows per sprite sheet. When the sprite sheet is full, a new sprite sheet is created. The default is 0, which indicates no maximum limit.

  • $msg->start_time_offset() / $msg->start_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Start time in seconds, relative to the output file timeline. Determines the first sprite to pick. The default is `0s`.

  • $msg->end_time_offset() / $msg->end_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    End time in seconds, relative to the output file timeline. When `end_time_offset` is not specified, the sprites are generated until the end of the output file.

  • $msg->total_count() / $msg->total_count($value)

    Type: Int32

    Total number of sprites. Create the specified number of sprites distributed evenly across the timeline of the output media. The default is 100.

  • $msg->interval() / $msg->interval($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Starting from `0s`, create sprites at regular intervals. Specify the interval value in seconds.

  • $msg->quality() / $msg->quality($value)

    Type: Int32

    The quality of the generated sprite sheet. Enter a value between 1 and 100, where 1 is the lowest quality and 100 is the highest quality. The default is 100. A high quality value corresponds to a low image data compression ratio.

Google::Cloud::Video::Transcoder::V1::Resources::Overlay

Overlay configuration.

Inherits from Protobuf::Message.

Accessors

Enum: Overlay::FadeType

  • FADE_TYPE_UNSPECIFIED => 0

  • FADE_IN => 1

  • FADE_OUT => 2

Google::Cloud::Video::Transcoder::V1::Resources::PreprocessingConfig

Preprocessing configurations.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Transcoder::V1::Resources::TrackDefinition

Track definition for the input asset.

Inherits from Protobuf::Message.

Accessors

  • $msg->input_track() / $msg->input_track($value)

    Type: Int32

    The input track.

  • $msg->languages() / $msg->languages($value)

    Type: String

    Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

  • $msg->detect_languages() / $msg->detect_languages($value)

    Type: Bool

    Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.

  • $msg->detected_languages() / $msg->detected_languages($value)

    Type: String

    Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as "en-US" or "sr-Latn". For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.

Google::Cloud::Video::Transcoder::V1::Resources::InputAttributes

Input attributes that provide additional information about the input asset.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Transcoder::V1::Resources::VideoStream

Video stream resource.

Inherits from Protobuf::Message.

Accessors

Enum: VideoStream::FrameRateConversionStrategy

  • FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED => 0

  • DOWNSAMPLE => 1

  • DROP_DUPLICATE => 2

Google::Cloud::Video::Transcoder::V1::Resources::AudioStream

Audio stream resource.

Inherits from Protobuf::Message.

Accessors

  • $msg->codec() / $msg->codec($value)

    Type: String

    The codec for this audio stream. The default is `aac`.

    Supported audio codecs:

    - `aac` - `aac-he` - `aac-he-v2` - `mp3` - `ac3` - `eac3` - `vorbis`

  • $msg->bitrate_bps() / $msg->bitrate_bps($value)

    Type: Int32

    Required. Audio bitrate in bits per second. Must be between 1 and 10,000,000.

  • $msg->channel_count() / $msg->channel_count($value)

    Type: Int32

    Number of audio channels. Must be between 1 and 6. The default is 2.

  • $msg->channel_layout() / $msg->channel_layout($value)

    Type: String

    A list of channel names specifying layout of the audio channels. This only affects the metadata embedded in the container headers, if supported by the specified format. The default is `["fl", "fr"]`.

    Supported channel names:

    - `fl` - Front left channel - `fr` - Front right channel - `sl` - Side left channel - `sr` - Side right channel - `fc` - Front center channel - `lfe` - Low frequency

  • $msg->mapping() / $msg->mapping($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::AudioStream::AudioMapping)

    The mapping for the [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list] atoms with audio [EditAtom.inputs][google.cloud.video.transcoder.v1.EditAtom.inputs].

  • $msg->sample_rate_hertz() / $msg->sample_rate_hertz($value)

    Type: Int32

    The audio sample rate in Hertz. The default is 48000 Hertz.

  • $msg->language_code() / $msg->language_code($value)

    Type: 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.

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    The name for this particular audio stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

Google::Cloud::Video::Transcoder::V1::Resources::TextStream

Encoding of a text stream. For example, closed captions or subtitles.

Inherits from Protobuf::Message.

Accessors

  • $msg->codec() / $msg->codec($value)

    Type: String

    The codec for this text stream. The default is `webvtt`.

    Supported text codecs:

    - `srt` - `ttml` - `cea608` - `cea708` - `webvtt`

  • $msg->language_code() / $msg->language_code($value)

    Type: 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.

  • $msg->mapping() / $msg->mapping($value)

    Type: Message (Google::Cloud::Video::Transcoder::V1::Resources::TextStream::TextMapping)

    The mapping for the [JobConfig.edit_list][google.cloud.video.transcoder.v1.JobConfig.edit_list] atoms with text [EditAtom.inputs][google.cloud.video.transcoder.v1.EditAtom.inputs].

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.

Google::Cloud::Video::Transcoder::V1::Resources::SegmentSettings

Segment settings for `ts`, `fmp4` and `vtt`.

Inherits from Protobuf::Message.

Accessors

  • $msg->segment_duration() / $msg->segment_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Duration of the segments in seconds. The default is `6.0s`. Note that `segmentDuration` must be greater than or equal to [`gopDuration`](#videostream), and `segmentDuration` must be divisible by [`gopDuration`](#videostream).

  • $msg->individual_segments() / $msg->individual_segments($value)

    Type: Bool

    Required. Create an individual segment file. The default is `false`.

Google::Cloud::Video::Transcoder::V1::Resources::Encryption

Encryption settings.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Video::Transcoder::V1::Resources::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.