Class VideoAnnotationResults.Builder (2.42.0)

public static final class VideoAnnotationResults.Builder extends GeneratedMessageV3.Builder<VideoAnnotationResults.Builder> implements VideoAnnotationResultsOrBuilder

Annotation results for a single video.

Protobuf type google.cloud.videointelligence.v1.VideoAnnotationResults

Static Methods

getDescriptor()

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

Methods

addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values) (deprecated)

public VideoAnnotationResults.Builder addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values)

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.FaceAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllFaceDetectionAnnotations(Iterable<? extends FaceDetectionAnnotation> values)

public VideoAnnotationResults.Builder addAllFaceDetectionAnnotations(Iterable<? extends FaceDetectionAnnotation> values)

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.FaceDetectionAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllFrameLabelAnnotations(Iterable<? extends LabelAnnotation> values)

public VideoAnnotationResults.Builder addAllFrameLabelAnnotations(Iterable<? extends LabelAnnotation> values)

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.LabelAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllLogoRecognitionAnnotations(Iterable<? extends LogoRecognitionAnnotation> values)

public VideoAnnotationResults.Builder addAllLogoRecognitionAnnotations(Iterable<? extends LogoRecognitionAnnotation> values)

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.LogoRecognitionAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllObjectAnnotations(Iterable<? extends ObjectTrackingAnnotation> values)

public VideoAnnotationResults.Builder addAllObjectAnnotations(Iterable<? extends ObjectTrackingAnnotation> values)

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.ObjectTrackingAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllPersonDetectionAnnotations(Iterable<? extends PersonDetectionAnnotation> values)

public VideoAnnotationResults.Builder addAllPersonDetectionAnnotations(Iterable<? extends PersonDetectionAnnotation> values)

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.PersonDetectionAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllSegmentLabelAnnotations(Iterable<? extends LabelAnnotation> values)

public VideoAnnotationResults.Builder addAllSegmentLabelAnnotations(Iterable<? extends LabelAnnotation> values)

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.LabelAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllSegmentPresenceLabelAnnotations(Iterable<? extends LabelAnnotation> values)

public VideoAnnotationResults.Builder addAllSegmentPresenceLabelAnnotations(Iterable<? extends LabelAnnotation> values)

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.LabelAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllShotAnnotations(Iterable<? extends VideoSegment> values)

public VideoAnnotationResults.Builder addAllShotAnnotations(Iterable<? extends VideoSegment> values)

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.VideoSegment>
Returns
Type Description
VideoAnnotationResults.Builder

addAllShotLabelAnnotations(Iterable<? extends LabelAnnotation> values)

public VideoAnnotationResults.Builder addAllShotLabelAnnotations(Iterable<? extends LabelAnnotation> values)

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.LabelAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllShotPresenceLabelAnnotations(Iterable<? extends LabelAnnotation> values)

public VideoAnnotationResults.Builder addAllShotPresenceLabelAnnotations(Iterable<? extends LabelAnnotation> values)

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.LabelAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addAllSpeechTranscriptions(Iterable<? extends SpeechTranscription> values)

public VideoAnnotationResults.Builder addAllSpeechTranscriptions(Iterable<? extends SpeechTranscription> values)

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.SpeechTranscription>
Returns
Type Description
VideoAnnotationResults.Builder

addAllTextAnnotations(Iterable<? extends TextAnnotation> values)

public VideoAnnotationResults.Builder addAllTextAnnotations(Iterable<? extends TextAnnotation> values)

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1.TextAnnotation>
Returns
Type Description
VideoAnnotationResults.Builder

addFaceAnnotations(FaceAnnotation value) (deprecated)

public VideoAnnotationResults.Builder addFaceAnnotations(FaceAnnotation value)

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Parameter
Name Description
value FaceAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addFaceAnnotations(FaceAnnotation.Builder builderForValue) (deprecated)

