Interface FaceRecognitionResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
FaceRecognitionResult,FaceRecognitionResult.Builder
@Generated
public interface FaceRecognitionResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.floatRecognition confidence.booleanThe [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasCelebrity
boolean hasCelebrity()The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;- Returns:
- Whether the celebrity field is set.
-
getCelebrity
Celebrity getCelebrity()The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1;- Returns:
- The celebrity.
-
getCelebrityOrBuilder
CelebrityOrBuilder getCelebrityOrBuilder()The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.
.google.cloud.vision.v1p4beta1.Celebrity celebrity = 1; -
getConfidence
float getConfidence()Recognition confidence. Range [0, 1].
float confidence = 2;- Returns:
- The confidence.
-