Class CelebrityRecognitionAnnotation (2.17.0)

public final class CelebrityRecognitionAnnotation extends GeneratedMessageV3 implements CelebrityRecognitionAnnotationOrBuilder

Celebrity recognition annotation per video.

Protobuf type google.cloud.videointelligence.v1p3beta1.CelebrityRecognitionAnnotation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CelebrityRecognitionAnnotation

Static Fields

CELEBRITY_TRACKS_FIELD_NUMBER

public static final int CELEBRITY_TRACKS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CelebrityRecognitionAnnotation getDefaultInstance()
Returns
TypeDescription
CelebrityRecognitionAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(CelebrityRecognitionAnnotation prototype)

public static CelebrityRecognitionAnnotation.Builder newBuilder(CelebrityRecognitionAnnotation prototype)
Parameter
NameDescription
prototypeCelebrityRecognitionAnnotation
Returns
TypeDescription
CelebrityRecognitionAnnotation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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