Class VideoEventAnnotation.Builder (0.149.0)

public static final class VideoEventAnnotation.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoEventAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

build()

public VideoEventAnnotation build()
Returns
TypeDescription
VideoEventAnnotation

buildPartial()

public VideoEventAnnotation buildPartial()
Returns
TypeDescription
VideoEventAnnotation

clear()

public VideoEventAnnotation.Builder clear()
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

clearAnnotationSpec()

public VideoEventAnnotation.Builder clearAnnotationSpec()

Label of the event in this annotation.

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

Returns
TypeDescription
VideoEventAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public VideoEventAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoEventAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

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
TypeDescription
VideoEventAnnotation.Builder

clone()

public VideoEventAnnotation.Builder clone()
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of the event in this annotation.

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

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of the event in this annotation.

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

Returns
TypeDescription
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of the event in this annotation.

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

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public VideoEventAnnotation getDefaultInstanceForType()
Returns
TypeDescription
VideoEventAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimeSegmentOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of the event in this annotation.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the timeSegment field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
VideoEventAnnotation.Builder

mergeFrom(VideoEventAnnotation other)

public VideoEventAnnotation.Builder mergeFrom(VideoEventAnnotation other)
Parameter
NameDescription
otherVideoEventAnnotation
Returns
TypeDescription
VideoEventAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VideoEventAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VideoEventAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimeSegment
Returns
TypeDescription
VideoEventAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VideoEventAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
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
NameDescription
builderForValueAnnotationSpec.Builder
Returns
TypeDescription
VideoEventAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VideoEventAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VideoEventAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides

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
NameDescription
valueTimeSegment
Returns
TypeDescription
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
NameDescription
builderForValueTimeSegment.Builder
Returns
TypeDescription
VideoEventAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final VideoEventAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VideoEventAnnotation.Builder
Overrides