Google Cloud Datalabeling V1beta1 Client - Class VideoClassificationAnnotation (0.2.0)

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

Video classification annotation.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time_segment Google\Cloud\DataLabeling\V1beta1\TimeSegment

The time segment of the video to which the annotation applies.

↳ annotation_spec Google\Cloud\DataLabeling\V1beta1\AnnotationSpec

Label of the segment specified by time_segment.

getTimeSegment

The time segment of the video to which the annotation applies.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\TimeSegment|null

hasTimeSegment

clearTimeSegment

setTimeSegment

The time segment of the video to which the annotation applies.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\TimeSegment
Returns
TypeDescription
$this

getAnnotationSpec

Label of the segment specified by time_segment.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\AnnotationSpec|null

hasAnnotationSpec

clearAnnotationSpec

setAnnotationSpec

Label of the segment specified by time_segment.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\AnnotationSpec
Returns
TypeDescription
$this