Class FaceDetectionAnnotation (2.2.1)

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
TypeDescription
int

TRACKS_FIELD_NUMBER

public static final int TRACKS_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FaceDetectionAnnotation getDefaultInstance()
Returns
TypeDescription
FaceDetectionAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(FaceDetectionAnnotation prototype)

public static FaceDetectionAnnotation.Builder newBuilder(FaceDetectionAnnotation prototype)
Parameter
NameDescription
prototypeFaceDetectionAnnotation
Returns
TypeDescription
FaceDetectionAnnotation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public FaceDetectionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
FaceDetectionAnnotation

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getThumbnail()

public ByteString getThumbnail()

The thumbnail of a person's face.

bytes thumbnail = 4;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Track

getTracksCount()

public int getTracksCount()

The face tracks with attributes.

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

Returns
TypeDescription
int

getTracksList()

public List<Track> getTracksList()

The face tracks with attributes.

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

Returns
TypeDescription
List<Track>

getTracksOrBuilder(int index)

public TrackOrBuilder getTracksOrBuilder(int index)

The face tracks with attributes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TrackOrBuilder

getTracksOrBuilderList()

public List<? extends TrackOrBuilder> getTracksOrBuilderList()

The face tracks with attributes.

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

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

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVersion()

public String getVersion()

Feature version.

string version = 5;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Feature version.

string version = 5;

Returns
TypeDescription
ByteString

The bytes for version.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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