Class FaceAnnotation.Builder (3.18.0)

public static final class FaceAnnotation.Builder extends GeneratedMessageV3.Builder<FaceAnnotation.Builder> implements FaceAnnotationOrBuilder

A face annotation object contains the results of face detection.

Protobuf type google.cloud.vision.v1p2beta1.FaceAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)

public FaceAnnotation.Builder addAllLandmarks(Iterable<? extends FaceAnnotation.Landmark> values)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark>
Returns
TypeDescription
FaceAnnotation.Builder

addLandmarks(FaceAnnotation.Landmark value)

public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark value)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
valueFaceAnnotation.Landmark
Returns
TypeDescription
FaceAnnotation.Builder

addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)

public FaceAnnotation.Builder addLandmarks(FaceAnnotation.Landmark.Builder builderForValue)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
builderForValueFaceAnnotation.Landmark.Builder
Returns
TypeDescription
FaceAnnotation.Builder

addLandmarks(int index, FaceAnnotation.Landmark value)

public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark value)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameters
NameDescription
indexint
valueFaceAnnotation.Landmark
Returns
TypeDescription
FaceAnnotation.Builder

addLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)

public FaceAnnotation.Builder addLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Landmark.Builder
Returns
TypeDescription
FaceAnnotation.Builder

addLandmarksBuilder()

public FaceAnnotation.Landmark.Builder addLandmarksBuilder()

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
FaceAnnotation.Landmark.Builder

addLandmarksBuilder(int index)

