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
Namespace
Google \ Cloud \ DataLabeling \ V1beta1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
string |
setThumbnail
A byte string of the video frame.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTimeOffset
Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Protobuf\Duration
|
Returns | |
---|---|
Type | Description |
$this |