Class FaceAnnotation.Builder

  • All Implemented Interfaces:
    FaceAnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    FaceAnnotation

    public static final class FaceAnnotation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
    implements FaceAnnotationOrBuilder
     A face annotation object contains the results of face detection.
     
    Protobuf type google.cloud.vision.v1p3beta1.FaceAnnotation
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • clear

        public FaceAnnotation.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • getDefaultInstanceForType

        public FaceAnnotation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public FaceAnnotation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public FaceAnnotation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public FaceAnnotation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • setField

        public FaceAnnotation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • clearField

        public FaceAnnotation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • clearOneof

        public FaceAnnotation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • setRepeatedField

        public FaceAnnotation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • addRepeatedField

        public FaceAnnotation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • mergeFrom

        public FaceAnnotation.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FaceAnnotation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • mergeFrom

        public FaceAnnotation.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FaceAnnotation.Builder>
        Throws:
        IOException
      • hasBoundingPoly

        public boolean hasBoundingPoly()
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
        Specified by:
        hasBoundingPoly in interface FaceAnnotationOrBuilder
        Returns:
        Whether the boundingPoly field is set.
      • getBoundingPoly

        public BoundingPoly getBoundingPoly()
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
        Specified by:
        getBoundingPoly in interface FaceAnnotationOrBuilder
        Returns:
        The boundingPoly.
      • setBoundingPoly

        public FaceAnnotation.Builder setBoundingPoly​(BoundingPoly value)
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      • setBoundingPoly

        public FaceAnnotation.Builder setBoundingPoly​(BoundingPoly.Builder builderForValue)
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      • mergeBoundingPoly

        public FaceAnnotation.Builder mergeBoundingPoly​(BoundingPoly value)
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      • clearBoundingPoly

        public FaceAnnotation.Builder clearBoundingPoly()
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      • getBoundingPolyBuilder

        public BoundingPoly.Builder getBoundingPolyBuilder()
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
      • getBoundingPolyOrBuilder

        public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
         The bounding polygon around the face. The coordinates of the bounding box
         are in the original image's scale, as returned in `ImageParams`.
         The bounding box is computed to "frame" the face in accordance with human
         expectations. It is based on the landmarker results.
         Note that one or more x and/or y coordinates may not be generated in the
         `BoundingPoly` (the polygon will be unbounded) if only a partial face
         appears in the image to be annotated.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 1;
        Specified by:
        getBoundingPolyOrBuilder in interface FaceAnnotationOrBuilder
      • hasFdBoundingPoly

        public boolean hasFdBoundingPoly()
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
        Specified by:
        hasFdBoundingPoly in interface FaceAnnotationOrBuilder
        Returns:
        Whether the fdBoundingPoly field is set.
      • getFdBoundingPoly

        public BoundingPoly getFdBoundingPoly()
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
        Specified by:
        getFdBoundingPoly in interface FaceAnnotationOrBuilder
        Returns:
        The fdBoundingPoly.
      • setFdBoundingPoly

        public FaceAnnotation.Builder setFdBoundingPoly​(BoundingPoly value)
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      • setFdBoundingPoly

        public FaceAnnotation.Builder setFdBoundingPoly​(BoundingPoly.Builder builderForValue)
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      • mergeFdBoundingPoly

        public FaceAnnotation.Builder mergeFdBoundingPoly​(BoundingPoly value)
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      • clearFdBoundingPoly

        public FaceAnnotation.Builder clearFdBoundingPoly()
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      • getFdBoundingPolyBuilder

        public BoundingPoly.Builder getFdBoundingPolyBuilder()
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
      • getFdBoundingPolyOrBuilder

        public BoundingPolyOrBuilder getFdBoundingPolyOrBuilder()
         The `fd_bounding_poly` bounding polygon is tighter than the
         `boundingPoly`, and encloses only the skin part of the face. Typically, it
         is used to eliminate the face from any image analysis that detects the
         "amount of skin" visible in an image. It is not based on the
         landmarker results, only on the initial face detection, hence
         the <code>fd</code> (face detection) prefix.
         
        .google.cloud.vision.v1p3beta1.BoundingPoly fd_bounding_poly = 2;
        Specified by:
        getFdBoundingPolyOrBuilder in interface FaceAnnotationOrBuilder
      • getLandmarksCount

        public int getLandmarksCount()
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
        Specified by:
        getLandmarksCount in interface FaceAnnotationOrBuilder
      • clearLandmarks

        public FaceAnnotation.Builder clearLandmarks()
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
      • removeLandmarks

        public FaceAnnotation.Builder removeLandmarks​(int index)
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
      • getLandmarksBuilder

        public FaceAnnotation.Landmark.Builder getLandmarksBuilder​(int index)
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
      • addLandmarksBuilder

        public FaceAnnotation.Landmark.Builder addLandmarksBuilder()
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
      • addLandmarksBuilder

        public FaceAnnotation.Landmark.Builder addLandmarksBuilder​(int index)
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
      • getLandmarksBuilderList

        public List<FaceAnnotation.Landmark.Builder> getLandmarksBuilderList()
         Detected face landmarks.
         
        repeated .google.cloud.vision.v1p3beta1.FaceAnnotation.Landmark landmarks = 3;
      • getRollAngle

        public float getRollAngle()
         Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
         of the face relative to the image vertical about the axis perpendicular to
         the face. Range [-180,180].
         
        float roll_angle = 4;
        Specified by:
        getRollAngle in interface FaceAnnotationOrBuilder
        Returns:
        The rollAngle.
      • setRollAngle

        public FaceAnnotation.Builder setRollAngle​(float value)
         Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
         of the face relative to the image vertical about the axis perpendicular to
         the face. Range [-180,180].
         
        float roll_angle = 4;
        Parameters:
        value - The rollAngle to set.
        Returns:
        This builder for chaining.
      • clearRollAngle

        public FaceAnnotation.Builder clearRollAngle()
         Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
         of the face relative to the image vertical about the axis perpendicular to
         the face. Range [-180,180].
         
        float roll_angle = 4;
        Returns:
        This builder for chaining.
      • getPanAngle

        public float getPanAngle()
         Yaw angle, which indicates the leftward/rightward angle that the face is
         pointing relative to the vertical plane perpendicular to the image. Range
         [-180,180].
         
        float pan_angle = 5;
        Specified by:
        getPanAngle in interface FaceAnnotationOrBuilder
        Returns:
        The panAngle.
      • setPanAngle

        public FaceAnnotation.Builder setPanAngle​(float value)
         Yaw angle, which indicates the leftward/rightward angle that the face is
         pointing relative to the vertical plane perpendicular to the image. Range
         [-180,180].
         
        float pan_angle = 5;
        Parameters:
        value - The panAngle to set.
        Returns:
        This builder for chaining.
      • clearPanAngle

        public FaceAnnotation.Builder clearPanAngle()
         Yaw angle, which indicates the leftward/rightward angle that the face is
         pointing relative to the vertical plane perpendicular to the image. Range
         [-180,180].
         
        float pan_angle = 5;
        Returns:
        This builder for chaining.
      • getTiltAngle

        public float getTiltAngle()
         Pitch angle, which indicates the upwards/downwards angle that the face is
         pointing relative to the image's horizontal plane. Range [-180,180].
         
        float tilt_angle = 6;
        Specified by:
        getTiltAngle in interface FaceAnnotationOrBuilder
        Returns:
        The tiltAngle.
      • setTiltAngle

        public FaceAnnotation.Builder setTiltAngle​(float value)
         Pitch angle, which indicates the upwards/downwards angle that the face is
         pointing relative to the image's horizontal plane. Range [-180,180].
         
        float tilt_angle = 6;
        Parameters:
        value - The tiltAngle to set.
        Returns:
        This builder for chaining.
      • clearTiltAngle

        public FaceAnnotation.Builder clearTiltAngle()
         Pitch angle, which indicates the upwards/downwards angle that the face is
         pointing relative to the image's horizontal plane. Range [-180,180].
         
        float tilt_angle = 6;
        Returns:
        This builder for chaining.
      • getDetectionConfidence

        public float getDetectionConfidence()
         Detection confidence. Range [0, 1].
         
        float detection_confidence = 7;
        Specified by:
        getDetectionConfidence in interface FaceAnnotationOrBuilder
        Returns:
        The detectionConfidence.
      • setDetectionConfidence

        public FaceAnnotation.Builder setDetectionConfidence​(float value)
         Detection confidence. Range [0, 1].
         
        float detection_confidence = 7;
        Parameters:
        value - The detectionConfidence to set.
        Returns:
        This builder for chaining.
      • clearDetectionConfidence

        public FaceAnnotation.Builder clearDetectionConfidence()
         Detection confidence. Range [0, 1].
         
        float detection_confidence = 7;
        Returns:
        This builder for chaining.
      • getLandmarkingConfidence

        public float getLandmarkingConfidence()
         Face landmarking confidence. Range [0, 1].
         
        float landmarking_confidence = 8;
        Specified by:
        getLandmarkingConfidence in interface FaceAnnotationOrBuilder
        Returns:
        The landmarkingConfidence.
      • setLandmarkingConfidence

        public FaceAnnotation.Builder setLandmarkingConfidence​(float value)
         Face landmarking confidence. Range [0, 1].
         
        float landmarking_confidence = 8;
        Parameters:
        value - The landmarkingConfidence to set.
        Returns:
        This builder for chaining.
      • clearLandmarkingConfidence

        public FaceAnnotation.Builder clearLandmarkingConfidence()
         Face landmarking confidence. Range [0, 1].
         
        float landmarking_confidence = 8;
        Returns:
        This builder for chaining.
      • getJoyLikelihoodValue

        public int getJoyLikelihoodValue()
         Joy likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9;
        Specified by:
        getJoyLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for joyLikelihood.
      • setJoyLikelihoodValue

        public FaceAnnotation.Builder setJoyLikelihoodValue​(int value)
         Joy likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9;
        Parameters:
        value - The enum numeric value on the wire for joyLikelihood to set.
        Returns:
        This builder for chaining.
      • setJoyLikelihood

        public FaceAnnotation.Builder setJoyLikelihood​(Likelihood value)
         Joy likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9;
        Parameters:
        value - The joyLikelihood to set.
        Returns:
        This builder for chaining.
      • clearJoyLikelihood

        public FaceAnnotation.Builder clearJoyLikelihood()
         Joy likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood joy_likelihood = 9;
        Returns:
        This builder for chaining.
      • getSorrowLikelihoodValue

        public int getSorrowLikelihoodValue()
         Sorrow likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10;
        Specified by:
        getSorrowLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for sorrowLikelihood.
      • setSorrowLikelihoodValue

        public FaceAnnotation.Builder setSorrowLikelihoodValue​(int value)
         Sorrow likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10;
        Parameters:
        value - The enum numeric value on the wire for sorrowLikelihood to set.
        Returns:
        This builder for chaining.
      • setSorrowLikelihood

        public FaceAnnotation.Builder setSorrowLikelihood​(Likelihood value)
         Sorrow likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10;
        Parameters:
        value - The sorrowLikelihood to set.
        Returns:
        This builder for chaining.
      • clearSorrowLikelihood

        public FaceAnnotation.Builder clearSorrowLikelihood()
         Sorrow likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood sorrow_likelihood = 10;
        Returns:
        This builder for chaining.
      • getAngerLikelihoodValue

        public int getAngerLikelihoodValue()
         Anger likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11;
        Specified by:
        getAngerLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for angerLikelihood.
      • setAngerLikelihoodValue

        public FaceAnnotation.Builder setAngerLikelihoodValue​(int value)
         Anger likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11;
        Parameters:
        value - The enum numeric value on the wire for angerLikelihood to set.
        Returns:
        This builder for chaining.
      • setAngerLikelihood

        public FaceAnnotation.Builder setAngerLikelihood​(Likelihood value)
         Anger likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11;
        Parameters:
        value - The angerLikelihood to set.
        Returns:
        This builder for chaining.
      • clearAngerLikelihood

        public FaceAnnotation.Builder clearAngerLikelihood()
         Anger likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood anger_likelihood = 11;
        Returns:
        This builder for chaining.
      • getSurpriseLikelihoodValue

        public int getSurpriseLikelihoodValue()
         Surprise likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12;
        Specified by:
        getSurpriseLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for surpriseLikelihood.
      • setSurpriseLikelihoodValue

        public FaceAnnotation.Builder setSurpriseLikelihoodValue​(int value)
         Surprise likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12;
        Parameters:
        value - The enum numeric value on the wire for surpriseLikelihood to set.
        Returns:
        This builder for chaining.
      • setSurpriseLikelihood

        public FaceAnnotation.Builder setSurpriseLikelihood​(Likelihood value)
         Surprise likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12;
        Parameters:
        value - The surpriseLikelihood to set.
        Returns:
        This builder for chaining.
      • clearSurpriseLikelihood

        public FaceAnnotation.Builder clearSurpriseLikelihood()
         Surprise likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood surprise_likelihood = 12;
        Returns:
        This builder for chaining.
      • getUnderExposedLikelihoodValue

        public int getUnderExposedLikelihoodValue()
         Under-exposed likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13;
        Specified by:
        getUnderExposedLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for underExposedLikelihood.
      • setUnderExposedLikelihoodValue

        public FaceAnnotation.Builder setUnderExposedLikelihoodValue​(int value)
         Under-exposed likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13;
        Parameters:
        value - The enum numeric value on the wire for underExposedLikelihood to set.
        Returns:
        This builder for chaining.
      • getUnderExposedLikelihood

        public Likelihood getUnderExposedLikelihood()
         Under-exposed likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13;
        Specified by:
        getUnderExposedLikelihood in interface FaceAnnotationOrBuilder
        Returns:
        The underExposedLikelihood.
      • setUnderExposedLikelihood

        public FaceAnnotation.Builder setUnderExposedLikelihood​(Likelihood value)
         Under-exposed likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13;
        Parameters:
        value - The underExposedLikelihood to set.
        Returns:
        This builder for chaining.
      • clearUnderExposedLikelihood

        public FaceAnnotation.Builder clearUnderExposedLikelihood()
         Under-exposed likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood under_exposed_likelihood = 13;
        Returns:
        This builder for chaining.
      • getBlurredLikelihoodValue

        public int getBlurredLikelihoodValue()
         Blurred likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14;
        Specified by:
        getBlurredLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for blurredLikelihood.
      • setBlurredLikelihoodValue

        public FaceAnnotation.Builder setBlurredLikelihoodValue​(int value)
         Blurred likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14;
        Parameters:
        value - The enum numeric value on the wire for blurredLikelihood to set.
        Returns:
        This builder for chaining.
      • setBlurredLikelihood

        public FaceAnnotation.Builder setBlurredLikelihood​(Likelihood value)
         Blurred likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14;
        Parameters:
        value - The blurredLikelihood to set.
        Returns:
        This builder for chaining.
      • clearBlurredLikelihood

        public FaceAnnotation.Builder clearBlurredLikelihood()
         Blurred likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood blurred_likelihood = 14;
        Returns:
        This builder for chaining.
      • getHeadwearLikelihoodValue

        public int getHeadwearLikelihoodValue()
         Headwear likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15;
        Specified by:
        getHeadwearLikelihoodValue in interface FaceAnnotationOrBuilder
        Returns:
        The enum numeric value on the wire for headwearLikelihood.
      • setHeadwearLikelihoodValue

        public FaceAnnotation.Builder setHeadwearLikelihoodValue​(int value)
         Headwear likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15;
        Parameters:
        value - The enum numeric value on the wire for headwearLikelihood to set.
        Returns:
        This builder for chaining.
      • setHeadwearLikelihood

        public FaceAnnotation.Builder setHeadwearLikelihood​(Likelihood value)
         Headwear likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15;
        Parameters:
        value - The headwearLikelihood to set.
        Returns:
        This builder for chaining.
      • clearHeadwearLikelihood

        public FaceAnnotation.Builder clearHeadwearLikelihood()
         Headwear likelihood.
         
        .google.cloud.vision.v1p3beta1.Likelihood headwear_likelihood = 15;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final FaceAnnotation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
      • mergeUnknownFields

        public final FaceAnnotation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>