Class FaceFrame.Builder (2.51.0)

public static final class FaceFrame.Builder extends GeneratedMessageV3.Builder<FaceFrame.Builder> implements FaceFrameOrBuilder

Video frame level annotation results for face detection.

Protobuf type google.cloud.videointelligence.v1beta2.FaceFrame

Implements

FaceFrameOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllNormalizedBoundingBoxes(Iterable<? extends NormalizedBoundingBox> values)

public FaceFrame.Builder addAllNormalizedBoundingBoxes(Iterable<? extends NormalizedBoundingBox> values)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.videointelligence.v1beta2.NormalizedBoundingBox>
Returns
Type Description
FaceFrame.Builder

addNormalizedBoundingBoxes(NormalizedBoundingBox value)

public FaceFrame.Builder addNormalizedBoundingBoxes(NormalizedBoundingBox value)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
value NormalizedBoundingBox
Returns
Type Description
FaceFrame.Builder

addNormalizedBoundingBoxes(NormalizedBoundingBox.Builder builderForValue)

public FaceFrame.Builder addNormalizedBoundingBoxes(NormalizedBoundingBox.Builder builderForValue)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
builderForValue NormalizedBoundingBox.Builder
Returns
Type Description
FaceFrame.Builder

addNormalizedBoundingBoxes(int index, NormalizedBoundingBox value)

public FaceFrame.Builder addNormalizedBoundingBoxes(int index, NormalizedBoundingBox value)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameters
Name Description
index int
value NormalizedBoundingBox
Returns
Type Description
FaceFrame.Builder

addNormalizedBoundingBoxes(int index, NormalizedBoundingBox.Builder builderForValue)

public FaceFrame.Builder addNormalizedBoundingBoxes(int index, NormalizedBoundingBox.Builder builderForValue)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameters
Name Description
index int
builderForValue NormalizedBoundingBox.Builder
Returns
Type Description
FaceFrame.Builder

addNormalizedBoundingBoxesBuilder()

public NormalizedBoundingBox.Builder addNormalizedBoundingBoxesBuilder()

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Returns
Type Description
NormalizedBoundingBox.Builder

addNormalizedBoundingBoxesBuilder(int index)

public NormalizedBoundingBox.Builder addNormalizedBoundingBoxesBuilder(int index)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedBoundingBox.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FaceFrame build()
Returns
Type Description
FaceFrame

buildPartial()

public FaceFrame buildPartial()
Returns
Type Description
FaceFrame

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNormalizedBoundingBoxes()

public FaceFrame.Builder clearNormalizedBoundingBoxes()

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Returns
Type Description
FaceFrame.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTimeOffset()

public FaceFrame.Builder clearTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
FaceFrame.Builder

clone()

public FaceFrame.Builder clone()
Returns
Type Description
FaceFrame.Builder
Overrides

getDefaultInstanceForType()

public FaceFrame getDefaultInstanceForType()
Returns
Type Description
FaceFrame

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNormalizedBoundingBoxes(int index)

public NormalizedBoundingBox getNormalizedBoundingBoxes(int index)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedBoundingBox

getNormalizedBoundingBoxesBuilder(int index)

public NormalizedBoundingBox.Builder getNormalizedBoundingBoxesBuilder(int index)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedBoundingBox.Builder

getNormalizedBoundingBoxesBuilderList()

public List<NormalizedBoundingBox.Builder> getNormalizedBoundingBoxesBuilderList()

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Returns
Type Description
List<Builder>

getNormalizedBoundingBoxesCount()

public int getNormalizedBoundingBoxesCount()

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Returns
Type Description
int

getNormalizedBoundingBoxesList()

public List<NormalizedBoundingBox> getNormalizedBoundingBoxesList()

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Returns
Type Description
List<NormalizedBoundingBox>

getNormalizedBoundingBoxesOrBuilder(int index)

public NormalizedBoundingBoxOrBuilder getNormalizedBoundingBoxesOrBuilder(int index)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
index int
Returns
Type Description
NormalizedBoundingBoxOrBuilder

getNormalizedBoundingBoxesOrBuilderList()

public List<? extends NormalizedBoundingBoxOrBuilder> getNormalizedBoundingBoxesOrBuilderList()

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1beta2.NormalizedBoundingBoxOrBuilder>

getTimeOffset()

public Duration getTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Duration

The timeOffset.

getTimeOffsetBuilder()

public Duration.Builder getTimeOffsetBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
Builder

getTimeOffsetOrBuilder()

public DurationOrBuilder getTimeOffsetOrBuilder()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
DurationOrBuilder

hasTimeOffset()

public boolean hasTimeOffset()

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Returns
Type Description
boolean

Whether the timeOffset field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FaceFrame other)

public FaceFrame.Builder mergeFrom(FaceFrame other)
Parameter
Name Description
other FaceFrame
Returns
Type Description
FaceFrame.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FaceFrame.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceFrame.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FaceFrame.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FaceFrame.Builder
Overrides

mergeTimeOffset(Duration value)

public FaceFrame.Builder mergeTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
FaceFrame.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FaceFrame.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FaceFrame.Builder
Overrides

removeNormalizedBoundingBoxes(int index)

public FaceFrame.Builder removeNormalizedBoundingBoxes(int index)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameter
Name Description
index int
Returns
Type Description
FaceFrame.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNormalizedBoundingBoxes(int index, NormalizedBoundingBox value)

public FaceFrame.Builder setNormalizedBoundingBoxes(int index, NormalizedBoundingBox value)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameters
Name Description
index int
value NormalizedBoundingBox
Returns
Type Description
FaceFrame.Builder

setNormalizedBoundingBoxes(int index, NormalizedBoundingBox.Builder builderForValue)

public FaceFrame.Builder setNormalizedBoundingBoxes(int index, NormalizedBoundingBox.Builder builderForValue)

Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame.

repeated .google.cloud.videointelligence.v1beta2.NormalizedBoundingBox normalized_bounding_boxes = 1;

Parameters
Name Description
index int
builderForValue NormalizedBoundingBox.Builder
Returns
Type Description
FaceFrame.Builder

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

public FaceFrame.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
FaceFrame.Builder
Overrides

setTimeOffset(Duration value)

public FaceFrame.Builder setTimeOffset(Duration value)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
value Duration
Returns
Type Description
FaceFrame.Builder

setTimeOffset(Duration.Builder builderForValue)

public FaceFrame.Builder setTimeOffset(Duration.Builder builderForValue)

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

.google.protobuf.Duration time_offset = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
FaceFrame.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final FaceFrame.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
FaceFrame.Builder
Overrides