Class FaceDetectionAnnotation (2.45.0)

public final class FaceDetectionAnnotation extends GeneratedMessageV3 implements FaceDetectionAnnotationOrBuilder

Face detection annotation.

Protobuf type google.cloud.videointelligence.v1.FaceDetectionAnnotation

Static Fields

THUMBNAIL_FIELD_NUMBER

public static final int THUMBNAIL_FIELD_NUMBER
Field Value
Type Description
int

TRACKS_FIELD_NUMBER

public static final int TRACKS_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FaceDetectionAnnotation getDefaultInstance()
Returns
Type Description
FaceDetectionAnnotation

getDescriptor()

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

newBuilder()

public static FaceDetectionAnnotation.Builder newBuilder()
Returns
Type Description
FaceDetectionAnnotation.Builder

newBuilder(FaceDetectionAnnotation prototype)

public static FaceDetectionAnnotation.Builder newBuilder(FaceDetectionAnnotation prototype)
Parameter
Name Description
prototype FaceDetectionAnnotation
Returns
Type Description
FaceDetectionAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static FaceDetectionAnnotation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceDetectionAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FaceDetectionAnnotation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FaceDetectionAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FaceDetectionAnnotation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FaceDetectionAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FaceDetectionAnnotation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceDetectionAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FaceDetectionAnnotation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FaceDetectionAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FaceDetectionAnnotation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FaceDetectionAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FaceDetectionAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FaceDetectionAnnotation> parser()
Returns
Type Description
Parser<FaceDetectionAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public FaceDetectionAnnotation getDefaultInstanceForType()
Returns
Type Description
FaceDetectionAnnotation

getParserForType()

public Parser<FaceDetectionAnnotation> getParserForType()
Returns
Type Description
Parser<FaceDetectionAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getThumbnail()

public ByteString getThumbnail()

The thumbnail of a person's face.

bytes thumbnail = 4;

Returns
Type Description
ByteString

The thumbnail.

getTracks(int index)

public Track getTracks(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
Track

getTracksCount()

public int getTracksCount()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1.Track tracks = 3;

Returns
Type Description
int

getTracksList()

public List<Track> getTracksList()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1.Track tracks = 3;

Returns
Type Description
List<Track>

getTracksOrBuilder(int index)

public TrackOrBuilder getTracksOrBuilder(int index)

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1.Track tracks = 3;

Parameter
Name Description
index int
Returns
Type Description
TrackOrBuilder

getTracksOrBuilderList()

public List<? extends TrackOrBuilder> getTracksOrBuilderList()

The face tracks with attributes.

repeated .google.cloud.videointelligence.v1.Track tracks = 3;

Returns
Type Description
List<? extends com.google.cloud.videointelligence.v1.TrackOrBuilder>

getVersion()

public String getVersion()

Feature version.

string version = 5;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Feature version.

string version = 5;

Returns
Type Description
ByteString

The bytes for version.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FaceDetectionAnnotation.Builder newBuilderForType()
Returns
Type Description
FaceDetectionAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FaceDetectionAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FaceDetectionAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FaceDetectionAnnotation.Builder toBuilder()
Returns
Type Description
FaceDetectionAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException