Class CelebrityRecognitionAnnotation.Builder (2.44.0)

public static final class CelebrityRecognitionAnnotation.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CelebrityRecognitionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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