Class VideoClassificationAnnotation.Builder (0.135.0)

public static final class VideoClassificationAnnotation.Builder extends GeneratedMessageV3.Builder<VideoClassificationAnnotation.Builder> implements VideoClassificationAnnotationOrBuilder

Video classification annotation.

Protobuf type google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VideoClassificationAnnotation build()
Returns
TypeDescription
VideoClassificationAnnotation

buildPartial()

public VideoClassificationAnnotation buildPartial()
Returns
TypeDescription
VideoClassificationAnnotation

clear()

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

clearAnnotationSpec()

public VideoClassificationAnnotation.Builder clearAnnotationSpec()

Label of the segment specified by time_segment.

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

Returns
TypeDescription
VideoClassificationAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeSegment()

public VideoClassificationAnnotation.Builder clearTimeSegment()

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

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

Returns
TypeDescription
VideoClassificationAnnotation.Builder

clone()

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of the segment specified by time_segment.

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

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

Label of the segment specified by time_segment.

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

Returns
TypeDescription
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of the segment specified by time_segment.

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

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public VideoClassificationAnnotation getDefaultInstanceForType()
Returns
TypeDescription
VideoClassificationAnnotation

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 = 1;

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 = 1;

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 = 1;

Returns
TypeDescription
TimeSegmentOrBuilder

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of the segment specified by time_segment.

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

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 = 1;

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 VideoClassificationAnnotation.Builder mergeAnnotationSpec(AnnotationSpec value)

Label of the segment specified by time_segment.

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

Parameter
NameDescription
valueAnnotationSpec
Returns
TypeDescription
VideoClassificationAnnotation.Builder

mergeFrom(VideoClassificationAnnotation other)

public VideoClassificationAnnotation.Builder mergeFrom(VideoClassificationAnnotation other)
Parameter
NameDescription
otherVideoClassificationAnnotation
Returns
TypeDescription
VideoClassificationAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VideoClassificationAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VideoClassificationAnnotation.Builder
Overrides

mergeTimeSegment(TimeSegment value)

public VideoClassificationAnnotation.Builder mergeTimeSegment(TimeSegment value)

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

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

Parameter
NameDescription
valueTimeSegment
Returns
TypeDescription
VideoClassificationAnnotation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotationSpec(AnnotationSpec value)

public VideoClassificationAnnotation.Builder setAnnotationSpec(AnnotationSpec value)

Label of the segment specified by time_segment.

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

Parameter
NameDescription
valueAnnotationSpec
Returns
TypeDescription
VideoClassificationAnnotation.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public VideoClassificationAnnotation.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

Label of the segment specified by time_segment.

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

Parameter
NameDescription
builderForValueAnnotationSpec.Builder
Returns
TypeDescription
VideoClassificationAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTimeSegment(TimeSegment value)

public VideoClassificationAnnotation.Builder setTimeSegment(TimeSegment value)

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

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

Parameter
NameDescription
valueTimeSegment
Returns
TypeDescription
VideoClassificationAnnotation.Builder

setTimeSegment(TimeSegment.Builder builderForValue)

public VideoClassificationAnnotation.Builder setTimeSegment(TimeSegment.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueTimeSegment.Builder
Returns
TypeDescription
VideoClassificationAnnotation.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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