public final class SafeSearchAnnotation
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 |
|---|
SafeSearchAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
SafeSearchAnnotation |
clone() |
String |
getAdult()
Represents the adult content likelihood for the image.
|
String |
getMedical()
Likelihood that this is a medical image.
|
String |
getRacy()
Likelihood that the request image contains racy content.
|
String |
getSpoof()
Spoof likelihood.
|
String |
getViolence()
Likelihood that this image contains violent content.
|
SafeSearchAnnotation |
set(String fieldName,
Object value) |
SafeSearchAnnotation |
setAdult(String adult)
Represents the adult content likelihood for the image.
|
SafeSearchAnnotation |
setMedical(String medical)
Likelihood that this is a medical image.
|
SafeSearchAnnotation |
setRacy(String racy)
Likelihood that the request image contains racy content.
|
SafeSearchAnnotation |
setSpoof(String spoof)
Spoof likelihood.
|
SafeSearchAnnotation |
setViolence(String violence)
Likelihood that this image contains violent content.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAdult()
null for nonepublic SafeSearchAnnotation setAdult(String adult)
adult - adult or null for nonepublic String getMedical()
null for nonepublic SafeSearchAnnotation setMedical(String medical)
medical - medical or null for nonepublic String getRacy()
null for nonepublic SafeSearchAnnotation setRacy(String racy)
racy - racy or null for nonepublic String getSpoof()
null for nonepublic SafeSearchAnnotation setSpoof(String spoof)
spoof - spoof or null for nonepublic String getViolence()
null for nonepublic SafeSearchAnnotation setViolence(String violence)
violence - violence or null for nonepublic SafeSearchAnnotation set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic SafeSearchAnnotation clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2019 Google. All rights reserved.