Class CelebrityTrack (2.29.0)

public final class CelebrityTrack extends GeneratedMessageV3 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 Fields

CELEBRITIES_FIELD_NUMBER

public static final int CELEBRITIES_FIELD_NUMBER
Field Value
TypeDescription
int

FACE_TRACK_FIELD_NUMBER

public static final int FACE_TRACK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CelebrityTrack getDefaultInstance()
Returns
TypeDescription
CelebrityTrack

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CelebrityTrack.Builder newBuilder()
Returns
TypeDescription
CelebrityTrack.Builder

newBuilder(CelebrityTrack prototype)

public static CelebrityTrack.Builder newBuilder(CelebrityTrack prototype)
Parameter
NameDescription
prototypeCelebrityTrack
Returns
TypeDescription
CelebrityTrack.Builder

parseDelimitedFrom(InputStream input)

public static CelebrityTrack parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CelebrityTrack parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CelebrityTrack parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CelebrityTrack parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CelebrityTrack parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CelebrityTrack parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CelebrityTrack parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CelebrityTrack parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CelebrityTrack parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CelebrityTrack parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CelebrityTrack parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CelebrityTrack parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CelebrityTrack
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CelebrityTrack> parser()
Returns
TypeDescription
Parser<CelebrityTrack>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getFaceTrack()

public Track getFaceTrack()

A track of a person's face.

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

Returns
TypeDescription
Track

The faceTrack.

getFaceTrackOrBuilder()

public TrackOrBuilder getFaceTrackOrBuilder()

A track of a person's face.

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

Returns
TypeDescription
TrackOrBuilder

getParserForType()

public Parser<CelebrityTrack> getParserForType()
Returns
TypeDescription
Parser<CelebrityTrack>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CelebrityTrack.Builder newBuilderForType()
Returns
TypeDescription
CelebrityTrack.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CelebrityTrack.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CelebrityTrack.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CelebrityTrack.Builder toBuilder()
Returns
TypeDescription
CelebrityTrack.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException