Class CelebrityRecognitionAnnotation.Builder (2.2.10)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CelebrityRecognitionAnnotation build()
Returns
TypeDescription
CelebrityRecognitionAnnotation

buildPartial()

public CelebrityRecognitionAnnotation buildPartial()
Returns
TypeDescription
CelebrityRecognitionAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CelebrityRecognitionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
CelebrityRecognitionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CelebrityRecognitionAnnotation other)

public CelebrityRecognitionAnnotation.Builder mergeFrom(CelebrityRecognitionAnnotation other)
Parameter
NameDescription
otherCelebrityRecognitionAnnotation
Returns
TypeDescription
CelebrityRecognitionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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