Class VideoEventAnnotation.Builder (0.203.0)

public static final class VideoEventAnnotation.Builder extends GeneratedMessage.Builder<VideoEventAnnotation.Builder> implements VideoEventAnnotationOrBuilder

Video event annotation.

Protobuf type google.cloud.datalabeling.v1beta1.VideoEventAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public VideoEventAnnotation build()
Returns
Type Description
VideoEventAnnotation

buildPartial()

public VideoEventAnnotation buildPartial()
Returns
Type Description
VideoEventAnnotation

clear()

public VideoEventAnnotation.Builder clear()
Returns
Type Description
VideoEventAnnotation.Builder
Overrides

clearAnnotationSpec()

public VideoEventAnnotation.Builder clearAnnotationSpec()

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
VideoEventAnnotation.Builder

clearTimeSegment()

public VideoEventAnnotation.Builder clearTimeSegment()

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
Type Description
VideoEventAnnotation.Builder

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public VideoEventAnnotation getDefaultInstanceForType()
Returns
Type Description
VideoEventAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTimeSegment()

public TimeSegment getTimeSegment()

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
Type Description
TimeSegment

The timeSegment.

getTimeSegmentBuilder()

public TimeSegment.Builder getTimeSegmentBuilder()

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
Type Description
TimeSegment.Builder

getTimeSegmentOrBuilder()

public TimeSegmentOrBuilder getTimeSegmentOrBuilder()

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
Type Description
TimeSegmentOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
boolean

Whether the annotationSpec field is set.

hasTimeSegment()

public boolean hasTimeSegment()

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Returns
Type Description
boolean

Whether the timeSegment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnnotationSpec(AnnotationSpec value)

public VideoEventAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
VideoEventAnnotation.Builder

mergeFrom(VideoEventAnnotation other)

public VideoEventAnnotation.Builder mergeFrom(VideoEventAnnotation other)
Parameter
Name Description
other VideoEventAnnotation
Returns
Type Description
VideoEventAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoEventAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VideoEventAnnotation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VideoEventAnnotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VideoEventAnnotation.Builder
Overrides

mergeTimeSegment(TimeSegment value)

public VideoEventAnnotation.Builder mergeTimeSegment(TimeSegment value)

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Parameter
Name Description
value TimeSegment
Returns
Type Description
VideoEventAnnotation.Builder

setAnnotationSpec(AnnotationSpec value)

public VideoEventAnnotation.Builder setAnnotationSpec(AnnotationSpec value)

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
VideoEventAnnotation.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public VideoEventAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

Label of the event in this annotation.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Parameter
Name Description
builderForValue AnnotationSpec.Builder
Returns
Type Description
VideoEventAnnotation.Builder

setTimeSegment(TimeSegment value)

public VideoEventAnnotation.Builder setTimeSegment(TimeSegment value)

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Parameter
Name Description
value TimeSegment
Returns
Type Description
VideoEventAnnotation.Builder

setTimeSegment(TimeSegment.Builder builderForValue)

public VideoEventAnnotation.Builder setTimeSegment(TimeSegment.Builder builderForValue)

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

.google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2;

Parameter
Name Description
builderForValue TimeSegment.Builder
Returns
Type Description
VideoEventAnnotation.Builder