public FaceAnnotation.Landmark.Builder addLandmarksBuilder(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Landmark.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FaceAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

build()

public FaceAnnotation build()
Returns
TypeDescription
FaceAnnotation

buildPartial()

public FaceAnnotation buildPartial()
Returns
TypeDescription
FaceAnnotation

clear()

public FaceAnnotation.Builder clear()
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

clearAngerLikelihood()

public FaceAnnotation.Builder clearAngerLikelihood()

Anger likelihood.

.google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearBlurredLikelihood()

public FaceAnnotation.Builder clearBlurredLikelihood()

Blurred likelihood.

.google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
FaceAnnotation.Builder

clearDetectionConfidence()

public FaceAnnotation.Builder clearDetectionConfidence()

Detection confidence. Range [0, 1].

float detection_confidence = 7;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
FaceAnnotation.Builder

clearField(Descriptors.FieldDescriptor field)

public FaceAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

clearHeadwearLikelihood()

public FaceAnnotation.Builder clearHeadwearLikelihood()

Headwear likelihood.

.google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearJoyLikelihood()

public FaceAnnotation.Builder clearJoyLikelihood()

Joy likelihood.

.google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearLandmarkingConfidence()

public FaceAnnotation.Builder clearLandmarkingConfidence()

Face landmarking confidence. Range [0, 1].

float landmarking_confidence = 8;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearLandmarks()

public FaceAnnotation.Builder clearLandmarks()

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
FaceAnnotation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public FaceAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

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
TypeDescription
FaceAnnotation.Builder

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
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearSorrowLikelihood()

public FaceAnnotation.Builder clearSorrowLikelihood()

Sorrow likelihood.

.google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearSurpriseLikelihood()

public FaceAnnotation.Builder clearSurpriseLikelihood()

Surprise likelihood.

.google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12;

Returns
TypeDescription
FaceAnnotation.Builder

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
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clearUnderExposedLikelihood()

public FaceAnnotation.Builder clearUnderExposedLikelihood()

Under-exposed likelihood.

.google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13;

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

clone()

public FaceAnnotation.Builder clone()
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

getAngerLikelihood()

public Likelihood getAngerLikelihood()

Anger likelihood.

.google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11;

Returns
TypeDescription
Likelihood

The angerLikelihood.

getAngerLikelihoodValue()

public int getAngerLikelihoodValue()

Anger likelihood.

.google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for angerLikelihood.

getBlurredLikelihood()

public Likelihood getBlurredLikelihood()

Blurred likelihood.

.google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14;

Returns
TypeDescription
Likelihood

The blurredLikelihood.

getBlurredLikelihoodValue()

public int getBlurredLikelihoodValue()

Blurred likelihood.

.google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14;

Returns
TypeDescription
int

The enum numeric value on the wire for blurredLikelihood.

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPoly

The boundingPoly.

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPoly.Builder

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public FaceAnnotation getDefaultInstanceForType()
Returns
TypeDescription
FaceAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectionConfidence()

public float getDetectionConfidence()

Detection confidence. Range [0, 1].

float detection_confidence = 7;

Returns
TypeDescription
float

The detectionConfidence.

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
BoundingPoly

The fdBoundingPoly.

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
BoundingPoly.Builder

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
BoundingPolyOrBuilder

getHeadwearLikelihood()

public Likelihood getHeadwearLikelihood()

Headwear likelihood.

.google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15;

Returns
TypeDescription
Likelihood

The headwearLikelihood.

getHeadwearLikelihoodValue()

public int getHeadwearLikelihoodValue()

Headwear likelihood.

.google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for headwearLikelihood.

getJoyLikelihood()

public Likelihood getJoyLikelihood()

Joy likelihood.

.google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9;

Returns
TypeDescription
Likelihood

The joyLikelihood.

getJoyLikelihoodValue()

public int getJoyLikelihoodValue()

Joy likelihood.

.google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for joyLikelihood.

getLandmarkingConfidence()

public float getLandmarkingConfidence()

Face landmarking confidence. Range [0, 1].

float landmarking_confidence = 8;

Returns
TypeDescription
float

The landmarkingConfidence.

getLandmarks(int index)

public FaceAnnotation.Landmark getLandmarks(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Landmark

getLandmarksBuilder(int index)

public FaceAnnotation.Landmark.Builder getLandmarksBuilder(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Landmark.Builder

getLandmarksBuilderList()

public List<FaceAnnotation.Landmark.Builder> getLandmarksBuilderList()

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
List<Builder>

getLandmarksCount()

public int getLandmarksCount()

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
int

getLandmarksList()

public List<FaceAnnotation.Landmark> getLandmarksList()

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
List<Landmark>

getLandmarksOrBuilder(int index)

public FaceAnnotation.LandmarkOrBuilder getLandmarksOrBuilder(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.LandmarkOrBuilder

getLandmarksOrBuilderList()

public List<? extends FaceAnnotation.LandmarkOrBuilder> getLandmarksOrBuilderList()

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p2beta1.FaceAnnotation.LandmarkOrBuilder>

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;

Returns
TypeDescription
float

The panAngle.

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;

Returns
TypeDescription
float

The rollAngle.

getSorrowLikelihood()

public Likelihood getSorrowLikelihood()

Sorrow likelihood.

.google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10;

Returns
TypeDescription
Likelihood

The sorrowLikelihood.

getSorrowLikelihoodValue()

public int getSorrowLikelihoodValue()

Sorrow likelihood.

.google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for sorrowLikelihood.

getSurpriseLikelihood()

public Likelihood getSurpriseLikelihood()

Surprise likelihood.

.google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12;

Returns
TypeDescription
Likelihood

The surpriseLikelihood.

getSurpriseLikelihoodValue()

public int getSurpriseLikelihoodValue()

Surprise likelihood.

.google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12;

Returns
TypeDescription
int

The enum numeric value on the wire for surpriseLikelihood.

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;

Returns
TypeDescription
float

The tiltAngle.

getUnderExposedLikelihood()

public Likelihood getUnderExposedLikelihood()

Under-exposed likelihood.

.google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13;

Returns
TypeDescription
Likelihood

The underExposedLikelihood.

getUnderExposedLikelihoodValue()

public int getUnderExposedLikelihoodValue()

Under-exposed likelihood.

.google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13;

Returns
TypeDescription
int

The enum numeric value on the wire for underExposedLikelihood.

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Returns
TypeDescription
boolean

Whether the boundingPoly field is set.

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Returns
TypeDescription
boolean

Whether the fdBoundingPoly field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBoundingPoly(BoundingPoly value)

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Parameter
NameDescription
valueBoundingPoly
Returns
TypeDescription
FaceAnnotation.Builder

mergeFdBoundingPoly(BoundingPoly value)

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Parameter
NameDescription
valueBoundingPoly
Returns
TypeDescription
FaceAnnotation.Builder

mergeFrom(FaceAnnotation other)

public FaceAnnotation.Builder mergeFrom(FaceAnnotation other)
Parameter
NameDescription
otherFaceAnnotation
Returns
TypeDescription
FaceAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FaceAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FaceAnnotation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FaceAnnotation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FaceAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

removeLandmarks(int index)

public FaceAnnotation.Builder removeLandmarks(int index)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

setAngerLikelihood(Likelihood value)

public FaceAnnotation.Builder setAngerLikelihood(Likelihood value)

Anger likelihood.

.google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11;

Parameter
NameDescription
valueLikelihood

The angerLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setAngerLikelihoodValue(int value)

public FaceAnnotation.Builder setAngerLikelihoodValue(int value)

Anger likelihood.

.google.cloud.vision.v1p2beta1.Likelihood anger_likelihood = 11;

Parameter
NameDescription
valueint

The enum numeric value on the wire for angerLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setBlurredLikelihood(Likelihood value)

public FaceAnnotation.Builder setBlurredLikelihood(Likelihood value)

Blurred likelihood.

.google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14;

Parameter
NameDescription
valueLikelihood

The blurredLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setBlurredLikelihoodValue(int value)

public FaceAnnotation.Builder setBlurredLikelihoodValue(int value)

Blurred likelihood.

.google.cloud.vision.v1p2beta1.Likelihood blurred_likelihood = 14;

Parameter
NameDescription
valueint

The enum numeric value on the wire for blurredLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setBoundingPoly(BoundingPoly value)

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Parameter
NameDescription
valueBoundingPoly
Returns
TypeDescription
FaceAnnotation.Builder

setBoundingPoly(BoundingPoly.Builder builderForValue)

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.v1p2beta1.BoundingPoly bounding_poly = 1;

Parameter
NameDescription
builderForValueBoundingPoly.Builder
Returns
TypeDescription
FaceAnnotation.Builder

setDetectionConfidence(float value)

public FaceAnnotation.Builder setDetectionConfidence(float value)

Detection confidence. Range [0, 1].

float detection_confidence = 7;

Parameter
NameDescription
valuefloat

The detectionConfidence to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setFdBoundingPoly(BoundingPoly value)

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Parameter
NameDescription
valueBoundingPoly
Returns
TypeDescription
FaceAnnotation.Builder

setFdBoundingPoly(BoundingPoly.Builder builderForValue)

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.v1p2beta1.BoundingPoly fd_bounding_poly = 2;

Parameter
NameDescription
builderForValueBoundingPoly.Builder
Returns
TypeDescription
FaceAnnotation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public FaceAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

setHeadwearLikelihood(Likelihood value)

public FaceAnnotation.Builder setHeadwearLikelihood(Likelihood value)

Headwear likelihood.

.google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15;

Parameter
NameDescription
valueLikelihood

The headwearLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setHeadwearLikelihoodValue(int value)

public FaceAnnotation.Builder setHeadwearLikelihoodValue(int value)

Headwear likelihood.

.google.cloud.vision.v1p2beta1.Likelihood headwear_likelihood = 15;

Parameter
NameDescription
valueint

The enum numeric value on the wire for headwearLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setJoyLikelihood(Likelihood value)

public FaceAnnotation.Builder setJoyLikelihood(Likelihood value)

Joy likelihood.

.google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9;

Parameter
NameDescription
valueLikelihood

The joyLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setJoyLikelihoodValue(int value)

public FaceAnnotation.Builder setJoyLikelihoodValue(int value)

Joy likelihood.

.google.cloud.vision.v1p2beta1.Likelihood joy_likelihood = 9;

Parameter
NameDescription
valueint

The enum numeric value on the wire for joyLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setLandmarkingConfidence(float value)

public FaceAnnotation.Builder setLandmarkingConfidence(float value)

Face landmarking confidence. Range [0, 1].

float landmarking_confidence = 8;

Parameter
NameDescription
valuefloat

The landmarkingConfidence to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setLandmarks(int index, FaceAnnotation.Landmark value)

public FaceAnnotation.Builder setLandmarks(int index, FaceAnnotation.Landmark value)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameters
NameDescription
indexint
valueFaceAnnotation.Landmark
Returns
TypeDescription
FaceAnnotation.Builder

setLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)

public FaceAnnotation.Builder setLandmarks(int index, FaceAnnotation.Landmark.Builder builderForValue)

Detected face landmarks.

repeated .google.cloud.vision.v1p2beta1.FaceAnnotation.Landmark landmarks = 3;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Landmark.Builder
Returns
TypeDescription
FaceAnnotation.Builder

setPanAngle(float value)

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;

Parameter
NameDescription
valuefloat

The panAngle to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FaceAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FaceAnnotation.Builder
Overrides

setRollAngle(float value)

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;

Parameter
NameDescription
valuefloat

The rollAngle to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setSorrowLikelihood(Likelihood value)

public FaceAnnotation.Builder setSorrowLikelihood(Likelihood value)

Sorrow likelihood.

.google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10;

Parameter
NameDescription
valueLikelihood

The sorrowLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setSorrowLikelihoodValue(int value)

public FaceAnnotation.Builder setSorrowLikelihoodValue(int value)

Sorrow likelihood.

.google.cloud.vision.v1p2beta1.Likelihood sorrow_likelihood = 10;

Parameter
NameDescription
valueint

The enum numeric value on the wire for sorrowLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setSurpriseLikelihood(Likelihood value)

public FaceAnnotation.Builder setSurpriseLikelihood(Likelihood value)

Surprise likelihood.

.google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12;

Parameter
NameDescription
valueLikelihood

The surpriseLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setSurpriseLikelihoodValue(int value)

public FaceAnnotation.Builder setSurpriseLikelihoodValue(int value)

Surprise likelihood.

.google.cloud.vision.v1p2beta1.Likelihood surprise_likelihood = 12;

Parameter
NameDescription
valueint

The enum numeric value on the wire for surpriseLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setTiltAngle(float value)

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;

Parameter
NameDescription
valuefloat

The tiltAngle to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setUnderExposedLikelihood(Likelihood value)

public FaceAnnotation.Builder setUnderExposedLikelihood(Likelihood value)

Under-exposed likelihood.

.google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13;

Parameter
NameDescription
valueLikelihood

The underExposedLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setUnderExposedLikelihoodValue(int value)

public FaceAnnotation.Builder setUnderExposedLikelihoodValue(int value)

Under-exposed likelihood.

.google.cloud.vision.v1p2beta1.Likelihood under_exposed_likelihood = 13;

Parameter
NameDescription
valueint

The enum numeric value on the wire for underExposedLikelihood to set.

Returns
TypeDescription
FaceAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final FaceAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FaceAnnotation.Builder
Overrides