Class CelebrityTrack.Builder (2.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrity>
Returns
TypeDescription
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
NameDescription
valueCelebrityTrack.RecognizedCelebrity
Returns
TypeDescription
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
NameDescription
builderForValueCelebrityTrack.RecognizedCelebrity.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCelebrityTrack.RecognizedCelebrity
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCelebrityTrack.RecognizedCelebrity.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CelebrityTrack.RecognizedCelebrity.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CelebrityTrack build()
Returns
TypeDescription
CelebrityTrack

buildPartial()

public CelebrityTrack buildPartial()
Returns
TypeDescription
CelebrityTrack

clear()

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

clearFaceTrack()

public CelebrityTrack.Builder clearFaceTrack()

A track of a person's face.

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

Returns
TypeDescription
CelebrityTrack.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CelebrityTrack.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.videointelligence.v1p3beta1.CelebrityTrack.RecognizedCelebrityOrBuilder>

getDefaultInstanceForType()

public CelebrityTrack getDefaultInstanceForType()
Returns
TypeDescription
CelebrityTrack

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFaceTrack()

public Track getFaceTrack()

A track of a person's face.

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

Returns
TypeDescription
Track

The faceTrack.

getFaceTrackBuilder()

public Track.Builder getFaceTrackBuilder()

A track of a person's face.

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

Returns
TypeDescription
Track.Builder

getFaceTrackOrBuilder()

public TrackOrBuilder getFaceTrackOrBuilder()

A track of a person's face.

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

Returns
TypeDescription
TrackOrBuilder

hasFaceTrack()

public boolean hasFaceTrack()

A track of a person's face.

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

Returns
TypeDescription
boolean

Whether the faceTrack field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTrack
Returns
TypeDescription
CelebrityTrack.Builder

mergeFrom(CelebrityTrack other)

public CelebrityTrack.Builder mergeFrom(CelebrityTrack other)
Parameter
NameDescription
otherCelebrityTrack
Returns
TypeDescription
CelebrityTrack.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CelebrityTrack.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCelebrityTrack.RecognizedCelebrity
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCelebrityTrack.RecognizedCelebrity.Builder
Returns
TypeDescription
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
NameDescription
valueTrack
Returns
TypeDescription
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
NameDescription
builderForValueTrack.Builder
Returns
TypeDescription
CelebrityTrack.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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