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.Flags
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.
|
java.util.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.
|
java.util.List<EntityAnnotation> |
getLabelAnnotations()
If present, label detection has completed successfully.
|
java.util.List<EntityAnnotation> |
getLandmarkAnnotations()
If present, landmark detection has completed successfully.
|
java.util.List<LocalizedObjectAnnotation> |
getLocalizedObjectAnnotations()
If present, localized object detection has completed successfully.
|
java.util.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.
|
java.util.List<EntityAnnotation> |
getTextAnnotations()
If present, text (OCR) detection has completed successfully.
|
WebDetection |
getWebDetection()
If present, web detection has completed successfully.
|
AnnotateImageResponse |
set(java.lang.String fieldName,
java.lang.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(java.util.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(java.util.List<EntityAnnotation> labelAnnotations)
If present, label detection has completed successfully.
|
AnnotateImageResponse |
setLandmarkAnnotations(java.util.List<EntityAnnotation> landmarkAnnotations)
If present, landmark detection has completed successfully.
|
AnnotateImageResponse |
setLocalizedObjectAnnotations(java.util.List<LocalizedObjectAnnotation> localizedObjectAnnotations)
If present, localized object detection has completed successfully.
|
AnnotateImageResponse |
setLogoAnnotations(java.util.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(java.util.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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public 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 java.util.List<FaceAnnotation> getFaceAnnotations()
null
for nonepublic AnnotateImageResponse setFaceAnnotations(java.util.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 java.util.List<EntityAnnotation> getLabelAnnotations()
null
for nonepublic AnnotateImageResponse setLabelAnnotations(java.util.List<EntityAnnotation> labelAnnotations)
labelAnnotations
- labelAnnotations or null
for nonepublic java.util.List<EntityAnnotation> getLandmarkAnnotations()
null
for nonepublic AnnotateImageResponse setLandmarkAnnotations(java.util.List<EntityAnnotation> landmarkAnnotations)
landmarkAnnotations
- landmarkAnnotations or null
for nonepublic java.util.List<LocalizedObjectAnnotation> getLocalizedObjectAnnotations()
null
for nonepublic AnnotateImageResponse setLocalizedObjectAnnotations(java.util.List<LocalizedObjectAnnotation> localizedObjectAnnotations)
localizedObjectAnnotations
- localizedObjectAnnotations or null
for nonepublic java.util.List<EntityAnnotation> getLogoAnnotations()
null
for nonepublic AnnotateImageResponse setLogoAnnotations(java.util.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 java.util.List<EntityAnnotation> getTextAnnotations()
null
for nonepublic AnnotateImageResponse setTextAnnotations(java.util.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(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public AnnotateImageResponse clone()
clone
in class com.google.api.client.json.GenericJson