Class AnnotateImageResponse.Builder (3.49.0)

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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.FaceAnnotation>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotation>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotation>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation>
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotation>
Returns
Type Description
AnnotateImageResponse.Builder

addAllTextAnnotations(Iterable<? extends EntityAnnotation> values)

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

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotation>
Returns
Type Description
AnnotateImageResponse.Builder

addFaceAnnotations(FaceAnnotation value)

public AnnotateImageResponse.Builder addFaceAnnotations(FaceAnnotation value)

If present, face detection has completed successfully.

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

Parameter
Name Description
value FaceAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addFaceAnnotations(FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addFaceAnnotations(FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

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

Parameter
Name Description
builderForValue FaceAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addFaceAnnotations(int index, FaceAnnotation value)

public AnnotateImageResponse.Builder addFaceAnnotations(int index, FaceAnnotation value)

If present, face detection has completed successfully.

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

Parameters
Name Description
index int
value FaceAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue FaceAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addFaceAnnotationsBuilder()

public FaceAnnotation.Builder addFaceAnnotationsBuilder()

If present, face detection has completed successfully.

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

Returns
Type Description
FaceAnnotation.Builder

addFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder addFaceAnnotationsBuilder(int index)

If present, face detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
FaceAnnotation.Builder

addLabelAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLabelAnnotations(EntityAnnotation value)

If present, label detection has completed successfully.

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

Parameter
Name Description
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLabelAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLabelAnnotations(EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

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

Parameter
Name Description
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLabelAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addLabelAnnotations(int index, EntityAnnotation value)

If present, label detection has completed successfully.

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

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLabelAnnotationsBuilder()

public EntityAnnotation.Builder addLabelAnnotationsBuilder()

If present, label detection has completed successfully.

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

Returns
Type Description
EntityAnnotation.Builder

addLabelAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLabelAnnotationsBuilder(int index)

If present, label detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

addLandmarkAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLandmarkAnnotations(EntityAnnotation value)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLandmarkAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLandmarkAnnotations(EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLandmarkAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addLandmarkAnnotations(int index, EntityAnnotation value)

If present, landmark detection has completed successfully.

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

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLandmarkAnnotationsBuilder()

public EntityAnnotation.Builder addLandmarkAnnotationsBuilder()

If present, landmark detection has completed successfully.

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

Returns
Type Description
EntityAnnotation.Builder

addLandmarkAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLandmarkAnnotationsBuilder(int index)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

addLocalizedObjectAnnotations(LocalizedObjectAnnotation value)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(LocalizedObjectAnnotation value)

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
Name Description
value LocalizedObjectAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLocalizedObjectAnnotations(LocalizedObjectAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(LocalizedObjectAnnotation.Builder builderForValue)

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
Name Description
builderForValue LocalizedObjectAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

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;

Parameters
Name Description
index int
value LocalizedObjectAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue LocalizedObjectAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLocalizedObjectAnnotationsBuilder()

public LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder()

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;

Returns
Type Description
LocalizedObjectAnnotation.Builder

addLocalizedObjectAnnotationsBuilder(int index)

public LocalizedObjectAnnotation.Builder addLocalizedObjectAnnotationsBuilder(int index)

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
Name Description
index int
Returns
Type Description
LocalizedObjectAnnotation.Builder

addLogoAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLogoAnnotations(EntityAnnotation value)

If present, logo detection has completed successfully.

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

Parameter
Name Description
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLogoAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLogoAnnotations(EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

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

Parameter
Name Description
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLogoAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addLogoAnnotations(int index, EntityAnnotation value)

If present, logo detection has completed successfully.

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

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addLogoAnnotationsBuilder()

public EntityAnnotation.Builder addLogoAnnotationsBuilder()

If present, logo detection has completed successfully.

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

Returns
Type Description
EntityAnnotation.Builder

addLogoAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLogoAnnotationsBuilder(int index)

If present, logo detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

addTextAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addTextAnnotations(EntityAnnotation value)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addTextAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addTextAnnotations(EntityAnnotation.Builder builderForValue)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addTextAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder addTextAnnotations(int index, EntityAnnotation value)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

addTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

addTextAnnotationsBuilder()

public EntityAnnotation.Builder addTextAnnotationsBuilder()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Returns
Type Description
EntityAnnotation.Builder

addTextAnnotationsBuilder(int index)

public EntityAnnotation.Builder addTextAnnotationsBuilder(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

build()

public AnnotateImageResponse build()
Returns
Type Description
AnnotateImageResponse

buildPartial()

public AnnotateImageResponse buildPartial()
Returns
Type Description
AnnotateImageResponse

clear()

public AnnotateImageResponse.Builder clear()
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

clearContext()

public AnnotateImageResponse.Builder clearContext()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Returns
Type Description
AnnotateImageResponse.Builder

clearCropHintsAnnotation()

public AnnotateImageResponse.Builder clearCropHintsAnnotation()

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
Type Description
AnnotateImageResponse.Builder

clearError()

public AnnotateImageResponse.Builder clearError()

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Returns
Type Description
AnnotateImageResponse.Builder

clearFaceAnnotations()

public AnnotateImageResponse.Builder clearFaceAnnotations()

If present, face detection has completed successfully.

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

Returns
Type Description
AnnotateImageResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AnnotateImageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

clearFullTextAnnotation()

public AnnotateImageResponse.Builder clearFullTextAnnotation()

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Returns
Type Description
AnnotateImageResponse.Builder

clearImagePropertiesAnnotation()

public AnnotateImageResponse.Builder clearImagePropertiesAnnotation()

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Returns
Type Description
AnnotateImageResponse.Builder

clearLabelAnnotations()

public AnnotateImageResponse.Builder clearLabelAnnotations()

If present, label detection has completed successfully.

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

Returns
Type Description
AnnotateImageResponse.Builder

clearLandmarkAnnotations()

public AnnotateImageResponse.Builder clearLandmarkAnnotations()

If present, landmark detection has completed successfully.

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

Returns
Type Description
AnnotateImageResponse.Builder

clearLocalizedObjectAnnotations()

public AnnotateImageResponse.Builder clearLocalizedObjectAnnotations()

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;

Returns
Type Description
AnnotateImageResponse.Builder

clearLogoAnnotations()

public AnnotateImageResponse.Builder clearLogoAnnotations()

If present, logo detection has completed successfully.

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

Returns
Type Description
AnnotateImageResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AnnotateImageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

clearProductSearchResults()

public AnnotateImageResponse.Builder clearProductSearchResults()

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Returns
Type Description
AnnotateImageResponse.Builder

clearSafeSearchAnnotation()

public AnnotateImageResponse.Builder clearSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
Type Description
AnnotateImageResponse.Builder

clearTextAnnotations()

public AnnotateImageResponse.Builder clearTextAnnotations()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Returns
Type Description
AnnotateImageResponse.Builder

clearWebDetection()

public AnnotateImageResponse.Builder clearWebDetection()

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Returns
Type Description
AnnotateImageResponse.Builder

clone()

public AnnotateImageResponse.Builder clone()
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

getContext()

public ImageAnnotationContext getContext()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Returns
Type Description
ImageAnnotationContext

The context.

getContextBuilder()

public ImageAnnotationContext.Builder getContextBuilder()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Returns
Type Description
ImageAnnotationContext.Builder

getContextOrBuilder()

public ImageAnnotationContextOrBuilder getContextOrBuilder()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Returns
Type Description
ImageAnnotationContextOrBuilder

getCropHintsAnnotation()

public CropHintsAnnotation getCropHintsAnnotation()

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
Type Description
CropHintsAnnotation

The cropHintsAnnotation.

getCropHintsAnnotationBuilder()

public CropHintsAnnotation.Builder getCropHintsAnnotationBuilder()

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
Type Description
CropHintsAnnotation.Builder

getCropHintsAnnotationOrBuilder()

public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
Type Description
CropHintsAnnotationOrBuilder

getDefaultInstanceForType()

public AnnotateImageResponse getDefaultInstanceForType()
Returns
Type Description
AnnotateImageResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getError()

public Status getError()

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getFaceAnnotations(int index)

public FaceAnnotation getFaceAnnotations(int index)

If present, face detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
FaceAnnotation

getFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder getFaceAnnotationsBuilder(int index)

If present, face detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
FaceAnnotation.Builder

getFaceAnnotationsBuilderList()

public List<FaceAnnotation.Builder> getFaceAnnotationsBuilderList()

If present, face detection has completed successfully.

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

Returns
Type Description
List<Builder>

getFaceAnnotationsCount()

public int getFaceAnnotationsCount()

If present, face detection has completed successfully.

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

Returns
Type Description
int

getFaceAnnotationsList()

public List<FaceAnnotation> getFaceAnnotationsList()

If present, face detection has completed successfully.

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

Returns
Type Description
List<FaceAnnotation>

getFaceAnnotationsOrBuilder(int index)

public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)

If present, face detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
FaceAnnotationOrBuilder

getFaceAnnotationsOrBuilderList()

public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()

If present, face detection has completed successfully.

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

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.FaceAnnotationOrBuilder>

getFullTextAnnotation()

public TextAnnotation getFullTextAnnotation()

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Returns
Type Description
TextAnnotation

The fullTextAnnotation.

getFullTextAnnotationBuilder()

public TextAnnotation.Builder getFullTextAnnotationBuilder()

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Returns
Type Description
TextAnnotation.Builder

getFullTextAnnotationOrBuilder()

public TextAnnotationOrBuilder getFullTextAnnotationOrBuilder()

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Returns
Type Description
TextAnnotationOrBuilder

getImagePropertiesAnnotation()

public ImageProperties getImagePropertiesAnnotation()

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Returns
Type Description
ImageProperties

The imagePropertiesAnnotation.

getImagePropertiesAnnotationBuilder()

public ImageProperties.Builder getImagePropertiesAnnotationBuilder()

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Returns
Type Description
ImageProperties.Builder

getImagePropertiesAnnotationOrBuilder()

public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Returns
Type Description
ImagePropertiesOrBuilder

getLabelAnnotations(int index)

public EntityAnnotation getLabelAnnotations(int index)

If present, label detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation

getLabelAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLabelAnnotationsBuilder(int index)

If present, label detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

getLabelAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLabelAnnotationsBuilderList()

If present, label detection has completed successfully.

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

Returns
Type Description
List<Builder>

getLabelAnnotationsCount()

public int getLabelAnnotationsCount()

If present, label detection has completed successfully.

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

Returns
Type Description
int

getLabelAnnotationsList()

public List<EntityAnnotation> getLabelAnnotationsList()

If present, label detection has completed successfully.

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

Returns
Type Description
List<EntityAnnotation>

getLabelAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)

If present, label detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotationOrBuilder

getLabelAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()

If present, label detection has completed successfully.

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

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>

getLandmarkAnnotations(int index)

public EntityAnnotation getLandmarkAnnotations(int index)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation

getLandmarkAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLandmarkAnnotationsBuilder(int index)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

getLandmarkAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLandmarkAnnotationsBuilderList()

If present, landmark detection has completed successfully.

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

Returns
Type Description
List<Builder>

getLandmarkAnnotationsCount()

public int getLandmarkAnnotationsCount()

If present, landmark detection has completed successfully.

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

Returns
Type Description
int

getLandmarkAnnotationsList()

public List<EntityAnnotation> getLandmarkAnnotationsList()

If present, landmark detection has completed successfully.

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

Returns
Type Description
List<EntityAnnotation>

getLandmarkAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotationOrBuilder

getLandmarkAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()

If present, landmark detection has completed successfully.

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

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>

getLocalizedObjectAnnotations(int index)

public LocalizedObjectAnnotation getLocalizedObjectAnnotations(int index)

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
Name Description
index int
Returns
Type Description
LocalizedObjectAnnotation

getLocalizedObjectAnnotationsBuilder(int index)

public LocalizedObjectAnnotation.Builder getLocalizedObjectAnnotationsBuilder(int index)

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
Name Description
index int
Returns
Type Description
LocalizedObjectAnnotation.Builder

getLocalizedObjectAnnotationsBuilderList()

public List<LocalizedObjectAnnotation.Builder> getLocalizedObjectAnnotationsBuilderList()

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;

Returns
Type Description
List<Builder>

getLocalizedObjectAnnotationsCount()

public int getLocalizedObjectAnnotationsCount()

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;

Returns
Type Description
int

getLocalizedObjectAnnotationsList()

public List<LocalizedObjectAnnotation> getLocalizedObjectAnnotationsList()

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;

Returns
Type Description
List<LocalizedObjectAnnotation>

getLocalizedObjectAnnotationsOrBuilder(int index)

public LocalizedObjectAnnotationOrBuilder getLocalizedObjectAnnotationsOrBuilder(int index)

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
Name Description
index int
Returns
Type Description
LocalizedObjectAnnotationOrBuilder

getLocalizedObjectAnnotationsOrBuilderList()

public List<? extends LocalizedObjectAnnotationOrBuilder> getLocalizedObjectAnnotationsOrBuilderList()

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;

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotationOrBuilder>

getLogoAnnotations(int index)

public EntityAnnotation getLogoAnnotations(int index)

If present, logo detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation

getLogoAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLogoAnnotationsBuilder(int index)

If present, logo detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

getLogoAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLogoAnnotationsBuilderList()

If present, logo detection has completed successfully.

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

Returns
Type Description
List<Builder>

getLogoAnnotationsCount()

public int getLogoAnnotationsCount()

If present, logo detection has completed successfully.

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

Returns
Type Description
int

getLogoAnnotationsList()

public List<EntityAnnotation> getLogoAnnotationsList()

If present, logo detection has completed successfully.

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

Returns
Type Description
List<EntityAnnotation>

getLogoAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)

If present, logo detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotationOrBuilder

getLogoAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()

If present, logo detection has completed successfully.

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

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>

getProductSearchResults()

public ProductSearchResults getProductSearchResults()

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Returns
Type Description
ProductSearchResults

The productSearchResults.

getProductSearchResultsBuilder()

public ProductSearchResults.Builder getProductSearchResultsBuilder()

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Returns
Type Description
ProductSearchResults.Builder

getProductSearchResultsOrBuilder()

public ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder()

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Returns
Type Description
ProductSearchResultsOrBuilder

getSafeSearchAnnotation()

public SafeSearchAnnotation getSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
Type Description
SafeSearchAnnotation

The safeSearchAnnotation.

getSafeSearchAnnotationBuilder()

public SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
Type Description
SafeSearchAnnotation.Builder

getSafeSearchAnnotationOrBuilder()

public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
Type Description
SafeSearchAnnotationOrBuilder

getTextAnnotations(int index)

public EntityAnnotation getTextAnnotations(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation

getTextAnnotationsBuilder(int index)

public EntityAnnotation.Builder getTextAnnotationsBuilder(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotation.Builder

getTextAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getTextAnnotationsBuilderList()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Returns
Type Description
List<Builder>

getTextAnnotationsCount()

public int getTextAnnotationsCount()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Returns
Type Description
int

getTextAnnotationsList()

public List<EntityAnnotation> getTextAnnotationsList()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Returns
Type Description
List<EntityAnnotation>

getTextAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
index int
Returns
Type Description
EntityAnnotationOrBuilder

getTextAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Returns
Type Description
List<? extends com.google.cloud.vision.v1p4beta1.EntityAnnotationOrBuilder>

getWebDetection()

public WebDetection getWebDetection()

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Returns
Type Description
WebDetection

The webDetection.

getWebDetectionBuilder()

public WebDetection.Builder getWebDetectionBuilder()

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Returns
Type Description
WebDetection.Builder

getWebDetectionOrBuilder()

public WebDetectionOrBuilder getWebDetectionOrBuilder()

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Returns
Type Description
WebDetectionOrBuilder

hasContext()

public boolean hasContext()

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Returns
Type Description
boolean

Whether the context field is set.

hasCropHintsAnnotation()

public boolean hasCropHintsAnnotation()

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Returns
Type Description
boolean

Whether the cropHintsAnnotation field is set.

hasError()

public boolean hasError()

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Returns
Type Description
boolean

Whether the error field is set.

hasFullTextAnnotation()

public boolean hasFullTextAnnotation()

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Returns
Type Description
boolean

Whether the fullTextAnnotation field is set.

hasImagePropertiesAnnotation()

public boolean hasImagePropertiesAnnotation()

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Returns
Type Description
boolean

Whether the imagePropertiesAnnotation field is set.

hasProductSearchResults()

public boolean hasProductSearchResults()

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Returns
Type Description
boolean

Whether the productSearchResults field is set.

hasSafeSearchAnnotation()

public boolean hasSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Returns
Type Description
boolean

Whether the safeSearchAnnotation field is set.

hasWebDetection()

public boolean hasWebDetection()

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Returns
Type Description
boolean

Whether the webDetection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContext(ImageAnnotationContext value)

public AnnotateImageResponse.Builder mergeContext(ImageAnnotationContext value)

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Parameter
Name Description
value ImageAnnotationContext
Returns
Type Description
AnnotateImageResponse.Builder

mergeCropHintsAnnotation(CropHintsAnnotation value)

public AnnotateImageResponse.Builder mergeCropHintsAnnotation(CropHintsAnnotation value)

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Parameter
Name Description
value CropHintsAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

mergeError(Status value)

public AnnotateImageResponse.Builder mergeError(Status value)

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
AnnotateImageResponse.Builder

mergeFrom(AnnotateImageResponse other)

public AnnotateImageResponse.Builder mergeFrom(AnnotateImageResponse other)
Parameter
Name Description
other AnnotateImageResponse
Returns
Type Description
AnnotateImageResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnnotateImageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotateImageResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnnotateImageResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

mergeFullTextAnnotation(TextAnnotation value)

public AnnotateImageResponse.Builder mergeFullTextAnnotation(TextAnnotation value)

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Parameter
Name Description
value TextAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

mergeImagePropertiesAnnotation(ImageProperties value)

public AnnotateImageResponse.Builder mergeImagePropertiesAnnotation(ImageProperties value)

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Parameter
Name Description
value ImageProperties
Returns
Type Description
AnnotateImageResponse.Builder

mergeProductSearchResults(ProductSearchResults value)

public AnnotateImageResponse.Builder mergeProductSearchResults(ProductSearchResults value)

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Parameter
Name Description
value ProductSearchResults
Returns
Type Description
AnnotateImageResponse.Builder

mergeSafeSearchAnnotation(SafeSearchAnnotation value)

public AnnotateImageResponse.Builder mergeSafeSearchAnnotation(SafeSearchAnnotation value)

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Parameter
Name Description
value SafeSearchAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateImageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

mergeWebDetection(WebDetection value)

public AnnotateImageResponse.Builder mergeWebDetection(WebDetection value)

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Parameter
Name Description
value WebDetection
Returns
Type Description
AnnotateImageResponse.Builder

removeFaceAnnotations(int index)

public AnnotateImageResponse.Builder removeFaceAnnotations(int index)

If present, face detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

removeLabelAnnotations(int index)

public AnnotateImageResponse.Builder removeLabelAnnotations(int index)

If present, label detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

removeLandmarkAnnotations(int index)

public AnnotateImageResponse.Builder removeLandmarkAnnotations(int index)

If present, landmark detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

removeLocalizedObjectAnnotations(int index)

public AnnotateImageResponse.Builder removeLocalizedObjectAnnotations(int index)

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
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

removeLogoAnnotations(int index)

public AnnotateImageResponse.Builder removeLogoAnnotations(int index)

If present, logo detection has completed successfully.

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

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

removeTextAnnotations(int index)

public AnnotateImageResponse.Builder removeTextAnnotations(int index)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameter
Name Description
index int
Returns
Type Description
AnnotateImageResponse.Builder

setContext(ImageAnnotationContext value)

public AnnotateImageResponse.Builder setContext(ImageAnnotationContext value)

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Parameter
Name Description
value ImageAnnotationContext
Returns
Type Description
AnnotateImageResponse.Builder

setContext(ImageAnnotationContext.Builder builderForValue)

public AnnotateImageResponse.Builder setContext(ImageAnnotationContext.Builder builderForValue)

If present, contextual information is needed to understand where this image comes from.

.google.cloud.vision.v1p4beta1.ImageAnnotationContext context = 21;

Parameter
Name Description
builderForValue ImageAnnotationContext.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setCropHintsAnnotation(CropHintsAnnotation value)

public AnnotateImageResponse.Builder setCropHintsAnnotation(CropHintsAnnotation value)

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Parameter
Name Description
value CropHintsAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setCropHintsAnnotation(CropHintsAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setCropHintsAnnotation(CropHintsAnnotation.Builder builderForValue)

If present, crop hints have completed successfully.

.google.cloud.vision.v1p4beta1.CropHintsAnnotation crop_hints_annotation = 11;

Parameter
Name Description
builderForValue CropHintsAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setError(Status value)

public AnnotateImageResponse.Builder setError(Status value)

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
AnnotateImageResponse.Builder

setError(Status.Builder builderForValue)

public AnnotateImageResponse.Builder setError(Status.Builder builderForValue)

If set, represents the error message for the operation. Note that filled-in image annotations are guaranteed to be correct, even when error is set.

.google.rpc.Status error = 9;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setFaceAnnotations(int index, FaceAnnotation value)

public AnnotateImageResponse.Builder setFaceAnnotations(int index, FaceAnnotation value)

If present, face detection has completed successfully.

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

Parameters
Name Description
index int
value FaceAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setFaceAnnotations(int index, FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue FaceAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

setFullTextAnnotation(TextAnnotation value)

public AnnotateImageResponse.Builder setFullTextAnnotation(TextAnnotation value)

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Parameter
Name Description
value TextAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setFullTextAnnotation(TextAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setFullTextAnnotation(TextAnnotation.Builder builderForValue)

If present, text (OCR) detection or document (OCR) text detection has completed successfully. This annotation provides the structural hierarchy for the OCR detected text.

.google.cloud.vision.v1p4beta1.TextAnnotation full_text_annotation = 12;

Parameter
Name Description
builderForValue TextAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setImagePropertiesAnnotation(ImageProperties value)

public AnnotateImageResponse.Builder setImagePropertiesAnnotation(ImageProperties value)

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Parameter
Name Description
value ImageProperties
Returns
Type Description
AnnotateImageResponse.Builder

setImagePropertiesAnnotation(ImageProperties.Builder builderForValue)

public AnnotateImageResponse.Builder setImagePropertiesAnnotation(ImageProperties.Builder builderForValue)

If present, image properties were extracted successfully.

.google.cloud.vision.v1p4beta1.ImageProperties image_properties_annotation = 8;

Parameter
Name Description
builderForValue ImageProperties.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setLabelAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setLabelAnnotations(int index, EntityAnnotation value)

If present, label detection has completed successfully.

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

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLabelAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setLandmarkAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setLandmarkAnnotations(int index, EntityAnnotation value)

If present, landmark detection has completed successfully.

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

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLandmarkAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

public AnnotateImageResponse.Builder setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation value)

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;

Parameters
Name Description
index int
value LocalizedObjectAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLocalizedObjectAnnotations(int index, LocalizedObjectAnnotation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue LocalizedObjectAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setLogoAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setLogoAnnotations(int index, EntityAnnotation value)

If present, logo detection has completed successfully.

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

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setLogoAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

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

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setProductSearchResults(ProductSearchResults value)

public AnnotateImageResponse.Builder setProductSearchResults(ProductSearchResults value)

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Parameter
Name Description
value ProductSearchResults
Returns
Type Description
AnnotateImageResponse.Builder

setProductSearchResults(ProductSearchResults.Builder builderForValue)

public AnnotateImageResponse.Builder setProductSearchResults(ProductSearchResults.Builder builderForValue)

If present, product search has completed successfully.

.google.cloud.vision.v1p4beta1.ProductSearchResults product_search_results = 14;

Parameter
Name Description
builderForValue ProductSearchResults.Builder
Returns
Type Description
AnnotateImageResponse.Builder

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

public AnnotateImageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

setSafeSearchAnnotation(SafeSearchAnnotation value)

public AnnotateImageResponse.Builder setSafeSearchAnnotation(SafeSearchAnnotation value)

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Parameter
Name Description
value SafeSearchAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setSafeSearchAnnotation(SafeSearchAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setSafeSearchAnnotation(SafeSearchAnnotation.Builder builderForValue)

If present, safe-search annotation has completed successfully.

.google.cloud.vision.v1p4beta1.SafeSearchAnnotation safe_search_annotation = 6;

Parameter
Name Description
builderForValue SafeSearchAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setTextAnnotations(int index, EntityAnnotation value)

public AnnotateImageResponse.Builder setTextAnnotations(int index, EntityAnnotation value)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameters
Name Description
index int
value EntityAnnotation
Returns
Type Description
AnnotateImageResponse.Builder

setTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setTextAnnotations(int index, EntityAnnotation.Builder builderForValue)

If present, text (OCR) detection has completed successfully.

repeated .google.cloud.vision.v1p4beta1.EntityAnnotation text_annotations = 5;

Parameters
Name Description
index int
builderForValue EntityAnnotation.Builder
Returns
Type Description
AnnotateImageResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnnotateImageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnnotateImageResponse.Builder
Overrides

setWebDetection(WebDetection value)

public AnnotateImageResponse.Builder setWebDetection(WebDetection value)

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Parameter
Name Description
value WebDetection
Returns
Type Description
AnnotateImageResponse.Builder

setWebDetection(WebDetection.Builder builderForValue)

public AnnotateImageResponse.Builder setWebDetection(WebDetection.Builder builderForValue)

If present, web detection has completed successfully.

.google.cloud.vision.v1p4beta1.WebDetection web_detection = 13;

Parameter
Name Description
builderForValue WebDetection.Builder
Returns
Type Description
AnnotateImageResponse.Builder