Class FaceAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
- com.google.cloud.vision.v1p1beta1.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 typegoogle.cloud.vision.v1p1beta1.FaceAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FaceAnnotation.BuilderaddAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)Detected face landmarks.FaceAnnotation.BuilderaddLandmarks(int index, FaceAnnotation.Landmark value)Detected face landmarks.FaceAnnotation.BuilderaddLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)Detected face landmarks.FaceAnnotation.BuilderaddLandmarks(FaceAnnotation.Landmark value)Detected face landmarks.FaceAnnotation.BuilderaddLandmarks(FaceAnnotation.Landmark.Builder builderForValue)Detected face landmarks.FaceAnnotation.Landmark.BuilderaddLandmarksBuilder()Detected face landmarks.FaceAnnotation.Landmark.BuilderaddLandmarksBuilder(int index)Detected face landmarks.FaceAnnotation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FaceAnnotationbuild()FaceAnnotationbuildPartial()FaceAnnotation.Builderclear()FaceAnnotation.BuilderclearAngerLikelihood()Anger likelihood.FaceAnnotation.BuilderclearBlurredLikelihood()Blurred likelihood.FaceAnnotation.BuilderclearBoundingPoly()The bounding polygon around the face.FaceAnnotation.BuilderclearDetectionConfidence()Detection confidence.FaceAnnotation.BuilderclearFdBoundingPoly()The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.FaceAnnotation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)FaceAnnotation.BuilderclearHeadwearLikelihood()Headwear likelihood.FaceAnnotation.BuilderclearJoyLikelihood()Joy likelihood.FaceAnnotation.BuilderclearLandmarkingConfidence()Face landmarking confidence.FaceAnnotation.BuilderclearLandmarks()Detected face landmarks.FaceAnnotation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)FaceAnnotation.BuilderclearPanAngle()Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image.FaceAnnotation.BuilderclearRollAngle()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.FaceAnnotation.BuilderclearSorrowLikelihood()Sorrow likelihood.FaceAnnotation.BuilderclearSurpriseLikelihood()Surprise likelihood.FaceAnnotation.BuilderclearTiltAngle()Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.FaceAnnotation.BuilderclearUnderExposedLikelihood()Under-exposed likelihood.FaceAnnotation.Builderclone()LikelihoodgetAngerLikelihood()Anger likelihood.intgetAngerLikelihoodValue()Anger likelihood.LikelihoodgetBlurredLikelihood()Blurred likelihood.intgetBlurredLikelihoodValue()Blurred likelihood.BoundingPolygetBoundingPoly()The bounding polygon around the face.BoundingPoly.BuildergetBoundingPolyBuilder()The bounding polygon around the face.BoundingPolyOrBuildergetBoundingPolyOrBuilder()The bounding polygon around the face.FaceAnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()floatgetDetectionConfidence()Detection confidence.BoundingPolygetFdBoundingPoly()The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.BoundingPoly.BuildergetFdBoundingPolyBuilder()The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.BoundingPolyOrBuildergetFdBoundingPolyOrBuilder()The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.LikelihoodgetHeadwearLikelihood()Headwear likelihood.intgetHeadwearLikelihoodValue()Headwear likelihood.LikelihoodgetJoyLikelihood()Joy likelihood.intgetJoyLikelihoodValue()Joy likelihood.floatgetLandmarkingConfidence()Face landmarking confidence.FaceAnnotation.LandmarkgetLandmarks(int index)Detected face landmarks.FaceAnnotation.Landmark.BuildergetLandmarksBuilder(int index)Detected face landmarks.List<FaceAnnotation.Landmark.Builder>getLandmarksBuilderList()Detected face landmarks.intgetLandmarksCount()Detected face landmarks.List<FaceAnnotation.Landmark>getLandmarksList()Detected face landmarks.FaceAnnotation.LandmarkOrBuildergetLandmarksOrBuilder(int index)Detected face landmarks.List<? extends FaceAnnotation.LandmarkOrBuilder>getLandmarksOrBuilderList()Detected face landmarks.floatgetPanAngle()Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image.floatgetRollAngle()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.LikelihoodgetSorrowLikelihood()Sorrow likelihood.intgetSorrowLikelihoodValue()Sorrow likelihood.LikelihoodgetSurpriseLikelihood()Surprise likelihood.intgetSurpriseLikelihoodValue()Surprise likelihood.floatgetTiltAngle()Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.LikelihoodgetUnderExposedLikelihood()Under-exposed likelihood.intgetUnderExposedLikelihoodValue()Under-exposed likelihood.booleanhasBoundingPoly()The bounding polygon around the face.booleanhasFdBoundingPoly()The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()FaceAnnotation.BuildermergeBoundingPoly(BoundingPoly value)The bounding polygon around the face.FaceAnnotation.BuildermergeFdBoundingPoly(BoundingPoly value)The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.FaceAnnotation.BuildermergeFrom(FaceAnnotation other)FaceAnnotation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FaceAnnotation.BuildermergeFrom(com.google.protobuf.Message other)FaceAnnotation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)FaceAnnotation.BuilderremoveLandmarks(int index)Detected face landmarks.FaceAnnotation.BuildersetAngerLikelihood(Likelihood value)Anger likelihood.FaceAnnotation.BuildersetAngerLikelihoodValue(int value)Anger likelihood.FaceAnnotation.BuildersetBlurredLikelihood(Likelihood value)Blurred likelihood.FaceAnnotation.BuildersetBlurredLikelihoodValue(int value)Blurred likelihood.FaceAnnotation.BuildersetBoundingPoly(BoundingPoly value)The bounding polygon around the face.FaceAnnotation.BuildersetBoundingPoly(BoundingPoly.Builder builderForValue)The bounding polygon around the face.FaceAnnotation.BuildersetDetectionConfidence(float value)Detection confidence.FaceAnnotation.BuildersetFdBoundingPoly(BoundingPoly value)The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.FaceAnnotation.BuildersetFdBoundingPoly(BoundingPoly.Builder builderForValue)The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.FaceAnnotation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)FaceAnnotation.BuildersetHeadwearLikelihood(Likelihood value)Headwear likelihood.FaceAnnotation.BuildersetHeadwearLikelihoodValue(int value)Headwear likelihood.FaceAnnotation.BuildersetJoyLikelihood(Likelihood value)Joy likelihood.FaceAnnotation.BuildersetJoyLikelihoodValue(int value)Joy likelihood.FaceAnnotation.BuildersetLandmarkingConfidence(float value)Face landmarking confidence.FaceAnnotation.BuildersetLandmarks(int index, FaceAnnotation.Landmark value)Detected face landmarks.FaceAnnotation.BuildersetLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)Detected face landmarks.FaceAnnotation.BuildersetPanAngle(float value)Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image.FaceAnnotation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)FaceAnnotation.BuildersetRollAngle(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.FaceAnnotation.BuildersetSorrowLikelihood(Likelihood value)Sorrow likelihood.FaceAnnotation.BuildersetSorrowLikelihoodValue(int value)Sorrow likelihood.FaceAnnotation.BuildersetSurpriseLikelihood(Likelihood value)Surprise likelihood.FaceAnnotation.BuildersetSurpriseLikelihoodValue(int value)Surprise likelihood.FaceAnnotation.BuildersetTiltAngle(float value)Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.FaceAnnotation.BuildersetUnderExposedLikelihood(Likelihood value)Under-exposed likelihood.FaceAnnotation.BuildersetUnderExposedLikelihoodValue(int value)Under-exposed likelihood.FaceAnnotation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
clear
public FaceAnnotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
getDefaultInstanceForType
public FaceAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FaceAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FaceAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FaceAnnotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
setField
public FaceAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
clearField
public FaceAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
clearOneof
public FaceAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
setRepeatedField
public FaceAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
addRepeatedField
public FaceAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
mergeFrom
public FaceAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FaceAnnotation.Builder>
-
mergeFrom
public FaceAnnotation.Builder mergeFrom(FaceAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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, 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.v1p1beta1.BoundingPoly bounding_poly = 1;- Specified by:
hasBoundingPolyin interfaceFaceAnnotationOrBuilder- 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.v1p1beta1.BoundingPoly bounding_poly = 1;- Specified by:
getBoundingPolyin interfaceFaceAnnotationOrBuilder- 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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.BoundingPoly fd_bounding_poly = 2;- Specified by:
hasFdBoundingPolyin interfaceFaceAnnotationOrBuilder- 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.v1p1beta1.BoundingPoly fd_bounding_poly = 2;- Specified by:
getFdBoundingPolyin interfaceFaceAnnotationOrBuilder- 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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.BoundingPoly fd_bounding_poly = 2;- Specified by:
getFdBoundingPolyOrBuilderin interfaceFaceAnnotationOrBuilder
-
getLandmarksList
public List<FaceAnnotation.Landmark> getLandmarksList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksListin interfaceFaceAnnotationOrBuilder
-
getLandmarksCount
public int getLandmarksCount()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksCountin interfaceFaceAnnotationOrBuilder
-
getLandmarks
public FaceAnnotation.Landmark getLandmarks(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksin interfaceFaceAnnotationOrBuilder
-
setLandmarks
public FaceAnnotation.Builder setLandmarks(int index, FaceAnnotation.Landmark value)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
setLandmarks
public FaceAnnotation.Builder setLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
addLandmarks
public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark value)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
addLandmarks
public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark value)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
addLandmarks
public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
addLandmarks
public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
addAllLandmarks
public FaceAnnotation.Builder addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
clearLandmarks
public FaceAnnotation.Builder clearLandmarks()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
removeLandmarks
public FaceAnnotation.Builder removeLandmarks(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
getLandmarksBuilder
public FaceAnnotation.Landmark.Builder getLandmarksBuilder(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
getLandmarksOrBuilder
public FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksOrBuilderin interfaceFaceAnnotationOrBuilder
-
getLandmarksOrBuilderList
public List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;- Specified by:
getLandmarksOrBuilderListin interfaceFaceAnnotationOrBuilder
-
addLandmarksBuilder
public FaceAnnotation.Landmark.Builder addLandmarksBuilder()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
addLandmarksBuilder
public FaceAnnotation.Landmark.Builder addLandmarksBuilder(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
-
getLandmarksBuilderList
public List<FaceAnnotation.Landmark.Builder> getLandmarksBuilderList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.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
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:
getPanAnglein interfaceFaceAnnotationOrBuilder- 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:
getTiltAnglein interfaceFaceAnnotationOrBuilder- 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:
getDetectionConfidencein interfaceFaceAnnotationOrBuilder- 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:
getLandmarkingConfidencein interfaceFaceAnnotationOrBuilder- 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.v1p1beta1.Likelihood joy_likelihood = 9;- Specified by:
getJoyLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for joyLikelihood.
-
setJoyLikelihoodValue
public FaceAnnotation.Builder setJoyLikelihoodValue(int value)
Joy likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood joy_likelihood = 9;- Specified by:
getJoyLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The joyLikelihood.
-
setJoyLikelihood
public FaceAnnotation.Builder setJoyLikelihood(Likelihood value)
Joy likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood joy_likelihood = 9;- Returns:
- This builder for chaining.
-
getSorrowLikelihoodValue
public int getSorrowLikelihoodValue()
Sorrow likelihood.
.google.cloud.vision.v1p1beta1.Likelihood sorrow_likelihood = 10;- Specified by:
getSorrowLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for sorrowLikelihood.
-
setSorrowLikelihoodValue
public FaceAnnotation.Builder setSorrowLikelihoodValue(int value)
Sorrow likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood sorrow_likelihood = 10;- Specified by:
getSorrowLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The sorrowLikelihood.
-
setSorrowLikelihood
public FaceAnnotation.Builder setSorrowLikelihood(Likelihood value)
Sorrow likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood sorrow_likelihood = 10;- Returns:
- This builder for chaining.
-
getAngerLikelihoodValue
public int getAngerLikelihoodValue()
Anger likelihood.
.google.cloud.vision.v1p1beta1.Likelihood anger_likelihood = 11;- Specified by:
getAngerLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for angerLikelihood.
-
setAngerLikelihoodValue
public FaceAnnotation.Builder setAngerLikelihoodValue(int value)
Anger likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood anger_likelihood = 11;- Specified by:
getAngerLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The angerLikelihood.
-
setAngerLikelihood
public FaceAnnotation.Builder setAngerLikelihood(Likelihood value)
Anger likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood anger_likelihood = 11;- Returns:
- This builder for chaining.
-
getSurpriseLikelihoodValue
public int getSurpriseLikelihoodValue()
Surprise likelihood.
.google.cloud.vision.v1p1beta1.Likelihood surprise_likelihood = 12;- Specified by:
getSurpriseLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for surpriseLikelihood.
-
setSurpriseLikelihoodValue
public FaceAnnotation.Builder setSurpriseLikelihoodValue(int value)
Surprise likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood surprise_likelihood = 12;- Specified by:
getSurpriseLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The surpriseLikelihood.
-
setSurpriseLikelihood
public FaceAnnotation.Builder setSurpriseLikelihood(Likelihood value)
Surprise likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood surprise_likelihood = 12;- Returns:
- This builder for chaining.
-
getUnderExposedLikelihoodValue
public int getUnderExposedLikelihoodValue()
Under-exposed likelihood.
.google.cloud.vision.v1p1beta1.Likelihood under_exposed_likelihood = 13;- Specified by:
getUnderExposedLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for underExposedLikelihood.
-
setUnderExposedLikelihoodValue
public FaceAnnotation.Builder setUnderExposedLikelihoodValue(int value)
Under-exposed likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood under_exposed_likelihood = 13;- Specified by:
getUnderExposedLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The underExposedLikelihood.
-
setUnderExposedLikelihood
public FaceAnnotation.Builder setUnderExposedLikelihood(Likelihood value)
Under-exposed likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood under_exposed_likelihood = 13;- Returns:
- This builder for chaining.
-
getBlurredLikelihoodValue
public int getBlurredLikelihoodValue()
Blurred likelihood.
.google.cloud.vision.v1p1beta1.Likelihood blurred_likelihood = 14;- Specified by:
getBlurredLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for blurredLikelihood.
-
setBlurredLikelihoodValue
public FaceAnnotation.Builder setBlurredLikelihoodValue(int value)
Blurred likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood blurred_likelihood = 14;- Specified by:
getBlurredLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The blurredLikelihood.
-
setBlurredLikelihood
public FaceAnnotation.Builder setBlurredLikelihood(Likelihood value)
Blurred likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood blurred_likelihood = 14;- Returns:
- This builder for chaining.
-
getHeadwearLikelihoodValue
public int getHeadwearLikelihoodValue()
Headwear likelihood.
.google.cloud.vision.v1p1beta1.Likelihood headwear_likelihood = 15;- Specified by:
getHeadwearLikelihoodValuein interfaceFaceAnnotationOrBuilder- Returns:
- The enum numeric value on the wire for headwearLikelihood.
-
setHeadwearLikelihoodValue
public FaceAnnotation.Builder setHeadwearLikelihoodValue(int value)
Headwear likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood headwear_likelihood = 15;- Specified by:
getHeadwearLikelihoodin interfaceFaceAnnotationOrBuilder- Returns:
- The headwearLikelihood.
-
setHeadwearLikelihood
public FaceAnnotation.Builder setHeadwearLikelihood(Likelihood value)
Headwear likelihood.
.google.cloud.vision.v1p1beta1.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.v1p1beta1.Likelihood headwear_likelihood = 15;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FaceAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
mergeUnknownFields
public final FaceAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
-