Google Cloud Datalabeling V1beta1 Client - Class VideoThumbnail (0.1.14)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class VideoThumbnail.

Container of information of a video thumbnail.

Generated from protobuf message google.cloud.datalabeling.v1beta1.VideoThumbnail

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ thumbnail string

A byte string of the video frame.

↳ time_offset Google\Protobuf\Duration

Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.

getThumbnail

A byte string of the video frame.

Returns
TypeDescription
string

setThumbnail

A byte string of the video frame.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTimeOffset

Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTimeOffset

clearTimeOffset

setTimeOffset

Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.

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