Interface FaceRecognitionResultOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    FaceRecognitionResult, FaceRecognitionResult.Builder

    public interface FaceRecognitionResultOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Celebrity getCelebrity()
      The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.
      CelebrityOrBuilder getCelebrityOrBuilder()
      The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.
      float getConfidence()
      Recognition confidence.
      boolean hasCelebrity()
      The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was matched to.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • 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.