Class VideoAnnotationResults.Builder (2.6.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.v1beta2.VideoAnnotationResults

Static Methods

getDescriptor()

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

Methods

addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values)

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

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1beta2.FaceAnnotation>
Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1beta2.LabelAnnotation>
Returns
TypeDescription
VideoAnnotationResults.Builder

addAllSegmentLabelAnnotations(Iterable<? extends LabelAnnotation> values)

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

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1beta2.LabelAnnotation>
Returns
TypeDescription
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.v1beta2.VideoSegment shot_annotations = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1beta2.VideoSegment>
Returns
TypeDescription
VideoAnnotationResults.Builder

addAllShotLabelAnnotations(Iterable<? extends LabelAnnotation> values)

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

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

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1beta2.LabelAnnotation>
Returns
TypeDescription
VideoAnnotationResults.Builder

addFaceAnnotations(FaceAnnotation value)

public VideoAnnotationResults.Builder addFaceAnnotations(FaceAnnotation value)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
valueFaceAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

addFaceAnnotations(FaceAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addFaceAnnotations(FaceAnnotation.Builder builderForValue)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
builderForValueFaceAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addFaceAnnotations(int index, FaceAnnotation value)

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

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameters
NameDescription
indexint
valueFaceAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

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

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addFaceAnnotationsBuilder()

public FaceAnnotation.Builder addFaceAnnotationsBuilder()

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Returns
TypeDescription
FaceAnnotation.Builder

addFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder addFaceAnnotationsBuilder(int index)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Parameter
NameDescription
valueLabelAnnotation
Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Parameter
NameDescription
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Parameters
NameDescription
indexint
valueLabelAnnotation
Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Parameters
NameDescription
indexint
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSegmentLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addSegmentLabelAnnotations(LabelAnnotation value)

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

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

Parameter
NameDescription
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

addSegmentLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addSegmentLabelAnnotations(LabelAnnotation.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addSegmentLabelAnnotations(int index, LabelAnnotation value)

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

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

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

Parameters
NameDescription
indexint
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

addSegmentLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addSegmentLabelAnnotationsBuilder()

public LabelAnnotation.Builder addSegmentLabelAnnotationsBuilder()

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

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

Returns
TypeDescription
LabelAnnotation.Builder

addSegmentLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addSegmentLabelAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.VideoSegment shot_annotations = 6;

Parameter
NameDescription
valueVideoSegment
Returns
TypeDescription
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.v1beta2.VideoSegment shot_annotations = 6;

Parameter
NameDescription
builderForValueVideoSegment.Builder
Returns
TypeDescription
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.v1beta2.VideoSegment shot_annotations = 6;

Parameters
NameDescription
indexint
valueVideoSegment
Returns
TypeDescription
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.v1beta2.VideoSegment shot_annotations = 6;

Parameters
NameDescription
indexint
builderForValueVideoSegment.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addShotAnnotationsBuilder()

public VideoSegment.Builder addShotAnnotationsBuilder()

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

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

Returns
TypeDescription
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.v1beta2.VideoSegment shot_annotations = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegment.Builder

addShotLabelAnnotations(LabelAnnotation value)

public VideoAnnotationResults.Builder addShotLabelAnnotations(LabelAnnotation value)

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

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

Parameter
NameDescription
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

addShotLabelAnnotations(LabelAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder addShotLabelAnnotations(LabelAnnotation.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addShotLabelAnnotations(int index, LabelAnnotation value)

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

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

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

Parameters
NameDescription
indexint
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

addShotLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

addShotLabelAnnotationsBuilder()

public LabelAnnotation.Builder addShotLabelAnnotationsBuilder()

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

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

Returns
TypeDescription
LabelAnnotation.Builder

addShotLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder addShotLabelAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation.Builder

build()

public VideoAnnotationResults build()
Returns
TypeDescription
VideoAnnotationResults

buildPartial()

public VideoAnnotationResults buildPartial()
Returns
TypeDescription
VideoAnnotationResults

clear()

public VideoAnnotationResults.Builder clear()
Returns
TypeDescription
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
TypeDescription
VideoAnnotationResults.Builder

clearExplicitAnnotation()

public VideoAnnotationResults.Builder clearExplicitAnnotation()

Explicit content annotation.

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

Returns
TypeDescription
VideoAnnotationResults.Builder

clearFaceAnnotations()

public VideoAnnotationResults.Builder clearFaceAnnotations()

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Returns
TypeDescription
VideoAnnotationResults.Builder

clearField(Descriptors.FieldDescriptor field)

public VideoAnnotationResults.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1beta2.LabelAnnotation frame_label_annotations = 4;

Returns
TypeDescription
VideoAnnotationResults.Builder

clearInputUri()

public VideoAnnotationResults.Builder clearInputUri()

Video file location in Google Cloud Storage.

string input_uri = 1;

Returns
TypeDescription
VideoAnnotationResults.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegmentLabelAnnotations()

public VideoAnnotationResults.Builder clearSegmentLabelAnnotations()

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

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

Returns
TypeDescription
VideoAnnotationResults.Builder

clearShotAnnotations()

public VideoAnnotationResults.Builder clearShotAnnotations()

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

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

Returns
TypeDescription
VideoAnnotationResults.Builder

clearShotLabelAnnotations()

public VideoAnnotationResults.Builder clearShotLabelAnnotations()

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

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

Returns
TypeDescription
VideoAnnotationResults.Builder

clone()

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

getDefaultInstanceForType()

public VideoAnnotationResults getDefaultInstanceForType()
Returns
TypeDescription
VideoAnnotationResults

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getError()

public Status getError()

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
TypeDescription
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

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
TypeDescription
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

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
TypeDescription
com.google.rpc.StatusOrBuilder

getExplicitAnnotation()

public ExplicitContentAnnotation getExplicitAnnotation()

Explicit content annotation.

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

Returns
TypeDescription
ExplicitContentAnnotation

The explicitAnnotation.

getExplicitAnnotationBuilder()

public ExplicitContentAnnotation.Builder getExplicitAnnotationBuilder()

Explicit content annotation.

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

Returns
TypeDescription
ExplicitContentAnnotation.Builder

getExplicitAnnotationOrBuilder()

public ExplicitContentAnnotationOrBuilder getExplicitAnnotationOrBuilder()

Explicit content annotation.

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

Returns
TypeDescription
ExplicitContentAnnotationOrBuilder

getFaceAnnotations(int index)

public FaceAnnotation getFaceAnnotations(int index)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation

getFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder getFaceAnnotationsBuilder(int index)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

getFaceAnnotationsBuilderList()

public List<FaceAnnotation.Builder> getFaceAnnotationsBuilderList()

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Returns
TypeDescription
List<Builder>

getFaceAnnotationsCount()

public int getFaceAnnotationsCount()

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Returns
TypeDescription
int

getFaceAnnotationsList()

public List<FaceAnnotation> getFaceAnnotationsList()

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Returns
TypeDescription
List<FaceAnnotation>

getFaceAnnotationsOrBuilder(int index)

public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotationOrBuilder

getFaceAnnotationsOrBuilderList()

public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.FaceAnnotationOrBuilder>

getFrameLabelAnnotations(int index)

public LabelAnnotation getFrameLabelAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation

getFrameLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder getFrameLabelAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation.Builder

getFrameLabelAnnotationsBuilderList()

public List<LabelAnnotation.Builder> getFrameLabelAnnotationsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getFrameLabelAnnotationsCount()

public int getFrameLabelAnnotationsCount()

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

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

Returns
TypeDescription
int

getFrameLabelAnnotationsList()

public List<LabelAnnotation> getFrameLabelAnnotationsList()

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

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

Returns
TypeDescription
List<LabelAnnotation>

getFrameLabelAnnotationsOrBuilder(int index)

public LabelAnnotationOrBuilder getFrameLabelAnnotationsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotationOrBuilder

getFrameLabelAnnotationsOrBuilderList()

public List<? extends LabelAnnotationOrBuilder> getFrameLabelAnnotationsOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.LabelAnnotationOrBuilder>

getInputUri()

public String getInputUri()

Video file location in Google Cloud Storage.

string input_uri = 1;

Returns
TypeDescription
String

The inputUri.

getInputUriBytes()

public ByteString getInputUriBytes()

Video file location in Google Cloud Storage.

string input_uri = 1;

Returns
TypeDescription
ByteString

The bytes for inputUri.

getSegmentLabelAnnotations(int index)

public LabelAnnotation getSegmentLabelAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation

getSegmentLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder getSegmentLabelAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation.Builder

getSegmentLabelAnnotationsBuilderList()

public List<LabelAnnotation.Builder> getSegmentLabelAnnotationsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getSegmentLabelAnnotationsCount()

public int getSegmentLabelAnnotationsCount()

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

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

Returns
TypeDescription
int

getSegmentLabelAnnotationsList()

public List<LabelAnnotation> getSegmentLabelAnnotationsList()

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

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

Returns
TypeDescription
List<LabelAnnotation>

getSegmentLabelAnnotationsOrBuilder(int index)

public LabelAnnotationOrBuilder getSegmentLabelAnnotationsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotationOrBuilder

getSegmentLabelAnnotationsOrBuilderList()

public List<? extends LabelAnnotationOrBuilder> getSegmentLabelAnnotationsOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.LabelAnnotationOrBuilder>

getShotAnnotations(int index)

public VideoSegment getShotAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegment

getShotAnnotationsBuilder(int index)

public VideoSegment.Builder getShotAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegment.Builder

getShotAnnotationsBuilderList()

public List<VideoSegment.Builder> getShotAnnotationsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getShotAnnotationsCount()

public int getShotAnnotationsCount()

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

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

Returns
TypeDescription
int

getShotAnnotationsList()

public List<VideoSegment> getShotAnnotationsList()

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

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

Returns
TypeDescription
List<VideoSegment>

getShotAnnotationsOrBuilder(int index)

public VideoSegmentOrBuilder getShotAnnotationsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoSegmentOrBuilder

getShotAnnotationsOrBuilderList()

public List<? extends VideoSegmentOrBuilder> getShotAnnotationsOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.VideoSegmentOrBuilder>

getShotLabelAnnotations(int index)

public LabelAnnotation getShotLabelAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation

getShotLabelAnnotationsBuilder(int index)

public LabelAnnotation.Builder getShotLabelAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotation.Builder

getShotLabelAnnotationsBuilderList()

public List<LabelAnnotation.Builder> getShotLabelAnnotationsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getShotLabelAnnotationsCount()

public int getShotLabelAnnotationsCount()

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

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

Returns
TypeDescription
int

getShotLabelAnnotationsList()

public List<LabelAnnotation> getShotLabelAnnotationsList()

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

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

Returns
TypeDescription
List<LabelAnnotation>

getShotLabelAnnotationsOrBuilder(int index)

public LabelAnnotationOrBuilder getShotLabelAnnotationsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelAnnotationOrBuilder

getShotLabelAnnotationsOrBuilderList()

public List<? extends LabelAnnotationOrBuilder> getShotLabelAnnotationsOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.videointelligence.v1beta2.LabelAnnotationOrBuilder>

hasError()

public boolean hasError()

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

Whether the error field is set.

hasExplicitAnnotation()

public boolean hasExplicitAnnotation()

Explicit content annotation.

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

Returns
TypeDescription
boolean

Whether the explicitAnnotation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeError(Status value)

public VideoAnnotationResults.Builder mergeError(Status value)

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

.google.rpc.Status error = 9;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
VideoAnnotationResults.Builder

mergeExplicitAnnotation(ExplicitContentAnnotation value)

public VideoAnnotationResults.Builder mergeExplicitAnnotation(ExplicitContentAnnotation value)

Explicit content annotation.

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

Parameter
NameDescription
valueExplicitContentAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

mergeFrom(VideoAnnotationResults other)

public VideoAnnotationResults.Builder mergeFrom(VideoAnnotationResults other)
Parameter
NameDescription
otherVideoAnnotationResults
Returns
TypeDescription
VideoAnnotationResults.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFaceAnnotations(int index)

public VideoAnnotationResults.Builder removeFaceAnnotations(int index)

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoAnnotationResults.Builder

removeFrameLabelAnnotations(int index)

public VideoAnnotationResults.Builder removeFrameLabelAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoAnnotationResults.Builder

removeSegmentLabelAnnotations(int index)

public VideoAnnotationResults.Builder removeSegmentLabelAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoAnnotationResults.Builder

removeShotAnnotations(int index)

public VideoAnnotationResults.Builder removeShotAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoAnnotationResults.Builder

removeShotLabelAnnotations(int index)

public VideoAnnotationResults.Builder removeShotLabelAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VideoAnnotationResults.Builder

setError(Status value)

public VideoAnnotationResults.Builder setError(Status value)

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

.google.rpc.Status error = 9;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
VideoAnnotationResults.Builder

setError(Status.Builder builderForValue)

public VideoAnnotationResults.Builder setError(Status.Builder builderForValue)

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

.google.rpc.Status error = 9;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setExplicitAnnotation(ExplicitContentAnnotation value)

public VideoAnnotationResults.Builder setExplicitAnnotation(ExplicitContentAnnotation value)

Explicit content annotation.

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

Parameter
NameDescription
valueExplicitContentAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

setExplicitAnnotation(ExplicitContentAnnotation.Builder builderForValue)

public VideoAnnotationResults.Builder setExplicitAnnotation(ExplicitContentAnnotation.Builder builderForValue)

Explicit content annotation.

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

Parameter
NameDescription
builderForValueExplicitContentAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setFaceAnnotations(int index, FaceAnnotation value)

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

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameters
NameDescription
indexint
valueFaceAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

setFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

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

Face annotations. There is exactly one element for each unique face.

repeated .google.cloud.videointelligence.v1beta2.FaceAnnotation face_annotations = 5;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrameLabelAnnotations(int index, LabelAnnotation value)

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

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

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

Parameters
NameDescription
indexint
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

setFrameLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setInputUri(String value)

public VideoAnnotationResults.Builder setInputUri(String value)

Video file location in Google Cloud Storage.

string input_uri = 1;

Parameter
NameDescription
valueString

The inputUri to set.

Returns
TypeDescription
VideoAnnotationResults.Builder

This builder for chaining.

setInputUriBytes(ByteString value)

public VideoAnnotationResults.Builder setInputUriBytes(ByteString value)

Video file location in Google Cloud Storage.

string input_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for inputUri to set.

Returns
TypeDescription
VideoAnnotationResults.Builder

This builder for chaining.

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

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

setSegmentLabelAnnotations(int index, LabelAnnotation value)

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

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

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

Parameters
NameDescription
indexint
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

setSegmentLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setShotAnnotations(int index, VideoSegment value)

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

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

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

Parameters
NameDescription
indexint
valueVideoSegment
Returns
TypeDescription
VideoAnnotationResults.Builder

setShotAnnotations(int index, VideoSegment.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueVideoSegment.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setShotLabelAnnotations(int index, LabelAnnotation value)

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

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

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

Parameters
NameDescription
indexint
valueLabelAnnotation
Returns
TypeDescription
VideoAnnotationResults.Builder

setShotLabelAnnotations(int index, LabelAnnotation.Builder builderForValue)

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

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

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

Parameters
NameDescription
indexint
builderForValueLabelAnnotation.Builder
Returns
TypeDescription
VideoAnnotationResults.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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