public final class AnnotateImageResponse
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Vision API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| AnnotateImageResponse() | 
| Modifier and Type | Method and Description | 
|---|---|
| AnnotateImageResponse | clone() | 
| ImageAnnotationContext | getContext()If present, contextual information is needed to understand where this image comes from. | 
| CropHintsAnnotation | getCropHintsAnnotation()If present, crop hints have completed successfully. | 
| Status | getError()If set, represents the error message for the operation. | 
| List<FaceAnnotation> | getFaceAnnotations()If present, face detection has completed successfully. | 
| TextAnnotation | getFullTextAnnotation()If present, text (OCR) detection or document (OCR) text detection has completed successfully. | 
| ImageProperties | getImagePropertiesAnnotation()If present, image properties were extracted successfully. | 
| List<EntityAnnotation> | getLabelAnnotations()If present, label detection has completed successfully. | 
| List<EntityAnnotation> | getLandmarkAnnotations()If present, landmark detection has completed successfully. | 
| List<LocalizedObjectAnnotation> | getLocalizedObjectAnnotations()If present, localized object detection has completed successfully. | 
| List<EntityAnnotation> | getLogoAnnotations()If present, logo detection has completed successfully. | 
| ProductSearchResults | getProductSearchResults()If present, product search has completed successfully. | 
| SafeSearchAnnotation | getSafeSearchAnnotation()If present, safe-search annotation has completed successfully. | 
| List<EntityAnnotation> | getTextAnnotations()If present, text (OCR) detection has completed successfully. | 
| WebDetection | getWebDetection()If present, web detection has completed successfully. | 
| AnnotateImageResponse | set(String fieldName,
   Object value) | 
| AnnotateImageResponse | setContext(ImageAnnotationContext context)If present, contextual information is needed to understand where this image comes from. | 
| AnnotateImageResponse | setCropHintsAnnotation(CropHintsAnnotation cropHintsAnnotation)If present, crop hints have completed successfully. | 
| AnnotateImageResponse | setError(Status error)If set, represents the error message for the operation. | 
| AnnotateImageResponse | setFaceAnnotations(List<FaceAnnotation> faceAnnotations)If present, face detection has completed successfully. | 
| AnnotateImageResponse | setFullTextAnnotation(TextAnnotation fullTextAnnotation)If present, text (OCR) detection or document (OCR) text detection has completed successfully. | 
| AnnotateImageResponse | setImagePropertiesAnnotation(ImageProperties imagePropertiesAnnotation)If present, image properties were extracted successfully. | 
| AnnotateImageResponse | setLabelAnnotations(List<EntityAnnotation> labelAnnotations)If present, label detection has completed successfully. | 
| AnnotateImageResponse | setLandmarkAnnotations(List<EntityAnnotation> landmarkAnnotations)If present, landmark detection has completed successfully. | 
| AnnotateImageResponse | setLocalizedObjectAnnotations(List<LocalizedObjectAnnotation> localizedObjectAnnotations)If present, localized object detection has completed successfully. | 
| AnnotateImageResponse | setLogoAnnotations(List<EntityAnnotation> logoAnnotations)If present, logo detection has completed successfully. | 
| AnnotateImageResponse | setProductSearchResults(ProductSearchResults productSearchResults)If present, product search has completed successfully. | 
| AnnotateImageResponse | setSafeSearchAnnotation(SafeSearchAnnotation safeSearchAnnotation)If present, safe-search annotation has completed successfully. | 
| AnnotateImageResponse | setTextAnnotations(List<EntityAnnotation> textAnnotations)If present, text (OCR) detection has completed successfully. | 
| AnnotateImageResponse | setWebDetection(WebDetection webDetection)If present, web detection has completed successfully. | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ImageAnnotationContext getContext()
null for nonepublic AnnotateImageResponse setContext(ImageAnnotationContext context)
context - context or null for nonepublic CropHintsAnnotation getCropHintsAnnotation()
null for nonepublic AnnotateImageResponse setCropHintsAnnotation(CropHintsAnnotation cropHintsAnnotation)
cropHintsAnnotation - cropHintsAnnotation or null for nonepublic Status getError()
null for nonepublic AnnotateImageResponse setError(Status error)
error - error or null for nonepublic List<FaceAnnotation> getFaceAnnotations()
null for nonepublic AnnotateImageResponse setFaceAnnotations(List<FaceAnnotation> faceAnnotations)
faceAnnotations - faceAnnotations or null for nonepublic TextAnnotation getFullTextAnnotation()
null for nonepublic AnnotateImageResponse setFullTextAnnotation(TextAnnotation fullTextAnnotation)
fullTextAnnotation - fullTextAnnotation or null for nonepublic ImageProperties getImagePropertiesAnnotation()
null for nonepublic AnnotateImageResponse setImagePropertiesAnnotation(ImageProperties imagePropertiesAnnotation)
imagePropertiesAnnotation - imagePropertiesAnnotation or null for nonepublic List<EntityAnnotation> getLabelAnnotations()
null for nonepublic AnnotateImageResponse setLabelAnnotations(List<EntityAnnotation> labelAnnotations)
labelAnnotations - labelAnnotations or null for nonepublic List<EntityAnnotation> getLandmarkAnnotations()
null for nonepublic AnnotateImageResponse setLandmarkAnnotations(List<EntityAnnotation> landmarkAnnotations)
landmarkAnnotations - landmarkAnnotations or null for nonepublic List<LocalizedObjectAnnotation> getLocalizedObjectAnnotations()
null for nonepublic AnnotateImageResponse setLocalizedObjectAnnotations(List<LocalizedObjectAnnotation> localizedObjectAnnotations)
localizedObjectAnnotations - localizedObjectAnnotations or null for nonepublic List<EntityAnnotation> getLogoAnnotations()
null for nonepublic AnnotateImageResponse setLogoAnnotations(List<EntityAnnotation> logoAnnotations)
logoAnnotations - logoAnnotations or null for nonepublic ProductSearchResults getProductSearchResults()
null for nonepublic AnnotateImageResponse setProductSearchResults(ProductSearchResults productSearchResults)
productSearchResults - productSearchResults or null for nonepublic SafeSearchAnnotation getSafeSearchAnnotation()
null for nonepublic AnnotateImageResponse setSafeSearchAnnotation(SafeSearchAnnotation safeSearchAnnotation)
safeSearchAnnotation - safeSearchAnnotation or null for nonepublic List<EntityAnnotation> getTextAnnotations()
null for nonepublic AnnotateImageResponse setTextAnnotations(List<EntityAnnotation> textAnnotations)
textAnnotations - textAnnotations or null for nonepublic WebDetection getWebDetection()
null for nonepublic AnnotateImageResponse setWebDetection(WebDetection webDetection)
webDetection - webDetection or null for nonepublic AnnotateImageResponse set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic AnnotateImageResponse clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.