NAME
Google::Cloud::Video::Stitcher::V1::Sessions - Compiled Protocol Buffers messages for google/cloud/video/stitcher/v1/sessions.proto
SYNOPSIS
use Google::Cloud::Video::Stitcher::V1::Sessions;
my $msg = Google::Cloud::Video::Stitcher::V1::Sessions::VodSession->new({
name => $name,
interstitials => $interstitials,
play_uri => $play_uri,
source_uri => $source_uri,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Video::Stitcher::V1::Sessions::VodSession->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/video/stitcher/v1/sessions.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::Stitcher::V1::Sessions::VodSession
Metadata for a VOD session. The session expires 4 hours after its creation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The name of the VOD session, in the form of `projects/{project_number}/locations/{location}/vodSessions/{id}`.
$msg->interstitials()/$msg->interstitials($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::Interstitials)Output only. Metadata of what was stitched into the content.
$msg->play_uri()/$msg->play_uri($value)Type:
StringOutput only. The playback URI of the stitched content.
$msg->source_uri()/$msg->source_uri($value)Type:
StringURI of the media to stitch. For most use cases, you should create a [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information rather than setting this field directly.
$msg->ad_tag_uri()/$msg->ad_tag_uri($value)Type:
StringAd tag URI. For most use cases, you should create a [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information rather than setting this field directly.
$msg->ad_tag_macro_map()/$msg->ad_tag_macro_map($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::VodSession::AdTagMacroMapEntry)Key value pairs for ad tag macro replacement, only available for VOD sessions that do not implement Google Ad manager ad insertion. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI.
Macros are designated by square brackets, for example:
Ad tag URI: `"https://doubleclick.google.com/ad/1?geo_id=[geoId]"` Ad tag macro map: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`$msg->manifest_options()/$msg->manifest_options($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::ManifestOptions)Additional options that affect the output of the manifest.
$msg->asset_id()/$msg->asset_id($value)Type:
StringOutput only. The generated ID of the VodSession's source media.
$msg->ad_tracking()/$msg->ad_tracking($value)Type:
Enum(Google::Cloud::Video::Stitcher::V1::AdTracking)Required. Determines how the ad should be tracked.
$msg->gam_settings()/$msg->gam_settings($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::VodSession::GamSettings)This field should be set with appropriate values if GAM is being used for ads.
$msg->vod_config()/$msg->vod_config($value)Type:
StringThe resource name of the VOD config for this session, in the form of `projects/{project}/locations/{location}/vodConfigs/{id}`.
Google::Cloud::Video::Stitcher::V1::Sessions::Interstitials
Describes what was stitched into a VOD session's manifest.
Inherits from Protobuf::Message.
Accessors
$msg->ad_breaks()/$msg->ad_breaks($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionAdBreak)List of ad breaks ordered by time.
$msg->session_content()/$msg->session_content($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionContent)Information related to the content of the VOD session.
Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionAd
Metadata for an inserted ad in a VOD session.
Inherits from Protobuf::Message.
Accessors
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Duration in seconds of the ad.
$msg->companion_ads()/$msg->companion_ads($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Companions::CompanionAds)Metadata of companion ads associated with the ad.
$msg->activity_events()/$msg->activity_events($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Events::Event)The list of progress tracking events for the ad break. These can be of the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`, `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`, `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`, `CLOSE_LINEAR`, `SKIP`.
Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionContent
Metadata for the entire stitched content in a VOD session.
Inherits from Protobuf::Message.
Accessors
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)The total duration in seconds of the content including the ads stitched in.
Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionAdBreak
Metadata for an inserted ad break.
Inherits from Protobuf::Message.
Accessors
$msg->progress_events()/$msg->progress_events($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Events::ProgressEvent)List of events that are expected to be triggered, ordered by time.
$msg->ads()/$msg->ads($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionAd)Ordered list of ads stitched into the ad break.
$msg->end_time_offset()/$msg->end_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Ad break end time in seconds relative to the start of the VOD asset.
$msg->start_time_offset()/$msg->start_time_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Ad break start time in seconds relative to the start of the VOD asset.
Google::Cloud::Video::Stitcher::V1::Sessions::LiveSession
Metadata for a live session. The session expires 5 minutes after the client stops fetching the session's playlists.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The name of the live session, in the form of `projects/{project}/locations/{location}/liveSessions/{id}`.
$msg->play_uri()/$msg->play_uri($value)Type:
StringOutput only. The URI to play the live session's ad-stitched stream.
$msg->ad_tag_macros()/$msg->ad_tag_macros($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::LiveSession::AdTagMacrosEntry)Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI.
Macros are designated by square brackets, for example:
Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=[geoId]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"`$msg->manifest_options()/$msg->manifest_options($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::ManifestOptions)Additional options that affect the output of the manifest.
$msg->gam_settings()/$msg->gam_settings($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::LiveSession::GamSettings)This field should be set with appropriate values if GAM is being used for ads.
$msg->live_config()/$msg->live_config($value)Type:
StringRequired. The resource name of the live config for this session, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`.
$msg->ad_tracking()/$msg->ad_tracking($value)Type:
Enum(Google::Cloud::Video::Stitcher::V1::AdTracking)Determines how the ad should be tracked. This overrides the value set in the live config for this session.
Google::Cloud::Video::Stitcher::V1::Sessions::ManifestOptions
Options for manifest generation.
Inherits from Protobuf::Message.
Accessors
$msg->include_renditions()/$msg->include_renditions($value)Type:
Message(Google::Cloud::Video::Stitcher::V1::Sessions::RenditionFilter)If specified, the output manifest will only return renditions matching the specified filters.
$msg->bitrate_order()/$msg->bitrate_order($value)Type:
Enum(Google::Cloud::Video::Stitcher::V1::ManifestOptions::OrderPolicy)If specified, the output manifest will orders the video and muxed renditions by bitrate according to the ordering policy.
Enum: ManifestOptions::OrderPolicy
ORDER_POLICY_UNSPECIFIED=>0ASCENDING=>1DESCENDING=>2
Google::Cloud::Video::Stitcher::V1::Sessions::RenditionFilter
Filters for a video or muxed redition.
Inherits from Protobuf::Message.
Accessors
$msg->bitrate_bps()/$msg->bitrate_bps($value)Type:
Int32Bitrate in bits per second for the rendition. If set, only renditions with the exact bitrate will match.
$msg->codecs()/$msg->codecs($value)Type:
StringCodecs for the rendition. If set, only renditions with the exact value will match.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Video::Stitcher::V1::Sessions::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.