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.Builder
addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)
Detected face landmarks.FaceAnnotation.Builder
addLandmarks(int index, FaceAnnotation.Landmark value)
Detected face landmarks.FaceAnnotation.Builder
addLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.FaceAnnotation.Builder
addLandmarks(FaceAnnotation.Landmark value)
Detected face landmarks.FaceAnnotation.Builder
addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.FaceAnnotation.Landmark.Builder
addLandmarksBuilder()
Detected face landmarks.FaceAnnotation.Landmark.Builder
addLandmarksBuilder(int index)
Detected face landmarks.FaceAnnotation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FaceAnnotation
build()
FaceAnnotation
buildPartial()
FaceAnnotation.Builder
clear()
FaceAnnotation.Builder
clearAngerLikelihood()
Anger likelihood.FaceAnnotation.Builder
clearBlurredLikelihood()
Blurred likelihood.FaceAnnotation.Builder
clearBoundingPoly()
The bounding polygon around the face.FaceAnnotation.Builder
clearDetectionConfidence()
Detection confidence.FaceAnnotation.Builder
clearFdBoundingPoly()
The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.FaceAnnotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FaceAnnotation.Builder
clearHeadwearLikelihood()
Headwear likelihood.FaceAnnotation.Builder
clearJoyLikelihood()
Joy likelihood.FaceAnnotation.Builder
clearLandmarkingConfidence()
Face landmarking confidence.FaceAnnotation.Builder
clearLandmarks()
Detected face landmarks.FaceAnnotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
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.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.FaceAnnotation.Builder
clearSorrowLikelihood()
Sorrow likelihood.FaceAnnotation.Builder
clearSurpriseLikelihood()
Surprise likelihood.FaceAnnotation.Builder
clearTiltAngle()
Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.FaceAnnotation.Builder
clearUnderExposedLikelihood()
Under-exposed likelihood.FaceAnnotation.Builder
clone()
Likelihood
getAngerLikelihood()
Anger likelihood.int
getAngerLikelihoodValue()
Anger likelihood.Likelihood
getBlurredLikelihood()
Blurred likelihood.int
getBlurredLikelihoodValue()
Blurred likelihood.BoundingPoly
getBoundingPoly()
The bounding polygon around the face.BoundingPoly.Builder
getBoundingPolyBuilder()
The bounding polygon around the face.BoundingPolyOrBuilder
getBoundingPolyOrBuilder()
The bounding polygon around the face.FaceAnnotation
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
float
getDetectionConfidence()
Detection confidence.BoundingPoly
getFdBoundingPoly()
The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.BoundingPoly.Builder
getFdBoundingPolyBuilder()
The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.BoundingPolyOrBuilder
getFdBoundingPolyOrBuilder()
The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`, and encloses only the skin part of the face.Likelihood
getHeadwearLikelihood()
Headwear likelihood.int
getHeadwearLikelihoodValue()
Headwear likelihood.Likelihood
getJoyLikelihood()
Joy likelihood.int
getJoyLikelihoodValue()
Joy likelihood.float
getLandmarkingConfidence()
Face landmarking confidence.FaceAnnotation.Landmark
getLandmarks(int index)
Detected face landmarks.FaceAnnotation.Landmark.Builder
getLandmarksBuilder(int index)
Detected face landmarks.List<FaceAnnotation.Landmark.Builder>
getLandmarksBuilderList()
Detected face landmarks.int
getLandmarksCount()
Detected face landmarks.List<FaceAnnotation.Landmark>
getLandmarksList()
Detected face landmarks.FaceAnnotation.LandmarkOrBuilder
getLandmarksOrBuilder(int index)
Detected face landmarks.List<? extends FaceAnnotation.LandmarkOrBuilder>
getLandmarksOrBuilderList()
Detected face landmarks.float
getPanAngle()
Yaw angle, which indicates the leftward/rightward angle that the face is pointing relative to the vertical plane perpendicular to the image.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.Likelihood
getSorrowLikelihood()
Sorrow likelihood.int
getSorrowLikelihoodValue()
Sorrow likelihood.Likelihood
getSurpriseLikelihood()
Surprise likelihood.int
getSurpriseLikelihoodValue()
Surprise likelihood.float
getTiltAngle()
Pitch angle, which indicates the upwards/downwards angle that the face is pointing relative to the image's horizontal plane.Likelihood
getUnderExposedLikelihood()
Under-exposed likelihood.int
getUnderExposedLikelihoodValue()
Under-exposed likelihood.boolean
hasBoundingPoly()
The bounding polygon around the face.boolean
hasFdBoundingPoly()
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.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
FaceAnnotation.Builder
mergeBoundingPoly(BoundingPoly value)
The bounding polygon around the face.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.FaceAnnotation.Builder
mergeFrom(FaceAnnotation other)
FaceAnnotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FaceAnnotation.Builder
mergeFrom(com.google.protobuf.Message other)
FaceAnnotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FaceAnnotation.Builder
removeLandmarks(int index)
Detected face landmarks.FaceAnnotation.Builder
setAngerLikelihood(Likelihood value)
Anger likelihood.FaceAnnotation.Builder
setAngerLikelihoodValue(int value)
Anger likelihood.FaceAnnotation.Builder
setBlurredLikelihood(Likelihood value)
Blurred likelihood.FaceAnnotation.Builder
setBlurredLikelihoodValue(int value)
Blurred likelihood.FaceAnnotation.Builder
setBoundingPoly(BoundingPoly value)
The bounding polygon around the face.FaceAnnotation.Builder
setBoundingPoly(BoundingPoly.Builder builderForValue)
The bounding polygon around the face.FaceAnnotation.Builder
setDetectionConfidence(float value)
Detection confidence.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.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.FaceAnnotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FaceAnnotation.Builder
setHeadwearLikelihood(Likelihood value)
Headwear likelihood.FaceAnnotation.Builder
setHeadwearLikelihoodValue(int value)
Headwear likelihood.FaceAnnotation.Builder
setJoyLikelihood(Likelihood value)
Joy likelihood.FaceAnnotation.Builder
setJoyLikelihoodValue(int value)
Joy likelihood.FaceAnnotation.Builder
setLandmarkingConfidence(float value)
Face landmarking confidence.FaceAnnotation.Builder
setLandmarks(int index, FaceAnnotation.Landmark value)
Detected face landmarks.FaceAnnotation.Builder
setLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)
Detected face landmarks.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.FaceAnnotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
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.FaceAnnotation.Builder
setSorrowLikelihood(Likelihood value)
Sorrow likelihood.FaceAnnotation.Builder
setSorrowLikelihoodValue(int value)
Sorrow likelihood.FaceAnnotation.Builder
setSurpriseLikelihood(Likelihood value)
Surprise likelihood.FaceAnnotation.Builder
setSurpriseLikelihoodValue(int value)
Surprise likelihood.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.FaceAnnotation.Builder
setUnderExposedLikelihood(Likelihood value)
Under-exposed likelihood.FaceAnnotation.Builder
setUnderExposedLikelihoodValue(int value)
Under-exposed likelihood.FaceAnnotation.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
clear
public FaceAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
getDefaultInstanceForType
public FaceAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FaceAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FaceAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FaceAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
setField
public FaceAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
clearField
public FaceAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
clearOneof
public FaceAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
setRepeatedField
public FaceAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
addRepeatedField
public FaceAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
mergeFrom
public FaceAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FaceAnnotation.Builder>
-
mergeFrom
public FaceAnnotation.Builder mergeFrom(FaceAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasBoundingPoly
in 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:
getBoundingPoly
in 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:
getBoundingPolyOrBuilder
in 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:
hasFdBoundingPoly
in 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:
getFdBoundingPoly
in 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:
getFdBoundingPolyOrBuilder
in interfaceFaceAnnotationOrBuilder
-
getLandmarksList
public List<FaceAnnotation.Landmark> getLandmarksList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
- Specified by:
getLandmarksList
in interfaceFaceAnnotationOrBuilder
-
getLandmarksCount
public int getLandmarksCount()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
- Specified by:
getLandmarksCount
in interfaceFaceAnnotationOrBuilder
-
getLandmarks
public FaceAnnotation.Landmark getLandmarks(int index)
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
- Specified by:
getLandmarks
in 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:
getLandmarksOrBuilder
in interfaceFaceAnnotationOrBuilder
-
getLandmarksOrBuilderList
public List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()
Detected face landmarks.
repeated .google.cloud.vision.v1p1beta1.FaceAnnotation.Landmark landmarks = 3;
- Specified by:
getLandmarksOrBuilderList
in 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:
getRollAngle
in 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:
getPanAngle
in 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:
getTiltAngle
in 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:
getDetectionConfidence
in 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:
getLandmarkingConfidence
in 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:
getJoyLikelihoodValue
in 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:
getJoyLikelihood
in 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:
getSorrowLikelihoodValue
in 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:
getSorrowLikelihood
in 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:
getAngerLikelihoodValue
in 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:
getAngerLikelihood
in 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:
getSurpriseLikelihoodValue
in 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:
getSurpriseLikelihood
in 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:
getUnderExposedLikelihoodValue
in 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:
getUnderExposedLikelihood
in 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:
getBlurredLikelihoodValue
in 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:
getBlurredLikelihood
in 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:
getHeadwearLikelihoodValue
in 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:
getHeadwearLikelihood
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
mergeUnknownFields
public final FaceAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FaceAnnotation.Builder>
-
-