Package com.google.cloud.vision.v1
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 Summary
Modifier and TypeMethodDescriptionaddAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values) Detected face landmarks.addLandmarks(int index, FaceAnnotation.Landmark value) Detected face landmarks.addLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue) Detected face landmarks.Detected face landmarks.addLandmarks(FaceAnnotation.Landmark.Builder builderForValue) Detected face landmarks.Detected face landmarks.addLandmarksBuilder(int index) Detected face landmarks.build()clear()Anger likelihood.Blurred likelihood.The bounding polygon around the face.Detection confidence.The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.Headwear likelihood.Joy likelihood.Face landmarking confidence.Detected face landmarks.Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image.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.Sorrow likelihood.Surprise likelihood.Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.Under-exposed likelihood.Anger likelihood.intAnger likelihood.Blurred likelihood.intBlurred likelihood.The bounding polygon around the face.The bounding polygon around the face.The bounding polygon around the face.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatDetection confidence.The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.Headwear likelihood.intHeadwear likelihood.Joy likelihood.intJoy likelihood.floatFace landmarking confidence.getLandmarks(int index) Detected face landmarks.getLandmarksBuilder(int index) Detected face landmarks.Detected face landmarks.intDetected face landmarks.Detected face landmarks.getLandmarksOrBuilder(int index) Detected face landmarks.List<? extends FaceAnnotation.LandmarkOrBuilder>Detected face landmarks.floatYaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image.floatRoll 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.Sorrow likelihood.intSorrow likelihood.Surprise likelihood.intSurprise likelihood.floatPitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.Under-exposed likelihood.intUnder-exposed likelihood.booleanThe bounding polygon around the face.booleanThe `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingPoly(BoundingPoly value) The bounding polygon around the face.mergeFdBoundingPoly(BoundingPoly value) The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.mergeFrom(FaceAnnotation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeLandmarks(int index) Detected face landmarks.setAngerLikelihood(Likelihood value) Anger likelihood.setAngerLikelihoodValue(int value) Anger likelihood.setBlurredLikelihood(Likelihood value) Blurred likelihood.setBlurredLikelihoodValue(int value) Blurred likelihood.setBoundingPoly(BoundingPoly value) The bounding polygon around the face.setBoundingPoly(BoundingPoly.Builder builderForValue) The bounding polygon around the face.setDetectionConfidence(float value) Detection confidence.setFdBoundingPoly(BoundingPoly value) The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.setFdBoundingPoly(BoundingPoly.Builder builderForValue) The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.setHeadwearLikelihood(Likelihood value) Headwear likelihood.setHeadwearLikelihoodValue(int value) Headwear likelihood.setJoyLikelihood(Likelihood value) Joy likelihood.setJoyLikelihoodValue(int value) Joy likelihood.setLandmarkingConfidence(float value) Face landmarking confidence.setLandmarks(int index, FaceAnnotation.Landmark value) Detected face landmarks.setLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue) Detected face landmarks.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.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.setSorrowLikelihood(Likelihood value) Sorrow likelihood.setSorrowLikelihoodValue(int value) Sorrow likelihood.setSurpriseLikelihood(Likelihood value) Surprise likelihood.setSurpriseLikelihoodValue(int value) Surprise likelihood.setTiltAngle(float value) Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.Under-exposed likelihood.setUnderExposedLikelihoodValue(int value) Under-exposed likelihood.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FaceAnnotation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FaceAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FaceAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FaceAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasBoundingPolyin interfaceFaceAnnotationOrBuilder- Returns:
- Whether the boundingPoly field is set.
-
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:
getBoundingPolyin interfaceFaceAnnotationOrBuilder- Returns:
- The boundingPoly.
-
setBoundingPoly
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
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
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
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
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
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:
getBoundingPolyOrBuilderin interfaceFaceAnnotationOrBuilder
-
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:
hasFdBoundingPolyin interfaceFaceAnnotationOrBuilder- Returns:
- Whether the fdBoundingPoly field is set.
-
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:
getFdBoundingPolyin interfaceFaceAnnotationOrBuilder- Returns:
- The fdBoundingPoly.
-
setFdBoundingPoly
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
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
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
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
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
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:
getFdBoundingPolyOrBuilderin interfaceFaceAnnotationOrBuilder
-
getLandmarksList
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksListin interfaceFaceAnnotationOrBuilder
-
getLandmarksCount
public int getLandmarksCount()Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksCountin interfaceFaceAnnotationOrBuilder
-
getLandmarks
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksin interfaceFaceAnnotationOrBuilder
-
setLandmarks
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
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
addLandmarks
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
addLandmarks
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
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
clearLandmarks
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
removeLandmarks
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
getLandmarksBuilder
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
getLandmarksOrBuilder
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksOrBuilderin interfaceFaceAnnotationOrBuilder
-
getLandmarksOrBuilderList
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksOrBuilderListin interfaceFaceAnnotationOrBuilder
-
addLandmarksBuilder
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
addLandmarksBuilder
Detected face landmarks.
repeated .google.cloud.vision.v1.FaceAnnotation.Landmark landmarks = 3; -
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:
getRollAnglein interfaceFaceAnnotationOrBuilder- Returns:
- The rollAngle.
-
setRollAngle
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
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:
getPanAnglein interfaceFaceAnnotationOrBuilder- Returns:
- The panAngle.
-
setPanAngle
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
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:
getTiltAnglein interfaceFaceAnnotationOrBuilder- Returns:
- The tiltAngle.
-
setTiltAngle
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
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:
getDetectionConfidencein interfaceFaceAnnotationOrBuilder- Returns:
- The detectionConfidence.
-
setDetectionConfidence
Detection confidence. Range [0, 1].
float detection_confidence = 7;- Parameters:
value- The detectionConfidence to set.- Returns:
- This builder for chaining.
-
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:
getLandmarkingConfidencein interfaceFaceAnnotationOrBuilder- Returns:
- The landmarkingConfidence.
-
setLandmarkingConfidence
Face landmarking confidence. Range [0, 1].
float landmarking_confidence = 8;- Parameters:
value- The landmarkingConfidence to set.- Returns:
- This builder for chaining.
-
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:
getJoyLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for joyLikelihood.
-
setJoyLikelihoodValue
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
Joy likelihood.
.google.cloud.vision.v1.Likelihood joy_likelihood = 9;- Specified by:
getJoyLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The joyLikelihood.
-
setJoyLikelihood
Joy likelihood.
.google.cloud.vision.v1.Likelihood joy_likelihood = 9;- Parameters:
value- The joyLikelihood to set.- Returns:
- This builder for chaining.
-
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:
getSorrowLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for sorrowLikelihood.
-
setSorrowLikelihoodValue
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
Sorrow likelihood.
.google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;- Specified by:
getSorrowLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The sorrowLikelihood.
-
setSorrowLikelihood
Sorrow likelihood.
.google.cloud.vision.v1.Likelihood sorrow_likelihood = 10;- Parameters:
value- The sorrowLikelihood to set.- Returns:
- This builder for chaining.
-
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:
getAngerLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for angerLikelihood.
-
setAngerLikelihoodValue
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
Anger likelihood.
.google.cloud.vision.v1.Likelihood anger_likelihood = 11;- Specified by:
getAngerLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The angerLikelihood.
-
setAngerLikelihood
Anger likelihood.
.google.cloud.vision.v1.Likelihood anger_likelihood = 11;- Parameters:
value- The angerLikelihood to set.- Returns:
- This builder for chaining.
-
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:
getSurpriseLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for surpriseLikelihood.
-
setSurpriseLikelihoodValue
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
Surprise likelihood.
.google.cloud.vision.v1.Likelihood surprise_likelihood = 12;- Specified by:
getSurpriseLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The surpriseLikelihood.
-
setSurpriseLikelihood
Surprise likelihood.
.google.cloud.vision.v1.Likelihood surprise_likelihood = 12;- Parameters:
value- The surpriseLikelihood to set.- Returns:
- This builder for chaining.
-
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:
getUnderExposedLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for underExposedLikelihood.
-
setUnderExposedLikelihoodValue
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
Under-exposed likelihood.
.google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;- Specified by:
getUnderExposedLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The underExposedLikelihood.
-
setUnderExposedLikelihood
Under-exposed likelihood.
.google.cloud.vision.v1.Likelihood under_exposed_likelihood = 13;- Parameters:
value- The underExposedLikelihood to set.- Returns:
- This builder for chaining.
-
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:
getBlurredLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for blurredLikelihood.
-
setBlurredLikelihoodValue
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
Blurred likelihood.
.google.cloud.vision.v1.Likelihood blurred_likelihood = 14;- Specified by:
getBlurredLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The blurredLikelihood.
-
setBlurredLikelihood
Blurred likelihood.
.google.cloud.vision.v1.Likelihood blurred_likelihood = 14;- Parameters:
value- The blurredLikelihood to set.- Returns:
- This builder for chaining.
-
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:
getHeadwearLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for headwearLikelihood.
-
setHeadwearLikelihoodValue
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
Headwear likelihood.
.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;- Specified by:
getHeadwearLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The headwearLikelihood.
-
setHeadwearLikelihood
Headwear likelihood.
.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;- Parameters:
value- The headwearLikelihood to set.- Returns:
- This builder for chaining.
-
clearHeadwearLikelihood
Headwear likelihood.
.google.cloud.vision.v1.Likelihood headwear_likelihood = 15;- Returns:
- This builder for chaining.
-