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

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ progress_events array<Google\Cloud\Video\Stitcher\V1\ProgressEvent>

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

↳ ads array<Google\Cloud\Video\Stitcher\V1\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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setProgressEvents

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

Parameter
NameDescription
var array<Google\Cloud\Video\Stitcher\V1\ProgressEvent>
Returns
TypeDescription
$this

getAds

Ordered list of ads stitched into the ad break.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAds

Ordered list of ads stitched into the ad break.

Parameter
NameDescription
var array<Google\Cloud\Video\Stitcher\V1\VodSessionAd>
Returns
TypeDescription
$this

getEndTimeOffset

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

Returns
TypeDescription
Google\Protobuf\Duration|null

hasEndTimeOffset

clearEndTimeOffset

setEndTimeOffset

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

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getStartTimeOffset

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

Returns
TypeDescription
Google\Protobuf\Duration|null

hasStartTimeOffset

clearStartTimeOffset

setStartTimeOffset

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

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this