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
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static FaceRecognitionResult getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static FaceRecognitionResult.Builder newBuilder()
Returns
newBuilder(FaceRecognitionResult prototype)
public static FaceRecognitionResult.Builder newBuilder(FaceRecognitionResult prototype)
Parameter
Returns
public static FaceRecognitionResult parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static FaceRecognitionResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static FaceRecognitionResult parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FaceRecognitionResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static FaceRecognitionResult parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FaceRecognitionResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FaceRecognitionResult parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static FaceRecognitionResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static FaceRecognitionResult parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static FaceRecognitionResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static FaceRecognitionResult parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FaceRecognitionResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<FaceRecognitionResult> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCelebrity()
public Celebrity getCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
getCelebrityOrBuilder()
public CelebrityOrBuilder getCelebrityOrBuilder()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
getConfidence()
public float getConfidence()
Recognition confidence. Range [0, 1].
float confidence = 2;
Returns
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public FaceRecognitionResult getDefaultInstanceForType()
Returns
getParserForType()
public Parser<FaceRecognitionResult> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCelebrity()
public boolean hasCelebrity()
The Celebrity that this face was
matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;
Returns
Type | Description |
boolean | Whether the celebrity field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public FaceRecognitionResult.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FaceRecognitionResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public FaceRecognitionResult.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions