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: String

    Output 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: String

    Output only. The playback URI of the stitched content.

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

    Type: String

    URI 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: String

    Ad 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: String

    Output 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: String

    The 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

Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionAd

Metadata for an inserted ad in a VOD session.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionContent

Metadata for the entire stitched content in a VOD session.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Video::Stitcher::V1::Sessions::VodSessionAdBreak

Metadata for an inserted ad break.

Inherits from Protobuf::Message.

Accessors

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: String

    Output 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: String

    Output 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: String

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

Enum: ManifestOptions::OrderPolicy

  • ORDER_POLICY_UNSPECIFIED => 0

  • ASCENDING => 1

  • DESCENDING => 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: Int32

    Bitrate in bits per second for the rendition. If set, only renditions with the exact bitrate will match.

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

    Type: String

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