Class FaceDetectionAnnotation.Builder (2.48.0)

public static final class FaceDetectionAnnotation.Builder extends GeneratedMessageV3.Builder<FaceDetectionAnnotation.Builder> implements FaceDetectionAnnotationOrBuilder

Face detection annotation.

Protobuf type google.cloud.videointelligence.v1p3beta1.FaceDetectionAnnotation

Static Methods

getDescriptor()

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

Methods

addAllTracks(Iterable<? extends Track> values)

public FaceDetectionAnnotation.Builder addAllTracks(Iterable<? extends Track> values)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTracks(Track value)

public FaceDetectionAnnotation.Builder addTracks(Track value)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Parameter
Name Description
value Track
Returns
Type Description
FaceDetectionAnnotation.Builder

addTracks(Track.Builder builderForValue)

public FaceDetectionAnnotation.Builder addTracks(Track.Builder builderForValue)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

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

addTracks(int index, Track value)

public FaceDetectionAnnotation.Builder addTracks(int index, Track value)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

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

addTracks(int index, Track.Builder builderForValue)

public FaceDetectionAnnotation.Builder addTracks(int index, Track.Builder builderForValue)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

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

addTracksBuilder()

public Track.Builder addTracksBuilder()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Returns
Type Description
Track.Builder

addTracksBuilder(int index)

public Track.Builder addTracksBuilder(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
Track.Builder

build()

public FaceDetectionAnnotation build()
Returns
Type Description
FaceDetectionAnnotation

buildPartial()

public FaceDetectionAnnotation buildPartial()
Returns
Type Description
FaceDetectionAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThumbnail()

public FaceDetectionAnnotation.Builder clearThumbnail()

The thumbnail of a person's face.

bytes thumbnail = 4;

Returns
Type Description
FaceDetectionAnnotation.Builder

This builder for chaining.

clearTracks()

public FaceDetectionAnnotation.Builder clearTracks()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Returns
Type Description
FaceDetectionAnnotation.Builder

clone()

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

getDefaultInstanceForType()

public FaceDetectionAnnotation getDefaultInstanceForType()
Returns
Type Description
FaceDetectionAnnotation

getDescriptorForType()

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

getThumbnail()

public ByteString getThumbnail()

The thumbnail of a person's face.

bytes thumbnail = 4;

Returns
Type Description
ByteString

The thumbnail.

getTracks(int index)

public Track getTracks(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
Track

getTracksBuilder(int index)

public Track.Builder getTracksBuilder(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
Track.Builder

getTracksBuilderList()

public List<Track.Builder> getTracksBuilderList()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Returns
Type Description
List<Builder>

getTracksCount()

public int getTracksCount()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Returns
Type Description
int

getTracksList()

public List<Track> getTracksList()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Returns
Type Description
List<Track>

getTracksOrBuilder(int index)

public TrackOrBuilder getTracksOrBuilder(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
TrackOrBuilder

getTracksOrBuilderList()

public List<? extends TrackOrBuilder> getTracksOrBuilderList()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1p3beta1.TrackOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FaceDetectionAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTracks(int index)

public FaceDetectionAnnotation.Builder removeTracks(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
FaceDetectionAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setThumbnail(ByteString value)

public FaceDetectionAnnotation.Builder setThumbnail(ByteString value)

The thumbnail of a person's face.

bytes thumbnail = 4;

Parameter
Name Description
value ByteString

The thumbnail to set.

Returns
Type Description
FaceDetectionAnnotation.Builder

This builder for chaining.

setTracks(int index, Track value)

public FaceDetectionAnnotation.Builder setTracks(int index, Track value)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

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

setTracks(int index, Track.Builder builderForValue)

public FaceDetectionAnnotation.Builder setTracks(int index, Track.Builder builderForValue)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1p3beta1.Track tracks = 3;

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

setUnknownFields(UnknownFieldSet unknownFields)

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