NAME

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

SYNOPSIS

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

my $msg = Google::Cloud::Video::Livestream::V1::Resources::Input->new({
    name => $name,
    create_time => $create_time,
    update_time => $update_time,
    labels => $labels,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/video/livestream/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::Livestream::V1::Resources::Input

Input resource represents the endpoint from which the channel ingests the input stream.

Inherits from Protobuf::Message.

Accessors

Enum: Input::Type

  • TYPE_UNSPECIFIED => 0

  • RTMP_PUSH => 1

  • SRT_PUSH => 2

Enum: Input::Tier

  • TIER_UNSPECIFIED => 0

  • SD => 1

  • HD => 2

  • UHD => 3

  • SD_H265 => 4

  • HD_H265 => 5

  • UHD_H265 => 6

Google::Cloud::Video::Livestream::V1::Resources::Channel

Channel resource represents the processor that does a user-defined "streaming" operation, which includes getting an input stream through an input, transcoding it to multiple renditions, and publishing output live streams in certain formats (for example, HLS or DASH) to the specified location.

Inherits from Protobuf::Message.

Accessors

Enum: Channel::StreamingState

  • STREAMING_STATE_UNSPECIFIED => 0

  • STREAMING => 1

  • AWAITING_INPUT => 2

  • STREAMING_ERROR => 4

  • STREAMING_NO_INPUT => 5

  • STOPPED => 6

  • STARTING => 7

  • STOPPING => 8

Google::Cloud::Video::Livestream::V1::Resources::NormalizedCoordinate

2D normalized coordinates.

Inherits from Protobuf::Message.

Accessors

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

    Type: Double

    Optional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.

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

    Type: Double

    Optional. Normalized y coordinate. Valid range is [0.0, 1.0]. Default is 0.

Google::Cloud::Video::Livestream::V1::Resources::NormalizedResolution

Normalized resolution.

Inherits from Protobuf::Message.

Accessors

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

    Type: Double

    Optional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.

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

    Type: Double

    Optional. Normalized height. Valid range is [0.0, 1.0]. Default is 0.

Google::Cloud::Video::Livestream::V1::Resources::StaticOverlay

Configuration for the static overlay.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Asset to use for the overlaid image. The asset must be represented in the form of: `projects/{project}/locations/{location}/assets/{assetId}`. The asset's resource type must be image.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::NormalizedResolution)

    Optional. Normalized image resolution, based on output video resolution. Valid values are [0.0, 1.0]. To respect the original image aspect ratio, set either `w` or `h` to 0. To use the original image resolution, set both `w` and `h` to 0. The default is {0, 0}.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::NormalizedCoordinate)

    Optional. Position of the image in terms of normalized coordinates of the upper-left corner of the image, based on output video resolution. For example, use the x and y coordinates {0, 0} to position the top-left corner of the overlay animation in the top-left corner of the output video.

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

    Type: Double

    Optional. Target image opacity. Valid values are from `1.0` (solid, default) to `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.

Google::Cloud::Video::Livestream::V1::Resources::InputConfig

Configuration for the input sources of a channel.

Inherits from Protobuf::Message.

Accessors

Enum: InputConfig::InputSwitchMode

  • INPUT_SWITCH_MODE_UNSPECIFIED => 0

  • FAILOVER_PREFER_PRIMARY => 1

  • MANUAL => 3

Google::Cloud::Video::Livestream::V1::Resources::LogConfig

Configuration of platform logs. See [Using and managing platform logs](https://cloud.google.com/logging/docs/api/platform-logs#managing-logs) for more information about how to view platform logs through Cloud Logging.

Inherits from Protobuf::Message.

Accessors

Enum: LogConfig::LogSeverity

  • LOG_SEVERITY_UNSPECIFIED => 0

  • OFF => 1

  • DEBUG => 100

  • INFO => 200

  • WARNING => 400

  • ERROR => 500

Google::Cloud::Video::Livestream::V1::Resources::RetentionConfig

Configuration for retention of output files.

Inherits from Protobuf::Message.

Accessors

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

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

    The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously.

    When the channel is deleted, all output files are deleted from the output bucket asynchronously.

    If omitted or set to zero, output files will remain in the output bucket based on [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration], which defaults to 60s.

    If both retention_window_duration and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] are set, retention_window_duration is used and [Manifest.segment_keep_duration][google.cloud.video.livestream.v1.Manifest.segment_keep_duration] is ignored.

Google::Cloud::Video::Livestream::V1::Resources::InputStreamProperty

Properties of the input stream.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Resources::VideoStreamProperty

Properties of the video stream.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Resources::VideoFormat

Properties of the video format.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Video codec used in this video stream.

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

    Type: Int32

    The width of the video stream in pixels.

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

    Type: Int32

    The height of the video stream in pixels.

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

    Type: Double

    The frame rate of the input video stream.

Google::Cloud::Video::Livestream::V1::Resources::AudioStreamProperty

Properties of the audio stream.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Resources::AudioFormat

Properties of the audio format.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Audio codec used in this audio stream.

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

    Type: Int32

    The number of audio channels.

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

    Type: String

    A list of channel names specifying the layout of the audio channels.

Google::Cloud::Video::Livestream::V1::Resources::InputAttachment

A group of information for attaching an input resource to this channel.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    A unique key for this input attachment. The key must be 1-63 characters in length. The key must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.

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

    Type: String

    The resource name of an existing input, in the form of: `projects/{project}/locations/{location}/inputs/{inputId}`.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::InputAttachment::AutomaticFailover)

    Automatic failover configurations.

Google::Cloud::Video::Livestream::V1::Resources::AutoTranscriptionConfig

Advanced configurations for auto-generated text streams.

Inherits from Protobuf::Message.

Accessors

Enum: AutoTranscriptionConfig::DisplayTiming

  • DISPLAY_TIMING_UNSPECIFIED => 0

  • ASYNC => 1

  • SYNC => 2

Enum: AutoTranscriptionConfig::QualityPreset

  • QUALITY_PRESET_UNSPECIFIED => 0

  • LOW_LATENCY => 1

  • BALANCED_QUALITY => 2

  • IMPROVED_QUALITY => 3

Google::Cloud::Video::Livestream::V1::Resources::Event

Event is a sub-resource of a channel, which can be scheduled by the user to execute operations on a channel resource without having to stop the channel.

Inherits from Protobuf::Message.

Accessors

Enum: Event::State

  • STATE_UNSPECIFIED => 0

  • SCHEDULED => 1

  • RUNNING => 2

  • SUCCEEDED => 3

  • FAILED => 4

  • PENDING => 5

  • STOPPED => 6

Google::Cloud::Video::Livestream::V1::Resources::Clip

Clip is a sub-resource under channel. Each clip represents a clipping operation that generates a VOD playlist from its channel given a set of timestamp ranges.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the clip, in the following format: `projects/{project}/locations/{location}/channels/{channelId}/clips/{clipId}`. `{clipId}` is a user-specified resource id that conforms to the following criteria:

    1. 1 character minimum, 63 characters maximum 2. Only contains letters, digits, underscores, and hyphens

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

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

    Output only. The creation timestamp of the clip resource.

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

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

    Output only. The timestamp when the clip request starts to be processed.

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

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

    Output only. The update timestamp of the clip resource.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::Clip::LabelsEntry)

    The labels associated with this resource. Each label is a key-value pair.

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

    Type: Enum (Google::Cloud::Video::Livestream::V1::Clip::State)

    Output only. The state of the clip.

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

    Type: String

    Specify the `output_uri` to determine where to place the clip segments and clip manifest files in Cloud Storage. The manifests specified in `clip_manifests` fields will be placed under this URI. The exact URI of the generated manifests will be provided in `clip_manifests.output_uri` for each manifest. Example: "output_uri": "gs://my-bucket/clip-outputs" "clip_manifests.output_uri": "gs://my-bucket/clip-outputs/main.m3u8"

  • $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 only presents when `state` is `FAILED`.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::Clip::Slice)

    The specified ranges of segments to generate a clip.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::Clip::ClipManifest)

    Required. A list of clip manifests. Currently only one clip manifest is allowed.

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

    Type: Enum (Google::Cloud::Video::Livestream::V1::Clip::OutputType)

    Optional. OutputType of the clip. If not specified, the default value is MANIFEST.

Enum: Clip::State

  • STATE_UNSPECIFIED => 0

  • PENDING => 1

  • CREATING => 2

  • SUCCEEDED => 3

  • FAILED => 4

Enum: Clip::OutputType

  • OUTPUT_TYPE_UNSPECIFIED => 0

  • MANIFEST => 1

  • MP4 => 2

Google::Cloud::Video::Livestream::V1::Resources::TimeInterval

TimeInterval represents a time interval.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Resources::DvrSession

DvrSession is a sub-resource under channel. Each DvrSession represents a DVR recording of the live stream for a specific time range.

Inherits from Protobuf::Message.

Accessors

Enum: DvrSession::State

  • STATE_UNSPECIFIED => 0

  • PENDING => 1

  • UPDATING => 2

  • SCHEDULED => 3

  • LIVE => 4

  • FINISHED => 5

  • FAILED => 6

  • DELETING => 7

  • POST_PROCESSING => 8

  • COOLDOWN => 9

  • STOPPING => 10

Google::Cloud::Video::Livestream::V1::Resources::Asset

An asset represents a video or an image.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The resource name of the asset, in the form of: `projects/{project}/locations/{location}/assets/{assetId}`.

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

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

    Output only. The creation time.

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

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

    Output only. The update time.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::Asset::LabelsEntry)

    User-defined key/value metadata.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::Asset::VideoAsset)

    VideoAsset represents a video.

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

    Type: Message (Google::Cloud::Video::Livestream::V1::Resources::Asset::ImageAsset)

    ImageAsset represents an image.

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

    Type: String

    Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the [Cloud Storage Objects resource](https://cloud.google.com/storage/docs/json_api/v1/objects). If crc32c is omitted or left empty when the asset is created, this field is filled by the crc32c checksum of the Cloud Storage object indicated by [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If crc32c is set, the asset can't be created if the crc32c value does not match with the crc32c checksum of the Cloud Storage object indicated by [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri].

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

    Type: Enum (Google::Cloud::Video::Livestream::V1::Asset::State)

    Output only. The state of the asset resource.

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

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

    Output only. Only present when `state` is `ERROR`. The reason for the error state of the asset.

Enum: Asset::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

  • ERROR => 4

Google::Cloud::Video::Livestream::V1::Resources::Encryption

Encryption settings.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Resources::EncryptionUpdate

Encryption setting when updating encryption.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Livestream::V1::Resources::Pool

Pool resource defines the configuration of Live Stream pools for a specific location. Currently we support only one pool resource per project per location. After the creation of the first input, a default pool is created automatically at "projects/{project}/locations/{location}/pools/default".

Inherits from Protobuf::Message.

Accessors

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.