Google Cloud Video Stitcher V1 Client - Class VodSessionAdBreak (1.0.1)

Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class VodSessionAdBreak.

Metadata for an inserted ad break.

Generated from protobuf message google.cloud.video.stitcher.v1.VodSessionAdBreak

Namespace

Google \ Cloud \ Video \ Stitcher \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ progress_events array<ProgressEvent>

List of events that are expected to be triggered, ordered by time.

↳ ads array<VodSessionAd>

Ordered list of ads stitched into the ad break.

↳ end_time_offset Google\Protobuf\Duration

Ad break end time in seconds relative to the start of the VOD asset.

↳ start_time_offset Google\Protobuf\Duration

Ad break start time in seconds relative to the start of the VOD asset.

getProgressEvents

List of events that are expected to be triggered, ordered by time.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setProgressEvents

List of events that are expected to be triggered, ordered by time.

Parameter
Name Description
var array<ProgressEvent>
Returns
Type Description
$this

getAds

Ordered list of ads stitched into the ad break.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAds

Ordered list of ads stitched into the ad break.

Parameter
Name Description
var array<VodSessionAd>
Returns
Type Description
$this

getEndTimeOffset

Ad break end time in seconds relative to the start of the VOD asset.

Returns
Type Description
Google\Protobuf\Duration|null

hasEndTimeOffset

clearEndTimeOffset

setEndTimeOffset

Ad break end time in seconds relative to the start of the VOD asset.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getStartTimeOffset

Ad break start time in seconds relative to the start of the VOD asset.

Returns
Type Description
Google\Protobuf\Duration|null

hasStartTimeOffset

clearStartTimeOffset

setStartTimeOffset

Ad break start time in seconds relative to the start of the VOD asset.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this