public final class ImageContext
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ImageContext() |
Modifier and Type | Method and Description |
---|---|
ImageContext |
clone() |
CropHintsParams |
getCropHintsParams()
Parameters for crop hints annotation request.
|
List<String> |
getLanguageHints()
List of languages to use for TEXT_DETECTION.
|
LatLongRect |
getLatLongRect()
Not used.
|
ProductSearchParams |
getProductSearchParams()
Parameters for product search.
|
WebDetectionParams |
getWebDetectionParams()
Parameters for web detection.
|
ImageContext |
set(String fieldName,
Object value) |
ImageContext |
setCropHintsParams(CropHintsParams cropHintsParams)
Parameters for crop hints annotation request.
|
ImageContext |
setLanguageHints(List<String> languageHints)
List of languages to use for TEXT_DETECTION.
|
ImageContext |
setLatLongRect(LatLongRect latLongRect)
Not used.
|
ImageContext |
setProductSearchParams(ProductSearchParams productSearchParams)
Parameters for product search.
|
ImageContext |
setWebDetectionParams(WebDetectionParams webDetectionParams)
Parameters for web detection.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public CropHintsParams getCropHintsParams()
null
for nonepublic ImageContext setCropHintsParams(CropHintsParams cropHintsParams)
cropHintsParams
- cropHintsParams or null
for nonepublic List<String> getLanguageHints()
null
for nonepublic ImageContext setLanguageHints(List<String> languageHints)
languageHints
- languageHints or null
for nonepublic LatLongRect getLatLongRect()
null
for nonepublic ImageContext setLatLongRect(LatLongRect latLongRect)
latLongRect
- latLongRect or null
for nonepublic ProductSearchParams getProductSearchParams()
null
for nonepublic ImageContext setProductSearchParams(ProductSearchParams productSearchParams)
productSearchParams
- productSearchParams or null
for nonepublic WebDetectionParams getWebDetectionParams()
null
for nonepublic ImageContext setWebDetectionParams(WebDetectionParams webDetectionParams)
webDetectionParams
- webDetectionParams or null
for nonepublic ImageContext set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ImageContext clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.