Class FaceAnnotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FaceAnnotation.Builder>
com.google.cloud.vision.v1.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.GeneratedMessage.Builder<FaceAnnotation.Builder> implements FaceAnnotationOrBuilder
 A face annotation object contains the results of face detection.
 
Protobuf type google.cloud.vision.v1.FaceAnnotation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public FaceAnnotation.Builder mergeFrom(FaceAnnotation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
       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.v1.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.
       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.v1.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.
       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.v1.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.
       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.v1.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.
       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.v1.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.
       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.v1.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.
       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.v1.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.
       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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.BoundingPoly fd_bounding_poly = 2;
      Specified by:
      getFdBoundingPolyOrBuilder in interface FaceAnnotationOrBuilder
    • getLandmarksList

      public List<FaceAnnotation.Landmark> getLandmarksList()
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
      Specified by:
      getLandmarksList in interface FaceAnnotationOrBuilder
    • getLandmarksCount

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

      public FaceAnnotation.Landmark getLandmarks(int index)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
      Specified by:
      getLandmarks in interface FaceAnnotationOrBuilder
    • setLandmarks

      public FaceAnnotation.Builder setLandmarks(int index, FaceAnnotation.Landmark value)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • setLandmarks

      public FaceAnnotation.Builder setLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • addLandmarks

      public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark value)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • addLandmarks

      public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark value)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • addLandmarks

      public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • addLandmarks

      public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • addAllLandmarks

      public FaceAnnotation.Builder addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
    • clearLandmarks

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

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

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

      public FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
      Specified by:
      getLandmarksOrBuilder in interface FaceAnnotationOrBuilder
    • getLandmarksOrBuilderList

      public List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;
      Specified by:
      getLandmarksOrBuilderList in interface FaceAnnotationOrBuilder
    • addLandmarksBuilder

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

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

      public List<FaceAnnotation.Landmark.Builder> getLandmarksBuilderList()
       Detected face landmarks.
       
      repeated .google.cloud.vision.v1.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.v1.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.v1.Likelihood joy_likelihood = 9;
      Parameters:
      value - The enum numeric value on the wire for joyLikelihood to set.
      Returns:
      This builder for chaining.
    • getJoyLikelihood

      public Likelihood getJoyLikelihood()
       Joy likelihood.
       
      .google.cloud.vision.v1.Likelihood joy_likelihood = 9;
      Specified by:
      getJoyLikelihood in interface FaceAnnotationOrBuilder
      Returns:
      The joyLikelihood.
    • setJoyLikelihood

      public FaceAnnotation.Builder setJoyLikelihood(Likelihood value)
       Joy likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood joy_likelihood = 9;
      Returns:
      This builder for chaining.
    • getSorrowLikelihoodValue

      public int getSorrowLikelihoodValue()
       Sorrow likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood sorrow_likelihood = 10;
      Parameters:
      value - The enum numeric value on the wire for sorrowLikelihood to set.
      Returns:
      This builder for chaining.
    • getSorrowLikelihood

      public Likelihood getSorrowLikelihood()
       Sorrow likelihood.
       
      .google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;
      Specified by:
      getSorrowLikelihood in interface FaceAnnotationOrBuilder
      Returns:
      The sorrowLikelihood.
    • setSorrowLikelihood

      public FaceAnnotation.Builder setSorrowLikelihood(Likelihood value)
       Sorrow likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood sorrow_likelihood = 10;
      Returns:
      This builder for chaining.
    • getAngerLikelihoodValue

      public int getAngerLikelihoodValue()
       Anger likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood anger_likelihood = 11;
      Parameters:
      value - The enum numeric value on the wire for angerLikelihood to set.
      Returns:
      This builder for chaining.
    • getAngerLikelihood

      public Likelihood getAngerLikelihood()
       Anger likelihood.
       
      .google.cloud.vision.v1.Likelihood anger_likelihood = 11;
      Specified by:
      getAngerLikelihood in interface FaceAnnotationOrBuilder
      Returns:
      The angerLikelihood.
    • setAngerLikelihood

      public FaceAnnotation.Builder setAngerLikelihood(Likelihood value)
       Anger likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood anger_likelihood = 11;
      Returns:
      This builder for chaining.
    • getSurpriseLikelihoodValue

      public int getSurpriseLikelihoodValue()
       Surprise likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood surprise_likelihood = 12;
      Parameters:
      value - The enum numeric value on the wire for surpriseLikelihood to set.
      Returns:
      This builder for chaining.
    • getSurpriseLikelihood

      public Likelihood getSurpriseLikelihood()
       Surprise likelihood.
       
      .google.cloud.vision.v1.Likelihood surprise_likelihood = 12;
      Specified by:
      getSurpriseLikelihood in interface FaceAnnotationOrBuilder
      Returns:
      The surpriseLikelihood.
    • setSurpriseLikelihood

      public FaceAnnotation.Builder setSurpriseLikelihood(Likelihood value)
       Surprise likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood surprise_likelihood = 12;
      Returns:
      This builder for chaining.
    • getUnderExposedLikelihoodValue

      public int getUnderExposedLikelihoodValue()
       Under-exposed likelihood.
       
      .google.cloud.vision.v1.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.v1.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.v1.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.v1.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.v1.Likelihood under_exposed_likelihood = 13;
      Returns:
      This builder for chaining.
    • getBlurredLikelihoodValue

      public int getBlurredLikelihoodValue()
       Blurred likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood blurred_likelihood = 14;
      Parameters:
      value - The enum numeric value on the wire for blurredLikelihood to set.
      Returns:
      This builder for chaining.
    • getBlurredLikelihood

      public Likelihood getBlurredLikelihood()
       Blurred likelihood.
       
      .google.cloud.vision.v1.Likelihood blurred_likelihood = 14;
      Specified by:
      getBlurredLikelihood in interface FaceAnnotationOrBuilder
      Returns:
      The blurredLikelihood.
    • setBlurredLikelihood

      public FaceAnnotation.Builder setBlurredLikelihood(Likelihood value)
       Blurred likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood blurred_likelihood = 14;
      Returns:
      This builder for chaining.
    • getHeadwearLikelihoodValue

      public int getHeadwearLikelihoodValue()
       Headwear likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood headwear_likelihood = 15;
      Parameters:
      value - The enum numeric value on the wire for headwearLikelihood to set.
      Returns:
      This builder for chaining.
    • getHeadwearLikelihood

      public Likelihood getHeadwearLikelihood()
       Headwear likelihood.
       
      .google.cloud.vision.v1.Likelihood headwear_likelihood = 15;
      Specified by:
      getHeadwearLikelihood in interface FaceAnnotationOrBuilder
      Returns:
      The headwearLikelihood.
    • setHeadwearLikelihood

      public FaceAnnotation.Builder setHeadwearLikelihood(Likelihood value)
       Headwear likelihood.
       
      .google.cloud.vision.v1.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.v1.Likelihood headwear_likelihood = 15;
      Returns:
      This builder for chaining.