Class FaceRecognitionResult (3.38.0)

public final class FaceRecognitionResult extends GeneratedMessageV3 implements FaceRecognitionResultOrBuilder

Information about a face's identity.

Protobuf type google.cloud.vision.v1p4beta1.FaceRecognitionResult

Static Fields

CELEBRITY_FIELD_NUMBER

public static final int CELEBRITY_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIDENCE_FIELD_NUMBER

public static final int CONFIDENCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FaceRecognitionResult getDefaultInstance()
Returns
TypeDescription
FaceRecognitionResult

getDescriptor()

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

newBuilder()

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

newBuilder(FaceRecognitionResult prototype)

public static FaceRecognitionResult.Builder newBuilder(FaceRecognitionResult prototype)
Parameter
NameDescription
prototypeFaceRecognitionResult
Returns
TypeDescription
FaceRecognitionResult.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCelebrity()

public Celebrity getCelebrity()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
Celebrity

The celebrity.

getCelebrityOrBuilder()

public CelebrityOrBuilder getCelebrityOrBuilder()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
CelebrityOrBuilder

getConfidence()

public float getConfidence()

Recognition confidence. Range [0, 1].

float confidence = 2;

Returns
TypeDescription
float

The confidence.

getDefaultInstanceForType()

public FaceRecognitionResult getDefaultInstanceForType()
Returns
TypeDescription
FaceRecognitionResult

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasCelebrity()

public boolean hasCelebrity()

The Celebrity that this face was matched to.

.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;

Returns
TypeDescription
boolean

Whether the celebrity 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 FaceRecognitionResult.Builder newBuilderForType()
Returns
TypeDescription
FaceRecognitionResult.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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