Class AnnotateImageResponse.Builder (3.3.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.v1.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.v1.FaceAnnotation face_annotations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.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.v1.EntityAnnotation label_annotations = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.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.v1.EntityAnnotation landmark_annotations = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.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.v1.EntityAnnotation logo_annotations = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.EntityAnnotation>
Returns
TypeDescription
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.v1.EntityAnnotation text_annotations = 5;

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

addFaceAnnotations(FaceAnnotation value)

public AnnotateImageResponse.Builder addFaceAnnotations(FaceAnnotation value)

If present, face detection has completed successfully.

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

Parameter
NameDescription
valueFaceAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

addFaceAnnotations(FaceAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addFaceAnnotations(FaceAnnotation.Builder builderForValue)

If present, face detection has completed successfully.

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

Parameter
NameDescription
builderForValueFaceAnnotation.Builder
Returns
TypeDescription
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.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
valueFaceAnnotation
Returns
TypeDescription
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.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

addFaceAnnotationsBuilder()

public FaceAnnotation.Builder addFaceAnnotationsBuilder()

If present, face detection has completed successfully.

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

Returns
TypeDescription
FaceAnnotation.Builder

addFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder addFaceAnnotationsBuilder(int index)

If present, face detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

addLabelAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLabelAnnotations(EntityAnnotation value)

If present, label detection has completed successfully.

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

Parameter
NameDescription
valueEntityAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

addLabelAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLabelAnnotations(EntityAnnotation.Builder builderForValue)

If present, label detection has completed successfully.

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

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

addLabelAnnotationsBuilder()

public EntityAnnotation.Builder addLabelAnnotationsBuilder()

If present, label detection has completed successfully.

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

Returns
TypeDescription
EntityAnnotation.Builder

addLabelAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLabelAnnotationsBuilder(int index)

If present, label detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

addLandmarkAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLandmarkAnnotations(EntityAnnotation value)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
valueEntityAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

addLandmarkAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLandmarkAnnotations(EntityAnnotation.Builder builderForValue)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

addLandmarkAnnotationsBuilder()

public EntityAnnotation.Builder addLandmarkAnnotationsBuilder()

If present, landmark detection has completed successfully.

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

Returns
TypeDescription
EntityAnnotation.Builder

addLandmarkAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLandmarkAnnotationsBuilder(int index)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
valueLocalizedObjectAnnotation
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
builderForValueLocalizedObjectAnnotation.Builder
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
valueLocalizedObjectAnnotation
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
builderForValueLocalizedObjectAnnotation.Builder
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocalizedObjectAnnotation.Builder

addLogoAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addLogoAnnotations(EntityAnnotation value)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
valueEntityAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

addLogoAnnotations(EntityAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder addLogoAnnotations(EntityAnnotation.Builder builderForValue)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

addLogoAnnotationsBuilder()

public EntityAnnotation.Builder addLogoAnnotationsBuilder()

If present, logo detection has completed successfully.

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

Returns
TypeDescription
EntityAnnotation.Builder

addLogoAnnotationsBuilder(int index)

public EntityAnnotation.Builder addLogoAnnotationsBuilder(int index)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTextAnnotations(EntityAnnotation value)

public AnnotateImageResponse.Builder addTextAnnotations(EntityAnnotation value)

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

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

Parameter
NameDescription
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation text_annotations = 5;

Parameter
NameDescription
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

addTextAnnotationsBuilder()

public EntityAnnotation.Builder addTextAnnotationsBuilder()

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

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

Returns
TypeDescription
EntityAnnotation.Builder

addTextAnnotationsBuilder(int index)

public EntityAnnotation.Builder addTextAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

build()

public AnnotateImageResponse build()
Returns
TypeDescription
AnnotateImageResponse

buildPartial()

public AnnotateImageResponse buildPartial()
Returns
TypeDescription
AnnotateImageResponse

clear()

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

clearContext()

public AnnotateImageResponse.Builder clearContext()

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

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearCropHintsAnnotation()

public AnnotateImageResponse.Builder clearCropHintsAnnotation()

If present, crop hints have completed successfully.

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

Returns
TypeDescription
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
TypeDescription
AnnotateImageResponse.Builder

clearFaceAnnotations()

public AnnotateImageResponse.Builder clearFaceAnnotations()

If present, face detection has completed successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AnnotateImageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
AnnotateImageResponse.Builder

clearImagePropertiesAnnotation()

public AnnotateImageResponse.Builder clearImagePropertiesAnnotation()

If present, image properties were extracted successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearLabelAnnotations()

public AnnotateImageResponse.Builder clearLabelAnnotations()

If present, label detection has completed successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearLandmarkAnnotations()

public AnnotateImageResponse.Builder clearLandmarkAnnotations()

If present, landmark detection has completed successfully.

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

Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
AnnotateImageResponse.Builder

clearLogoAnnotations()

public AnnotateImageResponse.Builder clearLogoAnnotations()

If present, logo detection has completed successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProductSearchResults()

public AnnotateImageResponse.Builder clearProductSearchResults()

If present, product search has completed successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearSafeSearchAnnotation()

public AnnotateImageResponse.Builder clearSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearTextAnnotations()

public AnnotateImageResponse.Builder clearTextAnnotations()

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

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clearWebDetection()

public AnnotateImageResponse.Builder clearWebDetection()

If present, web detection has completed successfully.

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

Returns
TypeDescription
AnnotateImageResponse.Builder

clone()

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

getContext()

public ImageAnnotationContext getContext()

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

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

Returns
TypeDescription
ImageAnnotationContext

The context.

getContextBuilder()

public ImageAnnotationContext.Builder getContextBuilder()

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

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

Returns
TypeDescription
ImageAnnotationContext.Builder

getContextOrBuilder()

public ImageAnnotationContextOrBuilder getContextOrBuilder()

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

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

Returns
TypeDescription
ImageAnnotationContextOrBuilder

getCropHintsAnnotation()

public CropHintsAnnotation getCropHintsAnnotation()

If present, crop hints have completed successfully.

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

Returns
TypeDescription
CropHintsAnnotation

The cropHintsAnnotation.

getCropHintsAnnotationBuilder()

public CropHintsAnnotation.Builder getCropHintsAnnotationBuilder()

If present, crop hints have completed successfully.

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

Returns
TypeDescription
CropHintsAnnotation.Builder

getCropHintsAnnotationOrBuilder()

public CropHintsAnnotationOrBuilder getCropHintsAnnotationOrBuilder()

If present, crop hints have completed successfully.

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

Returns
TypeDescription
CropHintsAnnotationOrBuilder

getDefaultInstanceForType()

public AnnotateImageResponse getDefaultInstanceForType()
Returns
TypeDescription
AnnotateImageResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.StatusOrBuilder

getFaceAnnotations(int index)

public FaceAnnotation getFaceAnnotations(int index)

If present, face detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation

getFaceAnnotationsBuilder(int index)

public FaceAnnotation.Builder getFaceAnnotationsBuilder(int index)

If present, face detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotation.Builder

getFaceAnnotationsBuilderList()

public List<FaceAnnotation.Builder> getFaceAnnotationsBuilderList()

If present, face detection has completed successfully.

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

Returns
TypeDescription
List<Builder>

getFaceAnnotationsCount()

public int getFaceAnnotationsCount()

If present, face detection has completed successfully.

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

Returns
TypeDescription
int

getFaceAnnotationsList()

public List<FaceAnnotation> getFaceAnnotationsList()

If present, face detection has completed successfully.

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

Returns
TypeDescription
List<FaceAnnotation>

getFaceAnnotationsOrBuilder(int index)

public FaceAnnotationOrBuilder getFaceAnnotationsOrBuilder(int index)

If present, face detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
FaceAnnotationOrBuilder

getFaceAnnotationsOrBuilderList()

public List<? extends FaceAnnotationOrBuilder> getFaceAnnotationsOrBuilderList()

If present, face detection has completed successfully.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
TextAnnotationOrBuilder

getImagePropertiesAnnotation()

public ImageProperties getImagePropertiesAnnotation()

If present, image properties were extracted successfully.

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

Returns
TypeDescription
ImageProperties

The imagePropertiesAnnotation.

getImagePropertiesAnnotationBuilder()

public ImageProperties.Builder getImagePropertiesAnnotationBuilder()

If present, image properties were extracted successfully.

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

Returns
TypeDescription
ImageProperties.Builder

getImagePropertiesAnnotationOrBuilder()

public ImagePropertiesOrBuilder getImagePropertiesAnnotationOrBuilder()

If present, image properties were extracted successfully.

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

Returns
TypeDescription
ImagePropertiesOrBuilder

getLabelAnnotations(int index)

public EntityAnnotation getLabelAnnotations(int index)

If present, label detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getLabelAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLabelAnnotationsBuilder(int index)

If present, label detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

getLabelAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLabelAnnotationsBuilderList()

If present, label detection has completed successfully.

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

Returns
TypeDescription
List<Builder>

getLabelAnnotationsCount()

public int getLabelAnnotationsCount()

If present, label detection has completed successfully.

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

Returns
TypeDescription
int

getLabelAnnotationsList()

public List<EntityAnnotation> getLabelAnnotationsList()

If present, label detection has completed successfully.

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

Returns
TypeDescription
List<EntityAnnotation>

getLabelAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLabelAnnotationsOrBuilder(int index)

If present, label detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotationOrBuilder

getLabelAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLabelAnnotationsOrBuilderList()

If present, label detection has completed successfully.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.EntityAnnotationOrBuilder>

getLandmarkAnnotations(int index)

public EntityAnnotation getLandmarkAnnotations(int index)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getLandmarkAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLandmarkAnnotationsBuilder(int index)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

getLandmarkAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLandmarkAnnotationsBuilderList()

If present, landmark detection has completed successfully.

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

Returns
TypeDescription
List<Builder>

getLandmarkAnnotationsCount()

public int getLandmarkAnnotationsCount()

If present, landmark detection has completed successfully.

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

Returns
TypeDescription
int

getLandmarkAnnotationsList()

public List<EntityAnnotation> getLandmarkAnnotationsList()

If present, landmark detection has completed successfully.

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

Returns
TypeDescription
List<EntityAnnotation>

getLandmarkAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLandmarkAnnotationsOrBuilder(int index)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotationOrBuilder

getLandmarkAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLandmarkAnnotationsOrBuilderList()

If present, landmark detection has completed successfully.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.LocalizedObjectAnnotationOrBuilder>

getLogoAnnotations(int index)

public EntityAnnotation getLogoAnnotations(int index)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getLogoAnnotationsBuilder(int index)

public EntityAnnotation.Builder getLogoAnnotationsBuilder(int index)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

getLogoAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getLogoAnnotationsBuilderList()

If present, logo detection has completed successfully.

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

Returns
TypeDescription
List<Builder>

getLogoAnnotationsCount()

public int getLogoAnnotationsCount()

If present, logo detection has completed successfully.

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

Returns
TypeDescription
int

getLogoAnnotationsList()

public List<EntityAnnotation> getLogoAnnotationsList()

If present, logo detection has completed successfully.

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

Returns
TypeDescription
List<EntityAnnotation>

getLogoAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getLogoAnnotationsOrBuilder(int index)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotationOrBuilder

getLogoAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getLogoAnnotationsOrBuilderList()

If present, logo detection has completed successfully.

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.EntityAnnotationOrBuilder>

getProductSearchResults()

public ProductSearchResults getProductSearchResults()

If present, product search has completed successfully.

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

Returns
TypeDescription
ProductSearchResults

The productSearchResults.

getProductSearchResultsBuilder()

public ProductSearchResults.Builder getProductSearchResultsBuilder()

If present, product search has completed successfully.

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

Returns
TypeDescription
ProductSearchResults.Builder

getProductSearchResultsOrBuilder()

public ProductSearchResultsOrBuilder getProductSearchResultsOrBuilder()

If present, product search has completed successfully.

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

Returns
TypeDescription
ProductSearchResultsOrBuilder

getSafeSearchAnnotation()

public SafeSearchAnnotation getSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

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

Returns
TypeDescription
SafeSearchAnnotation

The safeSearchAnnotation.

getSafeSearchAnnotationBuilder()

public SafeSearchAnnotation.Builder getSafeSearchAnnotationBuilder()

If present, safe-search annotation has completed successfully.

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

Returns
TypeDescription
SafeSearchAnnotation.Builder

getSafeSearchAnnotationOrBuilder()

public SafeSearchAnnotationOrBuilder getSafeSearchAnnotationOrBuilder()

If present, safe-search annotation has completed successfully.

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

Returns
TypeDescription
SafeSearchAnnotationOrBuilder

getTextAnnotations(int index)

public EntityAnnotation getTextAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation

getTextAnnotationsBuilder(int index)

public EntityAnnotation.Builder getTextAnnotationsBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotation.Builder

getTextAnnotationsBuilderList()

public List<EntityAnnotation.Builder> getTextAnnotationsBuilderList()

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

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

Returns
TypeDescription
List<Builder>

getTextAnnotationsCount()

public int getTextAnnotationsCount()

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

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

Returns
TypeDescription
int

getTextAnnotationsList()

public List<EntityAnnotation> getTextAnnotationsList()

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

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

Returns
TypeDescription
List<EntityAnnotation>

getTextAnnotationsOrBuilder(int index)

public EntityAnnotationOrBuilder getTextAnnotationsOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
EntityAnnotationOrBuilder

getTextAnnotationsOrBuilderList()

public List<? extends EntityAnnotationOrBuilder> getTextAnnotationsOrBuilderList()

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

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

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1.EntityAnnotationOrBuilder>

getWebDetection()

public WebDetection getWebDetection()

If present, web detection has completed successfully.

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

Returns
TypeDescription
WebDetection

The webDetection.

getWebDetectionBuilder()

public WebDetection.Builder getWebDetectionBuilder()

If present, web detection has completed successfully.

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

Returns
TypeDescription
WebDetection.Builder

getWebDetectionOrBuilder()

public WebDetectionOrBuilder getWebDetectionOrBuilder()

If present, web detection has completed successfully.

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

Returns
TypeDescription
WebDetectionOrBuilder

hasContext()

public boolean hasContext()

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

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

Returns
TypeDescription
boolean

Whether the context field is set.

hasCropHintsAnnotation()

public boolean hasCropHintsAnnotation()

If present, crop hints have completed successfully.

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

Returns
TypeDescription
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
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Returns
TypeDescription
boolean

Whether the fullTextAnnotation field is set.

hasImagePropertiesAnnotation()

public boolean hasImagePropertiesAnnotation()

If present, image properties were extracted successfully.

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

Returns
TypeDescription
boolean

Whether the imagePropertiesAnnotation field is set.

hasProductSearchResults()

public boolean hasProductSearchResults()

If present, product search has completed successfully.

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

Returns
TypeDescription
boolean

Whether the productSearchResults field is set.

hasSafeSearchAnnotation()

public boolean hasSafeSearchAnnotation()

If present, safe-search annotation has completed successfully.

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

Returns
TypeDescription
boolean

Whether the safeSearchAnnotation field is set.

hasWebDetection()

public boolean hasWebDetection()

If present, web detection has completed successfully.

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

Returns
TypeDescription
boolean

Whether the webDetection field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1.ImageAnnotationContext context = 21;

Parameter
NameDescription
valueImageAnnotationContext
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeCropHintsAnnotation(CropHintsAnnotation value)

public AnnotateImageResponse.Builder mergeCropHintsAnnotation(CropHintsAnnotation value)

If present, crop hints have completed successfully.

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

Parameter
NameDescription
valueCropHintsAnnotation
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeFrom(AnnotateImageResponse other)

public AnnotateImageResponse.Builder mergeFrom(AnnotateImageResponse other)
Parameter
NameDescription
otherAnnotateImageResponse
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AnnotateImageResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Parameter
NameDescription
valueTextAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeImagePropertiesAnnotation(ImageProperties value)

public AnnotateImageResponse.Builder mergeImagePropertiesAnnotation(ImageProperties value)

If present, image properties were extracted successfully.

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

Parameter
NameDescription
valueImageProperties
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeProductSearchResults(ProductSearchResults value)

public AnnotateImageResponse.Builder mergeProductSearchResults(ProductSearchResults value)

If present, product search has completed successfully.

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

Parameter
NameDescription
valueProductSearchResults
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeSafeSearchAnnotation(SafeSearchAnnotation value)

public AnnotateImageResponse.Builder mergeSafeSearchAnnotation(SafeSearchAnnotation value)

If present, safe-search annotation has completed successfully.

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

Parameter
NameDescription
valueSafeSearchAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWebDetection(WebDetection value)

public AnnotateImageResponse.Builder mergeWebDetection(WebDetection value)

If present, web detection has completed successfully.

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

Parameter
NameDescription
valueWebDetection
Returns
TypeDescription
AnnotateImageResponse.Builder

removeFaceAnnotations(int index)

public AnnotateImageResponse.Builder removeFaceAnnotations(int index)

If present, face detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse.Builder

removeLabelAnnotations(int index)

public AnnotateImageResponse.Builder removeLabelAnnotations(int index)

If present, label detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse.Builder

removeLandmarkAnnotations(int index)

public AnnotateImageResponse.Builder removeLandmarkAnnotations(int index)

If present, landmark detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse.Builder

removeLogoAnnotations(int index)

public AnnotateImageResponse.Builder removeLogoAnnotations(int index)

If present, logo detection has completed successfully.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AnnotateImageResponse.Builder

removeTextAnnotations(int index)

public AnnotateImageResponse.Builder removeTextAnnotations(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.ImageAnnotationContext context = 21;

Parameter
NameDescription
valueImageAnnotationContext
Returns
TypeDescription
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.v1.ImageAnnotationContext context = 21;

Parameter
NameDescription
builderForValueImageAnnotationContext.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

setCropHintsAnnotation(CropHintsAnnotation value)

public AnnotateImageResponse.Builder setCropHintsAnnotation(CropHintsAnnotation value)

If present, crop hints have completed successfully.

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

Parameter
NameDescription
valueCropHintsAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

setCropHintsAnnotation(CropHintsAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setCropHintsAnnotation(CropHintsAnnotation.Builder builderForValue)

If present, crop hints have completed successfully.

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

Parameter
NameDescription
builderForValueCropHintsAnnotation.Builder
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
valueFaceAnnotation
Returns
TypeDescription
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.v1.FaceAnnotation face_annotations = 1;

Parameters
NameDescription
indexint
builderForValueFaceAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnnotateImageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Parameter
NameDescription
valueTextAnnotation
Returns
TypeDescription
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.v1.TextAnnotation full_text_annotation = 12;

Parameter
NameDescription
builderForValueTextAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

setImagePropertiesAnnotation(ImageProperties value)

public AnnotateImageResponse.Builder setImagePropertiesAnnotation(ImageProperties value)

If present, image properties were extracted successfully.

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

Parameter
NameDescription
valueImageProperties
Returns
TypeDescription
AnnotateImageResponse.Builder

setImagePropertiesAnnotation(ImageProperties.Builder builderForValue)

public AnnotateImageResponse.Builder setImagePropertiesAnnotation(ImageProperties.Builder builderForValue)

If present, image properties were extracted successfully.

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

Parameter
NameDescription
builderForValueImageProperties.Builder
Returns
TypeDescription
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.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation label_annotations = 4;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation landmark_annotations = 2;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
valueLocalizedObjectAnnotation
Returns
TypeDescription
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.v1.LocalizedObjectAnnotation localized_object_annotations = 22;

Parameters
NameDescription
indexint
builderForValueLocalizedObjectAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation logo_annotations = 3;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

setProductSearchResults(ProductSearchResults value)

public AnnotateImageResponse.Builder setProductSearchResults(ProductSearchResults value)

If present, product search has completed successfully.

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

Parameter
NameDescription
valueProductSearchResults
Returns
TypeDescription
AnnotateImageResponse.Builder

setProductSearchResults(ProductSearchResults.Builder builderForValue)

public AnnotateImageResponse.Builder setProductSearchResults(ProductSearchResults.Builder builderForValue)

If present, product search has completed successfully.

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

Parameter
NameDescription
builderForValueProductSearchResults.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

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

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

setSafeSearchAnnotation(SafeSearchAnnotation value)

public AnnotateImageResponse.Builder setSafeSearchAnnotation(SafeSearchAnnotation value)

If present, safe-search annotation has completed successfully.

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

Parameter
NameDescription
valueSafeSearchAnnotation
Returns
TypeDescription
AnnotateImageResponse.Builder

setSafeSearchAnnotation(SafeSearchAnnotation.Builder builderForValue)

public AnnotateImageResponse.Builder setSafeSearchAnnotation(SafeSearchAnnotation.Builder builderForValue)

If present, safe-search annotation has completed successfully.

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

Parameter
NameDescription
builderForValueSafeSearchAnnotation.Builder
Returns
TypeDescription
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.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
valueEntityAnnotation
Returns
TypeDescription
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.v1.EntityAnnotation text_annotations = 5;

Parameters
NameDescription
indexint
builderForValueEntityAnnotation.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWebDetection(WebDetection value)

public AnnotateImageResponse.Builder setWebDetection(WebDetection value)

If present, web detection has completed successfully.

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

Parameter
NameDescription
valueWebDetection
Returns
TypeDescription
AnnotateImageResponse.Builder

setWebDetection(WebDetection.Builder builderForValue)

public AnnotateImageResponse.Builder setWebDetection(WebDetection.Builder builderForValue)

If present, web detection has completed successfully.

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

Parameter
NameDescription
builderForValueWebDetection.Builder
Returns
TypeDescription
AnnotateImageResponse.Builder