Class FaceAnnotation.Builder (2.2.0)

public static final class FaceAnnotation.Builder extends GeneratedMessageV3.Builder<FaceAnnotation.Builder> implements FaceAnnotationOrBuilder

Face annotation.

Protobuf type google.cloud.videointelligence.v1beta2.FaceAnnotation

Static Methods

getDescriptor()

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

Methods

addAllFrames(Iterable<? extends FaceFrame> values)

public FaceAnnotation.Builder addAllFrames(Iterable<? extends FaceFrame> values)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

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

addAllSegments(Iterable<? extends FaceSegment> values)

public FaceAnnotation.Builder addAllSegments(Iterable<? extends FaceSegment> values)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

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

addFrames(FaceFrame value)

public FaceAnnotation.Builder addFrames(FaceFrame value)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
valueFaceFrame
Returns
TypeDescription
FaceAnnotation.Builder

addFrames(FaceFrame.Builder builderForValue)

public FaceAnnotation.Builder addFrames(FaceFrame.Builder builderForValue)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
builderForValueFaceFrame.Builder
Returns
TypeDescription
FaceAnnotation.Builder

addFrames(int index, FaceFrame value)

public FaceAnnotation.Builder addFrames(int index, FaceFrame value)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameters
NameDescription
indexint
valueFaceFrame
Returns
TypeDescription
FaceAnnotation.Builder

addFrames(int index, FaceFrame.Builder builderForValue)

public FaceAnnotation.Builder addFrames(int index, FaceFrame.Builder builderForValue)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameters
NameDescription
indexint
builderForValueFaceFrame.Builder
Returns
TypeDescription
FaceAnnotation.Builder

addFramesBuilder()

public FaceFrame.Builder addFramesBuilder()

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Returns
TypeDescription
FaceFrame.Builder

addFramesBuilder(int index)

public FaceFrame.Builder addFramesBuilder(int index)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceFrame.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSegments(FaceSegment value)

public FaceAnnotation.Builder addSegments(FaceSegment value)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
valueFaceSegment
Returns
TypeDescription
FaceAnnotation.Builder

addSegments(FaceSegment.Builder builderForValue)

public FaceAnnotation.Builder addSegments(FaceSegment.Builder builderForValue)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
builderForValueFaceSegment.Builder
Returns
TypeDescription
FaceAnnotation.Builder

addSegments(int index, FaceSegment value)

public FaceAnnotation.Builder addSegments(int index, FaceSegment value)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameters
NameDescription
indexint
valueFaceSegment
Returns
TypeDescription
FaceAnnotation.Builder

addSegments(int index, FaceSegment.Builder builderForValue)

public FaceAnnotation.Builder addSegments(int index, FaceSegment.Builder builderForValue)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameters
NameDescription
indexint
builderForValueFaceSegment.Builder
Returns
TypeDescription
FaceAnnotation.Builder

addSegmentsBuilder()

public FaceSegment.Builder addSegmentsBuilder()

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Returns
TypeDescription
FaceSegment.Builder

addSegmentsBuilder(int index)

public FaceSegment.Builder addSegmentsBuilder(int index)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceSegment.Builder

build()

public FaceAnnotation build()
Returns
TypeDescription
FaceAnnotation

buildPartial()

public FaceAnnotation buildPartial()
Returns
TypeDescription
FaceAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFrames()

public FaceAnnotation.Builder clearFrames()

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Returns
TypeDescription
FaceAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSegments()

public FaceAnnotation.Builder clearSegments()

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Returns
TypeDescription
FaceAnnotation.Builder

clearThumbnail()

public FaceAnnotation.Builder clearThumbnail()

Thumbnail of a representative face view (in JPEG format).

bytes thumbnail = 1;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FaceAnnotation getDefaultInstanceForType()
Returns
TypeDescription
FaceAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFrames(int index)

public FaceFrame getFrames(int index)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceFrame

getFramesBuilder(int index)

public FaceFrame.Builder getFramesBuilder(int index)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceFrame.Builder

getFramesBuilderList()

public List<FaceFrame.Builder> getFramesBuilderList()

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Returns
TypeDescription
List<Builder>

getFramesCount()

public int getFramesCount()

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Returns
TypeDescription
int

getFramesList()

public List<FaceFrame> getFramesList()

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Returns
TypeDescription
List<FaceFrame>

getFramesOrBuilder(int index)

public FaceFrameOrBuilder getFramesOrBuilder(int index)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceFrameOrBuilder

getFramesOrBuilderList()

public List<? extends FaceFrameOrBuilder> getFramesOrBuilderList()

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

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

getSegments(int index)

public FaceSegment getSegments(int index)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceSegment

getSegmentsBuilder(int index)

public FaceSegment.Builder getSegmentsBuilder(int index)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceSegment.Builder

getSegmentsBuilderList()

public List<FaceSegment.Builder> getSegmentsBuilderList()

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Returns
TypeDescription
List<Builder>

getSegmentsCount()

public int getSegmentsCount()

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Returns
TypeDescription
int

getSegmentsList()

public List<FaceSegment> getSegmentsList()

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Returns
TypeDescription
List<FaceSegment>

getSegmentsOrBuilder(int index)

public FaceSegmentOrBuilder getSegmentsOrBuilder(int index)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceSegmentOrBuilder

getSegmentsOrBuilderList()

public List<? extends FaceSegmentOrBuilder> getSegmentsOrBuilderList()

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

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

getThumbnail()

public ByteString getThumbnail()

Thumbnail of a representative face view (in JPEG format).

bytes thumbnail = 1;

Returns
TypeDescription
ByteString

The thumbnail.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FaceAnnotation other)

public FaceAnnotation.Builder mergeFrom(FaceAnnotation other)
Parameter
NameDescription
otherFaceAnnotation
Returns
TypeDescription
FaceAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFrames(int index)

public FaceAnnotation.Builder removeFrames(int index)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

removeSegments(int index)

public FaceAnnotation.Builder removeSegments(int index)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFrames(int index, FaceFrame value)

public FaceAnnotation.Builder setFrames(int index, FaceFrame value)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameters
NameDescription
indexint
valueFaceFrame
Returns
TypeDescription
FaceAnnotation.Builder

setFrames(int index, FaceFrame.Builder builderForValue)

public FaceAnnotation.Builder setFrames(int index, FaceFrame.Builder builderForValue)

All video frames where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceFrame frames = 3;

Parameters
NameDescription
indexint
builderForValueFaceFrame.Builder
Returns
TypeDescription
FaceAnnotation.Builder

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

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

setSegments(int index, FaceSegment value)

public FaceAnnotation.Builder setSegments(int index, FaceSegment value)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameters
NameDescription
indexint
valueFaceSegment
Returns
TypeDescription
FaceAnnotation.Builder

setSegments(int index, FaceSegment.Builder builderForValue)

public FaceAnnotation.Builder setSegments(int index, FaceSegment.Builder builderForValue)

All video segments where a face was detected.

repeated .google.cloud.videointelligence.v1beta2.FaceSegment segments = 2;

Parameters
NameDescription
indexint
builderForValueFaceSegment.Builder
Returns
TypeDescription
FaceAnnotation.Builder

setThumbnail(ByteString value)

public FaceAnnotation.Builder setThumbnail(ByteString value)

Thumbnail of a representative face view (in JPEG format).

bytes thumbnail = 1;

Parameter
NameDescription
valueByteString

The thumbnail to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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