Class AnnotateImageResponse.Builder (2.1.2)

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

Static Methods

getDescriptor()

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

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
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotation>
Returns
TypeDescription
AnnotateImageResponse.Builder

addAllLandmarkAnnotations(Iterable<? extends EntityAnnotation> values)

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

If present, landmark detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation landmark_annotations = 2;

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

addAllLocalizedObjectAnnotations(Iterable<? extends LocalizedObjectAnnotation> values)

public AnnotateImageResponse.Builder addAllLocalizedObjectAnnotations(Iterable<? extends LocalizedObjectAnnotation> values)

If present, localized object detection has completed successfully. This will be sorted descending by confidence score.

repeated .google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation localized_object_annotations = 22;

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

addAllLogoAnnotations(Iterable<? extends EntityAnnotation> values)

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

If present, logo detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation logo_annotations = 3;

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