Class CelebrityTrack.Builder (2.53.0)

public static final class CelebrityTrack.Builder extends GeneratedMessageV3.Builder<CelebrityTrack.Builder> implements CelebrityTrackOrBuilder

The annotation result of a celebrity face track. RecognizedCelebrity field could be empty if the face track does not have any matched celebrities.

Protobuf type google.cloud.videointelligence.v1p3beta1.CelebrityTrack

Static Methods

getDescriptor()

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

Methods

addAllCelebrities(Iterable<? extends CelebrityTrack.RecognizedCelebrity> values)

public CelebrityTrack.Builder addAllCelebrities(Iterable<? extends CelebrityTrack.RecognizedCelebrity> values)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

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

addCelebrities(CelebrityTrack.RecognizedCelebrity value)

public CelebrityTrack.Builder addCelebrities(CelebrityTrack.RecognizedCelebrity value)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
value CelebrityTrack.RecognizedCelebrity
Returns
Type Description
CelebrityTrack.Builder

addCelebrities(CelebrityTrack.RecognizedCelebrity.Builder builderForValue)

public CelebrityTrack.Builder addCelebrities(CelebrityTrack.RecognizedCelebrity.Builder builderForValue)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
builderForValue CelebrityTrack.RecognizedCelebrity.Builder
Returns
Type Description
CelebrityTrack.Builder

addCelebrities(int index, CelebrityTrack.RecognizedCelebrity value)

public CelebrityTrack.Builder addCelebrities(int index, CelebrityTrack.RecognizedCelebrity value)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameters
Name Description
index int
value CelebrityTrack.RecognizedCelebrity
Returns
Type Description
CelebrityTrack.Builder

addCelebrities(int index, CelebrityTrack.RecognizedCelebrity.Builder builderForValue)

public CelebrityTrack.Builder addCelebrities(int index, CelebrityTrack.RecognizedCelebrity.Builder builderForValue)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameters
Name Description
index int
builderForValue CelebrityTrack.RecognizedCelebrity.Builder
Returns
Type Description
CelebrityTrack.Builder

addCelebritiesBuilder()

public CelebrityTrack.RecognizedCelebrity.Builder addCelebritiesBuilder()

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Returns
Type Description
CelebrityTrack.RecognizedCelebrity.Builder

addCelebritiesBuilder(int index)

public CelebrityTrack.RecognizedCelebrity.Builder addCelebritiesBuilder(int index)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.RecognizedCelebrity.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CelebrityTrack build()
Returns
Type Description
CelebrityTrack

buildPartial()

public CelebrityTrack buildPartial()
Returns
Type Description
CelebrityTrack

clear()

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

clearCelebrities()

public CelebrityTrack.Builder clearCelebrities()

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Returns
Type Description
CelebrityTrack.Builder

clearFaceTrack()

public CelebrityTrack.Builder clearFaceTrack()

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Returns
Type Description
CelebrityTrack.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCelebrities(int index)

public CelebrityTrack.RecognizedCelebrity getCelebrities(int index)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.RecognizedCelebrity

getCelebritiesBuilder(int index)

public CelebrityTrack.RecognizedCelebrity.Builder getCelebritiesBuilder(int index)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.RecognizedCelebrity.Builder

getCelebritiesBuilderList()

public List<CelebrityTrack.RecognizedCelebrity.Builder> getCelebritiesBuilderList()

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Returns
Type Description
List<Builder>

getCelebritiesCount()

public int getCelebritiesCount()

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Returns
Type Description
int

getCelebritiesList()

public List<CelebrityTrack.RecognizedCelebrity> getCelebritiesList()

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Returns
Type Description
List<RecognizedCelebrity>

getCelebritiesOrBuilder(int index)

public CelebrityTrack.RecognizedCelebrityOrBuilder getCelebritiesOrBuilder(int index)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.RecognizedCelebrityOrBuilder

getCelebritiesOrBuilderList()

public List<? extends CelebrityTrack.RecognizedCelebrityOrBuilder> getCelebritiesOrBuilderList()

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

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

getDefaultInstanceForType()

public CelebrityTrack getDefaultInstanceForType()
Returns
Type Description
CelebrityTrack

getDescriptorForType()

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

getFaceTrack()

public Track getFaceTrack()

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Returns
Type Description
Track

The faceTrack.

getFaceTrackBuilder()

public Track.Builder getFaceTrackBuilder()

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Returns
Type Description
Track.Builder

getFaceTrackOrBuilder()

public TrackOrBuilder getFaceTrackOrBuilder()

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Returns
Type Description
TrackOrBuilder

hasFaceTrack()

public boolean hasFaceTrack()

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Returns
Type Description
boolean

Whether the faceTrack field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFaceTrack(Track value)

public CelebrityTrack.Builder mergeFaceTrack(Track value)

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Parameter
Name Description
value Track
Returns
Type Description
CelebrityTrack.Builder

mergeFrom(CelebrityTrack other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCelebrities(int index)

public CelebrityTrack.Builder removeCelebrities(int index)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.Builder

setCelebrities(int index, CelebrityTrack.RecognizedCelebrity value)

public CelebrityTrack.Builder setCelebrities(int index, CelebrityTrack.RecognizedCelebrity value)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameters
Name Description
index int
value CelebrityTrack.RecognizedCelebrity
Returns
Type Description
CelebrityTrack.Builder

setCelebrities(int index, CelebrityTrack.RecognizedCelebrity.Builder builderForValue)

public CelebrityTrack.Builder setCelebrities(int index, CelebrityTrack.RecognizedCelebrity.Builder builderForValue)

Top N match of the celebrities for the face in this track.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity celebrities = 1;

Parameters
Name Description
index int
builderForValue CelebrityTrack.RecognizedCelebrity.Builder
Returns
Type Description
CelebrityTrack.Builder

setFaceTrack(Track value)

public CelebrityTrack.Builder setFaceTrack(Track value)

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

Parameter
Name Description
value Track
Returns
Type Description
CelebrityTrack.Builder

setFaceTrack(Track.Builder builderForValue)

public CelebrityTrack.Builder setFaceTrack(Track.Builder builderForValue)

A track of a person's face.

.google.cloud.videointelligence.v1p3beta1.Track face_track = 3;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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