Class CelebrityRecognitionAnnotation.Builder (2.82.0)

public static final class CelebrityRecognitionAnnotation.Builder extends GeneratedMessage.Builder<CelebrityRecognitionAnnotation.Builder> implements CelebrityRecognitionAnnotationOrBuilder

Celebrity recognition annotation per video.

Protobuf type google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation

Static Methods

getDescriptor()

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

Methods

addAllCelebrityTracks(Iterable<? extends CelebrityTrack> values)

public CelebrityRecognitionAnnotation.Builder addAllCelebrityTracks(Iterable<? extends CelebrityTrack> values)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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

addCelebrityTracks(CelebrityTrack value)

public CelebrityRecognitionAnnotation.Builder addCelebrityTracks(CelebrityTrack value)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Parameter
Name Description
value CelebrityTrack
Returns
Type Description
CelebrityRecognitionAnnotation.Builder

addCelebrityTracks(CelebrityTrack.Builder builderForValue)

public CelebrityRecognitionAnnotation.Builder addCelebrityTracks(CelebrityTrack.Builder builderForValue)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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

addCelebrityTracks(int index, CelebrityTrack value)

public CelebrityRecognitionAnnotation.Builder addCelebrityTracks(int index, CelebrityTrack value)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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

addCelebrityTracks(int index, CelebrityTrack.Builder builderForValue)

public CelebrityRecognitionAnnotation.Builder addCelebrityTracks(int index, CelebrityTrack.Builder builderForValue)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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

addCelebrityTracksBuilder()

public CelebrityTrack.Builder addCelebrityTracksBuilder()

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Returns
Type Description
CelebrityTrack.Builder

addCelebrityTracksBuilder(int index)

public CelebrityTrack.Builder addCelebrityTracksBuilder(int index)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.Builder

build()

public CelebrityRecognitionAnnotation build()
Returns
Type Description
CelebrityRecognitionAnnotation

buildPartial()

public CelebrityRecognitionAnnotation buildPartial()
Returns
Type Description
CelebrityRecognitionAnnotation

clear()

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

clearCelebrityTracks()

public CelebrityRecognitionAnnotation.Builder clearCelebrityTracks()

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Returns
Type Description
CelebrityRecognitionAnnotation.Builder

getCelebrityTracks(int index)

public CelebrityTrack getCelebrityTracks(int index)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack

getCelebrityTracksBuilder(int index)

public CelebrityTrack.Builder getCelebrityTracksBuilder(int index)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrack.Builder

getCelebrityTracksBuilderList()

public List<CelebrityTrack.Builder> getCelebrityTracksBuilderList()

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Returns
Type Description
List<Builder>

getCelebrityTracksCount()

public int getCelebrityTracksCount()

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Returns
Type Description
int

getCelebrityTracksList()

public List<CelebrityTrack> getCelebrityTracksList()

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Returns
Type Description
List<CelebrityTrack>

getCelebrityTracksOrBuilder(int index)

public CelebrityTrackOrBuilder getCelebrityTracksOrBuilder(int index)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityTrackOrBuilder

getCelebrityTracksOrBuilderList()

public List<? extends CelebrityTrackOrBuilder> getCelebrityTracksOrBuilderList()

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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

getDefaultInstanceForType()

public CelebrityRecognitionAnnotation getDefaultInstanceForType()
Returns
Type Description
CelebrityRecognitionAnnotation

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CelebrityRecognitionAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeCelebrityTracks(int index)

public CelebrityRecognitionAnnotation.Builder removeCelebrityTracks(int index)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

Parameter
Name Description
index int
Returns
Type Description
CelebrityRecognitionAnnotation.Builder

setCelebrityTracks(int index, CelebrityTrack value)

public CelebrityRecognitionAnnotation.Builder setCelebrityTracks(int index, CelebrityTrack value)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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

setCelebrityTracks(int index, CelebrityTrack.Builder builderForValue)

public CelebrityRecognitionAnnotation.Builder setCelebrityTracks(int index, CelebrityTrack.Builder builderForValue)

The tracks detected from the input video, including recognized celebrities and other detected faces in the video.

repeated .google.cloud.videointelligence.v1p3beta1.CelebrityTrack celebrity_tracks = 1;

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