public VideoAnnotationResults.Builder addFaceAnnotations(FaceAnnotation.Builder builderForValue)

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Parameter
Name Description
builderForValue FaceAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addFaceAnnotations(int index, FaceAnnotation value) (deprecated)

public VideoAnnotationResults.Builder addFaceAnnotations(int index, FaceAnnotation value)

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Parameters
Name Description
index int
value FaceAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue) (deprecated)

public VideoAnnotationResults.Builder addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Parameters
Name Description
index int
builderForValue FaceAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addFaceAnnotationsBuilder() (deprecated)

public FaceAnnotation.Builder addFaceAnnotationsBuilder()

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Returns
Type Description
FaceAnnotation.Builder

addFaceAnnotationsBuilder(int index) (deprecated)

public FaceAnnotation.Builder addFaceAnnotationsBuilder(int index)

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Parameter
Name Description
index int
Returns
Type Description
FaceAnnotation.Builder

addFaceDetectionAnnotations(FaceDetectionAnnotation value)

public VideoAnnotationResults.Builder addFaceDetectionAnnotations(FaceDetectionAnnotation value)

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Parameter
Name Description
value FaceDetectionAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addFaceDetectionAnnotations(FaceDetectionAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addFaceDetectionAnnotations(FaceDetectionAnnotation.Builder builderForValue)

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Parameter
Name Description
builderForValue FaceDetectionAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addFaceDetectionAnnotations(int index, FaceDetectionAnnotation value)

public VideoAnnotationResults.Builder addFaceDetectionAnnotations(int index, FaceDetectionAnnotation value)

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Parameters
Name Description
index int
value FaceDetectionAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addFaceDetectionAnnotations(int index, FaceDetectionAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addFaceDetectionAnnotations(int index, FaceDetectionAnnotation.Builder builderForValue)

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Parameters
Name Description
index int
builderForValue FaceDetectionAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addFaceDetectionAnnotationsBuilder()

public FaceDetectionAnnotation.Builder addFaceDetectionAnnotationsBuilder()

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Returns
Type Description
FaceDetectionAnnotation.Builder

addFaceDetectionAnnotationsBuilder(int index)

public FaceDetectionAnnotation.Builder addFaceDetectionAnnotationsBuilder(int index)

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Parameter
Name Description
index int
Returns
Type Description
FaceDetectionAnnotation.Builder

addFrameLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addFrameLabelAnnotations(LabelAnnotation value)

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Parameter
Name Description
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addFrameLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addFrameLabelAnnotations(LabelAnnotation.Builder builderForValue)

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Parameter
Name Description
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addFrameLabelAnnotations(int index, LabelAnnotation value)

public VideoAnnotationResults.Builder addFrameLabelAnnotations(int index, LabelAnnotation value)

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Parameters
Name Description
index int
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addFrameLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addFrameLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Parameters
Name Description
index int
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addFrameLabelAnnotationsBuilder()

public LabelAnnotation.Builder addFrameLabelAnnotationsBuilder()

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Returns
Type Description
LabelAnnotation.Builder

addFrameLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addFrameLabelAnnotationsBuilder(int index)

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotation.Builder

addLogoRecognitionAnnotations(LogoRecognitionAnnotation value)

public VideoAnnotationResults.Builder addLogoRecognitionAnnotations(LogoRecognitionAnnotation value)

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Parameter
Name Description
value LogoRecognitionAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addLogoRecognitionAnnotations(LogoRecognitionAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addLogoRecognitionAnnotations(LogoRecognitionAnnotation.Builder builderForValue)

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Parameter
Name Description
builderForValue LogoRecognitionAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addLogoRecognitionAnnotations(int index, LogoRecognitionAnnotation value)

public VideoAnnotationResults.Builder addLogoRecognitionAnnotations(int index, LogoRecognitionAnnotation value)

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Parameters
Name Description
index int
value LogoRecognitionAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addLogoRecognitionAnnotations(int index, LogoRecognitionAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addLogoRecognitionAnnotations(int index, LogoRecognitionAnnotation.Builder builderForValue)

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Parameters
Name Description
index int
builderForValue LogoRecognitionAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addLogoRecognitionAnnotationsBuilder()

public LogoRecognitionAnnotation.Builder addLogoRecognitionAnnotationsBuilder()

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Returns
Type Description
LogoRecognitionAnnotation.Builder

addLogoRecognitionAnnotationsBuilder(int index)

public LogoRecognitionAnnotation.Builder addLogoRecognitionAnnotationsBuilder(int index)

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Parameter
Name Description
index int
Returns
Type Description
LogoRecognitionAnnotation.Builder

addObjectAnnotations(ObjectTrackingAnnotation value)

public VideoAnnotationResults.Builder addObjectAnnotations(ObjectTrackingAnnotation value)

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Parameter
Name Description
value ObjectTrackingAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addObjectAnnotations(ObjectTrackingAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addObjectAnnotations(ObjectTrackingAnnotation.Builder builderForValue)

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Parameter
Name Description
builderForValue ObjectTrackingAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addObjectAnnotations(int index, ObjectTrackingAnnotation value)

public VideoAnnotationResults.Builder addObjectAnnotations(int index, ObjectTrackingAnnotation value)

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Parameters
Name Description
index int
value ObjectTrackingAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addObjectAnnotations(int index, ObjectTrackingAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addObjectAnnotations(int index, ObjectTrackingAnnotation.Builder builderForValue)

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Parameters
Name Description
index int
builderForValue ObjectTrackingAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addObjectAnnotationsBuilder()

public ObjectTrackingAnnotation.Builder addObjectAnnotationsBuilder()

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Returns
Type Description
ObjectTrackingAnnotation.Builder

addObjectAnnotationsBuilder(int index)

public ObjectTrackingAnnotation.Builder addObjectAnnotationsBuilder(int index)

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Parameter
Name Description
index int
Returns
Type Description
ObjectTrackingAnnotation.Builder

addPersonDetectionAnnotations(PersonDetectionAnnotation value)

public VideoAnnotationResults.Builder addPersonDetectionAnnotations(PersonDetectionAnnotation value)

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Parameter
Name Description
value PersonDetectionAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addPersonDetectionAnnotations(PersonDetectionAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addPersonDetectionAnnotations(PersonDetectionAnnotation.Builder builderForValue)

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Parameter
Name Description
builderForValue PersonDetectionAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addPersonDetectionAnnotations(int index, PersonDetectionAnnotation value)

public VideoAnnotationResults.Builder addPersonDetectionAnnotations(int index, PersonDetectionAnnotation value)

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Parameters
Name Description
index int
value PersonDetectionAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addPersonDetectionAnnotations(int index, PersonDetectionAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addPersonDetectionAnnotations(int index, PersonDetectionAnnotation.Builder builderForValue)

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Parameters
Name Description
index int
builderForValue PersonDetectionAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addPersonDetectionAnnotationsBuilder()

public PersonDetectionAnnotation.Builder addPersonDetectionAnnotationsBuilder()

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Returns
Type Description
PersonDetectionAnnotation.Builder

addPersonDetectionAnnotationsBuilder(int index)

public PersonDetectionAnnotation.Builder addPersonDetectionAnnotationsBuilder(int index)

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Parameter
Name Description
index int
Returns
Type Description
PersonDetectionAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VideoAnnotationResults.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VideoAnnotationResults.Builder
Overrides

addSegmentLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addSegmentLabelAnnotations(LabelAnnotation value)

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Parameter
Name Description
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addSegmentLabelAnnotations(LabelAnnotation.Builder builderForValue)

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Parameter
Name Description
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentLabelAnnotations(int index, LabelAnnotation value)

public VideoAnnotationResults.Builder addSegmentLabelAnnotations(int index, LabelAnnotation value)

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Parameters
Name Description
index int
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addSegmentLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Parameters
Name Description
index int
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentLabelAnnotationsBuilder()

public LabelAnnotation.Builder addSegmentLabelAnnotationsBuilder()

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Returns
Type Description
LabelAnnotation.Builder

addSegmentLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addSegmentLabelAnnotationsBuilder(int index)

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotation.Builder

addSegmentPresenceLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addSegmentPresenceLabelAnnotations(LabelAnnotation value)

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Parameter
Name Description
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentPresenceLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addSegmentPresenceLabelAnnotations(LabelAnnotation.Builder builderForValue)

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Parameter
Name Description
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentPresenceLabelAnnotations(int index, LabelAnnotation value)

public VideoAnnotationResults.Builder addSegmentPresenceLabelAnnotations(int index, LabelAnnotation value)

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Parameters
Name Description
index int
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentPresenceLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addSegmentPresenceLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Parameters
Name Description
index int
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addSegmentPresenceLabelAnnotationsBuilder()

public LabelAnnotation.Builder addSegmentPresenceLabelAnnotationsBuilder()

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Returns
Type Description
LabelAnnotation.Builder

addSegmentPresenceLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addSegmentPresenceLabelAnnotationsBuilder(int index)

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotation.Builder

addShotAnnotations(VideoSegment value)

public VideoAnnotationResults.Builder addShotAnnotations(VideoSegment value)

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Parameter
Name Description
value VideoSegment
Returns
Type Description
VideoAnnotationResults.Builder

addShotAnnotations(VideoSegment.Builder builderForValue)

public VideoAnnotationResults.Builder addShotAnnotations(VideoSegment.Builder builderForValue)

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Parameter
Name Description
builderForValue VideoSegment.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addShotAnnotations(int index, VideoSegment value)

public VideoAnnotationResults.Builder addShotAnnotations(int index, VideoSegment value)

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Parameters
Name Description
index int
value VideoSegment
Returns
Type Description
VideoAnnotationResults.Builder

addShotAnnotations(int index, VideoSegment.Builder builderForValue)

public VideoAnnotationResults.Builder addShotAnnotations(int index, VideoSegment.Builder builderForValue)

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Parameters
Name Description
index int
builderForValue VideoSegment.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addShotAnnotationsBuilder()

public VideoSegment.Builder addShotAnnotationsBuilder()

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Returns
Type Description
VideoSegment.Builder

addShotAnnotationsBuilder(int index)

public VideoSegment.Builder addShotAnnotationsBuilder(int index)

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Parameter
Name Description
index int
Returns
Type Description
VideoSegment.Builder

addShotLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addShotLabelAnnotations(LabelAnnotation value)

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Parameter
Name Description
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addShotLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addShotLabelAnnotations(LabelAnnotation.Builder builderForValue)

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Parameter
Name Description
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addShotLabelAnnotations(int index, LabelAnnotation value)

public VideoAnnotationResults.Builder addShotLabelAnnotations(int index, LabelAnnotation value)

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Parameters
Name Description
index int
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addShotLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addShotLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Parameters
Name Description
index int
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addShotLabelAnnotationsBuilder()

public LabelAnnotation.Builder addShotLabelAnnotationsBuilder()

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Returns
Type Description
LabelAnnotation.Builder

addShotLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addShotLabelAnnotationsBuilder(int index)

Topical label annotations on shot level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_label_annotations = 3;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotation.Builder

addShotPresenceLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addShotPresenceLabelAnnotations(LabelAnnotation value)

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Parameter
Name Description
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addShotPresenceLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addShotPresenceLabelAnnotations(LabelAnnotation.Builder builderForValue)

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Parameter
Name Description
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addShotPresenceLabelAnnotations(int index, LabelAnnotation value)

public VideoAnnotationResults.Builder addShotPresenceLabelAnnotations(int index, LabelAnnotation value)

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Parameters
Name Description
index int
value LabelAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addShotPresenceLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addShotPresenceLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Parameters
Name Description
index int
builderForValue LabelAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addShotPresenceLabelAnnotationsBuilder()

public LabelAnnotation.Builder addShotPresenceLabelAnnotationsBuilder()

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Returns
Type Description
LabelAnnotation.Builder

addShotPresenceLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addShotPresenceLabelAnnotationsBuilder(int index)

Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation shot_presence_label_annotations = 24;

Parameter
Name Description
index int
Returns
Type Description
LabelAnnotation.Builder

addSpeechTranscriptions(SpeechTranscription value)

public VideoAnnotationResults.Builder addSpeechTranscriptions(SpeechTranscription value)

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Parameter
Name Description
value SpeechTranscription
Returns
Type Description
VideoAnnotationResults.Builder

addSpeechTranscriptions(SpeechTranscription.Builder builderForValue)

public VideoAnnotationResults.Builder addSpeechTranscriptions(SpeechTranscription.Builder builderForValue)

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Parameter
Name Description
builderForValue SpeechTranscription.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addSpeechTranscriptions(int index, SpeechTranscription value)

public VideoAnnotationResults.Builder addSpeechTranscriptions(int index, SpeechTranscription value)

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Parameters
Name Description
index int
value SpeechTranscription
Returns
Type Description
VideoAnnotationResults.Builder

addSpeechTranscriptions(int index, SpeechTranscription.Builder builderForValue)

public VideoAnnotationResults.Builder addSpeechTranscriptions(int index, SpeechTranscription.Builder builderForValue)

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Parameters
Name Description
index int
builderForValue SpeechTranscription.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addSpeechTranscriptionsBuilder()

public SpeechTranscription.Builder addSpeechTranscriptionsBuilder()

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Returns
Type Description
SpeechTranscription.Builder

addSpeechTranscriptionsBuilder(int index)

public SpeechTranscription.Builder addSpeechTranscriptionsBuilder(int index)

Speech transcription.

repeated .google.cloud.videointelligence.v1.SpeechTranscription speech_transcriptions = 11;

Parameter
Name Description
index int
Returns
Type Description
SpeechTranscription.Builder

addTextAnnotations(TextAnnotation value)

public VideoAnnotationResults.Builder addTextAnnotations(TextAnnotation value)

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Parameter
Name Description
value TextAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addTextAnnotations(TextAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addTextAnnotations(TextAnnotation.Builder builderForValue)

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Parameter
Name Description
builderForValue TextAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addTextAnnotations(int index, TextAnnotation value)

public VideoAnnotationResults.Builder addTextAnnotations(int index, TextAnnotation value)

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Parameters
Name Description
index int
value TextAnnotation
Returns
Type Description
VideoAnnotationResults.Builder

addTextAnnotations(int index, TextAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addTextAnnotations(int index, TextAnnotation.Builder builderForValue)

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Parameters
Name Description
index int
builderForValue TextAnnotation.Builder
Returns
Type Description
VideoAnnotationResults.Builder

addTextAnnotationsBuilder()

public TextAnnotation.Builder addTextAnnotationsBuilder()

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Returns
Type Description
TextAnnotation.Builder

addTextAnnotationsBuilder(int index)

public TextAnnotation.Builder addTextAnnotationsBuilder(int index)

OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.

repeated .google.cloud.videointelligence.v1.TextAnnotation text_annotations = 12;

Parameter
Name Description
index int
Returns
Type Description
TextAnnotation.Builder

build()

public VideoAnnotationResults build()
Returns
Type Description
VideoAnnotationResults

buildPartial()

public VideoAnnotationResults buildPartial()
Returns
Type Description
VideoAnnotationResults

clear()

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

clearError()

public VideoAnnotationResults.Builder clearError()

If set, indicates an error. Note that for a single AnnotateVideoRequest some videos may succeed and some may fail.

.google.rpc.Status error = 9;

Returns
Type Description
VideoAnnotationResults.Builder

clearExplicitAnnotation()

public VideoAnnotationResults.Builder clearExplicitAnnotation()

Explicit content annotation.

.google.cloud.videointelligence.v1.ExplicitContentAnnotation explicit_annotation = 7;

Returns
Type Description
VideoAnnotationResults.Builder

clearFaceAnnotations() (deprecated)

public VideoAnnotationResults.Builder clearFaceAnnotations()

Deprecated. Please use face_detection_annotations instead.

repeated .google.cloud.videointelligence.v1.FaceAnnotation face_annotations = 5 [deprecated = true];

Returns
Type Description
VideoAnnotationResults.Builder

clearFaceDetectionAnnotations()

public VideoAnnotationResults.Builder clearFaceDetectionAnnotations()

Face detection annotations.

repeated .google.cloud.videointelligence.v1.FaceDetectionAnnotation face_detection_annotations = 13;

Returns
Type Description
VideoAnnotationResults.Builder

clearField(Descriptors.FieldDescriptor field)

public VideoAnnotationResults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VideoAnnotationResults.Builder
Overrides

clearFrameLabelAnnotations()

public VideoAnnotationResults.Builder clearFrameLabelAnnotations()

Label annotations on frame level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation frame_label_annotations = 4;

Returns
Type Description
VideoAnnotationResults.Builder

clearInputUri()

public VideoAnnotationResults.Builder clearInputUri()

Video file location in Cloud Storage.

string input_uri = 1;

Returns
Type Description
VideoAnnotationResults.Builder

This builder for chaining.

clearLogoRecognitionAnnotations()

public VideoAnnotationResults.Builder clearLogoRecognitionAnnotations()

Annotations for list of logos detected, tracked and recognized in video.

repeated .google.cloud.videointelligence.v1.LogoRecognitionAnnotation logo_recognition_annotations = 19;

Returns
Type Description
VideoAnnotationResults.Builder

clearObjectAnnotations()

public VideoAnnotationResults.Builder clearObjectAnnotations()

Annotations for list of objects detected and tracked in video.

repeated .google.cloud.videointelligence.v1.ObjectTrackingAnnotation object_annotations = 14;

Returns
Type Description
VideoAnnotationResults.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public VideoAnnotationResults.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VideoAnnotationResults.Builder
Overrides

clearPersonDetectionAnnotations()

public VideoAnnotationResults.Builder clearPersonDetectionAnnotations()

Person detection annotations.

repeated .google.cloud.videointelligence.v1.PersonDetectionAnnotation person_detection_annotations = 20;

Returns
Type Description
VideoAnnotationResults.Builder

clearSegment()

public VideoAnnotationResults.Builder clearSegment()

Video segment on which the annotation is run.

.google.cloud.videointelligence.v1.VideoSegment segment = 10;

Returns
Type Description
VideoAnnotationResults.Builder

clearSegmentLabelAnnotations()

public VideoAnnotationResults.Builder clearSegmentLabelAnnotations()

Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_label_annotations = 2;

Returns
Type Description
VideoAnnotationResults.Builder

clearSegmentPresenceLabelAnnotations()

public VideoAnnotationResults.Builder clearSegmentPresenceLabelAnnotations()

Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model to "builtin/latest" in the request.

repeated .google.cloud.videointelligence.v1.LabelAnnotation segment_presence_label_annotations = 23;

Returns
Type Description
VideoAnnotationResults.Builder

clearShotAnnotations()

public VideoAnnotationResults.Builder clearShotAnnotations()

Shot annotations. Each shot is represented as a video segment.

repeated .google.cloud.videointelligence.v1.VideoSegment shot_annotations = 6;

Returns
Type Description
VideoAnnotationResults.Builder

clearShotLabelAnnotations()

public VideoAnnotationResults.Builder clearShotLabelAnnotations()