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
$msg->name()/$msg->name($value)Type:
StringThe resource name of the input, in the form of: `projects/{project}/locations/{location}/inputs/{inputId}`.
$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::Input::LabelsEntry)User-defined key/value metadata.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::Input::Type)Source type.
$msg->tier()/$msg->tier($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::Input::Tier)Tier defines the maximum input specification that is accepted by the video pipeline. The billing is charged based on the tier specified here. See [Pricing](https://cloud.google.com/livestream/pricing) for more detail. The default is `HD`.
$msg->uri()/$msg->uri($value)Type:
StringOutput only. URI to push the input stream to. Its format depends on the input [type][google.cloud.video.livestream.v1.Input.type], for example:
* `RTMP_PUSH`: `rtmp://1.2.3.4/live/{STREAM-ID}` * `SRT_PUSH`: `srt://1.2.3.4:4201?streamid={STREAM-ID}`
$msg->preprocessing_config()/$msg->preprocessing_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::PreprocessingConfig)Preprocessing configurations.
$msg->security_rules()/$msg->security_rules($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Input::SecurityRule)Security rule for access control.
$msg->input_stream_property()/$msg->input_stream_property($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::InputStreamProperty)Output only. The information for the input stream. This field will be present only when this input receives the input stream.
Enum: Input::Type
TYPE_UNSPECIFIED=>0RTMP_PUSH=>1SRT_PUSH=>2
Enum: Input::Tier
TIER_UNSPECIFIED=>0SD=>1HD=>2UHD=>3SD_H265=>4HD_H265=>5UHD_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
$msg->name()/$msg->name($value)Type:
StringThe resource name of the channel, in the form of: `projects/{project}/locations/{location}/channels/{channelId}`.
$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::Channel::LabelsEntry)User-defined key/value metadata.
$msg->input_attachments()/$msg->input_attachments($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::InputAttachment)A list of input attachments that this channel uses. One channel can have multiple inputs as the input sources. Only one input can be selected as the input source at one time.
$msg->active_input()/$msg->active_input($value)Type:
StringOutput only. The [InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key] that serves as the current input source. The first input in the [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments] is the initial input source.
$msg->output()/$msg->output($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Channel::Output)Required. Information about the output (that is, the Cloud Storage bucket to store the generated live stream).
$msg->elementary_streams()/$msg->elementary_streams($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::ElementaryStream)List of elementary streams.
$msg->mux_streams()/$msg->mux_streams($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::MuxStream)List of multiplexing settings for output streams.
$msg->manifests()/$msg->manifests($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::Manifest)List of output manifests.
$msg->distribution_streams()/$msg->distribution_streams($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::DistributionStream)Optional. List of multiplexing settings of streams for distributions.
$msg->distributions()/$msg->distributions($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::Distribution)Optional. List of distributions.
$msg->sprite_sheets()/$msg->sprite_sheets($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::SpriteSheet)List of output sprite sheets.
$msg->streaming_state()/$msg->streaming_state($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::Channel::StreamingState)Output only. State of the streaming operation.
$msg->streaming_error()/$msg->streaming_error($value)Type:
Message(Google::Rpc::Status::Status)Output only. A description of the reason for the streaming error. This property is always present when [streaming_state][google.cloud.video.livestream.v1.Channel.streaming_state] is [STREAMING_ERROR][google.cloud.video.livestream.v1.Channel.StreamingState.STREAMING_ERROR].
$msg->log_config()/$msg->log_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::LogConfig)Configuration of platform logs for this channel.
$msg->timecode_config()/$msg->timecode_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Outputs::TimecodeConfig)Configuration of timecode for this channel.
$msg->encryptions()/$msg->encryptions($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption)Optional. Encryption configurations for this channel. Each configuration has an ID which is referred to by each MuxStream to indicate which configuration is used for that output.
$msg->input_config()/$msg->input_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::InputConfig)The configuration for input sources defined in [input_attachments][google.cloud.video.livestream.v1.Channel.input_attachments].
$msg->retention_config()/$msg->retention_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::RetentionConfig)Optional. Configuration for retention of output files for this channel.
$msg->static_overlays()/$msg->static_overlays($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::StaticOverlay)Optional. List of static overlay images. Those images display over the output content for the whole duration of the live stream.
$msg->auto_transcription_config()/$msg->auto_transcription_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::AutoTranscriptionConfig)Optional. Advanced configurations for auto-generated text streams.
Enum: Channel::StreamingState
STREAMING_STATE_UNSPECIFIED=>0STREAMING=>1AWAITING_INPUT=>2STREAMING_ERROR=>4STREAMING_NO_INPUT=>5STOPPED=>6STARTING=>7STOPPING=>8
Google::Cloud::Video::Livestream::V1::Resources::NormalizedCoordinate
2D normalized coordinates.
Inherits from Protobuf::Message.
Accessors
$msg->x()/$msg->x($value)Type:
DoubleOptional. Normalized x coordinate. Valid range is [0.0, 1.0]. Default is 0.
$msg->y()/$msg->y($value)Type:
DoubleOptional. 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:
DoubleOptional. Normalized width. Valid range is [0.0, 1.0]. Default is 0.
$msg->h()/$msg->h($value)Type:
DoubleOptional. 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:
StringRequired. 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:
DoubleOptional. 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
$msg->input_switch_mode()/$msg->input_switch_mode($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::InputConfig::InputSwitchMode)Input switch mode. Default mode is `FAILOVER_PREFER_PRIMARY`.
Enum: InputConfig::InputSwitchMode
INPUT_SWITCH_MODE_UNSPECIFIED=>0FAILOVER_PREFER_PRIMARY=>1MANUAL=>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
$msg->log_severity()/$msg->log_severity($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::LogConfig::LogSeverity)The severity level of platform logging for this resource.
Enum: LogConfig::LogSeverity
LOG_SEVERITY_UNSPECIFIED=>0OFF=>1DEBUG=>100INFO=>200WARNING=>400ERROR=>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
$msg->last_establish_time()/$msg->last_establish_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time that the current input stream is accepted and the connection is established.
$msg->video_streams()/$msg->video_streams($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::VideoStreamProperty)Properties of the video streams.
$msg->audio_streams()/$msg->audio_streams($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::AudioStreamProperty)Properties of the audio streams.
Google::Cloud::Video::Livestream::V1::Resources::VideoStreamProperty
Properties of the video stream.
Inherits from Protobuf::Message.
Accessors
$msg->index()/$msg->index($value)Type:
Int32Index of this video stream.
$msg->video_format()/$msg->video_format($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::VideoFormat)Properties of the video format.
Google::Cloud::Video::Livestream::V1::Resources::VideoFormat
Properties of the video format.
Inherits from Protobuf::Message.
Accessors
$msg->codec()/$msg->codec($value)Type:
StringVideo codec used in this video stream.
$msg->width_pixels()/$msg->width_pixels($value)Type:
Int32The width of the video stream in pixels.
$msg->height_pixels()/$msg->height_pixels($value)Type:
Int32The height of the video stream in pixels.
$msg->frame_rate()/$msg->frame_rate($value)Type:
DoubleThe frame rate of the input video stream.
Google::Cloud::Video::Livestream::V1::Resources::AudioStreamProperty
Properties of the audio stream.
Inherits from Protobuf::Message.
Accessors
$msg->index()/$msg->index($value)Type:
Int32Index of this audio stream.
$msg->audio_format()/$msg->audio_format($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::AudioFormat)Properties of the audio format.
Google::Cloud::Video::Livestream::V1::Resources::AudioFormat
Properties of the audio format.
Inherits from Protobuf::Message.
Accessors
$msg->codec()/$msg->codec($value)Type:
StringAudio codec used in this audio stream.
$msg->channel_count()/$msg->channel_count($value)Type:
Int32The number of audio channels.
$msg->channel_layout()/$msg->channel_layout($value)Type:
StringA 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:
StringA 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:
StringThe 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
$msg->display_timing()/$msg->display_timing($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::AutoTranscriptionConfig::DisplayTiming)Optional. Whether auto-generated text streams are displayed synchronously or asynchronously with the original audio.
$msg->quality_preset()/$msg->quality_preset($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::AutoTranscriptionConfig::QualityPreset)Optional. Tunes the latency and quality of auto-generated captions.
Enum: AutoTranscriptionConfig::DisplayTiming
DISPLAY_TIMING_UNSPECIFIED=>0ASYNC=>1SYNC=>2
Enum: AutoTranscriptionConfig::QualityPreset
QUALITY_PRESET_UNSPECIFIED=>0LOW_LATENCY=>1BALANCED_QUALITY=>2IMPROVED_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
$msg->name()/$msg->name($value)Type:
StringThe resource name of the event, in the form of: `projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}`.
$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::Event::LabelsEntry)User-defined key/value metadata.
$msg->input_switch()/$msg->input_switch($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::InputSwitchTask)Switches to another input stream.
$msg->ad_break()/$msg->ad_break($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::AdBreakTask)Inserts a new ad opportunity.
$msg->return_to_program()/$msg->return_to_program($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::ReturnToProgramTask)Stops any running ad break.
$msg->slate()/$msg->slate($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::SlateTask)Inserts a slate.
$msg->mute()/$msg->mute($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::MuteTask)Mutes the stream.
$msg->unmute()/$msg->unmute($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::UnmuteTask)Unmutes the stream.
$msg->update_encryptions()/$msg->update_encryptions($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Event::UpdateEncryptionsTask)Updates encryption settings.
$msg->execute_now()/$msg->execute_now($value)Type:
BoolWhen this field is set to true, the event will be executed at the earliest time that the server can schedule the event and [execution_time][google.cloud.video.livestream.v1.Event.execution_time] will be populated with the time that the server actually schedules the event.
$msg->execution_time()/$msg->execution_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time to execute the event. If you set [execute_now][google.cloud.video.livestream.v1.Event.execute_now] to `true`, then do not set this field in the `CreateEvent` request. In this case, the server schedules the event and populates this field. If you set [execute_now][google.cloud.video.livestream.v1.Event.execute_now] to `false`, then you must set this field to at least 10 seconds in the future or else the event can't be created.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::Event::State)Output only. The state of the event.
$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 `state` is `FAILED`.
Enum: Event::State
STATE_UNSPECIFIED=>0SCHEDULED=>1RUNNING=>2SUCCEEDED=>3FAILED=>4PENDING=>5STOPPED=>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:
StringThe 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:
StringSpecify 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=>0PENDING=>1CREATING=>2SUCCEEDED=>3FAILED=>4
Enum: Clip::OutputType
OUTPUT_TYPE_UNSPECIFIED=>0MANIFEST=>1MP4=>2
Google::Cloud::Video::Livestream::V1::Resources::TimeInterval
TimeInterval represents a time interval.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. The start time of the interval.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. The end time of the interval.
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
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the DVR session, in the following format: `projects/{project}/locations/{location}/channels/{channelId}/dvrSessions/{dvrSessionId}`. `{dvrSessionId}` 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 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::DvrSession::LabelsEntry)Optional. User-defined key/value metadata.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Video::Livestream::V1::DvrSession::State)Output only. The state of the clip.
$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->dvr_manifests()/$msg->dvr_manifests($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::DvrSession::DvrManifest)Required. A list of DVR manifests. Currently only one DVR manifest is allowed.
$msg->dvr_windows()/$msg->dvr_windows($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::DvrSession::DvrWindow)Required. The specified ranges of segments to generate a DVR recording.
Enum: DvrSession::State
STATE_UNSPECIFIED=>0PENDING=>1UPDATING=>2SCHEDULED=>3LIVE=>4FINISHED=>5FAILED=>6DELETING=>7POST_PROCESSING=>8COOLDOWN=>9STOPPING=>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:
StringThe 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:
StringBased64-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=>0CREATING=>1ACTIVE=>2DELETING=>3ERROR=>4
Google::Cloud::Video::Livestream::V1::Resources::Encryption
Encryption settings.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringRequired. Identifier for this set of encryption options. The ID must be 1-63 characters in length. The ID must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.
$msg->secret_manager_key_source()/$msg->secret_manager_key_source($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption::SecretManagerSource)For keys stored in Google Secret Manager.
$msg->drm_systems()/$msg->drm_systems($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption::DrmSystems)Required. Configuration for DRM systems.
$msg->aes128()/$msg->aes128($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption::Aes128Encryption)Configuration for HLS AES-128 encryption.
$msg->sample_aes()/$msg->sample_aes($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption::SampleAesEncryption)Configuration for HLS SAMPLE-AES encryption.
$msg->mpeg_cenc()/$msg->mpeg_cenc($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption::MpegCommonEncryption)Configuration for MPEG-Dash Common Encryption (MPEG-CENC).
Google::Cloud::Video::Livestream::V1::Resources::EncryptionUpdate
Encryption setting when updating encryption.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringRequired. Identifier for the encryption option to be updated.
$msg->secret_manager_key_source()/$msg->secret_manager_key_source($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Encryption::SecretManagerSource)For keys stored in Google Secret Manager.
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
$msg->name()/$msg->name($value)Type:
StringThe resource name of the pool, in the form of: `projects/{project}/locations/{location}/pools/{poolId}`.
$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::Pool::LabelsEntry)User-defined key/value metadata.
$msg->network_config()/$msg->network_config($value)Type:
Message(Google::Cloud::Video::Livestream::V1::Resources::Pool::NetworkConfig)Network configuration for the pool.
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.