Class AnnotateImageResponse.Builder

public static final class AnnotateImageResponse.Builder extends GeneratedMessageV3.Builder<AnnotateImageResponse.Builder> implements AnnotateImageResponseOrBuilder

Response to an image annotation request.

Protobuf type google.cloud.vision.v1p4beta1.AnnotateImageResponse

Methods

addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values)

public AnnotateImageResponse.Builder addAllFaceAnnotations(Iterable<? extends FaceAnnotation> values)

If present, face detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.FaceAnnotation face_annotations = 1;

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

addAllLabelAnnotations(Iterable<? extends EntityAnnotation> values)

public AnnotateImageResponse.Builder addAllLabelAnnotations(Iterable<? extends EntityAnnotation> values)

If present, label detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
values